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

去掉行政区划校验

parent 0cfd1c71
......@@ -206,154 +206,139 @@ public class ProvidentFundServicesController {
//421181
//421182
//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()) {
for (UnitAccountOpeningInformation uniInfom : bills) {
if (!"".equals(uniInfom.getOplocdistrict()) && uniInfom.getOplocdistrict() != null) {
if (wo.contains(uniInfom.getOplocdistrict())) {
System.out.println("oplocdistrict" + "在规定的值里面,调imp过程");
if (!"".equals(uniInfom.getBusId()) && uniInfom.getBusId() != null) {
pstm.setString(1, uniInfom.getBusId());
} else {
pstm.setString(1, "");
}
System.out.println("oplocdistrict" + "在规定的值里面,调imp过程");
if (!"".equals(uniInfom.getBusId()) && uniInfom.getBusId() != null) {
pstm.setString(1, uniInfom.getBusId());
} else {
pstm.setString(1, "");
}
if (!"".equals(uniInfom.getUscc()) && uniInfom.getUscc() != null) {
pstm.setString(2, uniInfom.getUscc());
} else {
pstm.setString(2, "");
}
if (!"".equals(uniInfom.getUscc()) && uniInfom.getUscc() != null) {
pstm.setString(2, uniInfom.getUscc());
} else {
pstm.setString(2, "");
}
if (!"".equals(uniInfom.getEntName()) && uniInfom.getEntName() != null) {
pstm.setString(3, uniInfom.getEntName());
} else {
pstm.setString(3, "");
}
if (!"".equals(uniInfom.getEntName()) && uniInfom.getEntName() != null) {
pstm.setString(3, uniInfom.getEntName());
} else {
pstm.setString(3, "");
}
if (!"".equals(uniInfom.getDom()) && uniInfom.getDom() != null) {
pstm.setString(4, uniInfom.getDom());
} else {
pstm.setString(4, "");
}
if (!"".equals(uniInfom.getDom()) && uniInfom.getDom() != null) {
pstm.setString(4, uniInfom.getDom());
} else {
pstm.setString(4, "");
}
if (!"".equals(uniInfom.getEstDate()) && uniInfom.getEstDate() != null) {
pstm.setDate(5, new java.sql.Date(uniInfom.getEstDate().getTime()));
} else {
pstm.setString(5, "");
}
if (!"".equals(uniInfom.getEstDate()) && uniInfom.getEstDate() != null) {
pstm.setDate(5, new java.sql.Date(uniInfom.getEstDate().getTime()));
} else {
pstm.setString(5, "");
}
if (!"".equals(uniInfom.getLerep()) && uniInfom.getLerep() != null) {
pstm.setString(6, uniInfom.getLerep());
} else {
pstm.setString(6, "");
}
if (!"".equals(uniInfom.getLerep()) && uniInfom.getLerep() != null) {
pstm.setString(6, uniInfom.getLerep());
} else {
pstm.setString(6, "");
}
if (!"".equals(uniInfom.getCerType()) && uniInfom.getCerType() != null) {
pstm.setString(7, uniInfom.getCerType());
} else {
pstm.setString(7, "");
}
if (!"".equals(uniInfom.getCerType()) && uniInfom.getCerType() != null) {
pstm.setString(7, uniInfom.getCerType());
} else {
pstm.setString(7, "");
}
if (!"".equals(uniInfom.getCerNo()) && uniInfom.getCerNo() != null) {
pstm.setString(8, uniInfom.getCerNo());
} else {
pstm.setString(8, "");
}
if (!"".equals(uniInfom.getCerNo()) && uniInfom.getCerNo() != null) {
pstm.setString(8, uniInfom.getCerNo());
} else {
pstm.setString(8, "");
}
if (!"".equals(uniInfom.getOperatorName()) && uniInfom.getOperatorName() != null) {
pstm.setString(9, uniInfom.getOperatorName());
} else {
pstm.setString(9, "");
}
if (!"".equals(uniInfom.getOperatorName()) && uniInfom.getOperatorName() != null) {
pstm.setString(9, uniInfom.getOperatorName());
} else {
pstm.setString(9, "");
}
if (!"".equals(uniInfom.getOperatorCerNo()) && uniInfom.getOperatorCerNo() != null) {
pstm.setString(10, uniInfom.getOperatorCerNo());
} else {
pstm.setString(10, "");
}
if (!"".equals(uniInfom.getOperatorCerNo()) && uniInfom.getOperatorCerNo() != null) {
pstm.setString(10, uniInfom.getOperatorCerNo());
} else {
pstm.setString(10, "");
}
if (!"".equals(uniInfom.getOperatorPhone()) && uniInfom.getOperatorPhone() != null) {
pstm.setString(11, uniInfom.getOperatorPhone());
} else {
pstm.setString(11, "");
}
if (!"".equals(uniInfom.getOperatorPhone()) && uniInfom.getOperatorPhone() != null) {
pstm.setString(11, uniInfom.getOperatorPhone());
} else {
pstm.setString(11, "");
}
if (!"".equals(uniInfom.getOplocdistrict()) && uniInfom.getOplocdistrict() != null) {
pstm.setString(12, uniInfom.getOplocdistrict());
} else {
pstm.setString(12, "");
}
if (!"".equals(uniInfom.getOplocdistrict()) && uniInfom.getOplocdistrict() != null) {
pstm.setString(12, uniInfom.getOplocdistrict());
} else {
pstm.setString(12, "");
}
if (!"".equals(uniInfom.getUnitNature()) && uniInfom.getUnitNature() != null) {
pstm.setString(13, uniInfom.getUnitNature());
} else {
pstm.setString(13, "");
}
if (!"".equals(uniInfom.getUnitNature()) && uniInfom.getUnitNature() != null) {
pstm.setString(13, uniInfom.getUnitNature());
} else {
pstm.setString(13, "");
}
if (!"".equals(uniInfom.getEconomicType()) && uniInfom.getEconomicType() != null) {
pstm.setString(14, uniInfom.getEconomicType());
} else {
pstm.setString(14, "");
}
if (!"".equals(uniInfom.getEconomicType()) && uniInfom.getEconomicType() != null) {
pstm.setString(14, uniInfom.getEconomicType());
} else {
pstm.setString(14, "");
}
if (!"".equals(uniInfom.getIndustryphy()) && uniInfom.getIndustryphy() != null) {
pstm.setString(15, uniInfom.getIndustryphy());
} else {
pstm.setString(15, "");
}
if (!"".equals(uniInfom.getIndustryphy()) && uniInfom.getIndustryphy() != null) {
pstm.setString(15, uniInfom.getIndustryphy());
} else {
pstm.setString(15, "");
}
if (!"".equals(uniInfom.getUnitPayDay()) && uniInfom.getUnitPayDay() != null) {
pstm.setString(16, uniInfom.getUnitPayDay());
} else {
pstm.setString(16, "");
}
if (!"".equals(uniInfom.getUnitPayDay()) && uniInfom.getUnitPayDay() != null) {
pstm.setString(16, uniInfom.getUnitPayDay());
} else {
pstm.setString(16, "");
}
if (!"".equals(uniInfom.getUnitDepPro()) && uniInfom.getUnitDepPro() != null) {
pstm.setString(17, uniInfom.getUnitDepPro());
} else {
pstm.setString(17, "");
}
if (!"".equals(uniInfom.getUnitDepPro()) && uniInfom.getUnitDepPro() != null) {
pstm.setString(17, uniInfom.getUnitDepPro());
} else {
pstm.setString(17, "");
}
if (!"".equals(uniInfom.getPersonalDepPro()) && uniInfom.getPersonalDepPro() != null) {
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();
}
}
if (!"".equals(uniInfom.getPersonalDepPro()) && uniInfom.getPersonalDepPro() != null) {
pstm.setString(18, uniInfom.getPersonalDepPro());
} 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();
} else {
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