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
0dd3e344
Commit
0dd3e344
authored
Sep 05, 2025
by
刘林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(jg):96333西咸生成超码问题处理
parent
f2caa909
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
46 additions
and
1 deletion
+46
-1
EquipmentCategoryMapper.java
...s/boot/module/ymt/api/mapper/EquipmentCategoryMapper.java
+1
-0
IEquipmentCategoryService.java
...oot/module/ymt/api/service/IEquipmentCategoryService.java
+2
-0
EquipmentCategoryMapper.xml
...api/src/main/resources/mapper/EquipmentCategoryMapper.xml
+11
-0
EquipmentCategoryController.java
...odule/ymt/biz/controller/EquipmentCategoryController.java
+12
-0
EquipmentCategoryServiceImpl.java
...le/ymt/biz/service/impl/EquipmentCategoryServiceImpl.java
+20
-1
No files found.
amos-boot-system-tzs/amos-boot-module-ymt/amos-boot-module-ymt-api/src/main/java/com/yeejoin/amos/boot/module/ymt/api/mapper/EquipmentCategoryMapper.java
View file @
0dd3e344
...
...
@@ -133,5 +133,6 @@ public interface EquipmentCategoryMapper extends BaseMapper<EquipmentCategory> {
@Select
(
"select * from biz_jg_supervisory_code where supervisory_code = #{supervisoryCode} ORDER BY supervisory_code"
)
SupervisoryCodeInfo
searchSupervisoryBySupervisoryCode
(
@Param
(
"supervisoryCode"
)
String
supervisoryCode
);
List
<
Map
<
String
,
String
>>
selectError96333Code
();
}
amos-boot-system-tzs/amos-boot-module-ymt/amos-boot-module-ymt-api/src/main/java/com/yeejoin/amos/boot/module/ymt/api/service/IEquipmentCategoryService.java
View file @
0dd3e344
...
...
@@ -52,4 +52,6 @@ public interface IEquipmentCategoryService {
String
handleErrorElevatorCode
(
String
supervisorCode
,
String
elevatorCode
);
JSONObject
batchHandlerCode96333
();
String
handleError96333Code
();
}
amos-boot-system-tzs/amos-boot-module-ymt/amos-boot-module-ymt-api/src/main/resources/mapper/EquipmentCategoryMapper.xml
View file @
0dd3e344
...
...
@@ -728,4 +728,15 @@
</where>
ORDER BY parent_id
</select>
<select
id=
"selectError96333Code"
resultType=
"java.util.Map"
>
SELECT v1."SUPERVISORY_CODE" as supervisoryCode,
v1."CODE96333" as code,
v2.REC_DATE
FROM "idx_biz_jg_other_info" v1
LEFT JOIN "biz_jg_supervisory_code" v2 on v1.SUPERVISORY_CODE = v2.SUPERVISORY_CODE
WHERE v1."SUPERVISORY_CODE" ~ 'X31' AND v1."CODE96333" ~ '^32'
AND v2.create_status = '1'
ORDER BY v2."REC_DATE" DESC
</select>
</mapper>
amos-boot-system-tzs/amos-boot-module-ymt/amos-boot-module-ymt-biz/src/main/java/com/yeejoin/amos/boot/module/ymt/biz/controller/EquipmentCategoryController.java
View file @
0dd3e344
...
...
@@ -702,4 +702,16 @@ public class EquipmentCategoryController extends BaseController {
public
ResponseModel
<
JSONObject
>
batchHandlerCode96333
()
{
return
ResponseHelper
.
buildResponse
(
equipmentCategoryService
.
batchHandlerCode96333
());
}
/**
* 处理西咸生成96333超31成32 问题
*
* @return s
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@RequestMapping
(
value
=
"/handleError96333Code"
,
method
=
RequestMethod
.
POST
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"处理西咸生成96333超31成32 问题"
,
notes
=
"处理西咸生成96333超31成32 问题"
)
public
ResponseModel
<
String
>
handleError96333Code
()
{
return
ResponseHelper
.
buildResponse
(
equipmentCategoryService
.
handleError96333Code
());
}
}
amos-boot-system-tzs/amos-boot-module-ymt/amos-boot-module-ymt-biz/src/main/java/com/yeejoin/amos/boot/module/ymt/biz/service/impl/EquipmentCategoryServiceImpl.java
View file @
0dd3e344
...
...
@@ -835,8 +835,13 @@ public class EquipmentCategoryServiceImpl extends BaseService<EquipmentCategoryD
param
.
put
(
"CODE96333"
,
elevatorCode
);
objMap
.
put
(
otherInfo
.
getRecord
(),
param
);
this
.
commonUpdateEsDataByIds
(
objMap
);
}
Optional
<
ESEquipmentInfo
>
equipmentDaoById
=
esEquipmentDao
.
findById
(
otherInfo
.
getRecord
());
equipmentDaoById
.
ifPresent
(
data
->
{
data
.
setCODE96333
(
elevatorCode
);
esEquipmentDao
.
save
(
data
);
});
}
return
"96333码修复成功!"
;
}
...
...
@@ -2746,6 +2751,20 @@ public class EquipmentCategoryServiceImpl extends BaseService<EquipmentCategoryD
.
fluentPut
(
"异常数据,需手动处理:"
,
JSONObject
.
toJSONString
(
manualProcessData
));
}
@Override
public
String
handleError96333Code
()
{
List
<
Map
<
String
,
String
>>
exceptionData
=
equipmentCategoryMapper
.
selectError96333Code
();
exceptionData
.
stream
()
.
map
(
data
->
data
.
get
(
"supervisoryCode"
))
.
filter
(
Objects:
:
nonNull
)
.
forEach
(
supervisoryCode
->
{
String
elevatorCode
=
createElevatorCode
(
"31"
);
handleErrorElevatorCode
(
supervisoryCode
,
elevatorCode
);
});
return
String
.
format
(
"修复96333码成功,共处理 %d 条"
,
exceptionData
.
size
());
}
private
void
saveCode96333ForEs
(
String
record
,
String
code96333
)
{
// idx_biz_view_jg_all
Optional
<
ESEquipmentCategoryDto
>
esEquipmentCategoryDto
=
esEquipmentCategory
.
findById
(
record
);
...
...
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