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
f4ddd84b
Commit
f4ddd84b
authored
Dec 17, 2024
by
刘林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(jg):装置添加投入日期,设备种类添加新接口
parent
78a88228
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
70 additions
and
3 deletions
+70
-3
CommonController.java
.../amos/boot/module/jg/biz/controller/CommonController.java
+25
-0
ICommonService.java
...ejoin/amos/boot/module/jg/biz/service/ICommonService.java
+4
-0
CommonServiceImpl.java
...os/boot/module/jg/biz/service/impl/CommonServiceImpl.java
+22
-0
IdxBizJgRegisterInfoServiceImpl.java
.../jg/biz/service/impl/IdxBizJgRegisterInfoServiceImpl.java
+1
-1
JgUseRegistrationServiceImpl.java
...ule/jg/biz/service/impl/JgUseRegistrationServiceImpl.java
+1
-0
IdxBizJgProjectContraptionDto.java
...oot/module/ymt/api/dto/IdxBizJgProjectContraptionDto.java
+3
-0
IdxBizJgProjectContraption.java
...oot/module/ymt/api/entity/IdxBizJgProjectContraption.java
+6
-0
EquipmentCategoryMapper.java
...s/boot/module/ymt/api/mapper/EquipmentCategoryMapper.java
+6
-1
IdxBizJgProjectContraptionMapper.xml
...ain/resources/mapper/IdxBizJgProjectContraptionMapper.xml
+2
-1
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 @
f4ddd84b
...
@@ -196,6 +196,31 @@ public class CommonController extends BaseController {
...
@@ -196,6 +196,31 @@ public class CommonController extends BaseController {
return
ResponseHelper
.
buildResponse
(
commonService
.
equipmentClassification
(
type
));
return
ResponseHelper
.
buildResponse
(
commonService
.
equipmentClassification
(
type
));
}
}
/**
* 设备分类 去掉管道分类
*
* @param type 1,设备种类 2,设备类别 3,设备品种
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@GetMapping
(
value
=
"/equipmentClassificationNoPipeline"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"设备分类"
,
notes
=
"1,设备种类 2,设备类别 3,设备品种"
)
public
ResponseModel
<
List
<
EquipmentCategoryDto
>>
equipmentClassificationNoPipeline
(
@RequestParam
(
value
=
"type"
)
String
type
)
{
return
ResponseHelper
.
buildResponse
(
commonService
.
equipmentClassificationNoPipeline
(
type
));
}
/**
* 设备品种
*
* @param parentId 父级ID
* @return list
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@GetMapping
(
value
=
"/getEquDefineByParentId"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"根据父级ID查询设备品种"
,
notes
=
"根据父级ID查询设备品种"
)
public
ResponseModel
<
List
<
EquipmentCategoryDto
>>
getEquDefineByParentId
(
@RequestParam
(
value
=
"parentId"
)
String
parentId
)
{
return
ResponseHelper
.
buildResponse
(
commonService
.
getEquDefineByParentId
(
parentId
));
}
/**
/**
* 查询安全管理员的基本信息
* 查询安全管理员的基本信息
...
...
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 @
f4ddd84b
...
@@ -237,4 +237,8 @@ public interface ICommonService {
...
@@ -237,4 +237,8 @@ public interface ICommonService {
* @return
* @return
*/
*/
Boolean
useRegistrationCertificateAccountUnique
(
String
useRegistrationCode
,
String
equipId
);
Boolean
useRegistrationCertificateAccountUnique
(
String
useRegistrationCode
,
String
equipId
);
List
<
EquipmentCategoryDto
>
equipmentClassificationNoPipeline
(
String
type
);
List
<
EquipmentCategoryDto
>
getEquDefineByParentId
(
String
parentId
);
}
}
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 @
f4ddd84b
...
@@ -2074,6 +2074,28 @@ public class CommonServiceImpl implements ICommonService {
...
@@ -2074,6 +2074,28 @@ public class CommonServiceImpl implements ICommonService {
return
result
;
return
result
;
}
}
@Override
public
List
<
EquipmentCategoryDto
>
equipmentClassificationNoPipeline
(
String
type
)
{
List
<
EquipmentCategoryDto
>
categoryList
=
equipmentCategoryMapper
.
selectClassifyNoStart7And8
();
List
<
EquipmentCategoryDto
>
result
=
Collections
.
emptyList
();
switch
(
type
)
{
case
"1"
:
result
=
categoryList
.
stream
().
filter
(
category
->
Pattern
.
compile
(
"^[^\\D0]*000$"
).
matcher
(
category
.
getCode
()).
matches
()).
collect
(
Collectors
.
toList
());
break
;
case
"2"
:
result
=
categoryList
.
stream
().
filter
(
category
->
Pattern
.
compile
(
"^[^\\D0]*00$"
).
matcher
(
category
.
getCode
()).
matches
()).
collect
(
Collectors
.
toList
());
break
;
case
"3"
:
result
=
categoryList
.
stream
().
filter
(
category
->
Pattern
.
compile
(
"^[^\\D0]*0$"
).
matcher
(
category
.
getCode
()).
matches
()).
collect
(
Collectors
.
toList
());
break
;
}
return
result
;
}
@Override
public
List
<
EquipmentCategoryDto
>
getEquDefineByParentId
(
String
parentId
)
{
return
equipmentCategoryMapper
.
getEquDefineByParentId
(
parentId
);
}
/**
/**
* 排序 :页面列表排序功能支持,将 "字段,ascend" 或 "字段,descend" 转化为对应JSONObject
* 排序 :页面列表排序功能支持,将 "字段,ascend" 或 "字段,descend" 转化为对应JSONObject
...
...
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/IdxBizJgRegisterInfoServiceImpl.java
View file @
f4ddd84b
...
@@ -392,7 +392,7 @@ public class IdxBizJgRegisterInfoServiceImpl extends BaseService<IdxBizJgRegiste
...
@@ -392,7 +392,7 @@ public class IdxBizJgRegisterInfoServiceImpl extends BaseService<IdxBizJgRegiste
String
dataSource
=
(
String
)
equipmentInfoForm
.
get
(
DATA_SOURCE
);
String
dataSource
=
(
String
)
equipmentInfoForm
.
get
(
DATA_SOURCE
);
String
equCategory
=
(
String
)
equipmentInfoForm
.
get
(
EQU_CATEGORY
);
String
equCategory
=
(
String
)
equipmentInfoForm
.
get
(
EQU_CATEGORY
);
//管道添加设备
//管道添加设备
if
(
"8300"
.
equals
(
equCategory
))
{
if
(
PipelineEnum
.
INDUSTRIAL_PIPELINE
.
getCode
()
.
equals
(
equCategory
))
{
return
this
.
pipelineEquipCreateOrUpdate
(
paramMap
);
return
this
.
pipelineEquipCreateOrUpdate
(
paramMap
);
}
}
if
(
dataSource
.
contains
(
"black"
)){
if
(
dataSource
.
contains
(
"black"
)){
...
...
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/JgUseRegistrationServiceImpl.java
View file @
f4ddd84b
...
@@ -1079,6 +1079,7 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
...
@@ -1079,6 +1079,7 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
IdxBizJgProjectContraption
jgProjectContraption
=
jgProjectContraptionService
.
getById
(
jgUseRegistration
.
getProjectContraptionId
());
IdxBizJgProjectContraption
jgProjectContraption
=
jgProjectContraptionService
.
getById
(
jgUseRegistration
.
getProjectContraptionId
());
jgUseRegistration
.
setProjectContraption
(
jgProjectContraption
.
getProjectContraption
());
jgUseRegistration
.
setProjectContraption
(
jgProjectContraption
.
getProjectContraption
());
jgProjectContraption
.
setUseRegistrationCode
(
jgUseRegistration
.
getUseRegistrationCode
());
jgProjectContraption
.
setUseRegistrationCode
(
jgUseRegistration
.
getUseRegistrationCode
());
jgProjectContraption
.
setUseDate
(
String
.
valueOf
(
jgUseRegistration
.
getAuditPassDate
()));
jgProjectContraptionService
.
updateById
(
jgProjectContraption
);
jgProjectContraptionService
.
updateById
(
jgProjectContraption
);
}
}
}
}
...
...
amos-boot-system-tzs/amos-boot-module-ymt/amos-boot-module-ymt-api/src/main/java/com/yeejoin/amos/boot/module/ymt/api/dto/IdxBizJgProjectContraptionDto.java
View file @
f4ddd84b
...
@@ -123,4 +123,7 @@ public class IdxBizJgProjectContraptionDto extends BaseDto {
...
@@ -123,4 +123,7 @@ public class IdxBizJgProjectContraptionDto extends BaseDto {
@ApiModelProperty
(
"设备代码"
)
@ApiModelProperty
(
"设备代码"
)
private
String
equCode
;
private
String
equCode
;
@ApiModelProperty
(
"投入日期"
)
private
String
useDate
;
}
}
amos-boot-system-tzs/amos-boot-module-ymt/amos-boot-module-ymt-api/src/main/java/com/yeejoin/amos/boot/module/ymt/api/entity/IdxBizJgProjectContraption.java
View file @
f4ddd84b
...
@@ -256,4 +256,10 @@ public class IdxBizJgProjectContraption extends BaseEntity {
...
@@ -256,4 +256,10 @@ public class IdxBizJgProjectContraption extends BaseEntity {
*/
*/
@TableField
(
"equ_code"
)
@TableField
(
"equ_code"
)
private
String
equCode
;
private
String
equCode
;
/**
* 投入日期
*/
@TableField
(
"USE_DATE"
)
private
String
useDate
;
}
}
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 @
f4ddd84b
...
@@ -23,9 +23,12 @@ import java.util.Map;
...
@@ -23,9 +23,12 @@ import java.util.Map;
@Mapper
@Mapper
public
interface
EquipmentCategoryMapper
extends
BaseMapper
<
EquipmentCategory
>
{
public
interface
EquipmentCategoryMapper
extends
BaseMapper
<
EquipmentCategory
>
{
@Select
(
"SELECT * FROM tz_equipment_category WHERE code NOT LIKE '7%'
AND code NOT LIKE '8%'
ORDER BY parent_id"
)
@Select
(
"SELECT * FROM tz_equipment_category WHERE code NOT LIKE '7%' ORDER BY parent_id"
)
List
<
EquipmentCategoryDto
>
selectClassifyNoStart7
();
List
<
EquipmentCategoryDto
>
selectClassifyNoStart7
();
@Select
(
"SELECT * FROM tz_equipment_category WHERE code NOT LIKE '7%' AND code NOT LIKE '8%' ORDER BY parent_id"
)
List
<
EquipmentCategoryDto
>
selectClassifyNoStart7And8
();
@Select
(
"select * from tz_equipment_category where code in('1000','2000','3000','4000','5000','6000','8000','9000')"
)
@Select
(
"select * from tz_equipment_category where code in('1000','2000','3000','4000','5000','6000','8000','9000')"
)
List
<
EquipmentCategoryDto
>
selectClassify
();
List
<
EquipmentCategoryDto
>
selectClassify
();
...
@@ -95,5 +98,7 @@ public interface EquipmentCategoryMapper extends BaseMapper<EquipmentCategory> {
...
@@ -95,5 +98,7 @@ public interface EquipmentCategoryMapper extends BaseMapper<EquipmentCategory> {
List
<
String
>
selectXiXianNew
();
List
<
String
>
selectXiXianNew
();
@Select
(
"SELECT * FROM tz_equipment_category WHERE parent_id = #{parentId}"
)
List
<
EquipmentCategoryDto
>
getEquDefineByParentId
(
String
parentId
);
}
}
amos-boot-system-tzs/amos-boot-module-ymt/amos-boot-module-ymt-api/src/main/resources/mapper/IdxBizJgProjectContraptionMapper.xml
View file @
f4ddd84b
...
@@ -44,7 +44,8 @@
...
@@ -44,7 +44,8 @@
SUPERVISORY_CODE,
SUPERVISORY_CODE,
PROVINCE_NAME,
PROVINCE_NAME,
DATA_SOURCE,
DATA_SOURCE,
USE_UNIT_NAME
USE_UNIT_NAME,
USE_DATE
FROM
FROM
IDX_BIZ_JG_PROJECT_CONTRAPTION ibjpc
IDX_BIZ_JG_PROJECT_CONTRAPTION ibjpc
WHERE
WHERE
...
...
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