智慧保安后台管理-外网项目备份
钟日健
2026-06-01 62eb499b0c969f246d3245d1429a97da4de1ce28
src/main/java/org/springblade/modules/experience/controller/ExperienceController.java
@@ -34,6 +34,7 @@
import org.springblade.modules.experience.vo.ExperienceVO;
import org.springblade.modules.system.entity.User;
import org.springblade.modules.system.service.IUserService;
import org.springblade.modules.system.service.MyAsyncService;
import org.springframework.web.bind.annotation.*;
import javax.validation.Valid;
@@ -57,6 +58,7 @@
   private final IUserService userService;
   private final MyAsyncService myAsyncService;
   /**
    * 详情
@@ -162,7 +164,8 @@
               + ",companyname = " + "'" + experience.getCompanyname() + "'"
               + ",securityId = " + "'" + experience.getSecurityid() + "'"
               + " " + "where id = " + "'" + experience.getId() + "'";
         FtpUtil.sqlFileUpload(s1);
         //FtpUtil.sqlFileUpload(s1);
         myAsyncService.dataSync(s1);
      }else {
         //新增
@@ -175,11 +178,11 @@
         //内网同步
         String s = "insert into sys_experience(id,name,post,department,responsibilities,entryTime,departureTime,leaving," +
            "cardId,companyname,securityId) " +
            "values(" + "'" + experience.getId() + "'" + "," +
            "'" + experience.getName() + "'" + "," +
            "'" + experience.getPost() + "'" + "," +
            "'" + experience.getDepartment() + "'" + "," +
            "'" + experience.getResponsibilities() + "'" + "," +
            "values(" + "'" + experience.getId() + "'" +
            "," + "'" + experience.getName() + "'" +
            "," + "'" + experience.getPost() + "'" +
            "," + "'" + experience.getDepartment() + "'" +
            "," + "'" + experience.getResponsibilities() + "'" +
            "," + "'" + new SimpleDateFormat("yyyy-MM-dd").format(experience.getEntrytime()) + "'" +
            "," + "'" + new SimpleDateFormat("yyyy-MM-dd").format(experience.getDeparturetime()) + "'" +
            "," + "'" + experience.getLeaving() + "'" +
@@ -187,7 +190,8 @@
            "," + "'" + experience.getCompanyname() + "'" +
            "," + "'" + experience.getSecurityid() + "'"
            + ")";
         FtpUtil.sqlFileUpload(s);
         //FtpUtil.sqlFileUpload(s);
         myAsyncService.dataSync(s);
      }
      return R.status(status);
   }