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
e60b949a
Commit
e60b949a
authored
Dec 20, 2023
by
王果
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/develop_tzs_register' into develop_tzs_register
parents
ef4f2c09
a9c6436a
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
31 changed files
with
325 additions
and
76 deletions
+325
-76
JgReformNoticeDto.java
...eejoin/amos/boot/module/jg/api/dto/JgReformNoticeDto.java
+7
-1
JgScrapCancelDto.java
...yeejoin/amos/boot/module/jg/api/dto/JgScrapCancelDto.java
+1
-1
JgChangeRegistrationReformEq.java
...ot/module/jg/api/entity/JgChangeRegistrationReformEq.java
+5
-0
JgChangeRegistrationTransferEq.java
.../module/jg/api/entity/JgChangeRegistrationTransferEq.java
+7
-0
JgReformNotice.java
...eejoin/amos/boot/module/jg/api/entity/JgReformNotice.java
+10
-0
JgScrapCancel.java
...yeejoin/amos/boot/module/jg/api/entity/JgScrapCancel.java
+2
-2
JgUseRegistrationEq.java
...n/amos/boot/module/jg/api/entity/JgUseRegistrationEq.java
+6
-0
CancelTypeEnum.java
...yeejoin/amos/boot/module/jg/api/enums/CancelTypeEnum.java
+44
-0
JgChangeRegistrationReformEqMapper.java
...ule/jg/api/mapper/JgChangeRegistrationReformEqMapper.java
+4
-1
JgChangeRegistrationReformMapper.java
...odule/jg/api/mapper/JgChangeRegistrationReformMapper.java
+1
-0
JgChangeRegistrationTransferEqMapper.java
...e/jg/api/mapper/JgChangeRegistrationTransferEqMapper.java
+4
-1
JgReformNoticeMapper.java
.../amos/boot/module/jg/api/mapper/JgReformNoticeMapper.java
+2
-0
JgUseRegistrationEqMapper.java
.../boot/module/jg/api/mapper/JgUseRegistrationEqMapper.java
+4
-1
JgReformNoticeMapper.xml
...jg-api/src/main/resources/mapper/JgReformNoticeMapper.xml
+11
-1
JgUseRegistrationMapper.xml
...api/src/main/resources/mapper/JgUseRegistrationMapper.xml
+1
-1
JgChangeRegistrationReformServiceImpl.java
...z/service/impl/JgChangeRegistrationReformServiceImpl.java
+33
-7
JgReformNoticeServiceImpl.java
...module/jg/biz/service/impl/JgReformNoticeServiceImpl.java
+26
-9
JgUseRegistrationServiceImpl.java
...ule/jg/biz/service/impl/JgUseRegistrationServiceImpl.java
+8
-4
JyjcInspectionApplication.java
...oot/module/jyjc/api/entity/JyjcInspectionApplication.java
+9
-2
JyjcOpeningApplication.java
...s/boot/module/jyjc/api/entity/JyjcOpeningApplication.java
+8
-1
FlowStatusEnum.java
...ejoin/amos/boot/module/jyjc/api/enums/FlowStatusEnum.java
+6
-2
JyjcInspectionApplicationMapper.java
...dule/jyjc/api/mapper/JyjcInspectionApplicationMapper.java
+2
-0
JyjcOpeningApplicationMapper.java
.../module/jyjc/api/mapper/JyjcOpeningApplicationMapper.java
+1
-0
JyjcInspectionApplicationModel.java
...module/jyjc/api/model/JyjcInspectionApplicationModel.java
+7
-1
JyjcOpeningApplicationModel.java
...ot/module/jyjc/api/model/JyjcOpeningApplicationModel.java
+7
-1
JyjcInspectionApplicationMapper.xml
...main/resources/mapper/JyjcInspectionApplicationMapper.xml
+10
-3
JyjcOpeningApplicationMapper.xml
...rc/main/resources/mapper/JyjcOpeningApplicationMapper.xml
+8
-1
JyjcOpeningApplicationController.java
...jyjc/biz/controller/JyjcOpeningApplicationController.java
+2
-2
JyjcInspectionApplicationServiceImpl.java
...iz/service/impl/JyjcInspectionApplicationServiceImpl.java
+52
-17
JyjcOpeningApplicationServiceImpl.java
...c/biz/service/impl/JyjcOpeningApplicationServiceImpl.java
+36
-17
ApplicationFormTypeEnum.java
...os/boot/module/ymt/api/enums/ApplicationFormTypeEnum.java
+1
-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/JgReformNoticeDto.java
View file @
e60b949a
...
@@ -178,7 +178,13 @@ public class JgReformNoticeDto extends BaseDto {
...
@@ -178,7 +178,13 @@ public class JgReformNoticeDto extends BaseDto {
@ApiModelProperty
(
value
=
"设备使用地点-街道(镇)"
)
@ApiModelProperty
(
value
=
"设备使用地点-街道(镇)"
)
private
String
streetName
;
private
String
streetName
;
//
// private String receiveOrgCreditCode;
@ApiModelProperty
(
value
=
"下一执行节点ids"
)
private
String
nextExecuteIds
;
private
String
receiveOrgCreditCode
;
@ApiModelProperty
(
value
=
"发起人id用于撤回操作"
)
private
String
promoter
;
}
}
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/java/com/yeejoin/amos/boot/module/jg/api/dto/JgScrapCancelDto.java
View file @
e60b949a
...
@@ -22,7 +22,7 @@ public class JgScrapCancelDto extends BaseDto {
...
@@ -22,7 +22,7 @@ public class JgScrapCancelDto extends BaseDto {
@ApiModelProperty
(
value
=
"注销类型(1报废注销,2移装注销)"
)
@ApiModelProperty
(
value
=
"注销类型(1报废注销,2移装注销)"
)
private
String
t
ype
;
private
String
cancelT
ype
;
@ApiModelProperty
(
value
=
"申请编号"
)
@ApiModelProperty
(
value
=
"申请编号"
)
private
String
applyNo
;
private
String
applyNo
;
...
...
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/java/com/yeejoin/amos/boot/module/jg/api/entity/JgChangeRegistrationReformEq.java
View file @
e60b949a
...
@@ -33,5 +33,10 @@ public class JgChangeRegistrationReformEq extends BaseEntity {
...
@@ -33,5 +33,10 @@ public class JgChangeRegistrationReformEq extends BaseEntity {
*/
*/
@TableField
(
"equ_id"
)
@TableField
(
"equ_id"
)
private
String
equId
;
private
String
equId
;
/**
* 使用登记证编号是否作废(1作废,0在用)
*/
@TableField
(
"is_invalid"
)
private
Boolean
isInvalid
=
false
;
}
}
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/java/com/yeejoin/amos/boot/module/jg/api/entity/JgChangeRegistrationTransferEq.java
View file @
e60b949a
...
@@ -34,4 +34,11 @@ public class JgChangeRegistrationTransferEq extends BaseEntity {
...
@@ -34,4 +34,11 @@ public class JgChangeRegistrationTransferEq extends BaseEntity {
@TableField
(
"equ_id"
)
@TableField
(
"equ_id"
)
private
String
equId
;
private
String
equId
;
/**
* 使用登记证编号是否作废(1作废,0在用)
*/
@TableField
(
"is_invalid"
)
private
Boolean
isInvalid
=
false
;
}
}
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/java/com/yeejoin/amos/boot/module/jg/api/entity/JgReformNotice.java
View file @
e60b949a
...
@@ -276,4 +276,14 @@ public class JgReformNotice extends BaseEntity {
...
@@ -276,4 +276,14 @@ public class JgReformNotice extends BaseEntity {
@TableField
(
value
=
"\"street_name\""
)
@TableField
(
value
=
"\"street_name\""
)
private
String
streetName
;
private
String
streetName
;
/**
* 下一执行节点ids
*/
@TableField
(
"next_execute_ids"
)
private
String
nextExecuteIds
;
/**
* 发起人id用于撤回操作
*/
@TableField
(
value
=
"promoter"
)
private
String
promoter
;
}
}
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/java/com/yeejoin/amos/boot/module/jg/api/entity/JgScrapCancel.java
View file @
e60b949a
...
@@ -25,8 +25,8 @@ public class JgScrapCancel extends BaseEntity {
...
@@ -25,8 +25,8 @@ public class JgScrapCancel extends BaseEntity {
/**
/**
* 注销类型(1报废注销,2移装注销)
* 注销类型(1报废注销,2移装注销)
*/
*/
@TableField
(
"type"
)
@TableField
(
"
cancel_
type"
)
private
String
t
ype
;
private
String
cancelT
ype
;
/**
/**
* 申请编号
* 申请编号
...
...
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/java/com/yeejoin/amos/boot/module/jg/api/entity/JgUseRegistrationEq.java
View file @
e60b949a
...
@@ -34,4 +34,10 @@ public class JgUseRegistrationEq extends BaseEntity {
...
@@ -34,4 +34,10 @@ public class JgUseRegistrationEq extends BaseEntity {
@TableField
(
"equ_id"
)
@TableField
(
"equ_id"
)
private
String
equId
;
private
String
equId
;
/**
* 使用登记证编号是否作废(1作废,0在用)
*/
@TableField
(
"is_invalid"
)
private
Boolean
isInvalid
=
false
;
}
}
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/java/com/yeejoin/amos/boot/module/jg/api/enums/CancelTypeEnum.java
0 → 100644
View file @
e60b949a
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jg
.
api
.
enums
;
/**
* 办理状态枚举
*/
public
enum
CancelTypeEnum
{
/**
* 报废注销
*/
SCRAPPED
(
"1"
,
"报废注销"
),
/**
* 移装注销
*/
TRANSFER
(
"2"
,
"移装注销"
);
private
final
String
code
;
private
final
String
name
;
CancelTypeEnum
(
String
code
,
String
name
)
{
this
.
code
=
code
;
this
.
name
=
name
;
}
public
static
String
getNameByType
(
String
code
)
{
String
name
=
null
;
for
(
CancelTypeEnum
enumOne
:
CancelTypeEnum
.
values
())
{
if
(
enumOne
.
getCode
()
==
code
)
{
name
=
enumOne
.
getName
();
break
;
}
}
return
name
;
}
public
String
getCode
()
{
return
code
;
}
public
String
getName
()
{
return
name
;
}
}
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/java/com/yeejoin/amos/boot/module/jg/api/mapper/JgChangeRegistrationReformEqMapper.java
View file @
e60b949a
...
@@ -2,6 +2,8 @@ package com.yeejoin.amos.boot.module.jg.api.mapper;
...
@@ -2,6 +2,8 @@ package com.yeejoin.amos.boot.module.jg.api.mapper;
import
com.yeejoin.amos.boot.module.jg.api.entity.JgChangeRegistrationReformEq
;
import
com.yeejoin.amos.boot.module.jg.api.entity.JgChangeRegistrationReformEq
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
org.apache.ibatis.annotations.Param
;
import
org.apache.ibatis.annotations.Update
;
/**
/**
* 改造变更登记设备关系表 Mapper 接口
* 改造变更登记设备关系表 Mapper 接口
...
@@ -10,5 +12,6 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
...
@@ -10,5 +12,6 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
* @date 2023-12-20
* @date 2023-12-20
*/
*/
public
interface
JgChangeRegistrationReformEqMapper
extends
BaseMapper
<
JgChangeRegistrationReformEq
>
{
public
interface
JgChangeRegistrationReformEqMapper
extends
BaseMapper
<
JgChangeRegistrationReformEq
>
{
@Update
(
"update jg_change_registration_reform set is_invalid = 1 where equ_id = #{equipId} and equip_transfer_id = #{currentDocumentId} "
)
void
updateEquipIsVaildByEquipIdAndCurrentDocumentId
(
@Param
(
"equipId"
)
String
equipId
,
@Param
(
"currentDocumentId"
)
String
currentDocumentId
);
}
}
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/java/com/yeejoin/amos/boot/module/jg/api/mapper/JgChangeRegistrationReformMapper.java
View file @
e60b949a
...
@@ -5,6 +5,7 @@ import com.yeejoin.amos.boot.module.jg.api.dto.JgUseRegistrationDto;
...
@@ -5,6 +5,7 @@ import com.yeejoin.amos.boot.module.jg.api.dto.JgUseRegistrationDto;
import
com.yeejoin.amos.boot.module.jg.api.entity.JgChangeRegistrationReform
;
import
com.yeejoin.amos.boot.module.jg.api.entity.JgChangeRegistrationReform
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
org.apache.ibatis.annotations.Param
;
import
org.apache.ibatis.annotations.Param
;
import
org.apache.ibatis.annotations.Update
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Map
;
...
...
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/java/com/yeejoin/amos/boot/module/jg/api/mapper/JgChangeRegistrationTransferEqMapper.java
View file @
e60b949a
...
@@ -2,6 +2,8 @@ package com.yeejoin.amos.boot.module.jg.api.mapper;
...
@@ -2,6 +2,8 @@ package com.yeejoin.amos.boot.module.jg.api.mapper;
import
com.yeejoin.amos.boot.module.jg.api.entity.JgChangeRegistrationTransferEq
;
import
com.yeejoin.amos.boot.module.jg.api.entity.JgChangeRegistrationTransferEq
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
org.apache.ibatis.annotations.Param
;
import
org.apache.ibatis.annotations.Update
;
/**
/**
* 移装变更登记设备关系表 Mapper 接口
* 移装变更登记设备关系表 Mapper 接口
...
@@ -10,5 +12,6 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
...
@@ -10,5 +12,6 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
* @date 2023-12-20
* @date 2023-12-20
*/
*/
public
interface
JgChangeRegistrationTransferEqMapper
extends
BaseMapper
<
JgChangeRegistrationTransferEq
>
{
public
interface
JgChangeRegistrationTransferEqMapper
extends
BaseMapper
<
JgChangeRegistrationTransferEq
>
{
@Update
(
"update tzs_jg_change_registration_transfer_eq set is_invalid = 1 where equ_id = #{equipId} and equip_transfer_id = #{currentDocumentId} "
)
void
updateEquipIsVaildByEquipIdAndCurrentDocumentId
(
@Param
(
"equipId"
)
String
equipId
,
@Param
(
"currentDocumentId"
)
String
currentDocumentId
);
}
}
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/java/com/yeejoin/amos/boot/module/jg/api/mapper/JgReformNoticeMapper.java
View file @
e60b949a
...
@@ -33,4 +33,6 @@ public interface JgReformNoticeMapper extends CustomBaseMapper<JgReformNotice> {
...
@@ -33,4 +33,6 @@ public interface JgReformNoticeMapper extends CustomBaseMapper<JgReformNotice> {
*/
*/
@MapKey
(
"sequenceNbr"
)
@MapKey
(
"sequenceNbr"
)
List
<
Map
<
String
,
Object
>>
queryEquipInformation
(
@Param
(
"sequenceNbr"
)
long
sequenceNbr
);
List
<
Map
<
String
,
Object
>>
queryEquipInformation
(
@Param
(
"sequenceNbr"
)
long
sequenceNbr
);
void
updatePromoter
(
@Param
(
"id"
)
Long
id
);
}
}
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/java/com/yeejoin/amos/boot/module/jg/api/mapper/JgUseRegistrationEqMapper.java
View file @
e60b949a
...
@@ -2,6 +2,8 @@ package com.yeejoin.amos.boot.module.jg.api.mapper;
...
@@ -2,6 +2,8 @@ package com.yeejoin.amos.boot.module.jg.api.mapper;
import
com.yeejoin.amos.boot.module.jg.api.entity.JgUseRegistrationEq
;
import
com.yeejoin.amos.boot.module.jg.api.entity.JgUseRegistrationEq
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
org.apache.ibatis.annotations.Param
;
import
org.apache.ibatis.annotations.Update
;
/**
/**
* 使用登记设备关系表 Mapper 接口
* 使用登记设备关系表 Mapper 接口
...
@@ -10,5 +12,6 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
...
@@ -10,5 +12,6 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
* @date 2023-12-18
* @date 2023-12-18
*/
*/
public
interface
JgUseRegistrationEqMapper
extends
BaseMapper
<
JgUseRegistrationEq
>
{
public
interface
JgUseRegistrationEqMapper
extends
BaseMapper
<
JgUseRegistrationEq
>
{
@Update
(
"update tzs_jg_use_registration_eq set is_invalid = 1 where equ_id = #{equipId} and equip_transfer_id = #{currentDocumentId} "
)
void
updateEquipIsVaildByEquipIdAndCurrentDocumentId
(
@Param
(
"equipId"
)
String
equipId
,
@Param
(
"currentDocumentId"
)
String
currentDocumentId
);
}
}
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/resources/mapper/JgReformNoticeMapper.xml
View file @
e60b949a
...
@@ -23,7 +23,9 @@
...
@@ -23,7 +23,9 @@
isn.instance_id AS instanceId,
isn.instance_id AS instanceId,
isn.plan_date AS planDate,
isn.plan_date AS planDate,
isn.receive_company_code AS receiveCompanyCode,
isn.receive_company_code AS receiveCompanyCode,
isn.receive_org_name AS receiveOrgName
isn.receive_org_name AS receiveOrgName,
isn.next_execute_ids as nextExecuteIds,
isn.promoter
FROM
FROM
tzs_jg_reform_notice isn
tzs_jg_reform_notice isn
<where>
<where>
...
@@ -76,6 +78,9 @@
...
@@ -76,6 +78,9 @@
isn.receive_company_code AS receiveCompanyCode,
isn.receive_company_code AS receiveCompanyCode,
isn.receive_org_name AS receiveOrgName,
isn.receive_org_name AS receiveOrgName,
isn.receive_org_code AS receiveOrgCode,
isn.receive_org_code AS receiveOrgCode,
isn.next_execute_ids as nextExecuteIds,
isn.promoter,
isn.notice_status AS noticeStatus,
ri.equ_code AS equRegisterCode,
ri.equ_code AS equRegisterCode,
ri.equ_list AS equList,
ri.equ_list AS equList,
ri.equ_category AS equCategory,
ri.equ_category AS equCategory,
...
@@ -123,4 +128,9 @@
...
@@ -123,4 +128,9 @@
isn.sequence_nbr = #{sequenceNbr}
isn.sequence_nbr = #{sequenceNbr}
LIMIT 1
LIMIT 1
</select>
</select>
<update
id=
"updatePromoter"
>
UPDATE tzs_jg_reform_notice set promoter = null
where sequence_nbr = #{id}
</update>
</mapper>
</mapper>
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/resources/mapper/JgUseRegistrationMapper.xml
View file @
e60b949a
...
@@ -22,7 +22,7 @@
...
@@ -22,7 +22,7 @@
ur.instance_id as instanceId,
ur.instance_id as instanceId,
re.equ_id as equipId,
re.equ_id as equipId,
ur.apply_no as applyNo,
ur.apply_no as applyNo,
ifnull(ur.next_execute_ids,'')
as nextExecuteIds,
ur.next_execute_ids
as nextExecuteIds,
ur.promoter
ur.promoter
from tzs_jg_use_registration ur
from tzs_jg_use_registration ur
LEFT JOIN tzs_jg_use_registration_eq re on ur.sequence_nbr = re.equip_transfer_id
LEFT JOIN tzs_jg_use_registration_eq re on ur.sequence_nbr = re.equip_transfer_id
...
...
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 @
e60b949a
...
@@ -10,11 +10,11 @@ import com.yeejoin.amos.boot.biz.common.bo.ReginParams;
...
@@ -10,11 +10,11 @@ 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.RedisKey
;
import
com.yeejoin.amos.boot.biz.common.utils.RedisUtils
;
import
com.yeejoin.amos.boot.biz.common.utils.RedisUtils
;
import
com.yeejoin.amos.boot.module.jg.api.dto.JgUseRegistrationDto
;
import
com.yeejoin.amos.boot.module.jg.api.dto.JgUseRegistrationDto
;
import
com.yeejoin.amos.boot.module.jg.api.entity.JgChangeRegistrationReform
;
import
com.yeejoin.amos.boot.module.jg.api.entity.*
;
import
com.yeejoin.amos.boot.module.jg.api.entity.JgUseRegistration
;
import
com.yeejoin.amos.boot.module.jg.api.entity.JgUseRegistrationEq
;
import
com.yeejoin.amos.boot.module.jg.api.enums.UseStatusEnum
;
import
com.yeejoin.amos.boot.module.jg.api.enums.UseStatusEnum
;
import
com.yeejoin.amos.boot.module.jg.api.mapper.JgChangeRegistrationReformEqMapper
;
import
com.yeejoin.amos.boot.module.jg.api.mapper.JgChangeRegistrationReformMapper
;
import
com.yeejoin.amos.boot.module.jg.api.mapper.JgChangeRegistrationReformMapper
;
import
com.yeejoin.amos.boot.module.jg.api.mapper.JgChangeRegistrationTransferEqMapper
;
import
com.yeejoin.amos.boot.module.jg.api.mapper.JgUseRegistrationEqMapper
;
import
com.yeejoin.amos.boot.module.jg.api.mapper.JgUseRegistrationEqMapper
;
import
com.yeejoin.amos.boot.module.jg.api.service.IJgChangeRegistrationReformService
;
import
com.yeejoin.amos.boot.module.jg.api.service.IJgChangeRegistrationReformService
;
import
com.yeejoin.amos.boot.module.jg.api.dto.JgChangeRegistrationReformDto
;
import
com.yeejoin.amos.boot.module.jg.api.dto.JgChangeRegistrationReformDto
;
...
@@ -60,6 +60,17 @@ public class JgChangeRegistrationReformServiceImpl extends BaseService<JgChangeR
...
@@ -60,6 +60,17 @@ public class JgChangeRegistrationReformServiceImpl extends BaseService<JgChangeR
private
OtherInfoMapper
otherInfoMapper
;
private
OtherInfoMapper
otherInfoMapper
;
@Autowired
@Autowired
private
JgChangeRegistrationReformMapper
jgChangeRegistrationReformMapper
;
private
JgChangeRegistrationReformMapper
jgChangeRegistrationReformMapper
;
//改造登记关系表mapper
@Autowired
private
JgChangeRegistrationReformEqMapper
jgChangeRegistrationReformEqMapper
;
//移装登记关系表
@Autowired
private
JgChangeRegistrationTransferEqMapper
jgChangeRegistrationTransferEqMapper
;
//使用登记关系表mapper
@Autowired
private
JgUseRegistrationEqMapper
jgUseRegistrationEqMapper
;
@Autowired
@Autowired
WorkFlowFeignService
workFlowFeginService
;
WorkFlowFeignService
workFlowFeginService
;
@Autowired
@Autowired
...
@@ -112,16 +123,16 @@ public class JgChangeRegistrationReformServiceImpl extends BaseService<JgChangeR
...
@@ -112,16 +123,16 @@ public class JgChangeRegistrationReformServiceImpl extends BaseService<JgChangeR
}
else
{
}
else
{
// 业务管理设备信息保存
// 业务管理设备信息保存
Jg
UseRegistrationEq
jgRelationEquip
=
new
JgUseRegistration
Eq
();
Jg
ChangeRegistrationReformEq
jgChangeRegistrationReformEq
=
new
JgChangeRegistrationReform
Eq
();
jg
RelationEquip
.
setEquId
(
map
.
get
(
"equipId"
).
toString
());
jg
ChangeRegistrationReformEq
.
setEquId
(
map
.
get
(
"equipId"
).
toString
());
// jgRelationEquip.setBusinessType(String.valueOf(BusinessTypeEnum.USAGE_REGISTRATION.getCode()));
// jgRelationEquip.setBusinessType(String.valueOf(BusinessTypeEnum.USAGE_REGISTRATION.getCode()));
List
<
String
>
applicationFormCode
=
iCreateCodeService
.
createApplicationFormCode
(
ApplicationFormTypeEnum
.
SYDJ
.
getCode
(),
1
);
List
<
String
>
applicationFormCode
=
iCreateCodeService
.
createApplicationFormCode
(
ApplicationFormTypeEnum
.
SYDJ
.
getCode
(),
1
);
jgChangeRegistrationReform
.
setApplyNo
(
applicationFormCode
.
get
(
0
));
jgChangeRegistrationReform
.
setApplyNo
(
applicationFormCode
.
get
(
0
));
jgChangeRegistrationReform
.
setAuditStatus
(
"待提交"
);
jgChangeRegistrationReform
.
setAuditStatus
(
"待提交"
);
jgChangeRegistrationReform
.
setStatus
(
UseStatusEnum
.
SUBMIT
.
getPass
());
jgChangeRegistrationReform
.
setStatus
(
UseStatusEnum
.
SUBMIT
.
getPass
());
this
.
save
(
jgChangeRegistrationReform
);
this
.
save
(
jgChangeRegistrationReform
);
jg
RelationEquip
.
setEquipTransferId
(
jgChangeRegistrationReform
.
getSequenceNbr
().
toString
());
jg
ChangeRegistrationReformEq
.
setEquipTransferId
(
jgChangeRegistrationReform
.
getSequenceNbr
().
toString
());
jgChangeRegistrationReform
Mapper
.
insert
(
jgChangeRegistrationReform
);
jgChangeRegistrationReform
EqMapper
.
insert
(
jgChangeRegistrationReformEq
);
}
}
if
(!
ObjectUtils
.
isEmpty
(
map
.
get
(
"submit"
)))
{
if
(!
ObjectUtils
.
isEmpty
(
map
.
get
(
"submit"
)))
{
...
@@ -212,8 +223,10 @@ public class JgChangeRegistrationReformServiceImpl extends BaseService<JgChangeR
...
@@ -212,8 +223,10 @@ public class JgChangeRegistrationReformServiceImpl extends BaseService<JgChangeR
lambda
.
eq
(
JgChangeRegistrationReform:
:
getSequenceNbr
,
id
);
lambda
.
eq
(
JgChangeRegistrationReform:
:
getSequenceNbr
,
id
);
JgChangeRegistrationReform
jgChangeRegistrationReform
=
this
.
getBaseMapper
().
selectOne
(
lambda
);
JgChangeRegistrationReform
jgChangeRegistrationReform
=
this
.
getBaseMapper
().
selectOne
(
lambda
);
if
(
"流程结束"
.
equals
(
taskName
))
{
if
(
"流程结束"
.
equals
(
taskName
))
{
JgChangeRegistrationReformEq
jgChangeRegistrationReformEq
=
jgChangeRegistrationReformEqMapper
.
selectOne
(
new
QueryWrapper
<
JgChangeRegistrationReformEq
>().
eq
(
"equip_transfer_id"
,
jgChangeRegistrationReform
.
getSequenceNbr
()));
jgChangeRegistrationReform
.
setStatus
(
taskName
);
jgChangeRegistrationReform
.
setStatus
(
taskName
);
jgChangeRegistrationReform
.
setAuditStatus
(
"已完成"
);
jgChangeRegistrationReform
.
setAuditStatus
(
"已完成"
);
makeEquipmentsInvalid
(
jgChangeRegistrationReformEq
.
getEquId
(),
jgChangeRegistrationReform
.
getSequenceNbr
().
toString
());
}
else
{
}
else
{
jgChangeRegistrationReform
.
setNextExecuteIds
(
role
);
jgChangeRegistrationReform
.
setNextExecuteIds
(
role
);
jgChangeRegistrationReform
.
setPromoter
(
reginParams
.
getUserModel
().
getUserId
());
jgChangeRegistrationReform
.
setPromoter
(
reginParams
.
getUserModel
().
getUserId
());
...
@@ -288,4 +301,16 @@ public class JgChangeRegistrationReformServiceImpl extends BaseService<JgChangeR
...
@@ -288,4 +301,16 @@ public class JgChangeRegistrationReformServiceImpl extends BaseService<JgChangeR
detail
.
put
(
"inspectReport"
,
JSON
.
parse
(
String
.
valueOf
(
detail
.
get
(
"inspectReport"
))));
detail
.
put
(
"inspectReport"
,
JSON
.
parse
(
String
.
valueOf
(
detail
.
get
(
"inspectReport"
))));
return
detail
;
return
detail
;
}
}
/**
* 批量设置设备无效(使用登记、移装登记、改造登记)
* @param equipmentId 装备id
* @param currentDocumentId 当前文档id
*/
public
void
makeEquipmentsInvalid
(
String
equipmentId
,
String
currentDocumentId
){
jgChangeRegistrationReformEqMapper
.
updateEquipIsVaildByEquipIdAndCurrentDocumentId
(
equipmentId
,
currentDocumentId
);
jgChangeRegistrationTransferEqMapper
.
updateEquipIsVaildByEquipIdAndCurrentDocumentId
(
equipmentId
,
currentDocumentId
);
jgUseRegistrationEqMapper
.
updateEquipIsVaildByEquipIdAndCurrentDocumentId
(
equipmentId
,
currentDocumentId
);
}
}
}
\ 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/JgReformNoticeServiceImpl.java
View file @
e60b949a
...
@@ -7,6 +7,8 @@ import com.aspose.words.SaveFormat;
...
@@ -7,6 +7,8 @@ import com.aspose.words.SaveFormat;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.yeejoin.amos.boot.biz.common.bo.ReginParams
;
import
com.yeejoin.amos.boot.biz.common.bo.ReginParams
;
import
com.yeejoin.amos.boot.biz.common.utils.DateUtils
;
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.ByteArrayMultipartFile
;
import
com.yeejoin.amos.boot.module.jg.api.dto.ByteArrayMultipartFile
;
import
com.yeejoin.amos.boot.module.jg.api.dto.JgReformNoticeDto
;
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.entity.JgReformNotice
;
...
@@ -44,6 +46,7 @@ import org.springframework.util.CollectionUtils;
...
@@ -44,6 +46,7 @@ import org.springframework.util.CollectionUtils;
import
org.springframework.util.ObjectUtils
;
import
org.springframework.util.ObjectUtils
;
import
org.springframework.util.StringUtils
;
import
org.springframework.util.StringUtils
;
import
org.springframework.web.multipart.MultipartFile
;
import
org.springframework.web.multipart.MultipartFile
;
import
org.typroject.tyboot.core.foundation.context.RequestContext
;
import
org.typroject.tyboot.core.foundation.utils.ValidationUtil
;
import
org.typroject.tyboot.core.foundation.utils.ValidationUtil
;
import
org.typroject.tyboot.core.rdbms.service.BaseService
;
import
org.typroject.tyboot.core.rdbms.service.BaseService
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
...
@@ -106,7 +109,8 @@ public class JgReformNoticeServiceImpl extends BaseService<JgReformNoticeDto, Jg
...
@@ -106,7 +109,8 @@ public class JgReformNoticeServiceImpl extends BaseService<JgReformNoticeDto, Jg
TzsServiceFeignClient
tzsServiceFeignClient
;
TzsServiceFeignClient
tzsServiceFeignClient
;
@Autowired
@Autowired
SupervisoryCodeInfoMapper
supervisoryCodeInfoMapper
;
SupervisoryCodeInfoMapper
supervisoryCodeInfoMapper
;
@Autowired
private
RedisUtils
redisUtils
;
public
static
byte
[]
file2byte
(
File
file
)
{
public
static
byte
[]
file2byte
(
File
file
)
{
try
{
try
{
...
@@ -215,7 +219,13 @@ public class JgReformNoticeServiceImpl extends BaseService<JgReformNoticeDto, Jg
...
@@ -215,7 +219,13 @@ public class JgReformNoticeServiceImpl extends BaseService<JgReformNoticeDto, Jg
noticeDto
.
setNoticeStatus
(
String
.
valueOf
(
FlowStatusEnum
.
TO_BE_PROCESSED
.
getCode
()));
noticeDto
.
setNoticeStatus
(
String
.
valueOf
(
FlowStatusEnum
.
TO_BE_PROCESSED
.
getCode
()));
JgReformNotice
bean
=
new
JgReformNotice
();
JgReformNotice
bean
=
new
JgReformNotice
();
BeanUtils
.
copyProperties
(
noticeDto
,
bean
);
BeanUtils
.
copyProperties
(
noticeDto
,
bean
);
ReginParams
reginParams
=
JSONObject
.
parseObject
(
redisUtils
.
get
(
RedisKey
.
buildReginKey
(
RequestContext
.
getExeUserId
(),
RequestContext
.
getToken
())).
toString
(),
ReginParams
.
class
);
bean
.
setPromoter
(
reginParams
.
getUserModel
().
getUserId
());
JgReformNoticeMapper
.
updateById
(
bean
);
JgReformNoticeMapper
.
updateById
(
bean
);
Boolean
rollBack
=
"1"
.
equals
(
op
)
?
true
:
false
;
if
(
rollBack
)
{
JgReformNoticeMapper
.
updatePromoter
(
noticeDto
.
getSequenceNbr
());
}
}
}
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
log
.
error
(
"提交失败:{}"
,
e
);
log
.
error
(
"提交失败:{}"
,
e
);
...
@@ -446,7 +456,7 @@ public class JgReformNoticeServiceImpl extends BaseService<JgReformNoticeDto, Jg
...
@@ -446,7 +456,7 @@ public class JgReformNoticeServiceImpl extends BaseService<JgReformNoticeDto, Jg
e
.
printStackTrace
();
e
.
printStackTrace
();
}
}
}
}
// ReginParams reginParams = JSONObject.parseObject(redisUtils.get(RedisKey.buildReginKey(RequestContext.getExeUserId(), RequestContext.getToken())).toString(), ReginParams.class);
List
<
JgReformNotice
>
list
=
new
ArrayList
<>();
List
<
JgReformNotice
>
list
=
new
ArrayList
<>();
List
<
JgReformNoticeEq
>
equipList
=
new
ArrayList
<>();
List
<
JgReformNoticeEq
>
equipList
=
new
ArrayList
<>();
deviceList
.
forEach
(
obj
->
{
deviceList
.
forEach
(
obj
->
{
...
@@ -467,6 +477,7 @@ public class JgReformNoticeServiceImpl extends BaseService<JgReformNoticeDto, Jg
...
@@ -467,6 +477,7 @@ public class JgReformNoticeServiceImpl extends BaseService<JgReformNoticeDto, Jg
}
else
{
}
else
{
dto
.
setNoticeStatus
(
String
.
valueOf
(
FlowStatusEnum
.
TO_BE_SUBMITTED
.
getCode
()));
dto
.
setNoticeStatus
(
String
.
valueOf
(
FlowStatusEnum
.
TO_BE_SUBMITTED
.
getCode
()));
}
}
dto
.
setPromoter
(
reginParams
.
getUserModel
().
getUserId
());
list
.
add
(
dto
);
list
.
add
(
dto
);
equipList
.
add
(
jgRelationEquip
);
equipList
.
add
(
jgRelationEquip
);
});
});
...
@@ -540,9 +551,6 @@ public class JgReformNoticeServiceImpl extends BaseService<JgReformNoticeDto, Jg
...
@@ -540,9 +551,6 @@ public class JgReformNoticeServiceImpl extends BaseService<JgReformNoticeDto, Jg
model
.
setUseUnitName
(
useUnitList
[
1
]);
model
.
setUseUnitName
(
useUnitList
[
1
]);
}
}
}
}
if
(
org
.
apache
.
commons
.
lang3
.
StringUtils
.
isEmpty
(
model
.
getReceiveOrgCode
()))
{
model
.
setReceiveOrgCode
(
model
.
getReceiveOrgCreditCode
());
}
String
receiveOrgId
=
model
.
getReceiveOrgCode
();
String
receiveOrgId
=
model
.
getReceiveOrgCode
();
if
(!
ObjectUtils
.
isEmpty
(
receiveOrgId
))
{
if
(!
ObjectUtils
.
isEmpty
(
receiveOrgId
))
{
String
[]
receiveOrgIdList
=
receiveOrgId
.
split
(
"_"
);
String
[]
receiveOrgIdList
=
receiveOrgId
.
split
(
"_"
);
...
@@ -602,8 +610,11 @@ public class JgReformNoticeServiceImpl extends BaseService<JgReformNoticeDto, Jg
...
@@ -602,8 +610,11 @@ public class JgReformNoticeServiceImpl extends BaseService<JgReformNoticeDto, Jg
FeignClientResult
ajaxResult
=
Workflow
.
taskV2Client
.
rollBack
(
noticeDto
.
getInstanceId
());
FeignClientResult
ajaxResult
=
Workflow
.
taskV2Client
.
rollBack
(
noticeDto
.
getInstanceId
());
JgReformNotice
JgReformNotice
=
this
.
baseMapper
.
selectById
(
noticeDto
.
getSequenceNbr
());
JgReformNotice
JgReformNotice
=
this
.
baseMapper
.
selectById
(
noticeDto
.
getSequenceNbr
());
if
(
ajaxResult
.
getStatus
()
==
200
)
{
if
(
ajaxResult
.
getStatus
()
==
200
)
{
ReginParams
reginParams
=
JSONObject
.
parseObject
(
redisUtils
.
get
(
RedisKey
.
buildReginKey
(
RequestContext
.
getExeUserId
(),
RequestContext
.
getToken
())).
toString
(),
ReginParams
.
class
);
JgReformNotice
.
setPromoter
(
reginParams
.
getUserModel
().
getUserId
());
JgReformNotice
.
setNoticeStatus
(
String
.
valueOf
(
FlowStatusEnum
.
TO_BE_SUBMITTED
.
getCode
()));
JgReformNotice
.
setNoticeStatus
(
String
.
valueOf
(
FlowStatusEnum
.
TO_BE_SUBMITTED
.
getCode
()));
JgReformNoticeMapper
.
updateById
(
JgReformNotice
);
JgReformNoticeMapper
.
updateById
(
JgReformNotice
);
JgReformNoticeMapper
.
updatePromoter
(
JgReformNotice
.
getSequenceNbr
());
}
}
}
}
...
@@ -623,9 +634,9 @@ public class JgReformNoticeServiceImpl extends BaseService<JgReformNoticeDto, Jg
...
@@ -623,9 +634,9 @@ public class JgReformNoticeServiceImpl extends BaseService<JgReformNoticeDto, Jg
queryWrapper
.
eq
(
JgReformNoticeEq:
:
getEquipTransferId
,
dto
.
getSequenceNbr
());
queryWrapper
.
eq
(
JgReformNoticeEq:
:
getEquipTransferId
,
dto
.
getSequenceNbr
());
JgReformNoticeEq
jgRelationEquip
=
JgReformNoticeEqMapper
.
selectOne
(
queryWrapper
);
JgReformNoticeEq
jgRelationEquip
=
JgReformNoticeEqMapper
.
selectOne
(
queryWrapper
);
LambdaQueryWrapper
<
OtherInfo
>
queryWrapper1
=
new
LambdaQueryWrapper
<>();
//
LambdaQueryWrapper<OtherInfo> queryWrapper1 = new LambdaQueryWrapper<>();
queryWrapper1
.
eq
(
OtherInfo:
:
getRecord
,
jgRelationEquip
.
getEquId
());
//
queryWrapper1.eq(OtherInfo::getRecord, jgRelationEquip.getEquId());
OtherInfo
tzsJgOtherInfo
=
tzsJgOtherInfoMapper
.
selectOne
(
queryWrapper1
);
//
OtherInfo tzsJgOtherInfo = tzsJgOtherInfoMapper.selectOne(queryWrapper1);
LambdaQueryWrapper
<
RegistrationInfo
>
queryWrapper2
=
new
LambdaQueryWrapper
<>();
LambdaQueryWrapper
<
RegistrationInfo
>
queryWrapper2
=
new
LambdaQueryWrapper
<>();
queryWrapper2
.
eq
(
RegistrationInfo:
:
getRecord
,
jgRelationEquip
.
getEquId
());
queryWrapper2
.
eq
(
RegistrationInfo:
:
getRecord
,
jgRelationEquip
.
getEquId
());
...
@@ -633,7 +644,7 @@ public class JgReformNoticeServiceImpl extends BaseService<JgReformNoticeDto, Jg
...
@@ -633,7 +644,7 @@ public class JgReformNoticeServiceImpl extends BaseService<JgReformNoticeDto, Jg
stringBuffer
.
append
(
tzsJgRegistrationInfo
.
getEquCategory
()).
append
(
JgReformNotice
.
getCity
()).
append
(
ym
);
stringBuffer
.
append
(
tzsJgRegistrationInfo
.
getEquCategory
()).
append
(
JgReformNotice
.
getCity
()).
append
(
ym
);
String
equCode
=
stringBuffer
.
toString
();
//
String equCode = stringBuffer.toString();
// 只有安装设备需要
// 只有安装设备需要
// String deviceRegistrationCode = iCreateCodeService.createDeviceRegistrationCode(equCode);
// String deviceRegistrationCode = iCreateCodeService.createDeviceRegistrationCode(equCode);
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
...
@@ -669,7 +680,13 @@ public class JgReformNoticeServiceImpl extends BaseService<JgReformNoticeDto, Jg
...
@@ -669,7 +680,13 @@ public class JgReformNoticeServiceImpl extends BaseService<JgReformNoticeDto, Jg
JgReformNotice
.
setNoticeStatus
(
String
.
valueOf
(
FlowStatusEnum
.
TO_BE_SUBMITTED
.
getCode
()));
JgReformNotice
.
setNoticeStatus
(
String
.
valueOf
(
FlowStatusEnum
.
TO_BE_SUBMITTED
.
getCode
()));
// JgReformNotice.setStatus(String.valueOf(FlowStatusEnum.REJECTED.getCode()));
// JgReformNotice.setStatus(String.valueOf(FlowStatusEnum.REJECTED.getCode()));
}
}
ReginParams
reginParams
=
JSONObject
.
parseObject
(
redisUtils
.
get
(
RedisKey
.
buildReginKey
(
RequestContext
.
getExeUserId
(),
RequestContext
.
getToken
())).
toString
(),
ReginParams
.
class
);
JgReformNotice
.
setPromoter
(
reginParams
.
getUserModel
().
getUserId
());
JgReformNoticeMapper
.
updateById
(
JgReformNotice
);
JgReformNoticeMapper
.
updateById
(
JgReformNotice
);
Boolean
rollBack
=
"1"
.
equals
(
op
)
?
true
:
false
;
if
(
rollBack
)
{
JgReformNoticeMapper
.
updatePromoter
(
JgReformNotice
.
getSequenceNbr
());
}
}
}
// // 组装监管码
// // 组装监管码
...
...
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 @
e60b949a
...
@@ -98,8 +98,13 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
...
@@ -98,8 +98,13 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
jgUseRegistration
.
setSupervisoryCode
(
supervisoryCode
);
jgUseRegistration
.
setSupervisoryCode
(
supervisoryCode
);
jgUseRegistration
.
setUseUnitName
(
useInfo
.
getUseUnitName
());
jgUseRegistration
.
setUseUnitName
(
useInfo
.
getUseUnitName
());
jgUseRegistration
.
setUseUnitCreditCode
(
useInfo
.
getUseUnitCreditCode
());
jgUseRegistration
.
setUseUnitCreditCode
(
useInfo
.
getUseUnitCreditCode
());
jgUseRegistration
.
setInspectUnitCreditCode
(
map
.
get
(
"inspectUnitCreditCode"
).
toString
());
jgUseRegistration
.
setUseUnitCreditCode
(
"91610131628001738N"
);
jgUseRegistration
.
setInspectUnitName
(
map
.
get
(
"inspectOrgName"
).
toString
());
if
(!
ObjectUtils
.
isEmpty
(
map
.
get
(
"inspectUnitCreditCode"
))){
jgUseRegistration
.
setInspectUnitCreditCode
(
map
.
get
(
"inspectUnitCreditCode"
).
toString
());
}
if
(!
ObjectUtils
.
isEmpty
(
map
.
get
(
"inspectOrgName"
))){
jgUseRegistration
.
setInspectUnitName
(
map
.
get
(
"inspectOrgName"
).
toString
());
}
if
(
map
.
containsKey
(
"type"
)
&&
"edit"
.
equals
(
String
.
valueOf
(
map
.
get
(
"type"
))))
{
if
(
map
.
containsKey
(
"type"
)
&&
"edit"
.
equals
(
String
.
valueOf
(
map
.
get
(
"type"
))))
{
...
@@ -129,7 +134,6 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
...
@@ -129,7 +134,6 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
// 启动并执行流程
// 启动并执行流程
instanceId
=
startByVariable
();
instanceId
=
startByVariable
();
jgUseRegistration
.
setInstanceStatus
(
"1460532889249755137"
);
jgUseRegistration
.
setInstanceStatus
(
"1460532889249755137"
);
jgUseRegistration
.
setUseUnitCreditCode
(
"91610131628001738N"
);
jgUseRegistration
.
setReceiveCompanyCode
(
"610000"
);
jgUseRegistration
.
setReceiveCompanyCode
(
"610000"
);
}
}
...
@@ -283,7 +287,7 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
...
@@ -283,7 +287,7 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
detail
.
put
(
"factoryStandard"
,
JSON
.
parse
(
String
.
valueOf
(
detail
.
get
(
"factoryStandard"
))));
detail
.
put
(
"factoryStandard"
,
JSON
.
parse
(
String
.
valueOf
(
detail
.
get
(
"factoryStandard"
))));
detail
.
put
(
"productQualityYieldProve"
,
JSON
.
parse
(
String
.
valueOf
(
detail
.
get
(
"productQualityYieldProve"
))));
detail
.
put
(
"productQualityYieldProve"
,
JSON
.
parse
(
String
.
valueOf
(
detail
.
get
(
"productQualityYieldProve"
))));
detail
.
put
(
"insUseMaintainExplanin"
,
JSON
.
parse
(
String
.
valueOf
(
detail
.
get
(
"insUseMaintainExplanin"
))));
detail
.
put
(
"insUseMaintainExplanin"
,
JSON
.
parse
(
String
.
valueOf
(
detail
.
get
(
"insUseMaintainExplanin"
))));
detail
.
put
(
"inspectReport"
,
JSON
.
parse
(
String
.
valueOf
(
detail
.
get
(
"inspectReport"
))));
//
detail.put("inspectReport", JSON.parse(String.valueOf(detail.get("inspectReport"))));
return
detail
;
return
detail
;
}
}
...
...
amos-boot-system-tzs/amos-boot-module-jyjc/amos-boot-module-jyjc-api/src/main/java/com/yeejoin/amos/boot/module/jyjc/api/entity/JyjcInspectionApplication.java
View file @
e60b949a
...
@@ -163,10 +163,17 @@ public class JyjcInspectionApplication extends BaseEntity {
...
@@ -163,10 +163,17 @@ public class JyjcInspectionApplication extends BaseEntity {
*/
*/
@TableField
(
"result_type"
)
@TableField
(
"result_type"
)
private
String
resultType
;
private
String
resultType
;
/**
/**
*
工作流下一个可执行节点
*
下一执行节点ids
*/
*/
@TableField
(
"next_execute_ids"
)
@TableField
(
"next_execute_ids"
)
private
String
nextExecuteIds
;
private
String
nextExecuteIds
;
/**
* 发起人id用于撤回操作
*/
@TableField
(
value
=
"promoter"
)
private
String
promoter
;
@TableField
(
value
=
"create_user_id"
)
private
String
createUserId
;
}
}
amos-boot-system-tzs/amos-boot-module-jyjc/amos-boot-module-jyjc-api/src/main/java/com/yeejoin/amos/boot/module/jyjc/api/entity/JyjcOpeningApplication.java
View file @
e60b949a
...
@@ -114,9 +114,16 @@ public class JyjcOpeningApplication extends BaseEntity {
...
@@ -114,9 +114,16 @@ public class JyjcOpeningApplication extends BaseEntity {
@TableField
(
value
=
"workflow_active_key"
)
@TableField
(
value
=
"workflow_active_key"
)
private
String
workflowActiveKey
;
private
String
workflowActiveKey
;
/**
/**
*
工作流下一个可执行节点
*
下一执行节点ids
*/
*/
@TableField
(
"next_execute_ids"
)
@TableField
(
"next_execute_ids"
)
private
String
nextExecuteIds
;
private
String
nextExecuteIds
;
/**
* 发起人id用于撤回操作
*/
@TableField
(
value
=
"promoter"
)
private
String
promoter
;
@TableField
(
value
=
"create_user_id"
)
private
String
createUserId
;
}
}
amos-boot-system-tzs/amos-boot-module-jyjc/amos-boot-module-jyjc-api/src/main/java/com/yeejoin/amos/boot/module/jyjc/api/enums/FlowStatusEnum.java
View file @
e60b949a
...
@@ -8,7 +8,7 @@ public enum FlowStatusEnum {
...
@@ -8,7 +8,7 @@ public enum FlowStatusEnum {
/**
/**
* 待提交
* 待提交
*/
*/
TO_BE_SUBMITTED
(
6610
,
"
待
提交"
),
TO_BE_SUBMITTED
(
6610
,
"
未
提交"
),
/**
/**
* 已提交
* 已提交
*/
*/
...
@@ -34,7 +34,11 @@ public enum FlowStatusEnum {
...
@@ -34,7 +34,11 @@ public enum FlowStatusEnum {
/**
/**
* 已完成
* 已完成
*/
*/
TO_BE_FINISHED
(
6616
,
"已完成"
);
TO_BE_FINISHED
(
6616
,
"已完成"
),
/**
* 已作废
*/
TO_BE_DISCARD
(
6617
,
"已作废"
);
private
final
int
code
;
private
final
int
code
;
...
...
amos-boot-system-tzs/amos-boot-module-jyjc/amos-boot-module-jyjc-api/src/main/java/com/yeejoin/amos/boot/module/jyjc/api/mapper/JyjcInspectionApplicationMapper.java
View file @
e60b949a
...
@@ -23,4 +23,6 @@ public interface JyjcInspectionApplicationMapper extends BaseMapper<JyjcInspecti
...
@@ -23,4 +23,6 @@ public interface JyjcInspectionApplicationMapper extends BaseMapper<JyjcInspecti
Page
<
JyjcInspectionApplicationEquipModel
>
listByCategory
(
Page
<
JyjcInspectionApplicationEquipModel
>
page
,
@Param
(
"equipClassify"
)
String
equipClassify
);
Page
<
JyjcInspectionApplicationEquipModel
>
listByCategory
(
Page
<
JyjcInspectionApplicationEquipModel
>
page
,
@Param
(
"equipClassify"
)
String
equipClassify
);
JyjcInspectionApplicationModel
selectDataBySeq
(
Long
sequenceNbr
);
JyjcInspectionApplicationModel
selectDataBySeq
(
Long
sequenceNbr
);
void
updatePromoter
(
@org
.
apache
.
ibatis
.
annotations
.
Param
(
"id"
)
Long
id
);
}
}
amos-boot-system-tzs/amos-boot-module-jyjc/amos-boot-module-jyjc-api/src/main/java/com/yeejoin/amos/boot/module/jyjc/api/mapper/JyjcOpeningApplicationMapper.java
View file @
e60b949a
...
@@ -18,4 +18,5 @@ public interface JyjcOpeningApplicationMapper extends BaseMapper<JyjcOpeningAppl
...
@@ -18,4 +18,5 @@ public interface JyjcOpeningApplicationMapper extends BaseMapper<JyjcOpeningAppl
Page
<
JyjcOpeningApplicationModel
>
selectJyjcOpeningApplicationList
(
@Param
(
"page"
)
Page
<
JyjcOpeningApplication
>
page
,
Page
<
JyjcOpeningApplicationModel
>
selectJyjcOpeningApplicationList
(
@Param
(
"page"
)
Page
<
JyjcOpeningApplication
>
page
,
@Param
(
"jyjcOpeningApplicationRequstDto"
)
JyjcOpeningApplicationRequstDto
jyjcOpeningApplicationRequstDto
,
@Param
(
"applyStartTime"
)
String
applyStartTime
,
@Param
(
"applyendTime"
)
String
applyendTime
);
@Param
(
"jyjcOpeningApplicationRequstDto"
)
JyjcOpeningApplicationRequstDto
jyjcOpeningApplicationRequstDto
,
@Param
(
"applyStartTime"
)
String
applyStartTime
,
@Param
(
"applyendTime"
)
String
applyendTime
);
void
updatePromoter
(
@Param
(
"id"
)
Long
id
);
}
}
amos-boot-system-tzs/amos-boot-module-jyjc/amos-boot-module-jyjc-api/src/main/java/com/yeejoin/amos/boot/module/jyjc/api/model/JyjcInspectionApplicationModel.java
View file @
e60b949a
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jyjc
.
api
.
model
;
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jyjc
.
api
.
model
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
io.swagger.annotations.ApiModelProperty
;
...
@@ -148,7 +149,12 @@ public class JyjcInspectionApplicationModel extends BaseModel {
...
@@ -148,7 +149,12 @@ public class JyjcInspectionApplicationModel extends BaseModel {
@ApiModelProperty
(
"检验结果方式"
)
@ApiModelProperty
(
"检验结果方式"
)
private
String
resultType
;
private
String
resultType
;
@ApiModelProperty
(
"工作流下一个可执行节点
"
)
@ApiModelProperty
(
value
=
"下一执行节点ids
"
)
private
String
nextExecuteIds
;
private
String
nextExecuteIds
;
@ApiModelProperty
(
value
=
"发起人id用于撤回操作"
)
private
String
promoter
;
@ApiModelProperty
(
value
=
"创建人ID"
)
private
String
createUserId
;
}
}
amos-boot-system-tzs/amos-boot-module-jyjc/amos-boot-module-jyjc-api/src/main/java/com/yeejoin/amos/boot/module/jyjc/api/model/JyjcOpeningApplicationModel.java
View file @
e60b949a
...
@@ -77,8 +77,14 @@ public class JyjcOpeningApplicationModel extends BaseModel {
...
@@ -77,8 +77,14 @@ public class JyjcOpeningApplicationModel extends BaseModel {
@ApiModelProperty
(
value
=
"工作流节点"
)
@ApiModelProperty
(
value
=
"工作流节点"
)
private
String
workflowActiveKey
;
private
String
workflowActiveKey
;
@ApiModelProperty
(
value
=
"工作流下一个可执行节点
"
)
@ApiModelProperty
(
value
=
"下一执行节点ids
"
)
private
String
nextExecuteIds
;
private
String
nextExecuteIds
;
@ApiModelProperty
(
value
=
"发起人id用于撤回操作"
)
private
String
promoter
;
@ApiModelProperty
(
value
=
"创建人ID"
)
private
String
createUserId
;
/* ---------------- -------------- */
/* ---------------- -------------- */
@ApiModelProperty
(
value
=
"企业资质信息"
)
@ApiModelProperty
(
value
=
"企业资质信息"
)
List
<
TzBaseUnitLicenceDto
>
baseUnitLicences
;
List
<
TzBaseUnitLicenceDto
>
baseUnitLicences
;
...
...
amos-boot-system-tzs/amos-boot-module-jyjc/amos-boot-module-jyjc-api/src/main/resources/mapper/JyjcInspectionApplicationMapper.xml
View file @
e60b949a
...
@@ -24,7 +24,9 @@
...
@@ -24,7 +24,9 @@
tbei.use_unit AS inspectionUnitName,
tbei.use_unit AS inspectionUnitName,
tzjia.status,
tzjia.status,
cdd2.NAME AS statusName,
cdd2.NAME AS statusName,
tzjia.next_execute_ids as nextExecuteIds
tzjia.next_execute_ids as nextExecuteIds,
tzjia.promoter,
tzjia.create_user_id
FROM
FROM
tz_jyjc_inspection_application AS tzjia
tz_jyjc_inspection_application AS tzjia
LEFT JOIN tz_base_enterprise_info tbei ON tbei.use_code = tzjia.application_unit_code
LEFT JOIN tz_base_enterprise_info tbei ON tbei.use_code = tzjia.application_unit_code
...
@@ -36,7 +38,7 @@
...
@@ -36,7 +38,7 @@
LEFT JOIN cb_data_dictionary cdd3 ON cdd3.code = tzjia.inspection_type
LEFT JOIN cb_data_dictionary cdd3 ON cdd3.code = tzjia.inspection_type
<where>
<where>
<if
test=
" applicationNo != null and applicationNo != ''"
>
<if
test=
" applicationNo != null and applicationNo != ''"
>
and application_no like concat('%',#{applicationNo}
.
'%')
and application_no like concat('%',#{applicationNo}
,
'%')
</if>
</if>
<if
test=
"inspectionClassify != null and inspectionClassify != ''"
>
<if
test=
"inspectionClassify != null and inspectionClassify != ''"
>
and inspection_classify = #{inspectionClassify}
and inspection_classify = #{inspectionClassify}
...
@@ -63,7 +65,7 @@
...
@@ -63,7 +65,7 @@
and accept_date = #{acceptDate}
and accept_date = #{acceptDate}
</if>
</if>
<if
test=
"inspectionChargePerson != null and inspectionChargePerson != ''"
>
<if
test=
"inspectionChargePerson != null and inspectionChargePerson != ''"
>
and inspection_charge_person like concat('%',#{inspectionChargePerson}
.
'%')
and inspection_charge_person like concat('%',#{inspectionChargePerson}
,
'%')
</if>
</if>
<if
test=
"status != null and status != ''"
>
<if
test=
"status != null and status != ''"
>
and status = #{status}
and status = #{status}
...
@@ -124,4 +126,9 @@
...
@@ -124,4 +126,9 @@
WHERE
WHERE
tzjia.sequence_nbr = #{sequenceNbr}
tzjia.sequence_nbr = #{sequenceNbr}
</select>
</select>
<update
id=
"updatePromoter"
>
UPDATE tz_jyjc_inspection_application set promoter = null
where sequence_nbr = #{id}
</update>
</mapper>
</mapper>
amos-boot-system-tzs/amos-boot-module-jyjc/amos-boot-module-jyjc-api/src/main/resources/mapper/JyjcOpeningApplicationMapper.xml
View file @
e60b949a
...
@@ -25,7 +25,9 @@
...
@@ -25,7 +25,9 @@
unit_code_name,
unit_code_name,
status_name,
status_name,
workflow_active_key,
workflow_active_key,
next_execute_ids
next_execute_ids,
promoter,
create_user_id
from tz_jyjc_opening_application
from tz_jyjc_opening_application
<where>
<where>
<if
test=
"jyjcOpeningApplicationRequstDto.applicationSeq != '' and jyjcOpeningApplicationRequstDto.applicationSeq != null"
>
<if
test=
"jyjcOpeningApplicationRequstDto.applicationSeq != '' and jyjcOpeningApplicationRequstDto.applicationSeq != null"
>
...
@@ -50,4 +52,9 @@
...
@@ -50,4 +52,9 @@
order by sequence_nbr desc
order by sequence_nbr desc
</select>
</select>
<update
id=
"updatePromoter"
>
UPDATE tz_jyjc_opening_application set promoter = null
where sequence_nbr = #{id}
</update>
</mapper>
</mapper>
amos-boot-system-tzs/amos-boot-module-jyjc/amos-boot-module-jyjc-biz/src/main/java/com/yeejoin/amos/boot/module/jyjc/biz/controller/JyjcOpeningApplicationController.java
View file @
e60b949a
...
@@ -100,8 +100,8 @@ public class JyjcOpeningApplicationController extends BaseController {
...
@@ -100,8 +100,8 @@ public class JyjcOpeningApplicationController extends BaseController {
@ApiOperation
(
httpMethod
=
"DELETE"
,
value
=
"根据sequenceNbr删除"
,
notes
=
"根据sequenceNbr删除"
)
@ApiOperation
(
httpMethod
=
"DELETE"
,
value
=
"根据sequenceNbr删除"
,
notes
=
"根据sequenceNbr删除"
)
public
ResponseModel
<
Boolean
>
deleteBySequenceNbr
(
HttpServletRequest
request
,
@PathVariable
(
value
=
"sequenceNbr"
)
Long
sequenceNbr
){
public
ResponseModel
<
Boolean
>
deleteBySequenceNbr
(
HttpServletRequest
request
,
@PathVariable
(
value
=
"sequenceNbr"
)
Long
sequenceNbr
){
JyjcOpeningApplication
jyjcOpeningApplication
=
jyjcOpeningApplicationServiceImpl
.
getById
(
sequenceNbr
);
JyjcOpeningApplication
jyjcOpeningApplication
=
jyjcOpeningApplicationServiceImpl
.
getById
(
sequenceNbr
);
List
<
String
>
status
=
Arrays
.
asList
(
String
.
valueOf
(
FlowStatusEnum
.
SUBMITTED
.
getCode
()),
String
.
valueOf
(
FlowStatusEnum
.
TO_BE_FINISHED
.
getCode
()));
List
<
String
>
status
=
Arrays
.
asList
(
String
.
valueOf
(
FlowStatusEnum
.
SUBMITTED
.
getCode
()),
String
.
valueOf
(
FlowStatusEnum
.
TO_BE_PROCESSED
.
getCode
()),
String
.
valueOf
(
FlowStatusEnum
.
TO_BE_FINISHED
.
getCode
()));
if
(
!
status
.
contains
(
jyjcOpeningApplication
.
getStatus
()))
{
if
(
status
.
contains
(
jyjcOpeningApplication
.
getStatus
()))
{
throw
new
BadRequest
(
"除撤回跟驳回的流程之外其余流程不可删除!"
);
throw
new
BadRequest
(
"除撤回跟驳回的流程之外其余流程不可删除!"
);
}
}
return
ResponseHelper
.
buildResponse
(
jyjcOpeningApplicationServiceImpl
.
removeById
(
sequenceNbr
));
return
ResponseHelper
.
buildResponse
(
jyjcOpeningApplicationServiceImpl
.
removeById
(
sequenceNbr
));
...
...
amos-boot-system-tzs/amos-boot-module-jyjc/amos-boot-module-jyjc-biz/src/main/java/com/yeejoin/amos/boot/module/jyjc/biz/service/impl/JyjcInspectionApplicationServiceImpl.java
View file @
e60b949a
...
@@ -7,8 +7,12 @@ import com.alibaba.fastjson.JSON;
...
@@ -7,8 +7,12 @@ import com.alibaba.fastjson.JSON;
import
com.alibaba.fastjson.JSONArray
;
import
com.alibaba.fastjson.JSONArray
;
import
com.alibaba.fastjson.JSONObject
;
import
com.alibaba.fastjson.JSONObject
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
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.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.yeejoin.amos.boot.biz.common.bo.ReginParams
;
import
com.yeejoin.amos.boot.biz.common.enums.WorkFlowEnum
;
import
com.yeejoin.amos.boot.biz.common.enums.WorkFlowEnum
;
import
com.yeejoin.amos.boot.biz.common.utils.RedisKey
;
import
com.yeejoin.amos.boot.biz.common.utils.RedisUtils
;
import
com.yeejoin.amos.boot.biz.common.workflow.feign.WorkflowFeignService
;
import
com.yeejoin.amos.boot.biz.common.workflow.feign.WorkflowFeignService
;
import
com.yeejoin.amos.boot.module.common.api.dto.AttachmentDto
;
import
com.yeejoin.amos.boot.module.common.api.dto.AttachmentDto
;
import
com.yeejoin.amos.boot.module.jyjc.api.entity.*
;
import
com.yeejoin.amos.boot.module.jyjc.api.entity.*
;
...
@@ -36,6 +40,7 @@ import org.springframework.beans.factory.annotation.Autowired;
...
@@ -36,6 +40,7 @@ import org.springframework.beans.factory.annotation.Autowired;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.typroject.tyboot.core.foundation.context.RequestContext
;
import
org.typroject.tyboot.core.foundation.utils.ValidationUtil
;
import
org.typroject.tyboot.core.foundation.utils.ValidationUtil
;
import
org.typroject.tyboot.core.rdbms.service.BaseService
;
import
org.typroject.tyboot.core.rdbms.service.BaseService
;
import
org.typroject.tyboot.core.restful.exception.instance.BadRequest
;
import
org.typroject.tyboot.core.restful.exception.instance.BadRequest
;
...
@@ -85,9 +90,11 @@ public class JyjcInspectionApplicationServiceImpl extends BaseService<JyjcInspec
...
@@ -85,9 +90,11 @@ public class JyjcInspectionApplicationServiceImpl extends BaseService<JyjcInspec
@Autowired
@Autowired
JgFeignClient
jgFeignClient
;
JgFeignClient
jgFeignClient
;
@Autowired
private
RedisUtils
redisUtils
;
public
JyjcInspectionApplicationModel
save
(
@RequestBody
JSONObject
obj
)
{
public
JyjcInspectionApplicationModel
save
(
@RequestBody
JSONObject
obj
)
{
ReginParams
reginParams
=
JSONObject
.
parseObject
(
redisUtils
.
get
(
RedisKey
.
buildReginKey
(
RequestContext
.
getExeUserId
(),
RequestContext
.
getToken
())).
toString
(),
ReginParams
.
class
);
//开启报检流程工作流
//开启报检流程工作流
...
@@ -108,6 +115,17 @@ public class JyjcInspectionApplicationServiceImpl extends BaseService<JyjcInspec
...
@@ -108,6 +115,17 @@ public class JyjcInspectionApplicationServiceImpl extends BaseService<JyjcInspec
model
.
setProcessInstanceId
(
id
);
model
.
setProcessInstanceId
(
id
);
execueFlow
(
MapBuilder
.<
String
,
Object
>
create
().
put
(
"op"
,
"0"
).
put
(
"instanceId"
,
id
).
put
(
"comments"
,
""
).
build
());
execueFlow
(
MapBuilder
.<
String
,
Object
>
create
().
put
(
"op"
,
"0"
).
put
(
"instanceId"
,
id
).
put
(
"comments"
,
""
).
build
());
// region 获取下一个流程节点的数据
Map
<
String
,
Object
>
nextNodeInfo
=
workflowHelper
.
getNextWorkflowNode
(
model
.
getProcessInstanceId
());
String
role
=
(
String
)
nextNodeInfo
.
get
(
"role"
);
model
.
setNextExecuteIds
(
role
);
if
(!
org
.
springframework
.
util
.
ObjectUtils
.
isEmpty
(
model
.
getWorkflowRole
()))
{
model
.
setWorkflowRole
(
model
.
getWorkflowRole
()
+
","
+
role
);
}
else
{
model
.
setWorkflowRole
(
role
);
}
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
e
.
printStackTrace
();
}
}
...
@@ -128,15 +146,8 @@ public class JyjcInspectionApplicationServiceImpl extends BaseService<JyjcInspec
...
@@ -128,15 +146,8 @@ public class JyjcInspectionApplicationServiceImpl extends BaseService<JyjcInspec
model
.
setApplicationNo
(
codes
.
get
(
0
));
model
.
setApplicationNo
(
codes
.
get
(
0
));
model
.
setApplicationDate
(
new
Date
());
model
.
setApplicationDate
(
new
Date
());
// region 获取下一个流程节点的数据
Map
<
String
,
Object
>
nextNodeInfo
=
workflowHelper
.
getNextWorkflowNode
(
model
.
getProcessInstanceId
());
model
.
setPromoter
(
reginParams
.
getUserModel
().
getUserId
());
String
role
=
(
String
)
nextNodeInfo
.
get
(
"role"
);
model
.
setNextExecuteIds
(
role
);
if
(!
org
.
springframework
.
util
.
ObjectUtils
.
isEmpty
(
model
.
getWorkflowRole
()))
{
model
.
setWorkflowRole
(
model
.
getWorkflowRole
()
+
","
+
role
);
}
else
{
model
.
setWorkflowRole
(
role
);
}
List
<
JyjcInspectionApplicationEquip
>
equipInfos
=
new
ArrayList
<>();
List
<
JyjcInspectionApplicationEquip
>
equipInfos
=
new
ArrayList
<>();
if
(
null
!=
model
.
getEquip
()
&&
model
.
getEquip
().
size
()
>
0
)
{
if
(
null
!=
model
.
getEquip
()
&&
model
.
getEquip
().
size
()
>
0
)
{
...
@@ -151,9 +162,18 @@ public class JyjcInspectionApplicationServiceImpl extends BaseService<JyjcInspec
...
@@ -151,9 +162,18 @@ public class JyjcInspectionApplicationServiceImpl extends BaseService<JyjcInspec
equipInfos
.
add
(
equipInfo
);
equipInfos
.
add
(
equipInfo
);
}
}
}
}
model
.
setCreateUserId
(
reginParams
.
getUserModel
().
getUserId
());
model
.
setNumberOfEquip
(
equipInfos
.
size
());
model
.
setNumberOfEquip
(
equipInfos
.
size
());
// endregion
// endregion
model
=
this
.
createWithModel
(
model
);
if
(
null
==
model
.
getSequenceNbr
()){
model
=
this
.
createWithModel
(
model
);
}
else
{
model
=
this
.
updateWithModel
(
model
);
}
//保存报检装备监管码
//保存报检装备监管码
for
(
JyjcInspectionApplicationEquip
equipInfo
:
equipInfos
)
{
for
(
JyjcInspectionApplicationEquip
equipInfo
:
equipInfos
)
{
equipInfo
.
setApplicationSeq
(
model
.
getSequenceNbr
());
equipInfo
.
setApplicationSeq
(
model
.
getSequenceNbr
());
...
@@ -219,6 +239,7 @@ public class JyjcInspectionApplicationServiceImpl extends BaseService<JyjcInspec
...
@@ -219,6 +239,7 @@ public class JyjcInspectionApplicationServiceImpl extends BaseService<JyjcInspec
Map
<
String
,
Object
>
nextNodeInfo
=
workflowHelper
.
getNextWorkflowNode
(
model
.
getProcessInstanceId
());
Map
<
String
,
Object
>
nextNodeInfo
=
workflowHelper
.
getNextWorkflowNode
(
model
.
getProcessInstanceId
());
String
role
=
(
String
)
nextNodeInfo
.
get
(
"role"
);
String
role
=
(
String
)
nextNodeInfo
.
get
(
"role"
);
model
.
setNextExecuteIds
(
role
);
model
.
setNextExecuteIds
(
role
);
model
.
setPromoter
(
reginParams
.
getUserModel
().
getUserId
());
if
(!
org
.
springframework
.
util
.
ObjectUtils
.
isEmpty
(
model
.
getWorkflowRole
()))
{
if
(!
org
.
springframework
.
util
.
ObjectUtils
.
isEmpty
(
model
.
getWorkflowRole
()))
{
model
.
setWorkflowRole
(
model
.
getWorkflowRole
()
+
","
+
role
);
model
.
setWorkflowRole
(
model
.
getWorkflowRole
()
+
","
+
role
);
}
else
{
}
else
{
...
@@ -334,7 +355,9 @@ public class JyjcInspectionApplicationServiceImpl extends BaseService<JyjcInspec
...
@@ -334,7 +355,9 @@ public class JyjcInspectionApplicationServiceImpl extends BaseService<JyjcInspec
Long
sequenceNbr
=
Long
.
parseLong
(
params
.
get
(
"sequenceNbr"
)
+
""
);
Long
sequenceNbr
=
Long
.
parseLong
(
params
.
get
(
"sequenceNbr"
)
+
""
);
JyjcInspectionApplicationModel
inspectionApplicationModel
=
this
.
queryBySeq
(
sequenceNbr
);
JyjcInspectionApplicationModel
inspectionApplicationModel
=
this
.
queryBySeq
(
sequenceNbr
);
params
.
put
(
"status"
,
FlowStatusEnum
.
TO_BE_FINISHED
.
getCode
()
+
""
);
params
.
put
(
"status"
,
FlowStatusEnum
.
TO_BE_FINISHED
.
getCode
()
+
""
);
updateModelByInstanceId
(
inspectionApplicationModel
.
getProcessInstanceId
(),
params
);
String
op
=
params
.
get
(
"op"
).
toString
();
Boolean
rollBack
=
"1"
.
equals
(
op
)
?
true
:
false
;
updateModelByInstanceId
(
sequenceNbr
,
inspectionApplicationModel
.
getProcessInstanceId
(),
params
,
rollBack
);
List
<
JyjcInspectionApplicationEquipModel
>
applicationEquipModels
=
applicationEquipService
.
listApplicationEquipByApplicationSeq
(
sequenceNbr
);
List
<
JyjcInspectionApplicationEquipModel
>
applicationEquipModels
=
applicationEquipService
.
listApplicationEquipByApplicationSeq
(
sequenceNbr
);
if
(
inspectionApplicationModel
==
null
||
ValidationUtil
.
isEmpty
(
applicationEquipModels
))
{
if
(
inspectionApplicationModel
==
null
||
ValidationUtil
.
isEmpty
(
applicationEquipModels
))
{
log
.
warn
(
"JyjcInspectionApplicationModel Not Found!"
);
log
.
warn
(
"JyjcInspectionApplicationModel Not Found!"
);
...
@@ -377,9 +400,12 @@ public class JyjcInspectionApplicationServiceImpl extends BaseService<JyjcInspec
...
@@ -377,9 +400,12 @@ public class JyjcInspectionApplicationServiceImpl extends BaseService<JyjcInspec
*/
*/
public
Boolean
doReject
(
Map
<
String
,
Object
>
params
)
{
public
Boolean
doReject
(
Map
<
String
,
Object
>
params
)
{
execueFlow
(
params
);
execueFlow
(
params
);
String
op
=
params
.
get
(
"op"
).
toString
();
Long
sequenceNbr
=
Long
.
parseLong
(
params
.
get
(
"sequenceNbr"
)
+
""
);
String
instanceId
=
Optional
.
ofNullable
(
params
.
get
(
"instanceId"
)).
orElse
(
""
).
toString
();
String
instanceId
=
Optional
.
ofNullable
(
params
.
get
(
"instanceId"
)).
orElse
(
""
).
toString
();
params
.
put
(
"status"
,
FlowStatusEnum
.
TO_BE_SUBMITTED
.
getCode
()
+
""
);
params
.
put
(
"status"
,
FlowStatusEnum
.
REJECTED
.
getCode
()
+
""
);
updateModelByInstanceId
(
instanceId
,
params
);
Boolean
rollBack
=
"1"
.
equals
(
op
)
?
true
:
false
;
updateModelByInstanceId
(
sequenceNbr
,
instanceId
,
params
,
rollBack
);
return
true
;
return
true
;
}
}
...
@@ -431,7 +457,7 @@ public class JyjcInspectionApplicationServiceImpl extends BaseService<JyjcInspec
...
@@ -431,7 +457,7 @@ public class JyjcInspectionApplicationServiceImpl extends BaseService<JyjcInspec
log
.
error
(
"撤回工作流错误, => {}"
,
jsonObject
);
log
.
error
(
"撤回工作流错误, => {}"
,
jsonObject
);
return
false
;
return
false
;
}
}
updateModelByInstanceId
(
inspectionApplicationModel
.
get
ProcessInstanceId
(),
MapBuilder
.<
String
,
Object
>
create
().
put
(
"status"
,
FlowStatusEnum
.
TO_BE_SUBMITTED
.
getCode
()
+
""
).
build
()
);
updateModelByInstanceId
(
inspectionApplicationModel
.
get
SequenceNbr
(),
inspectionApplicationModel
.
getProcessInstanceId
(),
MapBuilder
.<
String
,
Object
>
create
().
put
(
"status"
,
FlowStatusEnum
.
ROLLBACK
.
getCode
()
+
""
).
build
(),
true
);
return
true
;
return
true
;
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
e
.
printStackTrace
();
...
@@ -440,8 +466,12 @@ public class JyjcInspectionApplicationServiceImpl extends BaseService<JyjcInspec
...
@@ -440,8 +466,12 @@ public class JyjcInspectionApplicationServiceImpl extends BaseService<JyjcInspec
}
}
}
}
public
void
updateModelByInstanceId
(
String
instanceId
,
Map
<
String
,
Object
>
params
)
{
public
void
updateModelByInstanceId
(
Long
sequenceNbr
,
String
instanceId
,
Map
<
String
,
Object
>
params
,
Boolean
rollBack
)
{
JyjcInspectionApplication
entity
=
this
.
lambdaQuery
().
eq
(
JyjcInspectionApplication:
:
getProcessInstanceId
,
instanceId
).
one
();
ReginParams
reginParams
=
JSONObject
.
parseObject
(
redisUtils
.
get
(
RedisKey
.
buildReginKey
(
RequestContext
.
getExeUserId
(),
RequestContext
.
getToken
())).
toString
(),
ReginParams
.
class
);
LambdaQueryWrapper
<
JyjcInspectionApplication
>
lambda
=
new
QueryWrapper
<
JyjcInspectionApplication
>().
lambda
();
lambda
.
eq
(
JyjcInspectionApplication:
:
getSequenceNbr
,
sequenceNbr
);
JyjcInspectionApplication
entity
=
this
.
getBaseMapper
().
selectOne
(
lambda
);
// JyjcInspectionApplication entity = this.lambdaQuery().eq(JyjcInspectionApplication::getProcessInstanceId, instanceId).one();
if
(
entity
==
null
)
{
if
(
entity
==
null
)
{
return
;
return
;
}
}
...
@@ -461,6 +491,7 @@ public class JyjcInspectionApplicationServiceImpl extends BaseService<JyjcInspec
...
@@ -461,6 +491,7 @@ public class JyjcInspectionApplicationServiceImpl extends BaseService<JyjcInspec
Map
<
String
,
Object
>
nextNodeInfo
=
workflowHelper
.
getNextWorkflowNode
(
instanceId
);
Map
<
String
,
Object
>
nextNodeInfo
=
workflowHelper
.
getNextWorkflowNode
(
instanceId
);
String
role
=
(
String
)
nextNodeInfo
.
get
(
"role"
);
String
role
=
(
String
)
nextNodeInfo
.
get
(
"role"
);
entity
.
setNextExecuteIds
(
role
);
entity
.
setNextExecuteIds
(
role
);
entity
.
setPromoter
(
reginParams
.
getUserModel
().
getUserId
());
if
(!
org
.
springframework
.
util
.
ObjectUtils
.
isEmpty
(
entity
.
getWorkflowRole
()))
{
if
(!
org
.
springframework
.
util
.
ObjectUtils
.
isEmpty
(
entity
.
getWorkflowRole
()))
{
entity
.
setWorkflowRole
(
entity
.
getWorkflowRole
()
+
","
+
role
);
entity
.
setWorkflowRole
(
entity
.
getWorkflowRole
()
+
","
+
role
);
}
else
{
}
else
{
...
@@ -469,5 +500,8 @@ public class JyjcInspectionApplicationServiceImpl extends BaseService<JyjcInspec
...
@@ -469,5 +500,8 @@ public class JyjcInspectionApplicationServiceImpl extends BaseService<JyjcInspec
entity
.
setStatus
(
status
);
entity
.
setStatus
(
status
);
entity
.
setAcceptDate
(
new
Date
());
entity
.
setAcceptDate
(
new
Date
());
this
.
updateById
(
entity
);
this
.
updateById
(
entity
);
if
(
rollBack
)
{
this
.
getBaseMapper
().
updatePromoter
(
entity
.
getSequenceNbr
());
}
}
}
}
}
\ No newline at end of file
amos-boot-system-tzs/amos-boot-module-jyjc/amos-boot-module-jyjc-biz/src/main/java/com/yeejoin/amos/boot/module/jyjc/biz/service/impl/JyjcOpeningApplicationServiceImpl.java
View file @
e60b949a
This diff is collapsed.
Click to expand it.
amos-boot-system-tzs/amos-boot-module-ymt/amos-boot-module-ymt-api/src/main/java/com/yeejoin/amos/boot/module/ymt/api/enums/ApplicationFormTypeEnum.java
View file @
e60b949a
...
@@ -26,6 +26,7 @@ public enum ApplicationFormTypeEnum {
...
@@ -26,6 +26,7 @@ public enum ApplicationFormTypeEnum {
DWBG
(
"DWBG"
),
//单位变更登记
DWBG
(
"DWBG"
),
//单位变更登记
JY
(
"JY"
),
JY
(
"JY"
),
JG
(
"JG"
),
// 检验结果
JG
(
"JG"
),
// 检验结果
SBZX
(
"SBZX"
),
//电梯(设备)注销
;
;
/**
/**
...
...
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