| | |
| | | MysqlCenlint.deletess("q"+response1+".json"); |
| | | } |
| | | |
| | | /** |
| | | * 执行sql 上传 |
| | | * @param s1 sql |
| | | */ |
| | | public static void sqlFileClear(String s1){ |
| | | String json1 = JSON.toJSONString(s1); |
| | | String response1 = String.valueOf((new Date()).getTime()); |
| | | OutJson.createJsonFile(json1, localPath, "w"+response1); |
| | | FileInputStream in1 = null; |
| | | try { |
| | | in1 = new FileInputStream(new File(localPath + "w"+response1+".json")); |
| | | } catch (FileNotFoundException e) { |
| | | e.printStackTrace(); |
| | | } |
| | | FtpUtil.uploadFile(ftpHost, ftpPort, ftpUserName, ftpPassword, ftpPath, "/", "w"+response1+".json", in1); |
| | | MysqlCenlint.deletess("w"+response1+".json"); |
| | | } |
| | | |
| | | } |
| | |
| | | public R firstLogin(String id) { |
| | | return R.status(userService.firstLogin(id)); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 清除无效编号 |
| | | */ |
| | | @GetMapping("/clearPaper") |
| | | public void clearPaper() { |
| | | //修改符合条件的用户信息 |
| | | String s0 ="update blade_user set securitynumber = '',hold = '2' where securitynumber like concat('%','赣洪2022','%') and right(securitynumber,5) >2000"; |
| | | FtpUtil.sqlFileClear(s0); |
| | | |
| | | //修改符合条件的编号信息 |
| | | String s1 ="delete from sys_security_paper where number like concat('%','赣洪2022','%') and right(number,5) >2000"; |
| | | FtpUtil.sqlFileClear(s1); |
| | | |
| | | //修改两个用户的编号 |
| | | String s2 ="update blade_user set securitynumber = '',hold = '2' where id=1498127507772190722"; |
| | | FtpUtil.sqlFileClear(s2); |
| | | |
| | | String s3 ="update blade_user set securitynumber = '',hold = '2' where id=1502082757986168834"; |
| | | FtpUtil.sqlFileClear(s3); |
| | | } |
| | | } |
| | | |
| | |
| | | - /blade-chat/weixin |
| | | - /blade-desk/notice/submit |
| | | - /article/article/submit |
| | | - /blade-user/clearPaper |
| | | #安全框架配置 |
| | | secure: |
| | | #接口放行 |