Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
patzn-cloud-service-soil
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-soil
Commits
2eedf7e6
Commit
2eedf7e6
authored
Nov 13, 2020
by
wangweidong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
土工平台修改
parent
7b48b052
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
SoilReceiveLocationServiceImpl.java
...ims/soil/service/impl/SoilReceiveLocationServiceImpl.java
+2
-2
No files found.
src/main/java/com/patzn/cloud/service/lims/soil/service/impl/SoilReceiveLocationServiceImpl.java
View file @
2eedf7e6
...
...
@@ -46,11 +46,11 @@ public class SoilReceiveLocationServiceImpl extends BaseServiceImpl<SoilReceiveL
RestAssert
.
fail
(
StringUtils
.
isBlank
(
soilReceiveLocation
.
getCode
()),
"请填写位置编号"
);
RestAssert
.
fail
(
StringUtils
.
isBlank
(
soilReceiveLocation
.
getName
()),
"请填写收样位置"
);
int
countName
=
super
.
count
(
Condition
.
create
().
eq
(
"name"
,
soilReceiveLocation
.
getName
()));
if
(
countName
>
=
0
){
if
(
countName
>
0
){
RestAssert
.
fail
(
"收样位置重复"
);
}
int
countCode
=
super
.
count
(
Condition
.
create
().
eq
(
"code"
,
soilReceiveLocation
.
getCode
()));
if
(
countCode
>
=
0
){
if
(
countCode
>
0
){
RestAssert
.
fail
(
"收样位置编号重复"
);
}
return
save
(
soilReceiveLocation
);
...
...
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