| | |
| | | <?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.PreventCJReportOverhaulLogRepository" >
|
| | |
|
| | | <!-- List<PreventCJReportOverhaulLog> listReportOverhaulDate();-->
|
| | | <select id="listReportOverhaulDate" resultType="com.ruoyi.doublePrevention.entity.CJReport.PreventCJReportOverhaulLog">
|
| | | select * from prevent_overhaul_log
|
| | | where report_status = 1
|
| | | limit 200
|
| | | </select>
|
| | |
|
| | | <!-- int updateCJReportStatusById(HandlerCJReportParam handlerCJReportParam);-->
|
| | | <select id="updateCJReportStatusById">
|
| | | update prevent_overhaul_log set
|
| | | report_status = #{reportStatus},
|
| | | report_time = #{reportTime}
|
| | | where id = #{id}
|
| | | </select>
|
| | |
|
| | |
|
| | | <!-- int insertCJOverhaulLists(PreventOverhaulLog preventOverhaulLog);-->
|
| | | <insert id="insertCJOverhaulLists" parameterType="com.ruoyi.doublePrevention.entity.CJReport.PreventCJReportOverhaulLog">
|
| | | insert into prevent_overhaul_log
|
| | | <trim prefix="(" suffix=")" suffixOverrides=",">
|
| | | <if test="id != null ">id,</if>
|
| | | <if test="deleteStatus != null ">delete_status,</if>
|
| | | <if test="companyCode != null ">company_code,</if>
|
| | |
|
| | | <if test="gmtCreate != null ">gmt_create,</if>
|
| | | <if test="createByUserName != null">create_by_user_name,</if>
|
| | | <if test="gmtModitify != null ">gmt_moditify,</if>
|
| | | <if test="lastEditUserName != null ">last_edit_user_name,</if>
|
| | |
|
| | | <if test="reportTime != null ">report_time,</if>
|
| | | <if test="reportStatus != null ">report_status,</if>
|
| | | <if test="dataSource != null ">data_source,</if>
|
| | |
|
| | | <if test="hazardCode != null ">hazard_code,</if>
|
| | | <if test="riskUnitId != null ">risk_unit_id,</if>
|
| | | <if test="stopStartTime != null ">stop_start_time,</if>
|
| | | <if test="stopEndTime != null ">stop_end_time,</if>
|
| | | <if test="stopReason != null ">stop_reason,</if>
|
| | | </trim>
|
| | | <trim prefix="values (" suffix=")" suffixOverrides=",">
|
| | | <if test="uuid != null ">#{uuid},</if>
|
| | | <if test="deleteStatus != null ">#{deleteStatus},</if>
|
| | | <if test="companyCode != null ">#{companyCode},</if>
|
| | |
|
| | | <if test="gmtCreate != null ">#{gmtCreate},</if>
|
| | | <if test="createByUserName != null ">#{createByUserName},</if>
|
| | | <if test="gmtModitify != null ">#{gmtModitify},</if>
|
| | | <if test="lastEditUserName != null ">#{lastEditUserName},</if>
|
| | |
|
| | | <if test="reportTime != null ">#{reportTime},</if>
|
| | | <if test="reportStatus != null ">#{reportStatus},</if>
|
| | | <if test="dataSource != null ">#{dataSource},</if>
|
| | |
|
| | | <if test="hazardCode != null ">#{hazardCode},</if>
|
| | | <if test="riskUnitId != null ">#{riskUnitId},</if>
|
| | | <if test="stopStartTime != null ">#{stopStartTime},</if>
|
| | | <if test="stopEndTime != null ">#{stopEndTime},</if>
|
| | | <if test="stopReason != null ">#{stopReason},</if>
|
| | | </trim>
|
| | | </insert>
|
| | |
|
| | |
|
| | | </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.PreventCJReportOverhaulLogRepository" > |
| | | |
| | | <!-- List<PreventCJReportOverhaulLog> listReportOverhaulDate();--> |
| | | <select id="listReportOverhaulDate" resultType="com.ruoyi.doublePrevention.entity.CJReport.PreventCJReportOverhaulLog"> |
| | | select * from prevent_overhaul_log |
| | | where report_status = 1 |
| | | limit 200 |
| | | </select> |
| | | |
| | | <!-- int updateCJReportStatusById(HandlerCJReportParam handlerCJReportParam);--> |
| | | <select id="updateCJReportStatusById"> |
| | | update prevent_overhaul_log set |
| | | report_status = #{reportStatus}, |
| | | report_time = #{reportTime} |
| | | where id = #{id} |
| | | </select> |
| | | |
| | | |
| | | <!-- int insertCJOverhaulLists(PreventOverhaulLog preventOverhaulLog);--> |
| | | <insert id="insertCJOverhaulLists" parameterType="com.ruoyi.doublePrevention.entity.CJReport.PreventCJReportOverhaulLog"> |
| | | insert into prevent_overhaul_log |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="id != null ">id,</if> |
| | | <if test="deleteStatus != null ">delete_status,</if> |
| | | <if test="companyCode != null ">company_code,</if> |
| | | |
| | | <if test="gmtCreate != null ">gmt_create,</if> |
| | | <if test="createByUserName != null">create_by_user_name,</if> |
| | | <if test="gmtModitify != null ">gmt_moditify,</if> |
| | | <if test="lastEditUserName != null ">last_edit_user_name,</if> |
| | | |
| | | <if test="reportTime != null ">report_time,</if> |
| | | <if test="reportStatus != null ">report_status,</if> |
| | | <if test="dataSource != null ">data_source,</if> |
| | | |
| | | <if test="hazardCode != null ">hazard_code,</if> |
| | | <if test="riskUnitId != null ">risk_unit_id,</if> |
| | | <if test="stopStartTime != null ">stop_start_time,</if> |
| | | <if test="stopEndTime != null ">stop_end_time,</if> |
| | | <if test="stopReason != null ">stop_reason,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="uuid != null ">#{uuid},</if> |
| | | <if test="deleteStatus != null ">#{deleteStatus},</if> |
| | | <if test="companyCode != null ">#{companyCode},</if> |
| | | |
| | | <if test="gmtCreate != null ">#{gmtCreate},</if> |
| | | <if test="createByUserName != null ">#{createByUserName},</if> |
| | | <if test="gmtModitify != null ">#{gmtModitify},</if> |
| | | <if test="lastEditUserName != null ">#{lastEditUserName},</if> |
| | | |
| | | <if test="reportTime != null ">#{reportTime},</if> |
| | | <if test="reportStatus != null ">#{reportStatus},</if> |
| | | <if test="dataSource != null ">#{dataSource},</if> |
| | | |
| | | <if test="hazardCode != null ">#{hazardCode},</if> |
| | | <if test="riskUnitId != null ">#{riskUnitId},</if> |
| | | <if test="stopStartTime != null ">#{stopStartTime},</if> |
| | | <if test="stopEndTime != null ">#{stopEndTime},</if> |
| | | <if test="stopReason != null ">#{stopReason},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | | |
| | | </mapper> |
| | | |