智慧保安后台管理-外网-验收版本
tangzy
2021-09-23 cfbba3e94514bd2b9336972ae0ee8b7af3abf5a9
src/main/java/org/springblade/modules/licetuser/controller/LicetuserController.java
@@ -65,7 +65,6 @@
   }
   @PostMapping("/liceUp")
   @ApiOperationSupport(order = 1)
   public R liceUp(@Valid @RequestBody Licetuser licetuser) {
@@ -76,13 +75,14 @@
         String[] split = licetuser.getLinks().split(",");
         for (int i = 0; i < split.length; i++) {
            String s = split[i].substring(26, split[i].length());
            url += FtpConstant.ip + s + ",";
            String[] splits = split[i].split("/");
            url += FtpConstant.ip +"/zhba/upload/picture/"+ splits[6] + ",";
         }
         String substring = url.substring(0, url.length() - 1);
         licetuser.setLinks(substring);
         //数据同步
         String s1 =
            "insert into sys_talk(id,userid,ptype,templateid,links) " +
            "insert into sys_licetuser(id,userid,ptype,templateid,links) " +
               "values(" + "'" + licetuser.getId() + "'" + "," +
               "'" + licetuser.getUserid() + "'" + "," +
               "'" + licetuser.getPtype() + "'" + "," +
@@ -99,11 +99,12 @@
         String[] split = licetuser.getLinks().split(",");
         for (int i = 0; i < split.length; i++) {
            String s = split[i].substring(26, split[i].length());
            url += FtpConstant.ip + s + ",";
            String[] splits = split[i].split("/");
            url += FtpConstant.ip +"/zhba/upload/picture/"+ splits[6] + ",";
         }
         String substring = url.substring(0, url.length() - 1);
         licetuser.setLinks(substring);
         String s1 = "update sys_talk set userid = " + "'" + licetuser.getUserid() + "'" +
         String s1 = "update sys_licetuser set userid = " + "'" + licetuser.getUserid() + "'" +
            ",ptype = " + "'" + licetuser.getPtype() + "'" +
            ",templateid = " + "'" + licetuser.getTemplateid() + "'" +
            ",links = " + "'" + licetuser.getLinks() + "'" +