智慧保安后台管理-外网项目备份
src/main/java/org/springblade/modules/shareholder/controller/ShareholderController.java
@@ -115,7 +115,7 @@
               "'" + shareholder.getCreditcode() + "'" + "," +
               "'" + shareholder.getDeptId() + "'" + ")";
         //FtpUtil.sqlFileUpload(s1);
         myAsyncService.FTP(s1);
         myAsyncService.dataSync(s1);
      } else {
         String s1 =
            "insert into sys_shareholder(id,shareholder,shareholdingratio,capital,capitalTime,cardid,cell,creditCode,dept_id) " +
@@ -129,7 +129,7 @@
               "'" + shareholder.getCreditcode() + "'" + "," +
               "'" + shareholder.getDeptId() + "'" + ")";
         //FtpUtil.sqlFileUpload(s1);
         myAsyncService.FTP(s1);
         myAsyncService.dataSync(s1);
      }
      return R.status(save);
   }
@@ -153,7 +153,7 @@
            ",dept_id = " + "'" + shareholder.getDeptId() + "'" +
            " " + "where id = " + "'" + shareholder.getId() + "'";
         //FtpUtil.sqlFileUpload(s1);
         myAsyncService.FTP(s1);
         myAsyncService.dataSync(s1);
      } else {
         //内网同步
         String s1 = "update sys_shareholder set shareholder = " + "'" + shareholder.getShareholder() + "'" +
@@ -166,7 +166,7 @@
            ",dept_id = " + "'" + shareholder.getDeptId() + "'" +
            " " + "where id = " + "'" + shareholder.getId() + "'";
         //FtpUtil.sqlFileUpload(s1);
         myAsyncService.FTP(s1);
         myAsyncService.dataSync(s1);
      }
      return R.status(b);
   }
@@ -194,7 +194,7 @@
      list.forEach(id -> {
         String s1 = "delete from sys_shareholder where id = " + "'" + id + "'";
         //FtpUtil.sqlFileUpload(s1);
         myAsyncService.FTP(s1);
         myAsyncService.dataSync(s1);
      });
      return R.status(shareholderService.removeByIds(Func.toLongList(ids)));
   }