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
82f3f471
Commit
82f3f471
authored
Jul 30, 2025
by
suhuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(开通):bug修改
1.使用单位、按改为的作废修改
parent
82728f98
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
9 deletions
+28
-9
JyjcOpeningApplicationServiceImpl.java
...c/biz/service/impl/JyjcOpeningApplicationServiceImpl.java
+28
-9
No files found.
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 @
82f3f471
...
@@ -331,6 +331,7 @@ public class JyjcOpeningApplicationServiceImpl extends BaseService<JyjcOpeningAp
...
@@ -331,6 +331,7 @@ public class JyjcOpeningApplicationServiceImpl extends BaseService<JyjcOpeningAp
* @param openBizType 按照单位及开通业务类型进进行作废
* @param openBizType 按照单位及开通业务类型进进行作废
*/
*/
private
void
doDiscard
(
String
unitCode
,
Long
sequenceNbr
,
String
openBizType
)
{
private
void
doDiscard
(
String
unitCode
,
Long
sequenceNbr
,
String
openBizType
)
{
if
(!(
openBizType
.
equals
(
OpenBizTypeEnumV2
.
SYDW
.
getCode
())
||
openBizType
.
equals
(
OpenBizTypeEnumV2
.
AGW
.
getCode
())))
{
JyjcInspectionHistory
history
=
inspectionHistoryService
.
getBySSeq
(
sequenceNbr
);
JyjcInspectionHistory
history
=
inspectionHistoryService
.
getBySSeq
(
sequenceNbr
);
JSONObject
hisData
=
history
.
getHistoryData
();
JSONObject
hisData
=
history
.
getHistoryData
();
Set
<
String
>
agencyTypeLast
=
hisData
.
getJSONArray
(
BizCommonConstant
.
UNIT_LICENCE_KEY
).
toJavaList
(
BaseEnterpriseCertDto
.
class
).
stream
().
map
(
BaseEnterpriseCertDto:
:
getAgencyType
).
collect
(
Collectors
.
toSet
());
Set
<
String
>
agencyTypeLast
=
hisData
.
getJSONArray
(
BizCommonConstant
.
UNIT_LICENCE_KEY
).
toJavaList
(
BaseEnterpriseCertDto
.
class
).
stream
().
map
(
BaseEnterpriseCertDto:
:
getAgencyType
).
collect
(
Collectors
.
toSet
());
...
@@ -362,6 +363,17 @@ public class JyjcOpeningApplicationServiceImpl extends BaseService<JyjcOpeningAp
...
@@ -362,6 +363,17 @@ public class JyjcOpeningApplicationServiceImpl extends BaseService<JyjcOpeningAp
.
in
(
org
.
typroject
.
tyboot
.
core
.
rdbms
.
orm
.
entity
.
BaseEntity
::
getSequenceNbr
,
ids
);
.
in
(
org
.
typroject
.
tyboot
.
core
.
rdbms
.
orm
.
entity
.
BaseEntity
::
getSequenceNbr
,
ids
);
this
.
update
(
updateWrapper
);
this
.
update
(
updateWrapper
);
}
}
}
else
{
// 使用单位和安改维按照开通类型进行作废, 非自己且单位code且业务类型且已完成
LambdaUpdateWrapper
<
JyjcOpeningApplication
>
updateWrapper
=
new
LambdaUpdateWrapper
<>();
updateWrapper
.
set
(
JyjcOpeningApplication:
:
getStatus
,
FlowStatusEnum
.
TO_BE_DISCARD
.
getName
())
.
set
(
JyjcOpeningApplication:
:
getRemark
,
"新开通申请生效,原有开通申请自动作废"
)
.
ne
(
org
.
typroject
.
tyboot
.
core
.
rdbms
.
orm
.
entity
.
BaseEntity
::
getSequenceNbr
,
sequenceNbr
)
.
eq
(
JyjcOpeningApplication:
:
getUnitCode
,
unitCode
)
.
eq
(
JyjcOpeningApplication:
:
getOpenBizType
,
openBizType
)
.
eq
(
JyjcOpeningApplication:
:
getStatus
,
FlowStatusEnum
.
TO_BE_FINISHED
.
getName
());
this
.
update
(
updateWrapper
);
}
}
}
public
Boolean
doDiscard
(
Long
sequenceNbr
,
String
remark
)
{
public
Boolean
doDiscard
(
Long
sequenceNbr
,
String
remark
)
{
...
@@ -389,11 +401,12 @@ public class JyjcOpeningApplicationServiceImpl extends BaseService<JyjcOpeningAp
...
@@ -389,11 +401,12 @@ public class JyjcOpeningApplicationServiceImpl extends BaseService<JyjcOpeningAp
return
this
.
update
(
updateWrapper
);
return
this
.
update
(
updateWrapper
);
}
}
public
Boolean
doDiscardAndOverdueLicense
(
Long
sequenceNbr
,
String
remark
)
{
public
void
doDiscardAndOverdueLicense
(
Long
sequenceNbr
,
String
remark
)
{
JyjcOpeningApplication
jyjcOpeningApplication
=
jyjcOpeningApplicationMapper
.
selectById
(
sequenceNbr
);
JyjcOpeningApplication
jyjcOpeningApplication
=
jyjcOpeningApplicationMapper
.
selectById
(
sequenceNbr
);
if
(!
String
.
valueOf
(
FlowStatusEnum
.
TO_BE_FINISHED
.
getName
()).
equals
(
jyjcOpeningApplication
.
getStatus
()))
{
if
(!
String
.
valueOf
(
FlowStatusEnum
.
TO_BE_FINISHED
.
getName
()).
equals
(
jyjcOpeningApplication
.
getStatus
()))
{
return
false
;
return
;
}
}
if
(!(
jyjcOpeningApplication
.
getOpenBizType
().
equals
(
OpenBizTypeEnumV2
.
SYDW
.
getCode
())
||
jyjcOpeningApplication
.
getOpenBizType
().
equals
(
OpenBizTypeEnumV2
.
AGW
.
getCode
())))
{
JyjcInspectionHistory
history
=
inspectionHistoryService
.
getBySSeq
(
jyjcOpeningApplication
.
getSequenceNbr
());
JyjcInspectionHistory
history
=
inspectionHistoryService
.
getBySSeq
(
jyjcOpeningApplication
.
getSequenceNbr
());
JSONObject
hisData
=
history
.
getHistoryData
();
JSONObject
hisData
=
history
.
getHistoryData
();
List
<
BaseEnterpriseCertDto
>
certDtos
=
hisData
.
getJSONArray
(
BizCommonConstant
.
UNIT_LICENCE_KEY
).
toJavaList
(
BaseEnterpriseCertDto
.
class
);
List
<
BaseEnterpriseCertDto
>
certDtos
=
hisData
.
getJSONArray
(
BizCommonConstant
.
UNIT_LICENCE_KEY
).
toJavaList
(
BaseEnterpriseCertDto
.
class
);
...
@@ -405,7 +418,14 @@ public class JyjcOpeningApplicationServiceImpl extends BaseService<JyjcOpeningAp
...
@@ -405,7 +418,14 @@ public class JyjcOpeningApplicationServiceImpl extends BaseService<JyjcOpeningAp
.
set
(
"status"
,
FlowStatusEnum
.
TO_BE_DISCARD
.
getName
())
.
set
(
"status"
,
FlowStatusEnum
.
TO_BE_DISCARD
.
getName
())
.
set
(
"remark"
,
remark
)
.
set
(
"remark"
,
remark
)
.
eq
(
"SEQUENCE_NBR"
,
sequenceNbr
);
.
eq
(
"SEQUENCE_NBR"
,
sequenceNbr
);
return
this
.
update
(
updateWrapper
);
this
.
update
(
updateWrapper
);
}
else
{
LambdaUpdateWrapper
<
JyjcOpeningApplication
>
updateWrapper
=
new
LambdaUpdateWrapper
<>();
updateWrapper
.
set
(
JyjcOpeningApplication:
:
getStatus
,
FlowStatusEnum
.
TO_BE_DISCARD
.
getName
())
.
set
(
JyjcOpeningApplication:
:
getRemark
,
remark
)
.
eq
(
org
.
typroject
.
tyboot
.
core
.
rdbms
.
orm
.
entity
.
BaseEntity
::
getSequenceNbr
,
sequenceNbr
);
this
.
update
(
updateWrapper
);
}
}
}
private
void
overdueLicense
(
List
<
BaseEnterpriseCertDto
>
certDtos
,
JyjcOpeningApplication
jyjcOpeningApplication
)
{
private
void
overdueLicense
(
List
<
BaseEnterpriseCertDto
>
certDtos
,
JyjcOpeningApplication
jyjcOpeningApplication
)
{
...
@@ -861,13 +881,13 @@ public class JyjcOpeningApplicationServiceImpl extends BaseService<JyjcOpeningAp
...
@@ -861,13 +881,13 @@ public class JyjcOpeningApplicationServiceImpl extends BaseService<JyjcOpeningAp
private
void
restoreApplicationData
(
JyjcOpeningApplication
jyjcOpeningApplication
,
Map
<
String
,
Object
>
params
)
{
private
void
restoreApplicationData
(
JyjcOpeningApplication
jyjcOpeningApplication
,
Map
<
String
,
Object
>
params
)
{
// 资料校对受理已退回时恢复数据到原始数据
// 资料校对受理已退回时恢复数据到原始数据
if
(
jyjcOpeningApplication
.
getStatus
().
equals
(
WorkFlowStatusEnum
.
OPENING_APPLICATION_SUBMIT
.
getReject
()))
{
if
(
jyjcOpeningApplication
.
getStatus
().
equals
(
WorkFlowStatusEnum
.
OPENING_APPLICATION_SUBMIT
.
getReject
()))
{
jyjcOpeningApplication
.
setDetectionRegion
(
jyjcOpeningApplication
.
getOriDetectionRegion
());
jyjcOpeningApplication
.
setDetectionRegion
(
jyjcOpeningApplication
.
getOriDetectionRegion
());
jyjcOpeningApplication
.
setAgencyClassify
(
null
);
jyjcOpeningApplication
.
setAgencyClassify
(
null
);
jyjcOpeningApplication
.
setExpiryDate
(
null
);
jyjcOpeningApplication
.
setExpiryDate
(
null
);
JSONObject
data
=
new
JSONObject
(
params
);
JSONObject
data
=
new
JSONObject
(
params
);
List
<
BaseEnterpriseCertDto
>
certDtos
=
data
.
getJSONArray
(
BizCommonConstant
.
UNIT_LICENCE_KEY
).
toJavaList
(
BaseEnterpriseCertDto
.
class
);
List
<
BaseEnterpriseCertDto
>
certDtos
=
data
.
getJSONArray
(
BizCommonConstant
.
UNIT_LICENCE_KEY
).
toJavaList
(
BaseEnterpriseCertDto
.
class
);
certDtos
.
forEach
(
c
->
{
certDtos
.
forEach
(
c
->
{
c
.
setItemCodes
(
new
ArrayList
<>());
c
.
setItemCodes
(
new
ArrayList
<>());
});
});
data
.
put
(
BizCommonConstant
.
UNIT_LICENCE_KEY
,
certDtos
);
data
.
put
(
BizCommonConstant
.
UNIT_LICENCE_KEY
,
certDtos
);
...
@@ -1098,14 +1118,14 @@ public class JyjcOpeningApplicationServiceImpl extends BaseService<JyjcOpeningAp
...
@@ -1098,14 +1118,14 @@ public class JyjcOpeningApplicationServiceImpl extends BaseService<JyjcOpeningAp
}
}
private
void
restoreApplicationData
(
JyjcOpeningApplication
jyjcOpeningApplication
)
{
private
void
restoreApplicationData
(
JyjcOpeningApplication
jyjcOpeningApplication
)
{
if
(
jyjcOpeningApplication
.
getStatus
().
equals
(
WorkFlowStatusEnum
.
OPENING_APPLICATION_SUBMIT
.
getRollBack
()))
{
if
(
jyjcOpeningApplication
.
getStatus
().
equals
(
WorkFlowStatusEnum
.
OPENING_APPLICATION_SUBMIT
.
getRollBack
()))
{
jyjcOpeningApplication
.
setDetectionRegion
(
jyjcOpeningApplication
.
getOriDetectionRegion
());
jyjcOpeningApplication
.
setDetectionRegion
(
jyjcOpeningApplication
.
getOriDetectionRegion
());
jyjcOpeningApplication
.
setAgencyClassify
(
null
);
jyjcOpeningApplication
.
setAgencyClassify
(
null
);
jyjcOpeningApplication
.
setExpiryDate
(
null
);
jyjcOpeningApplication
.
setExpiryDate
(
null
);
JyjcInspectionHistory
history
=
inspectionHistoryService
.
getBySSeq
(
jyjcOpeningApplication
.
getSequenceNbr
());
JyjcInspectionHistory
history
=
inspectionHistoryService
.
getBySSeq
(
jyjcOpeningApplication
.
getSequenceNbr
());
JSONObject
hisData
=
history
.
getHistoryData
();
JSONObject
hisData
=
history
.
getHistoryData
();
List
<
BaseEnterpriseCertDto
>
certDtos
=
hisData
.
getJSONArray
(
BizCommonConstant
.
UNIT_LICENCE_KEY
).
toJavaList
(
BaseEnterpriseCertDto
.
class
);
List
<
BaseEnterpriseCertDto
>
certDtos
=
hisData
.
getJSONArray
(
BizCommonConstant
.
UNIT_LICENCE_KEY
).
toJavaList
(
BaseEnterpriseCertDto
.
class
);
certDtos
.
forEach
(
c
->
c
.
setItemCodes
(
new
ArrayList
<>()));
certDtos
.
forEach
(
c
->
c
.
setItemCodes
(
new
ArrayList
<>()));
hisData
.
put
(
BizCommonConstant
.
UNIT_LICENCE_KEY
,
certDtos
);
hisData
.
put
(
BizCommonConstant
.
UNIT_LICENCE_KEY
,
certDtos
);
// 更新json
// 更新json
commonService
.
saveOrUpdateHistory
(
jyjcOpeningApplication
.
getOpenBizType
(),
hisData
,
jyjcOpeningApplication
.
getSequenceNbr
());
commonService
.
saveOrUpdateHistory
(
jyjcOpeningApplication
.
getOpenBizType
(),
hisData
,
jyjcOpeningApplication
.
getSequenceNbr
());
...
@@ -1324,9 +1344,8 @@ public class JyjcOpeningApplicationServiceImpl extends BaseService<JyjcOpeningAp
...
@@ -1324,9 +1344,8 @@ public class JyjcOpeningApplicationServiceImpl extends BaseService<JyjcOpeningAp
public
void
exportData
(
HttpServletResponse
response
,
List
<
String
>
ids
)
{
public
void
exportData
(
HttpServletResponse
response
,
List
<
String
>
ids
)
{
List
<
JyjcOpeningApplicationVo
>
exportData
=
jyjcOpeningApplicationMapper
.
queryJyjcOpeningApplicationListByIds
(
ids
);
List
<
JyjcOpeningApplicationVo
>
exportData
=
jyjcOpeningApplicationMapper
.
queryJyjcOpeningApplicationListByIds
(
ids
);
for
(
JyjcOpeningApplicationVo
data
:
exportData
)
{
for
(
JyjcOpeningApplicationVo
data
:
exportData
)
{
data
.
setOpenBizType
(
this
.
getOpenBizType
Name
(
data
.
getOpenBizType
()));
data
.
setOpenBizType
(
this
.
castOpenBizTypeCode2
Name
(
data
.
getOpenBizType
()));
}
}
ExcelUtil
.
createTemplate
(
response
,
"检验检测开通列表数据"
,
"检验检测开通列表"
,
exportData
,
JyjcOpeningApplicationVo
.
class
,
null
,
false
);
ExcelUtil
.
createTemplate
(
response
,
"检验检测开通列表数据"
,
"检验检测开通列表"
,
exportData
,
JyjcOpeningApplicationVo
.
class
,
null
,
false
);
}
}
...
...
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