Commit 2a6e1a18 authored by 鲍德's avatar 鲍德

岗位巡查清单数据去重

parent 9cfb97a6
...@@ -107,7 +107,7 @@ public class CurrentRiskPostController extends BaseController ...@@ -107,7 +107,7 @@ public class CurrentRiskPostController extends BaseController
Long finalCurrentRiskPostId = currentRiskPostId; Long finalCurrentRiskPostId = currentRiskPostId;
list.forEach(vo ->{ list.forEach(vo ->{
//0 一岗一人 1 一岗多人 //0 一岗一人 1 一岗多人
if("1".equals(currentRiskPost.getType()) && Long.parseLong(userId) != vo.getUserId()){ if("1".equals(currentRiskPost.getPatrolType()) && Long.parseLong(userId) != vo.getUserId()){
return; return;
} }
CurrentRiskPostList currentRiskPostList = new CurrentRiskPostList(); CurrentRiskPostList currentRiskPostList = new CurrentRiskPostList();
......
...@@ -37,7 +37,7 @@ public class CurrentRiskPost extends BaseEntityClean ...@@ -37,7 +37,7 @@ public class CurrentRiskPost extends BaseEntityClean
private String riskPostName; private String riskPostName;
/** 巡查类型 */ /** 巡查类型 */
@Excel(name = "巡查类型") @Excel(name = "巡查类型 0 一岗一人 1 一岗多人")
private String patrolType; private String patrolType;
/** 岗位描述 */ /** 岗位描述 */
...@@ -57,8 +57,5 @@ public class CurrentRiskPost extends BaseEntityClean ...@@ -57,8 +57,5 @@ public class CurrentRiskPost extends BaseEntityClean
private String nickName; private String nickName;
@ApiModelProperty("0 一岗一人 1 一岗多人")
private String type;
private List<CurrentRiskPostListSaveVO> list; private List<CurrentRiskPostListSaveVO> list;
} }
...@@ -52,6 +52,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -52,6 +52,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="patrolType != null and patrolType != ''"> and a.patrol_type = #{patrolType}</if> <if test="patrolType != null and patrolType != ''"> and a.patrol_type = #{patrolType}</if>
<if test="sortNum != null "> and a.sort_num = #{sortNum}</if> <if test="sortNum != null "> and a.sort_num = #{sortNum}</if>
</where> </where>
GROUP BY a.current_risk_id
</select> </select>
<select id="selectCurrentRiskPostListById" parameterType="Long" resultMap="CurrentRiskPostListResult"> <select id="selectCurrentRiskPostListById" parameterType="Long" resultMap="CurrentRiskPostListResult">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment