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
41b501ce
Commit
41b501ce
authored
Jul 15, 2024
by
刘林
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/develop_tzs_register_to_0715' into…
Merge remote-tracking branch 'origin/develop_tzs_register_to_0715' into develop_tzs_register_to_0715
parents
4a20151a
4d688fb1
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
148 additions
and
95 deletions
+148
-95
CylinderInfoServiceImpl.java
...ylinder/flc/biz/service/impl/CylinderInfoServiceImpl.java
+5
-5
JgScrapCancelDto.java
...yeejoin/amos/boot/module/jg/api/dto/JgScrapCancelDto.java
+6
-0
JgScrapCancelMapper.xml
...-jg-api/src/main/resources/mapper/JgScrapCancelMapper.xml
+3
-2
JgUseRegistrationMapper.xml
...api/src/main/resources/mapper/JgUseRegistrationMapper.xml
+20
-1
IdxBizJqEquipmentRegisterController.java
...g/biz/controller/IdxBizJqEquipmentRegisterController.java
+13
-13
IdxBizJgRegisterInfoServiceImpl.java
.../jg/biz/service/impl/IdxBizJgRegisterInfoServiceImpl.java
+66
-48
JgScrapCancelServiceImpl.java
.../module/jg/biz/service/impl/JgScrapCancelServiceImpl.java
+2
-2
JgUseRegistrationServiceImpl.java
...ule/jg/biz/service/impl/JgUseRegistrationServiceImpl.java
+11
-6
superviseBusinessCategory.json
...iz/src/main/resources/json/superviseBusinessCategory.json
+16
-12
urlInfo.json
...s-boot-module-jg-biz/src/main/resources/json/urlInfo.json
+6
-6
No files found.
amos-boot-system-tzs/amos-boot-module-cylinder/amos-boot-module-cylinder-biz/src/main/java/com/yeejoin/amos/boot/module/cylinder/flc/biz/service/impl/CylinderInfoServiceImpl.java
View file @
41b501ce
...
...
@@ -68,7 +68,9 @@ import java.math.BigDecimal;
import
java.text.DecimalFormat
;
import
java.text.ParseException
;
import
java.text.SimpleDateFormat
;
import
java.time.LocalDate
;
import
java.time.ZonedDateTime
;
import
java.time.format.DateTimeFormatter
;
import
java.util.*
;
import
java.util.concurrent.CompletableFuture
;
import
java.util.function.Consumer
;
...
...
@@ -1501,12 +1503,10 @@ public class CylinderInfoServiceImpl extends BaseService<CylinderInfoDto, Cylind
List
<
String
>
times
=
new
ArrayList
<>();
Date
currentDate
=
new
Date
();
for
(
int
i
=
0
;
i
<
30
;
i
++)
{
Date
date
=
new
Date
(
currentDate
.
getTime
()
-
i
*
24
*
60
*
60
*
1000
);
times
.
add
(
sdf
.
format
(
date
));
times
.
add
(
LocalDate
.
now
().
minusDays
(
i
).
format
(
DateTimeFormatter
.
ofPattern
(
"yyyy-MM-dd"
)));
}
Date
date
=
new
Date
(
currentDate
.
getTime
()
-
29
*
24
*
60
*
60
*
1000
);
List
<
CylinderFillingRecordStatisticsDto
>
fillingRecord
=
baseMapper
.
queryFillingRecordByOrgCode
(
orgCode
,
sdf
.
format
(
date
));
List
<
CylinderFillingRecordStatisticsDto
>
offloading
=
baseMapper
.
queryoffloadingByOrgCode
(
orgCode
,
sdf
.
format
(
date
));
List
<
CylinderFillingRecordStatisticsDto
>
fillingRecord
=
baseMapper
.
queryFillingRecordByOrgCode
(
orgCode
,
LocalDate
.
now
().
minusDays
(
29
).
format
(
DateTimeFormatter
.
ofPattern
(
"yyyy-MM-dd"
)));
List
<
CylinderFillingRecordStatisticsDto
>
offloading
=
baseMapper
.
queryoffloadingByOrgCode
(
orgCode
,
LocalDate
.
now
().
minusDays
(
29
).
format
(
DateTimeFormatter
.
ofPattern
(
"yyyy-MM-dd"
)));
if
(
fillingRecord
==
null
)
{
fillingRecord
=
new
ArrayList
<>(
0
);
}
...
...
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/java/com/yeejoin/amos/boot/module/jg/api/dto/JgScrapCancelDto.java
View file @
41b501ce
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
;
import
com.yeejoin.amos.boot.module.jg.api.common.BizCustomDateSerializer
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
import
org.springframework.format.annotation.DateTimeFormat
;
import
java.util.Date
;
import
java.util.List
;
...
...
@@ -51,6 +55,8 @@ public class JgScrapCancelDto extends BaseDto {
private
String
createUserId
;
@ApiModelProperty
(
value
=
"创建时间"
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd"
)
@JsonSerialize
(
using
=
BizCustomDateSerializer
.
class
)
private
Date
createDate
;
@ApiModelProperty
(
value
=
"流程状态"
)
...
...
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/resources/mapper/JgScrapCancelMapper.xml
View file @
41b501ce
...
...
@@ -34,7 +34,8 @@
DATE_FORMAT(tjsc.audit_pass_date,'%Y-%m-%d') as auditPassDate,
tjsc.use_unit_name,
tjsc.use_unit_code,
tjsc.use_registration_code
tjsc.use_registration_code,
tjsc.equ_list_code
from tzs_jg_scrap_cancel tjsc
<where>
tjsc.is_delete = 0
...
...
@@ -58,7 +59,7 @@
</if>
<if
test=
"dto.useRegistrationCode != null and dto.useRegistrationCode != ''"
>
AND tjsc."
USE_ORG_CODE
" like concat('%',#{dto.useRegistrationCode},'%')
AND tjsc."
use_registration_code
" like concat('%',#{dto.useRegistrationCode},'%')
</if>
<if
test=
"roleIds != null and dto.type == 'supervision'"
>
<foreach
collection=
'roleIds'
item=
'role'
open=
'and ('
close=
')'
separator=
'or'
>
...
...
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/resources/mapper/JgUseRegistrationMapper.xml
View file @
41b501ce
...
...
@@ -442,7 +442,16 @@
<include
refid=
"page-list-pipeline"
/>
WHERE
ri."EQU_CATEGORY" = '8300'
<if
test=
"jsonObject.DATA_SOURCE != null and jsonObject.DATA_SOURCE != 'jg_his'"
>
and ui."DATA_SOURCE" like 'jg%'
and ui."DATA_SOURCE" not like 'jg_his%'
</if>
<if
test=
"jsonObject.DATA_SOURCE != null and jsonObject.DATA_SOURCE == 'jg_his'"
>
and ui."DATA_SOURCE" like 'jg_his%'
</if>
<if
test=
"jsonObject.DATA_SOURCE == null or jsonObject.DATA_SOURCE == ''"
>
and ui."DATA_SOURCE" like 'jg%'
</if>
-- 保证使用单位选择设备时(record为null) 能选择到本单位的设备 并且 监管单位在查看时(record 不为null)可以匹配到所有的设备
<if
test=
"jsonObject.useUnitCreditCode != null and jsonObject.useUnitCreditCode != '' and jsonObject.record == null"
>
and ui."USE_UNIT_CREDIT_CODE" = #{jsonObject.useUnitCreditCode}
...
...
@@ -506,6 +515,16 @@
ri."EQU_CATEGORY" = '2300'
and ui."DATA_SOURCE" like 'jg%'
and (ri.whether_vehicle_cylinder is null or ri.whether_vehicle_cylinder != 1)
<if
test=
"jsonObject.DATA_SOURCE != null and jsonObject.DATA_SOURCE != 'jg_his'"
>
and ui."DATA_SOURCE" like 'jg%'
and ui."DATA_SOURCE" not like 'jg_his%'
</if>
<if
test=
"jsonObject.DATA_SOURCE != null and jsonObject.DATA_SOURCE == 'jg_his'"
>
and ui."DATA_SOURCE" like 'jg_his%'
</if>
<if
test=
"jsonObject.DATA_SOURCE == null or jsonObject.DATA_SOURCE == ''"
>
and ui."DATA_SOURCE" like 'jg%'
</if>
-- 保证使用单位选择设备时(record为null) 能选择到本单位的设备 并且 监管单位在查看时(record 不为null)可以匹配到所有的设备
<if
test=
"jsonObject.useUnitCreditCode != null and jsonObject.useUnitCreditCode != '' and jsonObject.record == null"
>
and ui."USE_UNIT_CREDIT_CODE" = #{jsonObject.useUnitCreditCode}
...
...
@@ -531,7 +550,7 @@
WHERE
ri."EQU_DEFINE" = '23T0'
and ui."DATA_SOURCE" like 'jg%'
and ui."DATA_SOURCE" not like 'jg_his%'
--
and ui."DATA_SOURCE" not like 'jg_his%'
and ri.whether_vehicle_cylinder = 1
-- 保证使用单位选择设备时(record为null) 能选择到本单位的设备 并且 监管单位在查看时(record 不为null)可以匹配到所有的设备
<if
test=
"jsonObject.useUnitCreditCode != null and jsonObject.useUnitCreditCode != '' and jsonObject.record == null"
>
...
...
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/java/com/yeejoin/amos/boot/module/jg/biz/controller/IdxBizJqEquipmentRegisterController.java
View file @
41b501ce
...
...
@@ -110,19 +110,19 @@ public class IdxBizJqEquipmentRegisterController extends BaseController {
JSONObject
jsonObject
=
new
JSONObject
(
map
);
return
ResponseHelper
.
buildResponse
(
idxBizJgRegisterInfoService
.
queryForEquipmentRegisterPage
(
jsonObject
));
}
/**
* 查询设备注册列表
*
* @param map
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@GetMapping
(
value
=
"/pageHistory"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"设备注册信息分页查询"
,
notes
=
"设备注册信息分页查询"
)
public
ResponseModel
<
Page
<
JSONObject
>>
queryForPageHistory
(
@RequestParam
Map
<
String
,
Object
>
map
)
{
JSONObject
jsonObject
=
new
JSONObject
(
map
);
return
ResponseHelper
.
buildResponse
(
idxBizJgRegisterInfoService
.
queryForEquipmentRegisterPageHistory
(
jsonObject
));
}
//
/**
//
* 查询设备注册列表
//
*
//
* @param map
//
* @return
//
*/
//
@TycloudOperation(ApiLevel = UserType.AGENCY)
//
@GetMapping(value = "/pageHistory")
//
@ApiOperation(httpMethod = "GET", value = "设备注册信息分页查询", notes = "设备注册信息分页查询")
//
public ResponseModel<Page<JSONObject>> queryForPageHistory(@RequestParam Map<String, Object> map) {
//
JSONObject jsonObject = new JSONObject(map);
//
return ResponseHelper.buildResponse(idxBizJgRegisterInfoService.queryForEquipmentRegisterPageHistory(jsonObject));
//
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@GetMapping
(
value
=
"/category/list"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"查询不同单位类型可新增的设备种类列表"
,
notes
=
"查询不同单位类型可新增的设备种类列表"
)
...
...
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 @
41b501ce
...
...
@@ -28,7 +28,6 @@ import com.yeejoin.amos.boot.module.jg.api.dto.EquipmentInfoDto;
import
com.yeejoin.amos.boot.module.jg.api.entity.JgCertificateChangeRecord
;
import
com.yeejoin.amos.boot.module.jg.api.entity.JgCertificateChangeRecordEq
;
import
com.yeejoin.amos.boot.module.jg.api.entity.JgUseRegistrationManage
;
import
com.yeejoin.amos.boot.module.jg.api.entity.JgVehicleInformation
;
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.JgUseRegistrationMapper
;
...
...
@@ -43,7 +42,10 @@ import com.yeejoin.amos.boot.module.ymt.api.entity.*;
import
com.yeejoin.amos.boot.module.ymt.api.enums.ApplicationFormTypeEnum
;
import
com.yeejoin.amos.boot.module.ymt.api.enums.EquimentEnum
;
import
com.yeejoin.amos.boot.module.ymt.api.enums.EquipmentClassifityEnum
;
import
com.yeejoin.amos.boot.module.ymt.api.mapper.*
;
import
com.yeejoin.amos.boot.module.ymt.api.mapper.CategoryOtherInfoMapper
;
import
com.yeejoin.amos.boot.module.ymt.api.mapper.IdxBizJgRegisterInfoMapper
;
import
com.yeejoin.amos.boot.module.ymt.api.mapper.RegistrationInfoMapper
;
import
com.yeejoin.amos.boot.module.ymt.api.mapper.SuperviseInfoMapper
;
import
com.yeejoin.amos.component.feign.utils.FeignUtil
;
import
com.yeejoin.amos.feign.privilege.Privilege
;
import
com.yeejoin.amos.feign.privilege.model.CompanyModel
;
...
...
@@ -76,6 +78,7 @@ import org.typroject.tyboot.core.rdbms.service.BaseService;
import
org.typroject.tyboot.core.restful.exception.instance.BadRequest
;
import
org.typroject.tyboot.core.restful.utils.ResponseHelper
;
import
org.typroject.tyboot.core.restful.utils.ResponseModel
;
import
java.io.IOException
;
import
java.lang.reflect.Field
;
import
java.sql.Timestamp
;
...
...
@@ -86,6 +89,7 @@ import java.time.ZoneId;
import
java.time.format.DateTimeFormatter
;
import
java.util.*
;
import
java.util.stream.Collectors
;
import
static
com
.
alibaba
.
fastjson
.
JSON
.
toJSONString
;
import
static
com
.
yeejoin
.
amos
.
boot
.
module
.
jg
.
api
.
enums
.
CylinderTypeEnum
.
SPECIAL_CYLINDER
;
import
static
com
.
yeejoin
.
amos
.
boot
.
module
.
jg
.
api
.
enums
.
VehicleApanageEnum
.
XIAN_YANG
;
...
...
@@ -539,9 +543,9 @@ public class IdxBizJgRegisterInfoServiceImpl extends BaseService<IdxBizJgRegiste
}
@Override
public
List
<
DictionarieValueModel
>
equCategoryListByCompanyType
(
ReginParams
selectedOrgInfo
,
String
equList
,
String
businessScenarios
,
String
dataSource
)
{
public
List
<
DictionarieValueModel
>
equCategoryListByCompanyType
(
ReginParams
selectedOrgInfo
,
String
equList
,
String
businessScenarios
,
String
dataSource
)
{
// 历史设备录入 直接取所有的设备种类(equList)下的所有设备类别
if
(
"his"
.
equals
(
dataSource
)){
if
(
"his"
.
equals
(
dataSource
))
{
return
this
.
baseMapper
.
queryAllEquCategoriesUnderTheEquList
(
equList
);
}
...
...
@@ -552,7 +556,7 @@ public class IdxBizJgRegisterInfoServiceImpl extends BaseService<IdxBizJgRegiste
}
String
dictCode
=
String
.
format
(
"%s_%s"
,
dictCodePrefix
,
equipAddDictCodeSuffix
);
List
<
DictionarieValueModel
>
result
=
FeignUtil
.
remoteCall
(()
->
Systemctl
.
dictionarieClient
.
dictValues
(
dictCode
));
if
(
CompanyTypeEnum
.
CONSTRUCTION
.
getName
().
equals
(
companyType
)
||
ValidationUtil
.
isEmpty
(
businessScenarios
)){
if
(
CompanyTypeEnum
.
CONSTRUCTION
.
getName
().
equals
(
companyType
)
||
ValidationUtil
.
isEmpty
(
businessScenarios
))
{
return
result
;
}
// 初始化collect列表
...
...
@@ -1262,7 +1266,6 @@ public class IdxBizJgRegisterInfoServiceImpl extends BaseService<IdxBizJgRegiste
return
new
Page
<>();
}
Integer
pageNumber
=
ObjectUtils
.
isEmpty
(
map
.
getInteger
(
"number"
))
?
1
:
map
.
getInteger
(
"number"
);
Integer
size
=
ObjectUtils
.
isEmpty
(
map
.
getInteger
(
"size"
))
?
20
:
map
.
getInteger
(
"size"
);
Page
<
JSONObject
>
result
=
new
Page
<>(
pageNumber
,
size
);
...
...
@@ -1315,8 +1318,18 @@ public class IdxBizJgRegisterInfoServiceImpl extends BaseService<IdxBizJgRegiste
// DATA_SOURCE 为“jg”开头的数据(从监管新加或复制的设备)
// 20240314 提出的监管业务不要让企业用户选到之前一码通认领或补录的设备,让从监管业务中去新增
BoolQueryBuilder
dBuilder
=
QueryBuilders
.
boolQuery
();
if
(
map
.
containsKey
(
"DATA_SOURCE"
)
&&
!
ObjectUtils
.
isEmpty
(
map
.
get
(
"DATA_SOURCE"
)))
{
if
(
"jg_his"
.
equals
(
map
.
get
(
"DATA_SOURCE"
)))
{
//只查历史,前缀jg_his
dBuilder
.
must
(
QueryBuilders
.
prefixQuery
(
"DATA_SOURCE"
,
"jg_his"
));
}
else
if
(!
"jg_his"
.
equals
(
map
.
getString
(
"DATA_SOURCE"
)))
{
//只查新增,前缀为jg且前缀不为jg_his
dBuilder
.
must
(
QueryBuilders
.
prefixQuery
(
"DATA_SOURCE"
,
"jg"
));
dBuilder
.
mustNot
(
QueryBuilders
.
prefixQuery
(
"DATA_SOURCE"
,
"jg_his"
));
}
}
else
{
//查所有,前缀jg
dBuilder
.
must
(
QueryBuilders
.
prefixQuery
(
"DATA_SOURCE"
,
"jg"
));
dBuilder
.
mustNot
(
QueryBuilders
.
prefixQuery
(
"DATA_SOURCE"
,
"jg_his"
));
}
boolMust
.
must
(
dBuilder
);
String
queryType
=
map
.
getString
(
"QUERY_TYPE"
);
...
...
@@ -1339,14 +1352,14 @@ public class IdxBizJgRegisterInfoServiceImpl extends BaseService<IdxBizJgRegiste
syBuilder
.
mustNot
(
QueryBuilders
.
wildcardQuery
(
"USE_ORG_CODE"
,
"*"
));
boolMust
.
must
(
syBuilder
);
this
.
setRepeatUsedCheckFilterParam
(
boolMust
,
companyCode
,
"useRegister"
);
}
else
if
(
ValidationUtil
.
equals
(
queryType
,
"FINISH_SY"
))
{
}
else
if
(
ValidationUtil
.
equals
(
queryType
,
"FINISH_SY"
))
{
// 注意:上面条件是过滤出【未做过】某个业务的设备,下面部分是过滤出【做过】某个业务的设备
// 查询 已经做过【使用登记】 的设备 【(EQU_STATUS != 空 ) && (USE_ORG_CODE(使用登记证编号) != 空)】
BoolQueryBuilder
syBuilder
=
QueryBuilders
.
boolQuery
();
syBuilder
.
must
(
QueryBuilders
.
existsQuery
(
"EQU_STATE"
))
.
must
(
QueryBuilders
.
wildcardQuery
(
"USE_ORG_CODE"
,
"*"
));
boolMust
.
must
(
syBuilder
);
}
else
if
(
ValidationUtil
.
equals
(
queryType
,
"GZ_GZ"
)
||
ValidationUtil
.
equals
(
queryType
,
"GZ_WX"
)
||
ValidationUtil
.
equals
(
queryType
,
"GZ_YZ"
))
{
}
else
if
(
ValidationUtil
.
equals
(
queryType
,
"GZ_GZ"
)
||
ValidationUtil
.
equals
(
queryType
,
"GZ_WX"
)
||
ValidationUtil
.
equals
(
queryType
,
"GZ_YZ"
))
{
BoolQueryBuilder
syBuilder
=
QueryBuilders
.
boolQuery
();
syBuilder
.
must
(
QueryBuilders
.
existsQuery
(
"EQU_STATE"
));
syBuilder
.
must
(
QueryBuilders
.
wildcardQuery
(
"USE_ORG_CODE"
,
"*"
));
...
...
@@ -1682,14 +1695,14 @@ public class IdxBizJgRegisterInfoServiceImpl extends BaseService<IdxBizJgRegiste
syBuilder
.
mustNot
(
QueryBuilders
.
wildcardQuery
(
"USE_ORG_CODE"
,
"*"
));
boolMust
.
must
(
syBuilder
);
this
.
setRepeatUsedCheckFilterParam
(
boolMust
,
companyCode
,
"useRegister"
);
}
else
if
(
ValidationUtil
.
equals
(
queryType
,
"FINISH_SY"
))
{
}
else
if
(
ValidationUtil
.
equals
(
queryType
,
"FINISH_SY"
))
{
// 注意:上面条件是过滤出【未做过】某个业务的设备,下面部分是过滤出【做过】某个业务的设备
// 查询 已经做过【使用登记】 的设备 【(EQU_STATUS != 空 ) && (USE_ORG_CODE(使用登记证编号) != 空)】
BoolQueryBuilder
syBuilder
=
QueryBuilders
.
boolQuery
();
syBuilder
.
must
(
QueryBuilders
.
existsQuery
(
"EQU_STATE"
))
.
must
(
QueryBuilders
.
wildcardQuery
(
"USE_ORG_CODE"
,
"*"
));
boolMust
.
must
(
syBuilder
);
}
else
if
(
ValidationUtil
.
equals
(
queryType
,
"GZ_GZ"
)
||
ValidationUtil
.
equals
(
queryType
,
"GZ_WX"
)
||
ValidationUtil
.
equals
(
queryType
,
"GZ_YZ"
))
{
}
else
if
(
ValidationUtil
.
equals
(
queryType
,
"GZ_GZ"
)
||
ValidationUtil
.
equals
(
queryType
,
"GZ_WX"
)
||
ValidationUtil
.
equals
(
queryType
,
"GZ_YZ"
))
{
BoolQueryBuilder
syBuilder
=
QueryBuilders
.
boolQuery
();
syBuilder
.
must
(
QueryBuilders
.
existsQuery
(
"EQU_STATE"
));
syBuilder
.
must
(
QueryBuilders
.
wildcardQuery
(
"USE_ORG_CODE"
,
"*"
));
...
...
@@ -2363,9 +2376,9 @@ public class IdxBizJgRegisterInfoServiceImpl extends BaseService<IdxBizJgRegiste
jsonObject
.
put
(
"useUnitCreditCode"
,
useUnitCreditCode
);
Page
<
JSONObject
>
page
=
new
Page
<>(
jsonObject
.
getLong
(
"number"
),
jsonObject
.
getLong
(
"size"
));
Set
<
String
>
records
=
EquipUsedCheckStrategyContext
.
getUsedStrategy
(
"useRegister"
).
getEquipInFlow
(
useUnitCreditCode
);
if
(
"8300"
.
equals
(
jsonObject
.
get
(
"EQU_CATEGORY_CODE"
)))
{
if
(
"8300"
.
equals
(
jsonObject
.
get
(
"EQU_CATEGORY_CODE"
)))
{
//管道
return
jgUseRegistrationMapper
.
queryForUnitPipelineEquipmentPage
(
page
,
jsonObject
,
records
);
}
else
if
(
"2300"
.
equals
(
jsonObject
.
get
(
"EQU_CATEGORY_CODE"
)))
{
}
else
if
(
"2300"
.
equals
(
jsonObject
.
get
(
"EQU_CATEGORY_CODE"
)))
{
//气瓶
List
<
DictionarieValueModel
>
fillingMedium
=
Systemctl
.
dictionarieClient
.
dictValues
(
"FILLING_MEDIUM"
).
getResult
();
Map
<
String
,
Object
>
fillingMediumMap
=
fillingMedium
.
stream
().
collect
(
Collectors
.
toMap
(
DictionarieValueModel:
:
getDictDataKey
,
DictionarieValueModel:
:
getDictDataValue
));
Page
<
JSONObject
>
result
=
jgUseRegistrationMapper
.
queryForUnitVesselEquipmentPage
(
page
,
jsonObject
,
records
);
...
...
@@ -2395,6 +2408,7 @@ public class IdxBizJgRegisterInfoServiceImpl extends BaseService<IdxBizJgRegiste
});
return
result
;
}
@Override
public
Page
<
JSONObject
>
queryEquipCanUsedByVesselPageHistory
(
JSONObject
jsonObject
)
{
ReginParams
reginParams
=
JSON
.
parseObject
(
redisUtils
.
get
(
RedisKey
.
buildReginKey
(
RequestContext
.
getExeUserId
(),
RequestContext
.
getToken
())).
toString
(),
ReginParams
.
class
);
...
...
@@ -2426,7 +2440,7 @@ public class IdxBizJgRegisterInfoServiceImpl extends BaseService<IdxBizJgRegiste
.
doRead
();
return
pressureVesselListener
.
getResult
();
}
catch
(
Exception
e
)
{
String
err
=
(
e
.
getCause
()
instanceof
BadRequest
)
?
"模版数据填写有误:"
+
e
.
getCause
().
getMessage
()
:
"导入时出现异常:请联系管理员!"
;
String
err
=
(
e
.
getCause
()
instanceof
BadRequest
)
?
"模版数据填写有误:"
+
e
.
getCause
().
getMessage
()
:
"导入时出现异常:请联系管理员!"
;
throw
new
BadRequest
(
err
);
}
}
...
...
@@ -2434,7 +2448,8 @@ public class IdxBizJgRegisterInfoServiceImpl extends BaseService<IdxBizJgRegiste
@Override
public
Object
importPressureData
(
MultipartFile
multipartFile
)
throws
Exception
{
List
<
EquipInfoCylinderExcelDto
>
aircraftList
=
new
ArrayList
<>();
resultError
.
clear
();
useInnerCodeList
.
clear
();
resultError
.
clear
();
useInnerCodeList
.
clear
();
equCodeList
.
clear
();
factoryNumList
.
clear
();
try
{
...
...
@@ -2443,13 +2458,14 @@ public class IdxBizJgRegisterInfoServiceImpl extends BaseService<IdxBizJgRegiste
@Override
public
void
invoke
(
EquipInfoCylinderExcelDto
data
,
AnalysisContext
context
)
{
EquipInfoCylinderExcelDto
fireExperts
=
new
EquipInfoCylinderExcelDto
();
BeanUtils
.
copyProperties
(
data
,
fireExperts
);
BeanUtils
.
copyProperties
(
data
,
fireExperts
);
resultError
.
add
(
checkExcelData
(
data
,
context
).
toString
());
aircraftList
.
add
(
fireExperts
);
useInnerCodeList
.
add
(
data
.
getUseInnerCode
());
equCodeList
.
add
(
data
.
getEquCode
());
factoryNumList
.
add
(
"0"
.
equals
(
data
.
getWhetherVehicleCylinder
())
?
data
.
getFactoryNum
()
:
null
);
}
// 全部读取完成就调用该方法
@Override
public
void
doAfterAllAnalysed
(
AnalysisContext
context
)
{
...
...
@@ -2503,37 +2519,37 @@ public class IdxBizJgRegisterInfoServiceImpl extends BaseService<IdxBizJgRegiste
LinkedHashMap
attachmentUpload
=
(
LinkedHashMap
)
checkAndCast
(
paramMap
.
get
(
ATTACHMENT_UPLOAD
));
EquipmentInfoDto
equipInfoDto
=
this
.
createEquipmentInfoDto
(
equipmentInfoForm
,
jgVehicleInformationMapper
);
// 登记证记录表主键
Long
changeRecordId
=
sequence
.
nextId
();
List
<
EquipInfoCylinderExcelDto
>
equipInfoCylinderExcelDtoList
=
JSON
.
parseArray
(
JSON
.
toJSONString
(
attachmentUpload
.
get
(
EQU_LISTS
)),
EquipInfoCylinderExcelDto
.
class
);
equipInfoCylinderExcelDtoList
.
forEach
(
data
->
{
if
(
"his"
.
equals
(
equipInfoDto
.
getDataSource
())&&
"1"
.
equals
(
data
.
getWhetherVehicleCylinder
()))
{
Long
changeRecordId
=
sequence
.
nextId
();
List
<
EquipInfoCylinderExcelDto
>
equipInfoCylinderExcelDtoList
=
JSON
.
parseArray
(
JSON
.
toJSONString
(
attachmentUpload
.
get
(
EQU_LISTS
)),
EquipInfoCylinderExcelDto
.
class
);
equipInfoCylinderExcelDtoList
.
forEach
(
data
->
{
if
(
"his"
.
equals
(
equipInfoDto
.
getDataSource
())
&&
"1"
.
equals
(
data
.
getWhetherVehicleCylinder
()))
{
throw
new
BadRequest
(
"车用气瓶历史设备不能批量导入!"
);
}
String
record
=
UUID
.
randomUUID
().
toString
();
List
<
Map
<
String
,
Object
>>
fileDataList
=
(
List
<
Map
<
String
,
Object
>>)(
data
.
getFileData
());
String
productPhoto
=
getUrlByKey
(
fileDataList
,
"PRODUCT_PHOTO"
);
String
otherAccessoriesReg
=
getUrlByKey
(
fileDataList
,
"OTHER_ACCESSORIES_REG"
);
String
designDoc
=
getUrlByKey
(
fileDataList
,
"DESIGN_DOC"
);
String
designStandard
=
getUrlByKey
(
fileDataList
,
"DESIGN_STANDARD"
);
String
otherAccessoriesDes
=
getUrlByKey
(
fileDataList
,
"OTHER_ACCESSORIES_DES"
);
String
productQualityYieldProve
=
getUrlByKey
(
fileDataList
,
"PRODUCT_QUALITY_YIELD_PROVE"
);
String
factoryStandard
=
getUrlByKey
(
fileDataList
,
"FACTORY_STANDARD"
);
String
insUseMaintainExplain
=
getUrlByKey
(
fileDataList
,
"INS_USE_MAINTAIN_EXPLAIN"
);
String
otherAccessoriesFact
=
getUrlByKey
(
fileDataList
,
"OTHER_ACCESSORIES_FACT"
);
String
factSupervisionInspectionReport
=
getUrlByKey
(
fileDataList
,
"FACT_SUPERVISION_INSPECTION_REPORT"
);
List
<
Map
<
String
,
Object
>>
fileDataList
=
(
List
<
Map
<
String
,
Object
>>)
(
data
.
getFileData
());
String
productPhoto
=
getUrlByKey
(
fileDataList
,
"PRODUCT_PHOTO"
);
String
otherAccessoriesReg
=
getUrlByKey
(
fileDataList
,
"OTHER_ACCESSORIES_REG"
);
String
designDoc
=
getUrlByKey
(
fileDataList
,
"DESIGN_DOC"
);
String
designStandard
=
getUrlByKey
(
fileDataList
,
"DESIGN_STANDARD"
);
String
otherAccessoriesDes
=
getUrlByKey
(
fileDataList
,
"OTHER_ACCESSORIES_DES"
);
String
productQualityYieldProve
=
getUrlByKey
(
fileDataList
,
"PRODUCT_QUALITY_YIELD_PROVE"
);
String
factoryStandard
=
getUrlByKey
(
fileDataList
,
"FACTORY_STANDARD"
);
String
insUseMaintainExplain
=
getUrlByKey
(
fileDataList
,
"INS_USE_MAINTAIN_EXPLAIN"
);
String
otherAccessoriesFact
=
getUrlByKey
(
fileDataList
,
"OTHER_ACCESSORIES_FACT"
);
String
factSupervisionInspectionReport
=
getUrlByKey
(
fileDataList
,
"FACT_SUPERVISION_INSPECTION_REPORT"
);
//使用信息
IdxBizJgUseInfo
useInfo
=
new
IdxBizJgUseInfo
();
BeanUtils
.
copyProperties
(
data
,
useInfo
);
useInfo
.
setRecord
(
record
);
useInfo
.
setRecDate
(
new
Date
());
useInfo
.
setDataSource
(
"his"
.
equals
(
equipInfoDto
.
getDataSource
())?
"jg_his"
:
"jg"
);
//区分历史设备和新增设备
useInfo
.
setDataSource
(
"his"
.
equals
(
equipInfoDto
.
getDataSource
())
?
"jg_his"
:
"jg"
);
//区分历史设备和新增设备
useInfo
.
setEquState
(
null
);
useInfo
.
setIsIntoManagement
(
"his"
.
equals
(
equipInfoDto
.
getDataSource
()));
//历史气瓶导入为已纳管设备
// 使用单位信息
if
(
"个人主体"
.
equals
(
company
.
getCompanyType
()))
{
if
(
"个人主体"
.
equals
(
company
.
getCompanyType
()))
{
useInfo
.
setUseUnitCreditCode
(
company
.
getCompanyCode
().
split
(
"_"
)[
1
]);
useInfo
.
setUseUnitName
(
company
.
getCompanyName
().
split
(
"_"
)[
1
]);
}
else
{
}
else
{
useInfo
.
setUseUnitCreditCode
(
company
.
getCompanyCode
());
useInfo
.
setUseUnitName
(
company
.
getCompanyName
());
}
...
...
@@ -2544,7 +2560,7 @@ public class IdxBizJgRegisterInfoServiceImpl extends BaseService<IdxBizJgRegiste
BeanUtils
.
copyProperties
(
data
,
designInfo
);
designInfo
.
setRecord
(
record
);
designInfo
.
setRecDate
(
new
Date
());
if
(
data
.
getDesignDate
()
!=
null
){
if
(
data
.
getDesignDate
()
!=
null
)
{
designInfo
.
setDesignDate
(
DateUtil
.
parse
(
data
.
getDesignDate
(),
"yyyy-MM-dd"
));
}
designInfo
.
setDesignDoc
(
designDoc
);
...
...
@@ -2578,7 +2594,7 @@ public class IdxBizJgRegisterInfoServiceImpl extends BaseService<IdxBizJgRegiste
registerInfo
.
setProductPhoto
(
productPhoto
);
registerInfo
.
setOtherAccessoriesReg
(
otherAccessoriesReg
);
registerInfo
.
setUseOrgCode
(
equipInfoDto
.
getUseOrgCode
());
if
(
"his"
.
equals
(
equipInfoDto
.
getDataSource
())){
if
(
"his"
.
equals
(
equipInfoDto
.
getDataSource
()))
{
registerInfo
.
setEquCode
(
this
.
getEquCode
(
registerInfo
,
factoryInfo
,
equipInfoDto
.
getReceiveOrgCode
()));
}
registerInfoList
.
add
(
registerInfo
);
...
...
@@ -2586,7 +2602,7 @@ public class IdxBizJgRegisterInfoServiceImpl extends BaseService<IdxBizJgRegiste
//检验检测
IdxBizJgInspectionDetectionInfo
inspectionDetectionInfo
=
new
IdxBizJgInspectionDetectionInfo
();
BeanUtils
.
copyProperties
(
data
,
inspectionDetectionInfo
);
inspectionDetectionInfo
.
setInspectOrgCode
(
data
.
getInspectOrgCode
());
inspectionDetectionInfo
.
setInspectOrgCode
(
data
.
getInspectOrgCode
());
inspectionDetectionInfo
.
setRecord
(
record
);
inspectionDetectionInfo
.
setRecDate
(
new
Date
());
inspectionDetectionInfo
.
setInspectType
(
"ZZJDJY"
);
...
...
@@ -2605,7 +2621,7 @@ public class IdxBizJgRegisterInfoServiceImpl extends BaseService<IdxBizJgRegiste
BeanUtils
.
copyProperties
(
data
,
otherInfo
);
otherInfo
.
setRecord
(
record
);
otherInfo
.
setRecDate
(
new
Date
());
if
(
"his"
.
equals
(
equipInfoDto
.
getDataSource
())){
if
(
"his"
.
equals
(
equipInfoDto
.
getDataSource
()))
{
otherInfo
.
setSupervisoryCode
(
this
.
getSupervisoryCode
(
equipInfoDto
.
getPossession
(),
registerInfo
));
otherInfo
.
setClaimStatus
(
"已认领"
);
}
...
...
@@ -2627,7 +2643,7 @@ public class IdxBizJgRegisterInfoServiceImpl extends BaseService<IdxBizJgRegiste
esEquipmentDto
.
setUSE_INNER_CODE
(
useInfo
.
getUseInnerCode
());
esEquipmentDto
.
setUSE_ORG_CODE
(
equipInfoDto
.
getUseOrgCode
());
esEquipmentDto
.
setIS_INTO_MANAGEMENT
(
"his"
.
equals
(
equipInfoDto
.
getDataSource
()));
if
(
"his"
.
equals
(
equipInfoDto
.
getDataSource
())){
if
(
"his"
.
equals
(
equipInfoDto
.
getDataSource
()))
{
esEquipmentDto
.
setEQU_CODE
(
registerInfo
.
getEquCode
());
}
esEquipmentDto
.
setEQU_CATEGORY_CODE
(
equipInfoDto
.
getEquCategoryCode
());
...
...
@@ -2638,15 +2654,15 @@ public class IdxBizJgRegisterInfoServiceImpl extends BaseService<IdxBizJgRegiste
esEquipmentDto
.
setEQU_DEFINE
(
equipInfoDto
.
getEquDefine
());
// 使用单位信息
if
(
"个人主体"
.
equals
(
company
.
getCompanyType
()))
{
if
(
"个人主体"
.
equals
(
company
.
getCompanyType
()))
{
esEquipmentDto
.
setUSE_UNIT_CREDIT_CODE
(
company
.
getCompanyCode
().
split
(
"_"
)[
1
]);
esEquipmentDto
.
setUSE_UNIT_NAME
(
company
.
getCompanyName
().
split
(
"_"
)[
1
]);
}
else
{
}
else
{
esEquipmentDto
.
setUSE_UNIT_CREDIT_CODE
(
company
.
getCompanyCode
());
esEquipmentDto
.
setUSE_UNIT_NAME
(
company
.
getCompanyName
());
}
esEquipmentCategoryList
.
add
(
esEquipmentDto
);
if
(
"his"
.
equals
(
equipInfoDto
.
getDataSource
())){
if
(
"his"
.
equals
(
equipInfoDto
.
getDataSource
()))
{
// 生成tzs_jg_certificate_change_record_eq记录
JgCertificateChangeRecordEq
changeRecordEq
=
new
JgCertificateChangeRecordEq
();
changeRecordEq
.
setChangeRecordId
(
String
.
valueOf
(
changeRecordId
));
//登记证记录主键
...
...
@@ -2663,7 +2679,7 @@ public class IdxBizJgRegisterInfoServiceImpl extends BaseService<IdxBizJgRegiste
Optional
.
of
(
paramsVesselList
).
filter
(
list
->
!
list
.
isEmpty
()).
ifPresent
(
idxBizJgTechParamsVesselService:
:
saveBatch
);
Optional
.
of
(
inspectionDetectionInfoList
).
filter
(
list
->
!
list
.
isEmpty
()).
ifPresent
(
idxBizJgInspectionDetectionInfoService:
:
saveBatch
);
Optional
.
of
(
esEquipmentCategoryList
).
filter
(
list
->
!
list
.
isEmpty
()).
ifPresent
(
esEquipmentCategory:
:
saveAll
);
if
(
"his"
.
equals
(
equipInfoDto
.
getDataSource
())){
if
(
"his"
.
equals
(
equipInfoDto
.
getDataSource
()))
{
// 生成证书管理表记录
JgUseRegistrationManage
registrationManage
=
this
.
saveRegistrationManage
(
equipInfoDto
,
company
);
// 生成一条tzs_jg_certificate_change_record记录
...
...
@@ -2685,7 +2701,7 @@ public class IdxBizJgRegisterInfoServiceImpl extends BaseService<IdxBizJgRegiste
dto
.
setEquDefine
(
jgVehicleInformationMapper
.
getEquCategoryNameByCode
(
equDefineCode
));
dto
.
setDataSource
((
String
)
equipmentInfoForm
.
get
(
"DATA_SOURCE"
));
dto
.
setUseOrgCode
((
String
)
equipmentInfoForm
.
get
(
"USE_ORG_CODE"
));
if
(
"his"
.
equals
(
equipmentInfoForm
.
get
(
"DATA_SOURCE"
))){
if
(
"his"
.
equals
(
equipmentInfoForm
.
get
(
"DATA_SOURCE"
)))
{
dto
.
setReceiveOrgCode
(((
String
)
equipmentInfoForm
.
get
(
"RECEIVE_ORG_CODE"
)).
split
(
"_"
)[
0
]);
dto
.
setReceiveOrgName
(((
String
)
equipmentInfoForm
.
get
(
"RECEIVE_ORG_CODE"
)).
split
(
"_"
)[
1
]);
}
...
...
@@ -2742,18 +2758,19 @@ public class IdxBizJgRegisterInfoServiceImpl extends BaseService<IdxBizJgRegiste
private
String
buildRecordContent
(
JgUseRegistrationManage
registrationManage
)
{
SimpleDateFormat
simpleDateFormat
=
new
SimpleDateFormat
(
"yyyy年MM月dd日"
);
return
registrationManage
.
getRecUserName
()
+
"批量上传了【"
+
BusinessTypeEnum
.
JG_HISTORY_USAGE_REGISTRATION
.
getName
()+
"】,"
+
return
registrationManage
.
getRecUserName
()
+
"批量上传了【"
+
BusinessTypeEnum
.
JG_HISTORY_USAGE_REGISTRATION
.
getName
()
+
"】,"
+
"单号【"
+
registrationManage
.
getApplyNo
()
+
"】,上传日期"
+
simpleDateFormat
.
format
(
registrationManage
.
getRecDate
());
}
/**
* 生成使用登记证书唯一标识
*
* @param dto 包含有 设备种类 & 设备类别 & 设备品种 的map
* @param date 生成证日期 (不传取当前时间)
* @param receiveCompanyCode 接收机构统一信用代码
* @return 使用登记证书唯一标识
*/
private
String
generateCertificateNo
(
EquipmentInfoDto
dto
,
Date
date
,
String
receiveCompanyCode
)
{
private
String
generateCertificateNo
(
EquipmentInfoDto
dto
,
Date
date
,
String
receiveCompanyCode
)
{
String
ym
=
""
;
try
{
ym
=
Optional
.
of
(
DateUtils
.
dateFormat
(
date
,
DateUtils
.
DATE_PATTERN_MM
)).
orElse
(
DateUtils
.
dateFormat
(
new
Date
(),
DateUtils
.
DATE_PATTERN_MM
));
...
...
@@ -2766,7 +2783,7 @@ public class IdxBizJgRegisterInfoServiceImpl extends BaseService<IdxBizJgRegiste
return
responseModel
.
getResult
();
}
private
String
getApplicationNo
(){
private
String
getApplicationNo
()
{
ResponseModel
<
List
<
String
>>
listResponseModel
=
tzsServiceFeignClient
.
applicationFormCode
(
ApplicationFormTypeEnum
.
SYDJ
.
getCode
(),
1
);
if
(!
ObjectUtils
.
isEmpty
(
listResponseModel
)
&&
listResponseModel
.
getStatus
()
!=
HttpStatus
.
OK
.
value
())
{
log
.
error
(
"车用气瓶使用登记申请单单号获取失败!"
);
...
...
@@ -2862,7 +2879,7 @@ public class IdxBizJgRegisterInfoServiceImpl extends BaseService<IdxBizJgRegiste
}
}
private
void
checkInspectOrg
(
String
inspectOrgCode
,
StringBuilder
result
){
private
void
checkInspectOrg
(
String
inspectOrgCode
,
StringBuilder
result
)
{
List
<
Map
<
String
,
Object
>>
InspectOrgList
=
commonService
.
getAllInspectionInfo
(
"inspection"
);
if
(
findUseCode
(
InspectOrgList
,
inspectOrgCode
)
==
null
)
{
result
.
append
(
"未查询到该检验机构;"
);
...
...
@@ -2885,6 +2902,7 @@ public class IdxBizJgRegisterInfoServiceImpl extends BaseService<IdxBizJgRegiste
/**
* 生成设备代码
*
* @param registerInfo registerInfo
* @param factoryInfo factoryInfo
* @param receiveCompanyCode 接收机构
...
...
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 @
41b501ce
...
...
@@ -136,7 +136,7 @@ public class JgScrapCancelServiceImpl extends BaseService<JgScrapCancelDto, JgSc
Page
<
JgScrapCancelDto
>
listPage
=
this
.
baseMapper
.
getListPage
(
page
,
sortMap
,
dto
,
roleIds
,
orgCode
,
currentUserId
);
listPage
.
getRecords
().
forEach
(
item
->
{
if
(
item
.
getCancelType
()
!=
null
)
{
item
.
setCancelType
(
CancelTypeEnum
.
getNameByType
(
item
.
getCancelType
()));
item
.
setCancelType
Desc
(
CancelTypeEnum
.
getNameByType
(
item
.
getCancelType
()));
}
if
(
item
.
getEquListCode
()
!=
null
)
{
item
.
setEquListName
(
EquipmentClassifityEnum
.
getNameByCode
(
item
.
getEquListCode
()));
...
...
@@ -264,7 +264,7 @@ public class JgScrapCancelServiceImpl extends BaseService<JgScrapCancelDto, JgSc
String
equListName
=
EquipmentClassifityEnum
.
getNameByCode
(
jsonObject
.
get
(
"equListCode"
).
toString
());
save2HisData
(
jsonObject
,
jgScrapCancel
.
getSequenceNbr
().
toString
());
JgScrapCancelDto
dto
=
new
JgScrapCancelDto
();
BeanUtil
.
copyProperties
(
jgScrapCancel
,
new
JgScrapCancelDto
()
);
BeanUtil
.
copyProperties
(
jgScrapCancel
,
dto
);
dto
.
setEquListName
(
equListName
);
return
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 @
41b501ce
...
...
@@ -2476,11 +2476,7 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
// 使用登记信息
JgUseRegistration
jgUseRegistration
=
new
JgUseRegistration
();
jgUseRegistration
.
setRegDate
(
new
Date
());
LambdaQueryWrapper
<
IdxBizJgOtherInfo
>
otherLambda
=
new
QueryWrapper
<
IdxBizJgOtherInfo
>().
lambda
();
otherLambda
.
eq
(
IdxBizJgOtherInfo:
:
getRecord
,
map
.
get
(
"equipId"
));
IdxBizJgOtherInfo
otherInfo
=
otherInfoMapper
.
selectOne
(
otherLambda
);
String
supervisoryCode
=
otherInfo
.
getSupervisoryCode
();
jgUseRegistration
.
setSupervisoryCode
(
supervisoryCode
);
if
(!
ObjectUtils
.
isEmpty
(
map
.
get
(
"otherAccessories"
)))
{
jgUseRegistration
.
setOtherAccessories
(
JSONObject
.
toJSONString
(
map
.
get
(
"otherAccessories"
)));
}
...
...
@@ -2587,7 +2583,8 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
LambdaQueryWrapper
<
IdxBizJgRegisterInfo
>
lambdaReg
=
new
QueryWrapper
<
IdxBizJgRegisterInfo
>().
lambda
();
lambdaReg
.
eq
(
IdxBizJgRegisterInfo:
:
getRecord
,
jgRelationEquip
.
getEquId
());
IdxBizJgRegisterInfo
registerInfo
=
idxBizJgRegisterInfoMapper
.
selectOne
(
lambdaReg
);
registerInfo
.
setUseOrgCode
(
ValidationUtil
.
isEmpty
(
map
.
get
(
"useRegistrationCode"
))
?
""
:
String
.
valueOf
(
map
.
get
(
"useRegistrationCode"
)));
registerInfo
.
setUseOrgCode
(
jgUseRegistration
.
getUseRegistrationCode
());
idxBizJgRegisterInfoMapper
.
updateById
(
registerInfo
);
// 查询设备制造信息
LambdaQueryWrapper
<
IdxBizJgFactoryInfo
>
factoryInfoWrapper
=
new
LambdaQueryWrapper
<>();
...
...
@@ -2615,6 +2612,14 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
useInfo
.
setEstateUnitCreditCode
(
String
.
valueOf
(
map
.
get
(
"estateUnitName"
)).
split
(
"_"
)[
0
]);
useInfo
.
setEstateUnitName
(
String
.
valueOf
(
map
.
get
(
"estateUnitName"
)).
split
(
"_"
)[
1
]);
useInfoMapper
.
updateById
(
useInfo
);
LambdaQueryWrapper
<
IdxBizJgOtherInfo
>
otherLambda
=
new
QueryWrapper
<
IdxBizJgOtherInfo
>().
lambda
();
otherLambda
.
eq
(
IdxBizJgOtherInfo:
:
getRecord
,
map
.
get
(
"equipId"
));
IdxBizJgOtherInfo
otherInfo
=
otherInfoMapper
.
selectOne
(
otherLambda
);
// 生成监管码 96333码
this
.
createCode
(
map
,
jgUseRegistration
,
registerInfo
,
useInfo
,
otherInfo
);
// 更新es
updateEsData
(
usePlace
,
map
,
otherInfo
,
jgUseRegistration
,
map
);
...
...
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/resources/json/superviseBusinessCategory.json
View file @
41b501ce
...
...
@@ -30,7 +30,8 @@
{
"name"
:
"移装告知"
,
"code"
:
"GZ_YZ"
,
"image"
:
"upload/tzs/common/image/移装告知.png"
"image"
:
"upload/tzs/common/image/移装告知.png"
,
"disabled"
:
true
}
],
"DJGL"
:
[
...
...
@@ -47,7 +48,8 @@
{
"name"
:
"移装变更登记"
,
"code"
:
"DJ_YZ"
,
"image"
:
"upload/tzs/common/image/移装变更登记.png"
"image"
:
"upload/tzs/common/image/移装变更登记.png"
,
"disabled"
:
true
},
{
"name"
:
"单位变更登记"
,
...
...
@@ -76,16 +78,6 @@
],
"QTBF"
:
[
{
"name"
:
"设备启用"
,
"code"
:
"SB_QY"
,
"image"
:
"upload/tzs/common/image/设备启用.png"
},
{
"name"
:
"设备停用"
,
"code"
:
"SB_TY"
,
"image"
:
"upload/tzs/common/image/设备停用.png"
},
{
"name"
:
"注销"
,
"code"
:
"BF_YZ"
,
"image"
:
"upload/tzs/common/image/移装报废.png"
...
...
@@ -94,6 +86,18 @@
"name"
:
"报废"
,
"code"
:
"BF_ZX"
,
"image"
:
"upload/tzs/common/image/注销报废.png"
},
{
"name"
:
"设备启用"
,
"code"
:
"SB_QY"
,
"image"
:
"upload/tzs/common/image/设备启用.png"
,
"disabled"
:
true
},
{
"name"
:
"设备停用"
,
"code"
:
"SB_TY"
,
"image"
:
"upload/tzs/common/image/设备停用.png"
,
"disabled"
:
true
}
],
"XZSB"
:
[
...
...
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/resources/json/urlInfo.json
View file @
41b501ce
...
...
@@ -236,37 +236,37 @@
{
"type"
:
"113-1"
,
"pageType"
:
"draft"
,
"name"
:
"
移装
注销"
,
"name"
:
"注销"
,
"url"
:
"/mixuap?appId=1742358052905971713&id=1737357808040439809&roleIds={roleIds}&userId={userId}&pageType=edit"
},
{
"type"
:
"113-1"
,
"pageType"
:
"look"
,
"name"
:
"
移装
注销"
,
"name"
:
"注销"
,
"url"
:
"/mixuap?appId=1742358052905971713&id=1737357871097606146&roleIds={roleIds}&userId={userId}&pageType=look"
},
{
"type"
:
"113-1"
,
"pageType"
:
"edit"
,
"name"
:
"
移装
注销"
,
"name"
:
"注销"
,
"url"
:
"/mixuap?appId=1742358052905971713&id=1737357871097606146&roleIds={roleIds}&userId={userId}&pageType=edit"
},
{
"type"
:
"113-2"
,
"pageType"
:
"draft"
,
"name"
:
"报废
注销
"
,
"name"
:
"报废"
,
"url"
:
"/mixuap?appId=1742358052905971713&id=1737357808040439809&roleIds={roleIds}&userId={userId}&pageType=edit"
},
{
"type"
:
"113-2"
,
"pageType"
:
"look"
,
"name"
:
"报废
注销
"
,
"name"
:
"报废"
,
"url"
:
"/mixuap?appId=1742358052905971713&id=1737357871097606146&roleIds={roleIds}&userId={userId}&pageType=look"
},
{
"type"
:
"113-2"
,
"pageType"
:
"edit"
,
"name"
:
"报废
注销
"
,
"name"
:
"报废"
,
"url"
:
"/mixuap?appId=1742358052905971713&id=1737357871097606146&roleIds={roleIds}&userId={userId}&pageType=edit"
},
{
...
...
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