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
a9b770c0
Commit
a9b770c0
authored
Oct 17, 2024
by
suhuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.设备种类下拉多压力管道原件
parent
2320e937
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
5 deletions
+12
-5
CommonController.java
.../amos/boot/module/jg/biz/controller/CommonController.java
+2
-1
ICommonService.java
...ejoin/amos/boot/module/jg/biz/service/ICommonService.java
+2
-1
CommonServiceImpl.java
...os/boot/module/jg/biz/service/impl/CommonServiceImpl.java
+4
-3
EquipmentCategoryMapper.java
...s/boot/module/ymt/api/mapper/EquipmentCategoryMapper.java
+4
-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 @
a9b770c0
...
...
@@ -18,6 +18,7 @@ import com.yeejoin.amos.boot.module.jg.biz.service.ICommonService;
import
com.yeejoin.amos.boot.module.jg.biz.service.IPdfService
;
import
com.yeejoin.amos.boot.module.jg.biz.service.impl.JgRegistrationHistoryServiceImpl
;
import
com.yeejoin.amos.boot.module.jg.biz.utils.CodeUtil
;
import
com.yeejoin.amos.boot.module.ymt.api.dto.EquipmentCategoryDto
;
import
com.yeejoin.amos.boot.module.ymt.api.entity.EquipmentCategory
;
import
com.yeejoin.amos.boot.module.ymt.api.enums.FlowStatusEnum
;
import
com.yeejoin.amos.feign.systemctl.Systemctl
;
...
...
@@ -191,7 +192,7 @@ public class CommonController extends BaseController {
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@GetMapping
(
value
=
"/equipmentClassification"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"设备分类"
,
notes
=
"1,设备种类 2,设备类别 3,设备品种"
)
public
ResponseModel
<
List
<
EquipmentCategory
>>
equipmentClassification
(
@RequestParam
(
value
=
"type"
)
String
type
)
{
public
ResponseModel
<
List
<
EquipmentCategory
Dto
>>
equipmentClassification
(
@RequestParam
(
value
=
"type"
)
String
type
)
{
return
ResponseHelper
.
buildResponse
(
commonService
.
equipmentClassification
(
type
));
}
...
...
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 @
a9b770c0
...
...
@@ -9,6 +9,7 @@ import com.yeejoin.amos.boot.biz.common.bo.ReginParams;
import
com.yeejoin.amos.boot.module.jg.api.dto.InstanceRuntimeData
;
import
com.yeejoin.amos.boot.module.jg.api.dto.UseFlagParamDto
;
import
com.yeejoin.amos.boot.module.jg.api.entity.JgUseRegistrationManage
;
import
com.yeejoin.amos.boot.module.ymt.api.dto.EquipmentCategoryDto
;
import
com.yeejoin.amos.boot.module.ymt.api.entity.EquipmentCategory
;
import
javax.servlet.http.HttpServletResponse
;
...
...
@@ -184,7 +185,7 @@ public interface ICommonService {
* @param type 1,设备种类 2,设备类别 3,设备品种
* @return
*/
List
<
EquipmentCategory
>
equipmentClassification
(
String
type
);
List
<
EquipmentCategory
Dto
>
equipmentClassification
(
String
type
);
/**
* 套打使用标志生成
...
...
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 @
a9b770c0
...
...
@@ -47,6 +47,7 @@ import com.yeejoin.amos.boot.module.jg.biz.utils.FileExporter;
import
com.yeejoin.amos.boot.module.jg.biz.utils.ImageUtils
;
import
com.yeejoin.amos.boot.module.jg.biz.utils.JsonUtils
;
import
com.yeejoin.amos.boot.module.jg.biz.utils.WordTemplateUtils
;
import
com.yeejoin.amos.boot.module.ymt.api.dto.EquipmentCategoryDto
;
import
com.yeejoin.amos.boot.module.ymt.api.entity.EquipTechParamPipeline
;
import
com.yeejoin.amos.boot.module.ymt.api.entity.EquipmentCategory
;
import
com.yeejoin.amos.boot.module.ymt.api.entity.RegistrationInfo
;
...
...
@@ -1968,9 +1969,9 @@ public class CommonServiceImpl implements ICommonService {
* .c@return
*/
@Override
public
List
<
EquipmentCategory
>
equipmentClassification
(
String
type
)
{
List
<
EquipmentCategory
>
categoryList
=
equipmentCategoryMapper
.
selectList
(
new
QueryWrapper
<>()
);
List
<
EquipmentCategory
>
result
=
Collections
.
emptyList
();
public
List
<
EquipmentCategory
Dto
>
equipmentClassification
(
String
type
)
{
List
<
EquipmentCategory
Dto
>
categoryList
=
equipmentCategoryMapper
.
selectClassifyNoStart7
(
);
List
<
EquipmentCategory
Dto
>
result
=
Collections
.
emptyList
();
switch
(
type
)
{
case
"1"
:
result
=
categoryList
.
stream
().
filter
(
category
->
Pattern
.
compile
(
"^[^\\D0]*000$"
).
matcher
(
category
.
getCode
()).
matches
()).
collect
(
Collectors
.
toList
());
...
...
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 @
a9b770c0
...
...
@@ -23,6 +23,10 @@ import java.util.Map;
@Mapper
public
interface
EquipmentCategoryMapper
extends
BaseMapper
<
EquipmentCategory
>
{
@Select
(
"SELECT * FROM tz_equipment_category WHERE code NOT LIKE '7%' ORDER BY parent_id"
)
List
<
EquipmentCategoryDto
>
selectClassifyNoStart7
();
@Select
(
"select * from tz_equipment_category where code in('1000','2000','3000','4000','5000','6000','8000','9000')"
)
List
<
EquipmentCategoryDto
>
selectClassify
();
...
...
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