智慧保安后台管理-外网
tangzy
2021-08-25 ccd4345bfa337a85454c34b4fd3a8f83058f5859
src/main/java/org/springblade/modules/revoke/controller/RevokeController.java
@@ -39,7 +39,7 @@
import java.util.Map;
/**
 *  控制器
 * 控制器
 *
 * @author BladeX
 * @since 2021-07-12
@@ -94,7 +94,7 @@
   public R save(@Valid @RequestBody Revoke revoke) {
      String cardid = revoke.getCardid();
      Map map = revokeService.selectIn(cardid);
      if (map!=null){
      if (map != null) {
         String id = map.get("id").toString();
         revokeService.removeByIds(Func.toLongList(id));
      }
@@ -114,17 +114,17 @@
         + revoke.getOrganizationcode() + "'" + "," + "'" + revoke.getRegistrationnumber() + "'" + "," +
         "'" + revoke.getIdentificationnumber() + "'" + "," + "'" + revoke.getEnterprises() + "'" + "," + "'" +
         revoke.getAddress() + "'" + "," + "'" + revoke.getBusiness() + "'" + "," + "'" +
         revoke.getRegion() + "'" + "," + "'" + revoke.getRegistration() + "'" + "," + "'" + revoke.getIndustry()+ "'" + "," + "'"
         revoke.getRegion() + "'" + "," + "'" + revoke.getRegistration() + "'" + "," + "'" + revoke.getIndustry() + "'" + "," + "'"
         + revoke.getType() + "'" + "," +
         "'" + pertime + "'" + "," + "'" + revoke.getDeptid() + "'" + "," + "'" + revoke.getPtype() + "'" + "," +
         "'" + revoke.getRepresentativecell() + "'" + "," + "'" + revoke.getContacts() + "'" + "," + "'" + revoke.getContactscell() + "'"+"," +
         "'" + revoke.getReason() + "'"+"," + "'" + revoke.getJurisdiction() + "'"+")" ;
         "'" + revoke.getRepresentativecell() + "'" + "," + "'" + revoke.getContacts() + "'" + "," + "'" + revoke.getContactscell() + "'" + "," +
         "'" + revoke.getReason() + "'" + "," + "'" + revoke.getJurisdiction() + "'" + ")";
      FtpUtil.sqlFileUpload(s);
      return R.success("成功");
   }
   /**
    *暂存
    * 暂存
    */
   @PostMapping("/revokesave")
   @ApiOperationSupport(order = 4)
@@ -132,11 +132,10 @@
   public R revokesave(@Valid @RequestBody Revoke revoke) {
      String cardid = revoke.getCardid();
      Map map = revokeService.selectIn(cardid);
      if (map!=null){
      if (map != null) {
         revoke.setStorage("0");
         revokeService.updateById(revoke);
      }
      else {
      } else {
         revoke.setStorage("0");
         revoke.setType("2");
         revoke.setPtype("6");