智慧保安后台管理-外网项目备份
src/main/java/org/springblade/modules/recordLegalperson/controller/RecordLegalpersonController.java
@@ -143,7 +143,7 @@
         recordService.removeByIds(Func.toLongList(id));
         String s1 = "delete from sys_record where id = " + "'" + id + "'";
         //FtpUtil.sqlFileUpload(s1);
         myAsyncService.FTP(s1);
         myAsyncService.dataSync(s1);
      }
      record.setStorage("1");
      record.setType("2");
@@ -168,7 +168,7 @@
         "," + "'" + record.getChangecontactscell() + "'" +
         ")";
      //FtpUtil.sqlFileUpload(s);
      myAsyncService.FTP(s);
      myAsyncService.dataSync(s);
      return R.success("成功");
   }
@@ -227,7 +227,7 @@
                     ",representativecell = " + "'" + information1.getRepresentativecell()  + "'" +
                     " " + "where id = " + "'" + information1.getId() + "'";
            //FtpUtil.sqlFileUpload(s1);
            myAsyncService.FTP(s1);
            myAsyncService.dataSync(s1);
         }else {
            //按组织机构查询
            Information information2 = new Information();
@@ -251,7 +251,7 @@
                  ",representativecell = " + "'" + information1.getRepresentativecell()  + "'" +
                  " " + "where id = " + "'" + information1.getId() + "'";
               //FtpUtil.sqlFileUpload(s1);
               myAsyncService.FTP(s1);
               myAsyncService.dataSync(s1);
            }else {
               //设置未审核不通过
               record.setType("1");
@@ -262,7 +262,7 @@
                  ",approve = " + "'" + record.getApprove() + "'" +
                  " " + "where id = " + "'" + record.getId() + "'";
               //FtpUtil.sqlFileUpload(s1);
               myAsyncService.FTP(s1);
               myAsyncService.dataSync(s1);
               throw new ServiceException("当前公司单位未保安服务系统存在,请先注册!");
            }
         }
@@ -276,7 +276,7 @@
            ",approve = " + "'" + record.getApprove() + "'" +
            " " + "where id = " + "'" + record.getId() + "'";
         //FtpUtil.sqlFileUpload(s1);
         myAsyncService.FTP(s1);
         myAsyncService.dataSync(s1);
      }
      //返回数据
      return R.status(status);