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
be20a7cb
Commit
be20a7cb
authored
Jul 30, 2025
by
yangyang
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/develop_tzs_register' into develop_tzs_register
parents
fcdcdc2c
8cab5e68
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
55 additions
and
4 deletions
+55
-4
JyjcOpeningApplication.java
...s/boot/module/jyjc/api/entity/JyjcOpeningApplication.java
+9
-2
JyjcOpeningApplicationModel.java
...ot/module/jyjc/api/model/JyjcOpeningApplicationModel.java
+3
-0
JyjcOpeningApplicationServiceImpl.java
...c/biz/service/impl/JyjcOpeningApplicationServiceImpl.java
+43
-2
No files found.
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 @
be20a7cb
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jyjc
.
api
.
entity
;
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jyjc
.
api
.
entity
;
import
com.baomidou.mybatisplus.annotation.FieldFill
;
import
com.baomidou.mybatisplus.annotation.FieldFill
;
import
com.baomidou.mybatisplus.annotation.FieldStrategy
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.baomidou.mybatisplus.extension.handlers.FastjsonTypeHandler
;
import
com.baomidou.mybatisplus.extension.handlers.FastjsonTypeHandler
;
...
@@ -66,7 +67,7 @@ public class JyjcOpeningApplication extends BaseEntity {
...
@@ -66,7 +67,7 @@ public class JyjcOpeningApplication extends BaseEntity {
/**
/**
* 有效期至
* 有效期至
*/
*/
@TableField
(
"expiry_date"
)
@TableField
(
value
=
"expiry_date"
,
updateStrategy
=
FieldStrategy
.
IGNORED
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd"
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd"
)
private
Date
expiryDate
;
private
Date
expiryDate
;
...
@@ -154,6 +155,12 @@ public class JyjcOpeningApplication extends BaseEntity {
...
@@ -154,6 +155,12 @@ public class JyjcOpeningApplication extends BaseEntity {
/**
/**
* 机构分类
* 机构分类
*/
*/
@TableField
(
value
=
"agency_classify"
)
@TableField
(
value
=
"agency_classify"
,
updateStrategy
=
FieldStrategy
.
IGNORED
)
private
String
agencyClassify
;
private
String
agencyClassify
;
/**
* 原始检测区域编码
*/
@TableField
(
value
=
"ori_detection_region"
,
typeHandler
=
FastjsonTypeHandler
.
class
)
private
List
<
String
>
oriDetectionRegion
;
}
}
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 @
be20a7cb
...
@@ -168,4 +168,7 @@ public class JyjcOpeningApplicationModel extends BaseModel {
...
@@ -168,4 +168,7 @@ public class JyjcOpeningApplicationModel extends BaseModel {
@ApiModelProperty
(
value
=
"登录单位类型"
)
@ApiModelProperty
(
value
=
"登录单位类型"
)
private
String
companyLevel
;
private
String
companyLevel
;
@ApiModelProperty
(
value
=
"检测区域编码"
)
private
List
<
String
>
oriDetectionRegion
;
}
}
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 @
be20a7cb
...
@@ -171,9 +171,10 @@ public class JyjcOpeningApplicationServiceImpl extends BaseService<JyjcOpeningAp
...
@@ -171,9 +171,10 @@ public class JyjcOpeningApplicationServiceImpl extends BaseService<JyjcOpeningAp
@GlobalTransactional
(
rollbackFor
=
Exception
.
class
)
@GlobalTransactional
(
rollbackFor
=
Exception
.
class
)
public
JyjcOpeningApplicationModel
saveOrUpdate
(
JyjcOpeningApplicationModel
model
,
String
unitCode
)
{
public
JyjcOpeningApplicationModel
saveOrUpdate
(
JyjcOpeningApplicationModel
model
,
String
unitCode
)
{
if
(
model
.
getSequenceNbr
()
!=
null
)
{
if
(
model
.
getSequenceNbr
()
!=
null
)
{
// 编辑逻辑
model
.
setOriDetectionRegion
(
model
.
getDetectionRegion
());
// 存json
// 存json
commonService
.
saveOrUpdateHistory
(
model
.
getOpenBizType
(),
JSONObject
.
parseObject
(
JSONObject
.
toJSONString
(
model
)),
model
.
getSequenceNbr
());
commonService
.
saveOrUpdateHistory
(
model
.
getOpenBizType
(),
JSONObject
.
parseObject
(
JSONObject
.
toJSONString
(
model
)),
model
.
getSequenceNbr
());
// 编辑逻辑
return
this
.
updateWithModel
(
model
);
return
this
.
updateWithModel
(
model
);
}
else
{
}
else
{
// 工作台暂存(新增)逻辑
// 工作台暂存(新增)逻辑
...
@@ -186,6 +187,8 @@ public class JyjcOpeningApplicationServiceImpl extends BaseService<JyjcOpeningAp
...
@@ -186,6 +187,8 @@ public class JyjcOpeningApplicationServiceImpl extends BaseService<JyjcOpeningAp
model
.
setCreateUserId
(
RequestContext
.
getExeUserId
());
model
.
setCreateUserId
(
RequestContext
.
getExeUserId
());
model
.
setStatus
(
WorkFlowStatusEnum
.
OPENING_APPLICATION_SUBMIT
.
getPass
());
model
.
setStatus
(
WorkFlowStatusEnum
.
OPENING_APPLICATION_SUBMIT
.
getPass
());
model
.
setDockingUnitCode
(
this
.
getAppId
(
unitCode
));
model
.
setDockingUnitCode
(
this
.
getAppId
(
unitCode
));
// 编辑逻辑
model
.
setOriDetectionRegion
(
model
.
getDetectionRegion
());
this
.
createWithModel
(
model
);
this
.
createWithModel
(
model
);
// 2.创建待办
// 2.创建待办
createDraftTask
(
model
);
createDraftTask
(
model
);
...
@@ -278,8 +281,10 @@ public class JyjcOpeningApplicationServiceImpl extends BaseService<JyjcOpeningAp
...
@@ -278,8 +281,10 @@ public class JyjcOpeningApplicationServiceImpl extends BaseService<JyjcOpeningAp
private
JyjcOpeningApplicationModel
saveModel
(
JyjcOpeningApplicationModel
model
)
{
private
JyjcOpeningApplicationModel
saveModel
(
JyjcOpeningApplicationModel
model
)
{
if
(
model
.
getSequenceNbr
()
==
null
)
{
if
(
model
.
getSequenceNbr
()
==
null
)
{
model
.
setOriDetectionRegion
(
model
.
getDetectionRegion
());
return
this
.
createWithModel
(
model
);
return
this
.
createWithModel
(
model
);
}
else
{
}
else
{
model
.
setOriDetectionRegion
(
model
.
getDetectionRegion
());
return
this
.
updateWithModel
(
model
);
return
this
.
updateWithModel
(
model
);
}
}
}
}
...
@@ -803,6 +808,8 @@ public class JyjcOpeningApplicationServiceImpl extends BaseService<JyjcOpeningAp
...
@@ -803,6 +808,8 @@ public class JyjcOpeningApplicationServiceImpl extends BaseService<JyjcOpeningAp
// 驳回操作, 驳回时不更新json数据
// 驳回操作, 驳回时不更新json数据
jyjcOpeningApplication
.
setStatus
(
WorkFlowStatusEnum
.
getMessage
(
workflowResultDto
.
getNextTaskCode
()).
getReject
());
jyjcOpeningApplication
.
setStatus
(
WorkFlowStatusEnum
.
getMessage
(
workflowResultDto
.
getNextTaskCode
()).
getReject
());
jyjcOpeningApplication
.
setPromoter
(
""
);
jyjcOpeningApplication
.
setPromoter
(
""
);
// 驳回到发起单位时,恢复原始的开通区域,清空机构分类、核准项目
this
.
restoreApplicationData
(
jyjcOpeningApplication
,
params
);
}
}
jyjcOpeningApplication
.
setNextTaskId
(
workflowResultDto
.
getNextTaskId
());
jyjcOpeningApplication
.
setNextTaskId
(
workflowResultDto
.
getNextTaskId
());
jyjcOpeningApplication
.
setNextExecuteUserIds
(
workflowResultDto
.
getNextExecutorUserIds
());
jyjcOpeningApplication
.
setNextExecuteUserIds
(
workflowResultDto
.
getNextExecutorUserIds
());
...
@@ -852,9 +859,26 @@ public class JyjcOpeningApplicationServiceImpl extends BaseService<JyjcOpeningAp
...
@@ -852,9 +859,26 @@ public class JyjcOpeningApplicationServiceImpl extends BaseService<JyjcOpeningAp
return
null
;
return
null
;
}
}
private
void
restoreApplicationData
(
JyjcOpeningApplication
jyjcOpeningApplication
,
Map
<
String
,
Object
>
params
)
{
// 资料校对受理已退回时恢复数据到原始数据
if
(
jyjcOpeningApplication
.
getStatus
().
equals
(
WorkFlowStatusEnum
.
OPENING_APPLICATION_SUBMIT
.
getReject
())){
jyjcOpeningApplication
.
setDetectionRegion
(
jyjcOpeningApplication
.
getOriDetectionRegion
());
jyjcOpeningApplication
.
setAgencyClassify
(
null
);
jyjcOpeningApplication
.
setExpiryDate
(
null
);
JSONObject
data
=
new
JSONObject
(
params
);
List
<
BaseEnterpriseCertDto
>
certDtos
=
data
.
getJSONArray
(
BizCommonConstant
.
UNIT_LICENCE_KEY
).
toJavaList
(
BaseEnterpriseCertDto
.
class
);
certDtos
.
forEach
(
c
->{
c
.
setItemCodes
(
new
ArrayList
<>());
});
data
.
put
(
BizCommonConstant
.
UNIT_LICENCE_KEY
,
certDtos
);
// 更新json
commonService
.
saveOrUpdateHistory
(
jyjcOpeningApplication
.
getOpenBizType
(),
data
,
jyjcOpeningApplication
.
getSequenceNbr
());
}
}
private
void
sendMsg2User
(
JyjcOpeningApplication
jyjcOpeningApplication
)
{
private
void
sendMsg2User
(
JyjcOpeningApplication
jyjcOpeningApplication
)
{
// 系统对接中时发送对接消息
// 系统对接中时发送对接消息
if
(
jyjcOpeningApplication
.
getStatus
().
equals
(
WorkFlowStatusEnum
.
OPENING_APPLICATION_PRELIMINARY
.
get
Pass
()))
{
if
(
jyjcOpeningApplication
.
getStatus
().
equals
(
WorkFlowStatusEnum
.
OPENING_APPLICATION_PRELIMINARY
.
get
Reject
()))
{
String
createUserId
=
jyjcOpeningApplication
.
getCreateUserId
();
String
createUserId
=
jyjcOpeningApplication
.
getCreateUserId
();
String
relationId
=
jyjcOpeningApplication
.
getSequenceNbr
()
+
""
;
String
relationId
=
jyjcOpeningApplication
.
getSequenceNbr
()
+
""
;
String
companyType
=
this
.
OpenBizType2CompanyType
(
jyjcOpeningApplication
.
getOpenBizType
());
String
companyType
=
this
.
OpenBizType2CompanyType
(
jyjcOpeningApplication
.
getOpenBizType
());
...
@@ -1054,6 +1078,8 @@ public class JyjcOpeningApplicationServiceImpl extends BaseService<JyjcOpeningAp
...
@@ -1054,6 +1078,8 @@ public class JyjcOpeningApplicationServiceImpl extends BaseService<JyjcOpeningAp
jsonObject
.
put
(
"flowStatus"
,
commonService
.
getDictionaryCodeByName
(
jyjcOpeningApplication
.
getStatus
()));
jsonObject
.
put
(
"flowStatus"
,
commonService
.
getDictionaryCodeByName
(
jyjcOpeningApplication
.
getStatus
()));
jsonObject
.
put
(
"flowStatusLabel"
,
jyjcOpeningApplication
.
getStatus
());
jsonObject
.
put
(
"flowStatusLabel"
,
jyjcOpeningApplication
.
getStatus
());
this
.
deleteMsg
(
jyjcOpeningApplication
.
getStatus
(),
jyjcOpeningApplication
.
getSequenceNbr
());
this
.
deleteMsg
(
jyjcOpeningApplication
.
getStatus
(),
jyjcOpeningApplication
.
getSequenceNbr
());
// 撤回到发起单位时,数据恢复到原始提交状态
this
.
restoreApplicationData
(
jyjcOpeningApplication
);
// 撤回删除代办
// 撤回删除代办
taskModelService
.
rollbackTask
(
jyjcOpeningApplication
.
getWorkflowProstanceId
(),
jsonObject
);
taskModelService
.
rollbackTask
(
jyjcOpeningApplication
.
getWorkflowProstanceId
(),
jsonObject
);
// 更新数据
// 更新数据
...
@@ -1071,6 +1097,21 @@ public class JyjcOpeningApplicationServiceImpl extends BaseService<JyjcOpeningAp
...
@@ -1071,6 +1097,21 @@ public class JyjcOpeningApplicationServiceImpl extends BaseService<JyjcOpeningAp
return
null
;
return
null
;
}
}
private
void
restoreApplicationData
(
JyjcOpeningApplication
jyjcOpeningApplication
)
{
if
(
jyjcOpeningApplication
.
getStatus
().
equals
(
WorkFlowStatusEnum
.
OPENING_APPLICATION_SUBMIT
.
getRollBack
())){
jyjcOpeningApplication
.
setDetectionRegion
(
jyjcOpeningApplication
.
getOriDetectionRegion
());
jyjcOpeningApplication
.
setAgencyClassify
(
null
);
jyjcOpeningApplication
.
setExpiryDate
(
null
);
JyjcInspectionHistory
history
=
inspectionHistoryService
.
getBySSeq
(
jyjcOpeningApplication
.
getSequenceNbr
());
JSONObject
hisData
=
history
.
getHistoryData
();
List
<
BaseEnterpriseCertDto
>
certDtos
=
hisData
.
getJSONArray
(
BizCommonConstant
.
UNIT_LICENCE_KEY
).
toJavaList
(
BaseEnterpriseCertDto
.
class
);
certDtos
.
forEach
(
c
->
c
.
setItemCodes
(
new
ArrayList
<>()));
hisData
.
put
(
BizCommonConstant
.
UNIT_LICENCE_KEY
,
certDtos
);
// 更新json
commonService
.
saveOrUpdateHistory
(
jyjcOpeningApplication
.
getOpenBizType
(),
hisData
,
jyjcOpeningApplication
.
getSequenceNbr
());
}
}
private
void
deleteMsg
(
String
status
,
Long
sequenceNbr
)
{
private
void
deleteMsg
(
String
status
,
Long
sequenceNbr
)
{
// 流程到<系统对接受理已退回, 资料校对受理已撤回>时删除之前的消息
// 流程到<系统对接受理已退回, 资料校对受理已撤回>时删除之前的消息
if
(
WorkFlowStatusEnum
.
OPENING_APPLICATION_RECEIVE
.
getReject
().
equals
(
status
)
||
WorkFlowStatusEnum
.
OPENING_APPLICATION_RECEIVE
.
getRollBack
().
equals
(
status
))
{
if
(
WorkFlowStatusEnum
.
OPENING_APPLICATION_RECEIVE
.
getReject
().
equals
(
status
)
||
WorkFlowStatusEnum
.
OPENING_APPLICATION_RECEIVE
.
getRollBack
().
equals
(
status
))
{
...
...
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