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
0ed7a6ff
Commit
0ed7a6ff
authored
Feb 24, 2025
by
chenzhao
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/develop_tzs_register' into develop_tzs_register
parents
6726fd40
cdcd04f6
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
133 additions
and
35 deletions
+133
-35
EquipInfoCylinderExcelDto.java
...mos/boot/module/jg/api/dto/EquipInfoCylinderExcelDto.java
+29
-29
JgChangeRegistrationReformDto.java
...boot/module/jg/api/dto/JgChangeRegistrationReformDto.java
+10
-0
JgReformNoticeDto.java
...eejoin/amos/boot/module/jg/api/dto/JgReformNoticeDto.java
+5
-0
JgChangeRegistrationReform.java
...boot/module/jg/api/entity/JgChangeRegistrationReform.java
+14
-0
JgReformNotice.java
...eejoin/amos/boot/module/jg/api/entity/JgReformNotice.java
+6
-0
JgUseRegistrationMapper.xml
...api/src/main/resources/mapper/JgUseRegistrationMapper.xml
+1
-0
DataHandlerController.java
.../boot/module/jg/biz/controller/DataHandlerController.java
+24
-6
DataHandlerServiceImpl.java
...ot/module/jg/biz/service/impl/DataHandlerServiceImpl.java
+43
-0
JgUseRegistrationServiceImpl.java
...ule/jg/biz/service/impl/JgUseRegistrationServiceImpl.java
+1
-0
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/dto/EquipInfoCylinderExcelDto.java
View file @
0ed7a6ff
...
...
@@ -166,127 +166,127 @@ public class EquipInfoCylinderExcelDto extends BaseDto {
private
String
inspectDate
;
@ApiModelProperty
(
value
=
"检验报告编号"
)
@ExcelProperty
(
value
=
"检验报告编号"
)
@ExcelProperty
(
value
=
"检验报告编号"
,
index
=
28
)
private
String
inspectReportNo
;
//技术参数
@ExcelProperty
(
value
=
"额定质量(kg)"
,
index
=
2
8
)
@ExcelProperty
(
value
=
"额定质量(kg)"
,
index
=
2
9
)
@ApiModelProperty
(
value
=
"额定质量(kg)"
)
private
String
ratedQuality
;
@ExcelProperty
(
value
=
"使用环境温度(℃)"
,
index
=
29
)
@ExcelProperty
(
value
=
"使用环境温度(℃)"
,
index
=
30
)
@ApiModelProperty
(
value
=
"使用环境温度(℃)"
)
private
String
ambientTemperature
;
@ExcelProperty
(
value
=
"单瓶容积(m3)"
,
index
=
3
0
)
@ExcelProperty
(
value
=
"单瓶容积(m3)"
,
index
=
3
1
)
@ApiModelProperty
(
value
=
"单瓶容积(m3)"
)
@NotBlank
(
message
=
"单瓶容积(m3)不能为空"
)
private
String
singleBottleVolume
;
@ExcelProperty
(
value
=
"型号"
,
index
=
3
1
)
@ExcelProperty
(
value
=
"型号"
,
index
=
3
2
)
@ApiModelProperty
(
value
=
"型号"
)
private
String
modelNumber
;
@ExcelProperty
(
value
=
"充装介质"
,
index
=
3
2
)
@ExcelProperty
(
value
=
"充装介质"
,
index
=
3
3
)
@ApiModelProperty
(
value
=
"充装介质"
)
@NotBlank
(
message
=
"充装介质不能为空"
)
private
String
chargingMedium
;
@ExcelProperty
(
value
=
"规格"
,
index
=
3
3
)
@ExcelProperty
(
value
=
"规格"
,
index
=
3
4
)
@ApiModelProperty
(
value
=
"规格"
)
private
String
specification
;
@ExcelProperty
(
value
=
"外径"
,
index
=
3
4
)
@ExcelProperty
(
value
=
"外径"
,
index
=
3
5
)
@ApiModelProperty
(
value
=
"外径"
)
private
String
outsideDiameter
;
@ExcelProperty
(
value
=
"壁厚"
,
index
=
3
5
)
@ExcelProperty
(
value
=
"壁厚"
,
index
=
3
6
)
@ApiModelProperty
(
value
=
"壁厚"
)
private
String
wallThickness
;
@ExcelProperty
(
value
=
"长度"
,
index
=
3
6
)
@ExcelProperty
(
value
=
"长度"
,
index
=
3
7
)
@ApiModelProperty
(
value
=
"长度"
)
private
String
length
;
@ExcelProperty
(
value
=
"公称工作压力(MPa)"
,
index
=
3
7
)
@ExcelProperty
(
value
=
"公称工作压力(MPa)"
,
index
=
3
8
)
@ApiModelProperty
(
value
=
"公称工作压力(MPa)"
)
@NotBlank
(
message
=
"公称工作压力(MPa)不能为空"
)
private
String
nominalWorkingPressure
;
@ExcelProperty
(
value
=
"材料(管路)"
,
index
=
3
8
)
@ExcelProperty
(
value
=
"材料(管路)"
,
index
=
3
9
)
@ApiModelProperty
(
value
=
"材料(管路)"
)
private
String
piping
;
@ExcelProperty
(
value
=
"无损检测方法(气瓶)"
,
index
=
39
,
converter
=
NondestructConverter
.
class
)
@ExcelProperty
(
value
=
"无损检测方法(气瓶)"
,
index
=
40
,
converter
=
NondestructConverter
.
class
)
@ApiModelProperty
(
value
=
"无损检测方法(气瓶)"
)
private
String
qpLossless
;
//5988
@ExcelProperty
(
value
=
"材料(瓶体)"
,
index
=
4
0
)
@ExcelProperty
(
value
=
"材料(瓶体)"
,
index
=
4
1
)
@ApiModelProperty
(
value
=
"材料(瓶体)"
)
private
String
bottleBody
;
@ExcelProperty
(
value
=
"材料(端塞)"
,
index
=
4
1
)
@ExcelProperty
(
value
=
"材料(端塞)"
,
index
=
4
2
)
@ApiModelProperty
(
value
=
"材料(端塞)"
)
private
String
endPlug
;
@ExcelProperty
(
value
=
"无损检测比例(管路)(%)"
,
index
=
4
2
)
@ExcelProperty
(
value
=
"无损检测比例(管路)(%)"
,
index
=
4
3
)
@ApiModelProperty
(
value
=
"无损检测比例(管路)(%)"
)
private
String
glRatio
;
@ExcelProperty
(
value
=
"无损检测比例(气瓶)(%)"
,
index
=
4
3
)
@ExcelProperty
(
value
=
"无损检测比例(气瓶)(%)"
,
index
=
4
4
)
@ApiModelProperty
(
value
=
"无损检测比例(气瓶)(%)"
)
private
String
qpRatio
;
@ExcelProperty
(
value
=
"无损检测方法(管路)"
,
index
=
4
4
,
converter
=
NondestructConverter
.
class
)
@ExcelProperty
(
value
=
"无损检测方法(管路)"
,
index
=
4
5
,
converter
=
NondestructConverter
.
class
)
@ApiModelProperty
(
value
=
"无损检测方法(管路)"
)
private
String
glLossless
;
@ExcelProperty
(
value
=
"耐压实验压力(气瓶)(Mpa)"
,
index
=
4
5
)
@ExcelProperty
(
value
=
"耐压实验压力(气瓶)(Mpa)"
,
index
=
4
6
)
@ApiModelProperty
(
value
=
"耐压实验压力(气瓶)(Mpa)"
)
private
String
qpPressure
;
@ExcelProperty
(
value
=
"耐压实验压力(管路)(Mpa)"
,
index
=
4
6
)
@ExcelProperty
(
value
=
"耐压实验压力(管路)(Mpa)"
,
index
=
4
7
)
@ApiModelProperty
(
value
=
"耐压实验压力(管路)(Mpa)"
)
private
String
glPressure
;
@ExcelProperty
(
value
=
"气密性试验压力(气瓶)(Mpa)"
,
index
=
4
7
)
@ExcelProperty
(
value
=
"气密性试验压力(气瓶)(Mpa)"
,
index
=
4
8
)
@ApiModelProperty
(
value
=
"气密性试验压力(气瓶)(Mpa)"
)
private
String
qpAirTightness
;
@ExcelProperty
(
value
=
"气体置换后压力(MPa)"
,
index
=
4
8
)
@ExcelProperty
(
value
=
"气体置换后压力(MPa)"
,
index
=
4
9
)
@ApiModelProperty
(
value
=
"气体置换后压力(MPa)"
)
private
String
displacementPressure
;
@ExcelProperty
(
value
=
"热处理方式"
,
index
=
49
)
@ExcelProperty
(
value
=
"热处理方式"
,
index
=
50
)
@ApiModelProperty
(
value
=
"热处理方式"
)
private
String
heatTreatmentMethod
;
@ExcelProperty
(
value
=
"气密性实验压力(管路)(MPa)"
,
index
=
5
0
)
@ExcelProperty
(
value
=
"气密性实验压力(管路)(MPa)"
,
index
=
5
1
)
@ApiModelProperty
(
value
=
"气密性实验压力(管路)(MPa)"
)
private
String
glAirTightness
;
@ExcelProperty
(
value
=
"气瓶安装位置"
,
index
=
5
1
)
@ExcelProperty
(
value
=
"气瓶安装位置"
,
index
=
5
2
)
@ApiModelProperty
(
value
=
"气瓶安装位置"
)
private
String
installationPosition
;
@ExcelProperty
(
value
=
"瓶体内含氧量(%)"
,
index
=
5
2
)
@ExcelProperty
(
value
=
"瓶体内含氧量(%)"
,
index
=
5
3
)
@ApiModelProperty
(
value
=
"瓶体内含氧量(%)"
)
private
String
oxygen
;
@ExcelProperty
(
value
=
"热处理温度(℃)"
,
index
=
5
3
)
@ExcelProperty
(
value
=
"热处理温度(℃)"
,
index
=
5
4
)
@ApiModelProperty
(
value
=
"热处理温度(℃)"
)
private
String
qpHeatTreatmentTemperature
;
/**
* 信息化管理字段-信息化管理情况
*/
@ExcelProperty
(
value
=
"信息化管理情况"
,
index
=
54
,
converter
=
InformationSituationConverter
.
class
)
@ExcelProperty
(
value
=
"信息化管理情况"
,
index
=
55
,
converter
=
InformationSituationConverter
.
class
)
private
String
informationSituation
;
/**
* 信息化管理字段-二维码或者电子标签编号
*/
@ExcelProperty
(
value
=
"二维码或者电子标签编号"
,
index
=
55
)
@ExcelProperty
(
value
=
"二维码或者电子标签编号"
,
index
=
56
)
private
String
informationManageCode
;
@ExcelIgnore
...
...
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/java/com/yeejoin/amos/boot/module/jg/api/dto/JgChangeRegistrationReformDto.java
View file @
0ed7a6ff
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jg
.
api
.
dto
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
com.fasterxml.jackson.databind.annotation.JsonSerialize
;
import
com.yeejoin.amos.boot.biz.common.dto.BaseDto
;
...
...
@@ -167,4 +168,13 @@ public class JgChangeRegistrationReformDto extends BaseDto {
@ApiModelProperty
(
value
=
"作废人员id"
)
private
String
cancelUserId
;
@ApiModelProperty
(
value
=
"工程装置id"
)
private
String
projectContraptionId
;
@TableField
(
"project_contraption"
)
@ApiModelProperty
(
value
=
"工程装置名称"
)
private
String
projectContraption
;
}
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/java/com/yeejoin/amos/boot/module/jg/api/dto/JgReformNoticeDto.java
View file @
0ed7a6ff
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jg
.
api
.
dto
;
import
com.alibaba.fastjson.JSONObject
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
com.fasterxml.jackson.databind.annotation.JsonSerialize
;
import
com.yeejoin.amos.boot.biz.common.dto.BaseDto
;
...
...
@@ -171,6 +172,10 @@ public class JgReformNoticeDto extends BaseDto {
@ApiModelProperty
(
value
=
"工程装置名称"
)
private
String
projectContraption
;
@ApiModelProperty
(
value
=
"工程装置id"
)
private
String
projectContraptionId
;
/* ---------------- -------------- */
@ApiModelProperty
(
value
=
"告知设备列表"
)
...
...
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/java/com/yeejoin/amos/boot/module/jg/api/entity/JgChangeRegistrationReform.java
View file @
0ed7a6ff
...
...
@@ -286,4 +286,18 @@ public class JgChangeRegistrationReform extends BaseEntity {
*/
@TableField
(
"cancel_user_name"
)
private
String
cancelUserName
;
/**
* 工程装置id
*/
@TableField
(
"project_contraption_id"
)
private
String
projectContraptionId
;
/**
* 工程装置名称
*/
@TableField
(
"project_contraption"
)
private
String
projectContraption
;
}
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/java/com/yeejoin/amos/boot/module/jg/api/entity/JgReformNotice.java
View file @
0ed7a6ff
...
...
@@ -184,6 +184,12 @@ public class JgReformNotice extends BaseEntity {
private
String
projectContraption
;
/**
* 工程装置id
*/
@TableField
(
"project_contraption_id"
)
private
String
projectContraptionId
;
/**
* 施工负责人手机
*/
@TableField
(
"construction_manager_phone"
)
...
...
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/resources/mapper/JgUseRegistrationMapper.xml
View file @
0ed7a6ff
...
...
@@ -139,6 +139,7 @@
ur.audit_status as auditStatus,
date_format(ur.reg_date,'%Y-%m-%d') as regDate,
ur.use_unit_name as useUnitName,
ur.supervision_org_code as supervisionOrgCode,
ur.status,
ur.receive_org_name as receiveOrgName,
ur.use_address as place,
...
...
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/java/com/yeejoin/amos/boot/module/jg/biz/controller/DataHandlerController.java
View file @
0ed7a6ff
...
...
@@ -5,10 +5,9 @@ import com.yeejoin.amos.boot.biz.common.controller.BaseController;
import
com.yeejoin.amos.boot.module.jg.biz.service.impl.DataHandlerServiceImpl
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.PutMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
io.swagger.annotations.ApiParam
;
import
org.springframework.util.StopWatch
;
import
org.springframework.web.bind.annotation.*
;
import
org.typroject.tyboot.core.foundation.enumeration.UserType
;
import
org.typroject.tyboot.core.restful.doc.TycloudOperation
;
import
org.typroject.tyboot.core.restful.utils.ResponseHelper
;
...
...
@@ -154,8 +153,27 @@ public class DataHandlerController extends BaseController {
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"使用登记、车用气瓶登记历史单据使用登记表生成"
,
notes
=
"使用登记、车用气瓶登记历史单据使用登记表生成"
)
@GetMapping
(
value
=
"/initFormUrl"
)
public
void
initFormUrl
()
{
public
ResponseModel
<
Boolean
>
initFormUrl
()
{
dataHandlerService
.
initFormUrl
();
ResponseHelper
.
buildResponse
(
true
);
return
ResponseHelper
.
buildResponse
(
Boolean
.
TRUE
);
}
/**
* 同步设备信息到ES
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"同步设备信息到ES"
,
notes
=
"同步设备信息到ES"
)
@PostMapping
(
value
=
"/synchronizeEqData2ES"
)
public
ResponseModel
<
String
>
synchronizeEqData2ES
(
@ApiParam
(
value
=
"设备的record,多个设备使用英文逗号分割"
,
required
=
true
)
@RequestParam
(
value
=
"records"
)
String
records
,
@ApiParam
(
value
=
"是否安改维单位,默认值'false'"
,
required
=
true
,
defaultValue
=
"false"
)
@RequestParam
(
value
=
"isAgw"
,
defaultValue
=
"false"
)
Boolean
isAgw
,
@ApiParam
(
value
=
"是否纳管,默认值'true'"
,
required
=
true
,
defaultValue
=
"true"
)
@RequestParam
(
value
=
"isIntoManagement"
,
defaultValue
=
"true"
)
Boolean
isIntoManagement
)
{
StopWatch
watch
=
new
StopWatch
();
watch
.
start
();
dataHandlerService
.
synchronizeEqData2ES
(
records
,
isAgw
,
isIntoManagement
);
watch
.
stop
();
return
ResponseHelper
.
buildResponse
(
String
.
format
(
"同步成功,耗时:%s"
,
watch
.
getTotalTimeSeconds
()));
}
}
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/DataHandlerServiceImpl.java
View file @
0ed7a6ff
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jg
.
biz
.
service
.
impl
;
import
cn.hutool.core.bean.BeanUtil
;
import
cn.hutool.core.date.DatePattern
;
import
cn.hutool.core.date.DateUtil
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSONObject
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
...
...
@@ -9,6 +11,7 @@ import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
import
com.fasterxml.jackson.core.JsonProcessingException
;
import
com.fasterxml.jackson.core.type.TypeReference
;
import
com.fasterxml.jackson.databind.ObjectMapper
;
import
com.yeejoin.amos.boot.biz.common.bo.CompanyBo
;
import
com.yeejoin.amos.boot.biz.common.dao.mapper.DataDictionaryMapper
;
import
com.yeejoin.amos.boot.biz.common.entity.BaseEntity
;
import
com.yeejoin.amos.boot.biz.common.entity.DataDictionary
;
...
...
@@ -18,6 +21,7 @@ import com.yeejoin.amos.boot.module.common.api.dto.ESEquipmentCategoryDto;
import
com.yeejoin.amos.boot.module.jg.api.dto.JgInstallationNoticeEqDto
;
import
com.yeejoin.amos.boot.module.jg.api.dto.PieLineEquipContraptionDto
;
import
com.yeejoin.amos.boot.module.jg.api.entity.*
;
import
com.yeejoin.amos.boot.module.jg.api.enums.CompanyTypeEnum
;
import
com.yeejoin.amos.boot.module.jg.api.enums.PipelineEnum
;
import
com.yeejoin.amos.boot.module.jg.api.mapper.DataHandlerMapper
;
import
com.yeejoin.amos.boot.module.jg.api.mapper.JgInstallationNoticeEqMapper
;
...
...
@@ -42,12 +46,14 @@ import org.typroject.tyboot.core.foundation.utils.ValidationUtil;
import
javax.annotation.Resource
;
import
java.math.BigDecimal
;
import
java.math.RoundingMode
;
import
java.sql.Timestamp
;
import
java.time.LocalDateTime
;
import
java.util.*
;
import
java.util.concurrent.ConcurrentHashMap
;
import
java.util.concurrent.atomic.AtomicReference
;
import
java.util.stream.Collectors
;
import
static
com
.
alibaba
.
fastjson
.
JSON
.
toJSONString
;
import
static
com
.
yeejoin
.
amos
.
boot
.
module
.
jg
.
biz
.
service
.
impl
.
JgInstallationNoticeServiceImpl
.
CONSTRUCTION_TYPE
;
import
static
com
.
yeejoin
.
amos
.
boot
.
module
.
jg
.
biz
.
service
.
impl
.
JgInstallationNoticeServiceImpl
.
CONSTRUCTION_TYPE_NAME
;
...
...
@@ -84,6 +90,8 @@ public class DataHandlerServiceImpl {
private
final
IdxBizJgProjectContraptionMapper
idxBizJgProjectContraptionMapper
;
private
final
JgInstallationNoticeMapper
jgInstallationNoticeMapper
;
private
final
DataHandlerMapper
dataHandlerMapper
;
private
final
CategoryOtherInfoMapper
categoryOtherInfoMapper
;
;
/**
...
...
@@ -986,4 +994,39 @@ public class DataHandlerServiceImpl {
jgVehicleInformationService
.
initFormUrl
();
useRegistrationService
.
initFormUrl
();
}
public
void
synchronizeEqData2ES
(
String
records
,
Boolean
isAgw
,
Boolean
isIntoManagement
)
{
if
(
records
==
null
||
records
.
isEmpty
())
{
return
;
}
String
[]
recordArr
=
records
.
trim
().
split
(
","
);
for
(
String
record
:
recordArr
)
{
Map
<
String
,
Object
>
map
=
categoryOtherInfoMapper
.
selectDataById
(
record
);
categoryOtherInfoMapper
.
updateEsStatus
(
record
);
ESEquipmentCategoryDto
dto
=
JSON
.
parseObject
(
toJSONString
(
map
),
ESEquipmentCategoryDto
.
class
);
Optional
<
ESEquipmentCategoryDto
>
data
=
esEquipmentCategory
.
findById
(
record
);
if
(!
ObjectUtils
.
isEmpty
(
data
))
{
esEquipmentCategory
.
deleteById
(
record
);
}
if
(!
ObjectUtils
.
isEmpty
(
dto
))
{
long
time
=
Timestamp
.
valueOf
(
map
.
get
(
"REC_DATE"
).
toString
().
substring
(
0
,
19
)).
getTime
();
dto
.
setREC_DATE
(
time
);
// 需要安装的设备 安装告知审批通过 清除设备的USC_UNIT_CREDIT_CODE安装单位信息
// 使用单位编辑 防止更新设备时将安改维单位信息更新到es中
if
(!
isAgw
)
{
dto
.
setUSC_UNIT_CREDIT_CODE
(
null
);
dto
.
setUSC_UNIT_NAME
(
null
);
}
if
(
map
.
get
(
"NEXT_INSPECT_DATE"
)
!=
null
)
{
Date
nextInspectDate
=
(
Date
)
map
.
get
(
"NEXT_INSPECT_DATE"
);
dto
.
setNEXT_INSPECT_DATE
(
DateUtil
.
parse
(
DateUtil
.
format
(
nextInspectDate
,
DatePattern
.
NORM_DATE_PATTERN
)).
getTime
());
}
dto
.
setIS_INTO_MANAGEMENT
(
isIntoManagement
);
IdxBizJgUseInfo
useInfo
=
useInfoService
.
lambdaQuery
().
eq
(
IdxBizJgUseInfo:
:
getRecord
,
record
).
one
();
dto
.
setUSE_PLACE_CODE
(
useInfo
.
getProvince
()
+
"#"
+
useInfo
.
getCity
()
+
"#"
+
useInfo
.
getCounty
()
+
"#"
+
useInfo
.
getFactoryUseSiteStreet
());
dto
.
setUSE_SITE_CODE
(
useInfo
.
getUsePlace
());
esEquipmentCategory
.
save
(
dto
);
}
}
}
}
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 @
0ed7a6ff
...
...
@@ -2118,6 +2118,7 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
jsonObject
.
put
(
"receiveOrgCode"
,
jgUseRegistration
.
getReceiveCompanyCode
()
+
"_"
+
jgUseRegistration
.
getReceiveOrgName
());
jsonObject
.
put
(
"status"
,
jgUseRegistration
.
getStatus
());
jsonObject
.
put
(
"applyNo"
,
jgUseRegistration
.
getApplyNo
());
jsonObject
.
put
(
"installAddress"
,
jsonObject
.
getString
(
"address"
));
// 前端展示填充数据
Optional
.
ofNullable
(
jsonObject
.
get
(
"safetyManagerName"
)).
ifPresent
(
name
->
jsonObject
.
put
(
"maintenanceManagerName"
,
name
));
Optional
.
ofNullable
(
jsonObject
.
get
(
"phone"
)).
ifPresent
(
phone
->
jsonObject
.
put
(
"maintenanceManagerPhone"
,
phone
));
jsonObject
.
remove
(
"submit"
);
...
...
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