Commit 77be3f11 by liuyang

修改驾驶舱查询工厂优化

parent abd3a0b4
...@@ -398,8 +398,8 @@ public class ServiceHGSC007 extends ServiceEPBase { ...@@ -398,8 +398,8 @@ public class ServiceHGSC007 extends ServiceEPBase {
}); });
List list = factoryCodes.stream() List list = factoryCodes.stream()
.filter(o -> com.baosight.hggp.util.StringUtils.equals(o.getOrgType(), OrgTypeEnum.FACTORY.getCode())) .filter(o -> com.baosight.hggp.util.StringUtils.equals(o.getOrgType(), OrgTypeEnum.FACTORY.getCode()))
.map(item -> new Factory(item.getCompanyCode(), item.getCompanyName(), item.getFactoryCode(), .map(item -> new Factory(item.getCompanyCode(), item.getCompanyName(), item.getOrgId(),
item.getFactoryName())).collect(Collectors.collectingAndThen( item.getOrgCname())).collect(Collectors.collectingAndThen(
Collectors.toMap(Factory::getFactoryCode, Function.identity(), Collectors.toMap(Factory::getFactoryCode, Function.identity(),
(oldValue, newValue) -> oldValue), (oldValue, newValue) -> oldValue),
// 将Map转回List // 将Map转回List
......
...@@ -1067,7 +1067,7 @@ ...@@ -1067,7 +1067,7 @@
</isNotEmpty> </isNotEmpty>
group by h2.process_code group by h2.process_code
) B on A.process_code = B.process_code ) B on A.process_code = B.process_code
where 1=1 where 1=1 and DELETE_FLAG = '0'
<isNotEmpty prepend=" AND " property="accountCode"> <isNotEmpty prepend=" AND " property="accountCode">
A.account_code = #accountCode# A.account_code = #accountCode#
</isNotEmpty> </isNotEmpty>
...@@ -1099,7 +1099,7 @@ ...@@ -1099,7 +1099,7 @@
</isNotEmpty> </isNotEmpty>
group by h2.process_code group by h2.process_code
) B on A.process_code = B.process_code ) B on A.process_code = B.process_code
where 1=1 where 1=1 and DELETE_FLAG = '0'
<isNotEmpty prepend=" AND " property="accountCode"> <isNotEmpty prepend=" AND " property="accountCode">
A.account_code = #accountCode# A.account_code = #accountCode#
</isNotEmpty> </isNotEmpty>
......
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