Commit be67c9ac by huluobin

# 更新

parent 33ca1bbd
......@@ -15,7 +15,6 @@ import com.blt.other.database.model.CostTypeDomain;
import com.blt.other.database.model.UserDomain;
import com.blt.other.module.auth.dao.UserDao;
import com.blt.other.module.cost.dao.*;
import com.blt.other.module.cost.model.AccountingSubject;
import com.blt.other.module.cost.model.CostDetailDomain;
import com.blt.other.module.cost.model.CostDomain;
import com.blt.other.module.cost.service.CostApiService;
......
......@@ -202,7 +202,9 @@ public abstract class AbstractCostPlanService implements CostPlanService {
BeanUtils.copyProperties(costPlanDomain, costDomain);
CostTypeDomain costTypeDomain = costTypeDao.selectById(costPlanDomain.getTypeId());
costDomain.setCostType(costTypeDomain);
if (costTypeDomain != null) {
costDomain.setCostType(costTypeDomain);
}
costDomain.setCompanyValue(costCompanyDao.selectByNo(costPlanDomain.getCompanyNo()).getValue());
costDomain.setAttach(costPlanDomain.getAttach());
......
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