Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
bailuntec-cost
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
huluobin
bailuntec-cost
Commits
41a60e40
Commit
41a60e40
authored
Jan 26, 2021
by
huluobin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
# update
parent
a6028152
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
CostTypeServiceImpl.java
...t/other/module/cost/service/impl/CostTypeServiceImpl.java
+4
-2
No files found.
cost-service/src/main/java/com/blt/other/module/cost/service/impl/CostTypeServiceImpl.java
View file @
41a60e40
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment