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
84128f8e
Commit
84128f8e
authored
Dec 27, 2024
by
tianbo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:安全追溯-企业许可超期
parent
a2f99cf8
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
7 deletions
+15
-7
CommonMapper.xml
...-module-jg-api/src/main/resources/mapper/CommonMapper.xml
+10
-5
SafetyProblemTopicMessage.java
...oot/module/jg/biz/listener/SafetyProblemTopicMessage.java
+1
-1
SafetyProblemTracingGenServiceImpl.java
.../biz/service/impl/SafetyProblemTracingGenServiceImpl.java
+4
-1
No files found.
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/resources/mapper/CommonMapper.xml
View file @
84128f8e
...
...
@@ -2573,9 +2573,14 @@
AND ul.expiry_date
<![CDATA[<]]>
to_char( now( ), 'YYYY-MM-DD' )
</select>
<update
id=
"updateEnterpriseSafetyStatus"
>
update tz_base_enterprise_info
set status = '1'
where use_unit_code in (#{useUnitCodeList})
</update>
<update
id=
"updateEnterpriseSafetyStatus"
>
update tz_base_enterprise_info
set status = '1'
where use_unit_code in
<foreach
item=
"item"
index=
"index"
collection=
"useUnitCodeList"
open=
"("
separator=
","
close=
")"
>
#{item}
</foreach>
</update>
</mapper>
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/java/com/yeejoin/amos/boot/module/jg/biz/listener/SafetyProblemTopicMessage.java
View file @
84128f8e
...
...
@@ -163,7 +163,7 @@ public class SafetyProblemTopicMessage extends EmqxListener {
SafetyProblemTracing
safetyProblemTracing
=
new
SafetyProblemTracing
();
safetyProblemTracing
.
setProblemType
(
problemTypeEnum
.
getName
());
safetyProblemTracing
.
setProblemTypeCode
(
problemTypeEnum
.
getCode
());
safetyProblemTracing
.
setProblemDesc
(
problemTypeEnum
.
getDesc
());
safetyProblemTracing
.
setProblemDesc
(
problemTypeEnum
.
getDesc
()
+
"-"
+
json
.
getOrDefault
(
"itemName"
,
""
)
+
"-"
+
json
.
getOrDefault
(
"subItemName"
,
""
)
);
safetyProblemTracing
.
setSourceType
(
SafetyProblemSourceTypeEnum
.
UNIT
.
getName
());
safetyProblemTracing
.
setSourceTypeCode
(
SafetyProblemSourceTypeEnum
.
UNIT
.
getCode
());
safetyProblemTracing
.
setSourceId
(
json
.
getOrDefault
(
"licenceSeq"
,
""
).
toString
());
...
...
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/SafetyProblemTracingGenServiceImpl.java
View file @
84128f8e
...
...
@@ -11,7 +11,6 @@ import com.yeejoin.amos.boot.module.jg.api.enums.SafetyProblemStatusEnum;
import
com.yeejoin.amos.boot.module.jg.api.enums.SafetyProblemTypeEnum
;
import
com.yeejoin.amos.boot.module.jg.api.mapper.CommonMapper
;
import
com.yeejoin.amos.boot.module.ymt.api.entity.IdxBizJgOtherInfo
;
import
com.yeejoin.amos.boot.module.ymt.api.entity.TzBaseEnterpriseInfo
;
import
com.yeejoin.amos.boot.module.ymt.api.mapper.TzBaseEnterpriseInfoMapper
;
import
net.javacrumbs.shedlock.spring.annotation.SchedulerLock
;
import
org.eclipse.paho.client.mqttv3.MqttException
;
...
...
@@ -21,6 +20,7 @@ import org.springframework.beans.factory.annotation.Autowired;
import
org.springframework.scheduling.annotation.Scheduled
;
import
org.springframework.stereotype.Service
;
import
org.typroject.tyboot.component.emq.EmqKeeper
;
import
org.typroject.tyboot.core.foundation.utils.ValidationUtil
;
import
java.nio.charset.StandardCharsets
;
import
java.util.List
;
...
...
@@ -141,6 +141,9 @@ public class SafetyProblemTracingGenServiceImpl{
private
void
updateEnterpriseAndSendMessage
(
List
<
Map
<
String
,
Object
>>
mapList
)
{
Set
<
String
>
outOfUnitLicenseList
=
mapList
.
stream
().
map
(
m
->
m
.
get
(
"useUnitCode"
).
toString
()).
collect
(
Collectors
.
toSet
());
if
(
ValidationUtil
.
isEmpty
(
outOfUnitLicenseList
))
{
return
;
}
// 更新企业问题状态为未处理(异常)-多个许可超期归并一个企业问题
commonMapper
.
updateEnterpriseSafetyStatus
(
outOfUnitLicenseList
);
sendSafetyProblemMessage
(
mapList
,
SafetyProblemTypeEnum
.
XKCQ
);
...
...
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