123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687 |
- <?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.platform.dao.mapper.repair.RepairSchemeMapper">
- <sql id="Base_Column_List">
- repair.id,
- repair.repair_id,
- repair.opinion,
- repair.created_user_id,
- repair.update_user_id,
- repair.created_user_name,
- repair.update_user_name,
- repair.created_time,
- repair.update_time,
- repair.status,
- repair.delete_flag
- </sql>
- <sql id="Ref_Column_List">
- repair.repair_id,
- repair.opinion,
- repair.status,
- repair.delete_flag
- </sql>
- <sql id="List_Condition">
- <if test="id != null and id != ''">
- and repair.id = #{id}
- </if>
- <if test="repairId != null and repairId != ''">
- and repair.repair_id = #{repairId}
- </if>
- <if test="opinion != null and opinion != ''">
- and repair.opinion = #{opinion}
- </if>
- <if test="createdUserId != null and createdUserId != ''">
- and repair.created_user_id = #{createdUserId}
- </if>
- <if test="updateUserId != null and updateUserId != ''">
- and repair.update_user_id = #{updateUserId}
- </if>
- <if test="createdUserName != null and createdUserName != ''">
- and repair.created_user_name = #{createdUserName}
- </if>
- <if test="updateUserName != null and updateUserName != ''">
- and repair.update_user_name = #{updateUserName}
- </if>
- <if test="createdTimeStart != null">
- and repair.created_time <![CDATA[>=]]> #{createdTimeStart}
- </if>
- <if test="createdTimeEnd != null">
- and repair.created_time <![CDATA[<=]]> #{createdTimeEnd}
- </if>
- <if test="createdTime != null">
- and repair.created_time = #{createdTime}
- </if>
- <if test="updateTimeStart != null">
- and repair.update_time <![CDATA[>=]]>#{updateTimeStart}
- </if>
- <if test="updateTimeEnd != null">
- and repair.update_time <![CDATA[<=]]> #{updateTimeEnd}
- </if>
- <if test="updateTime != null">
- and repair.update_time = #{updateTime}
- </if>
- <if test="status != null">
- and repair.status = #{status}
- </if>
- <if test="deleteFlag != null">
- and repair.delete_flag = #{deleteFlag}
- </if>
- <if test="sbId != null and sbId != ''">
- and repair.sb_id = #{sbId}
- </if>
- <if test="errorTypeId != null and errorTypeId != ''">
- and repair.error_type_id = #{errorTypeId}
- </if>
- <if test="keyword != null and keyword != ''">
- and repair.error_content like concat(concat('%',#{keyword}),'%')
- </if>
- </sql>
- <select id="selectList" parameterType="com.platform.dao.dto.repair.RepairSchemeDTO"
- resultType="com.platform.dao.vo.query.repair.RepairSchemeVO">
- select repair.*,sb.name as sbName
- from t_repair_scheme as repair join t_sb_info sb on repair.sb_id = sb.id
- <where>
- <include refid="List_Condition"/>
- </where>
- </select>
- </mapper>
|