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
1d144cda
Commit
1d144cda
authored
Jan 20, 2025
by
tianbo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bugfix:
1、增加根据父级Code获取子设备分类列表接口
parent
4c17a1dd
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
24 additions
and
1 deletion
+24
-1
CommonController.java
.../amos/boot/module/jg/biz/controller/CommonController.java
+13
-0
ICommonService.java
...ejoin/amos/boot/module/jg/biz/service/ICommonService.java
+2
-0
CommonServiceImpl.java
...os/boot/module/jg/biz/service/impl/CommonServiceImpl.java
+6
-1
EquipmentCategoryMapper.java
...s/boot/module/ymt/api/mapper/EquipmentCategoryMapper.java
+3
-0
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/controller/CommonController.java
View file @
1d144cda
...
...
@@ -681,4 +681,17 @@ public class CommonController extends BaseController {
public
Integer
checkFactoryNumUniquenessForVehicleCylinder
(
@RequestParam
(
"factoryNum"
)
String
factoryNum
)
{
return
commonService
.
checkFactoryNumUniquenessForVehicleCylinder
(
factoryNum
,
null
);
}
/**
* 根据父级code查询子设备分类
*
* @param parentCode 父级code
* @return list
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@GetMapping
(
value
=
"/getSubEquCategoryByParent"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"根据父级code查询子设备分类"
,
notes
=
"根据父级code查询子设备分类"
)
public
ResponseModel
<
List
<
EquipmentCategoryDto
>>
getSubEquCategoryByParent
(
@RequestParam
(
value
=
"parentCode"
)
String
parentCode
)
{
return
ResponseHelper
.
buildResponse
(
commonService
.
getSubEquCategoryByParentCode
(
parentCode
));
}
}
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/java/com/yeejoin/amos/boot/module/jg/biz/service/ICommonService.java
View file @
1d144cda
...
...
@@ -241,4 +241,6 @@ public interface ICommonService {
List
<
EquipmentCategoryDto
>
equipmentClassificationNoPipeline
(
String
type
);
List
<
EquipmentCategoryDto
>
getEquDefineByParentId
(
String
parentId
);
List
<
EquipmentCategoryDto
>
getSubEquCategoryByParentCode
(
String
parentCode
);
}
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/CommonServiceImpl.java
View file @
1d144cda
...
...
@@ -792,7 +792,7 @@ public class CommonServiceImpl implements ICommonService {
result
.
forEach
(
x
->
convertAndAddToUnitList
(
x
,
unitList
));
}
// 使用单位追加 三环认领的(业主可能未注册系统,别人帮忙认领的,帮忙认领后会保存一份原使用单位的数据到字典)
if
(
"使用单位"
.
equals
(
type
))
{
if
(
"使用单位"
.
equals
(
type
)
&&
"gasCylindersForCars"
.
equals
(
business
)
)
{
List
<
DictionarieValueModel
>
result
=
Systemctl
.
dictionarieClient
.
dictValues
(
"OLD_USE_UNIT"
).
getResult
();
result
.
forEach
(
x
->
convertAndAddToUnitList
(
x
,
unitList
));
}
...
...
@@ -2122,6 +2122,11 @@ public class CommonServiceImpl implements ICommonService {
return
equipmentCategoryMapper
.
getEquDefineByParentId
(
parentId
);
}
@Override
public
List
<
EquipmentCategoryDto
>
getSubEquCategoryByParentCode
(
String
parentCode
)
{
return
equipmentCategoryMapper
.
getSubEquCategoryByParentCode
(
parentCode
);
}
/**
* 排序 :页面列表排序功能支持,将 "字段,ascend" 或 "字段,descend" 转化为对应JSONObject
*
...
...
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 @
1d144cda
...
...
@@ -100,5 +100,8 @@ public interface EquipmentCategoryMapper extends BaseMapper<EquipmentCategory> {
@Select
(
"SELECT * FROM tz_equipment_category WHERE parent_id = #{parentId}"
)
List
<
EquipmentCategoryDto
>
getEquDefineByParentId
(
String
parentId
);
@Select
(
"SELECT * FROM tz_equipment_category WHERE parent_id = ( SELECT ID FROM tz_equipment_category WHERE code = #{parentCode} )"
)
List
<
EquipmentCategoryDto
>
getSubEquCategoryByParentCode
(
String
parentCode
);
}
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