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
e57318da
Commit
e57318da
authored
Dec 03, 2024
by
hekaiwen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug25219修改
parent
aa9ca7eb
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
1 deletion
+15
-1
JgMaintenanceContractMapper.java
...oot/module/jg/api/mapper/JgMaintenanceContractMapper.java
+2
-0
JgMaintenanceContractMapper.xml
...src/main/resources/mapper/JgMaintenanceContractMapper.xml
+7
-1
JgMaintenanceContractServiceImpl.java
...jg/biz/service/impl/JgMaintenanceContractServiceImpl.java
+6
-0
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/mapper/JgMaintenanceContractMapper.java
View file @
e57318da
...
...
@@ -36,4 +36,6 @@ public interface JgMaintenanceContractMapper extends BaseMapper<JgMaintenanceCon
List
<
CompanyEquipCountDto
>
queryForFlowingEquipList
();
List
<
MaintenanceVo
>
queryMaintenanceInIds
(
@Param
(
"ids"
)
List
<
String
>
ids
);
String
getNameByEquDefine
(
String
equDefine
);
}
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/resources/mapper/JgMaintenanceContractMapper.xml
View file @
e57318da
...
...
@@ -152,7 +152,7 @@
jfi.FACTORY_NUM,
jui.ADDRESS as ADDRESS,
jui.RECORD record,
jri.
EQU_DEFINE,
(SELECT name from tz_equipment_category where code = jri.EQU_DEFINE) as
EQU_DEFINE,
jri.PRODUCT_NAME,
jri.EQU_CODE,
(SELECT name from tz_equipment_category where code = jri.EQU_LIST) as EQU_LIST,
...
...
@@ -165,6 +165,12 @@
WHERE mc.equip_transfer_id = #{id}
</select>
<select
id=
"getNameByEquDefine"
resultType=
"String"
>
select name
from tz_equipment_category
where code = #{equDefine}
</select>
<select
id=
"queryForFlowingEquipList"
resultType=
"com.yeejoin.amos.boot.module.jg.api.dto.CompanyEquipCountDto"
>
select a.use_unit_code as companyCode,
group_concat(b.equ_id) as records
...
...
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/JgMaintenanceContractServiceImpl.java
View file @
e57318da
...
...
@@ -183,6 +183,12 @@ public class JgMaintenanceContractServiceImpl extends BaseService<JgMaintenanceC
vo
.
setEquipmentLists
(
list
);
}
}
else
{
//如果EQU_DEFINE是数字进行转换
String
equDefineCode
=
objects
.
getJSONObject
(
0
).
getString
(
"EQU_DEFINE"
);
if
(
equDefineCode
.
chars
().
anyMatch
(
Character:
:
isDigit
)){
JSONObject
firstObject
=
objects
.
getJSONObject
(
0
);
firstObject
.
put
(
"EQU_DEFINE"
,
maintenanceContractMapper
.
getNameByEquDefine
(
equDefineCode
));
}
List
equList
=
objects
.
toJavaList
(
Map
.
class
);
vo
.
setEquipmentLists
(
equList
);
}
...
...
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