Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
patzn-cloud-service-hmhj
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
wangweidong
patzn-cloud-service-hmhj
Commits
9f5600cd
Commit
9f5600cd
authored
Jun 16, 2022
by
lijingjing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改根据三级或二级一级编号更新编号为空的问题;
parent
940860c8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
EntrustSampleServiceImpl.java
...vice/lims/hmhj/service/impl/EntrustSampleServiceImpl.java
+2
-2
No files found.
src/main/java/com/patzn/cloud/service/lims/hmhj/service/impl/EntrustSampleServiceImpl.java
View file @
9f5600cd
...
...
@@ -1803,7 +1803,7 @@ public class EntrustSampleServiceImpl extends BaseServiceImpl<EntrustSampleMappe
}
else
if
(
2
==
level
)
{
fromFiled
=
" COALESCE(second_code,first_code) "
;
}
return
baseMapper
.
updateForSet
(
String
.
format
(
"code=%s"
,
fromFiled
),
new
EntityWrapper
<
EntrustSample
>().
eq
(
"entrust_id"
,
entrustId
).
eq
(
"type"
,
0
))
>
0
;
return
baseMapper
.
updateForSet
(
String
.
format
(
"code=%s"
,
fromFiled
),
new
EntityWrapper
<
EntrustSample
>().
eq
(
"entrust_id"
,
entrustId
).
eq
(
"type"
,
0
)
.
isNotNull
(
"first_code"
)
)
>
0
;
}
@Override
...
...
@@ -1818,7 +1818,7 @@ public class EntrustSampleServiceImpl extends BaseServiceImpl<EntrustSampleMappe
}
else
if
(
2
==
level
)
{
fromFiled
=
" COALESCE(second_code,first_code) "
;
}
return
baseMapper
.
updateForSet
(
String
.
format
(
"code=%s"
,
fromFiled
),
new
EntityWrapper
<
EntrustSample
>().
in
(
"id"
,
sampleIdsList
))
>
0
;
return
baseMapper
.
updateForSet
(
String
.
format
(
"code=%s"
,
fromFiled
),
new
EntityWrapper
<
EntrustSample
>().
in
(
"id"
,
sampleIdsList
)
.
isNotNull
(
"first_code"
)
)
>
0
;
}
@Override
...
...
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