feat: 临时授权记录-解除授权

This commit is contained in:
2023-12-12 18:44:22 +08:00
parent b38e805ffa
commit cdf48e19b3
2 changed files with 66 additions and 4 deletions
@@ -23,10 +23,60 @@
</sql>
<select id="tempAuthRecord" resultType="com.jero.modules.laws.standard.controller.TempAuthRecordQueryDto">
SELECT
auth.id AS Id,
auth.auth_user AS authUser,
auth.auth_dept AS authDept,
auth.standard_id AS standardId,
es.standard_number AS standardNumber,
auth.auth_expire_date AS authExpireDate
FROM
(
SELECT
id,
NULL AS auth_user,
auth_dept,
standard_id,
auth_expire_date
FROM
laws_enterprise_standard_auth_dept
WHERE
auth_expire_date IS NOT NULL
UNION
SELECT
id,
auth_user,
NULL AS auth_dept,
standard_id,
auth_expire_date
FROM
laws_enterprise_standard_auth_user
) AS auth
LEFT JOIN laws_enterprise_standard AS es ON auth.standard_id = es.id
WHERE
es.del_flag = 0
<!--企标编号-->
<if test="param.standardNumber != null and param.standardNumber != ''">
AND es.standard_number LIKE CONCAT('%',#{param.standardNumber},'%')
</if>
<!--授权到期日期-->
<if test="param.startAuthExpireDate != null and param.endAuthExpireDate != ''">
AND auth.auth_expire_date BETWEEN #{param.startAuthExpireDate} AND #{param.endAuthExpireDate}
</if>
<!--授权部门-->
<if test="param.authDeptList != null and param.authDeptList.size() > 0">
AND auth.auth_dept IN
<foreach item="item" index="index" collection="param.authDeptList" open="(" separator="," close=")">
#{item}
</foreach>
</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>
</mapper>
@@ -31,6 +31,18 @@ public class TempAuthRecordQueryDto {
@ApiModelProperty(value = "授权到期日期")
private Date authExpireDate;
/**授权到期日期*/
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
@DateTimeFormat(pattern="yyyy-MM-dd")
@ApiModelProperty(value = "授权到期日期开始时间")
private Date startAuthExpireDate;
/**授权到期日期*/
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
@DateTimeFormat(pattern="yyyy-MM-dd")
@ApiModelProperty(value = "授权到期日期结束时间")
private Date endAuthExpireDate;
/**授权部门*/
@ApiModelProperty(value = "授权部门")
private String authDept;