Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
Y
yifu-mvp
Project
Project
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
fangxinjiang
yifu-mvp
Commits
4e7f54a3
Commit
4e7f54a3
authored
Sep 20, 2022
by
fangxinjiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
项目信息更新接口按项目编码更新
parent
83c46859
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
LExcelHeadForIoController.java
...1/yifu/archives/controller/LExcelHeadForIoController.java
+3
-1
TSettleDomainServiceImpl.java
.../yifu/archives/service/impl/TSettleDomainServiceImpl.java
+7
-1
No files found.
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/controller/LExcelHeadForIoController.java
View file @
4e7f54a3
...
...
@@ -71,7 +71,9 @@ public class LExcelHeadForIoController {
@GetMapping
(
"/getOwnList/{useCode}"
)
public
R
<
List
<
LExcelHeadForIo
>>
getOwnListByUseCode
(
@PathVariable
(
"useCode"
)
String
useCode
)
{
YifuUser
user
=
SecurityUtils
.
getUser
();
return
new
R
<>(
lExcelHeadForIoService
.
list
(
Wrappers
.<
LExcelHeadForIo
>
lambdaQuery
().
eq
(
LExcelHeadForIo:
:
getCreateUser
,
String
.
valueOf
(
user
.
getId
())).
eq
(
LExcelHeadForIo:
:
getUseCode
,
useCode
)));
return
new
R
<>(
lExcelHeadForIoService
.
list
(
Wrappers
.<
LExcelHeadForIo
>
lambdaQuery
()
.
eq
(
LExcelHeadForIo:
:
getCreateUser
,
String
.
valueOf
(
user
.
getId
()))
.
eq
(
LExcelHeadForIo:
:
getUseCode
,
useCode
)));
}
/**
...
...
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/service/impl/TSettleDomainServiceImpl.java
View file @
4e7f54a3
...
...
@@ -39,6 +39,7 @@ import com.yifu.cloud.plus.v1.yifu.common.dapr.util.UpmsDaprUtils;
import
lombok.RequiredArgsConstructor
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Transactional
;
import
java.time.LocalDateTime
;
import
java.util.ArrayList
;
...
...
@@ -119,6 +120,7 @@ public class TSettleDomainServiceImpl extends ServiceImpl<TSettleDomainMapper, T
return
sdList
;
}
@Transactional
@Override
public
R
updateProjectInfo
(
List
<
TSettleDomain
>
list
)
{
if
(
Common
.
isNotNull
(
list
))
{
...
...
@@ -153,8 +155,12 @@ public class TSettleDomainServiceImpl extends ServiceImpl<TSettleDomainMapper, T
saveForEkp
(
res
.
getData
().
getUserIds
(),
tSettleDomain
.
getId
());
}
}
tSettleDomainInfo
=
baseMapper
.
selectById
(
tSettleDomain
.
getId
());
tSettleDomainInfo
=
baseMapper
.
selectOne
(
Wrappers
.<
TSettleDomain
>
query
().
lambda
()
.
eq
(
TSettleDomain:
:
getDeleteFlag
,
CommonConstants
.
ZERO_STRING
)
.
eq
(
TSettleDomain:
:
getDepartNo
,
tSettleDomain
.
getDepartNo
())
.
last
(
CommonConstants
.
LAST_ONE_SQL
));
if
(
Common
.
isNotNull
(
tSettleDomainInfo
))
{
tSettleDomain
.
setId
(
tSettleDomainInfo
.
getId
());
baseMapper
.
updateById
(
tSettleDomain
);
}
else
{
baseMapper
.
insert
(
tSettleDomain
);
...
...
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