Commit f786ad1b by HlQ

[fix] 新项目管理列表不显示项目经理 bug 修复

1 parent 251285ca
......@@ -113,6 +113,7 @@ public class ContractServiceImpl extends MPJBaseServiceImpl<ContractMapper, Cont
.map(RContractUser::getUsername)
.ifPresent(vo::setSaleName)));
completeStoreName(contractVOList.getRecords());
if (!result.roleCodeList.contains("admin") && !result.roleCodeList.contains("xiaoshou") && !result.roleCodeList.contains("caiwu")) {
contractVOList.getRecords().forEach(vo -> {
vo.setTotalAmount(null);
......@@ -123,7 +124,6 @@ public class ContractServiceImpl extends MPJBaseServiceImpl<ContractMapper, Cont
vo.setDiffAmount(null);
});
}
completeStoreName(contractVOList.getRecords());
return contractVOList;
}
......@@ -186,6 +186,7 @@ public class ContractServiceImpl extends MPJBaseServiceImpl<ContractMapper, Cont
.map(RContractUser::getUsername)
.ifPresent(vo::setSaleName)));
completeStoreName(contractVOList.getRecords());
contractVOList.getRecords().forEach(vo -> {
vo.setCustomerName(null);
vo.setTotalAmount(null);
......@@ -201,7 +202,6 @@ public class ContractServiceImpl extends MPJBaseServiceImpl<ContractMapper, Cont
storeVOList.forEach(storeVO -> storeVO.setMainUser(storeId2UserIdMap.getOrDefault(storeVO.getId(), null)));
vo.setStoreVOS(storeVOList);
});
completeStoreName(contractVOList.getRecords());
return contractVOList;
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!