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
5de5edc8
Commit
5de5edc8
authored
Sep 14, 2021
by
高建强
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
item:监督检查业检查项关系分页接口新增
parent
c35a4647
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
70 additions
and
58 deletions
+70
-58
RoutePointItemController.java
...rvision/business/controller/RoutePointItemController.java
+2
-2
RoutePointItemMapper.java
...supervision/business/dao/mapper/RoutePointItemMapper.java
+2
-2
InputItemPageParam.java
...n/amos/supervision/business/param/InputItemPageParam.java
+18
-0
RoutePointItemServiceImpl.java
...sion/business/service/impl/RoutePointItemServiceImpl.java
+4
-4
IRoutePointItemService.java
...vision/business/service/intfc/IRoutePointItemService.java
+2
-2
InputItemParamUtil.java
...in/amos/supervision/business/util/InputItemParamUtil.java
+4
-0
RoutePointItemVo.java
...eejoin/amos/supervision/business/vo/RoutePointItemVo.java
+5
-0
mt-1.0.0.xml
...-supervision/src/main/resources/db/changelog/mt-1.0.0.xml
+12
-0
dbTemplate_check.xml
...rvision/src/main/resources/db/mapper/dbTemplate_check.xml
+6
-0
routePointItemMapper.xml
...ion/src/main/resources/db/mapper/routePointItemMapper.xml
+15
-48
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-supervision-biz/src/main/java/com/yeejoin/amos/supervision/business/controller/RoutePointItemController.java
View file @
5de5edc8
...
@@ -6,7 +6,7 @@ import com.yeejoin.amos.supervision.business.service.intfc.IRoutePointItemServic
...
@@ -6,7 +6,7 @@ import com.yeejoin.amos.supervision.business.service.intfc.IRoutePointItemServic
import
com.yeejoin.amos.supervision.business.util.CommonResponse
;
import
com.yeejoin.amos.supervision.business.util.CommonResponse
;
import
com.yeejoin.amos.supervision.business.util.CommonResponseUtil
;
import
com.yeejoin.amos.supervision.business.util.CommonResponseUtil
;
import
com.yeejoin.amos.supervision.business.util.InputItemParamUtil
;
import
com.yeejoin.amos.supervision.business.util.InputItemParamUtil
;
import
com.yeejoin.amos.supervision.business.vo.
RoutePoin
tItemVo
;
import
com.yeejoin.amos.supervision.business.vo.
Inpu
tItemVo
;
import
com.yeejoin.amos.supervision.core.common.request.CommonPageable
;
import
com.yeejoin.amos.supervision.core.common.request.CommonPageable
;
import
com.yeejoin.amos.supervision.core.common.request.CommonRequest
;
import
com.yeejoin.amos.supervision.core.common.request.CommonRequest
;
import
com.yeejoin.amos.supervision.dao.entity.Plan
;
import
com.yeejoin.amos.supervision.dao.entity.Plan
;
...
@@ -88,7 +88,7 @@ public class RoutePointItemController extends AbstractBaseController {
...
@@ -88,7 +88,7 @@ public class RoutePointItemController extends AbstractBaseController {
HashMap
<
String
,
Object
>
paramMap
=
new
HashMap
<
String
,
Object
>();
HashMap
<
String
,
Object
>
paramMap
=
new
HashMap
<
String
,
Object
>();
paramMap
.
put
(
"orgCode"
,
loginOrgCode
);
paramMap
.
put
(
"orgCode"
,
loginOrgCode
);
InputItemPageParam
criterias
=
InputItemParamUtil
.
fillInputItemPageParam
(
queryRequests
,
pageable
,
paramMap
);
InputItemPageParam
criterias
=
InputItemParamUtil
.
fillInputItemPageParam
(
queryRequests
,
pageable
,
paramMap
);
Page
<
RoutePoin
tItemVo
>
page
=
routePointItemService
.
queryPage
(
criterias
);
Page
<
Inpu
tItemVo
>
page
=
routePointItemService
.
queryPage
(
criterias
);
return
CommonResponseUtil
.
success
(
page
);
return
CommonResponseUtil
.
success
(
page
);
}
}
}
}
amos-boot-module/amos-boot-module-biz/amos-boot-module-supervision-biz/src/main/java/com/yeejoin/amos/supervision/business/dao/mapper/RoutePointItemMapper.java
View file @
5de5edc8
...
@@ -2,7 +2,7 @@ package com.yeejoin.amos.supervision.business.dao.mapper;
...
@@ -2,7 +2,7 @@ package com.yeejoin.amos.supervision.business.dao.mapper;
import
com.yeejoin.amos.supervision.business.param.InputItemPageParam
;
import
com.yeejoin.amos.supervision.business.param.InputItemPageParam
;
import
com.yeejoin.amos.supervision.business.vo.
RoutePoin
tItemVo
;
import
com.yeejoin.amos.supervision.business.vo.
Inpu
tItemVo
;
import
com.yeejoin.amos.supervision.dao.entity.RoutePointItem
;
import
com.yeejoin.amos.supervision.dao.entity.RoutePointItem
;
import
java.util.List
;
import
java.util.List
;
...
@@ -15,5 +15,5 @@ public interface RoutePointItemMapper extends BaseMapper{
...
@@ -15,5 +15,5 @@ public interface RoutePointItemMapper extends BaseMapper{
long
queryPageCount
(
InputItemPageParam
param
);
long
queryPageCount
(
InputItemPageParam
param
);
List
<
RoutePoin
tItemVo
>
queryPage
(
InputItemPageParam
param
);
List
<
Inpu
tItemVo
>
queryPage
(
InputItemPageParam
param
);
}
}
amos-boot-module/amos-boot-module-biz/amos-boot-module-supervision-biz/src/main/java/com/yeejoin/amos/supervision/business/param/InputItemPageParam.java
View file @
5de5edc8
...
@@ -13,6 +13,8 @@ public class InputItemPageParam extends CommonPageable {
...
@@ -13,6 +13,8 @@ public class InputItemPageParam extends CommonPageable {
private
String
itemNo
;
private
String
itemNo
;
private
String
checkTypeId
;
private
String
checkTypeId
;
private
String
itemStart
;
private
String
itemStart
;
private
Long
planId
;
private
String
itemTypeClassifyIds
;
/**
/**
* 机构
* 机构
*/
*/
...
@@ -111,4 +113,20 @@ public class InputItemPageParam extends CommonPageable {
...
@@ -111,4 +113,20 @@ public class InputItemPageParam extends CommonPageable {
public
void
setItemStart
(
String
itemStart
)
{
public
void
setItemStart
(
String
itemStart
)
{
this
.
itemStart
=
itemStart
;
this
.
itemStart
=
itemStart
;
}
}
public
Long
getPlanId
()
{
return
planId
;
}
public
void
setPlanId
(
Long
planId
)
{
this
.
planId
=
planId
;
}
public
String
getItemTypeClassifyIds
()
{
return
itemTypeClassifyIds
;
}
public
void
setItemTypeClassifyIds
(
String
itemTypeClassifyIds
)
{
this
.
itemTypeClassifyIds
=
itemTypeClassifyIds
;
}
}
}
amos-boot-module/amos-boot-module-biz/amos-boot-module-supervision-biz/src/main/java/com/yeejoin/amos/supervision/business/service/impl/RoutePointItemServiceImpl.java
View file @
5de5edc8
...
@@ -8,7 +8,7 @@ import com.yeejoin.amos.supervision.business.dao.repository.IRoutePointDao;
...
@@ -8,7 +8,7 @@ import com.yeejoin.amos.supervision.business.dao.repository.IRoutePointDao;
import
com.yeejoin.amos.supervision.business.dao.repository.IRoutePointItemDao
;
import
com.yeejoin.amos.supervision.business.dao.repository.IRoutePointItemDao
;
import
com.yeejoin.amos.supervision.business.param.InputItemPageParam
;
import
com.yeejoin.amos.supervision.business.param.InputItemPageParam
;
import
com.yeejoin.amos.supervision.business.service.intfc.IRoutePointItemService
;
import
com.yeejoin.amos.supervision.business.service.intfc.IRoutePointItemService
;
import
com.yeejoin.amos.supervision.business.vo.
RoutePoin
tItemVo
;
import
com.yeejoin.amos.supervision.business.vo.
Inpu
tItemVo
;
import
com.yeejoin.amos.supervision.common.enums.PlanStatusEnum
;
import
com.yeejoin.amos.supervision.common.enums.PlanStatusEnum
;
import
com.yeejoin.amos.supervision.dao.entity.InputItem
;
import
com.yeejoin.amos.supervision.dao.entity.InputItem
;
import
com.yeejoin.amos.supervision.dao.entity.Plan
;
import
com.yeejoin.amos.supervision.dao.entity.Plan
;
...
@@ -78,10 +78,10 @@ public class RoutePointItemServiceImpl implements IRoutePointItemService {
...
@@ -78,10 +78,10 @@ public class RoutePointItemServiceImpl implements IRoutePointItemService {
}
}
@Override
@Override
public
Page
<
RoutePoin
tItemVo
>
queryPage
(
InputItemPageParam
param
)
{
public
Page
<
Inpu
tItemVo
>
queryPage
(
InputItemPageParam
param
)
{
long
total
=
routePointItemMapper
.
queryPageCount
(
param
);
long
total
=
routePointItemMapper
.
queryPageCount
(
param
);
List
<
RoutePoin
tItemVo
>
content
=
routePointItemMapper
.
queryPage
(
param
);
List
<
Inpu
tItemVo
>
content
=
routePointItemMapper
.
queryPage
(
param
);
Page
<
RoutePointItemVo
>
result
=
new
PageImpl
<
RoutePoin
tItemVo
>(
content
,
param
,
total
);
Page
<
InputItemVo
>
result
=
new
PageImpl
<
Inpu
tItemVo
>(
content
,
param
,
total
);
return
result
;
return
result
;
}
}
}
}
amos-boot-module/amos-boot-module-biz/amos-boot-module-supervision-biz/src/main/java/com/yeejoin/amos/supervision/business/service/intfc/IRoutePointItemService.java
View file @
5de5edc8
package
com
.
yeejoin
.
amos
.
supervision
.
business
.
service
.
intfc
;
package
com
.
yeejoin
.
amos
.
supervision
.
business
.
service
.
intfc
;
import
com.yeejoin.amos.supervision.business.param.InputItemPageParam
;
import
com.yeejoin.amos.supervision.business.param.InputItemPageParam
;
import
com.yeejoin.amos.supervision.business.vo.
RoutePoin
tItemVo
;
import
com.yeejoin.amos.supervision.business.vo.
Inpu
tItemVo
;
import
com.yeejoin.amos.supervision.dao.entity.Plan
;
import
com.yeejoin.amos.supervision.dao.entity.Plan
;
import
com.yeejoin.amos.supervision.dao.entity.RoutePointItem
;
import
com.yeejoin.amos.supervision.dao.entity.RoutePointItem
;
import
org.springframework.data.domain.Page
;
import
org.springframework.data.domain.Page
;
...
@@ -12,5 +12,5 @@ public interface IRoutePointItemService {
...
@@ -12,5 +12,5 @@ public interface IRoutePointItemService {
List
<
RoutePointItem
>
addRoutePointItemList
(
Plan
plan
,
List
<
Long
>
inputItemIds
,
Boolean
status
,
String
userId
);
List
<
RoutePointItem
>
addRoutePointItemList
(
Plan
plan
,
List
<
Long
>
inputItemIds
,
Boolean
status
,
String
userId
);
Page
<
RoutePoin
tItemVo
>
queryPage
(
InputItemPageParam
criterias
);
Page
<
Inpu
tItemVo
>
queryPage
(
InputItemPageParam
criterias
);
}
}
amos-boot-module/amos-boot-module-biz/amos-boot-module-supervision-biz/src/main/java/com/yeejoin/amos/supervision/business/util/InputItemParamUtil.java
View file @
5de5edc8
...
@@ -60,6 +60,10 @@ public class InputItemParamUtil {
...
@@ -60,6 +60,10 @@ public class InputItemParamUtil {
param
.
setCheckTypeId
(
toString
(
queryRequests
.
get
(
i
).
getValue
()));
param
.
setCheckTypeId
(
toString
(
queryRequests
.
get
(
i
).
getValue
()));
}
else
if
(
"itemStart"
.
equals
(
name
))
{
}
else
if
(
"itemStart"
.
equals
(
name
))
{
param
.
setItemStart
(
toString
(
queryRequests
.
get
(
i
).
getValue
()));
param
.
setItemStart
(
toString
(
queryRequests
.
get
(
i
).
getValue
()));
}
else
if
(
"planId"
.
equals
(
name
))
{
param
.
setPlanId
(
Long
.
parseLong
(
queryRequests
.
get
(
i
).
getValue
().
toString
()));
}
else
if
(
"itemTypeClassifyIds"
.
equals
(
name
))
{
param
.
setItemTypeClassifyIds
(
toString
(
queryRequests
.
get
(
i
).
getValue
()));
}
}
}
}
}
}
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-supervision-biz/src/main/java/com/yeejoin/amos/supervision/business/vo/RoutePointItemVo.java
View file @
5de5edc8
...
@@ -35,6 +35,11 @@ public class RoutePointItemVo {
...
@@ -35,6 +35,11 @@ public class RoutePointItemVo {
private
String
userName
;
private
String
userName
;
/**
/**
* 责任单位ID
*/
private
String
companyId
;
/**
* 责任单位
* 责任单位
*/
*/
private
String
companyName
;
private
String
companyName
;
...
...
amos-boot-system-supervision/src/main/resources/db/changelog/mt-1.0.0.xml
View file @
5de5edc8
...
@@ -249,4 +249,15 @@
...
@@ -249,4 +249,15 @@
ALTER TABLE `p_route_point_item` ADD COLUMN `plan_id` bigint(20) DEFAULT NULL COMMENT '计划ID';
ALTER TABLE `p_route_point_item` ADD COLUMN `plan_id` bigint(20) DEFAULT NULL COMMENT '计划ID';
</sql>
</sql>
</changeSet>
</changeSet>
<changeSet
author=
"gaojianqiang"
id=
"1630567666-4"
>
<preConditions
onFail=
"MARK_RAN"
>
<not>
<columnExists
tableName=
"p_input_item"
columnName=
"item_type_classify_ids"
/>
</not>
</preConditions>
<comment>
p_input_item ADD COLUMN item_type_classify_ids
</comment>
<sql>
ALTER TABLE `p_input_item` ADD COLUMN `item_type_classify_ids` varchar(64) DEFAULT NULL COMMENT '检查类别IDS';
</sql>
</changeSet>
</databaseChangeLog>
</databaseChangeLog>
\ No newline at end of file
amos-boot-system-supervision/src/main/resources/db/mapper/dbTemplate_check.xml
View file @
5de5edc8
...
@@ -2026,6 +2026,11 @@
...
@@ -2026,6 +2026,11 @@
<if
test=
"orgCode != null"
>
<if
test=
"orgCode != null"
>
c.org_code = #{orgCode}
c.org_code = #{orgCode}
</if>
</if>
ORDER BY c.check_time DESC
<choose>
<when
test=
"pageSize==-1"
></when>
<when
test=
"pageSize!=-1"
>
limit #{offset},#{pageSize}
</when>
</choose>
</where>
</where>
</select>
</select>
</mapper>
</mapper>
\ No newline at end of file
amos-boot-system-supervision/src/main/resources/db/mapper/routePointItemMapper.xml
View file @
5de5edc8
...
@@ -46,59 +46,26 @@
...
@@ -46,59 +46,26 @@
<!--统计 -->
<!--统计 -->
<select
id=
"queryPageCount"
resultType=
"long"
>
<select
id=
"queryPageCount"
resultType=
"long"
>
SELECT
SELECT
count(1) AS total_num
COUNT(1)
FROM
FROM
p_input_item a
p_route_point_item pi
where a.is_delete = '0' and a.input_type != '1'
LEFT JOIN p_input_item i ON i.id = pi.input_item_id
<if
test=
"name!=null"
>
and a.name like concat(concat("%",#{name}),"%")
</if>
<if
test=
"name!=null"
>
and i.name like concat(concat("%",#{name}),"%")
</if>
<if
test=
"itemNo!=null"
>
and a.item_no like concat(concat("%",#{itemNo}),"%")
</if>
<if
test=
"itemTypeClassifyIds != null and itemTypeClassifyIds != ''"
>
and i.item_type_classify_ids = #{itemTypeClassifyIds}
</if>
<if
test=
"inputClassify != null"
>
and a.input_classify = #{inputClassify}
</if>
<if
test=
"planId!=null"
>
and pi.plan_id = #{planId}
</if>
<if
test=
"itemType!=null"
>
and a.item_Type = #{itemType}
</if>
<if
test=
"orgCode!=null"
>
and i.org_Code = #{orgCode}
</if>
<if
test=
"orgCode!=null"
>
and a.org_Code = #{orgCode}
</if>
order by a.id desc
</select>
</select>
<!--查询 -->
<!--查询 -->
<select
id=
"queryPage"
resultMap=
"com.yeejoin.amos.supervision.business.vo.
RoutePoin
tItemVo"
>
<select
id=
"queryPage"
resultMap=
"com.yeejoin.amos.supervision.business.vo.
Inpu
tItemVo"
>
SELECT
SELECT
a.id,
i.*
a.NAME,
a.item_no,
a.item_type,
a.is_must,
a.default_value,
a.is_score,
b.NAME AS catalog_name,
a.remark,
a.LEVEL,
a.risk_desc,
a.maintenance_content,
a.test_requirement,
a.check_method,
a.create_date,
a.input_classify,
a.check_type,
a.item_parent,
a.item_classify,
a.item_type_classify,
a.item_level,
a.item_start,
IF
( i.input_item_id IS NULL, 0, 1 ) AS ext
FROM
FROM
p_input_item a
p_route_point_item pi
LEFT JOIN p_catalog_tree b ON a.catalog_id = b.id
LEFT JOIN p_input_item i ON i.id = pi.input_item_id
LEFT JOIN p_route_point_item i ON a.id = i.input_item_id
<if
test=
"name!=null"
>
and i.name like concat(concat("%",#{name}),"%")
</if>
WHERE
<if
test=
"itemTypeClassifyIds != null and itemTypeClassifyIds != ''"
>
and i.item_type_classify_ids = #{itemTypeClassifyIds}
</if>
a.is_delete = '0'
<if
test=
"planId!=null"
>
and pi.plan_id = #{planId}
</if>
AND a.input_type != '1'
<if
test=
"orgCode!=null"
>
and i.org_Code = #{orgCode}
</if>
<if
test=
"name!=null"
>
and a.name like concat(concat("%",#{name}),"%")
</if>
<if
test=
"itemNo!=null"
>
and a.item_no like concat(concat("%",#{itemNo}),"%")
</if>
<if
test=
"itemType!=null"
>
and a.item_Type = #{itemType}
</if>
<if
test=
"checkTypeId!=null"
>
and a.check_type_Val = #{checkTypeId}
</if>
<if
test=
"itemStart!=null"
>
and a.item_start = #{itemStart}
</if>
<!-- <if test="orgCode!=null"> and a.org_Code = #{orgCode}</if>-->
<if
test=
"itemClassify != null"
>
and a.item_classify = #{itemClassify}
</if>
order by a.id desc
<choose>
<choose>
<when
test=
"pageSize==-1"
></when>
<when
test=
"pageSize==-1"
></when>
<when
test=
"pageSize!=-1"
>
limit #{offset},#{pageSize}
</when>
<when
test=
"pageSize!=-1"
>
limit #{offset},#{pageSize}
</when>
...
...
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