双重预防项目-国泰新华二开定制版
kongzy
2024-08-14 135a322f44708b1187d37ea4b6859b5d82113e89
src/main/resources/mybatis/doublePrevention/PreventCJReportConfigMapper.xml
@@ -1,31 +1,31 @@
<?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.doublePrevention.repository.PreventCJReportConfigRepository">
    <resultMap id="BaseResultMap" type="com.ruoyi.doublePrevention.entity.CJReport.PreventCJReportConfig">
        <id property="id" column="id"/>
        <result property="reportState" column="report_state"/>
        <result property="reportType" column="report_type"/>
        <result property="reportData" column="report_data"/>
        <result property="reportDataName" column="report_data_name"/>
        <result property="gmtModitify" column="gmt_moditify"/>
        <result property="lastEditUserName" column="last_edit_user_name"/>
    </resultMap>
    <!--List<PreventReportConfig> ListReportConfigs();-->
    <select id="ListReportConfigs" resultMap="BaseResultMap">
        select id, report_state, report_type, report_data_name, gmt_moditify, last_edit_user_name
        from prevent_cj_report_config
    </select>
    <!--int updateReportConfig(PreventReportConfigUpdateParams updateParams);-->
    <update id="updateReportConfig">
        update prevent_cj_report_config set
            report_state = #{reportState},
            report_type = #{reportType},
            last_edit_user_name = #{lastEditUserName},
            gmt_moditify = #{gmtModitify}
        where id = #{id}
    </update>
</mapper>
<?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.doublePrevention.repository.PreventCJReportConfigRepository">
    <resultMap id="BaseResultMap" type="com.ruoyi.doublePrevention.entity.CJReport.PreventCJReportConfig">
        <id property="id" column="id"/>
        <result property="reportState" column="report_state"/>
        <result property="reportType" column="report_type"/>
        <result property="reportData" column="report_data"/>
        <result property="reportDataName" column="report_data_name"/>
        <result property="gmtModitify" column="gmt_moditify"/>
        <result property="lastEditUserName" column="last_edit_user_name"/>
    </resultMap>
    <!--List<PreventReportConfig> ListReportConfigs();-->
    <select id="ListReportConfigs" resultMap="BaseResultMap">
        select id, report_state, report_type, report_data_name, gmt_moditify, last_edit_user_name
        from prevent_cj_report_config
    </select>
    <!--int updateReportConfig(PreventReportConfigUpdateParams updateParams);-->
    <update id="updateReportConfig">
        update prevent_cj_report_config set
            report_state = #{reportState},
            report_type = #{reportType},
            last_edit_user_name = #{lastEditUserName},
            gmt_moditify = #{gmtModitify}
        where id = #{id}
    </update>
</mapper>