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
4d285259
Commit
4d285259
authored
May 08, 2023
by
chenzhao
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop_dl_3.7.0.8' of
http://39.98.45.134:8090/moa/amos-boot-biz…
Merge branch 'develop_dl_3.7.0.8' of
http://39.98.45.134:8090/moa/amos-boot-biz
into develop_dl_3.7.0.8
parents
b85f271b
60efd6d8
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
15 additions
and
4 deletions
+15
-4
PlanController.java
...ejoin/amos/patrol/business/controller/PlanController.java
+3
-1
PlanTaskMapper.java
...ejoin/amos/patrol/business/dao/mapper/PlanTaskMapper.java
+2
-0
IdxFeign.java
...java/com/yeejoin/amos/patrol/business/feign/IdxFeign.java
+2
-2
PlanTaskServiceImpl.java
...mos/patrol/business/service/impl/PlanTaskServiceImpl.java
+2
-1
JobService.java
.../main/java/com/yeejoin/amos/patrol/quartz/JobService.java
+1
-0
dbTemplate_plan_task.xml
...rol/src/main/resources/db/mapper/dbTemplate_plan_task.xml
+5
-0
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-patrol-biz/src/main/java/com/yeejoin/amos/patrol/business/controller/PlanController.java
View file @
4d285259
...
...
@@ -184,7 +184,9 @@ public class PlanController extends AbstractBaseController {
}
}
map
.
put
(
"param"
,
param
);
return
CommonResponseUtil
.
success
(
planService
.
addPlan
(
map
));
Plan
plan
=
planService
.
addPlan
(
map
);
Object
ob
=
plan
!=
null
?
ToJson
.
tojson
(
plan
)
:
null
;
return
CommonResponseUtil
.
success
(
ob
);
}
catch
(
Exception
e
)
{
log
.
error
(
e
.
getMessage
(),
e
);
return
CommonResponseUtil
.
failure
(
"巡检计划新增失败"
);
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-patrol-biz/src/main/java/com/yeejoin/amos/patrol/business/dao/mapper/PlanTaskMapper.java
View file @
4d285259
...
...
@@ -214,4 +214,6 @@ public interface PlanTaskMapper extends BaseMapper {
List
<
Map
<
String
,
Object
>>
getCheckQualifiedEquipInfo
(
@Param
(
value
=
"taskDetailId"
)
String
taskDetailId
);
List
<
Map
<
String
,
Object
>>
getCheckNotQualifiedEquipInfo
(
@Param
(
value
=
"taskDetailId"
)
String
taskDetailId
);
String
getCheckIdByDetailId
(
@Param
(
value
=
"taskDetailId"
)
String
taskDetailId
);
}
amos-boot-module/amos-boot-module-biz/amos-boot-module-patrol-biz/src/main/java/com/yeejoin/amos/patrol/business/feign/IdxFeign.java
View file @
4d285259
package
com
.
yeejoin
.
amos
.
patrol
.
business
.
feign
;
import
com.alibaba.fastjson.JSONObject
;
import
com.yeejoin.amos.component.feign.model.FeignClientResult
;
import
org.springframework.cloud.openfeign.FeignClient
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
java.util.List
;
...
...
@@ -28,6 +28,6 @@ public interface IdxFeign {
* @Date 2023/04/22 17:46
*/
@PostMapping
(
value
=
"/defect/check/list"
)
FeignClientResult
queryDefectByCodes
(
@RequestBody
List
<
String
>
codes
);
FeignClientResult
queryDefectByCodes
(
@RequestBody
List
<
String
>
codes
,
@RequestParam
String
checkId
);
}
amos-boot-module/amos-boot-module-biz/amos-boot-module-patrol-biz/src/main/java/com/yeejoin/amos/patrol/business/service/impl/PlanTaskServiceImpl.java
View file @
4d285259
...
...
@@ -1920,10 +1920,11 @@ public class PlanTaskServiceImpl implements IPlanTaskService {
}
map
.
put
(
"missed_equip_rate"
,
miss_task_percent
);
List
<
String
>
codes
=
planTaskMapper
.
getDefinitionObjCode
(
taskDetailId
);
String
checkId
=
planTaskMapper
.
getCheckIdByDetailId
(
taskDetailId
);
FeignClientResult
responseModel
=
new
FeignClientResult
();
List
result
=
new
ArrayList
();
try
{
responseModel
=
idxFeign
.
queryDefectByCodes
(
codes
);
responseModel
=
idxFeign
.
queryDefectByCodes
(
codes
,
checkId
);
result
=
(
List
)
responseModel
.
getResult
();
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-patrol-biz/src/main/java/com/yeejoin/amos/patrol/quartz/JobService.java
View file @
4d285259
...
...
@@ -201,6 +201,7 @@ public class JobService implements IJobService {
iPlanTaskDetailDao
.
saveAndFlush
(
action
);
});
}
log
.
info
(
"更新plan_task 和 plan_task_detail表完成,planTask:{}"
,
planTask
);
// 巡检站端与中心级数据同步
TransactionSynchronizationManager
.
registerSynchronization
(
new
TransactionSynchronization
()
{
@Override
...
...
amos-boot-system-patrol/src/main/resources/db/mapper/dbTemplate_plan_task.xml
View file @
4d285259
...
...
@@ -1350,4 +1350,8 @@
pci.is_ok = 2 AND pc.plan_task_detail_id = #{taskDetailId}
GROUP BY cl.id;
</select>
<select
id=
"getCheckIdByDetailId"
resultType=
"java.lang.String"
>
select id from p_check where plan_task_detail_id = #{taskDetailId} limit 1
</select>
</mapper>
\ No newline at end of file
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