| | |
| | | import com.alibaba.fastjson.JSON; |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import liquibase.pro.packaged.M; |
| | | import org.springblade.common.utils.DesensitizedUtil; |
| | | import org.springblade.core.mp.support.Condition; |
| | | import org.springblade.core.tool.api.R; |
| | | import org.springblade.modules.dispatcher.entity.Dispatcher; |
| | |
| | | String uuid = user1.getReasonForLeav(); |
| | | //用户数据校验 |
| | | Result result = userCheckOut(user1); |
| | | System.out.println("result = " + result); |
| | | //创建返回对象 |
| | | Result result1 = new Result(); |
| | | if (result.getCode()==200){ |
| | | user1.setReasonForLeav(""); |
| | | //校验保安员证编号 |
| | | Result result2 = hanlder.checkSecurityNumber(user1); |
| | | User user2 = result2.getUser(); |
| | | //去新增 |
| | | hanlder.userService.save(result2.getUser()); |
| | | boolean save = hanlder.userService.save(user2); |
| | | if (save){ |
| | | //异步审查 |
| | | hanlder.myAsyncService.checkUserExamineByCardNo(user2); |
| | | } |
| | | |
| | | if (result2.getCode()==200){ |
| | | //设置返回结果 |
| | |
| | | //新增 |
| | | experienceService.save(experience); |
| | | |
| | | // 身份证号脱敏 |
| | | String cardid = DesensitizedUtil.desensitizedIdNumberBy4(user.getCardid()); |
| | | |
| | | //内网同步 |
| | | String s = "insert into sys_experience(id,name,entryTime,departureTime,leaving,cardId,companyname,securityId) " + |
| | | "values(" + "'" + experience.getId() + "'" + "," + |
| | |
| | | "," + "'" + new SimpleDateFormat("yyyy-MM-dd").format(experience.getEntrytime()) + "'" + |
| | | "," + "'" + new SimpleDateFormat("yyyy-MM-dd").format(experience.getDeparturetime()) + "'" + |
| | | "," + "'" + experience.getLeaving() + "'" + |
| | | "," + "'" + experience.getCardid() + "'" + |
| | | "," + "'" + cardid + "'" + |
| | | "," + "'" + experience.getCompanyname() + "'" + |
| | | "," + "'" + experience.getSecurityid() + "'" |
| | | + ")"; |