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
c6575ca2
Commit
c6575ca2
authored
Jun 27, 2025
by
suhuiguang
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop_tzs_register' of…
Merge branch 'develop_tzs_register' of
http://39.100.92.250:5000/moa/amos-boot-biz
into develop_tzs_register
parents
175281ed
9af3f11b
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
71 additions
and
51 deletions
+71
-51
EquipRequestParamsDto.java
...in/amos/boot/module/jg/api/dto/EquipRequestParamsDto.java
+2
-0
EquipmentInfoDto.java
...yeejoin/amos/boot/module/jg/api/dto/EquipmentInfoDto.java
+1
-0
DataDockServiceImpl.java
.../boot/module/jg/biz/service/impl/DataDockServiceImpl.java
+11
-3
IdxBizJgRegisterInfoServiceImpl.java
.../jg/biz/service/impl/IdxBizJgRegisterInfoServiceImpl.java
+12
-6
JgUseRegistrationServiceImpl.java
...ule/jg/biz/service/impl/JgUseRegistrationServiceImpl.java
+4
-1
TzBaseEnterpriseInfoServiceImpl.java
...tcm/biz/service/impl/TzBaseEnterpriseInfoServiceImpl.java
+41
-41
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/EquipRequestParamsDto.java
View file @
c6575ca2
...
...
@@ -54,4 +54,5 @@ public class EquipRequestParamsDto {
private
String
useDate
;
private
String
startLatitudeLongitude
;
private
String
endLatitudeLongitude
;
private
String
equState
;
}
\ No newline at end of file
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/java/com/yeejoin/amos/boot/module/jg/api/dto/EquipmentInfoDto.java
View file @
c6575ca2
...
...
@@ -23,6 +23,7 @@ public class EquipmentInfoDto {
private
String
receiveOrgCode
;
private
String
receiveOrgName
;
private
String
possession
;
private
String
equState
;
/**
* 属地监管部门:orgCode_名称
...
...
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 @
c6575ca2
...
...
@@ -374,7 +374,12 @@ public class DataDockServiceImpl {
useInfo
.
setIsNotEs
(
"1"
);
useInfo
.
setIsIntoManagement
(
Boolean
.
FALSE
);
useInfo
.
setRemark
(
remark
);
//useInfo.setEquState(EquimentEnum.ZAIYONG.getCode()+"");
if
(
Arrays
.
asList
(
"jg_his"
,
"jg_his_black"
,
"jg_his_xa"
,
"jg_his_black_pl"
,
"jg_his_pl"
).
contains
(
dataSource
)){
String
equState
=
Optional
.
ofNullable
(
equ
.
get
(
"EQU_STATE"
))
.
map
(
Object:
:
toString
)
.
orElse
(
String
.
valueOf
(
EquimentEnum
.
ZAIYONG
.
getCode
()));
useInfo
.
setEquState
(
equState
);
}
useInfo
.
setProjectContraptionId
(
Objects
.
toString
(
equ
.
get
(
"projectContraptionId"
),
""
));
useInfo
.
setIsNotXiXian
(
"0"
);
idxBizJgUseInfoService
.
save
(
useInfo
);
...
...
@@ -1859,6 +1864,7 @@ public class DataDockServiceImpl {
String
address
=
Objects
.
toString
(
equipInfo
.
get
(
"address"
),
null
);
String
usePlace
=
Objects
.
toString
(
equipInfo
.
get
(
"usePlace"
),
null
);
String
useDate
=
Objects
.
toString
(
equipInfo
.
get
(
"useDate"
),
null
);
String
equState
=
Objects
.
toString
(
equipInfo
.
get
(
"EQU_STATE"
),
null
);
return
new
EquipRequestParamsDto
().
setCompanyCode
(
company
.
getCompanyCode
().
split
(
"_"
)[
0
])
.
setProvince
(
province
)
.
setProvinceName
(
"陕西省"
)
...
...
@@ -1916,6 +1922,7 @@ public class DataDockServiceImpl {
.
setInspectUnitName
(
inspectUnitName
)
.
setStartLatitudeLongitude
(
toJSONString
(
equipInfo
.
get
(
"startLatitudeLongitude"
)))
.
setEndLatitudeLongitude
(
toJSONString
(
equipInfo
.
get
(
"endLatitudeLongitude"
)))
.
setEquState
(
equState
)
.
setEquCode
(
installationNoticeService
.
generateEquCode
(
equListCode
,
equCategoryCode
,
equDefineCode
,
new
Date
(),
receiveOrgCode
));
}
...
...
@@ -2002,7 +2009,7 @@ public class DataDockServiceImpl {
useInfo
.
setCreateDate
(
new
Date
());
useInfo
.
setDataSource
(
paramsDto
.
getDataSource
());
useInfo
.
setIsIntoManagement
(
Boolean
.
TRUE
);
useInfo
.
setEquState
(
EquimentEnum
.
ZAIYONG
.
getCode
().
toString
(
));
useInfo
.
setEquState
(
Optional
.
ofNullable
(
paramsDto
.
getEquState
()).
orElse
(
String
.
valueOf
(
EquimentEnum
.
ZAIYONG
.
getCode
())
));
useInfo
.
setUseUnitCreditCode
(
paramsDto
.
getCompanyCode
());
useInfo
.
setUseUnitName
(
paramsDto
.
getCompanyName
());
useInfo
.
setProjectContraption
(
paramsDto
.
getProjectContraption
());
...
...
@@ -2110,7 +2117,8 @@ public class DataDockServiceImpl {
esEquipmentDto
.
setEQU_DEFINE_CODE
(
paramsDto
.
getEquDefineCode
());
esEquipmentDto
.
setEQU_DEFINE
(
paramsDto
.
getEquDefineName
());
esEquipmentDto
.
setSTATUS
(
"已认领"
);
esEquipmentDto
.
setEQU_STATE
(
EquimentEnum
.
ZAIYONG
.
getCode
());
esEquipmentDto
.
setEQU_STATE
(
Optional
.
ofNullable
(
paramsDto
.
getEquState
())
.
map
(
Integer:
:
valueOf
).
orElse
(
EquimentEnum
.
ZAIYONG
.
getCode
()));
esEquipmentDto
.
setUSC_UNIT_CREDIT_CODE
(
pipeline
.
getUscUnitCreditCode
());
esEquipmentDto
.
setUSC_UNIT_NAME
(
pipeline
.
getUscUnitName
());
esEquipmentDto
.
setPROJECT_CONTRAPTION
(
paramsDto
.
getProjectContraption
());
...
...
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 @
c6575ca2
...
...
@@ -3877,7 +3877,7 @@ public class IdxBizJgRegisterInfoServiceImpl extends BaseService<IdxBizJgRegiste
}
@Override
@GlobalTransactional
(
rollbackFor
=
Exception
.
class
)
@GlobalTransactional
(
rollbackFor
=
Exception
.
class
,
timeoutMills
=
6000000
)
public
Object
savePressureVesselData
(
Map
<
String
,
Object
>
paramMap
)
{
ReginParams
reginParams
=
JSONObject
.
parseObject
(
redisUtils
.
get
(
RedisKey
.
buildReginKey
(
RequestContext
.
getExeUserId
(),
RequestContext
.
getToken
())).
toString
(),
ReginParams
.
class
);
CompanyBo
company
=
reginParams
.
getCompany
();
...
...
@@ -3952,10 +3952,15 @@ public class IdxBizJgRegisterInfoServiceImpl extends BaseService<IdxBizJgRegiste
useInfo
.
setCreateDate
(
new
Date
());
String
source
=
equipInfoDto
.
getDataSource
();
useInfo
.
setDataSource
(
"his"
.
equals
(
source
)
?
"jg_his"
:
"black"
.
equals
(
source
)
?
"jg_his_black"
:
"jg"
);
// 区分历史设备和新增设备
useInfo
.
setEquState
(
null
);
useInfo
.
setIsIntoManagement
(
"his"
.
equals
(
equipInfoDto
.
getDataSource
()));
// 历史气瓶导入为已纳管设备
// 历史气瓶导入设备状态为在用
useInfo
.
setEquState
(
"his"
.
equals
(
equipInfoDto
.
getDataSource
())
?
EquimentEnum
.
ZAIYONG
.
getCode
().
toString
()
:
EquimentEnum
.
WEIDENGJI
.
getCode
().
toString
());
String
equState
=
"his"
.
equals
(
equipInfoDto
.
getDataSource
())
?
(
Optional
.
ofNullable
(
equipInfoDto
.
getEquState
())
.
filter
(
s
->
!
s
.
isEmpty
())
.
orElse
(
String
.
valueOf
(
EquimentEnum
.
ZAIYONG
.
getCode
())))
:
String
.
valueOf
(
EquimentEnum
.
WEIDENGJI
.
getCode
());
useInfo
.
setEquState
(
equState
);
// 使用单位信息
if
(
"个人主体"
.
equals
(
company
.
getCompanyType
()))
{
useInfo
.
setUseUnitCreditCode
(
company
.
getCompanyCode
().
split
(
"_"
)[
1
]);
...
...
@@ -4087,7 +4092,7 @@ public class IdxBizJgRegisterInfoServiceImpl extends BaseService<IdxBizJgRegiste
esEquipmentDto
.
setEQU_DEFINE
(
equipInfoDto
.
getEquDefine
());
esEquipmentDto
.
setINFORMATION_SITUATION
(
otherInfo
.
getInformationSituation
());
esEquipmentDto
.
setSTATUS
(
"已认领"
);
esEquipmentDto
.
setEQU_STATE
(
"his"
.
equals
(
equipInfoDto
.
getDataSource
())
?
EquimentEnum
.
ZAIYONG
.
getCode
()
:
EquimentEnum
.
WEIDENGJI
.
getCode
(
));
esEquipmentDto
.
setEQU_STATE
(
Integer
.
valueOf
(
equState
));
// 使用单位信息
if
(
"个人主体"
.
equals
(
company
.
getCompanyType
()))
{
...
...
@@ -4397,9 +4402,10 @@ public class IdxBizJgRegisterInfoServiceImpl extends BaseService<IdxBizJgRegiste
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
]);
dto
.
setOrgBranchCode
(
equipmentInfoForm
.
getOrDefault
(
"orgBranchCode"
,
""
).
toString
());
dto
.
setOrgBranchCode
(
Optional
.
ofNullable
(
equipmentInfoForm
.
get
(
"orgBranchCode"
)).
map
(
Object:
:
toString
).
orElse
(
""
));
dto
.
setEquState
(
Optional
.
ofNullable
(
equipmentInfoForm
.
get
(
"EQU_STATE"
)).
map
(
Object:
:
toString
).
orElse
(
""
));
}
dto
.
setPossession
(
(
String
)
equipmentInfoForm
.
get
(
"VEHICLE_APANAGE
"
));
dto
.
setPossession
(
Optional
.
ofNullable
(
equipmentInfoForm
.
get
(
"VEHICLE_APANAGE"
)).
map
(
Object:
:
toString
).
orElse
(
"
"
));
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 @
c6575ca2
...
...
@@ -1889,7 +1889,8 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
param
.
put
(
"ADDRESS"
,
dataMap
.
getOrDefault
(
"address"
,
""
));
param
.
put
(
"USE_PLACE"
,
usePlace
);
param
.
put
(
"STATUS"
,
"已认领"
);
param
.
put
(
"EQU_STATE"
,
1
);
param
.
put
(
"EQU_STATE"
,
Arrays
.
asList
(
"1"
,
"2"
).
contains
(
jgUseRegistration
.
getRegType
())
&&
useInfo
.
getEquState
()
!=
null
?
useInfo
.
getEquState
()
:
1
);
// 更新es的下次检验日期
param
.
put
(
"NEXT_INSPECT_DATE"
,
this
.
castDate2TimeStr
(
dataMap
.
getString
(
"nextInspectDate"
)));
param
.
put
(
"USE_INNER_CODE"
,
useInfo
.
getUseInnerCode
());
...
...
@@ -4279,7 +4280,9 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
useInfo
.
setORegDate
(
String
.
valueOf
(
map
.
get
(
"oRegDate"
)));
useInfo
.
setORegUnit
(
String
.
valueOf
(
map
.
get
(
"oRegUnit"
)));
// 历史平台登记,将设备状态改为在用
if
(!
map
.
containsKey
(
"EQU_STATE"
)){
useInfo
.
setEquState
(
EquimentEnum
.
ZAIYONG
.
getCode
().
toString
());
}
usePlace
=
useInfo
.
getProvinceName
()
+
"/"
+
useInfo
.
getCityName
()
+
"/"
+
useInfo
.
getCountyName
()
+
"/"
+
useInfo
.
getStreetName
();
useInfoMapper
.
updateById
(
useInfo
);
}
...
...
amos-boot-system-tzs/amos-boot-module-tcm/amos-boot-module-tcm-biz/src/main/java/com/yeejoin/amos/boot/module/tcm/biz/service/impl/TzBaseEnterpriseInfoServiceImpl.java
View file @
c6575ca2
...
...
@@ -1121,50 +1121,50 @@ public class TzBaseEnterpriseInfoServiceImpl
String
[]
unitTypes
=
regUnitInfo
.
getUnitType
().
split
(
","
);
regUnitInfoService
.
saveOrUpdate
(
regUnitInfo
);
// -- 20250627 调整为监管单位不能修改工商信息和资质
//修改工商信息
RegUnitIc
regUnitIc
=
new
RegUnitIc
();
RegUnitIcDto
regUnitIcDto
=
JSON
.
parseObject
(
JSON
.
toJSONString
(
map
.
get
(
"regUnitIcDto"
)),
new
TypeReference
<
RegUnitIcDto
>()
{
});
if
(!
ValidationUtil
.
isEmpty
(
regUnitIcDto
.
getSequenceNbr
()))
{
List
<
String
>
addressList
=
(
List
<
String
>)
map
.
get
(
"registerAddressList"
);
tzBaseEnterpriseInfo
.
setProvince
(
addressList
.
get
(
0
));
tzBaseEnterpriseInfo
.
setCity
(
addressList
.
get
(
1
));
tzBaseEnterpriseInfo
.
setDistrict
(
addressList
.
get
(
2
));
tzBaseEnterpriseInfo
.
setCommunity
(
ObjectUtils
.
isEmpty
(
map
.
get
(
"community"
))
?
null
:
String
.
valueOf
(
map
.
get
(
"community"
)));
tzBaseEnterpriseInfo
.
setStreet
(
ObjectUtils
.
isEmpty
(
map
.
get
(
"street"
))
?
null
:
String
.
valueOf
(
map
.
get
(
"street"
)));
// tzBaseEnterpriseInfo.setAddress(ObjectUtils.isEmpty(map.get("regAddress")) ? null : String.valueOf(map.get("regAddress")));
tzBaseEnterpriseInfo
.
setLegalPerson
(
ObjectUtils
.
isEmpty
(
map
.
get
(
"legalPerson"
))
?
null
:
String
.
valueOf
(
map
.
get
(
"legalPerson"
)));
regUnitIc
.
setIndustryName
(
ObjectUtils
.
isEmpty
(
map
.
get
(
"industryName"
))
?
null
:
String
.
valueOf
(
map
.
get
(
"industryName"
)));
DataDictionary
regOrganCodeDict
=
iDataDictionaryService
.
getByCode
(
String
.
valueOf
(
map
.
get
(
"registeredOrganCode"
)),
"DJJG"
);
regUnitIc
.
setRegisteredOrgan
(
ObjectUtils
.
isEmpty
(
regOrganCodeDict
)
?
null
:
String
.
valueOf
(
regOrganCodeDict
.
getName
()));
regUnitIc
.
setRegisteredOrganCode
(
ObjectUtils
.
isEmpty
(
map
.
get
(
"registeredOrganCode"
))
?
null
:
String
.
valueOf
(
map
.
get
(
"registeredOrganCode"
)));
Date
approvedDate
;
try
{
approvedDate
=
DateUtils
.
dateParse
(
String
.
valueOf
(
map
.
get
(
"approvedDate"
)),
"yyyy-MM-dd"
);
}
catch
(
ParseException
e
)
{
throw
new
RuntimeException
(
e
);
}
regUnitIc
.
setBusinessStateCode
(
ObjectUtils
.
isEmpty
(
map
.
get
(
"businessState"
))
?
null
:
String
.
valueOf
(
map
.
get
(
"businessState"
)));
DataDictionary
businessStateDict
=
iDataDictionaryService
.
getByCode
(
String
.
valueOf
(
map
.
get
(
"businessState"
)),
"jyzt"
);
regUnitIc
.
setBusinessState
(
ObjectUtils
.
isEmpty
(
businessStateDict
)
?
null
:
businessStateDict
.
getName
());
regUnitIc
.
setApprovedDate
(
ObjectUtils
.
isEmpty
(
map
.
get
(
"approvedDate"
))
?
null
:
approvedDate
);
regUnitIcService
.
update
(
regUnitIc
,
new
QueryWrapper
<
RegUnitIc
>().
eq
(
"unit_code"
,
regUnitIcDto
.
getUnitCode
()));
}
//
RegUnitIc regUnitIc = new RegUnitIc();
//
RegUnitIcDto regUnitIcDto = JSON.parseObject(JSON.toJSONString(map.get("regUnitIcDto")), new TypeReference<RegUnitIcDto>() {
//
});
//
if (!ValidationUtil.isEmpty(regUnitIcDto.getSequenceNbr())) {
//
List<String> addressList = (List<String>) map.get("registerAddressList");
//
tzBaseEnterpriseInfo.setProvince(addressList.get(0));
//
tzBaseEnterpriseInfo.setCity(addressList.get(1));
//
tzBaseEnterpriseInfo.setDistrict(addressList.get(2));
//
tzBaseEnterpriseInfo.setCommunity(ObjectUtils.isEmpty(map.get("community")) ? null : String.valueOf(map.get("community")));
//
tzBaseEnterpriseInfo.setStreet(ObjectUtils.isEmpty(map.get("street")) ? null : String.valueOf(map.get("street")));
//
//
tzBaseEnterpriseInfo.setAddress(ObjectUtils.isEmpty(map.get("regAddress")) ? null : String.valueOf(map.get("regAddress")));
//
tzBaseEnterpriseInfo.setLegalPerson(ObjectUtils.isEmpty(map.get("legalPerson")) ? null : String.valueOf(map.get("legalPerson")));
//
regUnitIc.setIndustryName(ObjectUtils.isEmpty(map.get("industryName")) ? null : String.valueOf(map.get("industryName")));
//
DataDictionary regOrganCodeDict = iDataDictionaryService.getByCode(String.valueOf(map.get("registeredOrganCode")),"DJJG");
//
regUnitIc.setRegisteredOrgan(ObjectUtils.isEmpty(regOrganCodeDict) ? null : String.valueOf(regOrganCodeDict.getName()));
//
regUnitIc.setRegisteredOrganCode(ObjectUtils.isEmpty(map.get("registeredOrganCode")) ? null : String.valueOf(map.get("registeredOrganCode")));
//
Date approvedDate;
//
try {
//
approvedDate = DateUtils.dateParse(String.valueOf(map.get("approvedDate")), "yyyy-MM-dd");
//
} catch (ParseException e) {
//
throw new RuntimeException(e);
//
}
//
regUnitIc.setBusinessStateCode(ObjectUtils.isEmpty(map.get("businessState")) ? null : String.valueOf(map.get("businessState")));
//
DataDictionary businessStateDict = iDataDictionaryService.getByCode(String.valueOf(map.get("businessState")),"jyzt");
//
regUnitIc.setBusinessState(ObjectUtils.isEmpty(businessStateDict) ? null : businessStateDict.getName());
//
regUnitIc.setApprovedDate(ObjectUtils.isEmpty(map.get("approvedDate")) ? null : approvedDate);
//
//
regUnitIcService.update(regUnitIc, new QueryWrapper<RegUnitIc>().eq("unit_code", regUnitIcDto.getUnitCode()));
//
}
//许可信息先登录人选择的身份删除相应的许可信息,原因前端列表对数据可增减
String
useCode
=
tzBaseEnterpriseInfo
.
getUseCode
();
String
certTypeCodes
=
Arrays
.
stream
(
unitTypes
).
map
(
e
->
COMPANY_TYPE_CERT_TYPE_MAP
.
getOrDefault
(
e
,
""
)).
collect
(
Collectors
.
joining
(
","
));
if
(
useCode
!=
null
&&
!
certTypeCodes
.
isEmpty
())
{
LambdaQueryWrapper
<
BaseUnitLicence
>
wrapper
=
new
LambdaQueryWrapper
<>();
wrapper
.
eq
(
BaseUnitLicence:
:
getUnitCode
,
useCode
);
wrapper
.
and
(
w
->
Arrays
.
stream
(
certTypeCodes
.
split
(
","
))
.
forEach
(
certTypeCode
->
w
.
or
().
likeRight
(
BaseUnitLicence:
:
getCertTypeCode
,
certTypeCode
)));
baseUnitLicenceService
.
remove
(
wrapper
);
}
//报错许可许可信息
saveLicenceData
(
map
);
//
String useCode = tzBaseEnterpriseInfo.getUseCode();
//
String certTypeCodes = Arrays.stream(unitTypes).map(e -> COMPANY_TYPE_CERT_TYPE_MAP.getOrDefault(e, "")).collect(Collectors.joining(","));
//
if (useCode != null && !certTypeCodes.isEmpty()) {
//
LambdaQueryWrapper<BaseUnitLicence> wrapper = new LambdaQueryWrapper<>();
//
wrapper.eq(BaseUnitLicence::getUnitCode, useCode);
//
wrapper.and(w -> Arrays.stream(certTypeCodes.split(","))
//
.forEach(certTypeCode -> w.or().likeRight(BaseUnitLicence::getCertTypeCode, certTypeCode)));
//
baseUnitLicenceService.remove(wrapper);
//
}
//
//
报错许可许可信息
//
saveLicenceData(map);
// 企业信息变更-同步修改企业下人员绑定设备类型
ArrayList
<
String
>
newData
=
new
ArrayList
<>();
JSONArray
objects
=
JSON
.
parseArray
(
tzBaseEnterpriseInfo
.
getEquipCategory
());
...
...
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