feat: 企标临时授权记录人员改为模糊搜索
This commit is contained in:
+5
-7
@@ -56,12 +56,17 @@
|
|||||||
laws_enterprise_standard_auth_user
|
laws_enterprise_standard_auth_user
|
||||||
) AS auth
|
) AS auth
|
||||||
LEFT JOIN laws_enterprise_standard AS es ON auth.standard_id = es.id
|
LEFT JOIN laws_enterprise_standard AS es ON auth.standard_id = es.id
|
||||||
|
LEFT JOIN sys_user AS u ON u.id = auth.auth_user
|
||||||
WHERE
|
WHERE
|
||||||
es.del_flag = 0
|
es.del_flag = 0
|
||||||
<!--企标编号-->
|
<!--企标编号-->
|
||||||
<if test="param.standardNumber != null and param.standardNumber != ''">
|
<if test="param.standardNumber != null and param.standardNumber != ''">
|
||||||
AND es.standard_number LIKE CONCAT('%',#{param.standardNumber},'%')
|
AND es.standard_number LIKE CONCAT('%',#{param.standardNumber},'%')
|
||||||
</if>
|
</if>
|
||||||
|
<!--企标编号-->
|
||||||
|
<if test="param.authUser != null and param.authUser != ''">
|
||||||
|
AND CONCAT(u.realname, '(', u.username, ')') LIKE CONCAT('%',#{param.authUser},'%')
|
||||||
|
</if>
|
||||||
<!--授权到期日期-->
|
<!--授权到期日期-->
|
||||||
<if test="param.startAuthExpireDate != null and param.endAuthExpireDate != ''">
|
<if test="param.startAuthExpireDate != null and param.endAuthExpireDate != ''">
|
||||||
AND auth.auth_expire_date BETWEEN #{param.startAuthExpireDate} AND #{param.endAuthExpireDate}
|
AND auth.auth_expire_date BETWEEN #{param.startAuthExpireDate} AND #{param.endAuthExpireDate}
|
||||||
@@ -73,13 +78,6 @@
|
|||||||
#{item}
|
#{item}
|
||||||
</foreach>
|
</foreach>
|
||||||
</if>
|
</if>
|
||||||
<!--授权人员-->
|
|
||||||
<if test="param.authUserList != null and param.authUserList.size() > 0">
|
|
||||||
AND auth.auth_user IN
|
|
||||||
<foreach item="item" index="index" collection="param.authUserList" open="(" separator="," close=")">
|
|
||||||
#{item}
|
|
||||||
</foreach>
|
|
||||||
</if>
|
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
</mapper>
|
</mapper>
|
||||||
|
|||||||
-9
@@ -66,8 +66,6 @@ public class TempAuthRecordQueryDto {
|
|||||||
@ApiModelProperty(value = "标准号")
|
@ApiModelProperty(value = "标准号")
|
||||||
private String standardNumber;
|
private String standardNumber;
|
||||||
|
|
||||||
private List<String> authUserList;
|
|
||||||
|
|
||||||
private List<String> authDeptList;
|
private List<String> authDeptList;
|
||||||
|
|
||||||
public void setAuthDept(String authDept) {
|
public void setAuthDept(String authDept) {
|
||||||
@@ -76,11 +74,4 @@ public class TempAuthRecordQueryDto {
|
|||||||
this.authDeptList = Arrays.asList(authDept.split(","));
|
this.authDeptList = Arrays.asList(authDept.split(","));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setAuthUser(String authUser) {
|
|
||||||
this.authUser = authUser;
|
|
||||||
if (StrUtil.isNotBlank(authUser)) {
|
|
||||||
this.authUserList = Arrays.asList(authUser.split(","));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user