Commit 3e8ff661 authored by 张俊's avatar 张俊

市监局单位变更、单位注销入参调整

parent 3ce6d9bf
...@@ -46,7 +46,7 @@ public class DeptInfoUpdateService { ...@@ -46,7 +46,7 @@ public class DeptInfoUpdateService {
* *
* @return * @return
*/ */
public void deptInfoUpdatePull(List<UnitAccountOpeningInformation> bills) { public void deptInfoUpdatePull(String startTime, List<UnitAccountOpeningInformation> bills) {
if (CollectionUtils.isEmpty(bills)) { if (CollectionUtils.isEmpty(bills)) {
return; return;
} }
...@@ -64,11 +64,13 @@ public class DeptInfoUpdateService { ...@@ -64,11 +64,13 @@ public class DeptInfoUpdateService {
if (StringUtils.isEmpty(uniInfom.getOplocdistrict())) { if (StringUtils.isEmpty(uniInfom.getOplocdistrict())) {
continue; continue;
} }
// 业务标识 // 统一社会信用、业务标识
String busId = StringUtils.hasText(uniInfom.getBusId()) ? uniInfom.getBusId() : ""; String busId = StringUtils.hasText(uniInfom.getBusId()) ? uniInfom.getBusId() : "";
dwxxbgImp.setString(1, busId);
// 统一社会信用
String uscc = StringUtils.hasText(uniInfom.getUscc()) ? uniInfom.getUscc() : ""; String uscc = StringUtils.hasText(uniInfom.getUscc()) ? uniInfom.getUscc() : "";
if (StringUtils.isEmpty(busId)) {
busId = uscc + startTime.substring(0, 8);
}
dwxxbgImp.setString(1, busId);
dwxxbgImp.setString(2, uscc); dwxxbgImp.setString(2, uscc);
// 企业名称 // 企业名称
String entName = StringUtils.hasText(uniInfom.getEntName()) ? uniInfom.getEntName() : ""; String entName = StringUtils.hasText(uniInfom.getEntName()) ? uniInfom.getEntName() : "";
......
...@@ -45,7 +45,7 @@ public class DeptLogoutService { ...@@ -45,7 +45,7 @@ public class DeptLogoutService {
* *
* @return * @return
*/ */
public void deptLogoutPull(List<UnitAccountOpeningInformation> bills) { public void deptLogoutPull(String startTime, List<UnitAccountOpeningInformation> bills) {
if (CollectionUtils.isEmpty(bills)) { if (CollectionUtils.isEmpty(bills)) {
return; return;
} }
...@@ -63,11 +63,13 @@ public class DeptLogoutService { ...@@ -63,11 +63,13 @@ public class DeptLogoutService {
if (StringUtils.isEmpty(uniInfom.getOplocdistrict())) { if (StringUtils.isEmpty(uniInfom.getOplocdistrict())) {
continue; continue;
} }
// 业务标识 // 业务标识、统一社会信用
String busId = StringUtils.hasText(uniInfom.getBusId()) ? uniInfom.getBusId() : ""; String busId = StringUtils.hasText(uniInfom.getBusId()) ? uniInfom.getBusId() : "";
dwxhImp.setString(1, busId);
// 统一社会信用
String uscc = StringUtils.hasText(uniInfom.getUscc()) ? uniInfom.getUscc() : ""; String uscc = StringUtils.hasText(uniInfom.getUscc()) ? uniInfom.getUscc() : "";
if (StringUtils.isEmpty(busId)) {
busId = uscc + startTime.substring(0, 8);
}
dwxhImp.setString(1, busId);
dwxhImp.setString(2, uscc); dwxhImp.setString(2, uscc);
// 企业名称 // 企业名称
String entName = StringUtils.hasText(uniInfom.getEntName()) ? uniInfom.getEntName() : ""; String entName = StringUtils.hasText(uniInfom.getEntName()) ? uniInfom.getEntName() : "";
......
...@@ -67,13 +67,13 @@ public class OpenAccountService { ...@@ -67,13 +67,13 @@ public class OpenAccountService {
*/ */
public void syncDeptInfo() throws Exception { public void syncDeptInfo() throws Exception {
JSONObject jsonObject = new JSONObject(); JSONObject jsonObject = new JSONObject();
if ("1".equals(timetype)) {// 表示正式环境 // 表示正式环境
jsonObject.put("startTime", InternalUtils.currentTime(0));// 正式环境 if ("1".equals(timetype)) {
jsonObject.put("endTime", InternalUtils.currentTime(24));// 正式环境 startTime = InternalUtils.currentTime(0);
} else if ("2".equals(timetype)) {// 表示测试环境或本地环境 endTime = InternalUtils.currentTime(24);
jsonObject.put("startTime", startTime);// 测试环境或本地环境
jsonObject.put("endTime", endTime);// 测试环境或本地环境
} }
jsonObject.put("startTime", startTime);
jsonObject.put("endTime", endTime);
jsonObject.put("app_id", "eb453ca78b354f2c9163a703530f5186"); jsonObject.put("app_id", "eb453ca78b354f2c9163a703530f5186");
jsonObject.put("app_secret", "9a31b84878654a72a999e38ef55aa186"); jsonObject.put("app_secret", "9a31b84878654a72a999e38ef55aa186");
String str = jsonObject.toString(); String str = jsonObject.toString();
...@@ -107,8 +107,8 @@ public class OpenAccountService { ...@@ -107,8 +107,8 @@ public class OpenAccountService {
} }
} }
openAccountPull(openAccountList); openAccountPull(openAccountList);
deptInfoUpdateService.deptInfoUpdatePull(deptInfoUpdateList); deptInfoUpdateService.deptInfoUpdatePull(startTime, deptInfoUpdateList);
deptLogoutService.deptLogoutPull(deptLogoutList); deptLogoutService.deptLogoutPull(startTime, deptLogoutList);
} }
/** /**
......
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