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
60efd6d8
Commit
60efd6d8
authored
May 08, 2023
by
zhangsen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
巡检报告中 上传缺陷相关 bug处理
parent
541240bc
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
14 additions
and
4 deletions
+14
-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
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 @
60efd6d8
...
@@ -184,7 +184,9 @@ public class PlanController extends AbstractBaseController {
...
@@ -184,7 +184,9 @@ public class PlanController extends AbstractBaseController {
}
}
}
}
map
.
put
(
"param"
,
param
);
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
)
{
}
catch
(
Exception
e
)
{
log
.
error
(
e
.
getMessage
(),
e
);
log
.
error
(
e
.
getMessage
(),
e
);
return
CommonResponseUtil
.
failure
(
"巡检计划新增失败"
);
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 @
60efd6d8
...
@@ -214,4 +214,6 @@ public interface PlanTaskMapper extends BaseMapper {
...
@@ -214,4 +214,6 @@ public interface PlanTaskMapper extends BaseMapper {
List
<
Map
<
String
,
Object
>>
getCheckQualifiedEquipInfo
(
@Param
(
value
=
"taskDetailId"
)
String
taskDetailId
);
List
<
Map
<
String
,
Object
>>
getCheckQualifiedEquipInfo
(
@Param
(
value
=
"taskDetailId"
)
String
taskDetailId
);
List
<
Map
<
String
,
Object
>>
getCheckNotQualifiedEquipInfo
(
@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 @
60efd6d8
package
com
.
yeejoin
.
amos
.
patrol
.
business
.
feign
;
package
com
.
yeejoin
.
amos
.
patrol
.
business
.
feign
;
import
com.alibaba.fastjson.JSONObject
;
import
com.yeejoin.amos.component.feign.model.FeignClientResult
;
import
com.yeejoin.amos.component.feign.model.FeignClientResult
;
import
org.springframework.cloud.openfeign.FeignClient
;
import
org.springframework.cloud.openfeign.FeignClient
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
java.util.List
;
import
java.util.List
;
...
@@ -28,6 +28,6 @@ public interface IdxFeign {
...
@@ -28,6 +28,6 @@ public interface IdxFeign {
* @Date 2023/04/22 17:46
* @Date 2023/04/22 17:46
*/
*/
@PostMapping
(
value
=
"/defect/check/list"
)
@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 @
60efd6d8
...
@@ -1920,10 +1920,11 @@ public class PlanTaskServiceImpl implements IPlanTaskService {
...
@@ -1920,10 +1920,11 @@ public class PlanTaskServiceImpl implements IPlanTaskService {
}
}
map
.
put
(
"missed_equip_rate"
,
miss_task_percent
);
map
.
put
(
"missed_equip_rate"
,
miss_task_percent
);
List
<
String
>
codes
=
planTaskMapper
.
getDefinitionObjCode
(
taskDetailId
);
List
<
String
>
codes
=
planTaskMapper
.
getDefinitionObjCode
(
taskDetailId
);
String
checkId
=
planTaskMapper
.
getCheckIdByDetailId
(
taskDetailId
);
FeignClientResult
responseModel
=
new
FeignClientResult
();
FeignClientResult
responseModel
=
new
FeignClientResult
();
List
result
=
new
ArrayList
();
List
result
=
new
ArrayList
();
try
{
try
{
responseModel
=
idxFeign
.
queryDefectByCodes
(
codes
);
responseModel
=
idxFeign
.
queryDefectByCodes
(
codes
,
checkId
);
result
=
(
List
)
responseModel
.
getResult
();
result
=
(
List
)
responseModel
.
getResult
();
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
e
.
printStackTrace
();
...
...
amos-boot-system-patrol/src/main/resources/db/mapper/dbTemplate_plan_task.xml
View file @
60efd6d8
...
@@ -1350,4 +1350,8 @@
...
@@ -1350,4 +1350,8 @@
pci.is_ok = 2 AND pc.plan_task_detail_id = #{taskDetailId}
pci.is_ok = 2 AND pc.plan_task_detail_id = #{taskDetailId}
GROUP BY cl.id;
GROUP BY cl.id;
</select>
</select>
<select
id=
"getCheckIdByDetailId"
resultType=
"java.lang.String"
>
select id from p_check where plan_task_detail_id = #{taskDetailId} limit 1
</select>
</mapper>
</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