| | |
| | | */ |
| | | private String stype; |
| | | |
| | | /** |
| | | * 地址 |
| | | */ |
| | | private String address; |
| | | |
| | | } |
| | |
| | | } |
| | | |
| | | @GetMapping("/startTask") |
| | | public R<Map> startTask(String rid, String serid,String type) { |
| | | public R<Map> startTask(String rid, String serid,String type,String data) { |
| | | //获取组员id并进行通知 |
| | | Map<String, Object> map = new HashMap<>(); |
| | | int msg = pushMsgService.startTask(serid, rid,type); |
| | | map.put("res", msg); |
| | | map.put("type", type); |
| | | map.put("data",data); |
| | | taskqdService.updateRtype("0",rid); |
| | | return R.data(map); |
| | | } |
| | |
| | | String id = jsonObj.get("id").toString(); |
| | | NettyConfig.getUserChannelMap().put(id,ctx.channel()); |
| | | |
| | | System.out.println(jsonObj.get("type")); |
| | | System.out.println(jsonObj.get("id")); |
| | | System.out.println("___________________"+jsonObj.get("type")); |
| | | System.out.println(jsonObj.get("id")+ "____________________________用户连接成功"); |
| | | |
| | | //将用户id作为自定义属性加入到channel 中,方便随时channel中获取用户id |
| | | AttributeKey<String> key = AttributeKey.valueOf("userId"); |
| | |
| | | user.setExamination_mx("正常"); |
| | | user.setCardid(zc.getCardid()); |
| | | user.setStype("0"); |
| | | user.setAddress(zc.getAddress()); |
| | | iUserService.saveOrUpdate(user); |
| | | String s = "insert into act_zc(id,username,password,sname,sex,phone,zctime,deptid,parent_id,jurisdiction,cardid)" + |
| | | String s = "insert into act_zc(id,username,password,sname,sex,phone,zctime,deptid,parent_id,jurisdiction,cardid,address)" + |
| | | "values(" + "'" + zc.getId() + "'" + |
| | | "," + "'" + zc.getUsername() + "'" + |
| | | "," + "'" + zc.getPassword() + "'" + |
| | |
| | | "," + "'" + zc.getDeptid() + "'" + |
| | | "," + "'" + zc.getParentId() + "'" + |
| | | "," + "'" + zc.getJurisdiction() + "'" + |
| | | "," + "'" + zc.getCardid() + "'" + ")"; |
| | | "," + "'" + zc.getCardid() + "'" + |
| | | "," + "'" + zc.getAddress() + "'" |
| | | + ")"; |
| | | FtpUtil.sqlFileUpload(s); |
| | | return R.success("新增成功"); |
| | | } |
| | |
| | | @TableField("audit_time") |
| | | private Date auditTime; |
| | | |
| | | private String address; |
| | | |
| | | } |
| | |
| | | <result column="examination_type" property="examination_type"/> |
| | | <result column="examination_mx" property="examination_mx"/> |
| | | <result column="audit_time" property="auditTime"/> |
| | | <result column="address" property="address"/> |
| | | </resultMap> |
| | | |
| | | |
| | |
| | | |
| | | <!--注册新增--> |
| | | <insert id="inster" useGeneratedKeys="true" keyProperty="id" keyColumn="id"> |
| | | insert into act_zc(username, password, sname, sex, phone, zctime, deptid, parent_id, jurisdiction, cardid) |
| | | insert into act_zc(username, password, sname, sex, phone, zctime, deptid, parent_id, jurisdiction, cardid,address) |
| | | values (#{username}, #{password}, #{sname}, #{sex}, #{phone}, #{zctime}, #{deptid}, #{parentId}, |
| | | #{jurisdiction}, #{cardid}) |
| | | #{jurisdiction}, #{cardid},#{address}) |
| | | </insert> |
| | | |
| | | <select id="selectType" resultType="String"> |