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
9a5e21fe
Commit
9a5e21fe
authored
Jan 12, 2024
by
王果
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
维保备案bug修改
parent
29edc511
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
8 deletions
+13
-8
CommonServiceImpl.java
...os/boot/module/jg/biz/service/impl/CommonServiceImpl.java
+2
-1
JgMaintenanceContractServiceImpl.java
...jg/biz/service/impl/JgMaintenanceContractServiceImpl.java
+7
-3
urlInfo.json
...s-boot-module-jg-biz/src/main/resources/json/urlInfo.json
+4
-4
No files found.
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/CommonServiceImpl.java
View file @
9a5e21fe
...
@@ -633,7 +633,8 @@ public class CommonServiceImpl implements ICommonService {
...
@@ -633,7 +633,8 @@ public class CommonServiceImpl implements ICommonService {
}
}
List
<
Map
>
urlList
=
JsonUtils
.
getResourceList
(
urlInfo
);
List
<
Map
>
urlList
=
JsonUtils
.
getResourceList
(
urlInfo
);
for
(
Map
map
:
urlList
)
{
for
(
Map
map
:
urlList
)
{
if
(
map
.
get
(
"type"
).
equals
(
BusinessTypeEnum
.
JG_MAINTENANCE_RECORD
.
getCode
())
&&
obj
.
getTaskType
().
equals
(
BusinessTypeEnum
.
JG_MAINTENANCE_RECORD
.
getCode
())
&&
!
obj
.
getFlowStatus
().
equals
(
"16723"
)
&&
map
.
get
(
"pageType"
).
equals
(
"edit"
))
{
if
(
map
.
get
(
"type"
).
equals
(
BusinessTypeEnum
.
JG_MAINTENANCE_RECORD
.
getCode
())
&&
obj
.
getTaskType
().
equals
(
BusinessTypeEnum
.
JG_MAINTENANCE_RECORD
.
getCode
())
&&
!
obj
.
getFlowStatus
().
toString
().
equals
(
"16723"
)
&&
map
.
get
(
"pageType"
).
equals
(
"edit"
))
{
model
.
setRoutePath
(
map
.
get
(
"url"
).
toString
().
replace
(
"{roleIds}"
,
obj
.
getNextExecuteUser
())
+
urlParams
+
"&nextExecuteUserIds="
+
model
.
getExecuteUserIds
());
model
.
setRoutePath
(
map
.
get
(
"url"
).
toString
().
replace
(
"{roleIds}"
,
obj
.
getNextExecuteUser
())
+
urlParams
+
"&nextExecuteUserIds="
+
model
.
getExecuteUserIds
());
break
;
break
;
}
else
if
(
map
.
get
(
"type"
).
equals
(
obj
.
getTaskType
())
&&
map
.
get
(
"pageType"
).
equals
(
"look"
))
{
}
else
if
(
map
.
get
(
"type"
).
equals
(
obj
.
getTaskType
())
&&
map
.
get
(
"pageType"
).
equals
(
"look"
))
{
...
...
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/java/com/yeejoin/amos/boot/module/jg/biz/service/impl/JgMaintenanceContractServiceImpl.java
View file @
9a5e21fe
...
@@ -240,6 +240,8 @@ public class JgMaintenanceContractServiceImpl extends BaseService<JgMaintenanceC
...
@@ -240,6 +240,8 @@ public class JgMaintenanceContractServiceImpl extends BaseService<JgMaintenanceC
jsonObject
.
put
(
"nextTaskId"
,
contract
.
getNextTaskId
());
jsonObject
.
put
(
"nextTaskId"
,
contract
.
getNextTaskId
());
jsonObject
.
put
(
"nextExecuteUser"
,
contract
.
getNextExecuteIds
());
jsonObject
.
put
(
"nextExecuteUser"
,
contract
.
getNextExecuteIds
());
jsonObject
.
put
(
"taskType"
,
BusinessTypeEnum
.
JG_MAINTENANCE_RECORD
.
getCode
());
jsonObject
.
put
(
"taskType"
,
BusinessTypeEnum
.
JG_MAINTENANCE_RECORD
.
getCode
());
jsonObject
.
put
(
"flowStatus"
,
this
.
getTaskCodeByName
(
contract
.
getStatus
()));
jsonObject
.
put
(
"flowStatusLabel"
,
contract
.
getStatus
());
commonService
.
rollbackTask
(
instanceId
,
jsonObject
);
commonService
.
rollbackTask
(
instanceId
,
jsonObject
);
}
}
...
@@ -285,9 +287,9 @@ public class JgMaintenanceContractServiceImpl extends BaseService<JgMaintenanceC
...
@@ -285,9 +287,9 @@ public class JgMaintenanceContractServiceImpl extends BaseService<JgMaintenanceC
JgMaintenanceContract
contract
=
new
JgMaintenanceContract
();
JgMaintenanceContract
contract
=
new
JgMaintenanceContract
();
boolean
hasId
=
StringUtils
.
isEmpty
(
contractDto
.
getSequenceNbr
());
//没有id说明是新增
boolean
hasId
=
StringUtils
.
isEmpty
(
contractDto
.
getSequenceNbr
());
//没有id说明是新增
BeanUtils
.
copyProperties
(
contractDto
,
contract
);
BeanUtils
.
copyProperties
(
contractDto
,
contract
);
contract
.
setCreateUserId
(
reginParams
.
getUserModel
().
getUserId
());
contract
.
setCreateUserName
(
reginParams
.
getUserModel
().
getRealName
());
if
(
hasId
)
{
if
(
hasId
)
{
contract
.
setCreateUserId
(
reginParams
.
getUserModel
().
getUserId
());
contract
.
setCreateUserName
(
reginParams
.
getUserModel
().
getRealName
());
contract
.
setStatus
(
SUBMIT_DATA
.
equals
(
submit
)
?
WorkFlowStatusEnum
.
MAIN_SUBMIT
.
getPass
()
:
WorkFlowStatusEnum
.
MAIN_RECEIVE
.
getPass
());
contract
.
setStatus
(
SUBMIT_DATA
.
equals
(
submit
)
?
WorkFlowStatusEnum
.
MAIN_SUBMIT
.
getPass
()
:
WorkFlowStatusEnum
.
MAIN_RECEIVE
.
getPass
());
this
.
save
(
contract
);
this
.
save
(
contract
);
}
else
{
}
else
{
...
@@ -338,6 +340,7 @@ public class JgMaintenanceContractServiceImpl extends BaseService<JgMaintenanceC
...
@@ -338,6 +340,7 @@ public class JgMaintenanceContractServiceImpl extends BaseService<JgMaintenanceC
contract
.
setInstanceId
(
instanceId
);
contract
.
setInstanceId
(
instanceId
);
contract
.
setNextExecuteIds
(
String
.
join
(
","
,
roleListNext
));
contract
.
setNextExecuteIds
(
String
.
join
(
","
,
roleListNext
));
contract
.
setNextTaskId
(
nextTaskId
);
contract
.
setNextTaskId
(
nextTaskId
);
contract
.
setStatus
(
String
.
valueOf
(
WorkFlowStatusEnum
.
MAIN_RECEIVE
.
getPass
()));
contract
.
setNextExecuteUserIds
(
nextUserIds
);
contract
.
setNextExecuteUserIds
(
nextUserIds
);
// 创建待办
// 创建待办
JgMaintenanceContract
bean
=
new
JgMaintenanceContract
();
JgMaintenanceContract
bean
=
new
JgMaintenanceContract
();
...
@@ -437,7 +440,7 @@ public class JgMaintenanceContractServiceImpl extends BaseService<JgMaintenanceC
...
@@ -437,7 +440,7 @@ public class JgMaintenanceContractServiceImpl extends BaseService<JgMaintenanceC
contract
.
setNextExecuteUserIds
(
""
);
contract
.
setNextExecuteUserIds
(
""
);
contract
.
setApplyDate
(
new
Date
());
contract
.
setApplyDate
(
new
Date
());
contract
.
setStatus
(
taskCode
);
contract
.
setStatus
(
taskCode
);
updateTaskModel
(
contract
,
operate
);
updateTaskModel
(
contract
,
"0"
);
}
}
this
.
getBaseMapper
().
updateById
(
contract
);
this
.
getBaseMapper
().
updateById
(
contract
);
}
}
...
@@ -450,6 +453,7 @@ public class JgMaintenanceContractServiceImpl extends BaseService<JgMaintenanceC
...
@@ -450,6 +453,7 @@ public class JgMaintenanceContractServiceImpl extends BaseService<JgMaintenanceC
params
.
put
(
"taskStatusLabel"
,
flowStatusEnum
.
getName
());
params
.
put
(
"taskStatusLabel"
,
flowStatusEnum
.
getName
());
params
.
put
(
"flowStatus"
,
this
.
getTaskStatusByName
(
contract
.
getStatus
()));
params
.
put
(
"flowStatus"
,
this
.
getTaskStatusByName
(
contract
.
getStatus
()));
params
.
put
(
"flowStatusLabel"
,
contract
.
getStatus
());
params
.
put
(
"flowStatusLabel"
,
contract
.
getStatus
());
params
.
put
(
"model"
,
contract
);
return
commonService
.
updateTaskModelNew
(
params
);
return
commonService
.
updateTaskModelNew
(
params
);
}
}
...
...
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/resources/json/urlInfo.json
View file @
9a5e21fe
...
@@ -55,15 +55,15 @@
...
@@ -55,15 +55,15 @@
},
},
{
{
"type"
:
"106"
,
"type"
:
"106"
,
"pageType"
:
"
look
"
,
"pageType"
:
"
edit
"
,
"name"
:
"维保备案"
,
"name"
:
"维保备案"
,
"url"
:
"/mixuap?appId=1742358052905971713&id=1735612073380966402&roleIds={roleIds}&userId={userId}&pageType=
look
"
"url"
:
"/mixuap?appId=1742358052905971713&id=1735612073380966402&roleIds={roleIds}&userId={userId}&pageType=
edit
"
},
},
{
{
"type"
:
"106"
,
"type"
:
"106"
,
"pageType"
:
"
edit
"
,
"pageType"
:
"
look
"
,
"name"
:
"维保备案"
,
"name"
:
"维保备案"
,
"url"
:
"/mixuap?appId=1742358052905971713&id=1735612073380966402&roleIds={roleIds}&userId={userId}&pageType=
edit
"
"url"
:
"/mixuap?appId=1742358052905971713&id=1735612073380966402&roleIds={roleIds}&userId={userId}&pageType=
look
"
},
},
{
{
"type"
:
"107"
,
"type"
:
"107"
,
...
...
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