Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
T
tianjin-cement
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
竹天卫
tianjin-cement
Commits
469d8fda
Commit
469d8fda
authored
4 years ago
by
竹天卫
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
样品处理 派发任务 完成接口 可以进行修改 上传附件
parent
d5951a08
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
EntrustServiceImpl.java
...e/sc/cement/business/service/impl/EntrustServiceImpl.java
+4
-3
No files found.
cement-business/src/main/java/cn/wise/sc/cement/business/service/impl/EntrustServiceImpl.java
View file @
469d8fda
...
...
@@ -538,7 +538,8 @@ public class EntrustServiceImpl extends ServiceImpl<EntrustMapper, Entrust> impl
public
BaseResponse
<
String
>
getMaxCementCode
()
{
Object
obj
=
redisUtil
.
getString
(
"maxCementCode"
);
String
maxCementCode
=
""
;
if
(
obj
==
null
)
{
String
regex
=
"[0-9]{2}\\-[0-9]{4}"
;
if
(
obj
==
null
||
!
obj
.
toString
().
matches
(
regex
)
)
{
maxCementCode
=
sampleMapper
.
getMaxCementCode
();
}
else
{
maxCementCode
=
obj
.
toString
();
...
...
@@ -974,7 +975,7 @@ public class EntrustServiceImpl extends ServiceImpl<EntrustMapper, Entrust> impl
if
(
sampleHandle
==
null
)
{
return
BaseResponse
.
errorMsg
(
"信息错误"
);
}
if
(
sampleHandle
.
getStatus
()
!=
1
)
{
if
(
sampleHandle
.
getStatus
()
!=
1
&&
sampleHandle
.
getStatus
()
!=
2
)
{
return
BaseResponse
.
errorMsg
(
"状态错误"
);
}
if
(
loginUser
.
getId
()
!=
sampleHandle
.
getUserId
())
{
...
...
@@ -1305,7 +1306,7 @@ public class EntrustServiceImpl extends ServiceImpl<EntrustMapper, Entrust> impl
if
(
distribution
==
null
)
{
return
BaseResponse
.
errorMsg
(
"信息错误"
);
}
if
(
distribution
.
getStatus
()
!=
1
)
{
if
(
distribution
.
getStatus
()
!=
1
&&
distribution
.
getStatus
()
!=
2
)
{
return
BaseResponse
.
errorMsg
(
"状态错误"
);
}
distribution
.
setStatus
(
2
).
setFinishTime
(
LocalDateTime
.
now
());
...
...
This diff is collapsed.
Click to expand it.
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