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
e304a5f0
Commit
e304a5f0
authored
Jan 21, 2025
by
韩桐桐
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(jg):普通气瓶导入
parent
78667fc5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
IdxBizJgRegisterInfoServiceImpl.java
.../jg/biz/service/impl/IdxBizJgRegisterInfoServiceImpl.java
+4
-0
JgUseRegistrationManageServiceImpl.java
.../biz/service/impl/JgUseRegistrationManageServiceImpl.java
+1
-1
No files found.
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 @
e304a5f0
...
@@ -3742,6 +3742,8 @@ public class IdxBizJgRegisterInfoServiceImpl extends BaseService<IdxBizJgRegiste
...
@@ -3742,6 +3742,8 @@ public class IdxBizJgRegisterInfoServiceImpl extends BaseService<IdxBizJgRegiste
useInfo
.
setDataSource
(
"his"
.
equals
(
equipInfoDto
.
getDataSource
())
?
"jg_his"
:
"jg"
);
// 区分历史设备和新增设备
useInfo
.
setDataSource
(
"his"
.
equals
(
equipInfoDto
.
getDataSource
())
?
"jg_his"
:
"jg"
);
// 区分历史设备和新增设备
useInfo
.
setEquState
(
null
);
useInfo
.
setEquState
(
null
);
useInfo
.
setIsIntoManagement
(
"his"
.
equals
(
equipInfoDto
.
getDataSource
()));
// 历史气瓶导入为已纳管设备
useInfo
.
setIsIntoManagement
(
"his"
.
equals
(
equipInfoDto
.
getDataSource
()));
// 历史气瓶导入为已纳管设备
// 历史气瓶导入设备状态为在用
useInfo
.
setEquState
(
"his"
.
equals
(
equipInfoDto
.
getDataSource
())
?
EquimentEnum
.
ZAIYONG
.
getCode
().
toString
()
:
EquimentEnum
.
WEIDENGJI
.
getCode
().
toString
());
// 使用单位信息
// 使用单位信息
if
(
"个人主体"
.
equals
(
company
.
getCompanyType
()))
{
if
(
"个人主体"
.
equals
(
company
.
getCompanyType
()))
{
useInfo
.
setUseUnitCreditCode
(
company
.
getCompanyCode
().
split
(
"_"
)[
1
]);
useInfo
.
setUseUnitCreditCode
(
company
.
getCompanyCode
().
split
(
"_"
)[
1
]);
...
@@ -3866,6 +3868,7 @@ public class IdxBizJgRegisterInfoServiceImpl extends BaseService<IdxBizJgRegiste
...
@@ -3866,6 +3868,7 @@ public class IdxBizJgRegisterInfoServiceImpl extends BaseService<IdxBizJgRegiste
esEquipmentDto
.
setEQU_DEFINE
(
equipInfoDto
.
getEquDefine
());
esEquipmentDto
.
setEQU_DEFINE
(
equipInfoDto
.
getEquDefine
());
esEquipmentDto
.
setINFORMATION_SITUATION
(
otherInfo
.
getInformationSituation
());
esEquipmentDto
.
setINFORMATION_SITUATION
(
otherInfo
.
getInformationSituation
());
esEquipmentDto
.
setSTATUS
(
"已认领"
);
esEquipmentDto
.
setSTATUS
(
"已认领"
);
esEquipmentDto
.
setEQU_STATE
(
"his"
.
equals
(
equipInfoDto
.
getDataSource
())
?
EquimentEnum
.
ZAIYONG
.
getCode
()
:
EquimentEnum
.
WEIDENGJI
.
getCode
());
// 使用单位信息
// 使用单位信息
if
(
"个人主体"
.
equals
(
company
.
getCompanyType
()))
{
if
(
"个人主体"
.
equals
(
company
.
getCompanyType
()))
{
...
@@ -4128,6 +4131,7 @@ public class IdxBizJgRegisterInfoServiceImpl extends BaseService<IdxBizJgRegiste
...
@@ -4128,6 +4131,7 @@ public class IdxBizJgRegisterInfoServiceImpl extends BaseService<IdxBizJgRegiste
jgUseRegistrationManage
.
setIsDelete
(
Boolean
.
FALSE
);
jgUseRegistrationManage
.
setIsDelete
(
Boolean
.
FALSE
);
jgUseRegistrationManage
.
setEquUseAddress
(
""
);
jgUseRegistrationManage
.
setEquUseAddress
(
""
);
jgUseRegistrationManage
.
setManageType
(
"unit"
);
jgUseRegistrationManage
.
setManageType
(
"unit"
);
jgUseRegistrationManage
.
setCreateDate
(
new
Date
());
jgUseRegistrationManage
.
setUseUnitAddress
(!
ValidationUtil
.
isEmpty
(
baseEnterpriseInfoMapper
.
selectByUseUnit
(
company
.
getCompanyName
()))
?
baseEnterpriseInfoMapper
.
selectByUseUnit
(
company
.
getCompanyName
()).
getAddress
()
:
""
);
jgUseRegistrationManage
.
setUseUnitAddress
(!
ValidationUtil
.
isEmpty
(
baseEnterpriseInfoMapper
.
selectByUseUnit
(
company
.
getCompanyName
()))
?
baseEnterpriseInfoMapper
.
selectByUseUnit
(
company
.
getCompanyName
()).
getAddress
()
:
""
);
jgUseRegistrationManage
.
setUseRegistrationCode
(
equipInfoDto
.
getUseOrgCode
());
jgUseRegistrationManage
.
setUseRegistrationCode
(
equipInfoDto
.
getUseOrgCode
());
jgUseRegistrationManage
.
setUseUnitName
(
CompanyTypeEnum
.
INDIVIDUAL
.
getName
().
equals
(
company
.
getCompanyType
())
?
jgUseRegistrationManage
.
setUseUnitName
(
CompanyTypeEnum
.
INDIVIDUAL
.
getName
().
equals
(
company
.
getCompanyType
())
?
...
...
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/JgUseRegistrationManageServiceImpl.java
View file @
e304a5f0
...
@@ -532,7 +532,7 @@ public class JgUseRegistrationManageServiceImpl extends BaseService<JgUseRegistr
...
@@ -532,7 +532,7 @@ public class JgUseRegistrationManageServiceImpl extends BaseService<JgUseRegistr
JSONObject
dto
=
jsonObject
.
getJSONObject
(
"sourceAsMap"
);
JSONObject
dto
=
jsonObject
.
getJSONObject
(
"sourceAsMap"
);
dto
.
put
(
"record"
,
dto
.
get
(
"SEQUENCE_NBR"
));
dto
.
put
(
"record"
,
dto
.
get
(
"SEQUENCE_NBR"
));
dto
.
put
(
"equipAddress"
,
dto
.
get
(
"USE_PLACE"
)
+
"/"
+
dto
.
get
(
"ADDRESS"
));
dto
.
put
(
"equipAddress"
,
dto
.
get
(
"USE_PLACE"
)
+
"/"
+
dto
.
get
(
"ADDRESS"
));
dto
.
put
(
"EQU_STATE_NAME"
,
EquimentEnum
.
getName
.
get
(
Integer
.
valueOf
(
dto
.
getString
(
"EQU_STATE"
)))
);
dto
.
put
(
"EQU_STATE_NAME"
,
!
ValidationUtil
.
isEmpty
(
dto
.
getString
(
"EQU_STATE"
))
?
EquimentEnum
.
getName
.
get
(
Integer
.
valueOf
(
dto
.
getString
(
"EQU_STATE"
)))
:
null
);
list
.
add
(
dto
);
list
.
add
(
dto
);
}
}
totle
=
Objects
.
requireNonNull
(
response
.
getInternalResponse
().
hits
().
getTotalHits
()).
value
;
totle
=
Objects
.
requireNonNull
(
response
.
getInternalResponse
().
hits
().
getTotalHits
()).
value
;
...
...
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