| | |
| | | } |
| | | |
| | | |
| | | |
| | | @PostMapping("/liceUp") |
| | | @ApiOperationSupport(order = 1) |
| | | public R liceUp(@Valid @RequestBody Licetuser licetuser) { |
| | |
| | | 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() + "'" + "," + |
| | |
| | | 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() + "'" + |