Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dsk-operate-sys-cscec
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
fulixin
dsk-operate-sys-cscec
Commits
ac9d2d50
Commit
ac9d2d50
authored
Apr 18, 2024
by
施翔轲
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bug
parent
6ca87d02
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
CbProjectRecordController.java
...a/com/dsk/cscec/controller/CbProjectRecordController.java
+5
-1
IDProjectServiceImpl.java
...java/com/dsk/cscec/service/impl/IDProjectServiceImpl.java
+3
-1
No files found.
dsk-module/dsk-biz-api/src/main/java/com/dsk/cscec/controller/CbProjectRecordController.java
View file @
ac9d2d50
...
...
@@ -43,7 +43,11 @@ public class CbProjectRecordController extends BaseController {
*/
@GetMapping
(
"/checkProjectCodeExist"
)
public
R
<
Boolean
>
checkProjectCodeExist
(
@Validated
CbCheckProjectCodeExistBo
checkBo
)
{
return
R
.
ok
(
dProjectService
.
checkProjectCodeExist
(
checkBo
));
if
(
dProjectService
.
checkProjectCodeExist
(
checkBo
))
{
return
R
.
ok
(
true
);
}
else
{
return
R
.
fail
(
"IPM项目编码无效"
,
false
);
}
}
/**
...
...
dsk-module/dsk-biz-api/src/main/java/com/dsk/cscec/service/impl/IDProjectServiceImpl.java
View file @
ac9d2d50
...
...
@@ -297,7 +297,9 @@ public class IDProjectServiceImpl extends ServiceImpl<DProjectMapper, DProject>
@Override
public
CbProjectInfoVo
getCbProjectInfo
(
Long
projectId
)
{
CbProjectRecord
projectRecord
=
projectRecordMapper
.
selectById
(
projectId
);
Assert
.
isTrue
(
projectRecord
.
getIsGetProjectDetail
(),
"请先通过IPM项目编码获取数据,或IPM项目编码无效"
);
if
(
projectRecord
.
getIsGetProjectDetail
())
{
return
null
;
}
return
BeanUtil
.
toBean
(
baseMapper
.
selectOne
(
new
LambdaQueryWrapper
<
DProject
>()
.
eq
(
DProject:
:
getProjectCode
,
projectRecord
.
getIpmProjectNo
())),
CbProjectInfoVo
.
class
);
}
...
...
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