Administrator
2022-04-27 8e6f6217e52a635d1dfd4ccbb549b0427d3f9fa6
src/main/java/org/springblade/modules/FTP/DataHanlder.java
@@ -3,6 +3,7 @@
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;
@@ -77,15 +78,19 @@
         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){
               //设置返回结果
@@ -238,6 +243,9 @@
         //新增
         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() + "'" + "," +
@@ -245,7 +253,7 @@
            "," + "'" + 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() + "'"
            + ")";