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
ba1b9cb9
Commit
ba1b9cb9
authored
Feb 28, 2024
by
韩桐桐
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(jg):bug修改,设备注册时补充注册表REGISTER_STATE字段
parent
1a89ecfb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
2 deletions
+19
-2
IdxBizJgRegisterInfoServiceImpl.java
.../jg/biz/service/impl/IdxBizJgRegisterInfoServiceImpl.java
+19
-2
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 @
ba1b9cb9
...
...
@@ -8,6 +8,8 @@ import com.baomidou.mybatisplus.core.toolkit.StringUtils;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.yeejoin.amos.boot.biz.common.bo.CompanyBo
;
import
com.yeejoin.amos.boot.biz.common.bo.ReginParams
;
import
com.yeejoin.amos.boot.biz.common.entity.DataDictionary
;
import
com.yeejoin.amos.boot.biz.common.service.impl.DataDictionaryServiceImpl
;
import
com.yeejoin.amos.boot.biz.common.utils.RedisKey
;
import
com.yeejoin.amos.boot.biz.common.utils.RedisUtils
;
import
com.yeejoin.amos.boot.module.jg.api.entity.JgInstallationNoticeEq
;
...
...
@@ -136,12 +138,12 @@ public class IdxBizJgRegisterInfoServiceImpl extends BaseService<IdxBizJgRegiste
ESEquipmentCategory
esEquipmentCategory
;
@Autowired
ICommonService
commonService
;
@Autowired
DataDictionaryServiceImpl
iDataDictionaryService
;
@Autowired
private
CategoryOtherInfoMapper
categoryOtherInfoMapper
;
@Autowired
private
SuperviseInfoMapper
superviseInfoMapper
;
@Autowired
private
JgInstallationNoticeEqServiceImpl
jgInstallationNoticeEqServiceImpl
;
@Autowired
...
...
@@ -1191,6 +1193,20 @@ public class IdxBizJgRegisterInfoServiceImpl extends BaseService<IdxBizJgRegiste
return
object
;
}
/**
* 获取类型为ZC的“已注册”的字典值
* @return code
*/
private
String
getRegCode
(){
QueryWrapper
<
DataDictionary
>
queryWrapper
=
new
QueryWrapper
<>();
queryWrapper
.
eq
(
"type"
,
"ZC"
);
queryWrapper
.
eq
(
"name"
,
"已注册"
);
queryWrapper
.
eq
(
"is_delete"
,
false
);
List
<
DataDictionary
>
list
=
iDataDictionaryService
.
list
(
queryWrapper
);
DataDictionary
dictionary
=
list
.
get
(
0
);
return
ObjectUtils
.
isEmpty
(
dictionary
)
?
""
:
dictionary
.
getCode
();
}
private
String
batchSubmitOrUpdate
(
LinkedHashMap
equipmentClassForm
,
LinkedHashMap
equipmentInfoForm
,
LinkedHashMap
equipmentParamsForm
)
{
Date
date
=
new
Date
();
String
record
=
null
;
...
...
@@ -1253,6 +1269,7 @@ public class IdxBizJgRegisterInfoServiceImpl extends BaseService<IdxBizJgRegiste
// Bean.copyExistPropertis(equipmentClassRegisterInfo, registerInfo);
registerInfo
.
setRecord
(
record
);
registerInfo
.
setRecDate
(
date
);
registerInfo
.
setRegisterState
(
this
.
getRegCode
());
registerInfo
.
setSequenceNbr
(
OPERATESAVE
.
equals
(
operateType
)
?
null
:
String
.
valueOf
(
equipmentInfoForm
.
get
(
"REGISTERINFO_SEQ"
)));
this
.
saveOrUpdate
(
registerInfo
);
...
...
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