Commit 4b2bf51a authored by 张俊's avatar 张俊

去掉行政区划校验

parent 0cfd1c71
...@@ -206,154 +206,139 @@ public class ProvidentFundServicesController { ...@@ -206,154 +206,139 @@ public class ProvidentFundServicesController {
//421181 //421181
//421182 //421182
//421101 //421101
List<String> wo = new ArrayList<>();
wo.add("421102");
wo.add("421121");
wo.add("421122");
wo.add("421123");
wo.add("421124");
wo.add("421125");
wo.add("421126");
wo.add("421127");
wo.add("421181");
wo.add("421182");
wo.add("421101");
if (!bills.isEmpty()) { if (!bills.isEmpty()) {
for (UnitAccountOpeningInformation uniInfom : bills) { for (UnitAccountOpeningInformation uniInfom : bills) {
if (!"".equals(uniInfom.getOplocdistrict()) && uniInfom.getOplocdistrict() != null) { if (!"".equals(uniInfom.getOplocdistrict()) && uniInfom.getOplocdistrict() != null) {
if (wo.contains(uniInfom.getOplocdistrict())) { System.out.println("oplocdistrict" + "在规定的值里面,调imp过程");
System.out.println("oplocdistrict" + "在规定的值里面,调imp过程"); if (!"".equals(uniInfom.getBusId()) && uniInfom.getBusId() != null) {
if (!"".equals(uniInfom.getBusId()) && uniInfom.getBusId() != null) { pstm.setString(1, uniInfom.getBusId());
pstm.setString(1, uniInfom.getBusId()); } else {
} else { pstm.setString(1, "");
pstm.setString(1, ""); }
}
if (!"".equals(uniInfom.getUscc()) && uniInfom.getUscc() != null) { if (!"".equals(uniInfom.getUscc()) && uniInfom.getUscc() != null) {
pstm.setString(2, uniInfom.getUscc()); pstm.setString(2, uniInfom.getUscc());
} else { } else {
pstm.setString(2, ""); pstm.setString(2, "");
} }
if (!"".equals(uniInfom.getEntName()) && uniInfom.getEntName() != null) { if (!"".equals(uniInfom.getEntName()) && uniInfom.getEntName() != null) {
pstm.setString(3, uniInfom.getEntName()); pstm.setString(3, uniInfom.getEntName());
} else { } else {
pstm.setString(3, ""); pstm.setString(3, "");
} }
if (!"".equals(uniInfom.getDom()) && uniInfom.getDom() != null) { if (!"".equals(uniInfom.getDom()) && uniInfom.getDom() != null) {
pstm.setString(4, uniInfom.getDom()); pstm.setString(4, uniInfom.getDom());
} else { } else {
pstm.setString(4, ""); pstm.setString(4, "");
} }
if (!"".equals(uniInfom.getEstDate()) && uniInfom.getEstDate() != null) { if (!"".equals(uniInfom.getEstDate()) && uniInfom.getEstDate() != null) {
pstm.setDate(5, new java.sql.Date(uniInfom.getEstDate().getTime())); pstm.setDate(5, new java.sql.Date(uniInfom.getEstDate().getTime()));
} else { } else {
pstm.setString(5, ""); pstm.setString(5, "");
} }
if (!"".equals(uniInfom.getLerep()) && uniInfom.getLerep() != null) { if (!"".equals(uniInfom.getLerep()) && uniInfom.getLerep() != null) {
pstm.setString(6, uniInfom.getLerep()); pstm.setString(6, uniInfom.getLerep());
} else { } else {
pstm.setString(6, ""); pstm.setString(6, "");
} }
if (!"".equals(uniInfom.getCerType()) && uniInfom.getCerType() != null) { if (!"".equals(uniInfom.getCerType()) && uniInfom.getCerType() != null) {
pstm.setString(7, uniInfom.getCerType()); pstm.setString(7, uniInfom.getCerType());
} else { } else {
pstm.setString(7, ""); pstm.setString(7, "");
} }
if (!"".equals(uniInfom.getCerNo()) && uniInfom.getCerNo() != null) { if (!"".equals(uniInfom.getCerNo()) && uniInfom.getCerNo() != null) {
pstm.setString(8, uniInfom.getCerNo()); pstm.setString(8, uniInfom.getCerNo());
} else { } else {
pstm.setString(8, ""); pstm.setString(8, "");
} }
if (!"".equals(uniInfom.getOperatorName()) && uniInfom.getOperatorName() != null) { if (!"".equals(uniInfom.getOperatorName()) && uniInfom.getOperatorName() != null) {
pstm.setString(9, uniInfom.getOperatorName()); pstm.setString(9, uniInfom.getOperatorName());
} else { } else {
pstm.setString(9, ""); pstm.setString(9, "");
} }
if (!"".equals(uniInfom.getOperatorCerNo()) && uniInfom.getOperatorCerNo() != null) { if (!"".equals(uniInfom.getOperatorCerNo()) && uniInfom.getOperatorCerNo() != null) {
pstm.setString(10, uniInfom.getOperatorCerNo()); pstm.setString(10, uniInfom.getOperatorCerNo());
} else { } else {
pstm.setString(10, ""); pstm.setString(10, "");
} }
if (!"".equals(uniInfom.getOperatorPhone()) && uniInfom.getOperatorPhone() != null) { if (!"".equals(uniInfom.getOperatorPhone()) && uniInfom.getOperatorPhone() != null) {
pstm.setString(11, uniInfom.getOperatorPhone()); pstm.setString(11, uniInfom.getOperatorPhone());
} else { } else {
pstm.setString(11, ""); pstm.setString(11, "");
} }
if (!"".equals(uniInfom.getOplocdistrict()) && uniInfom.getOplocdistrict() != null) { if (!"".equals(uniInfom.getOplocdistrict()) && uniInfom.getOplocdistrict() != null) {
pstm.setString(12, uniInfom.getOplocdistrict()); pstm.setString(12, uniInfom.getOplocdistrict());
} else { } else {
pstm.setString(12, ""); pstm.setString(12, "");
} }
if (!"".equals(uniInfom.getUnitNature()) && uniInfom.getUnitNature() != null) { if (!"".equals(uniInfom.getUnitNature()) && uniInfom.getUnitNature() != null) {
pstm.setString(13, uniInfom.getUnitNature()); pstm.setString(13, uniInfom.getUnitNature());
} else { } else {
pstm.setString(13, ""); pstm.setString(13, "");
} }
if (!"".equals(uniInfom.getEconomicType()) && uniInfom.getEconomicType() != null) { if (!"".equals(uniInfom.getEconomicType()) && uniInfom.getEconomicType() != null) {
pstm.setString(14, uniInfom.getEconomicType()); pstm.setString(14, uniInfom.getEconomicType());
} else { } else {
pstm.setString(14, ""); pstm.setString(14, "");
} }
if (!"".equals(uniInfom.getIndustryphy()) && uniInfom.getIndustryphy() != null) { if (!"".equals(uniInfom.getIndustryphy()) && uniInfom.getIndustryphy() != null) {
pstm.setString(15, uniInfom.getIndustryphy()); pstm.setString(15, uniInfom.getIndustryphy());
} else { } else {
pstm.setString(15, ""); pstm.setString(15, "");
} }
if (!"".equals(uniInfom.getUnitPayDay()) && uniInfom.getUnitPayDay() != null) { if (!"".equals(uniInfom.getUnitPayDay()) && uniInfom.getUnitPayDay() != null) {
pstm.setString(16, uniInfom.getUnitPayDay()); pstm.setString(16, uniInfom.getUnitPayDay());
} else { } else {
pstm.setString(16, ""); pstm.setString(16, "");
} }
if (!"".equals(uniInfom.getUnitDepPro()) && uniInfom.getUnitDepPro() != null) { if (!"".equals(uniInfom.getUnitDepPro()) && uniInfom.getUnitDepPro() != null) {
pstm.setString(17, uniInfom.getUnitDepPro()); pstm.setString(17, uniInfom.getUnitDepPro());
} else { } else {
pstm.setString(17, ""); pstm.setString(17, "");
} }
if (!"".equals(uniInfom.getPersonalDepPro()) && uniInfom.getPersonalDepPro() != null) { if (!"".equals(uniInfom.getPersonalDepPro()) && uniInfom.getPersonalDepPro() != null) {
pstm.setString(18, uniInfom.getPersonalDepPro()); pstm.setString(18, uniInfom.getPersonalDepPro());
} else {
pstm.setString(18, "");
}
pstm.registerOutParameter(19, oracle.jdbc.OracleTypes.VARCHAR);
pstm.registerOutParameter(20, oracle.jdbc.OracleTypes.VARCHAR);
//执行数据库查询操作
pstm.execute();
//输出结果[第二个参数]
System.out.println(pstm.getString(19));
System.out.println(pstm.getString(20));
if ("".equals(pstm.getString(19)) || pstm.getString(19) == null) {
break;
} else {
try {
// 避免批量插入高并发,此处设置每次停顿5秒
Thread.currentThread().sleep(2000);
System.out.println("间隔2秒传一条数据调一次存储过程");
} catch (InterruptedException e) {
e.printStackTrace();
}
}
} else { } else {
System.out.println("oplocdistrict" + "不在规定的值里面,不调imp过程"); pstm.setString(18, "");
} }
pstm.registerOutParameter(19, oracle.jdbc.OracleTypes.VARCHAR);
pstm.registerOutParameter(20, oracle.jdbc.OracleTypes.VARCHAR);
//执行数据库查询操作
pstm.execute();
//输出结果[第二个参数]
System.out.println(pstm.getString(19));
System.out.println(pstm.getString(20));
if ("".equals(pstm.getString(19)) || pstm.getString(19) == null) {
break;
} else {
try {
// 避免批量插入高并发,此处设置每次停顿5秒
Thread.currentThread().sleep(2000);
System.out.println("间隔2秒传一条数据调一次存储过程");
} catch (InterruptedException e) {
e.printStackTrace();
}
}
} }
} }
pstm2.execute(); pstm2.execute();
} else { } else {
System.out.println("第三方返回的报文中data数据为空!"); System.out.println("第三方返回的报文中data数据为空!");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment