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
c26eecfe
Commit
c26eecfe
authored
Feb 22, 2021
by
wangweidong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
土工平台修改
parent
8b0ff038
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
SoilAloneSampleServiceImpl.java
...ce/lims/soil/service/impl/SoilAloneSampleServiceImpl.java
+5
-3
No files found.
src/main/java/com/patzn/cloud/service/lims/soil/service/impl/SoilAloneSampleServiceImpl.java
View file @
c26eecfe
...
...
@@ -4,6 +4,7 @@ import com.baomidou.mybatisplus.mapper.Condition;
import
com.baomidou.mybatisplus.toolkit.CollectionUtils
;
import
com.patzn.cloud.commons.api.RestAssert
;
import
com.patzn.cloud.commons.controller.Account
;
import
com.patzn.cloud.commons.toolkit.DateUtils
;
import
com.patzn.cloud.service.lims.soil.mapper.SoilAloneSampleMapper
;
import
com.patzn.cloud.service.lims.soil.service.ISoilAloneInOutExportRelService
;
import
com.patzn.cloud.service.lims.soil.service.ISoilAloneInOutExportService
;
...
...
@@ -26,6 +27,7 @@ import com.baomidou.mybatisplus.plugins.Page;
import
org.springframework.transaction.annotation.Transactional
;
import
java.util.ArrayList
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.stream.Collectors
;
...
...
@@ -99,13 +101,13 @@ public class SoilAloneSampleServiceImpl extends BaseServiceImpl<SoilAloneSampleM
}
RestAssert
.
fail
(
StringUtils
.
isBlank
(
aloneInOutStock
.
getStorehouse
()),
"请填写库房号"
);
RestAssert
.
fail
(
StringUtils
.
isBlank
(
aloneInOutStock
.
getShelfCode
()),
"请填写货架号"
);
RestAssert
.
fail
(
null
==
aloneInOutStock
.
getKeepLimit
Time
(),
"请填写留存有效期"
);
RestAssert
.
fail
(
null
==
aloneInOutStock
.
getKeepLimit
(),
"请填写留存有效期"
);
RestAssert
.
fail
(
null
==
aloneInOutStock
.
getStorehouse
(),
"请填写库房号"
);
RestAssert
.
fail
(
null
==
aloneInOutStock
.
getInStockerId
(),
"请选择入库人"
);
RestAssert
.
fail
(
StringUtils
.
isBlank
(
aloneInOutStock
.
getInStocker
()),
"请选择入库人"
);
RestAssert
.
fail
(
null
==
aloneInOutStock
.
getInstockTime
()
,
"请填写入库时间"
);
Date
date
=
DateUtils
.
dateAddDays
(
aloneInOutStock
.
getInstockTime
(),
aloneInOutStock
.
getKeepLimit
()*
30
);
aloneInOutStock
.
setKeepLimitTime
(
date
);
List
<
SoilAloneInOutStock
>
saveList
=
new
ArrayList
<>();
for
(
Long
id:
ids
)
{
SoilAloneInOutStock
stock
=
aloneInOutStock
.
convert
(
SoilAloneInOutStock
.
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