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
37ddceaf
Commit
37ddceaf
authored
May 30, 2024
by
刘林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(JG):监管履历信息功能开发
parent
f9d41ddc
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
138 additions
and
37 deletions
+138
-37
JgResumeInfo.java
.../yeejoin/amos/boot/module/jg/api/entity/JgResumeInfo.java
+0
-1
JgResumeInfoController.java
...boot/module/jg/biz/controller/JgResumeInfoController.java
+12
-0
JgMaintenanceContractServiceImpl.java
...jg/biz/service/impl/JgMaintenanceContractServiceImpl.java
+21
-12
JgResumeInfoServiceImpl.java
...t/module/jg/biz/service/impl/JgResumeInfoServiceImpl.java
+17
-0
JgUseRegistrationServiceImpl.java
...ule/jg/biz/service/impl/JgUseRegistrationServiceImpl.java
+9
-20
JgResumeInfoDto.java
...join/amos/boot/module/jyjc/api/model/JgResumeInfoDto.java
+57
-0
JgFeignClient.java
...eejoin/amos/boot/module/jyjc/biz/feign/JgFeignClient.java
+8
-2
JyjcInspectionApplicationServiceImpl.java
...iz/service/impl/JyjcInspectionApplicationServiceImpl.java
+14
-2
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 @
37ddceaf
...
@@ -3,7 +3,6 @@ package com.yeejoin.amos.boot.module.jg.api.entity;
...
@@ -3,7 +3,6 @@ package com.yeejoin.amos.boot.module.jg.api.entity;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.yeejoin.amos.boot.biz.common.entity.BaseEntity
;
import
com.yeejoin.amos.boot.biz.common.entity.BaseEntity
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
import
lombok.EqualsAndHashCode
;
import
lombok.experimental.Accessors
;
import
lombok.experimental.Accessors
;
...
...
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 @
37ddceaf
...
@@ -44,6 +44,18 @@ public class JgResumeInfoController extends BaseController {
...
@@ -44,6 +44,18 @@ public class JgResumeInfoController extends BaseController {
}
}
/**
/**
* 新增监管履历信息表
*
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@PostMapping
(
value
=
"/saveBatchResume"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"批量新增"
,
notes
=
"批量新增"
)
public
boolean
saveBatchResume
(
@RequestBody
List
<
JgResumeInfoDto
>
jgResumeInfoDtoList
)
{
return
jgResumeInfoServiceImpl
.
saveBatchResume
(
jgResumeInfoDtoList
);
}
/**
* 根据sequenceNbr更新
* 根据sequenceNbr更新
*
*
* @param sequenceNbr 主键
* @param 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/JgMaintenanceContractServiceImpl.java
View file @
37ddceaf
...
@@ -81,6 +81,8 @@ public class JgMaintenanceContractServiceImpl extends BaseService<JgMaintenanceC
...
@@ -81,6 +81,8 @@ public class JgMaintenanceContractServiceImpl extends BaseService<JgMaintenanceC
@Autowired
@Autowired
IJgInstallationNoticeService
jrmInstallationNoticeService
;
IJgInstallationNoticeService
jrmInstallationNoticeService
;
@Autowired
@Autowired
EmqKeeper
emqKeeper
;
@Autowired
private
JgMaintenanceContractMapper
maintenanceContractMapper
;
private
JgMaintenanceContractMapper
maintenanceContractMapper
;
@Autowired
@Autowired
private
JgMaintenanceContractEqMapper
maintenanceContractEqMapper
;
private
JgMaintenanceContractEqMapper
maintenanceContractEqMapper
;
...
@@ -92,8 +94,6 @@ public class JgMaintenanceContractServiceImpl extends BaseService<JgMaintenanceC
...
@@ -92,8 +94,6 @@ public class JgMaintenanceContractServiceImpl extends BaseService<JgMaintenanceC
private
RedissonClient
redissonClient
;
private
RedissonClient
redissonClient
;
@Autowired
@Autowired
private
JgResumeInfoServiceImpl
jgResumeInfoService
;
private
JgResumeInfoServiceImpl
jgResumeInfoService
;
@Autowired
EmqKeeper
emqKeeper
;
/**
/**
* 分页查询
* 分页查询
...
@@ -130,7 +130,7 @@ public class JgMaintenanceContractServiceImpl extends BaseService<JgMaintenanceC
...
@@ -130,7 +130,7 @@ public class JgMaintenanceContractServiceImpl extends BaseService<JgMaintenanceC
}
}
}
}
contractList
=
maintenanceContractMapper
.
getContractList
(
page
,
sortMap
,
dto
,
reginParams
.
getUserModel
().
getUserId
());
contractList
=
maintenanceContractMapper
.
getContractList
(
page
,
sortMap
,
dto
,
reginParams
.
getUserModel
().
getUserId
());
List
<
JgMaintenanceContractDto
>
records
=
contractList
.
getRecords
().
stream
().
peek
(
x
->
x
.
setUnitType
(
company
.
getCompanyType
())).
collect
(
Collectors
.
toList
());
List
<
JgMaintenanceContractDto
>
records
=
contractList
.
getRecords
().
stream
().
peek
(
x
->
x
.
setUnitType
(
company
.
getCompanyType
())).
collect
(
Collectors
.
toList
());
contractList
.
setRecords
(
records
);
contractList
.
setRecords
(
records
);
BeanUtils
.
copyProperties
(
contractList
,
result
);
BeanUtils
.
copyProperties
(
contractList
,
result
);
return
result
;
return
result
;
...
@@ -297,6 +297,24 @@ public class JgMaintenanceContractServiceImpl extends BaseService<JgMaintenanceC
...
@@ -297,6 +297,24 @@ public class JgMaintenanceContractServiceImpl extends BaseService<JgMaintenanceC
modelDto
.
setModel
(
taskMessageDto
);
modelDto
.
setModel
(
taskMessageDto
);
// 再插入新代办、数据待定
// 再插入新代办、数据待定
commonService
.
buildTaskModel
(
Collections
.
singletonList
(
modelDto
));
commonService
.
buildTaskModel
(
Collections
.
singletonList
(
modelDto
));
// 新增人员履历消息表
LambdaQueryWrapper
<
JgMaintenanceContractEq
>
lambda
=
new
QueryWrapper
<
JgMaintenanceContractEq
>().
lambda
();
lambda
.
eq
(
JgMaintenanceContractEq:
:
getEquipTransferId
,
contract
.
getSequenceNbr
());
List
<
JgMaintenanceContractEq
>
jgMaintenanceContractEqList
=
jgMaintenanceContractEqService
.
getBaseMapper
().
selectList
(
lambda
);
jgResumeInfoService
.
saveBatchResume
(
jgMaintenanceContractEqList
.
stream
()
.
map
(
v
->
JgResumeInfoDto
.
builder
()
.
applyNo
(
contract
.
getApplyNo
())
.
businessType
(
BusinessTypeEnum
.
JG_MAINTENANCE_RECORD
.
getName
())
.
businessId
(
String
.
valueOf
(
contract
.
getSequenceNbr
()))
.
equId
(
String
.
valueOf
(
v
.
getEquId
()))
.
approvalUnit
(
contract
.
getReceiveOrgName
())
.
approvalUnitCode
(
contract
.
getReceiveOrgCode
())
.
status
(
"正常"
)
.
routePath
(
taskV2Model
.
getRoutePath
())
.
build
())
.
collect
(
Collectors
.
toList
())
);
}
}
...
@@ -429,15 +447,6 @@ public class JgMaintenanceContractServiceImpl extends BaseService<JgMaintenanceC
...
@@ -429,15 +447,6 @@ public class JgMaintenanceContractServiceImpl extends BaseService<JgMaintenanceC
equip
.
setEquId
(
String
.
valueOf
(
x
.
get
(
"SEQUENCE_NBR"
)));
equip
.
setEquId
(
String
.
valueOf
(
x
.
get
(
"SEQUENCE_NBR"
)));
equip
.
setEquipTransferId
(
contract
.
getSequenceNbr
().
toString
());
equip
.
setEquipTransferId
(
contract
.
getSequenceNbr
().
toString
());
equipList
.
add
(
equip
);
equipList
.
add
(
equip
);
jgResumeInfoService
.
createWithModel
(
JgResumeInfoDto
.
builder
()
.
applyNo
(
contractDto
.
getApplyNo
())
.
businessType
(
BusinessTypeEnum
.
JG_MAINTENANCE_RECORD
.
getName
())
.
businessId
(
contract
.
getSequenceNbr
()
+
""
)
.
equId
(
String
.
valueOf
(
x
.
get
(
"record"
)))
.
approvalUnit
(
contractDto
.
getReceiveOrgName
())
.
approvalUnitCode
(
contractDto
.
getReceiveOrgCode
())
.
status
(
"正常"
)
.
build
());
});
});
// 保存关联设备信息
// 保存关联设备信息
jgMaintenanceContractEqService
.
saveBatch
(
equipList
);
jgMaintenanceContractEqService
.
saveBatch
(
equipList
);
...
...
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 @
37ddceaf
...
@@ -5,9 +5,13 @@ import com.yeejoin.amos.boot.module.jg.api.dto.JgResumeInfoDto;
...
@@ -5,9 +5,13 @@ 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.api.entity.JgResumeInfo
;
import
com.yeejoin.amos.boot.module.jg.api.mapper.JgResumeInfoMapper
;
import
com.yeejoin.amos.boot.module.jg.api.mapper.JgResumeInfoMapper
;
import
com.yeejoin.amos.boot.module.jg.api.service.IJgResumeInfoService
;
import
com.yeejoin.amos.boot.module.jg.api.service.IJgResumeInfoService
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.typroject.tyboot.core.rdbms.service.BaseService
;
import
org.typroject.tyboot.core.rdbms.service.BaseService
;
import
java.util.Collection
;
import
java.util.List
;
import
java.util.List
;
import
java.util.stream.Collectors
;
/**
/**
* 服务实现类
* 服务实现类
...
@@ -30,4 +34,16 @@ public class JgResumeInfoServiceImpl extends BaseService<JgResumeInfoDto,JgResum
...
@@ -30,4 +34,16 @@ public class JgResumeInfoServiceImpl extends BaseService<JgResumeInfoDto,JgResum
public
List
<
JgResumeInfoDto
>
queryForJgResumeInfoList
()
{
public
List
<
JgResumeInfoDto
>
queryForJgResumeInfoList
()
{
return
this
.
queryForList
(
""
,
false
);
return
this
.
queryForList
(
""
,
false
);
}
}
@Transactional
public
boolean
saveBatchResume
(
List
<
JgResumeInfoDto
>
jgResumeInfoDtoList
)
{
Collection
<
JgResumeInfo
>
jgResumeInfoCollection
=
jgResumeInfoDtoList
.
stream
()
.
map
(
dto
->
{
JgResumeInfo
info
=
new
JgResumeInfo
();
BeanUtils
.
copyProperties
(
dto
,
info
);
return
info
;
})
.
collect
(
Collectors
.
toList
());
return
this
.
saveBatch
(
jgResumeInfoCollection
);
}
}
}
\ 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/JgUseRegistrationServiceImpl.java
View file @
37ddceaf
...
@@ -693,23 +693,13 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
...
@@ -693,23 +693,13 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
jgRelationEquipMapper
.
delete
(
new
QueryWrapper
<
JgUseRegistrationEq
>().
lambda
().
eq
(
JgUseRegistrationEq:
:
getEquipTransferId
,
useRegistration
.
getSequenceNbr
()));
jgRelationEquipMapper
.
delete
(
new
QueryWrapper
<
JgUseRegistrationEq
>().
lambda
().
eq
(
JgUseRegistrationEq:
:
getEquipTransferId
,
useRegistration
.
getSequenceNbr
()));
}
}
// 更新关联气瓶信息
// 更新关联气瓶信息
equipmentLists
.
stream
()
List
<
JgUseRegistrationEq
>
equipList
=
equipmentLists
.
stream
()
.
map
(
x
->
{
.
map
(
x
->
new
JgUseRegistrationEq
()
JgUseRegistrationEq
equip
=
new
JgUseRegistrationEq
()
.
setEquId
(
String
.
valueOf
(
x
.
get
(
"record"
)))
.
setEquId
(
String
.
valueOf
(
x
.
get
(
"record"
)))
.
setEquipTransferId
(
String
.
valueOf
(
useRegistration
.
getSequenceNbr
())))
.
setEquipTransferId
(
String
.
valueOf
(
useRegistration
.
getSequenceNbr
()));
.
collect
(
Collectors
.
toList
());
jgResumeInfoService
.
createWithModel
(
JgResumeInfoDto
.
builder
()
// 保存关联设备信息
.
applyNo
(
useRegistration
.
getApplyNo
())
jgUseRegistrationEqService
.
saveBatch
(
equipList
);
.
businessType
(
BusinessTypeEnum
.
JG_USAGE_REGISTRATION
.
getName
()+
"(单位)"
)
.
businessId
(
String
.
valueOf
(
useRegistration
.
getSequenceNbr
()))
.
equId
(
String
.
valueOf
(
x
.
get
(
"record"
)))
.
approvalUnit
(
useRegistration
.
getReceiveOrgName
())
.
approvalUnitCode
(
useRegistration
.
getReceiveOrgCode
())
.
status
(
"正常"
)
.
build
());
return
equip
;
})
.
forEach
(
jgUseRegistrationEqService:
:
save
);
// 启动流程
// 启动流程
if
(!
ObjectUtils
.
isEmpty
(
map
.
get
(
"submit"
)))
{
if
(!
ObjectUtils
.
isEmpty
(
map
.
get
(
"submit"
)))
{
...
@@ -1019,14 +1009,13 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
...
@@ -1019,14 +1009,13 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
taskMessageDto
.
setEquipId
(
String
.
valueOf
(
mapData
.
get
(
"equipId"
)));
taskMessageDto
.
setEquipId
(
String
.
valueOf
(
mapData
.
get
(
"equipId"
)));
params
.
put
(
"model"
,
taskMessageDto
);
params
.
put
(
"model"
,
taskMessageDto
);
TaskV2Model
taskV2Model
=
commonServiceImpl
.
updateTaskModel
(
params
);
TaskV2Model
taskV2Model
=
commonServiceImpl
.
updateTaskModel
(
params
);
jgResumeInfoService
.
createWithModel
(
JgResumeInfoDto
.
builder
()
jgResumeInfoService
.
createWithModel
(
JgResumeInfoDto
.
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
()
+
""
)
.
equId
((
String
)
mapData
.
get
(
"equipId"
))
.
equId
((
String
)
mapData
.
get
(
"equipId"
))
.
approvalUnit
(
jgUseRegistration
.
getReceiveOrgName
())
.
approvalUnit
(
jgUseRegistration
.
getReceiveOrgName
())
.
approvalUnitCode
(
jgUseRegistration
.
getReceive
Org
Code
())
.
approvalUnitCode
(
jgUseRegistration
.
getReceive
Company
Code
())
.
status
(
"正常"
)
.
status
(
"正常"
)
.
routePath
(
taskV2Model
.
getRoutePath
())
.
routePath
(
taskV2Model
.
getRoutePath
())
.
build
());
.
build
());
...
...
amos-boot-system-tzs/amos-boot-module-jyjc/amos-boot-module-jyjc-api/src/main/java/com/yeejoin/amos/boot/module/jyjc/api/model/JgResumeInfoDto.java
0 → 100644
View file @
37ddceaf
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jyjc
.
api
.
model
;
import
com.yeejoin.amos.boot.biz.common.dto.BaseDto
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Builder
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
import
java.util.Date
;
/**
*
*
* @author system_generator
* @date 2024-05-29
*/
@Data
@EqualsAndHashCode
(
callSuper
=
true
)
@ApiModel
(
value
=
"JgResumeInfoDto"
,
description
=
""
)
@Builder
public
class
JgResumeInfoDto
extends
BaseDto
{
private
static
final
long
serialVersionUID
=
1L
;
@ApiModelProperty
(
value
=
"申请编号"
)
private
String
applyNo
;
@ApiModelProperty
(
value
=
"业务状态"
)
private
String
status
;
@ApiModelProperty
(
value
=
"业务id"
)
private
String
businessId
;
@ApiModelProperty
(
value
=
"创建时间"
)
private
Date
createDate
;
@ApiModelProperty
(
value
=
"创建人id "
)
private
String
createUserId
;
@ApiModelProperty
(
value
=
"创建人"
)
private
String
createUserName
;
@ApiModelProperty
(
value
=
"设备ID"
)
private
String
equId
;
@ApiModelProperty
(
value
=
"业务类型"
)
private
String
businessType
;
@ApiModelProperty
(
value
=
"审批单位"
)
private
String
approvalUnit
;
@ApiModelProperty
(
value
=
"审批单位Code"
)
private
String
approvalUnitCode
;
@ApiModelProperty
(
value
=
"详情路径"
)
private
String
routePath
;
}
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 @
37ddceaf
...
@@ -3,10 +3,11 @@ package com.yeejoin.amos.boot.module.jyjc.biz.feign;
...
@@ -3,10 +3,11 @@ 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.component.feign.model.FeignClientResult
;
import
com.yeejoin.amos.component.feign.model.FeignClientResult
;
import
org.springframework.cloud.openfeign.FeignClient
;
import
org.springframework.cloud.openfeign.FeignClient
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.*
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Map
;
@FeignClient
(
contextId
=
"jyjc"
,
name
=
"${tzsJg.feign.name:TZS-JG}"
,
path
=
"jg"
,
configuration
=
{
MultipartSupportConfig
.
class
})
@FeignClient
(
contextId
=
"jyjc"
,
name
=
"${tzsJg.feign.name:TZS-JG}"
,
path
=
"jg"
,
configuration
=
{
MultipartSupportConfig
.
class
})
...
@@ -17,7 +18,12 @@ public interface JgFeignClient {
...
@@ -17,7 +18,12 @@ public interface JgFeignClient {
*
*
* */
* */
@RequestMapping
(
value
=
"/equipment-register/page"
,
method
=
RequestMethod
.
GET
)
@RequestMapping
(
value
=
"/equipment-register/page"
,
method
=
RequestMethod
.
GET
)
FeignClientResult
<
Page
<
JSONObject
>>
queryForPage
(
@RequestParam
Map
<
String
,
Object
>
map
);
FeignClientResult
<
Page
<
JSONObject
>>
queryForPage
(
@RequestParam
Map
<
String
,
Object
>
map
);
/***
* 设备注册信息分页查询
* */
@RequestMapping
(
value
=
"/jg-resume-info/saveBatchResume"
,
method
=
RequestMethod
.
POST
)
FeignClientResult
<
Boolean
>
saveBatchResume
(
@RequestBody
List
<
JgResumeInfoDto
>
jgResumeInfoDtoList
);
}
}
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 @
37ddceaf
...
@@ -572,7 +572,7 @@ public class JyjcInspectionApplicationServiceImpl extends BaseService<JyjcInspec
...
@@ -572,7 +572,7 @@ public class JyjcInspectionApplicationServiceImpl extends BaseService<JyjcInspec
}
}
this
.
updateById
(
entity
);
this
.
updateById
(
entity
);
BeanUtils
.
copyProperties
(
entity
,
model
);
BeanUtils
.
copyProperties
(
entity
,
model
);
updateTaskModel
(
model
);
TaskV2Model
taskV2Model
=
updateTaskModel
(
model
);
// 执行接收业务
// 执行接收业务
JyjcInspectionApplicationModel
inspectionApplicationModel
=
this
.
queryBySeq
(
sequenceNbr
);
JyjcInspectionApplicationModel
inspectionApplicationModel
=
this
.
queryBySeq
(
sequenceNbr
);
...
@@ -583,7 +583,7 @@ public class JyjcInspectionApplicationServiceImpl extends BaseService<JyjcInspec
...
@@ -583,7 +583,7 @@ public class JyjcInspectionApplicationServiceImpl extends BaseService<JyjcInspec
}
}
List
<
JyjcInspectionResult
>
resultModels
=
new
ArrayList
<>();
List
<
JyjcInspectionResult
>
resultModels
=
new
ArrayList
<>();
List
<
String
>
codes
=
tzsServiceFeignClient
.
applicationFormCode
(
ApplicationFormTypeEnum
.
JG
.
getCode
(),
applicationEquipModels
.
size
()).
getResult
();
List
<
String
>
codes
=
tzsServiceFeignClient
.
applicationFormCode
(
ApplicationFormTypeEnum
.
JG
.
getCode
(),
applicationEquipModels
.
size
()).
getResult
();
List
<
JgResumeInfoDto
>
jgResumeInfoDtoList
=
new
ArrayList
<>();
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
(
inspectionApplicationModel
.
getInspectionUnitCode
());
resultModel
.
setInspectionUnitCode
(
inspectionApplicationModel
.
getInspectionUnitCode
());
...
@@ -608,8 +608,20 @@ public class JyjcInspectionApplicationServiceImpl extends BaseService<JyjcInspec
...
@@ -608,8 +608,20 @@ public class JyjcInspectionApplicationServiceImpl extends BaseService<JyjcInspec
resultModel
.
setIsExistNc
(
false
);
resultModel
.
setIsExistNc
(
false
);
this
.
setResultTypeByBizType
(
resultModel
,
inspectionApplicationModel
.
getBizType
());
this
.
setResultTypeByBizType
(
resultModel
,
inspectionApplicationModel
.
getBizType
());
resultModels
.
add
(
resultModel
);
resultModels
.
add
(
resultModel
);
// 新增设备履历信息
jgResumeInfoDtoList
.
add
(
JgResumeInfoDto
.
builder
()
.
applyNo
(
entity
.
getApplicationNo
())
.
businessType
(
resultModel
.
getInspectionTypeName
())
.
businessId
(
String
.
valueOf
(
entity
.
getSequenceNbr
()))
.
equId
(
applicationEquipModels
.
get
(
i
).
getEquipUnicode
())
.
approvalUnit
(
inspectionApplicationModel
.
getInspectionUnitName
())
.
approvalUnitCode
(
inspectionApplicationModel
.
getInspectionUnitCode
())
.
status
(
"正常"
)
.
routePath
(
taskV2Model
.
getRoutePath
())
.
build
());
}
}
inspectionResultService
.
saveOrUpdateBatch
(
resultModels
);
inspectionResultService
.
saveOrUpdateBatch
(
resultModels
);
jgFeignClient
.
saveBatchResume
(
jgResumeInfoDtoList
);
this
.
pushInspectionApplication
(
inspectionApplicationModel
);
this
.
pushInspectionApplication
(
inspectionApplicationModel
);
}
}
...
...
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