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
05fd6a35
Commit
05fd6a35
authored
Jul 24, 2024
by
tianyiming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
维修告知批量提交业务部分功能提交
parent
6eed5f31
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
36 additions
and
40 deletions
+36
-40
JgMaintainNotice.java
...join/amos/boot/module/jg/api/entity/JgMaintainNotice.java
+3
-0
JgMaintainNoticeEq.java
...in/amos/boot/module/jg/api/entity/JgMaintainNoticeEq.java
+25
-1
JgMaintainNoticeMapper.xml
...-api/src/main/resources/mapper/JgMaintainNoticeMapper.xml
+4
-35
JgMaintainByWorkFlowController.java
...ule/jg/biz/controller/JgMaintainByWorkFlowController.java
+1
-1
JgMaintainNoticeServiceImpl.java
...dule/jg/biz/service/impl/JgMaintainNoticeServiceImpl.java
+0
-0
JgScrapCancelServiceImpl.java
.../module/jg/biz/service/impl/JgScrapCancelServiceImpl.java
+3
-3
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/entity/JgMaintainNotice.java
View file @
05fd6a35
...
@@ -334,6 +334,9 @@ public class JgMaintainNotice extends BaseEntity {
...
@@ -334,6 +334,9 @@ public class JgMaintainNotice extends BaseEntity {
private
String
equList
;
private
String
equList
;
@TableField
(
exist
=
false
)
@TableField
(
exist
=
false
)
private
String
equCategoryDesc
;
@TableField
(
exist
=
false
)
private
String
supervisoryCode
;
private
String
supervisoryCode
;
/**
/**
* 维修类型名称
* 维修类型名称
...
...
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/java/com/yeejoin/amos/boot/module/jg/api/entity/JgMaintainNoticeEq.java
View file @
05fd6a35
...
@@ -6,7 +6,6 @@ import com.yeejoin.amos.boot.biz.common.entity.BaseEntity;
...
@@ -6,7 +6,6 @@ import com.yeejoin.amos.boot.biz.common.entity.BaseEntity;
import
lombok.Data
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
import
lombok.EqualsAndHashCode
;
import
lombok.experimental.Accessors
;
import
lombok.experimental.Accessors
;
import
java.util.Date
;
/**
/**
* 维修告知设备关系表
* 维修告知设备关系表
...
@@ -34,4 +33,29 @@ public class JgMaintainNoticeEq extends BaseEntity {
...
@@ -34,4 +33,29 @@ public class JgMaintainNoticeEq extends BaseEntity {
@TableField
(
"equ_id"
)
@TableField
(
"equ_id"
)
private
String
equId
;
private
String
equId
;
/**
* 设备代码
*/
@TableField
(
"equ_code"
)
private
String
equCode
;
/**
* 告知书编号
*/
@TableField
(
value
=
"inform_number"
)
private
String
informNumber
;
/**
* 设备类别
*/
@TableField
(
value
=
"equ_list_code"
)
private
String
equListCode
;
/**
* 设备类别名称
*/
@TableField
(
value
=
"equ_category_code"
)
private
String
equCategoryCode
;
}
}
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/resources/mapper/JgMaintainNoticeMapper.xml
View file @
05fd6a35
...
@@ -67,20 +67,9 @@
...
@@ -67,20 +67,9 @@
isn.create_user_company_name AS createUserCompanyName,
isn.create_user_company_name AS createUserCompanyName,
isn.next_execute_user_ids AS nextExecuteUserIds,
isn.next_execute_user_ids AS nextExecuteUserIds,
isn.transfer_to_user_ids AS transferToUserIds,
isn.transfer_to_user_ids AS transferToUserIds,
isn.inform_number AS informNumber,
(SELECT name from tz_equipment_category ec WHERE ec.code = isn.equ_list_code) AS equListName,
ri.EQU_CODE AS equCode,
(select name from tz_equipment_category ec WHERE ec.code = isn.equ_category) AS equCategoryName
(SELECT name from tz_equipment_category ec WHERE ec.code = ri.EQU_LIST) AS equListName,
(select name from tz_equipment_category ec WHERE ec.code = ri.EQU_DEFINE) AS equDefineName,
(select name from tz_equipment_category ec WHERE ec.code = ri.EQU_CATEGORY) AS equCategoryName,
concat(ibjui."PROVINCE_NAME", '', ibjui."CITY_NAME", '', ibjui."COUNTY_NAME", '', ibjui."STREET_NAME") as fullAddress,
ibjui."ADDRESS" as detailedAddress,
ibjoi.SUPERVISORY_CODE as supervisoryCode,
ibjoi.CODE96333 as code96333
FROM tzs_jg_maintain_notice isn
FROM tzs_jg_maintain_notice isn
left join tzs_jg_maintain_notice_eq isneq on isn.sequence_nbr = isneq.equip_transfer_id
LEFT JOIN idx_biz_jg_use_info ibjui on isneq.equ_id = ibjui.RECORD
LEFT JOIN idx_biz_jg_register_info ri ON isneq.equ_id = ri.record
LEFT JOIN idx_biz_jg_other_info ibjoi ON isneq.equ_id = ibjoi.RECORD
<where>
<where>
isn.is_delete = 0
isn.is_delete = 0
<if
test=
"param != null "
>
<if
test=
"param != null "
>
...
@@ -108,37 +97,17 @@
...
@@ -108,37 +97,17 @@
<if
test=
"param.informNumber != null and param.informNumber != ''"
>
<if
test=
"param.informNumber != null and param.informNumber != ''"
>
AND isn.inform_number like concat('%',#{param.informNumber},'%')
AND isn.inform_number like concat('%',#{param.informNumber},'%')
</if>
</if>
<if
test=
"param.supervisoryCode != null and param.supervisoryCode != ''"
>
AND ibjoi.supervisory_code like concat('%',#{param.supervisoryCode},'%')
</if>
<if
test=
"param.installUnitCreditCode != null and param.installUnitCreditCode != ''"
>
<if
test=
"param.installUnitCreditCode != null and param.installUnitCreditCode != ''"
>
AND isn.install_unit_credit_code like concat('%',#{param.installUnitCreditCode},'%')
AND isn.install_unit_credit_code like concat('%',#{param.installUnitCreditCode},'%')
</if>
</if>
<if
test=
"param.code96333 != null and param.code96333 != ''"
>
AND ibjoi.code96333 like concat('%',#{param.code96333},'%')
</if>
<if
test=
"param.equCode != null and param.equCode != ''"
>
AND ri.EQU_CODE like concat('%',#{param.equCode},'%')
</if>
<if
test=
"param.noticeDate != null"
>
<if
test=
"param.noticeDate != null"
>
AND isn.notice_date like concat('%',DATE_FORMAT(#{param.noticeDate},'%Y-%m-%d'),'%')
AND isn.notice_date like concat('%',DATE_FORMAT(#{param.noticeDate},'%Y-%m-%d'),'%')
</if>
</if>
<if
test=
"param.equListCode != null and param.equListCode != ''"
>
<if
test=
"param.equListCode != null and param.equListCode != ''"
>
AND
ri."EQU_LIST
" = #{param.equListCode}
AND
isn."equ_list_code
" = #{param.equListCode}
</if>
</if>
<if
test=
"param.equCategory != null and param.equCategory != ''"
>
<if
test=
"param.equCategory != null and param.equCategory != ''"
>
AND ri."equ_category" = #{param.equCategory}
AND isn."equ_category" = #{param.equCategory}
</if>
<if
test=
"param.equDefine != null and param.equDefine != ''"
>
AND ri."EQU_DEFINE" = #{param.equDefine}
</if>
<if
test=
"param.fullAddress != null and param.fullAddress != ''"
>
AND (
ibjui."PROVINCE_NAME" LIKE CONCAT('%', #{param.fullAddress}, '%')
OR ibjui."CITY_NAME" LIKE CONCAT('%', #{param.fullAddress}, '%')
OR ibjui."COUNTY_NAME" LIKE CONCAT('%', #{param.fullAddress}, '%')
OR ibjui."STREET_NAME" LIKE CONCAT('%', #{param.fullAddress}, '%')
)
</if>
</if>
</if>
</if>
<if
test=
"type != 'company'"
>
<if
test=
"type != 'company'"
>
...
...
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/java/com/yeejoin/amos/boot/module/jg/biz/controller/JgMaintainByWorkFlowController.java
View file @
05fd6a35
...
@@ -80,7 +80,7 @@ public class JgMaintainByWorkFlowController {
...
@@ -80,7 +80,7 @@ public class JgMaintainByWorkFlowController {
LinkedHashMap
maintainInfo
=
(
LinkedHashMap
)
model1
.
get
(
TABLE_PAGE_ID
);
LinkedHashMap
maintainInfo
=
(
LinkedHashMap
)
model1
.
get
(
TABLE_PAGE_ID
);
String
opinion
=
model
.
get
(
"opinion"
).
toString
();
String
opinion
=
model
.
get
(
"opinion"
).
toString
();
JgMaintainNoticeDto
jgMaintainNoticeDto
=
JSON
.
parseObject
(
JSON
.
toJSONString
(
maintainInfo
),
JgMaintainNoticeDto
.
class
);
JgMaintainNoticeDto
jgMaintainNoticeDto
=
JSON
.
parseObject
(
JSON
.
toJSONString
(
maintainInfo
),
JgMaintainNoticeDto
.
class
);
jgMaintainNoticeServiceImpl
.
accept
(
jgMaintainNoticeDto
,
op
,
opinion
);
jgMaintainNoticeServiceImpl
.
accept
(
jgMaintainNoticeDto
,
op
,
opinion
,
model1
);
return
ResponseHelper
.
buildResponse
(
null
);
return
ResponseHelper
.
buildResponse
(
null
);
}
}
}
}
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/JgMaintainNoticeServiceImpl.java
View file @
05fd6a35
This diff is collapsed.
Click to expand it.
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/JgScrapCancelServiceImpl.java
View file @
05fd6a35
...
@@ -269,7 +269,7 @@ public class JgScrapCancelServiceImpl extends BaseService<JgScrapCancelDto, JgSc
...
@@ -269,7 +269,7 @@ public class JgScrapCancelServiceImpl extends BaseService<JgScrapCancelDto, JgSc
JSONObject
jsonObject
=
JSONObject
.
parseObject
(
JSONObject
.
toJSONString
(
noticeParams
));
JSONObject
jsonObject
=
JSONObject
.
parseObject
(
JSONObject
.
toJSONString
(
noticeParams
));
commonService
.
saveExecuteFlowData2Redis
(
instanceId
,
buildInstanceRuntimeData
(
jgScrapCancel
));
commonService
.
saveExecuteFlowData2Redis
(
instanceId
,
buildInstanceRuntimeData
(
jgScrapCancel
));
String
equListName
=
EquipmentClassifityEnum
.
getNameByCode
(
jsonObject
.
get
(
"equListCode"
).
toString
());
String
equListName
=
EquipmentClassifityEnum
.
getNameByCode
(
jsonObject
.
get
(
"equListCode"
).
toString
());
save2HisData
(
jsonObject
,
jgScrapCancel
.
getSequenceNbr
().
toString
());
save2HisData
(
jsonObject
,
jgScrapCancel
.
getSequenceNbr
().
toString
()
,
jgScrapCancel
.
getCancelTypeDesc
()
);
JgScrapCancelDto
dto
=
new
JgScrapCancelDto
();
JgScrapCancelDto
dto
=
new
JgScrapCancelDto
();
BeanUtil
.
copyProperties
(
jgScrapCancel
,
dto
);
BeanUtil
.
copyProperties
(
jgScrapCancel
,
dto
);
dto
.
setEquListName
(
equListName
);
dto
.
setEquListName
(
equListName
);
...
@@ -419,8 +419,8 @@ public class JgScrapCancelServiceImpl extends BaseService<JgScrapCancelDto, JgSc
...
@@ -419,8 +419,8 @@ public class JgScrapCancelServiceImpl extends BaseService<JgScrapCancelDto, JgSc
}
}
private
void
save2HisData
(
JSONObject
jsonObject
,
String
currentDocumentId
)
{
private
void
save2HisData
(
JSONObject
jsonObject
,
String
currentDocumentId
,
String
cancelTypeDesc
)
{
commonService
.
saveOrUpdateHistory
(
""
,
jsonObject
,
null
,
currentDocumentId
);
commonService
.
saveOrUpdateHistory
(
cancelTypeDesc
,
jsonObject
,
null
,
currentDocumentId
);
}
}
private
void
createTaskModel
(
JgScrapCancel
scrapCancel
,
String
taskName
,
String
submitType
,
String
nextUserIds
)
{
private
void
createTaskModel
(
JgScrapCancel
scrapCancel
,
String
taskName
,
String
submitType
,
String
nextUserIds
)
{
...
...
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