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
ffff8c0c
Commit
ffff8c0c
authored
Sep 28, 2022
by
KeYong
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/develop_dl_plan6' into develop_dl_plan6
parents
527ca05f
61979ec6
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
18 additions
and
18 deletions
+18
-18
EquipmentManageMapper.xml
...equip/src/main/resources/mapper/EquipmentManageMapper.xml
+2
-2
CheckResultMapper.java
...in/amos/boot/module/tdc/api/mapper/CheckResultMapper.java
+1
-1
CheckResultService.java
.../amos/boot/module/tdc/api/service/CheckResultService.java
+2
-3
CheckResultMapper.xml
...e-tdc-api/src/main/resources/mapper/CheckResultMapper.xml
+1
-1
CheckModelAction.java
...oin/amos/boot/module/tdc/biz/action/CheckModelAction.java
+1
-0
CheckModelController.java
.../boot/module/tdc/biz/controller/CheckModelController.java
+2
-2
CheckResultController.java
...boot/module/tdc/biz/controller/CheckResultController.java
+4
-4
CheckResultImpl.java
...mos/boot/module/tdc/biz/service/impl/CheckResultImpl.java
+4
-4
application.properties
...-module-tdc-biz/src/main/resources/application.properties
+1
-1
No files found.
amos-boot-system-equip/src/main/resources/mapper/EquipmentManageMapper.xml
View file @
ffff8c0c
...
@@ -30,10 +30,10 @@
...
@@ -30,10 +30,10 @@
f_fire_fighting_system as sys
f_fire_fighting_system as sys
left join wl_warehouse_structure wws on wws.id = sys.contro_box_build
left join wl_warehouse_structure wws on wws.id = sys.contro_box_build
where 1=1
where 1=1
<if
test=
"equimentName != null and equimentName !='' "
>
<if
test=
"equimentName != null and equimentName !=''
and equimentCode !='null'
"
>
AND sys.NAME like CONCAT('%',#{equimentName},'%')
AND sys.NAME like CONCAT('%',#{equimentName},'%')
</if>
</if>
<if
test=
"equimentCode != null and equimentCode !='' "
>
<if
test=
"equimentCode != null and equimentCode !=''
and equimentCode !='null'
"
>
AND sys.CODE like CONCAT('%',#{equimentCode},'%')
AND sys.CODE like CONCAT('%',#{equimentCode},'%')
</if>
</if>
<if
test=
"nameOrCode != null and nameOrCode != ''"
>
<if
test=
"nameOrCode != null and nameOrCode != ''"
>
...
...
amos-boot-system-tdc/amos-boot-module-tdc-api/src/main/java/com/yeejoin/amos/boot/module/tdc/api/mapper/CheckResultMapper.java
View file @
ffff8c0c
...
@@ -17,7 +17,7 @@ public interface CheckResultMapper extends BaseMapper<CheckResult> {
...
@@ -17,7 +17,7 @@ public interface CheckResultMapper extends BaseMapper<CheckResult> {
IPage
<
CheckResultDto
>
selectResult
(
IPage
<
CheckResultDto
>
page
,
String
code
);
IPage
<
CheckResultDto
>
selectResult
(
IPage
<
CheckResultDto
>
page
,
String
code
);
List
<
CheckResultDto
>
selectTotal
(
String
modelId
,
String
amosOrgCode
);
List
<
CheckResultDto
>
selectTotal
(
String
modelId
,
String
batchNo
);
Map
<
String
,
Object
>
getTables
(
String
tableName
,
String
amosOrgCode
);
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 @
ffff8c0c
...
@@ -16,9 +16,9 @@ public interface CheckResultService extends IService<CheckResult> {
...
@@ -16,9 +16,9 @@ public interface CheckResultService extends IService<CheckResult> {
IPage
<
CheckResultDto
>
selectResult
(
int
current
,
int
size
,
String
code
);
IPage
<
CheckResultDto
>
selectResult
(
int
current
,
int
size
,
String
code
);
List
<
CheckResult
>
selectCheckResult
(
String
modelId
,
String
amosOrgCode
);
List
<
CheckResult
>
selectCheckResult
(
String
modelId
,
String
batchNo
);
List
<
CheckResultDto
>
selectTotal
(
String
modelId
,
String
amosOrgCode
);
List
<
CheckResultDto
>
selectTotal
(
String
modelId
,
String
batchNo
);
List
<
CheckResultDto
>
selectStatistion
(
String
batchNo
,
String
amosOrgCode
);
List
<
CheckResultDto
>
selectStatistion
(
String
batchNo
,
String
amosOrgCode
);
...
@@ -47,5 +47,4 @@ public interface CheckResultService extends IService<CheckResult> {
...
@@ -47,5 +47,4 @@ public interface CheckResultService extends IService<CheckResult> {
*/
*/
Integer
selectItemCount
(
String
batchNo
);
Integer
selectItemCount
(
String
batchNo
);
}
}
amos-boot-system-tdc/amos-boot-module-tdc-api/src/main/resources/mapper/CheckResultMapper.xml
View file @
ffff8c0c
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
<select
id=
"selectTotal"
resultType=
"com.yeejoin.amos.boot.module.tdc.api.dto.CheckResultDto"
>
<select
id=
"selectTotal"
resultType=
"com.yeejoin.amos.boot.module.tdc.api.dto.CheckResultDto"
>
SELECT count(1) as total, COUNT(CASE WHEN (check_item_result=1) THEN check_item_result END) AS aaa
SELECT count(1) as total, COUNT(CASE WHEN (check_item_result=1) THEN check_item_result END) AS aaa
FROM tdc_check_result WHERE model_id = #{modelId} and
amos_org_code = #{amosOrgCode
}
FROM tdc_check_result WHERE model_id = #{modelId} and
batch_no = #{batchNo
}
</select>
</select>
...
...
amos-boot-system-tdc/amos-boot-module-tdc-biz/src/main/java/com/yeejoin/amos/boot/module/tdc/biz/action/CheckModelAction.java
View file @
ffff8c0c
...
@@ -130,6 +130,7 @@ public class CheckModelAction {
...
@@ -130,6 +130,7 @@ public class CheckModelAction {
// 所有属性已全部入库,给前端发送消息
// 所有属性已全部入库,给前端发送消息
HashMap
<
String
,
Object
>
map
=
new
HashMap
<>();
HashMap
<
String
,
Object
>
map
=
new
HashMap
<>();
map
.
put
(
"itemCount"
,
itemCount
);
map
.
put
(
"itemCount"
,
itemCount
);
map
.
put
(
"batchNo"
,
batchNo
);
String
json
=
JSONObject
.
toJSONString
(
map
,
SerializerFeature
.
PrettyFormat
,
String
json
=
JSONObject
.
toJSONString
(
map
,
SerializerFeature
.
PrettyFormat
,
SerializerFeature
.
WriteMapNullValue
);
SerializerFeature
.
WriteMapNullValue
);
try
{
try
{
...
...
amos-boot-system-tdc/amos-boot-module-tdc-biz/src/main/java/com/yeejoin/amos/boot/module/tdc/biz/controller/CheckModelController.java
View file @
ffff8c0c
...
@@ -52,7 +52,7 @@ public class CheckModelController {
...
@@ -52,7 +52,7 @@ public class CheckModelController {
*/
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
@GetMapping
(
value
=
"/CheckAllModel/{amosOrgCode}"
)
@GetMapping
(
value
=
"/CheckAllModel/{amosOrgCode}"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"
查询最后一次校验模型"
,
notes
=
"查询最后一次
校验模型"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"
点击全站校验"
,
notes
=
"根据机构code
校验模型"
)
public
void
CheckAllModel
(
@PathVariable
(
value
=
"amosOrgCode"
)
String
amosOrgCode
)
{
public
void
CheckAllModel
(
@PathVariable
(
value
=
"amosOrgCode"
)
String
amosOrgCode
)
{
checkModelService
.
checkAllMode
(
amosOrgCode
);
checkModelService
.
checkAllMode
(
amosOrgCode
);
}
}
...
@@ -62,7 +62,7 @@ public class CheckModelController {
...
@@ -62,7 +62,7 @@ public class CheckModelController {
*/
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
@GetMapping
(
value
=
"/checkSingleMode/{modelId}"
)
@GetMapping
(
value
=
"/checkSingleMode/{modelId}"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"
查询最后一次校验模型"
,
notes
=
"查询最后一次
校验模型"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"
点击单独模型校验"
,
notes
=
"根据modelId
校验模型"
)
public
void
checkSingleMode
(
@PathVariable
(
value
=
"modelId"
)
String
modelId
)
{
public
void
checkSingleMode
(
@PathVariable
(
value
=
"modelId"
)
String
modelId
)
{
checkModelService
.
checkSingleMode
(
modelId
);
checkModelService
.
checkSingleMode
(
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 @
ffff8c0c
...
@@ -52,15 +52,15 @@ public class CheckResultController extends BaseController {
...
@@ -52,15 +52,15 @@ public class CheckResultController extends BaseController {
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
@GetMapping
(
value
=
"/selectCheckResult"
)
@GetMapping
(
value
=
"/selectCheckResult"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"查询最后一次校验模型"
,
notes
=
"查询最后一次校验模型"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"查询最后一次校验模型"
,
notes
=
"查询最后一次校验模型"
)
public
ResponseModel
<
List
<
CheckResult
>>
selectCheckResult
(
String
modelId
,
String
amosOrgCode
)
{
public
ResponseModel
<
List
<
CheckResult
>>
selectCheckResult
(
String
modelId
,
String
batchNo
)
{
return
ResponseHelper
.
buildResponse
(
checkResultService
.
selectCheckResult
(
modelId
,
amosOrgCode
));
return
ResponseHelper
.
buildResponse
(
checkResultService
.
selectCheckResult
(
modelId
,
batchNo
));
}
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
@GetMapping
(
value
=
"/selectTotal"
)
@GetMapping
(
value
=
"/selectTotal"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"result"
,
notes
=
"result"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"result"
,
notes
=
"result"
)
public
ResponseModel
<
List
<
CheckResultDto
>>
selectTotal
(
String
modelId
,
String
amosOrgCode
)
{
public
ResponseModel
<
List
<
CheckResultDto
>>
selectTotal
(
String
modelId
,
String
batchNo
)
{
return
ResponseHelper
.
buildResponse
(
checkResultService
.
selectTotal
(
modelId
,
amosOrgCode
));
return
ResponseHelper
.
buildResponse
(
checkResultService
.
selectTotal
(
modelId
,
batchNo
));
}
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
@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 @
ffff8c0c
...
@@ -70,17 +70,17 @@ public class CheckResultImpl extends ServiceImpl<CheckResultMapper, CheckResult>
...
@@ -70,17 +70,17 @@ public class CheckResultImpl extends ServiceImpl<CheckResultMapper, CheckResult>
}
}
@Override
@Override
public
List
<
CheckResult
>
selectCheckResult
(
String
modelId
,
String
amosOrgCode
)
{
public
List
<
CheckResult
>
selectCheckResult
(
String
modelId
,
String
batchNo
)
{
LambdaQueryWrapper
<
CheckResult
>
wrapper
=
new
LambdaQueryWrapper
<>();
LambdaQueryWrapper
<
CheckResult
>
wrapper
=
new
LambdaQueryWrapper
<>();
wrapper
.
eq
(
CheckResult:
:
getCheckItemResult
,
"1"
)
wrapper
.
eq
(
CheckResult:
:
getCheckItemResult
,
"1"
)
.
eq
(
CheckResult:
:
get
AmosOrgCode
,
amosOrgCode
)
.
eq
(
CheckResult:
:
get
BatchNo
,
batchNo
)
.
eq
(
CheckResult:
:
getModelId
,
modelId
);
.
eq
(
CheckResult:
:
getModelId
,
modelId
);
return
baseMapper
.
selectList
(
wrapper
);
return
baseMapper
.
selectList
(
wrapper
);
}
}
@Override
@Override
public
List
<
CheckResultDto
>
selectTotal
(
String
modelId
,
String
amosOrgCode
)
{
public
List
<
CheckResultDto
>
selectTotal
(
String
modelId
,
String
batchNo
)
{
return
checkResultMapper
.
selectTotal
(
modelId
,
amosOrgCode
);
return
checkResultMapper
.
selectTotal
(
modelId
,
batchNo
);
}
}
@Override
@Override
...
...
amos-boot-system-tdc/amos-boot-module-tdc-biz/src/main/resources/application.properties
View file @
ffff8c0c
...
@@ -42,4 +42,4 @@ spring.redis.lettuce.pool.min-idle=0
...
@@ -42,4 +42,4 @@ spring.redis.lettuce.pool.min-idle=0
redis.cache.failure.time
=
10800
redis.cache.failure.time
=
10800
#校验完成发送消息
#校验完成发送消息
mqtt.topic.check.complete
=
tdc/check/complete
mqtt.topic.check.complete
=
/
tdc/check/complete
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