企业端、股份端,相关方人员详情信息代码同步

2024年2月1日V1.0.53
liujun 2024-01-30 13:49:14 +08:00
parent e4dccddf68
commit 7cdaacec8c
2 changed files with 108 additions and 91 deletions

View File

@ -126,7 +126,7 @@ public class XgfUserController extends BaseController {
}
/**
*
*
*/
@RequestMapping(value = "/getApproveInfo")
@ResponseBody

View File

@ -335,6 +335,8 @@ public class XgfUserServiceImpl implements XgfUserService {
List<PageData> list = new ArrayList<>();
PageData zero = new PageData();
int index = Integer.parseInt(entity.getString("FLOWS_STEP"));
if (index >= 0){
zero.put("INDEX", "0");
zero.put("APPOINT_CORP_ID", entity.getString("APPOINT_ZERO_CORP_ID"));
zero.put("APPOINT_CORP_NAME", entity.getString("APPOINT_ZERO_CORP_NAME"));
@ -346,6 +348,8 @@ public class XgfUserServiceImpl implements XgfUserService {
zero.put("APPOINT_OPINION", entity.getString("APPOINT_ZERO_OPINION"));
zero.put("APPOINT_TIME", entity.getString("APPOINT_ZERO_TIME"));
list.add(zero);
}
if (index >= 1) {
PageData one = new PageData();
one.put("INDEX", "1");
one.put("APPOINT_CORP_ID", entity.getString("APPOINT_ONE_CORP_ID"));
@ -358,6 +362,8 @@ public class XgfUserServiceImpl implements XgfUserService {
one.put("APPOINT_OPINION", entity.getString("APPOINT_ONE_OPINION"));
one.put("APPOINT_TIME", entity.getString("APPOINT_ONE_TIME"));
list.add(one);
}
if (index >= 2) {
PageData two = new PageData();
two.put("INDEX", "2");
two.put("APPOINT_CORP_ID", entity.getString("APPOINT_TWO_CORP_ID"));
@ -370,6 +376,8 @@ public class XgfUserServiceImpl implements XgfUserService {
two.put("APPOINT_OPINION", entity.getString("APPOINT_TWO_OPINION"));
two.put("APPOINT_TIME", entity.getString("APPOINT_TWO_TIME"));
list.add(two);
}
if (index >= 3) {
PageData three = new PageData();
three.put("INDEX", "3");
three.put("APPOINT_CORP_ID", entity.getString("APPOINT_THREE_CORP_ID"));
@ -382,6 +390,8 @@ public class XgfUserServiceImpl implements XgfUserService {
three.put("APPOINT_OPINION", entity.getString("APPOINT_THREE_OPINION"));
three.put("APPOINT_TIME", entity.getString("APPOINT_THREE_TIME"));
list.add(three);
}
if (index >= 4) {
PageData four = new PageData();
four.put("INDEX", "4");
four.put("APPOINT_CORP_ID", entity.getString("APPOINT_FOUR_CORP_ID"));
@ -394,6 +404,8 @@ public class XgfUserServiceImpl implements XgfUserService {
four.put("APPOINT_OPINION", entity.getString("APPOINT_FOUR_OPINION"));
four.put("APPOINT_TIME", entity.getString("APPOINT_FOUR_TIME"));
list.add(four);
}
if (index >= 5) {
PageData five = new PageData();
five.put("INDEX", "5");
five.put("APPOINT_CORP_ID", entity.getString("APPOINT_FIVE_CORP_ID"));
@ -406,6 +418,8 @@ public class XgfUserServiceImpl implements XgfUserService {
five.put("APPOINT_OPINION", entity.getString("APPOINT_FIVE_OPINION"));
five.put("APPOINT_TIME", entity.getString("APPOINT_FIVE_TIME"));
list.add(five);
}
if (index >= 6) {
PageData six = new PageData();
six.put("INDEX", "6");
six.put("APPOINT_CORP_ID", entity.getString("APPOINT_SIX_CORP_ID"));
@ -418,6 +432,7 @@ public class XgfUserServiceImpl implements XgfUserService {
six.put("APPOINT_OPINION", entity.getString("APPOINT_SIX_OPINION"));
six.put("APPOINT_TIME", entity.getString("APPOINT_SIX_TIME"));
list.add(six);
}
PageData info = new PageData();
info.put("info", list);
info.put("STEP", entity.getString("FLOWS_STEP"));
@ -474,6 +489,8 @@ public class XgfUserServiceImpl implements XgfUserService {
private String handle(PageData info, PageData flows) throws Exception {
PageData condition = new PageData();
condition.put("CORPINFO_ID", Jurisdiction.getCORPINFO_ID());
PageData corpEntity = corpInfoMapper.findById(condition);
switch (Integer.parseInt(flows.get("FLOWS_STEP").toString())) {
case 0: {// 相关方端推送数据至企业端
condition.clear();
@ -518,8 +535,8 @@ public class XgfUserServiceImpl implements XgfUserService {
condition.clear();
condition.put("XGF_USER_ID", flows.getString("FLOWS_ID"));
PageData entity = xgfUserMapper.findById(condition);
flows.put("APPOINT_ONE_CORP_ID", "1");
flows.put("APPOINT_ONE_CORP_NAME", "秦港股份公司");
flows.put("APPOINT_ONE_CORP_ID", Jurisdiction.getUSER_ID());
flows.put("APPOINT_ONE_CORP_NAME", entity.getString("CORP_NAME"));
flows.put("APPOINT_ONE_TIME", DateUtil.getTime());
flows.put("APPOINT_ONE_STATUS", info.getString("STATUS"));
flows.put("APPOINT_ONE_OPINION", info.getString("OPINION"));
@ -571,7 +588,7 @@ public class XgfUserServiceImpl implements XgfUserService {
condition.put("XGF_USER_ID", flows.getString("FLOWS_ID"));
PageData entity = xgfUserMapper.findById(condition);
flows.put("APPOINT_TWO_CORP_ID", Jurisdiction.getCORPINFO_ID());
flows.put("APPOINT_TWO_CORP_NAME", "秦港股份公司");
flows.put("APPOINT_TWO_CORP_NAME", entity.getString("CORP_NAME"));
flows.put("APPOINT_TWO_TIME", DateUtil.getTime());
flows.put("APPOINT_TWO_STATUS", info.getString("STATUS"));
flows.put("APPOINT_TWO_OPINION", info.getString("OPINION"));
@ -627,8 +644,8 @@ public class XgfUserServiceImpl implements XgfUserService {
condition.clear();
condition.put("XGF_USER_ID", flows.getString("FLOWS_ID"));
PageData entity = xgfUserMapper.findById(condition);
flows.put("APPOINT_THREE_CORP_ID", "1");
flows.put("APPOINT_THREE_CORP_NAME", "秦港股份公司");
flows.put("APPOINT_THREE_CORP_ID", Jurisdiction.getCORPINFO_ID());
flows.put("APPOINT_THREE_CORP_NAME", entity.getString("CORP_NAME"));
flows.put("APPOINT_THREE_TIME", DateUtil.getTime());
flows.put("APPOINT_THREE_STATUS", info.getString("STATUS"));
flows.put("APPOINT_THREE_OPINION", info.getString("OPINION"));
@ -682,8 +699,8 @@ public class XgfUserServiceImpl implements XgfUserService {
condition.clear();
condition.put("XGF_USER_ID", flows.getString("FLOWS_ID"));
PageData entity = xgfUserMapper.findById(condition);
flows.put("APPOINT_FOUR_CORP_ID", "1");
flows.put("APPOINT_FOUR_CORP_NAME", "秦港股份公司");
flows.put("APPOINT_FOUR_CORP_ID", Jurisdiction.getCORPINFO_ID());
flows.put("APPOINT_FOUR_CORP_NAME", entity.getString("CORP_NAME"));
flows.put("APPOINT_FOUR_TIME", DateUtil.getTime());
flows.put("APPOINT_FOUR_STATUS", info.getString("STATUS"));
flows.put("APPOINT_FOUR_OPINION", info.getString("OPINION"));