Commit 41a60e40 by huluobin

# update

parent a6028152
......@@ -2,6 +2,7 @@ package com.blt.other.module.cost.service.impl;
import com.alibaba.excel.EasyExcel;
import com.bailuntec.common.BeanUtils;
import com.bailuntec.common.StringUtils;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.IdWorker;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
......@@ -89,7 +90,7 @@ public class CostTypeServiceImpl extends ServiceImpl<CostTypeDao, CostTypeDomain
log.info("{} 更新费用类型", oaUser.getUserName());
if (req.getTypeNo() != null) {
if (StringUtils.isNotEmpty(req.getTypeNo())) {
CostTypeDomain costTypeDomain = baseMapper.selectByNo(req.getTypeNo());
if (costTypeDomain.getCostTemplateType().equals(CostTypeDomain.feeType)) {
......@@ -114,11 +115,12 @@ public class CostTypeServiceImpl extends ServiceImpl<CostTypeDao, CostTypeDomain
costTypeDomain.setUpdateUser(oaUser.getUserName());
if (req.getAccountingSubjectId() != null) {
AccountingSubject accountingSubject = accountingSubjectMapper.selectById(req.getAccountingSubjectId());
costTypeDomain.setAccountingSubjectId(req.getAccountingSubjectId());
costTypeDomain.setAccountingSubjectNo(accountingSubject.getSubjectNo());
}
costTypeDomain.setIsManageCost(req.getIsManageCost());
log.info("{} 更新会计一级科目", oaUser.getUserName());
costTypeDomain.setLastUpdateTime(LocalDateTime.now());
this.updateById(costTypeDomain);
......
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