智慧保安后台管理-外网
Administrator
2022-06-16 8b375fe00a241b3a769b82fe3dac8d1c9dce8a02
src/main/java/org/springblade/modules/permit/controller/PermitController.java
@@ -200,7 +200,6 @@
         "'" + permit.getRepresentativecell() + "'" + "," + "'" + permit.getContacts() + "'" + "," + "'"
         + permit.getContactscell() + "'" + "," + "'" + permit.getJurisdiction() + "'" +
         "," + "'" + permit.getCardid() + "'" + "," + "'" + overtime + "'" + ")";
      //FtpUtil.sqlFileUpload(s);
      myAsyncService.FTP(s);
      return R.success("许可提交成功");
   }
@@ -494,6 +493,13 @@
   @ApiOperationSupport(order = 8)
   @ApiOperation(value = "删除", notes = "传入ids")
   public R remove(@ApiParam(value = "主键集合", required = true) @RequestParam String ids) {
      //内网删除
      List<Long> list = Func.toLongList(ids);
      list.forEach(id -> {
         //内网同步
         String s1 = "delete from sys_permit where id = " + "'" + id + "'";
         myAsyncService.FTP(s1);
      });
      return R.status(permitService.removeByIds(Func.toLongList(ids)));
   }