| | |
| | | <result property="companyCode" column="company_code"/> |
| | | |
| | | <result property="dangerId" column="danger_id"/> |
| | | <result property="dangerName" column="danger_name"/> |
| | | <result property="taskId" column="task_id"/> |
| | | <result property="checkType" column="check_type"/> |
| | | <result property="checkItemId" column="check_item_id"/> |
| | |
| | | <if test="id != null"> |
| | | and task_id = #{id} |
| | | </if> |
| | | <if test="checkWay != null"> |
| | | and check_way like concat('%',#{checkWay},'%') |
| | | <if test="checkType != null"> |
| | | and check_type like concat('%',#{checkType},'%') |
| | | </if> |
| | | <if test="reportStatus != null"> |
| | | and report_status = #{reportStatus} |
| | |
| | | <if test="companyCode != null ">company_code,</if> |
| | | |
| | | <if test="dangerId != null ">danger_id,</if> |
| | | <if test="dangerName != null ">danger_name,</if> |
| | | <if test="taskId != null ">task_id,</if> |
| | | <if test="checkType != null ">check_type,</if> |
| | | <if test="checkItemId != null ">check_item_id,</if> |
| | |
| | | <if test="companyCode != null ">#{companyCode},</if> |
| | | |
| | | <if test="dangerId != null ">#{dangerId},</if> |
| | | <if test="dangerName != null ">#{dangerName},</if> |
| | | <if test="taskId != null ">#{taskId},</if> |
| | | <if test="checkType != null ">#{checkType},</if> |
| | | <if test="checkItemId != null ">#{checkItemId},</if> |
| | |
| | | <set> |
| | | <if test="dangerId != null "> |
| | | danger_id = #{dangerId}, |
| | | </if> |
| | | <if test="dangerName != null "> |
| | | danger_name= #{dangerName}, |
| | | </if> |
| | | <if test="taskId != null"> |
| | | task_id = #{taskId}, |
| | |
| | | report_time = #{reportTime} |
| | | where id = #{indexId} and deleted = 0 |
| | | </update> |
| | | <!-- TbSpecialCheckItemDangerLog getSpecialCheckItemDangerLogById(String id);--> |
| | | <select id="getSpecialCheckItemDangerLogById" resultMap="BaseResultMap"> |
| | | select * from tb_special_check_item_danger_log |
| | | where deleted = 0 and id = #{id} |
| | | </select> |
| | | </mapper> |