政策表添加政策分类(可分为人才引进、人才培养、人才激励等类别)

This commit is contained in:
chenshaohua
2026-07-08 17:10:46 +08:00
parent 84dd9b8092
commit f52d7f0eda
3 changed files with 9 additions and 0 deletions

View File

@@ -64,6 +64,9 @@ public class PolicyInfo extends BaseEntity {
@ApiModelProperty("浏览数")
private Integer viewNum;
@ApiModelProperty("政策分类0人才引进、1人才培养、2人才激励")
private String policyCategory;
//标签
/** 1-大龄人员;2-低保人员;3-残疾人员;4-失地农名或联队职工;5-防止返贫;6-未就业大中专毕业生;7-退役军人;8-长期失业人员;9-城镇零就业家庭成员10.刑满释放人员 **/
private String policyTag;

View File

@@ -31,5 +31,8 @@ public class PolicyInfoQuery {
@ApiModelProperty("状态0启用 1禁用空表示不过滤")
private String status;
@ApiModelProperty("政策分类0人才引进、1人才培养、2人才激励")
private String policyCategory;
private List<String> policyTags;
}

View File

@@ -57,6 +57,9 @@
<if test="query.status != null">
and (status IS NULL or status = #{query.status})
</if>
<if test="query.policyCategory != null">
and policy_category = #{query.policyCategory}
</if>
</where>
order by publish_time desc, create_time desc
</select>