| | |
| | | /** |
| | | * sql connect |
| | | */ |
| | | String sql_connect_dev = "jdbc:mysql://223.82.109.183:2083/zhbaw?useSSL=false&useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&serverTimezone=GMT%2B8&nullCatalogMeansCurrent=true&allowPublicKeyRetrieval=true"; |
| | | //String sql_connect_dev = "jdbc:mysql://223.82.109.183:2083/zhbaw?useSSL=false&useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&serverTimezone=GMT%2B8&nullCatalogMeansCurrent=true&allowPublicKeyRetrieval=true"; |
| | | |
| | | /** |
| | | * sql connect |
| | | */ |
| | | //String sql_connect_dev = "jdbc:mysql://localhost:2083/zhbaw?useSSL=false&useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&serverTimezone=GMT%2B8&nullCatalogMeansCurrent=true&allowPublicKeyRetrieval=true"; |
| | | String sql_connect_dev = "jdbc:mysql://localhost:2083/zhbaw?useSSL=false&useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&serverTimezone=GMT%2B8&nullCatalogMeansCurrent=true&allowPublicKeyRetrieval=true"; |
| | | |
| | | /** |
| | | * ftp服务器IP地址 |
| | | */ |
| | | String ftpHost_dev = "192.168.0.110"; |
| | | //String ftpHost_dev = "192.168.0.112"; |
| | | |
| | | /** |
| | | * ftp服务器IP地址 |
| | | */ |
| | | //String ftpHost_dev = "172.19.1.30"; |
| | | String ftpHost_dev = "172.19.1.30"; |
| | | |
| | | /** |
| | | * ftp服务器端口 |
| | |
| | | /** |
| | | * ftp服务器用户名 |
| | | */ |
| | | //String ftpUserName = "yly"; |
| | | String ftpUserName = "anonymous"; |
| | | String ftpUserName = "yly"; |
| | | //String ftpUserName = "anonymous"; |
| | | |
| | | /** |
| | | * ftp服务器密码 |
| | | */ |
| | | //String ftpPassword = "Yly@123"; |
| | | String ftpPassword = ""; |
| | | String ftpPassword = "Yly@123"; |
| | | //String ftpPassword = ""; |
| | | |
| | | |
| | | /** |
| | | * ftp服务器路径 |
| | | */ |
| | | //String ftpPath = "yly/anbao/"; |
| | | String ftpPath = "anbao/"; |
| | | String ftpPath = "yly/anbao/"; |
| | | //String ftpPath = "anbao/"; |
| | | |
| | | /** |
| | | * 本地路径 |
| | | */ |
| | | //String localPath = "/home/zhongsong/anbao/"; |
| | | String localPath = "D:\\anbao\\"; |
| | | String localPath = "/home/zhongsong/anbao/"; |
| | | //String localPath = "D:\\anbao\\"; |
| | | |
| | | |
| | | //minio内网ip |
| | | //String ip = "http://47.49.21.216:9000"; |
| | | String ip = "http://223.82.109.183:2081"; |
| | | String ip = "http://47.49.21.216:9000"; |
| | | //String ip = "http://223.82.109.183:2081"; |
| | | |
| | | //String jsonUrl = "/home/zhongsong/anbao/"; |
| | | String jsonUrl = "D:\\anbao\\"; |
| | | String jsonUrl = "/home/zhongsong/anbao/"; |
| | | //String jsonUrl = "D:\\anbao\\"; |
| | | } |
| | |
| | | e.printStackTrace(); |
| | | } |
| | | FtpUtil.uploadFile(ftpHost_dev, ftpPort, ftpUserName, ftpPassword, ftpPath, "/", "w"+response1+".json", in1); |
| | | MysqlCenlint.deletess("w"+response1+".json"); |
| | | } |
| | | |
| | | } |
| | |
| | | informationService.save(information); |
| | | String formatStr = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(information.getEstablishtime()); |
| | | //Integer id = information.getId(); |
| | | String s = "insert into sys_information(id,creditcode,enterprisename,representative,establishtime," + |
| | | "registeredcapital,organizationcode,registrationnumber, enterprises, address," + |
| | | String s = "insert into sys_information(id,creditCode,enterpriseName,representative,establishTime," + |
| | | "registeredCapital,organizationCode,registrationNumber, enterprises, address," + |
| | | " business,region,registration,industry,departmentid,stats,jurisdiction,representativecell,contacts,contactscell) " + |
| | | "values(" + "'" + information.getId() + "'" + "," + "'" + information.getCreditcode() + "'" + "," + "'" + information.getEnterprisename() + "'" + "," + "'" + information.getRepresentative() + "'" + "," + |
| | | "'" + formatStr + "'" + "," + "'" + information.getRegisteredcapital() + "'" + "," + "'" + information.getOrganizationcode() + "'" + "," + "'" + information.getRegistrationnumber() + "'" + "," + "'" + information.getEnterprises() + "'" + "," + "'" + |
| | |
| | | format = new SimpleDateFormat("yyyy-MM-dd").format(information.getEstablishtime()); |
| | | } |
| | | //内网同步 |
| | | String s1 = "update sys_information set creditcode = " + "'" + information.getCreditcode() + "'" + |
| | | ",enterprisename = " + "'" + information.getEnterprisename() + "'" + |
| | | String s1 = "update sys_information set creditCode = " + "'" + information.getCreditcode() + "'" + |
| | | ",enterpriseName = " + "'" + information.getEnterprisename() + "'" + |
| | | ",representative = " + "'" + information.getRepresentative() + "'" + |
| | | ",establishtime = " + "'" + format + "'" + |
| | | ",registeredcapital = " + "'" + information.getRegisteredcapital() + "'" + |
| | | ",organizationcode = " + "'" + information.getOrganizationcode() + "'" + |
| | | ",registrationnumber = " + "'" + information.getRegistrationnumber() + "'" + |
| | | ",establishTime = " + "'" + format + "'" + |
| | | ",registeredCapital = " + "'" + information.getRegisteredcapital() + "'" + |
| | | ",jurisdiction = " + "'" + information.getJurisdiction() + "'" + |
| | | ",enterprises = " + "'" + information.getEnterprises() + "'" + |
| | | ",address = " + "'" + information.getAddress() + "'" + |
| | | ",business = " + "'" + information.getBusiness() + "'" + |
| | |
| | | ",industry = " + "'" + information.getIndustry() + "'" + |
| | | ",departmentid = " + "'" + information.getDepartmentid() + "'" + |
| | | ",stats = " + "'" + information.getStats() + "'" + |
| | | ",jurisdiction = " + "'" + information.getJurisdiction() + "'" + |
| | | ",representativecell = " + "'" + information.getRepresentativecell() + "'" + |
| | | ",contacts = " + "'" + information.getContacts() + "'" + |
| | | ",contactscell = " + "'" + information.getContactscell() + "'" + |
| | |
| | | + permit.getContactscell() + "'"+"," + "'" + permit.getJurisdiction() + "'"+ |
| | | "," + "'" + permit.getCardid() + "'"+")" ; |
| | | FtpUtil.sqlFileUpload(s); |
| | | return R.success("新增成功"); |
| | | return R.success("许可提交成功"); |
| | | } |
| | | |
| | | /** |
| | |
| | | Long i = 1418458374477549569L; |
| | | dept.setParentId(i); |
| | | dept.setAncestors("0,1418458374477549569"); |
| | | } |
| | | else{ |
| | | } else { |
| | | Long i = 1420222961377357825L; |
| | | dept.setParentId(i); |
| | | dept.setAncestors("0,1420222961377357825"); |
| | |
| | | String s1 = "update sys_permit set type = " + "'" + 0 + "'" +",approve = " + "'" + permit.getApprove() + "'"+ |
| | | " " +"where id = " + "'" + permit.getId() + "'"; |
| | | FtpUtil.sqlFileUpload(s1); |
| | | } |
| | | else { |
| | | } else { |
| | | String s1 = "update sys_permit set type = " + "'" + 1 + "'" +",approve = " + "'" + permit.getApprove() + "'"+ |
| | | " " +"where id = " + "'" + permit.getId() + "'"; |
| | | FtpUtil.sqlFileUpload(s1); |