662a5ff2 by 肖初晴

【DAOP-1.0】企业认证

【功能点】测试问题处理
1 parent b9c0799e
......@@ -165,32 +165,6 @@ public class EnterpriseServiceImpl extends FlowAbstractImpl implements Enterpris
return convertToVO(list.get(0));
}
public static void test(){
List<ChangeApproveBean> beanList = new ArrayList<>();
ChangeApproveBean bean = new ChangeApproveBean();
MfEnterprise oldBean = new MfEnterprise();
oldBean.setBankTaxNo("999");
oldBean.setTenantName("武汉小米");
oldBean.setCreateTime(new Date());
MfEnterprise newBean = new MfEnterprise();
newBean.setBankTaxNo("666");
newBean.setTenantName("武汉大米");
newBean.setCreateTime(new Date());
bean.oldBean = oldBean;
bean.newBean = newBean;
beanList.add(bean);
List<ChangeInfoVO> list = new ArrayList<>();
try {
list = ChangeInfoUtil.getChangeList(beanList);
} catch (IllegalAccessException e) {
e.printStackTrace();
}
log.info("变更内容:{}", JSON.toJSONString(list));
}
/** 准备变更对比实体 */
private List<ChangeApproveBean> getChangeBeanList(List<MfEnterpriseChangeApprove> list){
List<ChangeApproveBean> beanList = new ArrayList<>();
......@@ -673,6 +647,9 @@ public class EnterpriseServiceImpl extends FlowAbstractImpl implements Enterpris
EnterpriseRSVO vo = csbrBeanUtil.convert(entity, EnterpriseRSVO.class);
//流程数据处理
vo.setApproveVO(approvalFlowUtil.getApprovalCrossTenantInfo(entity.getGuid()));
if(CollectionUtils.isEmpty(ChangeInfoUtil.areaList)){
ChangeInfoUtil.areaList = configureFeign.getBoroughCodeName().getData();
}
vo.setVenue(ChangeInfoUtil.getVenue(vo.getProvince(),vo.getCity(),vo.getDistrict()));
vo.setBusinessLicenseStartEnd(ChangeInfoUtil.getStartEnd(vo.getBusinessLicenseTerm(),vo.getBusinessLicenseStartDate(),vo.getBusinessLicenseEndDate()));
return vo;
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!