|
@@ -7,7 +7,8 @@
|
|
<resultMap type="PoTether" id="PoTetherResult">
|
|
<resultMap type="PoTether" id="PoTetherResult">
|
|
<result property="tetherId" column="tether_id" />
|
|
<result property="tetherId" column="tether_id" />
|
|
<result property="tetherName" column="tether_name" />
|
|
<result property="tetherName" column="tether_name" />
|
|
- <result property="showTime" column="show_time" />
|
|
|
|
|
|
+ <result property="showTimeStart" column="show_time_start" />
|
|
|
|
+ <result property="showTimeEnd" column="show_time_end"/>
|
|
<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" />
|
|
@@ -46,7 +47,7 @@
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectPoTetherVo">
|
|
<sql id="selectPoTetherVo">
|
|
- select tether_id, tether_name, show_time, create_by, create_time, update_by, update_time, total, status, remark ,sell_status,del_flag,image,exchange ,grounding,cochain ,tether_id from po_tether
|
|
|
|
|
|
+ select tether_id, tether_name, show_time_start, show_time_end, create_by, create_time, update_by, update_time, total, status, remark ,sell_status,del_flag,image,exchange ,grounding,cochain ,tether_id from po_tether
|
|
</sql>
|
|
</sql>
|
|
|
|
|
|
<!--在售-->
|
|
<!--在售-->
|
|
@@ -54,7 +55,8 @@
|
|
<include refid="selectPoTetherVo"/>
|
|
<include refid="selectPoTetherVo"/>
|
|
<where>
|
|
<where>
|
|
<if test="tetherName != null and tetherName != ''"> and tether_name like concat('%', #{tetherName}, '%')</if>
|
|
<if test="tetherName != null and tetherName != ''"> and tether_name like concat('%', #{tetherName}, '%')</if>
|
|
- <if test="showTime != null "> and show_time = #{showTime}</if>
|
|
|
|
|
|
+ <if test="showTimeStart != null "> and show_time_start = #{showTimeStart}</if>
|
|
|
|
+ <if test="showTimeEnd != null">and show_time_end = #{showTimeEnd}</if>
|
|
<if test="total != null "> and total = #{total}</if>
|
|
<if test="total != null "> and total = #{total}</if>
|
|
<if test="status != null and status != ''"> and status = #{status}</if>
|
|
<if test="status != null and status != ''"> and status = #{status}</if>
|
|
<if test="image != null and image != '' ">and image = #{image}</if>
|
|
<if test="image != null and image != '' ">and image = #{image}</if>
|
|
@@ -79,7 +81,8 @@
|
|
<include refid="selectPoTetherVo"></include>
|
|
<include refid="selectPoTetherVo"></include>
|
|
<where>
|
|
<where>
|
|
<if test="tetherName != null and tetherName != ''"> and tether_name like concat('%', #{tetherName}, '%')</if>
|
|
<if test="tetherName != null and tetherName != ''"> and tether_name like concat('%', #{tetherName}, '%')</if>
|
|
- <if test="tetherTimeStart != null and tetherTimeEnd != null "> and show_time between #{tetherTimeStart} and #{tetherTimeEnd}</if>
|
|
|
|
|
|
+ <if test="tetherTimeStart != null "> and show_time_start = #{tetherTimeStart}</if>
|
|
|
|
+ <if test="tetherTimeEnd != null">and show_time_end = #{tetherTimeEnd}</if>
|
|
</where>
|
|
</where>
|
|
</select>
|
|
</select>
|
|
|
|
|
|
@@ -88,7 +91,8 @@
|
|
<include refid="selectPoTetherVo"/>
|
|
<include refid="selectPoTetherVo"/>
|
|
<where>
|
|
<where>
|
|
<if test="tetherName != null and tetherName != ''"> and tether_name like concat('%', #{tetherName}, '%')</if>
|
|
<if test="tetherName != null and tetherName != ''"> and tether_name like concat('%', #{tetherName}, '%')</if>
|
|
- <if test="showTime != null "> and show_time = #{showTime}</if>
|
|
|
|
|
|
+ <if test="showTimeStart != null "> and show_time_start = #{showTimeStart}</if>
|
|
|
|
+ <if test="showTimeEnd != null">and show_time_end = #{showTimeEnd}</if>
|
|
<if test="total != null "> and total = #{total}</if>
|
|
<if test="total != null "> and total = #{total}</if>
|
|
<if test="status != null and status != ''"> and status = #{status}</if>
|
|
<if test="status != null and status != ''"> and status = #{status}</if>
|
|
<if test="image != null and image != '' ">and image = #{image}</if>
|
|
<if test="image != null and image != '' ">and image = #{image}</if>
|
|
@@ -106,7 +110,8 @@
|
|
<include refid="selectPoTetherVo"/>
|
|
<include refid="selectPoTetherVo"/>
|
|
<where>
|
|
<where>
|
|
<if test="tetherName != null and tetherName != ''"> and tether_name like concat('%', #{tetherName}, '%')</if>
|
|
<if test="tetherName != null and tetherName != ''"> and tether_name like concat('%', #{tetherName}, '%')</if>
|
|
- <if test="showTime != null "> and show_time = #{showTime}</if>
|
|
|
|
|
|
+ <if test="showTimeStart != null "> and show_time_start = #{showTimeStart}</if>
|
|
|
|
+ <if test="showTimeEnd != null">and show_time_end = #{showTimeEnd}</if>
|
|
<if test="total != null "> and total = #{total}</if>
|
|
<if test="total != null "> and total = #{total}</if>
|
|
<if test="status != null and status != ''"> and status = #{status}</if>
|
|
<if test="status != null and status != ''"> and status = #{status}</if>
|
|
<if test="image != null and image != '' ">and image = #{image}</if>
|
|
<if test="image != null and image != '' ">and image = #{image}</if>
|
|
@@ -124,7 +129,8 @@
|
|
<include refid="selectPoTetherVo"/>
|
|
<include refid="selectPoTetherVo"/>
|
|
<where>
|
|
<where>
|
|
<if test="tetherName != null and tetherName != ''"> and tether_name like concat('%', #{tetherName}, '%')</if>
|
|
<if test="tetherName != null and tetherName != ''"> and tether_name like concat('%', #{tetherName}, '%')</if>
|
|
- <if test="showTime != null "> and show_time = #{showTime}</if>
|
|
|
|
|
|
+ <if test="showTimeStart != null "> and show_time_start = #{showTimeStart}</if>
|
|
|
|
+ <if test="showTimeEnd != null">and show_time_end = #{showTimeEnd}</if>
|
|
<if test="total != null "> and total = #{total}</if>
|
|
<if test="total != null "> and total = #{total}</if>
|
|
<if test="status != null and status != ''"> and status = #{status}</if>
|
|
<if test="status != null and status != ''"> and status = #{status}</if>
|
|
<if test="image != null and image != '' ">and image = #{image}</if>
|
|
<if test="image != null and image != '' ">and image = #{image}</if>
|
|
@@ -168,7 +174,8 @@
|
|
<select id="selectPoTetherCollectionList" resultType="PoTether" resultMap="PoTetherResult">
|
|
<select id="selectPoTetherCollectionList" resultType="PoTether" resultMap="PoTetherResult">
|
|
<include refid="selectPoTetherVo"/>
|
|
<include refid="selectPoTetherVo"/>
|
|
<if test="tetherName != null and tetherName != ''"> and tether_name like concat('%', #{tetherName}, '%')</if>
|
|
<if test="tetherName != null and tetherName != ''"> and tether_name like concat('%', #{tetherName}, '%')</if>
|
|
- <if test="showTime != null "> and show_time = #{showTime}</if>
|
|
|
|
|
|
+ <if test="showTimeStart != null "> and show_time_start = #{showTimeStart}</if>
|
|
|
|
+ <if test="showTimeEnd != null">and show_time_end = #{showTimeEnd}</if>
|
|
<if test="total != null "> and total = #{total}</if>
|
|
<if test="total != null "> and total = #{total}</if>
|
|
<if test="status != null and status != ''"> and status = #{status}</if>
|
|
<if test="status != null and status != ''"> and status = #{status}</if>
|
|
<if test="image != null and image != '' ">and image = #{image}</if>
|
|
<if test="image != null and image != '' ">and image = #{image}</if>
|
|
@@ -183,7 +190,8 @@
|
|
insert into po_tether
|
|
insert into po_tether
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
<if test="tetherName != null">tether_name,</if>
|
|
<if test="tetherName != null">tether_name,</if>
|
|
- <if test="showTime != null">show_time,</if>
|
|
|
|
|
|
+ <if test="showTimeStart != null">show_time_start,</if>
|
|
|
|
+ <if test="showTimeEnd != null">show_time_end,</if>
|
|
<if test="createBy != null">create_by,</if>
|
|
<if test="createBy != null">create_by,</if>
|
|
<if test="createTime != null">create_time,</if>
|
|
<if test="createTime != null">create_time,</if>
|
|
<if test="updateBy != null">update_by,</if>
|
|
<if test="updateBy != null">update_by,</if>
|
|
@@ -200,7 +208,8 @@
|
|
</trim>
|
|
</trim>
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<if test="tetherName != null">#{tetherName},</if>
|
|
<if test="tetherName != null">#{tetherName},</if>
|
|
- <if test="showTime != null">#{showTime},</if>
|
|
|
|
|
|
+ <if test="showTimeStart != null">#{showTimeStart},</if>
|
|
|
|
+ <if test="showTimeEnd != null">#{showTimeEnd},</if>
|
|
<if test="createBy != null">#{createBy},</if>
|
|
<if test="createBy != null">#{createBy},</if>
|
|
<if test="createTime != null">#{createTime},</if>
|
|
<if test="createTime != null">#{createTime},</if>
|
|
<if test="updateBy != null">#{updateBy},</if>
|
|
<if test="updateBy != null">#{updateBy},</if>
|
|
@@ -220,8 +229,9 @@
|
|
<update id="updatePoTether" parameterType="PoTether">
|
|
<update id="updatePoTether" parameterType="PoTether">
|
|
update po_tether
|
|
update po_tether
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
- <if test="tetherName != null">tether_name = #{tetherName},</if>
|
|
|
|
- <if test="showTime != null">show_time = #{showTime},</if>
|
|
|
|
|
|
+ <if test="tetherName != null and tetherName != ''">tether_name = #{tetherName},</if>
|
|
|
|
+ <if test="showTimeStart != null">show_time_start = #{showTimeStart},</if>
|
|
|
|
+ <if test="showTimeEnd != null">show_time_end = #{showTimeEnd},</if>
|
|
<if test="createBy != null">create_by = #{createBy},</if>
|
|
<if test="createBy != null">create_by = #{createBy},</if>
|
|
<if test="createTime != null">create_time = #{createTime},</if>
|
|
<if test="createTime != null">create_time = #{createTime},</if>
|
|
<if test="updateBy != null">update_by = #{updateBy},</if>
|
|
<if test="updateBy != null">update_by = #{updateBy},</if>
|
|
@@ -230,11 +240,11 @@
|
|
<if test="status != null">status = #{status},</if>
|
|
<if test="status != null">status = #{status},</if>
|
|
<if test="remark != null">remark = #{remark},</if>
|
|
<if test="remark != null">remark = #{remark},</if>
|
|
<if test="sellStatus != null">sell_status = #{sellStatus},</if>
|
|
<if test="sellStatus != null">sell_status = #{sellStatus},</if>
|
|
- <if test="image != null and image != ''">image = #{image},</if>
|
|
|
|
|
|
+ <if test="delFlag != null">del_flag = #{delFlag},</if>
|
|
|
|
+ <if test="image != null">image = #{image},</if>
|
|
<if test="exchange != null">exchange = #{exchange},</if>
|
|
<if test="exchange != null">exchange = #{exchange},</if>
|
|
<if test="grounding != null">grounding = #{grounding},</if>
|
|
<if test="grounding != null">grounding = #{grounding},</if>
|
|
<if test="cochain != null">cochain = #{cochain},</if>
|
|
<if test="cochain != null">cochain = #{cochain},</if>
|
|
- <if test="tetherId != null">tether_id #{tetherId},</if>
|
|
|
|
</trim>
|
|
</trim>
|
|
where tether_id = #{tetherId}
|
|
where tether_id = #{tetherId}
|
|
</update>
|
|
</update>
|