You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
47 lines
2.5 KiB
47 lines
2.5 KiB
3 weeks ago
|
<?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.zilber.boot.intelligencesite.mapper.IEngineerLogMapper">
|
||
|
|
||
|
<resultMap id="IEngineerLogResult" type="com.zilber.boot.intelligencesite.entity.IEngineerLog">
|
||
|
<result property="id" column="id" jdbcType="INTEGER"/>
|
||
|
<result property="date" column="date" jdbcType="TIMESTAMP"/>
|
||
|
<result property="weather" column="weather" jdbcType="VARCHAR"/>
|
||
|
<result property="temperature" column="temperature" jdbcType="VARCHAR"/>
|
||
|
<result property="wind" column="wind" jdbcType="VARCHAR"/>
|
||
|
<result property="principalName" column="principal_name" jdbcType="VARCHAR"/>
|
||
|
<result property="principalTel" column="principal_tel" jdbcType="VARCHAR"/>
|
||
|
<result property="constructionSituation" column="construction_situation" jdbcType="VARCHAR"/>
|
||
|
<result property="otherBusiness" column="other_business" jdbcType="VARCHAR"/>
|
||
|
<result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
|
||
|
<result property="creator" column="creator" jdbcType="VARCHAR"/>
|
||
|
</resultMap>
|
||
|
|
||
|
<sql id="selectIEngineerLogVo">
|
||
|
select
|
||
|
id, date,
|
||
|
weather, temperature, wind,
|
||
|
principal_name,
|
||
|
principal_tel, construction_situation, other_business, create_time, creator from i_engineer_log
|
||
|
</sql>
|
||
|
|
||
|
|
||
|
<select id="queryList" parameterType="com.zilber.boot.intelligencesite.entity.IEngineerLog" resultMap="IEngineerLogResult">
|
||
|
<include refid="selectIEngineerLogVo"/>
|
||
|
<where>
|
||
|
<if test="date != null"> and date=#{date}</if>
|
||
|
<if test="weather!= null and weather!= ''"> and weather=#{weather}</if>
|
||
|
<if test="temperature != null and temperature != ''"> and temperature=#{temperature}</if>
|
||
|
<if test="wind != null and wind != ''"> and wind=#{wind}</if>
|
||
|
<if test="principalName != null and principalName != ''"> and principal_name=#{principalName}</if>
|
||
|
<if test="principalTel != null and principalTel != ''"> and principal_tel=#{principalTel}</if>
|
||
|
<if test="constructionSituation != null and constructionSituation != ''"> and construction_situation=#{constructionSituation}</if>
|
||
|
<if test="otherBusiness != null and otherBusiness != ''"> and other_business=#{otherBusiness}</if>
|
||
|
<if test="createTime != null"> and create_time=#{createTime}</if>
|
||
|
<if test="creator != null and creator != ''"> and creator=#{creator}</if>
|
||
|
</where>
|
||
|
</select>
|
||
|
</mapper>
|
||
|
|