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
d174186f
Commit
d174186f
authored
Jan 26, 2024
by
litengwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
浙江设备平台接口开发
parent
91f874a9
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
126 additions
and
3 deletions
+126
-3
FireBussForEquPlatformController.java
...ipmanage/controller/FireBussForEquPlatformController.java
+12
-0
EquipmentSpecificMapper.java
...m/yeejoin/equipmanage/mapper/EquipmentSpecificMapper.java
+1
-1
IEquipmentSpecificSerivce.java
...eejoin/equipmanage/service/IEquipmentSpecificSerivce.java
+8
-0
EquipmentSpecificSerivceImpl.java
...quipmanage/service/impl/EquipmentSpecificSerivceImpl.java
+5
-0
CheckController.java
...join/amos/patrol/business/controller/CheckController.java
+13
-1
CheckMapper.java
.../yeejoin/amos/patrol/business/dao/mapper/CheckMapper.java
+2
-0
CheckInfoPageParam.java
...eejoin/amos/patrol/business/param/CheckInfoPageParam.java
+1
-1
CheckServiceImpl.java
...n/amos/patrol/business/service/impl/CheckServiceImpl.java
+5
-0
ICheckService.java
...oin/amos/patrol/business/service/intfc/ICheckService.java
+2
-0
CheckInfoVo.java
...java/com/yeejoin/amos/patrol/business/vo/CheckInfoVo.java
+30
-0
EquipmentSpecificMapper.xml
...uip/src/main/resources/mapper/EquipmentSpecificMapper.xml
+23
-0
dbTemplate_check.xml
...-patrol/src/main/resources/db/mapper/dbTemplate_check.xml
+24
-0
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/controller/FireBussForEquPlatformController.java
View file @
d174186f
...
@@ -65,4 +65,16 @@ public class FireBussForEquPlatformController extends AbstractBaseController {
...
@@ -65,4 +65,16 @@ public class FireBussForEquPlatformController extends AbstractBaseController {
return
equipmentSpecificSerivce
.
selectZJEquipmentSpecificWWX
(
equipmentSpecific
);
return
equipmentSpecificSerivce
.
selectZJEquipmentSpecificWWX
(
equipmentSpecific
);
}
}
/**
* 更换报废分页
*
* @return
*/
@RequestMapping
(
value
=
"/wwx/ids"
,
method
=
RequestMethod
.
POST
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"更换报废业务字段"
,
notes
=
"更换报废业务字段修,未报废"
)
public
List
<
Map
<
String
,
Object
>>
selectZJEquipmentSpecificWWXByIds
(
@RequestBody
Map
<
String
,
Object
>
objectMap
)
{
return
equipmentSpecificSerivce
.
selectZJEquipmentSpecificWWXByIds
(
objectMap
.
get
(
"bussIds"
).
toString
());
}
}
}
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/mapper/EquipmentSpecificMapper.java
View file @
d174186f
...
@@ -328,6 +328,6 @@ public interface EquipmentSpecificMapper extends BaseMapper<EquipmentSpecific> {
...
@@ -328,6 +328,6 @@ public interface EquipmentSpecificMapper extends BaseMapper<EquipmentSpecific> {
IPage
<
Map
<
String
,
Object
>>
selectZJEquipmentSpecificWWX
(
Page
page
,
EquipmentSpecificDTO
equipmentSpecific
);
IPage
<
Map
<
String
,
Object
>>
selectZJEquipmentSpecificWWX
(
Page
page
,
EquipmentSpecificDTO
equipmentSpecific
);
List
<
Map
<
String
,
Object
>>
selectZJEquipmentSpecificWWXByIds
(
String
bussIds
);
}
}
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/IEquipmentSpecificSerivce.java
View file @
d174186f
...
@@ -46,6 +46,14 @@ public interface IEquipmentSpecificSerivce extends IService<EquipmentSpecific> {
...
@@ -46,6 +46,14 @@ public interface IEquipmentSpecificSerivce extends IService<EquipmentSpecific> {
*/
*/
IPage
<
Map
<
String
,
Object
>>
selectZJEquipmentSpecificWWX
(
EquipmentSpecificDTO
equipmentSpecific
);
IPage
<
Map
<
String
,
Object
>>
selectZJEquipmentSpecificWWX
(
EquipmentSpecificDTO
equipmentSpecific
);
/**
* 补码页面查询分页
*
* @param bussIds
* @return
*/
List
<
Map
<
String
,
Object
>>
selectZJEquipmentSpecificWWXByIds
(
String
bussIds
);
/**
/**
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/impl/EquipmentSpecificSerivceImpl.java
View file @
d174186f
...
@@ -435,6 +435,11 @@ public class EquipmentSpecificSerivceImpl extends ServiceImpl<EquipmentSpecificM
...
@@ -435,6 +435,11 @@ public class EquipmentSpecificSerivceImpl extends ServiceImpl<EquipmentSpecificM
}
}
@Override
@Override
public
List
<
Map
<
String
,
Object
>>
selectZJEquipmentSpecificWWXByIds
(
String
bussIds
)
{
return
this
.
baseMapper
.
selectZJEquipmentSpecificWWXByIds
(
bussIds
);
}
@Override
public
EquipmentSpecific
updateEquipmentSpecific
(
EquipmentSpecific
equipmentSpecific
,
ReginParams
reginParams
,
AgencyUserModel
agencyUserModel
)
{
public
EquipmentSpecific
updateEquipmentSpecific
(
EquipmentSpecific
equipmentSpecific
,
ReginParams
reginParams
,
AgencyUserModel
agencyUserModel
)
{
SimpleDateFormat
stf
=
new
SimpleDateFormat
(
"yyyy-MM-dd"
);
SimpleDateFormat
stf
=
new
SimpleDateFormat
(
"yyyy-MM-dd"
);
// @TableField(updateStrategy = FieldStrategy.IGNORED) 置空不生效 为空单独设置 by kongfm 2021-09-10
// @TableField(updateStrategy = FieldStrategy.IGNORED) 置空不生效 为空单独设置 by kongfm 2021-09-10
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-patrol-biz/src/main/java/com/yeejoin/amos/patrol/business/controller/CheckController.java
View file @
d174186f
...
@@ -174,8 +174,20 @@ public class CheckController extends AbstractBaseController {
...
@@ -174,8 +174,20 @@ public class CheckController extends AbstractBaseController {
}
}
/**
*
* 浙江省设备平台今日巡查任务按业务id查询
* **/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
@ApiOperation
(
value
=
"巡检记录查询"
,
notes
=
"巡检记录查询"
)
@RequestMapping
(
value
=
"/getPlanTaskCheckInfoByIds"
,
produces
=
"application/json;charset=UTF-8"
,
method
=
RequestMethod
.
POST
)
public
CommonResponse
getPlanTaskCheckInfoByIds
(
@ApiParam
(
value
=
"查询条件"
,
required
=
false
)
@RequestBody
(
required
=
false
)
CheckInfoPageParam
param
)
{
List
<
CheckInfoVo
>
list
=
checkService
.
getPlanTaskCheckInfoByIds
(
param
);
return
CommonResponseUtil
.
success
(
list
);
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-patrol-biz/src/main/java/com/yeejoin/amos/patrol/business/dao/mapper/CheckMapper.java
View file @
d174186f
...
@@ -23,6 +23,8 @@ public interface CheckMapper extends BaseMapper {
...
@@ -23,6 +23,8 @@ public interface CheckMapper extends BaseMapper {
List
<
CheckInfoVo
>
getPlanTaskCheckInfo
(
CheckInfoPageParam
param
);
List
<
CheckInfoVo
>
getPlanTaskCheckInfo
(
CheckInfoPageParam
param
);
List
<
CheckInfoVo
>
getPlanTaskCheckInfoByIds
(
CheckInfoPageParam
param
);
List
<
CheckInfoVo
>
getCheckInfoNew
(
CheckInfoPageParam
param
);
List
<
CheckInfoVo
>
getCheckInfoNew
(
CheckInfoPageParam
param
);
long
getCheckInfoCount
(
CheckInfoPageParam
param
);
long
getCheckInfoCount
(
CheckInfoPageParam
param
);
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-patrol-biz/src/main/java/com/yeejoin/amos/patrol/business/param/CheckInfoPageParam.java
View file @
d174186f
...
@@ -109,7 +109,7 @@ public class CheckInfoPageParam extends CommonPageable{
...
@@ -109,7 +109,7 @@ public class CheckInfoPageParam extends CommonPageable{
private
String
isExecute
;
private
String
isExecute
;
private
String
bussIds
;
}
}
amos-boot-module/amos-boot-module-biz/amos-boot-module-patrol-biz/src/main/java/com/yeejoin/amos/patrol/business/service/impl/CheckServiceImpl.java
View file @
d174186f
...
@@ -178,6 +178,11 @@ public class CheckServiceImpl implements ICheckService {
...
@@ -178,6 +178,11 @@ public class CheckServiceImpl implements ICheckService {
return
new
PageImpl
<>(
content
,
param
,
total
);
return
new
PageImpl
<>(
content
,
param
,
total
);
}
}
public
List
<
CheckInfoVo
>
getPlanTaskCheckInfoByIds
(
CheckInfoPageParam
param
)
{
List
<
CheckInfoVo
>
list
=
checkMapper
.
getPlanTaskCheckInfoByIds
(
param
);
return
list
;
}
public
Page
<
CheckInfoVo
>
getPeoplePatrolPage
(
CheckInfoPageParam
param
)
{
public
Page
<
CheckInfoVo
>
getPeoplePatrolPage
(
CheckInfoPageParam
param
)
{
long
total
=
checkMapper
.
getPeoplePageCount
(
param
);
long
total
=
checkMapper
.
getPeoplePageCount
(
param
);
List
<
CheckInfoVo
>
content
=
Lists
.
newArrayList
();
List
<
CheckInfoVo
>
content
=
Lists
.
newArrayList
();
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-patrol-biz/src/main/java/com/yeejoin/amos/patrol/business/service/intfc/ICheckService.java
View file @
d174186f
...
@@ -265,6 +265,8 @@ public interface ICheckService {
...
@@ -265,6 +265,8 @@ public interface ICheckService {
Page
<
CheckInfoVo
>
getPlanTaskCheckInfo
(
CheckInfoPageParam
param
);
Page
<
CheckInfoVo
>
getPlanTaskCheckInfo
(
CheckInfoPageParam
param
);
List
<
CheckInfoVo
>
getPlanTaskCheckInfoByIds
(
CheckInfoPageParam
param
);
Page
<
CheckInfoVo
>
getPeoplePatrolPage
(
CheckInfoPageParam
param
);
Page
<
CheckInfoVo
>
getPeoplePatrolPage
(
CheckInfoPageParam
param
);
Map
<
String
,
Object
>
getPeopleStatistic
(
String
bizOrgCode
,
String
userId
);
Map
<
String
,
Object
>
getPeopleStatistic
(
String
bizOrgCode
,
String
userId
);
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-patrol-biz/src/main/java/com/yeejoin/amos/patrol/business/vo/CheckInfoVo.java
View file @
d174186f
...
@@ -49,6 +49,36 @@ public class CheckInfoVo {
...
@@ -49,6 +49,36 @@ public class CheckInfoVo {
private
String
problemNum
;
private
String
problemNum
;
private
String
beginTime
;
private
String
endTime
;
private
String
sched
;
public
String
getBeginTime
()
{
return
beginTime
;
}
public
void
setBeginTime
(
String
beginTime
)
{
this
.
beginTime
=
beginTime
;
}
public
String
getEndTime
()
{
return
endTime
;
}
public
void
setEndTime
(
String
endTime
)
{
this
.
endTime
=
endTime
;
}
public
String
getSched
()
{
return
sched
;
}
public
void
setSched
(
String
sched
)
{
this
.
sched
=
sched
;
}
private
String
handleStatus
;
private
String
handleStatus
;
public
String
getProblemNum
()
{
public
String
getProblemNum
()
{
...
...
amos-boot-system-equip/src/main/resources/mapper/EquipmentSpecificMapper.xml
View file @
d174186f
...
@@ -2851,6 +2851,28 @@
...
@@ -2851,6 +2851,28 @@
</if>
</if>
</select>
</select>
<select
id=
"selectZJEquipmentSpecificWWXByIds"
resultType=
"java.util.Map"
>
SELECT
es.id,
es.name,
es.biz_org_name bizOrgName,
es.code,
es.position,
ed.standard,
DATEDIFF( DATE_ADD( DATE_FORMAT( ed.production_date, '%Y-%m-%d' ), INTERVAL e.expiry_date YEAR ), CURRENT_DATE ) AS dayNum
FROM
wl_equipment_specific es
LEFT JOIN wl_equipment_detail ed ON ed.id = es.equipment_detail_id
LEFT JOIN wl_equipment e ON ed.equipment_id = e.id
LEFT JOIN wl_stock_detail sd ON sd.equipment_detail_id = ed.id
WHERE
ed.production_date IS NOT NULL
AND e.expiry_date IS NOT NULL
<if
test=
"bussIds != null and bussIds != ''"
>
And find_in_set(es.id, #{bussIds}) > 0
</if>
</select>
</mapper>
</mapper>
\ No newline at end of file
amos-boot-system-patrol/src/main/resources/db/mapper/dbTemplate_check.xml
View file @
d174186f
...
@@ -7,11 +7,16 @@
...
@@ -7,11 +7,16 @@
<result
property=
"orgCode"
column=
"org_code"
/>
<result
property=
"orgCode"
column=
"org_code"
/>
<result
property=
"pointId"
column=
"point_Id"
/>
<result
property=
"pointId"
column=
"point_Id"
/>
<result
property=
"pointName"
column=
"point_Name"
/>
<result
property=
"pointName"
column=
"point_Name"
/>
<result
property=
"planName"
column=
"plan_name"
/>
<result
property=
"pointNo"
column=
"pointNo"
/>
<result
property=
"pointNo"
column=
"pointNo"
/>
<result
property=
"userId"
column=
"user_Id"
/>
<result
property=
"userId"
column=
"user_Id"
/>
<result
property=
"userName"
column=
"user_Name"
/>
<result
property=
"userName"
column=
"user_Name"
/>
<result
property=
"departmentName"
column=
"department_name"
/>
<result
property=
"departmentName"
column=
"department_name"
/>
<result
property=
"checkTime"
column=
"checkDate"
/>
<result
property=
"checkTime"
column=
"checkDate"
/>
<result
property=
"beginTime"
column=
"beginTime"
/>
<result
property=
"endTime"
column=
"endTime"
/>
<result
property=
"sched"
column=
"sched"
/>
<result
property=
"finishStatus"
column=
"Finish_Status"
/>
<result
property=
"uploadTime"
column=
"upload_Time"
/>
<result
property=
"uploadTime"
column=
"upload_Time"
/>
<result
property=
"isOk"
column=
"is_ok"
/>
<result
property=
"isOk"
column=
"is_ok"
/>
<result
property=
"routeName"
column=
"route_name"
/>
<result
property=
"routeName"
column=
"route_name"
/>
...
@@ -306,6 +311,25 @@
...
@@ -306,6 +311,25 @@
</choose>
</choose>
</select>
</select>
<select
id=
"getPlanTaskCheckInfoByIds"
resultMap=
"checkInfoMap"
>
SELECT
a.id,
c.`name` plan_name,
a.user_name user_name,
Round( a.finish_num / a.point_num, 2 ) sched,
a.begin_time beginTime ,
a.end_time endTime,
( CASE a.finish_status WHEN 0 THEN '未开始' WHEN 1 THEN '进行中' WHEN 2 THEN '已结束' ELSE '已超时' END ) AS `Finish_Status`
FROM
p_plan_task a
LEFT JOIN p_plan c ON c.id = a.plan_id
<where>
<if
test=
"bussIds != null and bussIds != ''"
>
find_in_set(a.id, #{bussIds}) > 0
</if>
</where>
</select>
<select
id=
"getCheckInfoNew"
resultMap=
"checkInfoMap"
>
<select
id=
"getCheckInfoNew"
resultMap=
"checkInfoMap"
>
SELECT
SELECT
a.id,
a.id,
...
...
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