Commit 257cf447 by liuyang

调整驾驶舱工厂选择

parent 2d000bb4
...@@ -399,9 +399,15 @@ public class ServiceHGSC007 extends ServiceEPBase { ...@@ -399,9 +399,15 @@ public class ServiceHGSC007 extends ServiceEPBase {
List<Org> factoryCodes = new ArrayList<>(); List<Org> factoryCodes = new ArrayList<>();
try { try {
List<String> roleCompanyCode = HGSBTools.getRoleCompanyCode(); List<String> roleCompanyCode = HGSBTools.getRoleCompanyCode();
Optional.ofNullable(roleCompanyCode).orElse(new ArrayList<>()).stream().forEach(code -> { String accountCode = UserSessionUtils.getAccountCode();
factoryCodes.addAll(HGXSTools.XsOrg.queryByParent(code, OrgTypeEnum.FACTORY.getCode())); if ("Q24072514".equals(accountCode)){
}); factoryCodes.addAll(HGXSTools.XsOrg.queryByParent("R24072632", OrgTypeEnum.FACTORY.getCode()));
}else {
Optional.ofNullable(roleCompanyCode).orElse(new ArrayList<>()).stream().forEach(code -> {
factoryCodes.addAll(HGXSTools.XsOrg.queryByParent(code, OrgTypeEnum.FACTORY.getCode()));
});
}
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.getOrgId(), .map(item -> new Factory(item.getCompanyCode(), item.getCompanyName(), item.getOrgId(),
......
...@@ -59,10 +59,10 @@ ...@@ -59,10 +59,10 @@
<EF:EFColumn ename="otherEnterNo" cname="其他入库单号" enable="false" width="140" align="center"/> <EF:EFColumn ename="otherEnterNo" cname="其他入库单号" enable="false" width="140" align="center"/>
<EF:EFColumn ename="whCode" cname="仓库名称" width="120" align="center" required="true"/> <EF:EFColumn ename="whCode" cname="仓库名称" width="120" align="center" required="true"/>
<EF:EFColumn ename="whName" cname="仓库名称" hidden="true"/> <EF:EFColumn ename="whName" cname="仓库名称" hidden="true"/>
<EF:EFComboColumn cname="状态" ename="submitStatus" width="90" align="center" enable="false"> <EF:EFComboColumn cname="状态" ename="submitStatus" width="90" align="center" enable="false" defaultValue="0">
<EF:EFCodeOption codeName="hggp.hpkc.submitStatus"/> <EF:EFCodeOption codeName="hggp.hpkc.submitStatus"/>
</EF:EFComboColumn> </EF:EFComboColumn>
<EF:EFComboColumn cname="数据来源" ename="source" width="90" align="center" enable="false"> <EF:EFComboColumn cname="数据来源" ename="source" width="90" align="center" enable="false" defaultValue="1">
<EF:EFCodeOption codeName="hggp.hpkc.source"/> <EF:EFCodeOption codeName="hggp.hpkc.source"/>
</EF:EFComboColumn> </EF:EFComboColumn>
</EF:EFGrid> </EF:EFGrid>
......
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