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
e4e641c2
Commit
e4e641c2
authored
Jul 09, 2021
by
wangweidong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加判定类型的添加
parent
f22e7840
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
30 additions
and
0 deletions
+30
-0
ContractSampleController.java
...ervice/lims/hmhj/controller/ContractSampleController.java
+9
-0
IContractSampleService.java
...oud/service/lims/hmhj/service/IContractSampleService.java
+2
-0
ContractSampleServiceImpl.java
...ice/lims/hmhj/service/impl/ContractSampleServiceImpl.java
+19
-0
No files found.
src/main/java/com/patzn/cloud/service/lims/hmhj/controller/ContractSampleController.java
View file @
e4e641c2
...
...
@@ -584,4 +584,13 @@ public class ContractSampleController extends ServiceController {
return
success
(
contractSampleService
.
passToSecondJudgeCheck
(
dto
,
getAccount
()));
}
@ApiOperation
(
"任务判定增加"
)
@PostMapping
(
"/add_judgement_type"
)
public
RestResult
<
Boolean
>
addJudgementType
(
@RequestParam
(
"ids"
)
Long
[]
ids
,
@RequestParam
(
"judgement"
)
String
judgement
)
{
return
success
(
contractSampleService
.
addJudgementType
(
ids
,
judgement
,
getAccount
()));
}
}
src/main/java/com/patzn/cloud/service/lims/hmhj/service/IContractSampleService.java
View file @
e4e641c2
...
...
@@ -65,4 +65,6 @@ public interface IContractSampleService extends IBaseService<ContractSample> {
boolean
backSecondJudgeCheck
(
Long
[]
ids
,
String
reason
,
Account
account
);
boolean
passToSecondJudgeCheck
(
ContractSampleVODTO
dto
,
Account
account
);
boolean
addJudgementType
(
Long
[]
ids
,
String
judgement
,
Account
account
);
}
src/main/java/com/patzn/cloud/service/lims/hmhj/service/impl/ContractSampleServiceImpl.java
View file @
e4e641c2
...
...
@@ -379,5 +379,24 @@ public class ContractSampleServiceImpl extends BaseServiceImpl<ContractSampleMap
return
true
;
}
@Transactional
(
rollbackFor
=
Exception
.
class
)
@Override
public
boolean
addJudgementType
(
Long
[]
ids
,
String
judgement
,
Account
account
)
{
RestAssert
.
fail
(
ArrayUtils
.
isEmpty
(
ids
),
"请选择数据!"
);
RestAssert
.
fail
(
StringUtils
.
isBlank
(
judgement
),
"请选择判定类型"
);
List
<
ContractSample
>
updateList
=
new
ArrayList
<>();
for
(
Long
id
:
ids
)
{
ContractSample
sample
=
new
ContractSample
();
sample
.
setId
(
id
);
sample
.
setJudgmentType
(
judgement
);
updateList
.
add
(
sample
);
}
if
(
CollectionUtils
.
isNotEmpty
(
updateList
)){
return
updateBatchById
(
updateList
);
}
return
false
;
}
}
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