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
65599e10
Commit
65599e10
authored
Jan 25, 2021
by
huluobin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
# update
parent
92477396
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
2 deletions
+15
-2
CostTypeServiceImpl.java
...t/other/module/cost/service/impl/CostTypeServiceImpl.java
+15
-2
No files found.
cost-service/src/main/java/com/blt/other/module/cost/service/impl/CostTypeServiceImpl.java
View file @
65599e10
...
@@ -2,7 +2,6 @@ package com.blt.other.module.cost.service.impl;
...
@@ -2,7 +2,6 @@ package com.blt.other.module.cost.service.impl;
import
com.alibaba.excel.EasyExcel
;
import
com.alibaba.excel.EasyExcel
;
import
com.bailuntec.common.BeanUtils
;
import
com.bailuntec.common.BeanUtils
;
import
com.bailuntec.common.StringUtils
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.core.toolkit.IdWorker
;
import
com.baomidou.mybatisplus.core.toolkit.IdWorker
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
...
@@ -85,11 +84,25 @@ public class CostTypeServiceImpl extends ServiceImpl<CostTypeDao, CostTypeDomain
...
@@ -85,11 +84,25 @@ public class CostTypeServiceImpl extends ServiceImpl<CostTypeDao, CostTypeDomain
log
.
info
(
"{} 更新费用类型"
,
oaUser
.
getUserName
());
log
.
info
(
"{} 更新费用类型"
,
oaUser
.
getUserName
());
if
(
req
.
getTypeNo
()
!=
null
)
{
if
(
req
.
getTypeNo
()
!=
null
)
{
CostTypeDomain
costTypeDomain
=
baseMapper
.
selectByNo
(
req
.
getTypeNo
());
CostTypeDomain
costTypeDomain
=
baseMapper
.
selectByNo
(
req
.
getTypeNo
());
if
(
costTypeDomain
.
getCostTemplateType
().
equals
(
CostTypeDomain
.
feeType
))
{
CostTypeDomain
lendCostTypeDomain
=
baseMapper
.
selectByNameAndType
(
costTypeDomain
.
getTypeName
(),
CostTypeDomain
.
feeType
);
lendCostTypeDomain
.
setTypeName
(
req
.
getTypeName
().
trim
());
lendCostTypeDomain
.
setDescription
(
req
.
getDescription
());
lendCostTypeDomain
.
setUpdateUserId
(
oaUser
.
getOaUserId
());
lendCostTypeDomain
.
setUpdateUser
(
oaUser
.
getUserName
());
lendCostTypeDomain
.
setLastUpdateTime
(
LocalDateTime
.
now
());
if
(
req
.
getAccountingSubjectId
()
!=
null
)
{
lendCostTypeDomain
.
setAccountingSubjectId
(
req
.
getAccountingSubjectId
());
}
lendCostTypeDomain
.
setIsManageCost
(
req
.
getIsManageCost
());
this
.
updateById
(
lendCostTypeDomain
);
}
costTypeDomain
.
setTypeName
(
req
.
getTypeName
().
trim
());
costTypeDomain
.
setTypeName
(
req
.
getTypeName
().
trim
());
costTypeDomain
.
setDescription
(
req
.
getDescription
());
costTypeDomain
.
setDescription
(
req
.
getDescription
());
costTypeDomain
.
setUpdateUserId
(
oaUser
.
getOaUserId
());
costTypeDomain
.
setUpdateUserId
(
oaUser
.
getOaUserId
());
costTypeDomain
.
setUpdateUser
(
oaUser
.
getUserName
());
costTypeDomain
.
setUpdateUser
(
oaUser
.
getUserName
());
costTypeDomain
.
setLastUpdateTime
(
LocalDateTime
.
now
());
if
(
req
.
getAccountingSubjectId
()
!=
null
)
{
if
(
req
.
getAccountingSubjectId
()
!=
null
)
{
costTypeDomain
.
setAccountingSubjectId
(
req
.
getAccountingSubjectId
());
costTypeDomain
.
setAccountingSubjectId
(
req
.
getAccountingSubjectId
());
...
...
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