Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
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
项目统一框架
amos-boot-biz
Commits
0e22f1d4
Commit
0e22f1d4
authored
Sep 21, 2022
by
limei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
根据模型id和模型所属机构查询不合格项
parent
bec3e674
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
8 deletions
+15
-8
CheckResult.java
.../yeejoin/amos/boot/module/tdc/api/entity/CheckResult.java
+10
-3
CheckResultController.java
...boot/module/tdc/biz/controller/CheckResultController.java
+3
-3
CheckResultImpl.java
...mos/boot/module/tdc/biz/service/impl/CheckResultImpl.java
+2
-2
No files found.
amos-boot-system-tdc/amos-boot-module-tdc-api/src/main/java/com/yeejoin/amos/boot/module/tdc/api/entity/CheckResult.java
View file @
0e22f1d4
package
com
.
yeejoin
.
amos
.
boot
.
module
.
tdc
.
api
.
entity
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.yeejoin.amos.boot.biz.common.entity.BaseEntity
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
...
...
@@ -9,11 +12,15 @@ import lombok.experimental.Accessors;
import
java.util.Date
;
@Data
@EqualsAndHashCode
(
callSuper
=
true
)
@Accessors
(
chain
=
true
)
@TableName
(
"tdc_check_result"
)
public
class
CheckResult
extends
BaseEntity
{
@ApiModel
(
value
=
"CheckResult对象"
,
description
=
"检验结果表"
)
public
class
CheckResult
{
private
static
final
long
serialVersionUID
=
1L
;
@TableId
(
value
=
"sequence_nbr"
,
type
=
IdType
.
ID_WORKER
)
protected
Long
sequenceNbr
;
@ApiModelProperty
(
value
=
"模型Id"
)
private
String
modelId
;
...
...
amos-boot-system-tdc/amos-boot-module-tdc-biz/src/main/java/com/yeejoin/amos/boot/module/tdc/biz/controller/CheckResultController.java
View file @
0e22f1d4
...
...
@@ -47,9 +47,9 @@ public class CheckResultController extends BaseController {
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
@GetMapping
(
value
=
"/selectCheckResult/{
amosOrgCode}/{modelId
}"
)
@GetMapping
(
value
=
"/selectCheckResult/{
modelId}/{amosOrgCode
}"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"查询最后一次校验模型"
,
notes
=
"查询最后一次校验模型"
)
public
ResponseModel
<
List
<
CheckResult
>>
selectCheckResult
(
@PathVariable
String
amosOrgCode
,
@PathVariable
String
modelId
)
{
return
ResponseHelper
.
buildResponse
(
checkResultService
.
selectCheckResult
(
amosOrgCode
,
modelId
));
public
ResponseModel
<
List
<
CheckResult
>>
selectCheckResult
(
@PathVariable
String
modelId
,
@PathVariable
String
amosOrgCode
)
{
return
ResponseHelper
.
buildResponse
(
checkResultService
.
selectCheckResult
(
modelId
,
amosOrgCode
));
}
}
amos-boot-system-tdc/amos-boot-module-tdc-biz/src/main/java/com/yeejoin/amos/boot/module/tdc/biz/service/impl/CheckResultImpl.java
View file @
0e22f1d4
...
...
@@ -29,8 +29,8 @@ public class CheckResultImpl extends ServiceImpl<CheckResultMapper, CheckResult>
public
List
<
CheckResult
>
selectCheckResult
(
String
modelId
,
String
amosOrgCode
)
{
LambdaQueryWrapper
<
CheckResult
>
wrapper
=
new
LambdaQueryWrapper
<>();
wrapper
.
eq
(
CheckResult:
:
getCheckItemResult
,
"1"
)
.
eq
(
CheckResult:
:
getAmosOrgCode
,
amosOrgCode
)
.
eq
(
CheckResult:
:
getModelId
,
modelId
);
.
eq
(
CheckResult:
:
getAmosOrgCode
,
amosOrgCode
)
.
eq
(
CheckResult:
:
getModelId
,
modelId
);
return
baseMapper
.
selectList
(
wrapper
);
}
...
...
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