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
65c03d01
Commit
65c03d01
authored
Jan 17, 2024
by
LiuLin
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/develop_tzs_register' into develop_tzs_register
parents
c46c4aef
28abc6f8
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
161 additions
and
28 deletions
+161
-28
JgEnableDisableMapper.xml
...g-api/src/main/resources/mapper/JgEnableDisableMapper.xml
+2
-0
JgMaintainNoticeMapper.xml
...-api/src/main/resources/mapper/JgMaintainNoticeMapper.xml
+1
-1
JgScrapCancelMapper.xml
...-jg-api/src/main/resources/mapper/JgScrapCancelMapper.xml
+1
-1
JgChangeRegistrationUnitServiceImpl.java
...biz/service/impl/JgChangeRegistrationUnitServiceImpl.java
+6
-3
JgEnableDisableServiceImpl.java
...odule/jg/biz/service/impl/JgEnableDisableServiceImpl.java
+53
-9
JgInstallationNoticeServiceImpl.java
.../jg/biz/service/impl/JgInstallationNoticeServiceImpl.java
+1
-0
JgMaintainNoticeServiceImpl.java
...dule/jg/biz/service/impl/JgMaintainNoticeServiceImpl.java
+49
-14
JgScrapCancelServiceImpl.java
.../module/jg/biz/service/impl/JgScrapCancelServiceImpl.java
+29
-0
JgTransferNoticeServiceImpl.java
...dule/jg/biz/service/impl/JgTransferNoticeServiceImpl.java
+1
-0
urlInfo.json
...s-boot-module-jg-biz/src/main/resources/json/urlInfo.json
+18
-0
No files found.
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/resources/mapper/JgEnableDisableMapper.xml
View file @
65c03d01
...
...
@@ -64,6 +64,8 @@
concat(use."PROVINCE_NAME", use."CITY_NAME", use."COUNTY_NAME", use."ADDRESS",
use.STREET_NAME) as fullAddress,
jri.EQU_CODE as equCode,
jed.audit_status as auditStatus,
jed.apply_no as applyNo,
jed.apply_type as applyType,
jed.remark,
use.RECORD as record,
...
...
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/resources/mapper/JgMaintainNoticeMapper.xml
View file @
65c03d01
...
...
@@ -36,7 +36,7 @@
</if>
<if
test=
"type != 'company'"
>
AND isn.instance_id is not null
AND isn.receive_
org
_code = #{orgCode}
AND isn.receive_
company
_code = #{orgCode}
</if>
<if
test=
"type == 'company'"
>
AND isn.install_unit_credit_code = #{orgCode}
...
...
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/resources/mapper/JgScrapCancelMapper.xml
View file @
65c03d01
...
...
@@ -64,8 +64,8 @@
<if
test=
"roleIds != null and dto.type == 'supervision'"
>
<foreach
collection=
'roleIds'
item=
'role'
open=
'and ('
close=
')'
separator=
'or'
>
ur.instance_status like concat('%',#{role},'%')
</foreach>
or ur.create_user_id = #{dto.createUserId}
</foreach>
</if>
<if
test=
"dto.type == 'supervision'"
>
AND ur.receive_org_code = #{orgCode}
...
...
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 @
65c03d01
...
...
@@ -1084,6 +1084,9 @@ public class JgChangeRegistrationUnitServiceImpl extends BaseService<JgChangeReg
TaskModelDto
modelDto
=
new
TaskModelDto
();
BeanUtil
.
copyProperties
(
taskV2Model
,
modelDto
);
modelDto
.
setNextExecuteUser
(
jgChangeRegistrationName
.
getNextExecutorIds
());
if
(
jgChangeRegistrationName
.
getStatus
().
equals
(
WorkFlowStatusEnum
.
UNIT_RENAME_SUBMIT
.
getReject
())){
modelDto
.
setPageType
(
"edit"
);
}
TaskMessageDto
obj
=
new
TaskMessageDto
();
obj
.
setInstanceId
(
jgChangeRegistrationName
.
getInstanceId
());
obj
.
setStatus
(
jgChangeRegistrationName
.
getStatus
());
...
...
@@ -1122,9 +1125,9 @@ public class JgChangeRegistrationUnitServiceImpl extends BaseService<JgChangeReg
// 执行通过节点,单位code为接收机构单位信息
return
jgChangeRegistrationName
.
getReceiveOrgCode
();
}
if
(
jgChangeRegistrationName
.
getStatus
().
equals
(
WorkFlowStatusEnum
.
UNIT_RENAME_
RECEIVE
.
getPass
())
||
jgChangeRegistrationName
.
getStatus
().
equals
(
WorkFlowStatusEnum
.
UNIT_RENAME_
RECEIVE
.
getReject
())
||
jgChangeRegistrationName
.
getStatus
().
equals
(
WorkFlowStatusEnum
.
UNIT_RENAME_
RECEIVE
.
getRollBack
())){
if
(
jgChangeRegistrationName
.
getStatus
().
equals
(
WorkFlowStatusEnum
.
UNIT_RENAME_
SUBMIT
.
getPass
())
||
jgChangeRegistrationName
.
getStatus
().
equals
(
WorkFlowStatusEnum
.
UNIT_RENAME_
SUBMIT
.
getReject
())
||
jgChangeRegistrationName
.
getStatus
().
equals
(
WorkFlowStatusEnum
.
UNIT_RENAME_
SUBMIT
.
getRollBack
())){
// 驳回且当前节点为一键节点时,单位code为发起人单位信息
return
jgChangeRegistrationName
.
getUseUnitCreditCode
();
}
...
...
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 @
65c03d01
This diff is collapsed.
Click to expand it.
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/java/com/yeejoin/amos/boot/module/jg/biz/service/impl/JgInstallationNoticeServiceImpl.java
View file @
65c03d01
...
...
@@ -252,6 +252,7 @@ public class JgInstallationNoticeServiceImpl extends BaseService<JgInstallationN
notice
.
setNextExecuteIds
(
String
.
join
(
","
,
workflowResultDto
.
getNextExecutorRoleIds
()));
notice
.
setNoticeStatus
(
String
.
valueOf
(
FlowStatusEnum
.
TO_BE_PROCESSED
.
getCode
()));
notice
.
setNextTaskId
(
workflowResultDto
.
getNextTaskId
());
notice
.
setInstanceId
(
workflowResultDto
.
getInstanceId
());
this
.
updateById
(
notice
);
// 如果为保存并提交,则创建代办
buildTask
(
Collections
.
singletonList
(
notice
),
Collections
.
singletonList
(
workflowResultDto
),
Boolean
.
TRUE
);
...
...
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 @
65c03d01
This diff is collapsed.
Click to expand it.
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/java/com/yeejoin/amos/boot/module/jg/biz/service/impl/JgScrapCancelServiceImpl.java
View file @
65c03d01
...
...
@@ -463,6 +463,7 @@ public class JgScrapCancelServiceImpl extends BaseService<JgScrapCancelDto, JgSc
TaskMessageDto
taskMessageDto
=
new
TaskMessageDto
();
BeanUtils
.
copyProperties
(
jgScrapCancelDto
,
taskMessageDto
);
modelDto
.
setModel
(
taskMessageDto
);
modelDto
.
setPageType
(
this
.
getPageTypeForReject
(
operate
,
jgScrapCancelDto
.
getAuditStatus
()));
commonService
.
buildTaskModel
(
Collections
.
singletonList
(
modelDto
));
}
...
...
@@ -470,6 +471,21 @@ public class JgScrapCancelServiceImpl extends BaseService<JgScrapCancelDto, JgSc
return
commonService
.
getDictionaryCodeByName
(
auditStatus
);
}
private
String
getPageTypeForReject
(
String
operate
,
String
auditStatus
)
{
// 驳回
if
(
"1"
.
equals
(
operate
))
{
// 且驳回到的节点为使用单位提交 则可编辑
if
(
WorkFlowStatusEnum
.
CANCEL_SUBMIT
.
getPass
().
equals
(
auditStatus
)
||
WorkFlowStatusEnum
.
CANCEL_SUBMIT
.
getReject
().
equals
(
auditStatus
)
||
WorkFlowStatusEnum
.
CANCEL_SUBMIT
.
getRollBack
().
equals
(
auditStatus
)
)
{
return
"edit"
;
}
return
"look"
;
}
return
"look"
;
}
private
TaskV2Model
updateTaskModel
(
JgScrapCancelDto
jgScrapCancelDto
,
String
operate
)
{
Map
<
String
,
Object
>
params
=
new
HashMap
<>();
FlowStatusEnum
flowStatusEnum
=
this
.
getTaskStatus
(
operate
);
...
...
@@ -557,6 +573,8 @@ public class JgScrapCancelServiceImpl extends BaseService<JgScrapCancelDto, JgSc
jsonObject
.
put
(
"taskType"
,
businessTypeJudgment
(
jgScrapCancel
.
getCancelType
()).
getCode
());
jsonObject
.
put
(
"flowStatus"
,
this
.
getTaskCodeByName
(
jgScrapCancel
.
getAuditStatus
()));
jsonObject
.
put
(
"flowStatusLabel"
,
jgScrapCancel
.
getAuditStatus
());
// 判断撤回后当前的节点,如果当前节点为提交节点则页面可编辑
jsonObject
.
put
(
"pageType"
,
this
.
getPageTypeByCurrentNode
(
jgScrapCancel
.
getAuditStatus
()));
commonService
.
rollbackTask
(
instanceId
,
jsonObject
);
}
...
...
@@ -564,6 +582,17 @@ public class JgScrapCancelServiceImpl extends BaseService<JgScrapCancelDto, JgSc
return
commonService
.
getDictionaryCodeByName
(
auditStatus
);
}
private
String
getPageTypeByCurrentNode
(
String
auditStatus
)
{
if
(
WorkFlowStatusEnum
.
CANCEL_SUBMIT
.
getPass
().
equals
(
auditStatus
)
||
WorkFlowStatusEnum
.
CANCEL_SUBMIT
.
getReject
().
equals
(
auditStatus
)
||
WorkFlowStatusEnum
.
CANCEL_SUBMIT
.
getRollBack
().
equals
(
auditStatus
)
)
{
return
"edit"
;
}
else
{
return
"look"
;
}
}
@Transactional
public
void
flowExecute
(
Long
id
,
String
instanceId
,
String
operate
,
String
comment
)
{
try
{
...
...
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 @
65c03d01
...
...
@@ -283,6 +283,7 @@ public class JgTransferNoticeServiceImpl extends BaseService<JgTransferNoticeDto
notice
.
setNextExecuteIds
(
String
.
join
(
","
,
workflowResultDto
.
getNextExecutorRoleIds
()));
notice
.
setNoticeStatus
(
String
.
valueOf
(
FlowStatusEnum
.
TO_BE_PROCESSED
.
getCode
()));
notice
.
setNextTaskId
(
workflowResultDto
.
getNextTaskId
());
notice
.
setInstanceId
(
workflowResultDto
.
getInstanceId
());
jgTransferNoticeMapper
.
updateById
(
notice
);
// 如果为保存并提交,则创建代办
buildTask
(
Collections
.
singletonList
(
notice
),
Collections
.
singletonList
(
workflowResultDto
),
Boolean
.
TRUE
);
...
...
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/resources/json/urlInfo.json
View file @
65c03d01
...
...
@@ -49,6 +49,12 @@
},
{
"type"
:
"104"
,
"pageType"
:
"draft"
,
"name"
:
"维修告知"
,
"url"
:
"/mixuap?appId=1742358052905971713&id=1736722439125102594&roleIds={roleIds}&userId={userId}&formType=edit"
},
{
"type"
:
"104"
,
"pageType"
:
"look"
,
"name"
:
"维修告知"
,
"url"
:
"/mixuap?appId=1742358052905971713&id=1736722439125102594&roleIds={roleIds}&userId={userId}&formType=look"
...
...
@@ -181,6 +187,12 @@
},
{
"type"
:
"112-1"
,
"pageType"
:
"draft"
,
"name"
:
"设备启用"
,
"url"
:
"mixuap?appId=1742358052905971713&id=1737383754143395841&roleIds={roleIds}&userId={userId}&formType=edit"
},
{
"type"
:
"112-1"
,
"pageType"
:
"look"
,
"name"
:
"设备启用"
,
"url"
:
"mixuap?appId=1742358052905971713&id=1737383754143395841&roleIds={roleIds}&userId={userId}&formType=look"
...
...
@@ -193,6 +205,12 @@
},
{
"type"
:
"112-2"
,
"pageType"
:
"draft"
,
"name"
:
"设备停用"
,
"url"
:
"mixuap?appId=1742358052905971713&id=1737383754143395841&roleIds={roleIds}&userId={userId}&formType=edit"
},
{
"type"
:
"112-2"
,
"pageType"
:
"look"
,
"name"
:
"设备停用"
,
"url"
:
"mixuap?appId=1742358052905971713&id=1737383754143395841&roleIds={roleIds}&userId={userId}&formType=look"
...
...
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