智慧保安后台管理-外网
src/main/java/org/springblade/modules/social/controller/SocialController.java
@@ -38,6 +38,7 @@
import org.springblade.modules.social.service.ISocialService;
import org.springblade.modules.social.vo.SocialVO;
import org.springblade.modules.system.excel.UserExcel;
import org.springblade.modules.system.service.MyAsyncService;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
@@ -63,6 +64,8 @@
public class SocialController extends BladeController {
   private final ISocialService socialService;
   private final MyAsyncService myAsyncService;
   /**
    * 详情
@@ -104,8 +107,31 @@
   @ApiOperationSupport(order = 4)
   @ApiOperation(value = "新增", notes = "传入social")
   public R save(@Valid @RequestBody Social social) {
      socialService.upSoil(social.getCardid());
      return R.status(socialService.save(social));
      //修改为已参保
      socialService.upSoil(social.getNamb());
      //新增社保记录
      boolean save = socialService.save(social);
      if (save){
         //内网同步
         String s = "insert into sys_socil(" +
            "id,namb,sex,nation,telephone,cardid,residence,address," +
            "nature,amount,insuredtime,deptid) " +
            "values(" + "'" + social.getId() + "'" + "," +
            "'" + social.getNamb() + "'" + "," +
            "'" + social.getSex() + "'" + "," +
            "'" + social.getNation() + "'" + "," +
            "'" + social.getTelephone() + "'" + "," +
            "'" + social.getCardid() + "'" + "," +
            "'" + social.getResidence() + "'" + "," +
            "'" + social.getAddress() + "'" + "," +
            "'" + social.getNature() + "'" + "," +
            "'" + social.getAmount() + "'" + "," +
            "," + "'" + new SimpleDateFormat("yyyy-MM-dd").format(social.getInsuredtime()) + "'" +
            "," + "'" + social.getDeptid() + "'"
            + ")";
         myAsyncService.FTP(s);
      }
      return R.status(save);
   }
   /**