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
f4e92608
Commit
f4e92608
authored
Dec 18, 2022
by
曹盼盼
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
特种加设备八大类
parent
ebd6d7b3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
0 deletions
+28
-0
EquipmentCategoryMapper.java
...s/boot/module/tzs/api/mapper/EquipmentCategoryMapper.java
+7
-0
EquipmentCategoryController.java
...odule/tzs/biz/controller/EquipmentCategoryController.java
+12
-0
EquipmentCategoryServiceImpl.java
...le/tzs/biz/service/impl/EquipmentCategoryServiceImpl.java
+9
-0
No files found.
amos-boot-system-tzs/amos-boot-module-tzs-api/src/main/java/com/yeejoin/amos/boot/module/tzs/api/mapper/EquipmentCategoryMapper.java
View file @
f4e92608
package
com
.
yeejoin
.
amos
.
boot
.
module
.
tzs
.
api
.
mapper
;
import
com.yeejoin.amos.boot.module.tzs.api.dto.EquipmentCategoryDto
;
import
com.yeejoin.amos.boot.module.tzs.api.entity.EquipmentCategory
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
org.apache.ibatis.annotations.Select
;
import
java.util.List
;
/**
* 装备分类 Mapper 接口
...
...
@@ -11,4 +15,7 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
*/
public
interface
EquipmentCategoryMapper
extends
BaseMapper
<
EquipmentCategory
>
{
@Select
(
"select * from tz_equipment_category where code in('1000','2000','3000','4000','5000','6000','7000','8000')"
)
List
<
EquipmentCategoryDto
>
selectClassify
();
}
amos-boot-system-tzs/amos-boot-module-tzs-biz/src/main/java/com/yeejoin/amos/boot/module/tzs/biz/controller/EquipmentCategoryController.java
View file @
f4e92608
...
...
@@ -134,4 +134,16 @@ public class EquipmentCategoryController extends BaseController {
tree
.
add
(
menu
);
return
ResponseHelper
.
buildResponse
(
tree
);
}
/**
* 设备分类八大类
*
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"设备分类八大类"
,
notes
=
"设备分类八大类"
)
@GetMapping
(
value
=
"/selectClassify"
)
public
ResponseModel
<
List
<
EquipmentCategoryDto
>>
selectClassify
()
{
return
ResponseHelper
.
buildResponse
(
equipmentCategoryServiceImpl
.
selectClassify
());
}
}
amos-boot-system-tzs/amos-boot-module-tzs-biz/src/main/java/com/yeejoin/amos/boot/module/tzs/biz/service/impl/EquipmentCategoryServiceImpl.java
View file @
f4e92608
...
...
@@ -4,6 +4,7 @@ import com.yeejoin.amos.boot.module.tzs.api.entity.EquipmentCategory;
import
com.yeejoin.amos.boot.module.tzs.api.mapper.EquipmentCategoryMapper
;
import
com.yeejoin.amos.boot.module.tzs.api.service.IEquipmentCategoryService
;
import
com.yeejoin.amos.boot.module.tzs.api.dto.EquipmentCategoryDto
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.typroject.tyboot.core.rdbms.service.BaseService
;
import
org.springframework.stereotype.Service
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
...
...
@@ -17,6 +18,9 @@ import java.util.List;
*/
@Service
public
class
EquipmentCategoryServiceImpl
extends
BaseService
<
EquipmentCategoryDto
,
EquipmentCategory
,
EquipmentCategoryMapper
>
implements
IEquipmentCategoryService
{
@Autowired
EquipmentCategoryMapper
equipmentCategoryMapper
;
/**
* 分页查询
*/
...
...
@@ -30,4 +34,8 @@ public class EquipmentCategoryServiceImpl extends BaseService<EquipmentCategoryD
public
List
<
EquipmentCategoryDto
>
queryForEquipmentCategoryList
()
{
return
this
.
queryForList
(
""
,
false
);
}
public
List
<
EquipmentCategoryDto
>
selectClassify
()
{
return
equipmentCategoryMapper
.
selectClassify
();
}
}
\ No newline at end of file
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