123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146 |
- <?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.sb.SbMeasureLogMapper">
- <sql id="Base_Column_List">
- checkstandard.id,
- checkstandard.sb_id,
- checkstandard.standard_hours,
- checkstandard.real_hours,
- checkstandard.last_date,
- checkstandard.check_user_id,
- checkstandard.name,
- checkstandard.no,
- checkstandard.type,
- checkstandard.period,
- checkstandard.periodType,
- checkstandard.actionType,
- checkstandard.enable,
- checkstandard.part,
- checkstandard.requirement,
- checkstandard.remark,
- checkstandard.created_user_id,
- checkstandard.update_user_id,
- checkstandard.created_user_name,
- checkstandard.update_user_name,
- checkstandard.created_time,
- checkstandard.update_time
- </sql>
- <sql id="Ref_Column_List">
- checkstandard.sb_id,
- checkstandard.standard_hours,
- checkstandard.real_hours,
- checkstandard.check_user_id,
- checkstandard.last_date,
- checkstandard.name,
- checkstandard.no,
- checkstandard.type,
- checkstandard.period,
- checkstandard.part,
- checkstandard.periodType,
- checkstandard.actionType,
- checkstandard.enable,
- checkstandard.requirement,
- checkstandard.remark,
- </sql>
- <sql id="List_Condition">
- <if test="id != null and id != ''">
- and checkstandard.id = #{id}
- </if>
- <if test="sbId != null and sbId != ''">
- and checkstandard.sb_id = #{sbId}
- </if>
- <if test="name != null and name != ''">
- and checkstandard.name = #{name}
- </if>
- <if test="part != null and part != ''">
- and checkstandard.part = #{part}
- </if>
- <if test="checkUserId != null and checkUserId != ''">
- and checkstandard.check_user_id = #{checkUserId}
- </if>
- <if test="no != null and no != ''">
- and checkstandard.no = #{no}
- </if>
- <if test="type != null">
- and checkstandard.type = #{type}
- </if>
- <if test="period != null">
- and checkstandard.period = #{period}
- </if>
- <if test="periodType != null">
- and checkstandard.period_type = #{periodType}
- </if>
- <if test="actionType != null">
- and checkstandard.action_type = #{actionType}
- </if>
- <if test="enable != null">
- and checkstandard.enable = #{enable}
- </if>
- <if test="requirement != null and requirement != ''">
- and checkstandard.requirement = #{requirement}
- </if>
- <if test="remark != null and remark != ''">
- and checkstandard.remark = #{remark}
- </if>
- <if test="createdUserId != null and createdUserId != ''">
- and checkstandard.created_user_id = #{createdUserId}
- </if>
- <if test="updateUserId != null and updateUserId != ''">
- and checkstandard.update_user_id = #{updateUserId}
- </if>
- <if test="createdUserName != null and createdUserName != ''">
- and checkstandard.created_user_name = #{createdUserName}
- </if>
- <if test="updateUserName != null and updateUserName != ''">
- and checkstandard.update_user_name = #{updateUserName}
- </if>
- <if test="createdTimeStart != null">
- and checkstandard.created_time <![CDATA[>=]]>; #{createdTimeStart}
- </if>
- <if test="createdTimeEnd != null">
- and checkstandard.created_time <![CDATA[<=]]> #{createdTimeEnd}
- </if>
- <if test="createdTime != null">
- and checkstandard.created_time = #{createdTime}
- </if>
- <if test="updateTimeStart != null">
- and checkstandard.update_time <![CDATA[>=]]>; #{updateTimeStart}
- </if>
- <if test="updateTimeEnd != null">
- and checkstandard.update_time <![CDATA[<=]]> #{updateTimeEnd}
- </if>
- <if test="updateTime != null">
- and checkstandard.update_time = #{updateTime}
- </if>
- <if test="keyword != null and keyword != ''">
- and checkstandard.name like concat('%',#{keyword},'%')
- </if>
- <if test="searchStartTime != null">
- and checkstandard.last_date <![CDATA[ >= ]]> #{searchStartTime}
- </if>
- <if test="searchEndTime != null">
- and checkstandard.last_date <![CDATA[ <= ]]> #{searchEndTime}
- </if>
- <if test="keyword != null and keyword != ''">
- and (
- sb.name like concat('%',#{keyword},'%')
- or
- sb.no like concat('%',#{keyword},'%')
- or
- sb.card_no like concat('%',#{keyword},'%')
- )
- </if>
- </sql>
- <select id="selectList" parameterType="com.platform.dao.dto.sb.SbMeasureLogDTO"
- resultType="com.platform.dao.vo.query.sb.SbMeasureLogVO">
- select checkstandard.*,
- sb.position_no positionNo, sb.zzh, sb.name sbName, sb.model sbModel, sb.no sbNo, sb.zzh sbZzh, sb.card_no cardNo
- from t_sb_measure_log as checkstandard
- LEFT JOIN t_sb_info sb on checkstandard.sb_id = sb.id
- <where>
- <include refid="List_Condition"/>
- </where>
- order by checkstandard.created_time desc
- </select>
- </mapper>
|