|
|
@ -1,24 +1,25 @@
|
|
|
|
<?xml version="1.0" encoding="UTF-8" ?>
|
|
|
|
<?xml version="1.0" encoding="UTF-8" ?>
|
|
|
|
<!DOCTYPE mapper
|
|
|
|
<!DOCTYPE mapper
|
|
|
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
|
<mapper namespace="com.ruoyi.tcZz.mapper.TcYqzsMapper">
|
|
|
|
<mapper namespace="com.ruoyi.tcZz.mapper.TcYqzsMapper">
|
|
|
|
|
|
|
|
|
|
|
|
<resultMap type="TcYqzs" id="TcYqzsResult">
|
|
|
|
<resultMap type="TcYqzs" id="TcYqzsResult">
|
|
|
|
<result property="id" column="id" />
|
|
|
|
<result property="id" column="id"/>
|
|
|
|
<result property="areaId" column="area_id" />
|
|
|
|
<result property="areaId" column="area_id"/>
|
|
|
|
<result property="dateTime" column="date_time" />
|
|
|
|
<result property="dateTime" column="date_time"/>
|
|
|
|
<result property="createBy" column="create_by" />
|
|
|
|
<result property="createBy" column="create_by"/>
|
|
|
|
<result property="createTime" column="create_time" />
|
|
|
|
<result property="createTime" column="create_time"/>
|
|
|
|
<result property="updateBy" column="update_by" />
|
|
|
|
<result property="updateBy" column="update_by"/>
|
|
|
|
<result property="updateTime" column="update_time" />
|
|
|
|
<result property="updateTime" column="update_time"/>
|
|
|
|
<result property="remark" column="remark" />
|
|
|
|
<result property="remark" column="remark"/>
|
|
|
|
<result property="count1" column="count1" />
|
|
|
|
<result property="count1" column="count1"/>
|
|
|
|
<result property="count2" column="count2" />
|
|
|
|
<result property="count2" column="count2"/>
|
|
|
|
</resultMap>
|
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
|
|
|
|
<sql id="selectTcYqzsVo">
|
|
|
|
<sql id="selectTcYqzsVo">
|
|
|
|
select id, area_id, date_time, create_by, create_time, update_by, update_time, remark, count1, count2 from tc_yqzs
|
|
|
|
select id, area_id, date_time, create_by, create_time, update_by, update_time, remark, count1, count2 from
|
|
|
|
|
|
|
|
tc_yqzs
|
|
|
|
</sql>
|
|
|
|
</sql>
|
|
|
|
|
|
|
|
|
|
|
|
<select id="selectTcYqzsList" parameterType="TcYqzs" resultMap="TcYqzsResult">
|
|
|
|
<select id="selectTcYqzsList" parameterType="TcYqzs" resultMap="TcYqzsResult">
|
|
|
@ -37,7 +38,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
<if test="params.beginUpdateTime != null and params.beginUpdateTime != '' and params.endUpdateTime != null and params.endUpdateTime != ''">
|
|
|
|
<if test="params.beginUpdateTime != null and params.beginUpdateTime != '' and params.endUpdateTime != null and params.endUpdateTime != ''">
|
|
|
|
and update_time between #{params.beginUpdateTime} and #{params.endUpdateTime}
|
|
|
|
and update_time between #{params.beginUpdateTime} and #{params.endUpdateTime}
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
<if test="beginDateTime != null and endDateTime != null "> and date_time between #{beginDateTime} and #{endDateTime}</if>
|
|
|
|
<if test="beginDateTime != null and endDateTime != null ">and date_time between #{beginDateTime} and
|
|
|
|
|
|
|
|
#{endDateTime}
|
|
|
|
|
|
|
|
</if>
|
|
|
|
<if test="beginDateTime != null">and date_time >= #{beginDateTime}</if>
|
|
|
|
<if test="beginDateTime != null">and date_time >= #{beginDateTime}</if>
|
|
|
|
<if test="endDateTime != null">and date_time <= #{endDateTime}</if>
|
|
|
|
<if test="endDateTime != null">and date_time <= #{endDateTime}</if>
|
|
|
|
<if test="remark != null and remark != ''">and remark = #{remark}</if>
|
|
|
|
<if test="remark != null and remark != ''">and remark = #{remark}</if>
|
|
|
@ -45,7 +48,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
<if test="count2 != null ">and count2 = #{count2}</if>
|
|
|
|
<if test="count2 != null ">and count2 = #{count2}</if>
|
|
|
|
<if test="dateTime != null ">and date_time like concat('%', #{dateTime}, '%')</if>
|
|
|
|
<if test="dateTime != null ">and date_time like concat('%', #{dateTime}, '%')</if>
|
|
|
|
</where>
|
|
|
|
</where>
|
|
|
|
|
|
|
|
<if test="isOrthodox == 2 and isOrthodox != null">
|
|
|
|
|
|
|
|
order by date_time desc
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="isOrthodox == null">
|
|
|
|
order by date_time asc
|
|
|
|
order by date_time asc
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="isOrthodox == 1 and isOrthodox != null">
|
|
|
|
|
|
|
|
order by date_time asc
|
|
|
|
|
|
|
|
</if>
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
<select id="selectTcYqzsById" parameterType="Long" resultMap="TcYqzsResult">
|
|
|
|
<select id="selectTcYqzsById" parameterType="Long" resultMap="TcYqzsResult">
|
|
|
|