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
efb3e7df
Commit
efb3e7df
authored
Feb 06, 2026
by
刘林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(jg):气瓶履历信息处理
parent
78eba12e
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
28 changed files
with
211 additions
and
162 deletions
+211
-162
JgResumeInfo.java
.../yeejoin/amos/boot/module/jg/api/entity/JgResumeInfo.java
+4
-2
JgResumeInfoController.java
...boot/module/jg/biz/controller/JgResumeInfoController.java
+3
-2
JgResumeInfoEqController.java
...ot/module/jg/biz/controller/JgResumeInfoEqController.java
+38
-0
CommonServiceImpl.java
...os/boot/module/jg/biz/service/impl/CommonServiceImpl.java
+4
-13
DataDockServiceImpl.java
.../boot/module/jg/biz/service/impl/DataDockServiceImpl.java
+9
-14
EquipClaimServiceImpl.java
...oot/module/jg/biz/service/impl/EquipClaimServiceImpl.java
+2
-4
IdxBizJgRegisterInfoServiceImpl.java
.../jg/biz/service/impl/IdxBizJgRegisterInfoServiceImpl.java
+4
-6
JgCertificateReplenishServiceImpl.java
...g/biz/service/impl/JgCertificateReplenishServiceImpl.java
+7
-12
JgChangeRegistrationNameServiceImpl.java
...biz/service/impl/JgChangeRegistrationNameServiceImpl.java
+0
-0
JgChangeRegistrationReformServiceImpl.java
...z/service/impl/JgChangeRegistrationReformServiceImpl.java
+4
-10
JgChangeRegistrationTransferServiceImpl.java
...service/impl/JgChangeRegistrationTransferServiceImpl.java
+1
-1
JgChangeRegistrationUnitServiceImpl.java
...biz/service/impl/JgChangeRegistrationUnitServiceImpl.java
+0
-0
JgChangeVehicleRegistrationUnitServiceImpl.java
...vice/impl/JgChangeVehicleRegistrationUnitServiceImpl.java
+13
-5
JgEnableDisableServiceImpl.java
...odule/jg/biz/service/impl/JgEnableDisableServiceImpl.java
+11
-19
JgEquipTransferServiceImpl.java
...odule/jg/biz/service/impl/JgEquipTransferServiceImpl.java
+3
-2
JgInstallationNoticeServiceImpl.java
.../jg/biz/service/impl/JgInstallationNoticeServiceImpl.java
+4
-4
JgMaintainNoticeServiceImpl.java
...dule/jg/biz/service/impl/JgMaintainNoticeServiceImpl.java
+2
-2
JgMaintenanceContractServiceImpl.java
...jg/biz/service/impl/JgMaintenanceContractServiceImpl.java
+3
-2
JgOverDesignServiceLifeServiceImpl.java
.../biz/service/impl/JgOverDesignServiceLifeServiceImpl.java
+7
-12
JgReformNoticeServiceImpl.java
...module/jg/biz/service/impl/JgReformNoticeServiceImpl.java
+4
-6
JgResumeInfoEqServiceImpl.java
...module/jg/biz/service/impl/JgResumeInfoEqServiceImpl.java
+5
-0
JgResumeInfoServiceImpl.java
...t/module/jg/biz/service/impl/JgResumeInfoServiceImpl.java
+2
-9
JgScrapCancelServiceImpl.java
.../module/jg/biz/service/impl/JgScrapCancelServiceImpl.java
+1
-1
JgTransferNoticeServiceImpl.java
...dule/jg/biz/service/impl/JgTransferNoticeServiceImpl.java
+1
-1
JgUseRegistrationServiceImpl.java
...ule/jg/biz/service/impl/JgUseRegistrationServiceImpl.java
+5
-5
JgVehicleInformationServiceImpl.java
.../jg/biz/service/impl/JgVehicleInformationServiceImpl.java
+7
-13
JgFeignClient.java
...eejoin/amos/boot/module/jyjc/biz/feign/JgFeignClient.java
+9
-2
JyjcInspectionApplicationServiceImpl.java
...iz/service/impl/JyjcInspectionApplicationServiceImpl.java
+58
-15
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/entity/JgResumeInfo.java
View file @
efb3e7df
...
@@ -5,8 +5,7 @@ import com.baomidou.mybatisplus.annotation.TableField;
...
@@ -5,8 +5,7 @@ import com.baomidou.mybatisplus.annotation.TableField;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.yeejoin.amos.boot.biz.common.annotation.RecUserNameFilling
;
import
com.yeejoin.amos.boot.biz.common.annotation.RecUserNameFilling
;
import
com.yeejoin.amos.boot.biz.common.entity.BaseEntity
;
import
com.yeejoin.amos.boot.biz.common.entity.BaseEntity
;
import
lombok.Data
;
import
lombok.*
;
import
lombok.EqualsAndHashCode
;
import
lombok.experimental.Accessors
;
import
lombok.experimental.Accessors
;
import
java.util.Date
;
import
java.util.Date
;
...
@@ -22,6 +21,9 @@ import java.util.Date;
...
@@ -22,6 +21,9 @@ import java.util.Date;
@Accessors
(
chain
=
true
)
@Accessors
(
chain
=
true
)
@TableName
(
"tzs_jg_resume_info"
)
@TableName
(
"tzs_jg_resume_info"
)
@RecUserNameFilling
@RecUserNameFilling
@Builder
@AllArgsConstructor
@NoArgsConstructor
public
class
JgResumeInfo
extends
BaseEntity
{
public
class
JgResumeInfo
extends
BaseEntity
{
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
...
...
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/java/com/yeejoin/amos/boot/module/jg/biz/controller/JgResumeInfoController.java
View file @
efb3e7df
...
@@ -3,6 +3,7 @@ package com.yeejoin.amos.boot.module.jg.biz.controller;
...
@@ -3,6 +3,7 @@ package com.yeejoin.amos.boot.module.jg.biz.controller;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.yeejoin.amos.boot.biz.common.controller.BaseController
;
import
com.yeejoin.amos.boot.biz.common.controller.BaseController
;
import
com.yeejoin.amos.boot.module.jg.api.dto.JgResumeInfoDto
;
import
com.yeejoin.amos.boot.module.jg.api.dto.JgResumeInfoDto
;
import
com.yeejoin.amos.boot.module.jg.api.entity.JgResumeInfo
;
import
com.yeejoin.amos.boot.module.jg.biz.service.impl.JgResumeInfoServiceImpl
;
import
com.yeejoin.amos.boot.module.jg.biz.service.impl.JgResumeInfoServiceImpl
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiOperation
;
...
@@ -50,8 +51,8 @@ public class JgResumeInfoController extends BaseController {
...
@@ -50,8 +51,8 @@ public class JgResumeInfoController extends BaseController {
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@PostMapping
(
value
=
"/saveBatchResume"
)
@PostMapping
(
value
=
"/saveBatchResume"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"批量新增"
,
notes
=
"批量新增"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"批量新增"
,
notes
=
"批量新增"
)
public
void
saveBatchResume
(
@RequestBody
List
<
JgResumeInfo
Dto
>
jgResumeInfoDt
oList
)
{
public
void
saveBatchResume
(
@RequestBody
List
<
JgResumeInfo
>
jgResumeInf
oList
)
{
jgResumeInfoServiceImpl
.
saveBatchResume
(
jgResumeInfo
Dto
List
);
jgResumeInfoServiceImpl
.
saveBatchResume
(
jgResumeInfoList
);
}
}
/**
/**
...
...
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/java/com/yeejoin/amos/boot/module/jg/biz/controller/JgResumeInfoEqController.java
0 → 100644
View file @
efb3e7df
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jg
.
biz
.
controller
;
import
com.yeejoin.amos.boot.biz.common.controller.BaseController
;
import
com.yeejoin.amos.boot.module.jg.api.entity.JgResumeInfoEq
;
import
com.yeejoin.amos.boot.module.jg.biz.service.impl.JgResumeInfoEqServiceImpl
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.*
;
import
org.typroject.tyboot.core.foundation.enumeration.UserType
;
import
org.typroject.tyboot.core.restful.doc.TycloudOperation
;
import
java.util.List
;
/**
* 监管履历信息关系表-气瓶用
* @author LiuLin
* @date 2026-01-29
*/
@RestController
@Api
(
tags
=
"监管履历信息关系表Api"
)
@RequestMapping
(
value
=
"/jg-resume-info-eq"
)
public
class
JgResumeInfoEqController
extends
BaseController
{
@Autowired
JgResumeInfoEqServiceImpl
jgResumeInfoEqServiceImpl
;
/**
* 新增监管履历信息关系表
*
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@PostMapping
(
value
=
"/saveBatchResumeEq"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"批量新增"
,
notes
=
"批量新增"
)
public
void
saveBatchResumeEq
(
@RequestBody
List
<
JgResumeInfoEq
>
jgResumeInfoEqList
)
{
jgResumeInfoEqServiceImpl
.
saveBatchResumeEq
(
jgResumeInfoEqList
);
}
}
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 @
efb3e7df
...
@@ -45,7 +45,6 @@ import com.yeejoin.amos.boot.module.jg.api.entity.JgUseRegistration;
...
@@ -45,7 +45,6 @@ import com.yeejoin.amos.boot.module.jg.api.entity.JgUseRegistration;
import
com.yeejoin.amos.boot.module.jg.api.entity.JgUseRegistrationManage
;
import
com.yeejoin.amos.boot.module.jg.api.entity.JgUseRegistrationManage
;
import
com.yeejoin.amos.boot.module.jg.api.enums.*
;
import
com.yeejoin.amos.boot.module.jg.api.enums.*
;
import
com.yeejoin.amos.boot.module.jg.api.mapper.CommonMapper
;
import
com.yeejoin.amos.boot.module.jg.api.mapper.CommonMapper
;
import
com.yeejoin.amos.boot.module.jg.api.mapper.JgResumeInfoEqMapper
;
import
com.yeejoin.amos.boot.module.jg.api.mapper.JgUseRegistrationManageMapper
;
import
com.yeejoin.amos.boot.module.jg.api.mapper.JgUseRegistrationManageMapper
;
import
com.yeejoin.amos.boot.module.jg.api.service.IJgChangeRegistrationTransferService
;
import
com.yeejoin.amos.boot.module.jg.api.service.IJgChangeRegistrationTransferService
;
import
com.yeejoin.amos.boot.module.jg.api.service.IJgInstallationNoticeService
;
import
com.yeejoin.amos.boot.module.jg.api.service.IJgInstallationNoticeService
;
...
@@ -110,7 +109,6 @@ import org.typroject.tyboot.core.foundation.utils.Bean;
...
@@ -110,7 +109,6 @@ import org.typroject.tyboot.core.foundation.utils.Bean;
import
org.typroject.tyboot.core.foundation.utils.ValidationUtil
;
import
org.typroject.tyboot.core.foundation.utils.ValidationUtil
;
import
org.typroject.tyboot.core.restful.exception.instance.BadRequest
;
import
org.typroject.tyboot.core.restful.exception.instance.BadRequest
;
import
org.typroject.tyboot.core.restful.utils.ResponseModel
;
import
org.typroject.tyboot.core.restful.utils.ResponseModel
;
import
javax.annotation.PostConstruct
;
import
javax.annotation.PostConstruct
;
import
javax.servlet.ServletOutputStream
;
import
javax.servlet.ServletOutputStream
;
import
javax.servlet.http.HttpServletResponse
;
import
javax.servlet.http.HttpServletResponse
;
...
@@ -133,9 +131,7 @@ import java.util.function.Function;
...
@@ -133,9 +131,7 @@ import java.util.function.Function;
import
java.util.regex.Pattern
;
import
java.util.regex.Pattern
;
import
java.util.stream.Collectors
;
import
java.util.stream.Collectors
;
import
java.util.stream.Stream
;
import
java.util.stream.Stream
;
import
static
com
.
yeejoin
.
amos
.
boot
.
module
.
jg
.
biz
.
service
.
impl
.
DataHandlerServiceImpl
.
IDX_BIZ_EQUIPMENT_INFO
;
import
static
com
.
yeejoin
.
amos
.
boot
.
module
.
jg
.
biz
.
service
.
impl
.
DataHandlerServiceImpl
.
IDX_BIZ_EQUIPMENT_INFO
;
import
static
com
.
yeejoin
.
amos
.
boot
.
module
.
jg
.
biz
.
service
.
impl
.
JgChangeRegistrationNameServiceImpl
.
DB_BATCH_SIZE
;
/**
/**
* 装备分类服务实现类
* 装备分类服务实现类
...
@@ -324,7 +320,7 @@ public class CommonServiceImpl implements ICommonService {
...
@@ -324,7 +320,7 @@ public class CommonServiceImpl implements ICommonService {
@Autowired
@Autowired
private
CodeUtil
codeUtil
;
private
CodeUtil
codeUtil
;
@Autowired
@Autowired
private
JgResumeInfoEq
Mapper
jgResumeInfoEqMapper
;
private
JgResumeInfoEq
ServiceImpl
jgResumeInfoEqService
;
public
static
final
String
DATA_QUALITY_SCORE
=
"DATA_QUALITY_SCORE"
;
public
static
final
String
DATA_QUALITY_SCORE
=
"DATA_QUALITY_SCORE"
;
...
@@ -3504,17 +3500,11 @@ public class CommonServiceImpl implements ICommonService {
...
@@ -3504,17 +3500,11 @@ public class CommonServiceImpl implements ICommonService {
}
}
public
void
batchInsertResumeEq
(
Long
resumeId
,
List
<
Map
<
String
,
Object
>>
equipmentLists
)
{
public
void
batchInsertResumeEq
(
Long
resumeId
,
List
<
Map
<
String
,
Object
>>
equipmentLists
)
{
List
<
JgResumeInfoEq
>
list
=
equipmentLists
.
stream
()
jgResumeInfoEqService
.
saveBatchResumeEq
(
equipmentLists
.
stream
()
.
map
(
e
->
JgResumeInfoEq
.
builder
()
.
map
(
e
->
JgResumeInfoEq
.
builder
()
.
resumeId
(
resumeId
)
.
resumeId
(
resumeId
)
.
equId
(
String
.
valueOf
(
e
.
get
(
"record"
)))
.
equId
(
String
.
valueOf
(
e
.
get
(
"record"
)))
.
build
())
.
build
())
.
collect
(
Collectors
.
toList
());
.
collect
(
Collectors
.
toList
()));
for
(
int
i
=
0
;
i
<
list
.
size
();
i
+=
DB_BATCH_SIZE
)
{
jgResumeInfoEqMapper
.
insertBatchSomeColumn
(
list
.
subList
(
i
,
Math
.
min
(
i
+
DB_BATCH_SIZE
,
list
.
size
()))
);
}
}
}
}
}
\ 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/DataDockServiceImpl.java
View file @
efb3e7df
...
@@ -141,7 +141,7 @@ public class DataDockServiceImpl {
...
@@ -141,7 +141,7 @@ public class DataDockServiceImpl {
private
final
CodeUtil
codeUtil
;
private
final
CodeUtil
codeUtil
;
private
final
CommonMapper
commonMapper
;
private
final
CommonMapper
commonMapper
;
private
final
JgResumeInfoServiceImpl
jgResumeInfoService
;
private
final
JgResumeInfoServiceImpl
jgResumeInfoService
;
private
final
JgResumeInfoEq
Mapper
jgResumeInfoEqMapper
;
private
final
JgResumeInfoEq
ServiceImpl
jgResumeInfoEqService
;
private
final
IdxBizJgMaintenanceRecordInfoServiceImpl
idxBizJgMaintenanceRecordInfoService
;
private
final
IdxBizJgMaintenanceRecordInfoServiceImpl
idxBizJgMaintenanceRecordInfoService
;
private
final
TzBaseEnterpriseInfoMapper
enterpriseInfoMapper
;
private
final
TzBaseEnterpriseInfoMapper
enterpriseInfoMapper
;
private
final
Map
<
String
,
Object
>
resultError
=
new
HashMap
<>();
private
final
Map
<
String
,
Object
>
resultError
=
new
HashMap
<>();
...
@@ -1749,7 +1749,7 @@ public class DataDockServiceImpl {
...
@@ -1749,7 +1749,7 @@ public class DataDockServiceImpl {
}
}
private
void
createResumeCylinderBatch
(
Set
<
String
>
records
,
String
dataSource
,
String
equipRoutePath
,
CompanyBo
company
)
{
private
void
createResumeCylinderBatch
(
Set
<
String
>
records
,
String
dataSource
,
String
equipRoutePath
,
CompanyBo
company
)
{
JgResumeInfo
Dto
dto
=
JgResumeInfoDt
o
.
builder
()
JgResumeInfo
info
=
JgResumeInf
o
.
builder
()
.
businessType
(
BusinessTypeEnum
.
JG_NEW_EQUIP
.
getName
())
.
businessType
(
BusinessTypeEnum
.
JG_NEW_EQUIP
.
getName
())
.
status
(
"正常"
)
.
status
(
"正常"
)
.
approvalUnitCode
(
company
.
getCompanyCode
())
.
approvalUnitCode
(
company
.
getCompanyCode
())
...
@@ -1757,18 +1757,13 @@ public class DataDockServiceImpl {
...
@@ -1757,18 +1757,13 @@ public class DataDockServiceImpl {
.
changeContent
(
BusinessTypeEnum
.
JG_NEW_EQUIP
.
getName
()
+
"业务办理"
)
.
changeContent
(
BusinessTypeEnum
.
JG_NEW_EQUIP
.
getName
()
+
"业务办理"
)
.
routePath
(
String
.
format
(
equipRoutePath
,
dataSource
))
.
routePath
(
String
.
format
(
equipRoutePath
,
dataSource
))
.
build
();
.
build
();
jgResumeInfoService
.
save
BatchResume
(
Collections
.
singletonList
(
dto
)
);
jgResumeInfoService
.
save
(
info
);
List
<
JgResumeInfoEq
>
list
=
records
.
stream
()
jgResumeInfoEqService
.
saveBatchResumeEq
(
records
.
stream
()
.
map
(
record
->
JgResumeInfoEq
.
builder
()
.
map
(
record
->
JgResumeInfoEq
.
builder
()
.
resumeId
(
dt
o
.
getSequenceNbr
())
.
resumeId
(
inf
o
.
getSequenceNbr
())
.
equId
(
record
)
.
equId
(
record
)
.
build
())
.
build
())
.
collect
(
Collectors
.
toList
());
.
collect
(
Collectors
.
toList
()));
for
(
int
i
=
0
;
i
<
list
.
size
();
i
+=
DB_BATCH_SIZE
)
{
jgResumeInfoEqMapper
.
insertBatchSomeColumn
(
list
.
subList
(
i
,
Math
.
min
(
i
+
DB_BATCH_SIZE
,
list
.
size
()))
);
}
}
}
private
void
updatePipelineLength
(
Set
<
String
>
projectContraptionIdSet
)
{
private
void
updatePipelineLength
(
Set
<
String
>
projectContraptionIdSet
)
{
...
@@ -1776,7 +1771,7 @@ public class DataDockServiceImpl {
...
@@ -1776,7 +1771,7 @@ public class DataDockServiceImpl {
}
}
private
void
createResumeBatch
(
Set
<
String
>
records
,
String
dataSource
,
String
routePath
,
CompanyBo
company
)
{
private
void
createResumeBatch
(
Set
<
String
>
records
,
String
dataSource
,
String
routePath
,
CompanyBo
company
)
{
jgResumeInfoService
.
saveBatchResume
(
records
.
stream
().
map
(
record
->
JgResumeInfo
Dto
.
builder
()
jgResumeInfoService
.
saveBatchResume
(
records
.
stream
().
map
(
record
->
JgResumeInfo
.
builder
()
.
businessType
(
BusinessTypeEnum
.
JG_NEW_EQUIP
.
getName
())
.
businessType
(
BusinessTypeEnum
.
JG_NEW_EQUIP
.
getName
())
.
businessId
(
record
)
.
businessId
(
record
)
.
equId
(
record
)
.
equId
(
record
)
...
@@ -1790,7 +1785,7 @@ public class DataDockServiceImpl {
...
@@ -1790,7 +1785,7 @@ public class DataDockServiceImpl {
}
}
private
void
createResumePipelineBatch
(
Set
<
String
>
projectContraptionIdSet
,
String
routePath
,
CompanyBo
company
)
{
private
void
createResumePipelineBatch
(
Set
<
String
>
projectContraptionIdSet
,
String
routePath
,
CompanyBo
company
)
{
jgResumeInfoService
.
saveBatchResume
(
projectContraptionIdSet
.
stream
().
map
(
projectContraptionId
->
JgResumeInfo
Dto
.
builder
()
jgResumeInfoService
.
saveBatchResume
(
projectContraptionIdSet
.
stream
().
map
(
projectContraptionId
->
JgResumeInfo
.
builder
()
.
businessType
(
BusinessTypeEnum
.
JG_NEW_PROJECT
.
getName
())
.
businessType
(
BusinessTypeEnum
.
JG_NEW_PROJECT
.
getName
())
.
businessId
(
projectContraptionId
)
.
businessId
(
projectContraptionId
)
.
equId
(
projectContraptionId
)
.
equId
(
projectContraptionId
)
...
@@ -2082,7 +2077,7 @@ public class DataDockServiceImpl {
...
@@ -2082,7 +2077,7 @@ public class DataDockServiceImpl {
}
}
private
void
createResumePipeline
(
Long
sequenceNbr
,
String
routePath
,
CompanyBo
company
)
{
private
void
createResumePipeline
(
Long
sequenceNbr
,
String
routePath
,
CompanyBo
company
)
{
jgResumeInfoService
.
saveBatchResume
(
Collections
.
singletonList
(
JgResumeInfo
Dto
.
builder
()
jgResumeInfoService
.
saveBatchResume
(
Collections
.
singletonList
(
JgResumeInfo
.
builder
()
.
businessType
(
BusinessTypeEnum
.
JG_NEW_PROJECT
.
getName
())
.
businessType
(
BusinessTypeEnum
.
JG_NEW_PROJECT
.
getName
())
.
businessId
(
sequenceNbr
+
""
)
.
businessId
(
sequenceNbr
+
""
)
.
equId
(
sequenceNbr
+
""
)
.
equId
(
sequenceNbr
+
""
)
...
...
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/EquipClaimServiceImpl.java
View file @
efb3e7df
...
@@ -739,7 +739,7 @@ public class EquipClaimServiceImpl {
...
@@ -739,7 +739,7 @@ public class EquipClaimServiceImpl {
*/
*/
public
void
addEquipResume
(
JSONObject
equipInfo
,
BusinessTypeEnum
businessTypeEnum
,
JgUseRegistration
useRegistration
)
{
public
void
addEquipResume
(
JSONObject
equipInfo
,
BusinessTypeEnum
businessTypeEnum
,
JgUseRegistration
useRegistration
)
{
String
record
=
(
String
)
equipInfo
.
get
(
RECORD
);
String
record
=
(
String
)
equipInfo
.
get
(
RECORD
);
JgResumeInfo
Dto
resumeInfoDto
=
JgResumeInfoDt
o
.
builder
()
JgResumeInfo
resumeInfo
=
JgResumeInf
o
.
builder
()
.
applyNo
(
null
)
.
applyNo
(
null
)
.
businessType
(
businessTypeEnum
.
getName
())
.
businessType
(
businessTypeEnum
.
getName
())
.
businessId
(
record
)
.
businessId
(
record
)
...
@@ -750,10 +750,8 @@ public class EquipClaimServiceImpl {
...
@@ -750,10 +750,8 @@ public class EquipClaimServiceImpl {
.
changeContent
(
businessTypeEnum
.
getName
()
+
"业务"
)
.
changeContent
(
businessTypeEnum
.
getName
()
+
"业务"
)
.
build
();
.
build
();
if
(!
ObjectUtils
.
isEmpty
(
useRegistration
.
getSequenceNbr
()))
{
if
(!
ObjectUtils
.
isEmpty
(
useRegistration
.
getSequenceNbr
()))
{
resumeInfo
Dto
.
setRoutePath
(
useRegistrationService
.
buildTaskModel
(
useRegistration
,
equipInfo
,
getSelectedOrgInfo
()));
resumeInfo
.
setRoutePath
(
useRegistrationService
.
buildTaskModel
(
useRegistration
,
equipInfo
,
getSelectedOrgInfo
()));
}
}
JgResumeInfo
resumeInfo
=
new
JgResumeInfo
();
BeanUtils
.
copyProperties
(
resumeInfoDto
,
resumeInfo
);
jgResumeInfoService
.
save
(
resumeInfo
);
jgResumeInfoService
.
save
(
resumeInfo
);
}
}
...
...
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/IdxBizJgRegisterInfoServiceImpl.java
View file @
efb3e7df
...
@@ -895,7 +895,7 @@ public class IdxBizJgRegisterInfoServiceImpl extends BaseService<IdxBizJgRegiste
...
@@ -895,7 +895,7 @@ public class IdxBizJgRegisterInfoServiceImpl extends BaseService<IdxBizJgRegiste
}
}
private
void
createResumePipeline
(
Long
sequenceNbr
,
String
routePath
,
CompanyBo
company
)
{
private
void
createResumePipeline
(
Long
sequenceNbr
,
String
routePath
,
CompanyBo
company
)
{
jgResumeInfoService
.
save
BatchResume
(
Collections
.
singletonList
(
JgResumeInfoDt
o
.
builder
()
jgResumeInfoService
.
save
(
JgResumeInf
o
.
builder
()
.
businessType
(
BusinessTypeEnum
.
JG_NEW_PROJECT
.
getName
())
.
businessType
(
BusinessTypeEnum
.
JG_NEW_PROJECT
.
getName
())
.
businessId
(
sequenceNbr
+
""
)
.
businessId
(
sequenceNbr
+
""
)
.
equId
(
sequenceNbr
+
""
)
.
equId
(
sequenceNbr
+
""
)
...
@@ -904,8 +904,7 @@ public class IdxBizJgRegisterInfoServiceImpl extends BaseService<IdxBizJgRegiste
...
@@ -904,8 +904,7 @@ public class IdxBizJgRegisterInfoServiceImpl extends BaseService<IdxBizJgRegiste
.
approvalUnit
(
company
.
getCompanyName
())
.
approvalUnit
(
company
.
getCompanyName
())
.
changeContent
(
BusinessTypeEnum
.
JG_NEW_PROJECT
.
getName
()
+
"业务办理"
)
.
changeContent
(
BusinessTypeEnum
.
JG_NEW_PROJECT
.
getName
()
+
"业务办理"
)
.
routePath
(
routePath
)
.
routePath
(
routePath
)
.
build
())
.
build
());
);
}
}
/**
/**
...
@@ -3904,7 +3903,7 @@ public class IdxBizJgRegisterInfoServiceImpl extends BaseService<IdxBizJgRegiste
...
@@ -3904,7 +3903,7 @@ public class IdxBizJgRegisterInfoServiceImpl extends BaseService<IdxBizJgRegiste
}
}
private
void
createResume
(
String
record
,
String
routePath
,
CompanyBo
company
)
{
private
void
createResume
(
String
record
,
String
routePath
,
CompanyBo
company
)
{
jgResumeInfoService
.
save
BatchResume
(
Collections
.
singletonList
(
JgResumeInfoDt
o
.
builder
()
jgResumeInfoService
.
save
(
JgResumeInf
o
.
builder
()
.
businessType
(
BusinessTypeEnum
.
JG_NEW_EQUIP
.
getName
())
.
businessType
(
BusinessTypeEnum
.
JG_NEW_EQUIP
.
getName
())
.
businessId
(
record
)
.
businessId
(
record
)
.
equId
(
record
)
.
equId
(
record
)
...
@@ -3913,8 +3912,7 @@ public class IdxBizJgRegisterInfoServiceImpl extends BaseService<IdxBizJgRegiste
...
@@ -3913,8 +3912,7 @@ public class IdxBizJgRegisterInfoServiceImpl extends BaseService<IdxBizJgRegiste
.
approvalUnit
(
company
.
getCompanyName
())
.
approvalUnit
(
company
.
getCompanyName
())
.
changeContent
(
BusinessTypeEnum
.
JG_NEW_EQUIP
.
getName
()
+
"业务办理"
)
.
changeContent
(
BusinessTypeEnum
.
JG_NEW_EQUIP
.
getName
()
+
"业务办理"
)
.
routePath
(
routePath
)
.
routePath
(
routePath
)
.
build
())
.
build
());
);
}
}
public
void
createResumeForCylinder
(
String
record
,
String
routePath
,
CompanyBo
company
)
{
public
void
createResumeForCylinder
(
String
record
,
String
routePath
,
CompanyBo
company
)
{
...
...
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/JgCertificateReplenishServiceImpl.java
View file @
efb3e7df
...
@@ -161,7 +161,7 @@ public class JgCertificateReplenishServiceImpl extends BaseService<JgCertificate
...
@@ -161,7 +161,7 @@ public class JgCertificateReplenishServiceImpl extends BaseService<JgCertificate
private
final
IdxBizJgFactoryInfoServiceImpl
idxBizJgFactoryInfoService
;
private
final
IdxBizJgFactoryInfoServiceImpl
idxBizJgFactoryInfoService
;
private
final
JgCertificateReplenishMapper
jgCertificateReplenishMapper
;
private
final
JgCertificateReplenishMapper
jgCertificateReplenishMapper
;
private
final
JgResumeInfoServiceImpl
jgResumeInfoService
;
private
final
JgResumeInfoServiceImpl
jgResumeInfoService
;
private
final
JgResumeInfoEq
Mapper
jgResumeInfoEqMapper
;
private
final
JgResumeInfoEq
ServiceImpl
jgResumeInfoEqService
;
private
final
IdxBizJgProjectContraptionServiceImplService
jgProjectContraptionServiceImplService
;
private
final
IdxBizJgProjectContraptionServiceImplService
jgProjectContraptionServiceImplService
;
/**
/**
...
@@ -551,7 +551,7 @@ public class JgCertificateReplenishServiceImpl extends BaseService<JgCertificate
...
@@ -551,7 +551,7 @@ public class JgCertificateReplenishServiceImpl extends BaseService<JgCertificate
List
<
JgCertificateReplenishEq
>
replenishEqs
=
certificateReplenishEqService
.
getBaseMapper
().
selectList
(
new
LambdaQueryWrapper
<
JgCertificateReplenishEq
>()
List
<
JgCertificateReplenishEq
>
replenishEqs
=
certificateReplenishEqService
.
getBaseMapper
().
selectList
(
new
LambdaQueryWrapper
<
JgCertificateReplenishEq
>()
.
eq
(
JgCertificateReplenishEq:
:
getCertificateReplenishId
,
certificateReplenish
.
getSequenceNbr
()));
.
eq
(
JgCertificateReplenishEq:
:
getCertificateReplenishId
,
certificateReplenish
.
getSequenceNbr
()));
if
(
CylinderTypeEnum
.
CYLINDER
.
getCode
().
equals
(
certificateReplenish
.
getEquCategoryCode
())){
if
(
CylinderTypeEnum
.
CYLINDER
.
getCode
().
equals
(
certificateReplenish
.
getEquCategoryCode
())){
JgResumeInfo
Dto
dto
=
JgResumeInfoDt
o
.
builder
().
applyNo
(
certificateReplenish
.
getApplyNo
())
JgResumeInfo
info
=
JgResumeInf
o
.
builder
().
applyNo
(
certificateReplenish
.
getApplyNo
())
.
businessType
(
BusinessTypeEnum
.
JG_REPLACEMENT_REGISTRATION
.
getName
())
.
businessType
(
BusinessTypeEnum
.
JG_REPLACEMENT_REGISTRATION
.
getName
())
.
businessId
(
String
.
valueOf
(
certificateReplenish
.
getSequenceNbr
()))
.
businessId
(
String
.
valueOf
(
certificateReplenish
.
getSequenceNbr
()))
.
approvalUnit
(
certificateReplenish
.
getReceiveOrgName
())
.
approvalUnit
(
certificateReplenish
.
getReceiveOrgName
())
...
@@ -560,20 +560,15 @@ public class JgCertificateReplenishServiceImpl extends BaseService<JgCertificate
...
@@ -560,20 +560,15 @@ public class JgCertificateReplenishServiceImpl extends BaseService<JgCertificate
.
changeContent
(
BusinessTypeEnum
.
JG_REPLACEMENT_REGISTRATION
.
getName
()
+
"业务办理"
)
.
changeContent
(
BusinessTypeEnum
.
JG_REPLACEMENT_REGISTRATION
.
getName
()
+
"业务办理"
)
.
routePath
(
routePath
)
.
routePath
(
routePath
)
.
build
();
.
build
();
jgResumeInfoService
.
save
BatchResume
(
Collections
.
singletonList
(
dto
)
);
jgResumeInfoService
.
save
(
info
);
List
<
JgResumeInfoEq
>
list
=
replenishEqs
.
stream
()
jgResumeInfoEqService
.
saveBatchResumeEq
(
replenishEqs
.
stream
()
.
map
(
eq
->
JgResumeInfoEq
.
builder
()
.
map
(
eq
->
JgResumeInfoEq
.
builder
()
.
resumeId
(
dt
o
.
getSequenceNbr
())
.
resumeId
(
inf
o
.
getSequenceNbr
())
.
equId
(
eq
.
getEquId
())
.
equId
(
eq
.
getEquId
())
.
build
())
.
build
())
.
collect
(
Collectors
.
toList
());
.
collect
(
Collectors
.
toList
()));
for
(
int
i
=
0
;
i
<
list
.
size
();
i
+=
DB_BATCH_SIZE
)
{
jgResumeInfoEqMapper
.
insertBatchSomeColumn
(
list
.
subList
(
i
,
Math
.
min
(
i
+
DB_BATCH_SIZE
,
list
.
size
()))
);
}
}
else
{
}
else
{
jgResumeInfoService
.
saveBatchResume
(
replenishEqs
.
stream
().
map
(
eq
->
JgResumeInfo
Dto
.
builder
().
applyNo
(
certificateReplenish
.
getApplyNo
())
jgResumeInfoService
.
saveBatchResume
(
replenishEqs
.
stream
().
map
(
eq
->
JgResumeInfo
.
builder
().
applyNo
(
certificateReplenish
.
getApplyNo
())
.
businessType
(
BusinessTypeEnum
.
JG_REPLACEMENT_REGISTRATION
.
getName
())
.
businessType
(
BusinessTypeEnum
.
JG_REPLACEMENT_REGISTRATION
.
getName
())
.
businessId
(
String
.
valueOf
(
certificateReplenish
.
getSequenceNbr
()))
.
businessId
(
String
.
valueOf
(
certificateReplenish
.
getSequenceNbr
()))
.
equId
(
eq
.
getEquId
())
.
equId
(
eq
.
getEquId
())
...
...
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/JgChangeRegistrationNameServiceImpl.java
View file @
efb3e7df
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/JgChangeRegistrationReformServiceImpl.java
View file @
efb3e7df
...
@@ -702,8 +702,7 @@ public class JgChangeRegistrationReformServiceImpl extends BaseService<JgChangeR
...
@@ -702,8 +702,7 @@ public class JgChangeRegistrationReformServiceImpl extends BaseService<JgChangeR
* @param routePath 详情
* @param routePath 详情
*/
*/
private
void
createResume
(
JgChangeRegistrationReform
jgChangeRegistrationReform
,
String
routePath
)
{
private
void
createResume
(
JgChangeRegistrationReform
jgChangeRegistrationReform
,
String
routePath
)
{
jgResumeInfoService
.
saveBatchResume
(
Collections
.
singletonList
(
jgResumeInfoService
.
save
(
JgResumeInfo
.
builder
()
JgResumeInfoDto
.
builder
()
.
applyNo
(
jgChangeRegistrationReform
.
getApplyNo
())
.
applyNo
(
jgChangeRegistrationReform
.
getApplyNo
())
.
businessType
(
BusinessTypeEnum
.
JG_RENOVATION_REGISTRATION
.
getName
())
.
businessType
(
BusinessTypeEnum
.
JG_RENOVATION_REGISTRATION
.
getName
())
.
businessId
(
String
.
valueOf
(
jgChangeRegistrationReform
.
getSequenceNbr
()))
.
businessId
(
String
.
valueOf
(
jgChangeRegistrationReform
.
getSequenceNbr
()))
...
@@ -713,9 +712,7 @@ public class JgChangeRegistrationReformServiceImpl extends BaseService<JgChangeR
...
@@ -713,9 +712,7 @@ public class JgChangeRegistrationReformServiceImpl extends BaseService<JgChangeR
.
status
(
"正常"
)
.
status
(
"正常"
)
.
changeContent
(
BusinessTypeEnum
.
JG_RENOVATION_REGISTRATION
.
getName
()
+
"业务办理"
)
.
changeContent
(
BusinessTypeEnum
.
JG_RENOVATION_REGISTRATION
.
getName
()
+
"业务办理"
)
.
routePath
(
routePath
)
.
routePath
(
routePath
)
.
build
()
.
build
());
)
);
}
}
/**
/**
...
@@ -724,8 +721,7 @@ public class JgChangeRegistrationReformServiceImpl extends BaseService<JgChangeR
...
@@ -724,8 +721,7 @@ public class JgChangeRegistrationReformServiceImpl extends BaseService<JgChangeR
* @param routePath 详情
* @param routePath 详情
*/
*/
private
void
createResume
(
JgChangeRegistrationReformEq
jgChangeRegistrationReformEq
,
JgChangeRegistrationReform
jgChangeRegistrationReform
,
String
routePath
)
{
private
void
createResume
(
JgChangeRegistrationReformEq
jgChangeRegistrationReformEq
,
JgChangeRegistrationReform
jgChangeRegistrationReform
,
String
routePath
)
{
jgResumeInfoService
.
saveBatchResume
(
Collections
.
singletonList
(
jgResumeInfoService
.
save
(
JgResumeInfo
.
builder
()
JgResumeInfoDto
.
builder
()
.
applyNo
(
jgChangeRegistrationReform
.
getApplyNo
())
.
applyNo
(
jgChangeRegistrationReform
.
getApplyNo
())
.
businessType
(
BusinessTypeEnum
.
JG_RENOVATION_REGISTRATION
.
getName
())
.
businessType
(
BusinessTypeEnum
.
JG_RENOVATION_REGISTRATION
.
getName
())
.
businessId
(
String
.
valueOf
(
jgChangeRegistrationReform
.
getSequenceNbr
()))
.
businessId
(
String
.
valueOf
(
jgChangeRegistrationReform
.
getSequenceNbr
()))
...
@@ -735,9 +731,7 @@ public class JgChangeRegistrationReformServiceImpl extends BaseService<JgChangeR
...
@@ -735,9 +731,7 @@ public class JgChangeRegistrationReformServiceImpl extends BaseService<JgChangeR
.
status
(
"正常"
)
.
status
(
"正常"
)
.
changeContent
(
BusinessTypeEnum
.
JG_RENOVATION_REGISTRATION
.
getName
()
+
"业务办理"
)
.
changeContent
(
BusinessTypeEnum
.
JG_RENOVATION_REGISTRATION
.
getName
()
+
"业务办理"
)
.
routePath
(
routePath
)
.
routePath
(
routePath
)
.
build
()
.
build
());
)
);
}
}
private
void
sendDataRefreshMsg
(
JgChangeRegistrationReform
jgChangeRegistrationReform
)
{
private
void
sendDataRefreshMsg
(
JgChangeRegistrationReform
jgChangeRegistrationReform
)
{
...
...
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/JgChangeRegistrationTransferServiceImpl.java
View file @
efb3e7df
...
@@ -899,7 +899,7 @@ public class JgChangeRegistrationTransferServiceImpl extends BaseService<JgChang
...
@@ -899,7 +899,7 @@ public class JgChangeRegistrationTransferServiceImpl extends BaseService<JgChang
LambdaQueryWrapper
<
JgChangeRegistrationTransferEq
>
lambda
=
new
QueryWrapper
<
JgChangeRegistrationTransferEq
>().
lambda
();
LambdaQueryWrapper
<
JgChangeRegistrationTransferEq
>
lambda
=
new
QueryWrapper
<
JgChangeRegistrationTransferEq
>().
lambda
();
lambda
.
eq
(
JgChangeRegistrationTransferEq:
:
getEquipTransferId
,
jgChangeRegistrationTransfer
.
getSequenceNbr
());
lambda
.
eq
(
JgChangeRegistrationTransferEq:
:
getEquipTransferId
,
jgChangeRegistrationTransfer
.
getSequenceNbr
());
List
<
JgChangeRegistrationTransferEq
>
changeRegistrationTransferEqs
=
jgChangeRegistrationTransferEqService
.
getBaseMapper
().
selectList
(
lambda
);
List
<
JgChangeRegistrationTransferEq
>
changeRegistrationTransferEqs
=
jgChangeRegistrationTransferEqService
.
getBaseMapper
().
selectList
(
lambda
);
jgResumeInfoService
.
saveBatchResume
(
changeRegistrationTransferEqs
.
stream
().
map
(
eq
->
JgResumeInfo
Dto
.
builder
().
applyNo
(
jgChangeRegistrationTransfer
.
getApplyNo
())
jgResumeInfoService
.
saveBatchResume
(
changeRegistrationTransferEqs
.
stream
().
map
(
eq
->
JgResumeInfo
.
builder
().
applyNo
(
jgChangeRegistrationTransfer
.
getApplyNo
())
.
businessType
(
BusinessTypeEnum
.
JG_CHANGE_REGISTRATION
.
getName
())
.
businessType
(
BusinessTypeEnum
.
JG_CHANGE_REGISTRATION
.
getName
())
.
businessId
(
String
.
valueOf
(
jgChangeRegistrationTransfer
.
getSequenceNbr
()))
.
businessId
(
String
.
valueOf
(
jgChangeRegistrationTransfer
.
getSequenceNbr
()))
.
equId
(
eq
.
getEquId
())
.
equId
(
eq
.
getEquId
())
...
...
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 @
efb3e7df
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/JgChangeVehicleRegistrationUnitServiceImpl.java
View file @
efb3e7df
...
@@ -136,7 +136,10 @@ public class JgChangeVehicleRegistrationUnitServiceImpl extends BaseService<JgCh
...
@@ -136,7 +136,10 @@ public class JgChangeVehicleRegistrationUnitServiceImpl extends BaseService<JgCh
private
EventPublisher
eventPublisher
;
private
EventPublisher
eventPublisher
;
@Autowired
@Autowired
private
JgResumeInfoServiceImpl
jgResumeInfoService
;
private
JgResumeInfoServiceImpl
jgResumeInfoService
;
@Autowired
private
JgResumeInfoEqServiceImpl
jgResumeInfoEqService
;
@Autowired
@Autowired
private
CodeUtil
codeUtil
;
private
CodeUtil
codeUtil
;
...
@@ -479,17 +482,22 @@ public class JgChangeVehicleRegistrationUnitServiceImpl extends BaseService<JgCh
...
@@ -479,17 +482,22 @@ public class JgChangeVehicleRegistrationUnitServiceImpl extends BaseService<JgCh
private
void
createResume
(
JgChangeVehicleRegistrationUnit
changeVehicleRegistrationUnit
,
String
routePath
)
{
private
void
createResume
(
JgChangeVehicleRegistrationUnit
changeVehicleRegistrationUnit
,
String
routePath
)
{
List
<
JgChangeVehicleRegistrationUnitEq
>
registrationUnitEqs
=
getJgChangeVehicleRegistrationUnitEqs
(
changeVehicleRegistrationUnit
);
List
<
JgChangeVehicleRegistrationUnitEq
>
registrationUnitEqs
=
getJgChangeVehicleRegistrationUnitEqs
(
changeVehicleRegistrationUnit
);
jgResumeInfoService
.
saveBatchResume
(
registrationUnitEqs
.
stream
().
map
(
eq
->
JgResumeInfoDt
o
.
builder
().
applyNo
(
changeVehicleRegistrationUnit
.
getApplyNo
())
JgResumeInfo
info
=
JgResumeInf
o
.
builder
().
applyNo
(
changeVehicleRegistrationUnit
.
getApplyNo
())
.
businessType
(
BusinessTypeEnum
.
JG_VEHICLE_GAS_CYLINDER_CHANGE
.
getName
())
.
businessType
(
BusinessTypeEnum
.
JG_VEHICLE_GAS_CYLINDER_CHANGE
.
getName
())
.
businessId
(
String
.
valueOf
(
changeVehicleRegistrationUnit
.
getSequenceNbr
()))
.
businessId
(
String
.
valueOf
(
changeVehicleRegistrationUnit
.
getSequenceNbr
()))
.
equId
(
eq
.
getEquId
())
.
approvalUnit
(
changeVehicleRegistrationUnit
.
getReceiveOrgName
())
.
approvalUnit
(
changeVehicleRegistrationUnit
.
getReceiveOrgName
())
.
approvalUnitCode
(
changeVehicleRegistrationUnit
.
getReceiveOrgCode
())
.
approvalUnitCode
(
changeVehicleRegistrationUnit
.
getReceiveOrgCode
())
.
status
(
"正常"
)
.
status
(
"正常"
)
.
changeContent
(
BusinessTypeEnum
.
JG_VEHICLE_GAS_CYLINDER_CHANGE
.
getName
()
+
"业务办理"
)
.
changeContent
(
BusinessTypeEnum
.
JG_VEHICLE_GAS_CYLINDER_CHANGE
.
getName
()
+
"业务办理"
)
.
routePath
(
routePath
)
.
routePath
(
routePath
)
.
build
()).
collect
(
Collectors
.
toList
())
.
build
();
);
jgResumeInfoService
.
save
(
info
);
jgResumeInfoEqService
.
saveBatchResumeEq
(
registrationUnitEqs
.
stream
()
.
map
(
eq
->
JgResumeInfoEq
.
builder
()
.
resumeId
(
info
.
getSequenceNbr
())
.
equId
(
eq
.
getEquId
())
.
build
())
.
collect
(
Collectors
.
toList
()));
}
}
private
List
<
JgChangeVehicleRegistrationUnitEq
>
getJgChangeVehicleRegistrationUnitEqs
(
JgChangeVehicleRegistrationUnit
changeVehicleRegistrationUnit
)
{
private
List
<
JgChangeVehicleRegistrationUnitEq
>
getJgChangeVehicleRegistrationUnitEqs
(
JgChangeVehicleRegistrationUnit
changeVehicleRegistrationUnit
)
{
...
...
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 @
efb3e7df
...
@@ -96,7 +96,7 @@ public class JgEnableDisableServiceImpl extends BaseService<JgEnableDisableDto,
...
@@ -96,7 +96,7 @@ public class JgEnableDisableServiceImpl extends BaseService<JgEnableDisableDto,
@Autowired
@Autowired
JgResumeInfoServiceImpl
jgResumeInfoService
;
JgResumeInfoServiceImpl
jgResumeInfoService
;
@Autowired
@Autowired
private
JgResumeInfoEq
Mapper
jgResumeInfoEqMapper
;
private
JgResumeInfoEq
ServiceImpl
jgResumeInfoEqService
;
@Autowired
@Autowired
private
CommonServiceImpl
commonService
;
private
CommonServiceImpl
commonService
;
...
@@ -705,35 +705,34 @@ public class JgEnableDisableServiceImpl extends BaseService<JgEnableDisableDto,
...
@@ -705,35 +705,34 @@ public class JgEnableDisableServiceImpl extends BaseService<JgEnableDisableDto,
String
equListCode
=
jgEnableDisable
.
getEquListCode
();
String
equListCode
=
jgEnableDisable
.
getEquListCode
();
// 1️⃣ 压力管道:按装置记录履历
// 1️⃣ 压力管道:按装置记录履历
if
(
EquipmentClassifityEnum
.
YLGD
.
getCode
().
equals
(
equListCode
))
{
if
(
EquipmentClassifityEnum
.
YLGD
.
getCode
().
equals
(
equListCode
))
{
JgResumeInfo
Dto
resume
=
buildBaseResume
(
jgEnableDisable
,
routePath
);
JgResumeInfo
resume
=
buildBaseResume
(
jgEnableDisable
,
routePath
);
resume
.
setEquId
(
jgEnableDisable
.
getProjectContraptionId
());
resume
.
setEquId
(
jgEnableDisable
.
getProjectContraptionId
());
jgResumeInfoService
.
save
BatchResume
(
Collections
.
singletonList
(
resume
)
);
jgResumeInfoService
.
save
(
resume
);
return
;
return
;
}
}
// 2️⃣ 气瓶:一条履历 + 多设备关系
// 2️⃣ 气瓶:一条履历 + 多设备关系
if
(
CylinderTypeEnum
.
CYLINDER
.
getCode
().
equals
(
equListCode
))
{
if
(
CylinderTypeEnum
.
CYLINDER
.
getCode
().
equals
(
equListCode
))
{
JgResumeInfo
Dto
resume
=
buildBaseResume
(
jgEnableDisable
,
routePath
);
JgResumeInfo
resume
=
buildBaseResume
(
jgEnableDisable
,
routePath
);
jgResumeInfoService
.
saveBatchResume
(
Collections
.
singletonList
(
resume
));
jgResumeInfoService
.
saveBatchResume
(
Collections
.
singletonList
(
resume
));
batchInsertResumeEq
(
resume
.
getSequenceNbr
(),
enableDisableEqs
);
this
.
batchInsertResumeEq
(
resume
.
getSequenceNbr
(),
enableDisableEqs
);
return
;
return
;
}
}
// 3️⃣ 其他设备:按设备直接记履历
// 3️⃣ 其他设备:按设备直接记履历
List
<
JgResumeInfo
Dto
>
resumeList
=
enableDisableEqs
.
stream
()
List
<
JgResumeInfo
>
resumeList
=
enableDisableEqs
.
stream
()
.
map
(
eq
->
{
.
map
(
eq
->
{
JgResumeInfo
Dto
dto
=
buildBaseResume
(
jgEnableDisable
,
routePath
);
JgResumeInfo
dto
=
buildBaseResume
(
jgEnableDisable
,
routePath
);
dto
.
setEquId
(
eq
.
getEquId
());
dto
.
setEquId
(
eq
.
getEquId
());
return
dto
;
return
dto
;
})
})
.
collect
(
Collectors
.
toList
());
.
collect
(
Collectors
.
toList
());
jgResumeInfoService
.
saveBatchResume
(
resumeList
);
jgResumeInfoService
.
saveBatchResume
(
resumeList
);
}
}
private
JgResumeInfo
Dto
buildBaseResume
(
JgEnableDisable
jgEnableDisable
,
String
routePath
)
{
private
JgResumeInfo
buildBaseResume
(
JgEnableDisable
jgEnableDisable
,
String
routePath
)
{
return
JgResumeInfo
Dto
.
builder
()
return
JgResumeInfo
.
builder
()
.
applyNo
(
jgEnableDisable
.
getApplyNo
())
.
applyNo
(
jgEnableDisable
.
getApplyNo
())
.
businessType
(
getRegistrationClass
(
jgEnableDisable
))
.
businessType
(
getRegistrationClass
(
jgEnableDisable
))
.
businessId
(
String
.
valueOf
(
jgEnableDisable
.
getSequenceNbr
()))
.
businessId
(
String
.
valueOf
(
jgEnableDisable
.
getSequenceNbr
()))
...
@@ -751,18 +750,11 @@ public class JgEnableDisableServiceImpl extends BaseService<JgEnableDisableDto,
...
@@ -751,18 +750,11 @@ public class JgEnableDisableServiceImpl extends BaseService<JgEnableDisableDto,
if
(
CollectionUtils
.
isEmpty
(
eqs
))
{
if
(
CollectionUtils
.
isEmpty
(
eqs
))
{
return
;
return
;
}
}
List
<
JgResumeInfoEq
>
list
=
eqs
.
stream
()
jgResumeInfoEqService
.
saveBatchResumeEq
(
eqs
.
stream
()
.
map
(
eq
->
JgResumeInfoEq
.
builder
()
.
map
(
eq
->
JgResumeInfoEq
.
builder
()
.
resumeId
(
resumeId
)
.
resumeId
(
resumeId
)
.
equId
(
eq
.
getEquId
())
.
equId
(
eq
.
getEquId
())
.
build
())
.
build
()).
collect
(
Collectors
.
toList
()));
.
collect
(
Collectors
.
toList
());
for
(
int
i
=
0
;
i
<
list
.
size
();
i
+=
DB_BATCH_SIZE
)
{
jgResumeInfoEqMapper
.
insertBatchSomeColumn
(
list
.
subList
(
i
,
Math
.
min
(
i
+
DB_BATCH_SIZE
,
list
.
size
()))
);
}
}
}
private
void
sendDataRefreshMsg
(
JgEnableDisable
jgEnableDisable
)
{
private
void
sendDataRefreshMsg
(
JgEnableDisable
jgEnableDisable
)
{
...
...
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/JgEquipTransferServiceImpl.java
View file @
efb3e7df
...
@@ -24,6 +24,7 @@ import com.yeejoin.amos.boot.module.jg.api.dto.*;
...
@@ -24,6 +24,7 @@ import com.yeejoin.amos.boot.module.jg.api.dto.*;
import
com.yeejoin.amos.boot.module.jg.api.entity.JgEquipTransfer
;
import
com.yeejoin.amos.boot.module.jg.api.entity.JgEquipTransfer
;
import
com.yeejoin.amos.boot.module.jg.api.entity.JgEquipTransferEq
;
import
com.yeejoin.amos.boot.module.jg.api.entity.JgEquipTransferEq
;
import
com.yeejoin.amos.boot.module.jg.api.entity.JgRegistrationHistory
;
import
com.yeejoin.amos.boot.module.jg.api.entity.JgRegistrationHistory
;
import
com.yeejoin.amos.boot.module.jg.api.entity.JgResumeInfo
;
import
com.yeejoin.amos.boot.module.jg.api.enums.BusinessTypeEnum
;
import
com.yeejoin.amos.boot.module.jg.api.enums.BusinessTypeEnum
;
import
com.yeejoin.amos.boot.module.jg.api.enums.CompanyTypeEnum
;
import
com.yeejoin.amos.boot.module.jg.api.enums.CompanyTypeEnum
;
import
com.yeejoin.amos.boot.module.jg.api.mapper.JgEquipTransferEqMapper
;
import
com.yeejoin.amos.boot.module.jg.api.mapper.JgEquipTransferEqMapper
;
...
@@ -649,7 +650,7 @@ public class JgEquipTransferServiceImpl extends BaseService<JgEquipTransferDto,
...
@@ -649,7 +650,7 @@ public class JgEquipTransferServiceImpl extends BaseService<JgEquipTransferDto,
private
void
createResume
(
List
<
JgEquipTransferEq
>
equipTransferEqList
,
JgEquipTransfer
equipTransfer
,
String
routePath
)
{
private
void
createResume
(
List
<
JgEquipTransferEq
>
equipTransferEqList
,
JgEquipTransfer
equipTransfer
,
String
routePath
)
{
if
(
StringUtils
.
hasText
(
equipTransfer
.
getProjectContraptionSeq
())){
if
(
StringUtils
.
hasText
(
equipTransfer
.
getProjectContraptionSeq
())){
jgResumeInfoService
.
saveBatchResume
(
Collections
.
singletonList
(
jgResumeInfoService
.
saveBatchResume
(
Collections
.
singletonList
(
JgResumeInfo
Dto
.
builder
()
JgResumeInfo
.
builder
()
.
applyNo
(
equipTransfer
.
getApplyNo
())
.
applyNo
(
equipTransfer
.
getApplyNo
())
.
businessType
(
BusinessTypeEnum
.
JG_EQUIPMENT_HANDOVER
.
getName
())
.
businessType
(
BusinessTypeEnum
.
JG_EQUIPMENT_HANDOVER
.
getName
())
.
businessId
(
String
.
valueOf
(
equipTransfer
.
getSequenceNbr
()))
.
businessId
(
String
.
valueOf
(
equipTransfer
.
getSequenceNbr
()))
...
@@ -663,7 +664,7 @@ public class JgEquipTransferServiceImpl extends BaseService<JgEquipTransferDto,
...
@@ -663,7 +664,7 @@ public class JgEquipTransferServiceImpl extends BaseService<JgEquipTransferDto,
)
)
);
);
}
else
{
}
else
{
jgResumeInfoService
.
saveBatchResume
(
equipTransferEqList
.
stream
().
map
(
eq
->
JgResumeInfo
Dto
.
builder
().
applyNo
(
equipTransfer
.
getApplyNo
())
jgResumeInfoService
.
saveBatchResume
(
equipTransferEqList
.
stream
().
map
(
eq
->
JgResumeInfo
.
builder
().
applyNo
(
equipTransfer
.
getApplyNo
())
.
businessType
(
BusinessTypeEnum
.
JG_EQUIPMENT_HANDOVER
.
getName
())
.
businessType
(
BusinessTypeEnum
.
JG_EQUIPMENT_HANDOVER
.
getName
())
.
businessId
(
String
.
valueOf
(
equipTransfer
.
getSequenceNbr
()))
.
businessId
(
String
.
valueOf
(
equipTransfer
.
getSequenceNbr
()))
.
equId
(
eq
.
getEquId
())
.
equId
(
eq
.
getEquId
())
...
...
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 @
efb3e7df
...
@@ -1381,7 +1381,7 @@ public class JgInstallationNoticeServiceImpl extends BaseService<JgInstallationN
...
@@ -1381,7 +1381,7 @@ public class JgInstallationNoticeServiceImpl extends BaseService<JgInstallationN
// 处理工业管道审批后业务数据保存
// 处理工业管道审批后业务数据保存
this
.
savePipelineData
(
jgInstallationNotice
,
jgRelationEquips
,
finalYm
,
dto
,
taskV2Model1
,
esEquipmentDtos
);
this
.
savePipelineData
(
jgInstallationNotice
,
jgRelationEquips
,
finalYm
,
dto
,
taskV2Model1
,
esEquipmentDtos
);
jgResumeInfoService
.
saveBatchResume
(
jgResumeInfoService
.
saveBatchResume
(
Lists
.
newArrayList
(
JgResumeInfo
Dto
.
builder
()
Lists
.
newArrayList
(
JgResumeInfo
.
builder
()
.
applyNo
(
jgInstallationNotice
.
getApplyNo
())
.
applyNo
(
jgInstallationNotice
.
getApplyNo
())
.
businessType
(
BusinessTypeEnum
.
JG_INSTALLATION_NOTIFICATION
.
getName
())
.
businessType
(
BusinessTypeEnum
.
JG_INSTALLATION_NOTIFICATION
.
getName
())
.
businessId
(
String
.
valueOf
(
jgInstallationNotice
.
getSequenceNbr
()))
.
businessId
(
String
.
valueOf
(
jgInstallationNotice
.
getSequenceNbr
()))
...
@@ -1469,7 +1469,7 @@ public class JgInstallationNoticeServiceImpl extends BaseService<JgInstallationN
...
@@ -1469,7 +1469,7 @@ public class JgInstallationNoticeServiceImpl extends BaseService<JgInstallationN
});
});
jgResumeInfoService
.
saveBatchResume
(
jgResumeInfoService
.
saveBatchResume
(
jgRelationEquips
.
stream
()
jgRelationEquips
.
stream
()
.
map
(
v
->
JgResumeInfo
Dto
.
builder
()
.
map
(
v
->
JgResumeInfo
.
builder
()
.
applyNo
(
jgInstallationNotice
.
getApplyNo
())
.
applyNo
(
jgInstallationNotice
.
getApplyNo
())
.
businessType
(
BusinessTypeEnum
.
JG_INSTALLATION_NOTIFICATION
.
getName
())
.
businessType
(
BusinessTypeEnum
.
JG_INSTALLATION_NOTIFICATION
.
getName
())
.
businessId
(
String
.
valueOf
(
jgInstallationNotice
.
getSequenceNbr
()))
.
businessId
(
String
.
valueOf
(
jgInstallationNotice
.
getSequenceNbr
()))
...
@@ -2480,7 +2480,7 @@ public class JgInstallationNoticeServiceImpl extends BaseService<JgInstallationN
...
@@ -2480,7 +2480,7 @@ public class JgInstallationNoticeServiceImpl extends BaseService<JgInstallationN
// 处理工业管道审批后业务数据保存
// 处理工业管道审批后业务数据保存
this
.
savePipelineData
(
jgInstallationNotice
,
jgRelationEquips
,
finalYm
,
dto
,
taskV2Model1
,
esEquipmentDtos
);
this
.
savePipelineData
(
jgInstallationNotice
,
jgRelationEquips
,
finalYm
,
dto
,
taskV2Model1
,
esEquipmentDtos
);
jgResumeInfoService
.
saveBatchResume
(
jgResumeInfoService
.
saveBatchResume
(
Lists
.
newArrayList
(
JgResumeInfo
Dto
.
builder
()
Lists
.
newArrayList
(
JgResumeInfo
.
builder
()
.
applyNo
(
jgInstallationNotice
.
getApplyNo
())
.
applyNo
(
jgInstallationNotice
.
getApplyNo
())
.
businessType
(
BusinessTypeEnum
.
JG_INSTALLATION_NOTIFICATION
.
getName
())
.
businessType
(
BusinessTypeEnum
.
JG_INSTALLATION_NOTIFICATION
.
getName
())
.
businessId
(
String
.
valueOf
(
jgInstallationNotice
.
getSequenceNbr
()))
.
businessId
(
String
.
valueOf
(
jgInstallationNotice
.
getSequenceNbr
()))
...
@@ -2568,7 +2568,7 @@ public class JgInstallationNoticeServiceImpl extends BaseService<JgInstallationN
...
@@ -2568,7 +2568,7 @@ public class JgInstallationNoticeServiceImpl extends BaseService<JgInstallationN
});
});
jgResumeInfoService
.
saveBatchResume
(
jgResumeInfoService
.
saveBatchResume
(
jgRelationEquips
.
stream
()
jgRelationEquips
.
stream
()
.
map
(
v
->
JgResumeInfo
Dto
.
builder
()
.
map
(
v
->
JgResumeInfo
.
builder
()
.
applyNo
(
jgInstallationNotice
.
getApplyNo
())
.
applyNo
(
jgInstallationNotice
.
getApplyNo
())
.
businessType
(
BusinessTypeEnum
.
JG_INSTALLATION_NOTIFICATION
.
getName
())
.
businessType
(
BusinessTypeEnum
.
JG_INSTALLATION_NOTIFICATION
.
getName
())
.
businessId
(
String
.
valueOf
(
jgInstallationNotice
.
getSequenceNbr
()))
.
businessId
(
String
.
valueOf
(
jgInstallationNotice
.
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/JgMaintainNoticeServiceImpl.java
View file @
efb3e7df
...
@@ -1127,7 +1127,7 @@ public class JgMaintainNoticeServiceImpl extends BaseService<JgMaintainNoticeDto
...
@@ -1127,7 +1127,7 @@ public class JgMaintainNoticeServiceImpl extends BaseService<JgMaintainNoticeDto
private
void
createResume
(
List
<
JgMaintainNoticeEq
>
jgRelationEquips
,
JgMaintainNotice
notice
,
String
routePath
)
{
private
void
createResume
(
List
<
JgMaintainNoticeEq
>
jgRelationEquips
,
JgMaintainNotice
notice
,
String
routePath
)
{
if
(
StringUtils
.
hasText
(
notice
.
getProjectContraptionId
()))
{
if
(
StringUtils
.
hasText
(
notice
.
getProjectContraptionId
()))
{
jgResumeInfoService
.
saveBatchResume
(
Collections
.
singletonList
(
jgResumeInfoService
.
saveBatchResume
(
Collections
.
singletonList
(
JgResumeInfo
Dto
.
builder
()
JgResumeInfo
.
builder
()
.
applyNo
(
notice
.
getApplyNo
())
.
applyNo
(
notice
.
getApplyNo
())
.
businessType
(
BusinessTypeEnum
.
JG_MAINTENANCE_NOTIFICATION
.
getName
())
.
businessType
(
BusinessTypeEnum
.
JG_MAINTENANCE_NOTIFICATION
.
getName
())
.
businessId
(
String
.
valueOf
(
notice
.
getSequenceNbr
()))
.
businessId
(
String
.
valueOf
(
notice
.
getSequenceNbr
()))
...
@@ -1141,7 +1141,7 @@ public class JgMaintainNoticeServiceImpl extends BaseService<JgMaintainNoticeDto
...
@@ -1141,7 +1141,7 @@ public class JgMaintainNoticeServiceImpl extends BaseService<JgMaintainNoticeDto
)
)
);
);
}
else
{
}
else
{
jgResumeInfoService
.
saveBatchResume
(
jgRelationEquips
.
stream
().
map
(
eq
->
JgResumeInfo
Dto
.
builder
().
applyNo
(
notice
.
getApplyNo
())
jgResumeInfoService
.
saveBatchResume
(
jgRelationEquips
.
stream
().
map
(
eq
->
JgResumeInfo
.
builder
().
applyNo
(
notice
.
getApplyNo
())
.
businessType
(
BusinessTypeEnum
.
JG_MAINTENANCE_NOTIFICATION
.
getName
())
.
businessType
(
BusinessTypeEnum
.
JG_MAINTENANCE_NOTIFICATION
.
getName
())
.
businessId
(
String
.
valueOf
(
notice
.
getSequenceNbr
()))
.
businessId
(
String
.
valueOf
(
notice
.
getSequenceNbr
()))
.
equId
(
eq
.
getEquId
())
.
equId
(
eq
.
getEquId
())
...
...
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 @
efb3e7df
...
@@ -16,6 +16,7 @@ import com.yeejoin.amos.boot.module.jg.api.dto.*;
...
@@ -16,6 +16,7 @@ import com.yeejoin.amos.boot.module.jg.api.dto.*;
import
com.yeejoin.amos.boot.module.jg.api.entity.JgMaintenanceContract
;
import
com.yeejoin.amos.boot.module.jg.api.entity.JgMaintenanceContract
;
import
com.yeejoin.amos.boot.module.jg.api.entity.JgMaintenanceContractEq
;
import
com.yeejoin.amos.boot.module.jg.api.entity.JgMaintenanceContractEq
;
import
com.yeejoin.amos.boot.module.jg.api.entity.JgRegistrationHistory
;
import
com.yeejoin.amos.boot.module.jg.api.entity.JgRegistrationHistory
;
import
com.yeejoin.amos.boot.module.jg.api.entity.JgResumeInfo
;
import
com.yeejoin.amos.boot.module.jg.api.enums.BusinessTypeEnum
;
import
com.yeejoin.amos.boot.module.jg.api.enums.BusinessTypeEnum
;
import
com.yeejoin.amos.boot.module.jg.api.enums.CompanyTypeEnum
;
import
com.yeejoin.amos.boot.module.jg.api.enums.CompanyTypeEnum
;
import
com.yeejoin.amos.boot.module.jg.api.enums.SafetyProblemTypeEnum
;
import
com.yeejoin.amos.boot.module.jg.api.enums.SafetyProblemTypeEnum
;
...
@@ -740,7 +741,7 @@ public class JgMaintenanceContractServiceImpl extends BaseService<JgMaintenanceC
...
@@ -740,7 +741,7 @@ public class JgMaintenanceContractServiceImpl extends BaseService<JgMaintenanceC
private
void
createResume
(
JgMaintenanceContract
maintenanceContract
,
String
routePath
)
{
private
void
createResume
(
JgMaintenanceContract
maintenanceContract
,
String
routePath
)
{
List
<
JgMaintenanceContractEq
>
maintenanceContractEqs
=
getJgMaintenanceContractEqs
(
maintenanceContract
.
getSequenceNbr
());
List
<
JgMaintenanceContractEq
>
maintenanceContractEqs
=
getJgMaintenanceContractEqs
(
maintenanceContract
.
getSequenceNbr
());
jgResumeInfoService
.
saveBatchResume
(
maintenanceContractEqs
.
stream
().
map
(
eq
->
JgResumeInfo
Dto
.
builder
().
applyNo
(
maintenanceContract
.
getApplyNo
())
jgResumeInfoService
.
saveBatchResume
(
maintenanceContractEqs
.
stream
().
map
(
eq
->
JgResumeInfo
.
builder
().
applyNo
(
maintenanceContract
.
getApplyNo
())
.
businessType
(
BusinessTypeEnum
.
JG_MAINTENANCE_RECORD
.
getName
())
.
businessType
(
BusinessTypeEnum
.
JG_MAINTENANCE_RECORD
.
getName
())
.
businessId
(
String
.
valueOf
(
maintenanceContract
.
getSequenceNbr
()))
.
businessId
(
String
.
valueOf
(
maintenanceContract
.
getSequenceNbr
()))
.
equId
(
eq
.
getEquId
())
.
equId
(
eq
.
getEquId
())
...
@@ -760,7 +761,7 @@ public class JgMaintenanceContractServiceImpl extends BaseService<JgMaintenanceC
...
@@ -760,7 +761,7 @@ public class JgMaintenanceContractServiceImpl extends BaseService<JgMaintenanceC
/**
/**
* 流程结束后添加设备维保信息
* 流程结束后添加设备维保信息
*
*
* @param
id
* @param
jgMaintenanceContract 维保信息
*/
*/
@SneakyThrows
@SneakyThrows
private
void
updateEquipMessage
(
JgMaintenanceContract
jgMaintenanceContract
)
{
private
void
updateEquipMessage
(
JgMaintenanceContract
jgMaintenanceContract
)
{
...
...
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/JgOverDesignServiceLifeServiceImpl.java
View file @
efb3e7df
...
@@ -114,7 +114,7 @@ public class JgOverDesignServiceLifeServiceImpl extends BaseService<JgOverDesign
...
@@ -114,7 +114,7 @@ public class JgOverDesignServiceLifeServiceImpl extends BaseService<JgOverDesign
private
final
JgUseRegistrationManageServiceImpl
useRegistrationManageService
;
private
final
JgUseRegistrationManageServiceImpl
useRegistrationManageService
;
private
final
IIdxBizJgInspectionDetectionInfoService
iIdxBizJgInspectionDetectionInfoService
;
private
final
IIdxBizJgInspectionDetectionInfoService
iIdxBizJgInspectionDetectionInfoService
;
private
final
JgResumeInfoServiceImpl
jgResumeInfoService
;
private
final
JgResumeInfoServiceImpl
jgResumeInfoService
;
private
final
JgResumeInfoEq
Mapper
jgResumeInfoEqMapper
;
private
final
JgResumeInfoEq
ServiceImpl
jgResumeInfoEqService
;
private
final
InspectionDetectionInfoMapper
inspectionDetectionInfoMapper
;
private
final
InspectionDetectionInfoMapper
inspectionDetectionInfoMapper
;
private
final
SnowflakeIdUtil
sequence
;
private
final
SnowflakeIdUtil
sequence
;
private
final
EventPublisher
eventPublisher
;
private
final
EventPublisher
eventPublisher
;
...
@@ -732,7 +732,7 @@ public class JgOverDesignServiceLifeServiceImpl extends BaseService<JgOverDesign
...
@@ -732,7 +732,7 @@ public class JgOverDesignServiceLifeServiceImpl extends BaseService<JgOverDesign
private
void
saveResumeInfo
(
TaskV2Model
taskV2Model
,
JgOverDesignServiceLife
jgOverDesignServiceLife
,
List
<
IdxBizJgDesignInfo
>
designInfoList
)
{
private
void
saveResumeInfo
(
TaskV2Model
taskV2Model
,
JgOverDesignServiceLife
jgOverDesignServiceLife
,
List
<
IdxBizJgDesignInfo
>
designInfoList
)
{
if
(
CylinderTypeEnum
.
CYLINDER
.
getCode
().
equals
(
jgOverDesignServiceLife
.
getEquCategory
())){
if
(
CylinderTypeEnum
.
CYLINDER
.
getCode
().
equals
(
jgOverDesignServiceLife
.
getEquCategory
())){
JgResumeInfo
Dto
dto
=
JgResumeInfoDt
o
.
builder
().
applyNo
(
jgOverDesignServiceLife
.
getApplyNo
())
JgResumeInfo
info
=
JgResumeInf
o
.
builder
().
applyNo
(
jgOverDesignServiceLife
.
getApplyNo
())
.
businessType
(
BusinessTypeEnum
.
JG_OVER_DESIGN_SERVICE_LIFE
.
getName
())
.
businessType
(
BusinessTypeEnum
.
JG_OVER_DESIGN_SERVICE_LIFE
.
getName
())
.
businessId
(
String
.
valueOf
(
jgOverDesignServiceLife
.
getSequenceNbr
()))
.
businessId
(
String
.
valueOf
(
jgOverDesignServiceLife
.
getSequenceNbr
()))
.
approvalUnit
(
jgOverDesignServiceLife
.
getReceiveOrgName
())
.
approvalUnit
(
jgOverDesignServiceLife
.
getReceiveOrgName
())
...
@@ -741,20 +741,15 @@ public class JgOverDesignServiceLifeServiceImpl extends BaseService<JgOverDesign
...
@@ -741,20 +741,15 @@ public class JgOverDesignServiceLifeServiceImpl extends BaseService<JgOverDesign
.
changeContent
(
BusinessTypeEnum
.
JG_OVER_DESIGN_SERVICE_LIFE
.
getName
()
+
"业务办理"
)
.
changeContent
(
BusinessTypeEnum
.
JG_OVER_DESIGN_SERVICE_LIFE
.
getName
()
+
"业务办理"
)
.
routePath
(
taskV2Model
.
getRoutePath
())
.
routePath
(
taskV2Model
.
getRoutePath
())
.
build
();
.
build
();
jgResumeInfoService
.
save
BatchResume
(
Collections
.
singletonList
(
dto
)
);
jgResumeInfoService
.
save
(
info
);
List
<
JgResumeInfoEq
>
list
=
designInfoList
.
stream
()
jgResumeInfoEqService
.
saveBatchResumeEq
(
designInfoList
.
stream
()
.
map
(
eq
->
JgResumeInfoEq
.
builder
()
.
map
(
eq
->
JgResumeInfoEq
.
builder
()
.
resumeId
(
dt
o
.
getSequenceNbr
())
.
resumeId
(
inf
o
.
getSequenceNbr
())
.
equId
(
eq
.
getRecord
())
.
equId
(
eq
.
getRecord
())
.
build
())
.
build
())
.
collect
(
Collectors
.
toList
());
.
collect
(
Collectors
.
toList
()));
for
(
int
i
=
0
;
i
<
list
.
size
();
i
+=
DB_BATCH_SIZE
)
{
jgResumeInfoEqMapper
.
insertBatchSomeColumn
(
list
.
subList
(
i
,
Math
.
min
(
i
+
DB_BATCH_SIZE
,
list
.
size
()))
);
}
}
else
{
}
else
{
jgResumeInfoService
.
saveBatchResume
(
designInfoList
.
stream
().
map
(
eq
->
JgResumeInfo
Dto
.
builder
().
applyNo
(
jgOverDesignServiceLife
.
getApplyNo
())
jgResumeInfoService
.
saveBatchResume
(
designInfoList
.
stream
().
map
(
eq
->
JgResumeInfo
.
builder
().
applyNo
(
jgOverDesignServiceLife
.
getApplyNo
())
.
businessType
(
BusinessTypeEnum
.
JG_OVER_DESIGN_SERVICE_LIFE
.
getName
())
.
businessType
(
BusinessTypeEnum
.
JG_OVER_DESIGN_SERVICE_LIFE
.
getName
())
.
businessId
(
String
.
valueOf
(
jgOverDesignServiceLife
.
getSequenceNbr
()))
.
businessId
(
String
.
valueOf
(
jgOverDesignServiceLife
.
getSequenceNbr
()))
.
equId
(
eq
.
getRecord
())
.
equId
(
eq
.
getRecord
())
...
...
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 @
efb3e7df
...
@@ -31,6 +31,7 @@ import com.yeejoin.amos.boot.module.jg.api.dto.*;
...
@@ -31,6 +31,7 @@ import com.yeejoin.amos.boot.module.jg.api.dto.*;
import
com.yeejoin.amos.boot.module.jg.api.entity.JgReformNotice
;
import
com.yeejoin.amos.boot.module.jg.api.entity.JgReformNotice
;
import
com.yeejoin.amos.boot.module.jg.api.entity.JgReformNoticeEq
;
import
com.yeejoin.amos.boot.module.jg.api.entity.JgReformNoticeEq
;
import
com.yeejoin.amos.boot.module.jg.api.entity.JgRegistrationHistory
;
import
com.yeejoin.amos.boot.module.jg.api.entity.JgRegistrationHistory
;
import
com.yeejoin.amos.boot.module.jg.api.entity.JgResumeInfo
;
import
com.yeejoin.amos.boot.module.jg.api.enums.BusinessTypeEnum
;
import
com.yeejoin.amos.boot.module.jg.api.enums.BusinessTypeEnum
;
import
com.yeejoin.amos.boot.module.jg.api.mapper.JgReformNoticeEqMapper
;
import
com.yeejoin.amos.boot.module.jg.api.mapper.JgReformNoticeEqMapper
;
import
com.yeejoin.amos.boot.module.jg.api.mapper.JgReformNoticeMapper
;
import
com.yeejoin.amos.boot.module.jg.api.mapper.JgReformNoticeMapper
;
...
@@ -1063,8 +1064,7 @@ public class JgReformNoticeServiceImpl extends BaseService<JgReformNoticeDto, Jg
...
@@ -1063,8 +1064,7 @@ public class JgReformNoticeServiceImpl extends BaseService<JgReformNoticeDto, Jg
private
void
createResume
(
List
<
JgReformNoticeEq
>
jgRelationEquips
,
JgReformNotice
notice
,
String
routePath
)
{
private
void
createResume
(
List
<
JgReformNoticeEq
>
jgRelationEquips
,
JgReformNotice
notice
,
String
routePath
)
{
if
(
StringUtils
.
hasText
(
notice
.
getProjectContraptionId
())){
if
(
StringUtils
.
hasText
(
notice
.
getProjectContraptionId
())){
jgResumeInfoService
.
saveBatchResume
(
Collections
.
singletonList
(
jgResumeInfoService
.
save
(
JgResumeInfo
.
builder
()
JgResumeInfoDto
.
builder
()
.
applyNo
(
notice
.
getApplyNo
())
.
applyNo
(
notice
.
getApplyNo
())
.
businessType
(
BusinessTypeEnum
.
JG_MODIFICATION_NOTIFICATION
.
getName
())
.
businessType
(
BusinessTypeEnum
.
JG_MODIFICATION_NOTIFICATION
.
getName
())
.
businessId
(
String
.
valueOf
(
notice
.
getSequenceNbr
()))
.
businessId
(
String
.
valueOf
(
notice
.
getSequenceNbr
()))
...
@@ -1074,11 +1074,9 @@ public class JgReformNoticeServiceImpl extends BaseService<JgReformNoticeDto, Jg
...
@@ -1074,11 +1074,9 @@ public class JgReformNoticeServiceImpl extends BaseService<JgReformNoticeDto, Jg
.
status
(
"正常"
)
.
status
(
"正常"
)
.
changeContent
(
BusinessTypeEnum
.
JG_MODIFICATION_NOTIFICATION
.
getName
()
+
"业务办理"
)
.
changeContent
(
BusinessTypeEnum
.
JG_MODIFICATION_NOTIFICATION
.
getName
()
+
"业务办理"
)
.
routePath
(
routePath
)
.
routePath
(
routePath
)
.
build
()
.
build
());
)
);
}
else
{
}
else
{
jgResumeInfoService
.
saveBatchResume
(
jgRelationEquips
.
stream
().
map
(
eq
->
JgResumeInfo
Dto
.
builder
().
applyNo
(
notice
.
getApplyNo
())
jgResumeInfoService
.
saveBatchResume
(
jgRelationEquips
.
stream
().
map
(
eq
->
JgResumeInfo
.
builder
().
applyNo
(
notice
.
getApplyNo
())
.
businessType
(
BusinessTypeEnum
.
JG_MODIFICATION_NOTIFICATION
.
getName
())
.
businessType
(
BusinessTypeEnum
.
JG_MODIFICATION_NOTIFICATION
.
getName
())
.
businessId
(
String
.
valueOf
(
notice
.
getSequenceNbr
()))
.
businessId
(
String
.
valueOf
(
notice
.
getSequenceNbr
()))
.
equId
(
eq
.
getEquId
())
.
equId
(
eq
.
getEquId
())
...
...
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/JgResumeInfoEqServiceImpl.java
View file @
efb3e7df
...
@@ -29,4 +29,8 @@ public class JgResumeInfoEqServiceImpl extends BaseService<JgResumeInfoEq,JgResu
...
@@ -29,4 +29,8 @@ public class JgResumeInfoEqServiceImpl extends BaseService<JgResumeInfoEq,JgResu
public
List
<
JgResumeInfoEq
>
queryForJgResumeInfoEqList
()
{
public
List
<
JgResumeInfoEq
>
queryForJgResumeInfoEqList
()
{
return
this
.
queryForList
(
""
,
false
);
return
this
.
queryForList
(
""
,
false
);
}
}
public
void
saveBatchResumeEq
(
List
<
JgResumeInfoEq
>
jgResumeInfoEqList
)
{
this
.
baseMapper
.
insertBatchSomeColumn
(
jgResumeInfoEqList
,
500
);
}
}
}
\ 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/JgResumeInfoServiceImpl.java
View file @
efb3e7df
...
@@ -39,15 +39,8 @@ public class JgResumeInfoServiceImpl extends BaseService<JgResumeInfoDto, JgResu
...
@@ -39,15 +39,8 @@ public class JgResumeInfoServiceImpl extends BaseService<JgResumeInfoDto, JgResu
return
this
.
queryForList
(
""
,
false
,
isDelete
);
return
this
.
queryForList
(
""
,
false
,
isDelete
);
}
}
public
void
saveBatchResume
(
List
<
JgResumeInfoDto
>
jgResumeInfoDtoList
)
{
public
void
saveBatchResume
(
List
<
JgResumeInfo
>
jgResumeInfoList
)
{
List
<
JgResumeInfo
>
jgResumeInfoCollection
=
jgResumeInfoDtoList
.
stream
()
this
.
baseMapper
.
insertBatchSomeColumn
(
jgResumeInfoList
,
200
);
.
map
(
dto
->
{
JgResumeInfo
info
=
new
JgResumeInfo
();
BeanUtils
.
copyProperties
(
dto
,
info
);
return
info
;
})
.
collect
(
Collectors
.
toList
());
this
.
baseMapper
.
insertBatchSomeColumn
(
jgResumeInfoCollection
,
200
);
}
}
/**
/**
...
...
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 @
efb3e7df
...
@@ -1142,7 +1142,7 @@ public class JgScrapCancelServiceImpl extends BaseService<JgScrapCancelDto, JgSc
...
@@ -1142,7 +1142,7 @@ public class JgScrapCancelServiceImpl extends BaseService<JgScrapCancelDto, JgSc
lambdaEq
.
eq
(
JgScrapCancelEq:
:
getEquipTransferId
,
jgScrapCancel
.
getSequenceNbr
());
lambdaEq
.
eq
(
JgScrapCancelEq:
:
getEquipTransferId
,
jgScrapCancel
.
getSequenceNbr
());
lambdaEq
.
select
(
JgScrapCancelEq:
:
getEquId
,
BaseEntity:
:
getSequenceNbr
);
lambdaEq
.
select
(
JgScrapCancelEq:
:
getEquId
,
BaseEntity:
:
getSequenceNbr
);
List
<
JgScrapCancelEq
>
scrapCancelEqs
=
jgScrapCancelEqService
.
list
(
lambdaEq
);
List
<
JgScrapCancelEq
>
scrapCancelEqs
=
jgScrapCancelEqService
.
list
(
lambdaEq
);
jgResumeInfoService
.
saveBatchResume
(
scrapCancelEqs
.
stream
().
map
(
eq
->
JgResumeInfo
Dto
.
builder
().
applyNo
(
jgScrapCancel
.
getApplyNo
())
jgResumeInfoService
.
saveBatchResume
(
scrapCancelEqs
.
stream
().
map
(
eq
->
JgResumeInfo
.
builder
().
applyNo
(
jgScrapCancel
.
getApplyNo
())
.
businessType
(
getRegistrationClass
(
jgScrapCancel
.
getCancelType
()))
.
businessType
(
getRegistrationClass
(
jgScrapCancel
.
getCancelType
()))
.
businessId
(
String
.
valueOf
(
jgScrapCancel
.
getSequenceNbr
()))
.
businessId
(
String
.
valueOf
(
jgScrapCancel
.
getSequenceNbr
()))
.
equId
(
eq
.
getEquId
())
.
equId
(
eq
.
getEquId
())
...
...
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 @
efb3e7df
...
@@ -1040,7 +1040,7 @@ public class JgTransferNoticeServiceImpl extends BaseService<JgTransferNoticeDto
...
@@ -1040,7 +1040,7 @@ public class JgTransferNoticeServiceImpl extends BaseService<JgTransferNoticeDto
}
}
private
void
createResume
(
List
<
JgTransferNoticeEq
>
jgRelationEquips
,
JgTransferNotice
notice
,
String
routePath
)
{
private
void
createResume
(
List
<
JgTransferNoticeEq
>
jgRelationEquips
,
JgTransferNotice
notice
,
String
routePath
)
{
jgResumeInfoService
.
saveBatchResume
(
jgRelationEquips
.
stream
().
map
(
eq
->
JgResumeInfo
Dto
.
builder
().
applyNo
(
notice
.
getApplyNo
())
jgResumeInfoService
.
saveBatchResume
(
jgRelationEquips
.
stream
().
map
(
eq
->
JgResumeInfo
.
builder
().
applyNo
(
notice
.
getApplyNo
())
.
businessType
(
BusinessTypeEnum
.
JG_ADVICE_REMOVAL
.
getName
())
.
businessType
(
BusinessTypeEnum
.
JG_ADVICE_REMOVAL
.
getName
())
.
businessId
(
String
.
valueOf
(
notice
.
getSequenceNbr
()))
.
businessId
(
String
.
valueOf
(
notice
.
getSequenceNbr
()))
.
equId
(
eq
.
getEquId
())
.
equId
(
eq
.
getEquId
())
...
...
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 @
efb3e7df
...
@@ -1337,13 +1337,13 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
...
@@ -1337,13 +1337,13 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
}
}
}
}
List
<
String
>
records
=
new
ArrayList
<>();
List
<
String
>
records
=
new
ArrayList
<>();
List
<
JgResumeInfo
Dto
>
resumeList
=
new
ArrayList
<>();
List
<
JgResumeInfo
>
resumeList
=
new
ArrayList
<>();
List
<
ESEquipmentCategoryDto
>
esEquipmentCategoryDtos
=
new
ArrayList
<>();
List
<
ESEquipmentCategoryDto
>
esEquipmentCategoryDtos
=
new
ArrayList
<>();
if
(!
CollectionUtils
.
isEmpty
(
equipmentLists
))
{
if
(!
CollectionUtils
.
isEmpty
(
equipmentLists
))
{
// 装置更新管道的技术参数、设计信息、安装信息
// 装置更新管道的技术参数、设计信息、安装信息
if
(
jgProjectContraption
!=
null
)
{
if
(
jgProjectContraption
!=
null
)
{
updatePieLineTechAndInspection
(
equipmentLists
);
updatePieLineTechAndInspection
(
equipmentLists
);
resumeList
.
add
(
JgResumeInfo
Dto
.
builder
()
resumeList
.
add
(
JgResumeInfo
.
builder
()
.
applyNo
(
jgUseRegistration
.
getApplyNo
())
.
applyNo
(
jgUseRegistration
.
getApplyNo
())
.
businessType
(
BusinessTypeEnum
.
JG_USAGE_REGISTRATION
.
getName
())
.
businessType
(
BusinessTypeEnum
.
JG_USAGE_REGISTRATION
.
getName
())
.
businessId
(
String
.
valueOf
(
jgUseRegistration
.
getSequenceNbr
()))
.
businessId
(
String
.
valueOf
(
jgUseRegistration
.
getSequenceNbr
()))
...
@@ -1355,7 +1355,7 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
...
@@ -1355,7 +1355,7 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
.
routePath
(
taskV2Model
.
getRoutePath
())
.
routePath
(
taskV2Model
.
getRoutePath
())
.
build
());
.
build
());
}
else
{
}
else
{
JgResumeInfo
Dto
dto
=
JgResumeInfoDt
o
.
builder
()
JgResumeInfo
info
=
JgResumeInf
o
.
builder
()
.
applyNo
(
jgUseRegistration
.
getApplyNo
())
.
applyNo
(
jgUseRegistration
.
getApplyNo
())
.
businessType
(
BusinessTypeEnum
.
JG_USAGE_REGISTRATION
.
getName
())
.
businessType
(
BusinessTypeEnum
.
JG_USAGE_REGISTRATION
.
getName
())
.
businessId
(
jgUseRegistration
.
getSequenceNbr
()
+
""
)
.
businessId
(
jgUseRegistration
.
getSequenceNbr
()
+
""
)
...
@@ -1365,8 +1365,8 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
...
@@ -1365,8 +1365,8 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
.
status
(
"正常"
)
.
status
(
"正常"
)
.
routePath
(
taskV2Model
.
getRoutePath
())
.
routePath
(
taskV2Model
.
getRoutePath
())
.
build
();
.
build
();
jgResumeInfoService
.
save
BatchResume
(
Collections
.
singletonList
(
dto
)
);
jgResumeInfoService
.
save
(
info
);
commonServiceImpl
.
batchInsertResumeEq
(
dt
o
.
getSequenceNbr
(),
equipmentLists
);
commonServiceImpl
.
batchInsertResumeEq
(
inf
o
.
getSequenceNbr
(),
equipmentLists
);
}
}
// 批量收集的结果
// 批量收集的结果
List
<
JgCertificateChangeRecordEq
>
jgCertificateChangeRecordEqBatchList
=
new
ArrayList
<>();
List
<
JgCertificateChangeRecordEq
>
jgCertificateChangeRecordEqBatchList
=
new
ArrayList
<>();
...
...
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/JgVehicleInformationServiceImpl.java
View file @
efb3e7df
...
@@ -171,7 +171,7 @@ public class JgVehicleInformationServiceImpl extends BaseService<JgVehicleInform
...
@@ -171,7 +171,7 @@ public class JgVehicleInformationServiceImpl extends BaseService<JgVehicleInform
@Autowired
@Autowired
private
JgResumeInfoServiceImpl
jgResumeInfoService
;
private
JgResumeInfoServiceImpl
jgResumeInfoService
;
@Autowired
@Autowired
private
JgResumeInfoEq
Mapper
jgResumeInfoEqMapper
;
private
JgResumeInfoEq
ServiceImpl
jgResumeInfoEqService
;
@Autowired
@Autowired
private
TzBaseEnterpriseInfoMapper
tzBaseEnterpriseInfoMapper
;
private
TzBaseEnterpriseInfoMapper
tzBaseEnterpriseInfoMapper
;
@Autowired
@Autowired
...
@@ -1053,7 +1053,7 @@ public class JgVehicleInformationServiceImpl extends BaseService<JgVehicleInform
...
@@ -1053,7 +1053,7 @@ public class JgVehicleInformationServiceImpl extends BaseService<JgVehicleInform
// 生成一条tzs_jg_certificate_change_record记录
// 生成一条tzs_jg_certificate_change_record记录
generateCertificateChangeRecord
(
jgVehicleInformation
,
registerInfo
,
changeRecordId
,
taskV2Model
);
generateCertificateChangeRecord
(
jgVehicleInformation
,
registerInfo
,
changeRecordId
,
taskV2Model
);
JgResumeInfo
Dto
dto
=
JgResumeInfoDt
o
.
builder
()
JgResumeInfo
info
=
JgResumeInf
o
.
builder
()
.
applyNo
(
jgVehicleInformation
.
getApplyNo
())
.
applyNo
(
jgVehicleInformation
.
getApplyNo
())
.
businessType
(
BusinessTypeEnum
.
JG_VEHICLE_GAS_APPLICATION
.
getName
())
.
businessType
(
BusinessTypeEnum
.
JG_VEHICLE_GAS_APPLICATION
.
getName
())
.
businessId
(
String
.
valueOf
(
jgVehicleInformation
.
getSequenceNbr
()))
.
businessId
(
String
.
valueOf
(
jgVehicleInformation
.
getSequenceNbr
()))
...
@@ -1063,19 +1063,13 @@ public class JgVehicleInformationServiceImpl extends BaseService<JgVehicleInform
...
@@ -1063,19 +1063,13 @@ public class JgVehicleInformationServiceImpl extends BaseService<JgVehicleInform
.
changeContent
(
BusinessTypeEnum
.
JG_VEHICLE_GAS_APPLICATION
.
getName
()
+
"业务办理"
)
.
changeContent
(
BusinessTypeEnum
.
JG_VEHICLE_GAS_APPLICATION
.
getName
()
+
"业务办理"
)
.
routePath
(
taskV2Model
.
getRoutePath
())
.
routePath
(
taskV2Model
.
getRoutePath
())
.
build
();
.
build
();
jgResumeInfoService
.
save
BatchResume
(
Collections
.
singletonList
(
dto
)
);
jgResumeInfoService
.
save
(
info
);
List
<
JgResumeInfoEq
>
list
=
equipIdList
.
stream
()
jgResumeInfoEqService
.
saveBatchResumeEq
(
equipIdList
.
stream
()
.
map
(
equipId
->
JgResumeInfoEq
.
builder
()
.
map
(
equipId
->
JgResumeInfoEq
.
builder
()
.
resumeId
(
dt
o
.
getSequenceNbr
())
.
resumeId
(
inf
o
.
getSequenceNbr
())
.
equId
(
equipId
)
.
equId
(
equipId
)
.
build
())
.
build
())
.
collect
(
Collectors
.
toList
());
.
collect
(
Collectors
.
toList
()));
for
(
int
i
=
0
;
i
<
list
.
size
();
i
+=
DB_BATCH_SIZE
)
{
jgResumeInfoEqMapper
.
insertBatchSomeColumn
(
list
.
subList
(
i
,
Math
.
min
(
i
+
DB_BATCH_SIZE
,
list
.
size
()))
);
}
// 车用气瓶评分
// 车用气瓶评分
eventPublisher
.
publish
(
new
EquipCreateOrEditEvent
(
this
,
BusinessTypeEnum
.
JG_VEHICLE_GAS_APPLICATION
.
name
(),
Sets
.
newHashSet
(
equipIdList
),
EquipCreateOrEditEvent
.
EquipType
.
equip
));
eventPublisher
.
publish
(
new
EquipCreateOrEditEvent
(
this
,
BusinessTypeEnum
.
JG_VEHICLE_GAS_APPLICATION
.
name
(),
Sets
.
newHashSet
(
equipIdList
),
EquipCreateOrEditEvent
.
EquipType
.
equip
));
}
}
...
@@ -2198,7 +2192,7 @@ public class JgVehicleInformationServiceImpl extends BaseService<JgVehicleInform
...
@@ -2198,7 +2192,7 @@ public class JgVehicleInformationServiceImpl extends BaseService<JgVehicleInform
equipList
.
add
(
equip
);
equipList
.
add
(
equip
);
//新增添加设备履历
//新增添加设备履历
if
(
StringUtils
.
isEmpty
(
vehicleInfoDto
.
getSequenceNbr
()))
{
if
(
StringUtils
.
isEmpty
(
vehicleInfoDto
.
getSequenceNbr
()))
{
jgResumeInfoService
.
createWithModel
(
JgResumeInfoDt
o
.
builder
()
jgResumeInfoService
.
save
(
JgResumeInf
o
.
builder
()
.
applyNo
(
vehicleInformation
.
getApplyNo
())
.
applyNo
(
vehicleInformation
.
getApplyNo
())
.
businessType
(
BusinessTypeEnum
.
JG_VEHICLE_GAS_APPLICATION
.
getName
())
.
businessType
(
BusinessTypeEnum
.
JG_VEHICLE_GAS_APPLICATION
.
getName
())
.
businessId
(
vehicleInformation
.
getSequenceNbr
()
+
""
)
.
businessId
(
vehicleInformation
.
getSequenceNbr
()
+
""
)
...
...
amos-boot-system-tzs/amos-boot-module-jyjc/amos-boot-module-jyjc-biz/src/main/java/com/yeejoin/amos/boot/module/jyjc/biz/feign/JgFeignClient.java
View file @
efb3e7df
...
@@ -3,7 +3,8 @@ package com.yeejoin.amos.boot.module.jyjc.biz.feign;
...
@@ -3,7 +3,8 @@ package com.yeejoin.amos.boot.module.jyjc.biz.feign;
import
com.alibaba.fastjson.JSONObject
;
import
com.alibaba.fastjson.JSONObject
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.yeejoin.amos.boot.biz.common.feign.MultipartSupportConfig
;
import
com.yeejoin.amos.boot.biz.common.feign.MultipartSupportConfig
;
import
com.yeejoin.amos.boot.module.jyjc.api.model.JgResumeInfoDto
;
import
com.yeejoin.amos.boot.module.jg.api.entity.JgResumeInfo
;
import
com.yeejoin.amos.boot.module.jg.api.entity.JgResumeInfoEq
;
import
com.yeejoin.amos.component.feign.model.FeignClientResult
;
import
com.yeejoin.amos.component.feign.model.FeignClientResult
;
import
com.yeejoin.amos.feign.systemctl.model.RegionModel
;
import
com.yeejoin.amos.feign.systemctl.model.RegionModel
;
import
org.springframework.cloud.openfeign.FeignClient
;
import
org.springframework.cloud.openfeign.FeignClient
;
...
@@ -25,7 +26,7 @@ public interface JgFeignClient {
...
@@ -25,7 +26,7 @@ public interface JgFeignClient {
* 设备注册信息分页查询
* 设备注册信息分页查询
* */
* */
@RequestMapping
(
value
=
"/jg-resume-info/saveBatchResume"
,
method
=
RequestMethod
.
POST
)
@RequestMapping
(
value
=
"/jg-resume-info/saveBatchResume"
,
method
=
RequestMethod
.
POST
)
FeignClientResult
saveBatchResume
(
@RequestBody
List
<
JgResumeInfo
Dto
>
jgResumeInfoDt
oList
);
FeignClientResult
saveBatchResume
(
@RequestBody
List
<
JgResumeInfo
>
jgResumeInf
oList
);
/***
/***
...
@@ -34,5 +35,11 @@ public interface JgFeignClient {
...
@@ -34,5 +35,11 @@ public interface JgFeignClient {
@RequestMapping
(
value
=
"/common/getRegion"
,
method
=
RequestMethod
.
GET
)
@RequestMapping
(
value
=
"/common/getRegion"
,
method
=
RequestMethod
.
GET
)
FeignClientResult
<
List
<
RegionModel
>>
getRegion
(
@RequestParam
(
value
=
"level"
,
required
=
false
)
String
level
,
FeignClientResult
<
List
<
RegionModel
>>
getRegion
(
@RequestParam
(
value
=
"level"
,
required
=
false
)
String
level
,
@RequestParam
(
value
=
"parentId"
,
required
=
false
)
String
parentId
);
@RequestParam
(
value
=
"parentId"
,
required
=
false
)
String
parentId
);
/***
* 批量插入履历信息关系表
* */
@RequestMapping
(
value
=
"/jg-resume-info-eq/saveBatchResumeEq"
,
method
=
RequestMethod
.
POST
)
FeignClientResult
saveBatchResumeEq
(
@RequestBody
List
<
JgResumeInfoEq
>
jgResumeInfoEqList
);
}
}
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 @
efb3e7df
...
@@ -23,8 +23,11 @@ import com.yeejoin.amos.boot.module.common.api.dao.ESEquipmentCategory;
...
@@ -23,8 +23,11 @@ import com.yeejoin.amos.boot.module.common.api.dao.ESEquipmentCategory;
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.common.api.dto.ContraptionQueryParams
;
import
com.yeejoin.amos.boot.module.common.api.dto.ContraptionQueryParams
;
import
com.yeejoin.amos.boot.module.common.api.dto.ESEquipmentCategoryDto
;
import
com.yeejoin.amos.boot.module.common.api.dto.ESEquipmentCategoryDto
;
import
com.yeejoin.amos.boot.module.common.api.enums.CylinderTypeEnum
;
import
com.yeejoin.amos.boot.module.common.api.enums.JYJCBusinessTypeEnum
;
import
com.yeejoin.amos.boot.module.common.api.enums.JYJCBusinessTypeEnum
;
import
com.yeejoin.amos.boot.module.common.api.service.ICompensateFlowDataOfRedis
;
import
com.yeejoin.amos.boot.module.common.api.service.ICompensateFlowDataOfRedis
;
import
com.yeejoin.amos.boot.module.jg.api.entity.JgResumeInfo
;
import
com.yeejoin.amos.boot.module.jg.api.entity.JgResumeInfoEq
;
import
com.yeejoin.amos.boot.module.jg.api.vo.SortVo
;
import
com.yeejoin.amos.boot.module.jg.api.vo.SortVo
;
import
com.yeejoin.amos.boot.module.jyjc.api.common.BizCommonConstant
;
import
com.yeejoin.amos.boot.module.jyjc.api.common.BizCommonConstant
;
import
com.yeejoin.amos.boot.module.jyjc.api.entity.*
;
import
com.yeejoin.amos.boot.module.jyjc.api.entity.*
;
...
@@ -816,7 +819,8 @@ public class JyjcInspectionApplicationServiceImpl extends BaseService<JyjcInspec
...
@@ -816,7 +819,8 @@ public class JyjcInspectionApplicationServiceImpl extends BaseService<JyjcInspec
TaskV2Model
taskV2Model
=
updateTaskModel
(
model
);
TaskV2Model
taskV2Model
=
updateTaskModel
(
model
);
List
<
JyjcInspectionApplicationEquipModel
>
applicationEquipModels
=
applicationEquipService
.
listApplicationEquipByApplicationSeq
(
sequenceNbr
);
List
<
JyjcInspectionApplicationEquipModel
>
applicationEquipModels
=
applicationEquipService
.
listApplicationEquipByApplicationSeq
(
sequenceNbr
);
List
<
JyjcInspectionResult
>
resultModels
=
new
ArrayList
<>();
List
<
JyjcInspectionResult
>
resultModels
=
new
ArrayList
<>();
List
<
JgResumeInfoDto
>
jgResumeInfoDtoList
=
new
ArrayList
<>();
List
<
JgResumeInfo
>
jgResumeInfoList
=
new
ArrayList
<>();
List
<
JgResumeInfoEq
>
jgResumeInfoEqList
=
new
ArrayList
<>();
Date
now
=
DateUtil
.
date
();
Date
now
=
DateUtil
.
date
();
if
(
model
.
getEquipClassify
().
equals
(
EquipmentClassifityEnum
.
YLGD
.
getCode
()))
{
if
(
model
.
getEquipClassify
().
equals
(
EquipmentClassifityEnum
.
YLGD
.
getCode
()))
{
List
<
String
>
codes
=
tzsServiceFeignClient
.
applicationFormCode
(
ApplicationFormTypeEnum
.
SE
.
getCode
(),
1
).
getResult
();
List
<
String
>
codes
=
tzsServiceFeignClient
.
applicationFormCode
(
ApplicationFormTypeEnum
.
SE
.
getCode
(),
1
).
getResult
();
...
@@ -858,7 +862,7 @@ public class JyjcInspectionApplicationServiceImpl extends BaseService<JyjcInspec
...
@@ -858,7 +862,7 @@ public class JyjcInspectionApplicationServiceImpl extends BaseService<JyjcInspec
resultParam
.
setParamType
(
"IdxBizJgTechParamsPipeline"
);
resultParam
.
setParamType
(
"IdxBizJgTechParamsPipeline"
);
resultParam
.
setRecDate
(
new
Date
());
resultParam
.
setRecDate
(
new
Date
());
jyjcInspectionResultParamServiceImpl
.
save
(
resultParam
);
jyjcInspectionResultParamServiceImpl
.
save
(
resultParam
);
jgResumeInfo
DtoList
.
add
(
JgResumeInfoDt
o
.
builder
().
applyNo
(
jyjcInspectionApplication
.
getApplicationNo
())
jgResumeInfo
List
.
add
(
JgResumeInf
o
.
builder
().
applyNo
(
jyjcInspectionApplication
.
getApplicationNo
())
.
businessType
(
resultModel
.
getInspectionTypeName
())
.
businessType
(
resultModel
.
getInspectionTypeName
())
.
businessId
(
String
.
valueOf
(
jyjcInspectionApplication
.
getSequenceNbr
()))
.
businessId
(
String
.
valueOf
(
jyjcInspectionApplication
.
getSequenceNbr
()))
.
changeContent
(
resultModel
.
getInspectionTypeName
()
+
"业务办理"
)
.
changeContent
(
resultModel
.
getInspectionTypeName
()
+
"业务办理"
)
...
@@ -869,6 +873,7 @@ public class JyjcInspectionApplicationServiceImpl extends BaseService<JyjcInspec
...
@@ -869,6 +873,7 @@ public class JyjcInspectionApplicationServiceImpl extends BaseService<JyjcInspec
.
routePath
(
taskV2Model
.
getRoutePath
()).
build
());
.
routePath
(
taskV2Model
.
getRoutePath
()).
build
());
}
else
{
}
else
{
List
<
String
>
codes
=
tzsServiceFeignClient
.
applicationFormCode
(
ApplicationFormTypeEnum
.
SE
.
getCode
(),
applicationEquipModels
.
size
()).
getResult
();
List
<
String
>
codes
=
tzsServiceFeignClient
.
applicationFormCode
(
ApplicationFormTypeEnum
.
SE
.
getCode
(),
applicationEquipModels
.
size
()).
getResult
();
JgResumeInfo
cylinderMainResumeInfo
=
null
;
for
(
int
i
=
0
;
i
<
applicationEquipModels
.
size
();
i
++)
{
for
(
int
i
=
0
;
i
<
applicationEquipModels
.
size
();
i
++)
{
JyjcInspectionResult
resultModel
=
new
JyjcInspectionResult
();
JyjcInspectionResult
resultModel
=
new
JyjcInspectionResult
();
resultModel
.
setInspectionUnitCode
(
model
.
getInspectionUnitCode
());
resultModel
.
setInspectionUnitCode
(
model
.
getInspectionUnitCode
());
...
@@ -896,16 +901,41 @@ public class JyjcInspectionApplicationServiceImpl extends BaseService<JyjcInspec
...
@@ -896,16 +901,41 @@ public class JyjcInspectionApplicationServiceImpl extends BaseService<JyjcInspec
resultModel
.
setSequenceNbr
(
resultSeq
);
resultModel
.
setSequenceNbr
(
resultSeq
);
resultModels
.
add
(
resultModel
);
resultModels
.
add
(
resultModel
);
// TODO 暂存json,在结果录入后,将数据更新技术参数-检验详情使用 考虑兼容老数据
// TODO 暂存json,在结果录入后,将数据更新技术参数-检验详情使用 考虑兼容老数据
// 新增设备履历信息
if
(
model
.
getEquCategory
().
equals
(
CylinderTypeEnum
.
CYLINDER
.
getCode
())){
jgResumeInfoDtoList
.
add
(
JgResumeInfoDto
.
builder
().
applyNo
(
jyjcInspectionApplication
.
getApplicationNo
())
jgResumeInfoEqList
.
add
(
JgResumeInfoEq
.
builder
()
.
businessType
(
resultModel
.
getInspectionTypeName
())
.
resumeId
(
resultSeq
)
.
businessId
(
String
.
valueOf
(
jyjcInspectionApplication
.
getSequenceNbr
()))
.
equId
(
applicationEquipModels
.
get
(
i
).
getEquipUnicode
())
.
changeContent
(
resultModel
.
getInspectionTypeName
()
+
"业务办理"
)
.
build
());
.
equId
(
applicationEquipModels
.
get
(
i
).
getEquipUnicode
())
// 主表只创建一次
.
approvalUnit
(
model
.
getInspectionUnitName
())
if
(
cylinderMainResumeInfo
==
null
)
{
.
approvalUnitCode
(
model
.
getInspectionUnitCode
())
cylinderMainResumeInfo
=
JgResumeInfo
.
builder
()
.
status
(
"正常"
)
.
applyNo
(
jyjcInspectionApplication
.
getApplicationNo
())
.
routePath
(
taskV2Model
.
getRoutePath
()).
build
());
.
businessType
(
resultModel
.
getInspectionTypeName
())
.
businessId
(
String
.
valueOf
(
jyjcInspectionApplication
.
getSequenceNbr
()))
.
changeContent
(
resultModel
.
getInspectionTypeName
()
+
"业务办理"
)
.
approvalUnit
(
model
.
getInspectionUnitName
())
.
approvalUnitCode
(
model
.
getInspectionUnitCode
())
.
status
(
"正常"
)
.
routePath
(
taskV2Model
.
getRoutePath
())
.
build
();
cylinderMainResumeInfo
.
setSequenceNbr
(
resultSeq
);
}
}
else
{
// 新增设备履历信息
jgResumeInfoList
.
add
(
JgResumeInfo
.
builder
().
applyNo
(
jyjcInspectionApplication
.
getApplicationNo
())
.
businessType
(
resultModel
.
getInspectionTypeName
())
.
businessId
(
String
.
valueOf
(
jyjcInspectionApplication
.
getSequenceNbr
()))
.
changeContent
(
resultModel
.
getInspectionTypeName
()
+
"业务办理"
)
.
equId
(
applicationEquipModels
.
get
(
i
).
getEquipUnicode
())
.
approvalUnit
(
model
.
getInspectionUnitName
())
.
approvalUnitCode
(
model
.
getInspectionUnitCode
())
.
status
(
"正常"
)
.
routePath
(
taskV2Model
.
getRoutePath
()).
build
());
}
}
// 气瓶主表单独保存
if
(
cylinderMainResumeInfo
!=
null
)
{
this
.
saveBatchResume
(
Collections
.
singletonList
(
cylinderMainResumeInfo
));
}
}
}
}
inspectionResultService
.
saveOrUpdateBatch
(
resultModels
);
inspectionResultService
.
saveOrUpdateBatch
(
resultModels
);
...
@@ -913,7 +943,12 @@ public class JyjcInspectionApplicationServiceImpl extends BaseService<JyjcInspec
...
@@ -913,7 +943,12 @@ public class JyjcInspectionApplicationServiceImpl extends BaseService<JyjcInspec
this
.
pushInspectionApplication
(
model
);
this
.
pushInspectionApplication
(
model
);
this
.
createHisAfterReceive
(
model
);
this
.
createHisAfterReceive
(
model
);
// 设备检验履历
// 设备检验履历
this
.
saveBatchResume
(
jgResumeInfoDtoList
);
if
(!
jgResumeInfoList
.
isEmpty
())
{
this
.
saveBatchResume
(
jgResumeInfoList
);
}
if
(!
jgResumeInfoEqList
.
isEmpty
())
{
this
.
saveBatchResumeEq
(
jgResumeInfoEqList
);
}
// 更新流程中的流程数据
// 更新流程中的流程数据
commonService
.
saveExecuteFlowData2Redis
(
model
.
getProcessInstanceId
(),
this
.
buildInstanceRuntimeData
(
jyjcInspectionApplication
));
commonService
.
saveExecuteFlowData2Redis
(
model
.
getProcessInstanceId
(),
this
.
buildInstanceRuntimeData
(
jyjcInspectionApplication
));
// 事务提交后,生成报检申请表
// 事务提交后,生成报检申请表
...
@@ -986,9 +1021,17 @@ public class JyjcInspectionApplicationServiceImpl extends BaseService<JyjcInspec
...
@@ -986,9 +1021,17 @@ public class JyjcInspectionApplicationServiceImpl extends BaseService<JyjcInspec
}
}
private
void
saveBatchResume
(
List
<
JgResumeInfoDto
>
jgResumeInfoDtoList
)
{
private
void
saveBatchResume
(
List
<
JgResumeInfo
>
jgResumeInfoList
)
{
try
{
jgFeignClient
.
saveBatchResume
(
jgResumeInfoList
);
}
catch
(
Exception
e
)
{
log
.
error
(
e
.
getMessage
(),
e
);
}
}
private
void
saveBatchResumeEq
(
List
<
JgResumeInfoEq
>
jgResumeInfoEqList
)
{
try
{
try
{
jgFeignClient
.
saveBatchResume
(
jgResumeInfoDto
List
);
jgFeignClient
.
saveBatchResume
Eq
(
jgResumeInfoEq
List
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
log
.
error
(
e
.
getMessage
(),
e
);
log
.
error
(
e
.
getMessage
(),
e
);
}
}
...
...
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