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
de7f2820
Commit
de7f2820
authored
Oct 08, 2022
by
KeYong
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop_dl_plan6' of
http://39.98.45.134:8090/moa/amos-boot-biz
into develop_dl_plan6
parents
dd1652ab
5fde2a4a
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
16 additions
and
13 deletions
+16
-13
CheckResultMapper.java
...in/amos/boot/module/tdc/api/mapper/CheckResultMapper.java
+1
-1
CheckResultService.java
.../amos/boot/module/tdc/api/service/CheckResultService.java
+2
-2
CheckResultMapper.xml
...e-tdc-api/src/main/resources/mapper/CheckResultMapper.xml
+1
-1
CheckResultController.java
...boot/module/tdc/biz/controller/CheckResultController.java
+6
-4
CheckResultImpl.java
...mos/boot/module/tdc/biz/service/impl/CheckResultImpl.java
+6
-5
No files found.
amos-boot-system-tdc/amos-boot-module-tdc-api/src/main/java/com/yeejoin/amos/boot/module/tdc/api/mapper/CheckResultMapper.java
View file @
de7f2820
...
...
@@ -17,7 +17,7 @@ public interface CheckResultMapper extends BaseMapper<CheckResult> {
IPage
<
CheckResultDto
>
selectResult
(
IPage
<
CheckResultDto
>
page
,
String
code
);
Map
<
String
,
Object
>
selectTotal
(
String
modelId
,
String
batchNo
);
Map
<
String
,
Object
>
selectTotal
(
String
batchNo
);
Map
<
String
,
Object
>
getTables
(
String
tableName
,
String
amosOrgCode
);
...
...
amos-boot-system-tdc/amos-boot-module-tdc-api/src/main/java/com/yeejoin/amos/boot/module/tdc/api/service/CheckResultService.java
View file @
de7f2820
...
...
@@ -18,9 +18,9 @@ public interface CheckResultService extends IService<CheckResult> {
IPage
<
CheckResultDto
>
selectResult
(
int
current
,
int
size
,
String
code
);
List
<
CheckResult
>
selectCheckResult
(
String
modelId
,
String
batchNo
);
List
<
CheckResult
>
selectCheckResult
(
String
batchNo
);
Map
<
String
,
Object
>
selectTotal
(
String
modelId
,
String
batchNo
);
Map
<
String
,
Object
>
selectTotal
(
String
batchNo
);
List
<
CheckResultDto
>
selectStatistion
(
String
batchNo
,
String
amosOrgCode
);
...
...
amos-boot-system-tdc/amos-boot-module-tdc-api/src/main/resources/mapper/CheckResultMapper.xml
View file @
de7f2820
...
...
@@ -14,7 +14,7 @@
<select
id=
"selectTotal"
resultType=
"java.util.Map"
>
SELECT count(1) as total, COUNT(CASE WHEN (check_item_result=1) THEN check_item_result END) AS unqualified
FROM tdc_check_result WHERE
model_id = #{modelId} and
batch_no = #{batchNo}
FROM tdc_check_result WHERE batch_no = #{batchNo}
</select>
...
...
amos-boot-system-tdc/amos-boot-module-tdc-biz/src/main/java/com/yeejoin/amos/boot/module/tdc/biz/controller/CheckResultController.java
View file @
de7f2820
...
...
@@ -54,15 +54,17 @@ public class CheckResultController extends BaseController {
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
@GetMapping
(
value
=
"/selectCheckResult"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"查询最后一次校验模型"
,
notes
=
"查询最后一次校验模型"
)
public
ResponseModel
<
List
<
CheckResult
>>
selectCheckResult
(
String
modelId
,
String
batchNo
)
{
return
ResponseHelper
.
buildResponse
(
checkResultService
.
selectCheckResult
(
modelId
,
batchNo
));
public
ResponseModel
<
List
<
CheckResult
>>
selectCheckResult
(
String
batchNo
)
{
return
ResponseHelper
.
buildResponse
(
checkResultService
.
selectCheckResult
(
batchNo
));
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
@GetMapping
(
value
=
"/selectTotal"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"result"
,
notes
=
"result"
)
public
ResponseModel
<
Map
<
String
,
Object
>>
selectTotal
(
String
modelId
,
String
batchNo
)
{
return
ResponseHelper
.
buildResponse
(
checkResultService
.
selectTotal
(
modelId
,
batchNo
));
public
ResponseModel
<
Map
<
String
,
Object
>>
selectTotal
(
String
batchNo
)
{
return
ResponseHelper
.
buildResponse
(
checkResultService
.
selectTotal
(
batchNo
));
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
...
...
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 @
de7f2820
...
...
@@ -75,18 +75,19 @@ public class CheckResultImpl extends ServiceImpl<CheckResultMapper, CheckResult>
@Override
public
List
<
CheckResult
>
selectCheckResult
(
String
modelId
,
String
batchNo
)
{
public
List
<
CheckResult
>
selectCheckResult
(
String
batchNo
)
{
LambdaQueryWrapper
<
CheckResult
>
wrapper
=
new
LambdaQueryWrapper
<>();
wrapper
.
eq
(
CheckResult:
:
getCheckItemResult
,
"1"
)
.
eq
(
CheckResult:
:
getBatchNo
,
b
atchNo
)
.
eq
(
CheckResult:
:
get
ModelId
,
modelId
);
.
isNotNull
(
CheckResult:
:
getB
atchNo
)
.
eq
(
CheckResult:
:
get
BatchNo
,
batchNo
);
return
baseMapper
.
selectList
(
wrapper
);
}
@Override
public
Map
<
String
,
Object
>
selectTotal
(
String
modelId
,
String
batchNo
)
{
return
checkResultMapper
.
selectTotal
(
modelId
,
batchNo
);
public
Map
<
String
,
Object
>
selectTotal
(
String
batchNo
)
{
return
checkResultMapper
.
selectTotal
(
batchNo
);
}
@Override
public
List
<
CheckResultDto
>
selectStatistion
(
String
batchNo
,
String
amosOrgCode
)
{
return
checkResultMapper
.
selectStatistion
(
batchNo
,
amosOrgCode
);
...
...
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