Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pms-ci-test
概览
概览
详情
活动
周期分析
版本库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
test-ci
pms-ci-test
Commits
f96db5c3
提交
f96db5c3
authored
8月 22, 2023
作者:
zhenjie
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'develop' of
ssh://git.mmcuav.cn:8222/iuav/pms
into develop
上级
1111b849
b783d735
隐藏空白字符变更
内嵌
并排
正在显示
7 个修改的文件
包含
60 行增加
和
59 行删除
+60
-59
kustomization.yaml
kustomization/overlays/dev/kustomization.yaml
+1
-1
IndustryTypeController.java
...mmc/pms/controller/inspection/IndustryTypeController.java
+9
-9
IndustryTypeDao.java
...main/java/com/mmc/pms/dao/inspection/IndustryTypeDao.java
+1
-1
IndustryTypeService.java
...a/com/mmc/pms/service/inspection/IndustryTypeService.java
+2
-2
IndustryTypeServiceImpl.java
.../pms/service/inspection/impl/IndustryTypeServiceImpl.java
+4
-7
IndustryTypeDao.xml
src/main/resources/mapper/inspection/IndustryTypeDao.xml
+41
-37
not-check.yml
src/main/resources/not-check.yml
+2
-2
没有找到文件。
kustomization/overlays/dev/kustomization.yaml
浏览文件 @
f96db5c3
...
...
@@ -18,4 +18,4 @@ patches:
images
:
-
name
:
REGISTRY/NAMESPACE/IMAGE:TAG
newName
:
mmc-registry.cn-shenzhen.cr.aliyuncs.com/sharefly-dev/pms
newTag
:
98073d9d0ef617aec952c289956a1f702a2a5648
newTag
:
a932839ebf99deba86f3a426481ced062cf0bec6
src/main/java/com/mmc/pms/controller/inspection/IndustryTypeController.java
浏览文件 @
f96db5c3
...
...
@@ -30,49 +30,49 @@ public class IndustryTypeController {
@ApiOperation
(
value
=
"新增行业"
)
@ApiResponses
({
@ApiResponse
(
code
=
200
,
message
=
"OK"
,
response
=
ResultBody
.
class
)})
@PostMapping
(
"insert"
)
public
ResultBody
insert
(
@RequestBody
IndustryTypeVO
industryTypeVO
){
public
ResultBody
insert
(
@RequestBody
IndustryTypeVO
industryTypeVO
)
{
return
industryTypeService
.
insert
(
industryTypeVO
);
}
@ApiOperation
(
value
=
"修改行业"
)
@ApiResponses
({
@ApiResponse
(
code
=
200
,
message
=
"OK"
,
response
=
ResultBody
.
class
)})
@PostMapping
(
"update"
)
public
ResultBody
update
(
@RequestBody
IndustryTypeVO
industryTypeVO
){
public
ResultBody
update
(
@RequestBody
IndustryTypeVO
industryTypeVO
)
{
return
industryTypeService
.
update
(
industryTypeVO
);
}
@ApiOperation
(
value
=
"删除行业"
)
@ApiResponses
({
@ApiResponse
(
code
=
200
,
message
=
"OK"
,
response
=
ResultBody
.
class
)})
@GetMapping
(
"remove"
)
public
ResultBody
remove
(
@RequestParam
Integer
id
){
public
ResultBody
remove
(
@RequestParam
Integer
id
)
{
return
industryTypeService
.
remove
(
id
);
}
@ApiOperation
(
value
=
"一级行业列表"
)
@ApiResponses
({
@ApiResponse
(
code
=
200
,
message
=
"OK"
,
response
=
ResultBody
.
class
)})
@PostMapping
(
"listPages"
)
public
ResultBody
<
IndustryTypeDTO
>
listPages
(
@Validated
(
value
=
{
Page
.
class
})
@RequestBody
IndustryTypeQO
industryTypeQO
){
public
ResultBody
<
IndustryTypeDTO
>
listPages
(
@Validated
(
value
=
{
Page
.
class
})
@RequestBody
IndustryTypeQO
industryTypeQO
)
{
return
industryTypeService
.
listPages
(
industryTypeQO
);
}
@ApiOperation
(
value
=
"根据一级行业id查询二级服务列表"
)
@ApiResponses
({
@ApiResponse
(
code
=
200
,
message
=
"OK"
,
response
=
IndustryTypeDTO
.
class
)})
@GetMapping
(
"listInspectionsByIndustryTypeId"
)
public
ResultBody
<
IndustryTypeDTO
>
listInspectionsByIndustryTypeId
(
@RequestParam
Integer
id
){
public
ResultBody
<
IndustryTypeDTO
>
listInspectionsByIndustryTypeId
(
@RequestParam
Integer
id
)
{
return
industryTypeService
.
listInspectionsByIndustryTypeId
(
id
);
}
@ApiOperation
(
value
=
"一级行业详情-全部"
)
@ApiResponses
({
@ApiResponse
(
code
=
200
,
message
=
"OK"
,
response
=
IndustryTypeDTO
.
class
)})
@GetMapping
(
"getIndustryTypeById"
)
public
ResultBody
<
IndustryTypeDTO
>
getIndustryTypeById
(
@RequestParam
Integer
id
)
{
public
IndustryTypeDTO
getIndustryTypeById
(
@RequestParam
Integer
id
)
{
return
industryTypeService
.
getIndustryTypeById
(
id
);
}
@ApiOperation
(
value
=
"一级行业列表-全部"
)
@ApiResponses
({
@ApiResponse
(
code
=
200
,
message
=
"OK"
,
response
=
List
.
class
)})
@
Pos
tMapping
(
"listIndustry"
)
public
List
<
IndustryTypeDTO
>
listIndustry
(
@Validated
(
value
=
{
Page
.
class
})
@RequestBody
IndustryTypeQO
industryTypeQO
)
{
return
industryTypeService
.
listIndustry
(
industryTypeQO
);
@
Ge
tMapping
(
"listIndustry"
)
public
List
<
IndustryTypeDTO
>
listIndustry
(
)
{
return
industryTypeService
.
listIndustry
();
}
}
src/main/java/com/mmc/pms/dao/inspection/IndustryTypeDao.java
浏览文件 @
f96db5c3
...
...
@@ -25,7 +25,7 @@ public interface IndustryTypeDao {
List
<
IndustryTypeDO
>
listPages
(
IndustryTypeQO
industryTypeQO
);
List
<
IndustryTypeDO
>
listIndustry
(
IndustryTypeQO
industryTypeQO
);
List
<
IndustryTypeDO
>
listIndustry
();
List
<
InspectionDO
>
listInspectionsByIndustryTypeIdId
(
Integer
industryTypeId
);
...
...
src/main/java/com/mmc/pms/service/inspection/IndustryTypeService.java
浏览文件 @
f96db5c3
...
...
@@ -22,7 +22,7 @@ public interface IndustryTypeService {
ResultBody
<
IndustryTypeDTO
>
listInspectionsByIndustryTypeId
(
Integer
id
);
ResultBody
<
IndustryTypeDTO
>
getIndustryTypeById
(
Integer
id
);
IndustryTypeDTO
getIndustryTypeById
(
Integer
id
);
List
<
IndustryTypeDTO
>
listIndustry
(
IndustryTypeQO
industryTypeQO
);
List
<
IndustryTypeDTO
>
listIndustry
();
}
src/main/java/com/mmc/pms/service/inspection/impl/IndustryTypeServiceImpl.java
浏览文件 @
f96db5c3
...
...
@@ -84,17 +84,14 @@ public class IndustryTypeServiceImpl implements IndustryTypeService {
}
@Override
public
ResultBody
<
IndustryTypeDTO
>
getIndustryTypeById
(
Integer
id
)
{
public
IndustryTypeDTO
getIndustryTypeById
(
Integer
id
)
{
IndustryTypeDO
industryTypeDO
=
industryTypeDao
.
getIndustryTypeById
(
id
);
if
(
industryTypeDO
==
null
)
{
return
ResultBody
.
success
();
}
return
ResultBody
.
success
(
industryTypeDO
.
buildIndustryTypeDTO
());
return
industryTypeDO
.
buildIndustryTypeDTO
();
}
@Override
public
List
<
IndustryTypeDTO
>
listIndustry
(
IndustryTypeQO
industryTypeQO
)
{
List
<
IndustryTypeDO
>
industryTypeDOS
=
industryTypeDao
.
listIndustry
(
industryTypeQO
);
public
List
<
IndustryTypeDTO
>
listIndustry
()
{
List
<
IndustryTypeDO
>
industryTypeDOS
=
industryTypeDao
.
listIndustry
();
if
(
CollectionUtils
.
isNotEmpty
(
industryTypeDOS
))
{
List
<
IndustryTypeDTO
>
industryTypeDTOS
=
industryTypeDOS
.
stream
().
map
(
IndustryTypeDO:
:
buildIndustryTypeDTO
).
collect
(
Collectors
.
toList
());
return
industryTypeDTOS
;
...
...
src/main/resources/mapper/inspection/IndustryTypeDao.xml
浏览文件 @
f96db5c3
...
...
@@ -18,38 +18,51 @@
</resultMap>
<select
id=
"listInspectionsByIndustryTypeIdId"
resultType=
"com.mmc.pms.entity.inspection.InspectionDO"
>
select ins.id , ins.inspection_no, ins.inspection_name, ins.industry_type_id, ins.inspection_img,
ins.inspection_description, ins.sale_state as ins_sale_state, ins.case_img, ins.case_video, ins.create_time
from inspection ins
where ins.is_deleted = 0 and ins.industry_type_id = #{industryTypeId} order by ins.id desc
select ins.id,
ins.inspection_no,
ins.inspection_name,
ins.industry_type_id,
ins.inspection_img,
ins.inspection_description,
ins.sale_state as ins_sale_state,
ins.case_img,
ins.case_video,
ins.create_time
from inspection ins
where ins.is_deleted = 0
and ins.industry_type_id = #{industryTypeId}
order by ins.id desc
</select>
<insert
id=
"insert"
parameterType=
"com.mmc.pms.entity.inspection.IndustryTypeDO"
keyProperty=
"id"
useGeneratedKeys=
"true"
>
<insert
id=
"insert"
parameterType=
"com.mmc.pms.entity.inspection.IndustryTypeDO"
keyProperty=
"id"
useGeneratedKeys=
"true"
>
insert into industry_type(type_name, type_img, description, sale_state, create_time)
values(#{typeName}, #{typeImg}, #{description}, #{saleState}, NOW())
values
(#{typeName}, #{typeImg}, #{description}, #{saleState}, NOW())
</insert>
<update
id=
"update"
parameterType=
"com.mmc.pms.entity.inspection.IndustryTypeDO"
>
<update
id=
"update"
parameterType=
"com.mmc.pms.entity.inspection.IndustryTypeDO"
>
update industry_type
<set>
<if
test=
"typeName != null"
>
<set>
<if
test=
"typeName != null"
>
type_name = #{typeName},
</if>
<if
test=
"typeImg != null"
>
type_img = #{typeImg},
</if>
<if
test=
"description != null"
>
description = #{description},
</if>
<if
test=
"saleState != null"
>
sale_state = #{saleState}
</if>
</set>
where id = #{id}
</if>
<if
test=
"typeImg != null"
>
type_img = #{typeImg},
</if>
<if
test=
"description != null"
>
description = #{description},
</if>
<if
test=
"saleState != null"
>
sale_state = #{saleState}
</if>
</set>
where id = #{id}
</update>
<update
id=
"remove"
>
update industry_type set is_deleted = 1 where id = #{id}
update industry_type
set is_deleted = 1
where id = #{id}
</update>
<select
id=
"countSameName"
resultType=
"java.lang.Integer"
>
...
...
@@ -65,7 +78,7 @@
<select
id=
"countListPages"
resultType=
"java.lang.Integer"
parameterType=
"com.mmc.pms.model.qo.IndustryTypeQO"
>
select count(*) from industry_type it
where it.is_deleted = 0
where it.is_deleted = 0
<if
test=
"id != null"
>
and it.id = #{id}
</if>
...
...
@@ -77,8 +90,8 @@
<select
id=
"listPages"
resultMap=
"industryTypeResMap"
parameterType=
"com.mmc.pms.model.qo.IndustryTypeQO"
>
select it.id, it.type_name, it.type_img, it.description, it.sale_state, it.is_deleted, it.create_time
from industry_type it
where it.is_deleted = 0
from industry_type it
where it.is_deleted = 0
<if
test=
"id != null"
>
and it.id = #{id}
</if>
...
...
@@ -92,19 +105,11 @@
<select
id=
"listIndustry"
resultType=
"com.mmc.pms.entity.inspection.IndustryTypeDO"
>
select it.id, it.type_name, it.type_img, it.description, it.sale_state, it.is_deleted, it.create_time
from industry_type it
where 1 = 1
<if
test=
"id != null"
>
and it.id = #{id}
</if>
<if
test=
"typeName != null"
>
and it.type_name like concat('%',#{typeName},'%')
</if>
order by it.id DESC
</select>
<select
id=
"getIndustryTypeById"
resultType=
"com.mmc.pms.entity.inspection.IndustryTypeDO"
>
select it.id, it.type_name, it.type_img, it.description, it.sale_state, it.is_deleted, it.create_time
from industry_type it
where it.id = #{id}
from industry_type it
where it.id = #{id}
</select>
</mapper>
\ No newline at end of file
</mapper>
src/main/resources/not-check.yml
浏览文件 @
f96db5c3
...
...
@@ -34,4 +34,5 @@ data-filter:
-
/pms/company-inspection/listAPPCompanyInspectionPage
-
/pms/company-inspection/getCompanyInspectionById
-
/pms/company-inspection/listInspectionPriceUnit
-
/pms/lease/goods/feignLeaseGoodsInfoByAddressId
\ No newline at end of file
-
/pms/lease/goods/feignLeaseGoodsInfoByAddressId
-
/pms/industry/listIndustry
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论