|
@@ -7,10 +7,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<resultMap type="com.dgtly.order.domain.CustomersStart" id="CustomersStartResult">
|
|
|
<result property="customersCode" column="customers_code" />
|
|
|
<result property="customersName" column="customers_name" />
|
|
|
+ <result property="onlineTime" column="online_time" />
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectCustomersStartVo">
|
|
|
- select customers_code, customers_name from customers_start
|
|
|
+ select customers_code, customers_name,online_time from customers_start
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectCustomersStartList" parameterType="com.dgtly.order.domain.CustomersStart" resultMap="CustomersStartResult">
|
|
@@ -18,7 +19,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<where>
|
|
|
<if test="customersCode != null and customersCode != ''"> and customers_code like concat('%', #{customersCode}, '%')</if>
|
|
|
<if test="customersName != null and customersName != ''"> and customers_name like concat('%', #{customersName}, '%')</if>
|
|
|
+ <if test="onlineTime != null"> and online_time = #{onlineTime}</if>
|
|
|
</where>
|
|
|
+ order by online_time desc
|
|
|
</select>
|
|
|
|
|
|
<select id="selectCustomersStartByCustomersCode" parameterType="String" resultMap="CustomersStartResult">
|
|
@@ -52,10 +55,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
<if test="customersCode != null and customersCode != ''">customers_code,</if>
|
|
|
<if test="customersName != null and customersName != ''">customers_name,</if>
|
|
|
+ <if test="onlineTime != null">online_time,</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="customersCode != null and customersCode != ''">#{customersCode},</if>
|
|
|
<if test="customersName != null and customersName != ''">#{customersName},</if>
|
|
|
+ <if test="onlineTime != null">#{onlineTime},</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
|