政策启用禁用功能开发

This commit is contained in:
冯辉
2026-06-28 02:13:05 +08:00
parent a9cb3adb20
commit 339b0bc8cb
8 changed files with 49 additions and 6 deletions

View File

@@ -24,17 +24,18 @@
<result property="delFlag" column="del_flag"/>
<result property="remark" column="remark"/>
<result property="policyTag" column="policy_tag"/>
<result property="status" column="status"/>
</resultMap>
<sql id="selectPolicyInfoListVo">
select id, zcmc, zclx, zc_level, source_unit, accept_unit, publish_time, view_num, create_time, policy_tag
select id, zcmc, zclx, zc_level, source_unit, accept_unit, publish_time, view_num, create_time, policy_tag, status
from policy_info
</sql>
<sql id="selectPolicyInfoDetailVo">
select id, zcmc, zclx, zc_level, source_unit, accept_unit, publish_time,
select id, zcmc, zclx, zc_level, source_unit, accept_unit, publish_time,
zc_content, subsidy_standard, handle_channel, apply_condition,
file_url, file_name, view_num, create_by, create_time, update_by, update_time, remark, policy_tag
file_url, file_name, view_num, create_by, create_time, update_by, update_time, remark, policy_tag, status
from policy_info
</sql>
@@ -53,6 +54,9 @@
</foreach>
]
</if>
<if test="query.status != null and query.status != ''">
and (status IS NULL or status = #{query.status})
</if>
</where>
order by publish_time desc, create_time desc
</select>
@@ -70,11 +74,11 @@
insert into policy_info (
zcmc, zclx, zc_level, source_unit, accept_unit, publish_time,
zc_content, subsidy_standard, handle_channel, apply_condition,
file_url, file_name, view_num, create_by, create_time, del_flag, remark, policy_tag
file_url, file_name, view_num, create_by, create_time, del_flag, remark, policy_tag, status
) values (
#{zcmc}, #{zclx}, #{zcLevel}, #{sourceUnit}, #{acceptUnit}, #{publishTime},
#{zcContent}, #{subsidyStandard}, #{handleChannel}, #{applyCondition},
#{fileUrl}, #{fileName}, #{viewNum}, #{createBy}, now(), '0', #{remark}, #{policyTag}
#{fileUrl}, #{fileName}, #{viewNum}, #{createBy}, now(), '0', #{remark}, #{policyTag}, #{status}
)
</insert>
@@ -95,6 +99,7 @@
<if test="fileName != null">file_name = #{fileName},</if>
<if test="remark != null">remark = #{remark},</if>
<if test="policyTag != null">policy_tag = #{policyTag},</if>
<if test="status != null">status = #{status},</if>
update_by = #{updateBy},
update_time = now()
</set>
@@ -109,4 +114,8 @@
</foreach>
</update>
<update id="updateStatus">
update policy_info set status = #{status} where id = #{id}
</update>
</mapper>