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
ce16acde
Commit
ce16acde
authored
Jan 23, 2024
by
王果
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/develop_tzs_register' into develop_tzs_register
parents
d7078f0f
ec778840
Show whitespace changes
Inline
Side-by-side
Showing
19 changed files
with
257 additions
and
88 deletions
+257
-88
JgEnableDisableMapper.xml
...g-api/src/main/resources/mapper/JgEnableDisableMapper.xml
+3
-1
JgEquipTransferMapper.xml
...g-api/src/main/resources/mapper/JgEquipTransferMapper.xml
+2
-2
JgReformNoticeMapper.xml
...jg-api/src/main/resources/mapper/JgReformNoticeMapper.xml
+11
-9
JgUseRegistrationMapper.xml
...api/src/main/resources/mapper/JgUseRegistrationMapper.xml
+6
-1
JgReformNoticeController.java
...ot/module/jg/biz/controller/JgReformNoticeController.java
+43
-43
IdxBizJgRegisterInfoServiceImpl.java
.../jg/biz/service/impl/IdxBizJgRegisterInfoServiceImpl.java
+20
-0
JgChangeRegistrationReformServiceImpl.java
...z/service/impl/JgChangeRegistrationReformServiceImpl.java
+7
-0
JgChangeRegistrationUnitServiceImpl.java
...biz/service/impl/JgChangeRegistrationUnitServiceImpl.java
+7
-5
JgEnableDisableServiceImpl.java
...odule/jg/biz/service/impl/JgEnableDisableServiceImpl.java
+3
-0
JgEquipTransferServiceImpl.java
...odule/jg/biz/service/impl/JgEquipTransferServiceImpl.java
+1
-1
JgInstallationNoticeEqServiceImpl.java
...g/biz/service/impl/JgInstallationNoticeEqServiceImpl.java
+9
-0
JgInstallationNoticeServiceImpl.java
.../jg/biz/service/impl/JgInstallationNoticeServiceImpl.java
+33
-6
JgMaintainNoticeServiceImpl.java
...dule/jg/biz/service/impl/JgMaintainNoticeServiceImpl.java
+1
-0
JgReformNoticeServiceImpl.java
...module/jg/biz/service/impl/JgReformNoticeServiceImpl.java
+9
-4
JgScrapCancelServiceImpl.java
.../module/jg/biz/service/impl/JgScrapCancelServiceImpl.java
+4
-5
JgTransferNoticeServiceImpl.java
...dule/jg/biz/service/impl/JgTransferNoticeServiceImpl.java
+33
-8
JgUseRegistrationEqServiceImpl.java
...e/jg/biz/service/impl/JgUseRegistrationEqServiceImpl.java
+11
-0
JgUseRegistrationServiceImpl.java
...ule/jg/biz/service/impl/JgUseRegistrationServiceImpl.java
+1
-1
equipCategory.json
...module-ymt-biz/src/main/resources/json/equipCategory.json
+53
-2
No files found.
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/resources/mapper/JgEnableDisableMapper.xml
View file @
ce16acde
...
...
@@ -25,12 +25,14 @@
jed.next_executor_ids as nextExecutorIds,
jed.promoter,
jed.next_execute_user_ids as nextExecuteUserIds,
jed.create_user_id as createUserId
jed.create_user_id as createUserId,
oi.SUPERVISORY_CODE as supervisoryCode
FROM tzs_jg_enable_disable jed
LEFT JOIN tzs_jg_enable_disable_eq jede on jed.sequence_nbr = jede.enable_disable_apply_id
LEFT JOIN idx_biz_jg_register_info jri on jede.equ_id = jri.RECORD
LEFT JOIN idx_biz_jg_use_info use on jri.RECORD = use.RECORD
LEFT JOIN idx_biz_jg_other_info oi on jri.RECORD = oi.RECORD
<where>
<if
test=
"dto.applyNo != null and dto.applyNo != '' "
>
and jed.apply_no like concat('%',#{dto.applyNo},'%')
...
...
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/resources/mapper/JgEquipTransferMapper.xml
View file @
ce16acde
...
...
@@ -55,14 +55,14 @@
tec1.name AS equList,
tec.name AS equDefine,
jet.create_date AS createDate,
jet.next_execute_user_ids as nextExecuteUserIds
jet.next_execute_user_ids as nextExecuteUserIds,
jet.create_user_id as createUserId
FROM
tzs_jg_equip_transfer jet
LEFT JOIN tzs_jg_equip_transfer_eq ete ON ete.equip_transfer_id = jet.sequence_nbr
LEFT JOIN idx_biz_jg_register_info ri ON ri.record = ete.equ_id
LEFT JOIN idx_biz_jg_design_info di ON di.record = ete.equ_id
LEFT JOIN idx_biz_jg_factory_info fi ON fi.record = ete.equ_id
LEFT JOIN idx_biz_jg_inspection_detection_info idi ON idi.record = ete.equ_id
LEFT JOIN idx_biz_jg_use_info ui ON ui.record = ete.equ_id
LEFT JOIN idx_biz_jg_other_info oi ON oi.record = ete.equ_id
LEFT JOIN tz_equipment_category tec ON ri."EQU_CATEGORY"::text = tec.code::text
...
...
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/resources/mapper/JgReformNoticeMapper.xml
View file @
ce16acde
...
...
@@ -30,9 +30,14 @@
isn.accept_date,
isn.equ_list_code,
isn.equ_category,
isn.create_user_id
isn.create_user_id,
isn.next_execute_user_ids,
oi.SUPERVISORY_CODE AS supervisoryCode
FROM
tzs_jg_reform_notice isn
LEFT JOIN tzs_jg_reform_notice_eq re ON re.equip_transfer_id = isn.sequence_nbr
LEFT JOIN idx_biz_jg_register_info ri ON ri.record = re.equ_id
LEFT JOIN idx_biz_jg_other_info oi ON ri.RECORD = oi.RECORD
<where>
isn.is_delete = false
<if
test=
"param != null "
>
...
...
@@ -68,8 +73,7 @@
</select>
<select
id=
"queryEquipInformation"
resultType=
"java.util.Map"
>
select
isn.sequence_nbr AS sequenceNbr,
select isn.sequence_nbr AS sequenceNbr,
isn.install_unit_name AS installUnitName,
isn.apply_no AS applyNo,
isn.province_name AS provinceName,
...
...
@@ -126,13 +130,11 @@
tec1.name AS equList,
tec.name AS equDefine,
oi.SUPERVISORY_CODE AS supervisoryCode
FROM
tzs_jg_reform_notice isn
FROM tzs_jg_reform_notice isn
LEFT JOIN tzs_jg_reform_notice_eq re ON re.equip_transfer_id = isn.sequence_nbr
LEFT JOIN idx_biz_jg_register_info ri ON ri.record = re.equ_id
LEFT JOIN idx_biz_jg_design_info di ON di.record = re.equ_id
LEFT JOIN idx_biz_jg_factory_info fi ON fi.record = re.equ_id
LEFT JOIN idx_biz_jg_inspection_detection_info idi ON idi.record = re.equ_id
LEFT JOIN idx_biz_jg_use_info ui ON ui.record = re.equ_id
LEFT JOIN tz_base_enterprise_info ei ON ei.use_code = isn.use_unit_credit_code
LEFT JOIN tz_base_enterprise_info ei2 ON ei2.use_code = isn.install_unit_credit_code
...
...
@@ -140,13 +142,13 @@
LEFT JOIN tz_equipment_category tec1 ON ri."EQU_LIST"::text = tec1.code::text
LEFT JOIN tz_equipment_category tec2 ON ri."EQU_DEFINE"::text = tec2.code::text
LEFT JOIN idx_biz_jg_other_info oi ON ri.RECORD = oi.RECORD
WHERE
isn.sequence_nbr = #{sequenceNbr}
WHERE isn.sequence_nbr = #{sequenceNbr}
LIMIT 1
</select>
<update
id=
"updatePromoter"
>
UPDATE tzs_jg_reform_notice set promoter = null
UPDATE tzs_jg_reform_notice
set promoter = null
where sequence_nbr = #{id}
</update>
</mapper>
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/resources/mapper/JgUseRegistrationMapper.xml
View file @
ce16acde
...
...
@@ -77,12 +77,17 @@
jri.PRODUCT_NAME as productName,
jri.EQU_TYPE as equType,
jri.PRODUCT_PHOTO as proDuctPhoto,
jri.BRAND_NAME as brandName,
jri.EQU_PRICE as equPrice,
jfi.FACTORY_NUM as factoryNum,
jfi.PRODUCE_UNIT_NAME as produceUnitName,
date_format(jfi.PRODUCE_DATE,'%Y-%m-%d') as produceDate,
jfi.FACTORY_STANDARD as factoryStandard,
jfi.PRODUCT_QUALITY_YIELD_PROVE as productQualityYieldProve,
jfi.INS_USE_MAINTAIN_EXPLAIN as insUseMaintainExplanin,
jfi.INS_USE_MAINTAIN_EXPLAIN as insUseMaintainExplain,
jfi.IMPORTED as imported,
jfi.PRODUCE_LICENSE_NUM as produceLicenseNum,
jfi.PRODUCE_COUNTRY as produceCountry,
jci.USC_UNIT_NAME as uscUnitName,
jci.USC_UNIT_CREDIT_CODE as uscUnitCreditCode
...
...
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/java/com/yeejoin/amos/boot/module/jg/biz/controller/JgReformNoticeController.java
View file @
ce16acde
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jg
.
biz
.
controller
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.yeejoin.amos.boot.biz.common.bo.ReginParams
;
import
com.yeejoin.amos.boot.biz.common.controller.BaseController
;
import
com.yeejoin.amos.boot.module.common.biz.utils.CommonResponseUtil
;
import
com.yeejoin.amos.boot.module.jg.api.dto.JgReformNoticeDto
;
import
com.yeejoin.amos.boot.module.jg.api.entity.JgReformNotice
;
import
com.yeejoin.amos.boot.module.jg.api.service.IJgInstallationNoticeService
;
import
io.swagger.annotations.ApiParam
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.Api
;
import
org.springframework.web.bind.annotation.RestController
;
import
com.yeejoin.amos.boot.biz.common.controller.BaseController
;
import
java.util.Map
;
import
java.util.Objects
;
import
com.yeejoin.amos.boot.module.jg.biz.service.impl.JgReformNoticeServiceImpl
;
import
org.typroject.tyboot.core.restful.utils.ResponseHelper
;
import
org.typroject.tyboot.core.restful.utils.ResponseModel
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiParam
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.*
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
org.typroject.tyboot.core.restful.doc.TycloudOperation
;
import
org.typroject.tyboot.core.foundation.enumeration.UserType
;
import
org.typroject.tyboot.core.restful.doc.TycloudOperation
;
import
org.typroject.tyboot.core.restful.utils.ResponseHelper
;
import
org.typroject.tyboot.core.restful.utils.ResponseModel
;
import
java.util.Map
;
import
java.util.Objects
;
/**
* 改造告知
...
...
@@ -29,8 +28,8 @@ import org.typroject.tyboot.core.foundation.enumeration.UserType;
* @date 2023-12-19
*/
@RestController
@Api
(
tags
=
"改造告知Api"
)
@RequestMapping
(
value
=
"/jg-reform-notice"
)
@Api
(
tags
=
"改造告知Api"
)
@RequestMapping
(
value
=
"/jg-reform-notice"
)
public
class
JgReformNoticeController
extends
BaseController
{
@Autowired
...
...
@@ -44,9 +43,9 @@ public class JgReformNoticeController extends BaseController {
*
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@PostMapping
(
value
=
"/save"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"新增改造告知"
,
notes
=
"新增改造告知"
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@PostMapping
(
value
=
"/save"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"新增改造告知"
,
notes
=
"新增改造告知"
)
public
ResponseModel
<
Object
>
save
(
@RequestParam
String
submitType
,
@RequestBody
Map
<
String
,
Object
>
model
)
{
ReginParams
reginParams
=
getSelectedOrgInfo
();
return
ResponseHelper
.
buildResponse
(
jgReformNoticeService
.
saveNotice
(
submitType
,
model
,
reginParams
));
...
...
@@ -55,15 +54,16 @@ public class JgReformNoticeController extends BaseController {
/**
* 更新
*
* @param submitType 更新或提交
* @param installationInfo 改造告知信息
* @param op 参数
* @return JgReformNoticeDto
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@PutMapping
(
value
=
"/update"
)
@ApiOperation
(
httpMethod
=
"PUT"
,
value
=
"根据sequenceNbr更新改造告知"
,
notes
=
"根据sequenceNbr更新改造告知"
)
public
ResponseModel
<
JgReformNoticeDto
>
updateBySequenceNbrJgReformNotice
(
@RequestParam
String
submitType
,
@RequestBody
JgReformNoticeDto
installationInfo
,
@RequestParam
(
value
=
"op"
,
required
=
false
)
String
op
)
{
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@PutMapping
(
value
=
"/update"
)
@ApiOperation
(
httpMethod
=
"PUT"
,
value
=
"根据sequenceNbr更新改造告知"
,
notes
=
"根据sequenceNbr更新改造告知"
)
public
ResponseModel
<
JgReformNoticeDto
>
updateBySequenceNbrJgReformNotice
(
@RequestParam
String
submitType
,
@RequestBody
JgReformNoticeDto
installationInfo
,
@RequestParam
(
value
=
"op"
,
required
=
false
)
String
op
)
{
if
(
Objects
.
isNull
(
installationInfo
))
{
throw
new
IllegalArgumentException
(
"参数installationInfo不能为空"
);
}
...
...
@@ -76,10 +76,10 @@ public class JgReformNoticeController extends BaseController {
*
* @param sequenceNbr 主键
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@DeleteMapping
(
value
=
"/delete"
)
@ApiOperation
(
httpMethod
=
"DELETE"
,
value
=
"根据sequenceNbr删除改造告知"
,
notes
=
"根据sequenceNbr删除改造告知"
)
public
ResponseModel
<
Boolean
>
deleteBySequenceNbr
(
@RequestParam
(
value
=
"sequenceNbr"
)
Long
[]
sequenceNbr
)
{
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@DeleteMapping
(
value
=
"/delete"
)
@ApiOperation
(
httpMethod
=
"DELETE"
,
value
=
"根据sequenceNbr删除改造告知"
,
notes
=
"根据sequenceNbr删除改造告知"
)
public
ResponseModel
<
Boolean
>
deleteBySequenceNbr
(
@RequestParam
(
value
=
"sequenceNbr"
)
Long
[]
sequenceNbr
)
{
return
ResponseHelper
.
buildResponse
(
jgReformNoticeService
.
removeById
(
sequenceNbr
));
}
...
...
@@ -88,10 +88,10 @@ public class JgReformNoticeController extends BaseController {
*
* @param sequenceNbrs 主键
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@DeleteMapping
(
value
=
"/batchDelete"
)
@ApiOperation
(
value
=
"根据sequenceNbr删除维保合同备案"
,
notes
=
"根据sequenceNbr删除维保合同备案"
)
public
ResponseModel
<
Boolean
>
deleteForBatch
(
@RequestParam
(
"sequenceNbrs"
)
Long
[]
sequenceNbrs
)
{
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@DeleteMapping
(
value
=
"/batchDelete"
)
@ApiOperation
(
value
=
"根据sequenceNbr删除维保合同备案"
,
notes
=
"根据sequenceNbr删除维保合同备案"
)
public
ResponseModel
<
Boolean
>
deleteForBatch
(
@RequestParam
(
"sequenceNbrs"
)
Long
[]
sequenceNbrs
)
{
try
{
return
ResponseHelper
.
buildResponse
(
jgReformNoticeService
.
deleteForBatch
(
sequenceNbrs
));
}
catch
(
Exception
e
)
{
...
...
@@ -104,10 +104,10 @@ public class JgReformNoticeController extends BaseController {
*
* @param sequenceNbr 主键
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@GetMapping
(
value
=
"/details"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"根据sequenceNbr查询单个改造告知"
,
notes
=
"根据sequenceNbr查询单个改造告知"
)
public
ResponseModel
<
Map
<
String
,
Object
>>
selectOne
(
@RequestParam
(
"sequenceNbr"
)
Long
sequenceNbr
)
{
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@GetMapping
(
value
=
"/details"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"根据sequenceNbr查询单个改造告知"
,
notes
=
"根据sequenceNbr查询单个改造告知"
)
public
ResponseModel
<
Map
<
String
,
Object
>>
selectOne
(
@RequestParam
(
"sequenceNbr"
)
Long
sequenceNbr
)
{
return
ResponseHelper
.
buildResponse
(
jgReformNoticeService
.
queryBySequenceNbr
(
sequenceNbr
));
}
...
...
@@ -119,13 +119,13 @@ public class JgReformNoticeController extends BaseController {
* @param current 每页大小
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@PostMapping
(
value
=
"/page"
)
@ApiOperation
(
httpMethod
=
"GE
T"
,
value
=
"改造告知分页查询"
,
notes
=
"改造告知分页查询"
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@PostMapping
(
value
=
"/page"
)
@ApiOperation
(
httpMethod
=
"POS
T"
,
value
=
"改造告知分页查询"
,
notes
=
"改造告知分页查询"
)
public
ResponseModel
<
Page
<
JgReformNoticeDto
>>
queryForPage
(
@ApiParam
(
value
=
"当前页码"
,
required
=
true
)
@RequestParam
(
value
=
"current"
,
defaultValue
=
"1"
)
int
current
,
@ApiParam
(
value
=
"每页大小"
,
required
=
true
)
@RequestParam
(
value
=
"size"
,
defaultValue
=
"20"
)
int
size
,
@RequestBody
(
required
=
false
)
JgReformNoticeDto
model
@ApiParam
(
value
=
"当前页码"
,
required
=
true
)
@RequestParam
(
value
=
"current"
,
defaultValue
=
"1"
)
int
current
,
@ApiParam
(
value
=
"每页大小"
,
required
=
true
)
@RequestParam
(
value
=
"size"
,
defaultValue
=
"20"
)
int
size
,
@RequestBody
(
required
=
false
)
JgReformNoticeDto
model
)
{
Page
<
JgReformNotice
>
page
=
new
Page
<>(
current
,
size
);
ReginParams
reginParams
=
getSelectedOrgInfo
();
...
...
@@ -136,10 +136,10 @@ public class JgReformNoticeController extends BaseController {
/**
* 生成告知单
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"改造告知列表全部数据查询"
,
notes
=
"改造告知列表全部数据查询"
)
@GetMapping
(
value
=
"/generate-report"
)
public
ResponseModel
<
String
>
generateReport
(
@RequestParam
(
"sequenceNbr"
)
Long
sequenceNbr
)
{
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"改造告知列表全部数据查询"
,
notes
=
"改造告知列表全部数据查询"
)
@GetMapping
(
value
=
"/generate-report"
)
public
ResponseModel
<
String
>
generateReport
(
@RequestParam
(
"sequenceNbr"
)
Long
sequenceNbr
)
{
return
ResponseHelper
.
buildResponse
(
jgReformNoticeService
.
generateInstallationNoticeReport
(
sequenceNbr
));
}
}
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/IdxBizJgRegisterInfoServiceImpl.java
View file @
ce16acde
...
...
@@ -10,7 +10,11 @@ import com.yeejoin.amos.boot.biz.common.bo.CompanyBo;
import
com.yeejoin.amos.boot.biz.common.bo.ReginParams
;
import
com.yeejoin.amos.boot.biz.common.utils.RedisKey
;
import
com.yeejoin.amos.boot.biz.common.utils.RedisUtils
;
import
com.yeejoin.amos.boot.module.jg.api.entity.JgInstallationNoticeEq
;
import
com.yeejoin.amos.boot.module.jg.api.entity.JgUseRegistrationEq
;
import
com.yeejoin.amos.boot.module.jg.api.enums.ConstructionEnum
;
import
com.yeejoin.amos.boot.module.jg.api.mapper.JgInstallationNoticeEqMapper
;
import
com.yeejoin.amos.boot.module.jg.api.mapper.JgUseRegistrationEqMapper
;
import
com.yeejoin.amos.boot.module.jg.biz.dao.ESEquipmentCategory
;
import
com.yeejoin.amos.boot.module.jg.biz.service.*
;
import
com.yeejoin.amos.boot.module.ymt.api.dto.ESEquipmentCategoryDto
;
...
...
@@ -134,6 +138,12 @@ public class IdxBizJgRegisterInfoServiceImpl extends BaseService<IdxBizJgRegiste
@Autowired
private
SuperviseInfoMapper
superviseInfoMapper
;
@Autowired
private
JgInstallationNoticeEqServiceImpl
jgInstallationNoticeEqServiceImpl
;
@Autowired
private
JgUseRegistrationEqServiceImpl
jgUseRegistrationEqServiceImpl
;
/**
* 设备注册信息
...
...
@@ -1062,6 +1072,16 @@ public class IdxBizJgRegisterInfoServiceImpl extends BaseService<IdxBizJgRegiste
String
status
=
ConstructionEnum
.
getName
.
get
(
integer
);
dto2
.
put
(
CONSTRUCTIONTYPE
,
status
);
}
//查询设备是否正在使用
//设备的使用标识是,安装告知和使用登记中有使用记录。
String
equId
=
(
String
)
dto2
.
get
(
"SEQUENCE_NBR"
);
List
<
JgInstallationNoticeEq
>
installationNoticeEqList
=
jgInstallationNoticeEqServiceImpl
.
getListByEquId
(
equId
);
List
<
JgUseRegistrationEq
>
useRegistrationEqList
=
jgUseRegistrationEqServiceImpl
.
getListByEquId
(
equId
);
if
(!
ValidationUtil
.
isEmpty
(
installationNoticeEqList
)
||
!
ValidationUtil
.
isEmpty
(
useRegistrationEqList
)){
dto2
.
put
(
"IS_USE"
,
true
);
}
else
{
dto2
.
put
(
"IS_USE"
,
false
);
}
list
.
add
(
dto2
);
}
totle
=
response
.
getInternalResponse
().
hits
().
getTotalHits
().
value
;
...
...
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/JgChangeRegistrationReformServiceImpl.java
View file @
ce16acde
...
...
@@ -886,12 +886,19 @@ public class JgChangeRegistrationReformServiceImpl extends BaseService<JgChangeR
*/
public
TaskMessageDto
conveterTaskMessageDTO
(
JgChangeRegistrationReform
jgChangeRegistrationReform
)
{
TaskMessageDto
taskMessageDto
=
new
TaskMessageDto
();
//设置流程实例id
taskMessageDto
.
setInstanceId
(
jgChangeRegistrationReform
.
getInstanceId
());
//设置流程状态
taskMessageDto
.
setStatus
(
jgChangeRegistrationReform
.
getStatus
());
//设置办理状态
taskMessageDto
.
setAuditStatus
(
jgChangeRegistrationReform
.
getStatus
());
//设置流程执行人
taskMessageDto
.
setPromoter
(
jgChangeRegistrationReform
.
getPromoter
());
//设置流程下一步执行人id
taskMessageDto
.
setNextExecuteUserIds
(
jgChangeRegistrationReform
.
getNextExecuteUserIds
());
//设置业务sequencenber
taskMessageDto
.
setSequenceNbr
(
jgChangeRegistrationReform
.
getSequenceNbr
());
//设置流程下一步执行人角色
taskMessageDto
.
setNextExecuteIds
(
jgChangeRegistrationReform
.
getNextExecutorIds
());
return
taskMessageDto
;
}
...
...
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/JgChangeRegistrationUnitServiceImpl.java
View file @
ce16acde
...
...
@@ -44,6 +44,7 @@ import org.springframework.util.ObjectUtils;
import
org.springframework.util.StringUtils
;
import
org.springframework.web.multipart.MultipartFile
;
import
org.typroject.tyboot.core.foundation.context.RequestContext
;
import
org.typroject.tyboot.core.foundation.exception.BaseException
;
import
org.typroject.tyboot.core.foundation.utils.ValidationUtil
;
import
org.typroject.tyboot.core.rdbms.service.BaseService
;
import
org.springframework.stereotype.Service
;
...
...
@@ -184,10 +185,10 @@ public class JgChangeRegistrationUnitServiceImpl extends BaseService<JgChangeReg
List
<
Map
<
String
,
Object
>>
equipmentInfos
=
JgChangeRegistrationUnitMapper
.
queryEquipInformation
(
sequenceNbr
);
for
(
String
s
:
fields
)
{
if
(
changeInfo
.
containsKey
(
s
))
{
if
(
changeInfo
.
containsKey
(
s
)
&&
!
ObjectUtils
.
isEmpty
(
changeInfo
.
get
(
s
))
)
{
changeInfo
.
put
(
s
,
JSON
.
parseArray
(
changeInfo
.
get
(
s
).
toString
()));
}
if
(
equipmentInfos
.
get
(
0
).
containsKey
(
s
))
{
if
(
equipmentInfos
.
get
(
0
).
containsKey
(
s
)
&&
!
ObjectUtils
.
isEmpty
(
equipmentInfos
.
get
(
0
).
get
(
s
))
)
{
equipmentInfos
.
get
(
0
).
put
(
s
,
JSON
.
parseArray
(
equipmentInfos
.
get
(
0
).
get
(
s
).
toString
()));
}
}
...
...
@@ -239,8 +240,8 @@ public class JgChangeRegistrationUnitServiceImpl extends BaseService<JgChangeReg
String
nextUserIds
=
workflowResultDtos
.
get
(
0
).
getNextExecutorUserIds
();
JgChangeRegistrationUnit
notice
=
new
JgChangeRegistrationUnit
();
JgChangeRegistrationUnit
noticeOld
=
JgChangeRegistrationUnitMapper
.
selectById
(
noticeDto
.
getSequenceNbr
());
BeanUtils
.
copyProperties
(
notice
Old
,
notice
);
//
JgChangeRegistrationUnit noticeOld = JgChangeRegistrationUnitMapper.selectById(noticeDto.getSequenceNbr());
BeanUtils
.
copyProperties
(
notice
Dto
,
notice
);
// boolean submit = submit(notice, op);
notice
.
setChangeCertificate
(
noticeDto
.
getChangeCertificate
());
notice
.
setRemark
(
noticeDto
.
getRemark
());
...
...
@@ -382,7 +383,8 @@ public class JgChangeRegistrationUnitServiceImpl extends BaseService<JgChangeReg
// 获取单位变更设备列表
List
<
Map
<
String
,
Object
>>
deviceList
=
model
.
getDeviceList
();
if
(
CollectionUtils
.
isEmpty
(
deviceList
))
{
return
new
ArrayList
<>();
throw
new
BadRequest
(
"设备不能为空"
);
// return new ArrayList<>();
}
// 获取单位变更单号
...
...
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/JgEnableDisableServiceImpl.java
View file @
ce16acde
...
...
@@ -180,6 +180,7 @@ public class JgEnableDisableServiceImpl extends BaseService<JgEnableDisableDto,
businessData
(
submit
,
reginParams
,
jgEnableDisable
,
map
,
workflowResultList
);
}
}
else
{
jgEnableDisable
.
setNextExecuteUserIds
(
reginParams
.
getUserModel
().
getUserId
());
jgEnableDisable
.
setCreateUserId
(
reginParams
.
getUserModel
().
getUserId
());
jgEnableDisable
.
setCreateUserName
(
reginParams
.
getUserModel
().
getRealName
());
jgEnableDisable
.
setUseUnitCreditCode
(
reginParams
.
getCompany
().
getCompanyCode
());
...
...
@@ -274,6 +275,7 @@ public class JgEnableDisableServiceImpl extends BaseService<JgEnableDisableDto,
jgEnableDisable
.
setNextTaskId
(
workflowResultList
.
get
(
0
).
getNextTaskId
());
}
}
else
{
jgEnableDisable
.
setNextExecuteUserIds
(
reginParams
.
getUserModel
().
getUserId
());
jgEnableDisable
.
setAuditStatus
(
String
.
valueOf
(
FlowStatusEnum
.
TO_BE_SUBMITTED
.
getName
()));
}
jgEnableDisable
.
setEquList
(
String
.
valueOf
(
map
.
get
(
"equListDesc"
)));
...
...
@@ -397,6 +399,7 @@ public class JgEnableDisableServiceImpl extends BaseService<JgEnableDisableDto,
if
(
"0"
.
equals
(
operate
))
{
if
(
StringUtils
.
isEmpty
(
workflowResultDto
.
getNextExecutorRoleIds
()))
{
jgEnableDisable
.
setPromoter
(
""
);
jgEnableDisable
.
setAuditPassDate
(
new
Date
());
jgEnableDisable
.
setAuditStatus
(
String
.
valueOf
(
FlowStatusEnum
.
TO_BE_FINISHED
.
getName
()));
// 上个代办改为已办
HashMap
<
String
,
Object
>
taskMap
=
new
HashMap
<>();
...
...
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/JgEquipTransferServiceImpl.java
View file @
ce16acde
...
...
@@ -363,7 +363,7 @@ public class JgEquipTransferServiceImpl extends BaseService<JgEquipTransferDto,
Map
<
String
,
Map
<
String
,
Object
>>
resultMap
=
MapBuilder
.<
String
,
Map
<
String
,
Object
>>
create
()
.
put
(
jgEquipTransferEq
.
getEquId
(),
MapBuilder
.<
String
,
Object
>
create
()
.
put
(
"USC_UNIT_NAME"
,
jgEquipTransfer
.
getInstallUnitName
())
.
put
(
"USC_UNIT_CREDIT_CODE"
,
jgEquipTransfer
.
getInstallUnit
Nam
e
())
.
put
(
"USC_UNIT_CREDIT_CODE"
,
jgEquipTransfer
.
getInstallUnit
CreditCod
e
())
.
build
())
.
build
();
...
...
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/JgInstallationNoticeEqServiceImpl.java
View file @
ce16acde
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jg
.
biz
.
service
.
impl
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.yeejoin.amos.boot.module.jg.api.entity.JgInstallationNoticeEq
;
import
com.yeejoin.amos.boot.module.jg.api.mapper.JgInstallationNoticeEqMapper
;
import
com.yeejoin.amos.boot.module.jg.api.service.IJgInstallationNoticeEqService
;
...
...
@@ -30,4 +31,11 @@ public class JgInstallationNoticeEqServiceImpl extends BaseService<JgInstallatio
public
List
<
JgInstallationNoticeEqDto
>
queryForJgInstallationNoticeEqList
()
{
return
this
.
queryForList
(
""
,
false
);
}
public
List
<
JgInstallationNoticeEq
>
getListByEquId
(
String
equId
)
{
QueryWrapper
<
JgInstallationNoticeEq
>
queryWrapper
=
new
QueryWrapper
<>();
queryWrapper
.
lambda
().
eq
(
JgInstallationNoticeEq:
:
getEquId
,
equId
);
queryWrapper
.
lambda
().
eq
(
JgInstallationNoticeEq:
:
getIsDelete
,
false
);
return
list
(
queryWrapper
);
}
}
\ No newline at end of file
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/JgInstallationNoticeServiceImpl.java
View file @
ce16acde
...
...
@@ -5,6 +5,7 @@ import com.alibaba.fastjson.JSON;
import
com.alibaba.fastjson.JSONArray
;
import
com.alibaba.fastjson.JSONObject
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.yeejoin.amos.boot.biz.common.bo.ReginParams
;
import
com.yeejoin.amos.boot.biz.common.dao.mapper.DataDictionaryMapper
;
...
...
@@ -25,6 +26,7 @@ import com.yeejoin.amos.boot.module.jg.api.enums.CompanyTypeEnum;
import
com.yeejoin.amos.boot.module.jg.api.mapper.CommonMapper
;
import
com.yeejoin.amos.boot.module.jg.api.mapper.JgInstallationNoticeEqMapper
;
import
com.yeejoin.amos.boot.module.jg.api.mapper.JgInstallationNoticeMapper
;
import
com.yeejoin.amos.boot.module.jg.api.mapper.JgUseRegistrationMapper
;
import
com.yeejoin.amos.boot.module.jg.api.service.IJgInstallationNoticeService
;
import
com.yeejoin.amos.boot.module.jg.biz.feign.TzsServiceFeignClient
;
import
com.yeejoin.amos.boot.module.jg.biz.service.ICmWorkflowService
;
...
...
@@ -108,6 +110,9 @@ public class JgInstallationNoticeServiceImpl extends BaseService<JgInstallationN
JgInstallationNoticeEqMapper
jgInstallationNoticeEqMapper
;
@Autowired
JgUseRegistrationMapper
jgUseRegistrationMapper
;
@Autowired
private
JgInstallationNoticeMapper
jgInstallationNoticeMapper
;
@Autowired
...
...
@@ -191,20 +196,40 @@ public class JgInstallationNoticeServiceImpl extends BaseService<JgInstallationN
"proxyStatementAttachment"
,
"installContractAttachment"
};
// 设备信息
List
<
Map
<
String
,
Object
>>
equipmentInfos
=
jgInstallationNoticeMapper
.
queryEquipInformation
(
sequenceNbr
);
//
List<Map<String, Object>> equipmentInfos = jgInstallationNoticeMapper.queryEquipInformation(sequenceNbr);
for
(
String
s:
fields
)
{
if
(
installationInfo
.
containsKey
(
s
))
{
installationInfo
.
put
(
s
,
ObjectUtils
.
isEmpty
(
installationInfo
.
get
(
s
))
?
new
JSONArray
()
:
parseArray
(
installationInfo
.
get
(
s
).
toString
()));
}
if
(
equipmentInfos
.
get
(
0
).
containsKey
(
s
))
{
equipmentInfos
.
get
(
0
).
put
(
s
,
ObjectUtils
.
isEmpty
(
equipmentInfos
.
get
(
0
).
get
(
s
))
?
new
JSONArray
()
:
parseArray
(
equipmentInfos
.
get
(
0
).
get
(
s
).
toString
()));
}
QueryWrapper
<
JgInstallationNoticeEq
>
wrapper
=
new
QueryWrapper
<>();
wrapper
.
lambda
().
eq
(
JgInstallationNoticeEq:
:
getEquipTransferId
,
notice
.
getSequenceNbr
());
JgInstallationNoticeEq
jgInstallationNoticeEq
=
jgInstallationNoticeEqMapper
.
selectOne
(
wrapper
);
Map
<
String
,
Object
>
detail
=
jgUseRegistrationMapper
.
getDetail
(
jgInstallationNoticeEq
.
getEquId
());
Map
<
String
,
Object
>
inspectDetail
=
jgUseRegistrationMapper
.
getInspectDetail
(
jgInstallationNoticeEq
.
getEquId
());
Map
<
String
,
Object
>
useDetail
=
jgUseRegistrationMapper
.
getUseDetail
(
jgInstallationNoticeEq
.
getEquId
());
Map
<
String
,
Object
>
useDestail
=
jgUseRegistrationMapper
.
getDesDetail
(
jgInstallationNoticeEq
.
getEquId
());
if
(!
ObjectUtils
.
isEmpty
(
inspectDetail
))
{
detail
.
putAll
(
inspectDetail
);
}
if
(!
ObjectUtils
.
isEmpty
(
useDetail
))
{
detail
.
putAll
(
useDetail
);
}
if
(!
ObjectUtils
.
isEmpty
(
useDestail
))
{
detail
.
putAll
(
useDestail
);
}
Map
<
String
,
Object
>
map
=
equipmentInfos
.
get
(
0
);
BeanUtil
.
copyProperties
(
installationInfo
,
map
,
"equList"
,
"supervisoryCode"
,
"factoryNum"
);
detail
.
put
(
"proDuctPhoto"
,
JSON
.
parse
(
String
.
valueOf
(
detail
.
get
(
"proDuctPhoto"
))));
detail
.
put
(
"factoryStandard"
,
JSON
.
parse
(
String
.
valueOf
(
detail
.
get
(
"factoryStandard"
))));
detail
.
put
(
"productQualityYieldProve"
,
JSON
.
parse
(
String
.
valueOf
(
detail
.
get
(
"productQualityYieldProve"
))));
detail
.
put
(
"insUseMaintainExplain"
,
JSON
.
parse
(
String
.
valueOf
(
detail
.
get
(
"insUseMaintainExplain"
))));
detail
.
put
(
"inspectReport"
,
JSON
.
parse
(
String
.
valueOf
(
detail
.
get
(
"inspectReport"
))));
detail
.
put
(
"designStandard"
,
JSON
.
parse
(
String
.
valueOf
(
detail
.
get
(
"designStandard"
))));
detail
.
put
(
"designDoc"
,
JSON
.
parse
(
String
.
valueOf
(
detail
.
get
(
"designDoc"
))));
BeanUtil
.
copyProperties
(
installationInfo
,
detail
,
"equList"
,
"supervisoryCode"
,
"factoryNum"
);
return
new
HashMap
<
String
,
Map
<
String
,
Object
>>()
{{
this
.
put
(
"installationInfo"
,
map
);
this
.
put
(
"installationInfo"
,
detail
);
}};
}
...
...
@@ -924,6 +949,8 @@ public class JgInstallationNoticeServiceImpl extends BaseService<JgInstallationN
commonService
.
buildTaskModel
(
Collections
.
singletonList
(
taskModelDto
));
}
jgInstallationNotice
.
setNextTaskId
(
workflowResultDto
.
getNextTaskId
());
jgInstallationNotice
.
setNextExecuteUserIds
(
workflowResultDto
.
getNextExecutorUserIds
());
jgInstallationNotice
.
setNextExecuteIds
(
workflowResultDto
.
getNextExecutorRoleIds
());
this
.
updateById
(
jgInstallationNotice
);
}
...
...
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 @
ce16acde
...
...
@@ -446,6 +446,7 @@ public class JgMaintainNoticeServiceImpl extends BaseService<JgMaintainNoticeDto
dto
.
setInstanceId
(
workflowResultDtoList
.
get
(
i
).
getInstanceId
());
dto
.
setNoticeStatus
(
String
.
valueOf
(
FlowStatusEnum
.
TO_BE_PROCESSED
.
getCode
()));
}
else
{
dto
.
setNextExecuteUserIds
(
reginParams
.
getUserModel
().
getUserId
());
dto
.
setNoticeStatus
(
String
.
valueOf
(
FlowStatusEnum
.
TO_BE_SUBMITTED
.
getCode
()));
}
dto
.
setEquList
(
String
.
valueOf
(
obj
.
get
(
"EQU_LIST"
)));
...
...
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/JgReformNoticeServiceImpl.java
View file @
ce16acde
...
...
@@ -11,6 +11,7 @@ import com.yeejoin.amos.boot.biz.common.utils.DateUtils;
import
com.yeejoin.amos.boot.biz.common.utils.RedisKey
;
import
com.yeejoin.amos.boot.biz.common.utils.RedisUtils
;
import
com.yeejoin.amos.boot.module.jg.api.dto.JgReformNoticeDto
;
import
com.yeejoin.amos.boot.module.jg.api.dto.TaskMessageDto
;
import
com.yeejoin.amos.boot.module.jg.api.dto.TaskModelDto
;
import
com.yeejoin.amos.boot.module.jg.api.dto.WorkflowResultDto
;
import
com.yeejoin.amos.boot.module.jg.api.entity.JgReformNotice
;
...
...
@@ -514,6 +515,8 @@ public class JgReformNoticeServiceImpl extends BaseService<JgReformNoticeDto, Jg
* @return 代办信息
*/
private
TaskModelDto
buildTaskModelDto
(
JgReformNotice
item
,
WorkflowResultDto
workflowResultDto
)
{
TaskMessageDto
taskMessageDto
=
new
TaskMessageDto
();
BeanUtil
.
copyProperties
(
item
,
taskMessageDto
);
return
TaskModelDto
.
builder
()
.
flowCreateDate
(
item
.
getCreateDate
())
.
taskName
(
workflowResultDto
.
getNextTaskName
())
...
...
@@ -533,7 +536,7 @@ public class JgReformNoticeServiceImpl extends BaseService<JgReformNoticeDto, Jg
.
startUser
(
item
.
getCreateUserName
())
.
startUserCompanyName
(
item
.
getCreateUserCompanyName
())
.
startDate
(
item
.
getCreateDate
())
.
model
(
item
)
.
model
(
taskMessageDto
)
.
nextExecuteUser
(
item
.
getNextExecuteIds
())
.
build
();
}
...
...
@@ -718,7 +721,7 @@ public class JgReformNoticeServiceImpl extends BaseService<JgReformNoticeDto, Jg
}
workDto
.
setNextExecuteUserCompanyCode
(
"1"
.
equals
(
op
)
?
jgReformNotice
.
getInstallUnitCreditCode
()
:
jgReformNotice
.
getReceiveOrgCode
());
workDto
.
setVariable
(
commMap
);
workDto
.
setComment
(
jgReformNotice
.
getRemark
());
workDto
.
setComment
(
dto
.
getRemark
());
ProcessTaskDTO
processTaskDTO
=
cmWorkflowService
.
complete
(
jgReformNotice
.
getNextTaskId
(),
workDto
);
WorkflowResultDto
workflowResultDto
=
commonService
.
buildWorkFlowInfo
(
Collections
.
singletonList
(
processTaskDTO
)).
get
(
0
);
jgReformNotice
.
setPromoter
(
reginParams
.
getUserModel
().
getUserId
());
...
...
@@ -796,6 +799,8 @@ public class JgReformNoticeServiceImpl extends BaseService<JgReformNoticeDto, Jg
* @param taskV2Model 代办信息
*/
private
void
createNewTodo
(
JgReformNotice
transfer
,
WorkflowResultDto
workflowResultDto
,
TaskV2Model
taskV2Model
,
FlowStatusEnum
statusEnum
)
{
TaskMessageDto
taskMessageDto
=
new
TaskMessageDto
();
BeanUtil
.
copyProperties
(
transfer
,
taskMessageDto
);
TaskModelDto
taskModelDto
=
TaskModelDto
.
builder
()
.
flowCreateDate
(
taskV2Model
.
getFlowCreateDate
())
.
taskName
(
workflowResultDto
.
getNextTaskName
())
...
...
@@ -813,8 +818,8 @@ public class JgReformNoticeServiceImpl extends BaseService<JgReformNoticeDto, Jg
.
startUserId
(
taskV2Model
.
getStartUserId
())
.
startUser
(
taskV2Model
.
getStartUser
())
.
startDate
(
taskV2Model
.
getStartDate
())
.
model
(
t
ransfer
)
//.pageType("edit
")
.
model
(
t
askMessageDto
)
.
pageType
(
statusEnum
.
getCode
()
==
6614
?
"edit"
:
"look
"
)
.
nextExecuteUser
(
workflowResultDto
.
getNextExecutorRoleIds
())
.
build
();
commonService
.
buildTaskModel
(
Collections
.
singletonList
(
taskModelDto
));
...
...
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 @
ce16acde
...
...
@@ -247,7 +247,7 @@ public class JgScrapCancelServiceImpl extends BaseService<JgScrapCancelDto, JgSc
}
private
void
createTaskModel
(
JgScrapCancel
scrapCancel
,
String
taskName
,
String
submitType
,
String
nextUserIds
)
{
ReginParams
reginParams
=
JSON
.
parseObject
(
redisUtils
.
get
(
RedisKey
.
buildReginKey
(
RequestContext
.
getExeUserId
(),
RequestContext
.
getToken
())).
toString
(),
ReginParams
.
class
);
ReginParams
reginParams
=
this
.
getSelectedOrgInfo
(
);
TaskModelDto
taskModelDto
=
new
TaskModelDto
();
if
(
"1"
.
equals
(
submitType
))
{
taskModelDto
.
setFlowCreateDate
(
scrapCancel
.
getCreateDate
());
...
...
@@ -368,7 +368,7 @@ public class JgScrapCancelServiceImpl extends BaseService<JgScrapCancelDto, JgSc
createTaskModel
(
bean
,
taskName
,
"1"
,
nextUserIds
);
}
else
{
// 已经在流程中,执行一步
ProcessTaskDTO
processTaskDTO
=
submit
(
op
,
jgScrapCancelDto
.
getNextTaskId
());
ProcessTaskDTO
processTaskDTO
=
submit
(
jgScrapCancelDto
.
getNextTaskId
());
String
nextTaskId
=
processTaskDTO
.
getNextTask
().
get
(
0
).
getId
();
String
taskName
=
processTaskDTO
.
getNextTask
().
get
(
0
).
getName
();
this
.
buildRoleList
(
Collections
.
singletonList
(
processTaskDTO
),
roleListNext
,
roleListAll
);
...
...
@@ -494,14 +494,13 @@ public class JgScrapCancelServiceImpl extends BaseService<JgScrapCancelDto, JgSc
}
}
public
ProcessTaskDTO
submit
(
String
op
,
String
taskId
)
{
public
ProcessTaskDTO
submit
(
String
taskId
)
{
//组装信息
TaskResultDTO
dto
=
new
TaskResultDTO
();
dto
.
setResultCode
(
"approvalStatus"
);
dto
.
setTaskId
(
taskId
);
dto
.
setComment
(
"提交流程"
);
HashMap
<
String
,
Object
>
map
=
new
HashMap
<>();
map
.
put
(
"approvalStatus"
,
op
);
map
.
put
(
"approvalStatus"
,
"提交"
);
dto
.
setVariable
(
map
);
return
cmWorkflowService
.
complete
(
taskId
,
dto
);
}
...
...
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/JgTransferNoticeServiceImpl.java
View file @
ce16acde
...
...
@@ -5,6 +5,7 @@ import com.alibaba.fastjson.JSON;
import
com.alibaba.fastjson.JSONArray
;
import
com.alibaba.fastjson.JSONObject
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.yeejoin.amos.boot.biz.common.bo.ReginParams
;
import
com.yeejoin.amos.boot.biz.common.utils.DateUtils
;
...
...
@@ -14,11 +15,13 @@ import com.yeejoin.amos.boot.module.jg.api.dto.JgTransferNoticeDto;
import
com.yeejoin.amos.boot.module.jg.api.dto.TaskMessageDto
;
import
com.yeejoin.amos.boot.module.jg.api.dto.TaskModelDto
;
import
com.yeejoin.amos.boot.module.jg.api.dto.WorkflowResultDto
;
import
com.yeejoin.amos.boot.module.jg.api.entity.JgInstallationNoticeEq
;
import
com.yeejoin.amos.boot.module.jg.api.entity.JgTransferNotice
;
import
com.yeejoin.amos.boot.module.jg.api.entity.JgTransferNoticeEq
;
import
com.yeejoin.amos.boot.module.jg.api.enums.BusinessTypeEnum
;
import
com.yeejoin.amos.boot.module.jg.api.mapper.JgTransferNoticeEqMapper
;
import
com.yeejoin.amos.boot.module.jg.api.mapper.JgTransferNoticeMapper
;
import
com.yeejoin.amos.boot.module.jg.api.mapper.JgUseRegistrationMapper
;
import
com.yeejoin.amos.boot.module.jg.api.service.IJgTransferNoticeService
;
import
com.yeejoin.amos.boot.module.jg.biz.feign.TzsServiceFeignClient
;
import
com.yeejoin.amos.boot.module.jg.biz.service.ICmWorkflowService
;
...
...
@@ -90,6 +93,9 @@ public class JgTransferNoticeServiceImpl extends BaseService<JgTransferNoticeDto
private
TzBaseUnitLicenceMapper
baseUnitLicenceMapper
;
@Autowired
JgUseRegistrationMapper
jgUseRegistrationMapper
;
@Autowired
ICmWorkflowService
iCmWorkflowService
;
/**
...
...
@@ -121,8 +127,29 @@ public class JgTransferNoticeServiceImpl extends BaseService<JgTransferNoticeDto
"productQualityYieldProve"
,
"insUseMaintainExplain"
,
"inspectReport"
,
"proxyStatementAttachment"
,
"installContractAttachment"
,
"powerOfAttorney"
,
"constructionContract"
};
// 设备信息
List
<
Map
<
String
,
Object
>>
equipmentInfos
=
jgTransferNoticeMapper
.
queryEquipInformation
(
sequenceNbr
);
QueryWrapper
<
JgTransferNoticeEq
>
wrapper
=
new
QueryWrapper
<>();
wrapper
.
lambda
().
eq
(
JgTransferNoticeEq:
:
getEquipTransferId
,
notice
.
getSequenceNbr
());
JgTransferNoticeEq
jgTransferNoticeEq
=
jgTransferNoticeEqMapper
.
selectOne
(
wrapper
);
Map
<
String
,
Object
>
detail
=
jgUseRegistrationMapper
.
getDetail
(
jgTransferNoticeEq
.
getEquId
());
Map
<
String
,
Object
>
inspectDetail
=
jgUseRegistrationMapper
.
getInspectDetail
(
jgTransferNoticeEq
.
getEquId
());
Map
<
String
,
Object
>
useDetail
=
jgUseRegistrationMapper
.
getUseDetail
(
jgTransferNoticeEq
.
getEquId
());
Map
<
String
,
Object
>
useDestail
=
jgUseRegistrationMapper
.
getDesDetail
(
jgTransferNoticeEq
.
getEquId
());
if
(!
ObjectUtils
.
isEmpty
(
inspectDetail
))
{
detail
.
putAll
(
inspectDetail
);
}
if
(!
ObjectUtils
.
isEmpty
(
useDetail
))
{
detail
.
putAll
(
useDetail
);
}
if
(!
ObjectUtils
.
isEmpty
(
useDestail
))
{
detail
.
putAll
(
useDestail
);
}
detail
.
put
(
"proDuctPhoto"
,
JSON
.
parse
(
String
.
valueOf
(
detail
.
get
(
"proDuctPhoto"
))));
detail
.
put
(
"factoryStandard"
,
JSON
.
parse
(
String
.
valueOf
(
detail
.
get
(
"factoryStandard"
))));
detail
.
put
(
"productQualityYieldProve"
,
JSON
.
parse
(
String
.
valueOf
(
detail
.
get
(
"productQualityYieldProve"
))));
detail
.
put
(
"insUseMaintainExplain"
,
JSON
.
parse
(
String
.
valueOf
(
detail
.
get
(
"insUseMaintainExplain"
))));
detail
.
put
(
"inspectReport"
,
JSON
.
parse
(
String
.
valueOf
(
detail
.
get
(
"inspectReport"
))));
detail
.
put
(
"designStandard"
,
JSON
.
parse
(
String
.
valueOf
(
detail
.
get
(
"designStandard"
))));
detail
.
put
(
"designDoc"
,
JSON
.
parse
(
String
.
valueOf
(
detail
.
get
(
"designDoc"
))));
for
(
String
s
:
fields
)
{
if
(
transferNotice
.
containsKey
(
s
))
{
if
(
"powerOfAttorney"
.
equalsIgnoreCase
(
s
))
{
...
...
@@ -133,14 +160,10 @@ public class JgTransferNoticeServiceImpl extends BaseService<JgTransferNoticeDto
transferNotice
.
put
(
s
,
ObjectUtils
.
isEmpty
(
transferNotice
.
get
(
s
))
?
new
JSONArray
()
:
JSON
.
parseArray
(
transferNotice
.
get
(
s
).
toString
()));
}
}
if
(
equipmentInfos
.
get
(
0
).
containsKey
(
s
))
{
equipmentInfos
.
get
(
0
).
put
(
s
,
JSON
.
parseArray
(
equipmentInfos
.
get
(
0
).
get
(
s
).
toString
()));
}
}
Map
<
String
,
Object
>
map
=
equipmentInfos
.
get
(
0
);
BeanUtil
.
copyProperties
(
transferNotice
,
map
,
"equList"
,
"supervisoryCode"
);
BeanUtil
.
copyProperties
(
transferNotice
,
detail
,
"equList"
,
"supervisoryCode"
);
return
new
HashMap
<
String
,
Map
<
String
,
Object
>>()
{{
this
.
put
(
"transferNoticeInfo"
,
map
);
this
.
put
(
"transferNoticeInfo"
,
detail
);
}};
}
...
...
@@ -759,6 +782,8 @@ public class JgTransferNoticeServiceImpl extends BaseService<JgTransferNoticeDto
commonService
.
buildTaskModel
(
Collections
.
singletonList
(
taskModelDto
));
}
jgTransferNotice
.
setNextTaskId
(
workflowResultDto
.
getNextTaskId
());
jgTransferNotice
.
setNextExecuteUserIds
(
workflowResultDto
.
getNextExecutorUserIds
());
jgTransferNotice
.
setNextExecuteIds
(
workflowResultDto
.
getNextExecutorRoleIds
());
jgTransferNoticeMapper
.
updateById
(
jgTransferNotice
);
}
...
...
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/JgUseRegistrationEqServiceImpl.java
View file @
ce16acde
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jg
.
biz
.
service
.
impl
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.yeejoin.amos.boot.module.jg.api.entity.JgUseRegistrationEq
;
import
com.yeejoin.amos.boot.module.jg.api.mapper.JgUseRegistrationEqMapper
;
import
com.yeejoin.amos.boot.module.jg.api.service.IJgUseRegistrationEqService
;
...
...
@@ -30,4 +31,13 @@ public class JgUseRegistrationEqServiceImpl extends BaseService<JgUseRegistratio
public
List
<
JgUseRegistrationEqDto
>
queryForJgUseRegistrationEqList
()
{
return
this
.
queryForList
(
""
,
false
);
}
public
List
<
JgUseRegistrationEq
>
getListByEquId
(
String
equId
)
{
QueryWrapper
<
JgUseRegistrationEq
>
queryWrapper
=
new
QueryWrapper
<>();
queryWrapper
.
lambda
().
eq
(
JgUseRegistrationEq:
:
getEquId
,
equId
);
queryWrapper
.
lambda
().
eq
(
JgUseRegistrationEq:
:
getIsDelete
,
false
);
return
list
(
queryWrapper
);
}
}
\ No newline at end of file
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/JgUseRegistrationServiceImpl.java
View file @
ce16acde
...
...
@@ -514,7 +514,7 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
detail
.
put
(
"proDuctPhoto"
,
JSON
.
parse
(
String
.
valueOf
(
detail
.
get
(
"proDuctPhoto"
))));
detail
.
put
(
"factoryStandard"
,
JSON
.
parse
(
String
.
valueOf
(
detail
.
get
(
"factoryStandard"
))));
detail
.
put
(
"productQualityYieldProve"
,
JSON
.
parse
(
String
.
valueOf
(
detail
.
get
(
"productQualityYieldProve"
))));
detail
.
put
(
"insUseMaintainExpla
nin"
,
JSON
.
parse
(
String
.
valueOf
(
detail
.
get
(
"insUseMaintainExplan
in"
))));
detail
.
put
(
"insUseMaintainExpla
in"
,
JSON
.
parse
(
String
.
valueOf
(
detail
.
get
(
"insUseMaintainExpla
in"
))));
detail
.
put
(
"inspectReport"
,
JSON
.
parse
(
String
.
valueOf
(
detail
.
get
(
"inspectReport"
))));
detail
.
put
(
"designStandard"
,
JSON
.
parse
(
String
.
valueOf
(
detail
.
get
(
"designStandard"
))));
detail
.
put
(
"designDoc"
,
JSON
.
parse
(
String
.
valueOf
(
detail
.
get
(
"designDoc"
))));
...
...
amos-boot-system-tzs/amos-boot-module-ymt/amos-boot-module-ymt-biz/src/main/resources/json/equipCategory.json
View file @
ce16acde
{
"__eightCategory__"
:
"设备一码通总览使用"
,
"eightCategory"
:
[
{
"name"
:
"电梯"
,
...
...
@@ -89,6 +90,7 @@
"type"
:
"ropeway"
}
],
"__other__"
:
"监管业务使用"
,
"other"
:
[
{
"name"
:
"电梯"
,
...
...
@@ -139,14 +141,58 @@
"imageUrl"
:
"upload/tzs/common/image/监管索道.png"
}
],
"__superviseBusiness__"
:
"监管业务-启停注销使用"
,
"superviseBusiness"
:
[
{
"name"
:
"电梯"
,
"code"
:
"3000"
,
"image"
:
"upload/tzs/common/image/总览电梯.png"
,
"imageUrl"
:
"upload/tzs/common/image/监管电梯.png"
},
{
"name"
:
"起重机械"
,
"code"
:
"4000"
,
"image"
:
"upload/tzs/common/image/总览起重机械.png"
,
"imageUrl"
:
"upload/tzs/common/image/监管起重机械.png"
},
{
"name"
:
"场内机动车辆"
,
"code"
:
"5000"
,
"image"
:
"upload/tzs/common/image/总览厂车.png"
,
"imageUrl"
:
"upload/tzs/common/image/监管厂车.png"
},
{
"name"
:
"锅炉"
,
"code"
:
"1000"
,
"image"
:
"upload/tzs/common/image/总览锅炉.png"
,
"imageUrl"
:
"upload/tzs/common/image/监管锅炉.png"
},
{
"name"
:
"压力容器"
,
"code"
:
"2000"
,
"image"
:
"upload/tzs/common/image/总览压力容器.png"
,
"imageUrl"
:
"upload/tzs/common/image/监管压力容器.png"
},
{
"name"
:
"压力管道"
,
"code"
:
"8000"
,
"image"
:
"upload/tzs/common/image/总览压力管道.png"
,
"imageUrl"
:
"upload/tzs/common/image/监管压力管道.png"
},
{
"name"
:
"大型游乐设施"
,
"code"
:
"6000"
,
"image"
:
"upload/tzs/common/image/总览游乐设施.png"
,
"imageUrl"
:
"upload/tzs/common/image/监管游乐设施.png"
},
{
"name"
:
"客运索道"
,
"code"
:
"9000"
,
"image"
:
"upload/tzs/common/image/总览索道.png"
,
"imageUrl"
:
"upload/tzs/common/image/监管索道.png"
}
],
"__supervise__"
:
"检验检测使用"
,
"supervise"
:
[
{
"name"
:
"锅炉"
,
...
...
@@ -204,6 +250,7 @@
"type"
:
"rides"
}
],
"__SCJY__"
:
"检验检测使用"
,
"SCJY"
:
[
{
"name"
:
"起重机械"
,
...
...
@@ -228,6 +275,7 @@
"type"
:
"vehicle"
}
],
"__DQJY__"
:
"检验检测使用"
,
"DQJY"
:
[
{
"name"
:
"电梯"
,
...
...
@@ -317,7 +365,9 @@
"sum"
:
"0"
,
"type"
:
"ropeway"
}
],
"DTJC"
:[
],
"__DTJC__"
:
"检验检测使用"
,
"DTJC"
:
[
{
"name"
:
"电梯"
,
"code"
:
"3000"
,
...
...
@@ -329,5 +379,5 @@
"sum"
:
"0"
,
"type"
:
"elevator"
}
]
]
}
\ 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