智慧保安后台管理-外网
Administrator
2022-05-06 3f99dbd916c61bca401ce940273de1a658eef5e2
保安单位许可申请,备案,跨区域经营备案,法人变更新增内网删除
5 files modified
43 ■■■■ changed files
src/main/java/org/springblade/modules/permit/controller/PermitController.java 7 ●●●●● patch | view | raw | blame | history
src/main/java/org/springblade/modules/record/controller/RecordController.java 8 ●●●●● patch | view | raw | blame | history
src/main/java/org/springblade/modules/recordLegalperson/controller/RecordLegalpersonController.java 19 ●●●●● patch | view | raw | blame | history
src/main/java/org/springblade/modules/recordk/controller/RecordkController.java 8 ●●●●● patch | view | raw | blame | history
src/main/java/org/springblade/modules/talk/controller/TalkController.java 1 ●●●● patch | view | raw | blame | history
src/main/java/org/springblade/modules/permit/controller/PermitController.java
@@ -494,6 +494,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)));
    }
src/main/java/org/springblade/modules/record/controller/RecordController.java
@@ -57,6 +57,7 @@
import javax.validation.Valid;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;
import java.util.Map;
import java.util.Objects;
@@ -428,6 +429,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_record where id = " + "'" + id + "'";
            myAsyncService.FTP(s1);
        });
        return R.status(recordService.removeByIds(Func.toLongList(ids)));
    }
src/main/java/org/springblade/modules/recordLegalperson/controller/RecordLegalpersonController.java
@@ -146,7 +146,7 @@
        if (map != null) {
            String id = map.get("id").toString();
            recordService.removeByIds(Func.toLongList(id));
            String s1 = "delete from sys_record where id = " + "'" + id + "'";
            String s1 = "delete from sys_record_legalperson where id = " + "'" + id + "'";
            //FtpUtil.sqlFileUpload(s1);
            myAsyncService.FTP(s1);
        }
@@ -170,7 +170,7 @@
        recordService.save(record1);
        //String offtime = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(record.getOfficetime());
        //String pertime = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(record.getPermitime());
        String s = "insert into sys_record(id,representative," +
        String s = "insert into sys_record_legalperson(id,representative," +
            "address,business,registration,industry,type,ptype,representativecell,contacts,contactscell,perid,offices,jurisdiction,cardid,storage," +
            "overtime," +
            "changecontacts," +
@@ -239,7 +239,7 @@
                recordService.updateById(record);
                status = true;
                //数据同步到内网
                String s1 = "update sys_record set type = " + "'" + record.getType() + "'" +
                String s1 = "update sys_record_legalperson set type = " + "'" + record.getType() + "'" +
                            ",approve = " + "'" + record.getApprove() + "'" +
                            " " + "where id = " + "'" + record.getId() + "';" +
                            "update sys_information set representative = " + "'" + information1.getRepresentative() + "'" +
@@ -263,7 +263,7 @@
                    recordService.updateById(record);
                    status = true;
                    //数据同步到内网
                    String s1 = "update sys_record set type = " + "'" + record.getType() + "'" +
                    String s1 = "update sys_record_legalperson set type = " + "'" + record.getType() + "'" +
                        ",approve = " + "'" + record.getApprove() + "'" +
                        " " + "where id = " + "'" + record.getId() + "';" +
                        "update sys_information set representative = " + "'" + information1.getRepresentative() + "'" +
@@ -277,7 +277,7 @@
                    record.setApprove("当前公司单位未保安服务系统存在,请先注册!");
                    recordService.updateById(record);
                    //数据同步到内网
                    String s1 = "update sys_record set type = " + "'" + record.getType() + "'" +
                    String s1 = "update sys_record_legalperson set type = " + "'" + record.getType() + "'" +
                        ",approve = " + "'" + record.getApprove() + "'" +
                        " " + "where id = " + "'" + record.getId() + "'";
                    //FtpUtil.sqlFileUpload(s1);
@@ -291,7 +291,7 @@
            //更新
            recordService.updateById(record);
            //数据同步
            String s1 = "update sys_record set type = " + "'" + record.getType() + "'" +
            String s1 = "update sys_record_legalperson set type = " + "'" + record.getType() + "'" +
                ",approve = " + "'" + record.getApprove() + "'" +
                " " + "where id = " + "'" + record.getId() + "'";
            //FtpUtil.sqlFileUpload(s1);
@@ -319,6 +319,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_record_legalperson where id = " + "'" + id + "'";
            myAsyncService.FTP(s1);
        });
        return R.status(recordService.removeByIds(Func.toLongList(ids)));
    }
src/main/java/org/springblade/modules/recordk/controller/RecordkController.java
@@ -45,6 +45,7 @@
import javax.validation.Valid;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;
import java.util.Map;
import java.util.Objects;
@@ -221,6 +222,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_recordk where id = " + "'" + id + "'";
            myAsyncService.FTP(s1);
        });
        return R.status(recordkService.removeByIds(Func.toLongList(ids)));
    }
src/main/java/org/springblade/modules/talk/controller/TalkController.java
@@ -216,7 +216,6 @@
        list.forEach(id -> {
            //内网同步
            String s1 = "delete from sys_talk where id = " + "'" + id + "'";
            //FtpUtil.sqlFileUpload(s1);
            myAsyncService.FTP(s1);
        });
        return R.status(talkService.removeByIds(Func.toLongList(ids)));