<?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.gk.hotwork.Mapper.WarningInfoMapper" >
|
<resultMap id="BaseResultMap" type="com.gk.hotwork.Domain.WarningInfo" >
|
<!-- -->
|
<id column="id" property="id" jdbcType="BIGINT" />
|
<result column="type" property="type" jdbcType="VARCHAR" />
|
<result column="content" property="content" jdbcType="VARCHAR" />
|
<result column="createdat" property="createdat" jdbcType="TIMESTAMP" />
|
<result column="taskcode" property="taskcode" jdbcType="VARCHAR" />
|
<result column="worker" property="worker" jdbcType="VARCHAR" />
|
<result column="isdeal" property="isdeal" jdbcType="TINYINT" />
|
<result column="dealat" property="dealat" jdbcType="TIMESTAMP" />
|
<result column="dealby" property="dealby" jdbcType="VARCHAR" />
|
<result column="flag" property="flag" jdbcType="TINYINT" />
|
<result column="issms" property="issms" jdbcType="TINYINT" />
|
</resultMap>
|
<sql id="Base_Column_List" >
|
<!-- -->
|
id, type, content, createdat, taskcode, worker, isdeal, dealat, dealby, flag, issms, tasktype
|
</sql>
|
<select id="selectTaskDataGrid" resultType="com.gk.hotwork.Domain.WarningInfo">
|
select *
|
from warning
|
<where>
|
tasktype = '动火作业'
|
<if test="condition.code != null and condition.code != ''">
|
and taskcode like concat('%',#{condition.code},'%')
|
</if>
|
<if test="condition.isDeal != null and condition.isDeal != ''">
|
and isdeal = #{condition.isDeal}
|
</if>
|
<if test="condition.type != null and condition.type != ''">
|
and type = #{condition.type}
|
</if>
|
<if test="condition.startTime != null and condition.startTime != ''">
|
and createdat >= #{condition.startTime}
|
</if>
|
<if test="condition.endTime != null and condition.endTime != ''">
|
and createdat <= #{condition.endTime}
|
</if>
|
</where>
|
</select>
|
|
</mapper>
|