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
50cabcdc
Commit
50cabcdc
authored
May 09, 2024
by
韩桐桐
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(jg):维保备案bug
parent
050956d8
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
35 additions
and
53 deletions
+35
-53
JgMaintenanceContractDto.java
...amos/boot/module/jg/api/dto/JgMaintenanceContractDto.java
+7
-14
JgMaintenanceContractVo.java
...n/amos/boot/module/jg/api/vo/JgMaintenanceContractVo.java
+5
-23
JgMaintenanceContractMapper.xml
...src/main/resources/mapper/JgMaintenanceContractMapper.xml
+21
-16
JgMaintenanceContractServiceImpl.java
...jg/biz/service/impl/JgMaintenanceContractServiceImpl.java
+2
-0
No files found.
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/java/com/yeejoin/amos/boot/module/jg/api/dto/JgMaintenanceContractDto.java
View file @
50cabcdc
...
@@ -154,15 +154,10 @@ public class JgMaintenanceContractDto extends BaseDto {
...
@@ -154,15 +154,10 @@ public class JgMaintenanceContractDto extends BaseDto {
private
List
<
String
>
roleIds
;
private
List
<
String
>
roleIds
;
@ApiModelProperty
(
value
=
"设备种类"
)
/**
* 设备种类
*/
private
String
equList
;
private
String
equList
;
/**
* 设备类别
*/
@ApiModelProperty
(
value
=
"设备类别"
)
private
String
equCategory
;
private
String
equCategory
;
@ApiModelProperty
(
value
=
"设备品种"
)
@ApiModelProperty
(
value
=
"设备品种"
)
...
@@ -174,17 +169,12 @@ public class JgMaintenanceContractDto extends BaseDto {
...
@@ -174,17 +169,12 @@ public class JgMaintenanceContractDto extends BaseDto {
@ApiModelProperty
(
value
=
"设备代码"
)
@ApiModelProperty
(
value
=
"设备代码"
)
private
String
equCode
;
private
String
equCode
;
/**
@ApiModelProperty
(
value
=
"工作流下一节点任务id"
)
* 工作流下一节点任务id
*/
private
String
nextTaskId
;
private
String
nextTaskId
;
/**
@ApiModelProperty
(
value
=
"下一节点可执行人"
)
* 下一节点可执行人
*/
private
String
nextExecuteUserIds
;
private
String
nextExecuteUserIds
;
@ApiModelProperty
(
value
=
"使用单位统一信用代码-数据隔离使用"
)
@ApiModelProperty
(
value
=
"使用单位统一信用代码-数据隔离使用"
)
private
String
useUnitCodeFilter
;
private
String
useUnitCodeFilter
;
...
@@ -199,4 +189,7 @@ public class JgMaintenanceContractDto extends BaseDto {
...
@@ -199,4 +189,7 @@ public class JgMaintenanceContractDto extends BaseDto {
@ApiModelProperty
(
value
=
"其他附件"
)
@ApiModelProperty
(
value
=
"其他附件"
)
private
String
otherAccessories
;
private
String
otherAccessories
;
@ApiModelProperty
(
value
=
"当前登陆人单位类型"
)
private
String
unitType
;
}
}
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/java/com/yeejoin/amos/boot/module/jg/api/vo/JgMaintenanceContractVo.java
View file @
50cabcdc
...
@@ -11,20 +11,6 @@ import java.util.Map;
...
@@ -11,20 +11,6 @@ import java.util.Map;
@Data
@Data
public
class
JgMaintenanceContractVo
{
public
class
JgMaintenanceContractVo
{
@TableField
(
"使用单位-提交-是否可操作"
)
private
Boolean
submitIsFlag
;
@TableField
(
"使用单位-撤回-是否可操作"
)
private
Boolean
revocationIsFlag
;
@TableField
(
"维保单位-受理-是否可操作"
)
private
Boolean
handleIsFlag
;
@TableField
(
"维保单位-驳回-是否可操作"
)
private
Boolean
rejectedIsFlag
;
@TableField
(
"使用:0,维保:1,监管:2"
)
private
String
phase
;
@TableField
(
"维保备案编号"
)
@TableField
(
"维保备案编号"
)
private
String
applyNo
;
private
String
applyNo
;
...
@@ -153,7 +139,6 @@ public class JgMaintenanceContractVo {
...
@@ -153,7 +139,6 @@ public class JgMaintenanceContractVo {
@ApiModelProperty
(
"status"
)
@ApiModelProperty
(
"status"
)
private
String
status
;
private
String
status
;
@ApiModelProperty
(
"设备种类"
)
@ApiModelProperty
(
"设备种类"
)
private
String
equList
;
private
String
equList
;
...
@@ -162,18 +147,15 @@ public class JgMaintenanceContractVo {
...
@@ -162,18 +147,15 @@ public class JgMaintenanceContractVo {
private
List
<?
extends
Map
<?,?>>
equipmentLists
;
private
List
<?
extends
Map
<?,?>>
equipmentLists
;
/**
@ApiModelProperty
(
"工作流下一节点任务id"
)
* 工作流下一节点任务id
*/
@ApiModelProperty
(
"next_task_id"
)
private
String
nextTaskId
;
private
String
nextTaskId
;
/**
@ApiModelProperty
(
"安全管理员姓名联系方式"
)
* 安全管理员姓名联系方式
*/
@ApiModelProperty
(
"maintenance_manager_phone"
)
private
String
maintenanceManagerPhone
;
private
String
maintenanceManagerPhone
;
@ApiModelProperty
(
value
=
"其他附件"
)
@ApiModelProperty
(
value
=
"其他附件"
)
private
JSONArray
otherAccessories
;
private
JSONArray
otherAccessories
;
@ApiModelProperty
(
value
=
"当前登陆人单位类型"
)
private
String
unitType
;
}
}
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/resources/mapper/JgMaintenanceContractMapper.xml
View file @
50cabcdc
...
@@ -174,29 +174,34 @@
...
@@ -174,29 +174,34 @@
AND ri."EQU_CODE" like concat('%',#{contractDto.equCode},'%')
AND ri."EQU_CODE" like concat('%',#{contractDto.equCode},'%')
</if>
</if>
-- 数据过滤开始 ----------------------------------------------------
-- 数据过滤开始 ----------------------------------------------------
<choose
>
<!-- <choose>--
>
<when
test=
"contractDto.useUnitCodeFilter != '' and contractDto.useUnitCodeFilter != null and
<!-- <when test="contractDto.useUnitCodeFilter != '' and contractDto.useUnitCodeFilter != null and-->
contractDto.maintenanceUnitCodeFilter != '' and contractDto.maintenanceUnitCodeFilter != null"
>
<!-- contractDto.maintenanceUnitCodeFilter != '' and contractDto.maintenanceUnitCodeFilter != null">--
>
-- 同时有使用单位和维保单位用
<!-- -- 同时有使用单位和维保单位用-->
and (
<!-- and (-->
tjmc.use_unit_code = #{contractDto.useUnitCodeFilter}
<!-- tjmc.use_unit_code = #{contractDto.useUnitCodeFilter}-->
or tjmc.maintenance_unit_code = #{contractDto.maintenanceUnitCodeFilter}
<!-- or tjmc.maintenance_unit_code = #{contractDto.maintenanceUnitCodeFilter}-->
or tjmc.transfer_to_user_ids LIKE concat ( '%', #{currentUserId}, '%' )
<!-- or tjmc.transfer_to_user_ids LIKE concat ( '%', #{currentUserId}, '%' )-->
)
<!-- )-->
</when
>
<!-- </when>--
>
<otherwise
>
<!-- <otherwise >--
>
-- 只有使用单位或者维保单位用,或者都没有
-- 只有使用单位或者维保单位用,或者都没有
<if
test=
"contractDto.useUnitCodeFilter != '' and contractDto.useUnitCodeFilter != null"
>
<if
test=
"contractDto.useUnitCodeFilter != '' and contractDto.useUnitCodeFilter != null"
>
and (tjmc.use_unit_code = #{contractDto.useUnitCodeFilter} or tjmc.transfer_to_user_ids LIKE concat ( '%', #{currentUserId}, '%' ))
and (tjmc.use_unit_code = #{contractDto.useUnitCodeFilter}
or tjmc.transfer_to_user_ids LIKE concat ( '%', #{currentUserId}, '%' ))
</if>
</if>
<if
test=
"contractDto.maintenanceUnitCodeFilter != '' and contractDto.maintenanceUnitCodeFilter != null"
>
<if
test=
"contractDto.maintenanceUnitCodeFilter != '' and contractDto.maintenanceUnitCodeFilter != null"
>
and (tjmc.maintenance_unit_code = #{contractDto.maintenanceUnitCodeFilter} or tjmc.transfer_to_user_ids LIKE concat ( '%', #{currentUserId}, '%' ))
and (tjmc.maintenance_unit_code = #{contractDto.maintenanceUnitCodeFilter}
or tjmc.transfer_to_user_ids LIKE concat ( '%', #{currentUserId}, '%' ))
and (tjmc.status
<![CDATA[<>]]>
'使用单位待提交' and tjmc.status
<![CDATA[<>]]>
'待提交')
</if>
</if>
</otherwise
>
<!-- </otherwise>--
>
</choose
>
<!-- </choose>--
>
-- 监管单位用
-- 监管单位用
<if
test=
"contractDto.receiveOrgCodeFilter != '' and contractDto.receiveOrgCodeFilter != null"
>
<if
test=
"contractDto.receiveOrgCodeFilter != '' and contractDto.receiveOrgCodeFilter != null"
>
and (tjmc.receive_org_code = #{contractDto.receiveOrgCodeFilter} or tjmc.transfer_to_user_ids LIKE concat ( '%', #{currentUserId}, '%' ))
and (tjmc.receive_org_code = #{contractDto.receiveOrgCodeFilter}
or tjmc.transfer_to_user_ids LIKE concat ( '%', #{currentUserId}, '%' ))
and (tjmc.status
<![CDATA[<>]]>
'使用单位待提交' and tjmc.status
<![CDATA[<>]]>
'待提交')
</if>
</if>
-- 数据过滤结束 ----------------------------------------------------
-- 数据过滤结束 ----------------------------------------------------
</where>
</where>
...
...
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/java/com/yeejoin/amos/boot/module/jg/biz/service/impl/JgMaintenanceContractServiceImpl.java
View file @
50cabcdc
...
@@ -124,6 +124,8 @@ public class JgMaintenanceContractServiceImpl extends BaseService<JgMaintenanceC
...
@@ -124,6 +124,8 @@ public class JgMaintenanceContractServiceImpl extends BaseService<JgMaintenanceC
}
}
}
}
contractList
=
maintenanceContractMapper
.
getContractList
(
page
,
sortMap
,
dto
,
reginParams
.
getUserModel
().
getUserId
());
contractList
=
maintenanceContractMapper
.
getContractList
(
page
,
sortMap
,
dto
,
reginParams
.
getUserModel
().
getUserId
());
List
<
JgMaintenanceContractDto
>
records
=
contractList
.
getRecords
().
stream
().
peek
(
x
->
x
.
setUnitType
(
company
.
getCompanyType
())).
collect
(
Collectors
.
toList
());
contractList
.
setRecords
(
records
);
BeanUtils
.
copyProperties
(
contractList
,
result
);
BeanUtils
.
copyProperties
(
contractList
,
result
);
return
result
;
return
result
;
}
}
...
...
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