【DAOP-1.0】企业认证
【功能点】测试问题处理
Showing
2 changed files
with
7 additions
and
6 deletions
... | @@ -17,6 +17,7 @@ import com.csbr.cloud.workflow.domain.vo.appove.FlowRQBaseVO; | ... | @@ -17,6 +17,7 @@ import com.csbr.cloud.workflow.domain.vo.appove.FlowRQBaseVO; |
17 | import com.csbr.cloud.workflow.util.ApprovalFlowUtil; | 17 | import com.csbr.cloud.workflow.util.ApprovalFlowUtil; |
18 | import com.csbr.cloud.workflow.util.FlowAbstractImpl; | 18 | import com.csbr.cloud.workflow.util.FlowAbstractImpl; |
19 | import com.csbr.qingcloud.portal.domain.vo.*; | 19 | import com.csbr.qingcloud.portal.domain.vo.*; |
20 | import com.csbr.qingcloud.portal.feign.ConfigureFeign; | ||
20 | import com.csbr.qingcloud.portal.feign.PersonelFeign; | 21 | import com.csbr.qingcloud.portal.feign.PersonelFeign; |
21 | import com.csbr.qingcloud.portal.feign.UserFeign; | 22 | import com.csbr.qingcloud.portal.feign.UserFeign; |
22 | import com.csbr.qingcloud.portal.mybatis.entity.MfDemand; | 23 | import com.csbr.qingcloud.portal.mybatis.entity.MfDemand; |
... | @@ -81,6 +82,9 @@ public class EnterpriseServiceImpl extends FlowAbstractImpl implements Enterpris | ... | @@ -81,6 +82,9 @@ public class EnterpriseServiceImpl extends FlowAbstractImpl implements Enterpris |
81 | @Resource | 82 | @Resource |
82 | private UserFeign userFeign; | 83 | private UserFeign userFeign; |
83 | 84 | ||
85 | @Resource | ||
86 | private ConfigureFeign configureFeign; | ||
87 | |||
84 | /** | 88 | /** |
85 | * 企业信息分页查询 | 89 | * 企业信息分页查询 |
86 | * @author xcq | 90 | * @author xcq |
... | @@ -140,6 +144,9 @@ public class EnterpriseServiceImpl extends FlowAbstractImpl implements Enterpris | ... | @@ -140,6 +144,9 @@ public class EnterpriseServiceImpl extends FlowAbstractImpl implements Enterpris |
140 | } | 144 | } |
141 | List<ChangeApproveBean> beanList = getChangeBeanList(approveList); | 145 | List<ChangeApproveBean> beanList = getChangeBeanList(approveList); |
142 | try { | 146 | try { |
147 | if(CollectionUtils.isEmpty(ChangeInfoUtil.areaList)){ | ||
148 | ChangeInfoUtil.areaList = configureFeign.getBoroughCodeName().getData(); | ||
149 | } | ||
143 | return ChangeInfoUtil.getChangeList(beanList); | 150 | return ChangeInfoUtil.getChangeList(beanList); |
144 | } catch (IllegalAccessException e) { | 151 | } catch (IllegalAccessException e) { |
145 | e.printStackTrace(); | 152 | e.printStackTrace(); | ... | ... |
... | @@ -23,9 +23,6 @@ import java.util.stream.Collectors; | ... | @@ -23,9 +23,6 @@ import java.util.stream.Collectors; |
23 | @Component | 23 | @Component |
24 | public class ChangeInfoUtil { | 24 | public class ChangeInfoUtil { |
25 | 25 | ||
26 | @Resource | ||
27 | private static ConfigureFeign configureFeign; | ||
28 | |||
29 | public static List<BoroughPOJO> areaList; | 26 | public static List<BoroughPOJO> areaList; |
30 | 27 | ||
31 | /** 计算变更信息 */ | 28 | /** 计算变更信息 */ |
... | @@ -125,9 +122,6 @@ public class ChangeInfoUtil { | ... | @@ -125,9 +122,6 @@ public class ChangeInfoUtil { |
125 | } | 122 | } |
126 | 123 | ||
127 | private static String getName(String code){ | 124 | private static String getName(String code){ |
128 | if(CollectionUtils.isEmpty(areaList)){ | ||
129 | areaList = configureFeign.getBoroughCodeName().getData(); | ||
130 | } | ||
131 | List<String> names = areaList.stream().filter(x->x.getCode().equals(code)).map(BoroughPOJO::getName).collect(Collectors.toList()); | 125 | List<String> names = areaList.stream().filter(x->x.getCode().equals(code)).map(BoroughPOJO::getName).collect(Collectors.toList()); |
132 | if(CollectionUtils.isEmpty(names)){ | 126 | if(CollectionUtils.isEmpty(names)){ |
133 | return ""; | 127 | return ""; | ... | ... |
-
Please register or sign in to post a comment