Commit cda66980 by jianshuqin

增加功能:费用单增加费用大类

parent ebf8776e
package com.blt.other.module.cost.service.impl; package com.blt.other.module.cost.service.impl;
import com.bailuntec.common.StringUtils;
import com.bailuntec.cost.api.dto.*; import com.bailuntec.cost.api.dto.*;
import com.bailuntec.cost.api.request.ManageCostListReq; import com.bailuntec.cost.api.request.ManageCostListReq;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
...@@ -200,7 +201,7 @@ public class CostApiServiceImpl implements CostApiService { ...@@ -200,7 +201,7 @@ public class CostApiServiceImpl implements CostApiService {
} }
costDomain.setTypeNo(costTypeDomain.getTypeNo()); costDomain.setTypeNo(costTypeDomain.getTypeNo());
costDomain.setTypeName(costTypeDomain.getTypeName()); costDomain.setTypeName(costTypeDomain.getTypeName());
costDomain.setCategoryName(costTypeDomain.getCategoryName()); costDomain.setCategoryName(StringUtils.isNotBlank(costTypeDomain.getCategoryName()) ? costTypeDomain.getCategoryName() : (StringUtils.isNotBlank(costDomain.getProject()) && !costDomain.getProject().equals("集团") ? "管理成本" : "日常费用"));
costDomain.setAccountingSubjectId(costTypeDomain.getAccountingSubjectId()); costDomain.setAccountingSubjectId(costTypeDomain.getAccountingSubjectId());
costDomain.setAccountingSubjectNo(costTypeDomain.getAccountingSubjectNo()); costDomain.setAccountingSubjectNo(costTypeDomain.getAccountingSubjectNo());
costDomain.setNsAccountingSubjectId(costTypeDomain.getNsAccountingSubjectId()); costDomain.setNsAccountingSubjectId(costTypeDomain.getNsAccountingSubjectId());
...@@ -252,7 +253,7 @@ public class CostApiServiceImpl implements CostApiService { ...@@ -252,7 +253,7 @@ public class CostApiServiceImpl implements CostApiService {
} }
costDomain.setTypeNo(costTypeDomain.getTypeNo()); costDomain.setTypeNo(costTypeDomain.getTypeNo());
costDomain.setTypeName(costTypeDomain.getTypeName()); costDomain.setTypeName(costTypeDomain.getTypeName());
costDomain.setCategoryName(costTypeDomain.getCategoryName()); costDomain.setCategoryName(StringUtils.isNotBlank(costTypeDomain.getCategoryName()) ? costTypeDomain.getCategoryName() : (StringUtils.isNotBlank(costDomain.getProject()) && !costDomain.getProject().equals("集团") ? "管理成本" : "日常费用"));
costDomain.setAccountingSubjectId(costTypeDomain.getAccountingSubjectId()); costDomain.setAccountingSubjectId(costTypeDomain.getAccountingSubjectId());
costDomain.setAccountingSubjectNo(costTypeDomain.getAccountingSubjectNo()); costDomain.setAccountingSubjectNo(costTypeDomain.getAccountingSubjectNo());
costDomain.setNsAccountingSubjectId(costTypeDomain.getNsAccountingSubjectId()); costDomain.setNsAccountingSubjectId(costTypeDomain.getNsAccountingSubjectId());
......
...@@ -99,7 +99,7 @@ public class CostDetailServiceImpl extends ServiceImpl<CostDetailDao, CostDetail ...@@ -99,7 +99,7 @@ public class CostDetailServiceImpl extends ServiceImpl<CostDetailDao, CostDetail
costDetailDomain.setTypeId(costTypeDomain.getId()); costDetailDomain.setTypeId(costTypeDomain.getId());
costDetailDomain.setTypeNo(costTypeDomain.getTypeNo()); costDetailDomain.setTypeNo(costTypeDomain.getTypeNo());
costDetailDomain.setTypeName(costTypeDomain.getTypeName()); costDetailDomain.setTypeName(costTypeDomain.getTypeName());
costDetailDomain.setCategoryName(costTypeDomain.getCategoryName()); costDetailDomain.setCategoryName(StringUtils.isNotBlank(costTypeDomain.getCategoryName()) ? costTypeDomain.getCategoryName() : (StringUtils.isNotBlank(costDetailDomain.getProject()) && !costDetailDomain.getProject().equals("集团") ? "管理成本" : "日常费用"));
costDetailDomain.setAccountingSubjectNo(accountingSubject.getSubjectNo()); costDetailDomain.setAccountingSubjectNo(accountingSubject.getSubjectNo());
costDetailDomain.setAccountingSubjectName(accountingSubject.getName()); costDetailDomain.setAccountingSubjectName(accountingSubject.getName());
} }
......
...@@ -185,7 +185,7 @@ public abstract class AbstractCostService implements CostService { ...@@ -185,7 +185,7 @@ public abstract class AbstractCostService implements CostService {
if (accountingSubject != null) { if (accountingSubject != null) {
costDomain.setTypeNo(costDomain.getTypeNo()); costDomain.setTypeNo(costDomain.getTypeNo());
costDomain.setTypeName(costTypeDomain.getTypeName()); costDomain.setTypeName(costTypeDomain.getTypeName());
costDomain.setCategoryName(costTypeDomain.getCategoryName()); costDomain.setCategoryName(StringUtils.isNotBlank(costTypeDomain.getCategoryName()) ? costTypeDomain.getCategoryName() : (StringUtils.isNotBlank(costDomain.getProject()) && !costDomain.getProject().equals("集团") ? "管理成本" : "日常费用"));
costDomain.setAccountingSubjectNo(accountingSubject.getSubjectNo()); costDomain.setAccountingSubjectNo(accountingSubject.getSubjectNo());
costDomain.setAccountingSubjectName(accountingSubject.getName()); costDomain.setAccountingSubjectName(accountingSubject.getName());
} }
......
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