parent
6468cb0a88
commit
96925e3e54
@ -0,0 +1,34 @@
|
|||||||
|
package com.ruoyi.jjh.ent.entity.request;
|
||||||
|
|
||||||
|
import com.ruoyi.common.annotation.Excel;
|
||||||
|
import io.swagger.annotations.ApiModel;
|
||||||
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 政策文件请求类
|
||||||
|
* @author du
|
||||||
|
* @since 2024/5/6 14:34
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@ApiModel("政策文件请求类")
|
||||||
|
public class JPolicyFileRequest {
|
||||||
|
/**
|
||||||
|
* 政策文件名称
|
||||||
|
*/
|
||||||
|
@ApiModelProperty("政策文件名称")
|
||||||
|
private String name;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 发文单位
|
||||||
|
*/
|
||||||
|
@ApiModelProperty("政策文件名称")
|
||||||
|
private String enterUnit;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 政策等级
|
||||||
|
*/
|
||||||
|
@Excel(name = "政策等级")
|
||||||
|
@ApiModelProperty("政策等级")
|
||||||
|
private String policyLevel;
|
||||||
|
}
|
@ -0,0 +1,22 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE mapper
|
||||||
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
<mapper namespace="com.ruoyi.jjh.ent.mapper.JPolicyFileMapper">
|
||||||
|
|
||||||
|
<select id="page" resultType="com.ruoyi.jjh.ent.entity.JPolicyFile">
|
||||||
|
select * from j_policy_file
|
||||||
|
<where>
|
||||||
|
<if test="req.name != null and req.name != '' ">
|
||||||
|
and name like concat('%',#{req.name},'%')
|
||||||
|
</if>
|
||||||
|
<if test="req.enterUnit != null and req.enterUnit != '' ">
|
||||||
|
and enter_unit like concat('%',#{req.enterUnit},'%')
|
||||||
|
</if>
|
||||||
|
<if test="req.policyLevel != null and req.policyLevel != '' ">
|
||||||
|
and policy_level like concat('%',#{req.policyLevel},'%')
|
||||||
|
</if>
|
||||||
|
</where>
|
||||||
|
order by create_time desc
|
||||||
|
</select>
|
||||||
|
</mapper>
|
Loading…
Reference in new issue