|
@@ -149,13 +149,15 @@ public class CommonCostServiceImpl implements CommonCostService {
|
|
|
private Map<String, Object> createModelMap() {
|
|
|
Map<String, Object> map = new HashMap<>();
|
|
|
map.put("formEntity", new HashMap<>());
|
|
|
- List<zTree> zTrees = getCostTypezTrees();
|
|
|
- map.put("costTypeJSON", JSON.toJSONString(zTrees));
|
|
|
+ List<zTree> zTrees = getCostTypezTrees(DictConstants.COMMON_COST_TYPE_NOSUB);
|
|
|
+ List<zTree> zTrees2 = getCostTypezTrees(DictConstants.COMMON_COST_TYPE);
|
|
|
+ map.put("costTypeNoSubJSON", JSON.toJSONString(zTrees));
|
|
|
+ map.put("costTypeJSON", JSON.toJSONString(zTrees2));
|
|
|
return map;
|
|
|
}
|
|
|
|
|
|
- private List<zTree> getCostTypezTrees() {
|
|
|
- List<DictDataRespDTO> dictDataRespDTOS = dictDataApi.getDictDataList(DictConstants.COMMON_COST_TYPE_NOSUB).getCheckedData();
|
|
|
+ private List<zTree> getCostTypezTrees(String dictType) {
|
|
|
+ List<DictDataRespDTO> dictDataRespDTOS = dictDataApi.getDictDataList(dictType).getCheckedData();
|
|
|
List<zTree> zTrees = new ArrayList<>();
|
|
|
for (DictDataRespDTO dictDataRespDTO : dictDataRespDTOS) {
|
|
|
zTree node = new zTree();
|
|
@@ -177,7 +179,9 @@ public class CommonCostServiceImpl implements CommonCostService {
|
|
|
map.put("projectXmbh", project.getXmbh());
|
|
|
map.put("projectZrbm", project.getZrbm());
|
|
|
}
|
|
|
- List<zTree> zTrees = getCostTypezTrees();
|
|
|
+ List<zTree> zTrees = getCostTypezTrees(DictConstants.COMMON_COST_TYPE_NOSUB);
|
|
|
+ map.put("costTypeNoSubJSON", JSON.toJSONString(zTrees));
|
|
|
+ List<zTree> zTrees2 = getCostTypezTrees(DictConstants.COMMON_COST_TYPE);
|
|
|
map.put("costTypeJSON", JSON.toJSONString(zTrees));
|
|
|
map.put("formEntity", entity);
|
|
|
map.put("z_work_flow", workflowUrl);
|
|
@@ -214,7 +218,7 @@ public class CommonCostServiceImpl implements CommonCostService {
|
|
|
// 更新
|
|
|
CommonCostDO updateObj = CommonCostConvert.INSTANCE.convert(updateReqVO);
|
|
|
commonCostDao.updateById(updateObj);
|
|
|
- //发生核减后修改流程描述
|
|
|
+ //发生核减后修改流程描述z
|
|
|
if(StringUtils.isNotEmpty(updateReqVO.getBz2())){
|
|
|
CommonCostDO entity = commonCostDao.selectById(updateReqVO.getId());
|
|
|
List<CommonCostDetailDO> detailList = commonCostDetailService.getListByCommonCostId(updateObj.getId());
|