|
@@ -10,8 +10,8 @@
|
|
|
WHERE agent_id = #{agentId}
|
|
|
</selectKey>
|
|
|
|
|
|
- INSERT INTO tb_displace_audit(id, agent_id, agent_name, displace_id, idea_price, pub_time, audit_time, journalist_name, journalist_tel, audit_status, state, sale_id, others_desc, first_pic_url,is_good,storage)
|
|
|
- VALUES(#{id}, #{agentId}, #{agentName}, #{displaceId}, #{ideaPrice}, #{pubTime}, #{auditTime}, #{joumalistName}, #{joumalistTel}, #{auditStatus}, #{state}, #{saleId}, #{othersDesc}, #{firstPicUrl}, #{is_good}, #{storage})
|
|
|
+ INSERT INTO tb_displace_audit(id, agent_id, agent_name, displace_id, idea_price, pub_time, audit_time, journalist_name, journalist_tel, audit_status, state, sale_id, others_desc, first_pic_url,is_good,storage,bail)
|
|
|
+ VALUES(#{id}, #{agentId}, #{agentName}, #{displaceId}, #{ideaPrice}, #{pubTime}, #{auditTime}, #{joumalistName}, #{joumalistTel}, #{auditStatus}, #{state}, #{saleId}, #{othersDesc}, #{firstPicUrl}, #{is_good}, #{storage},#{bill})
|
|
|
</insert>
|
|
|
|
|
|
<!--更新置换审核-->
|
|
@@ -27,7 +27,8 @@
|
|
|
sale_id = #{saleId},
|
|
|
storage = #{storage},
|
|
|
is_good = #{is_good},
|
|
|
- first_pic_url = #{firstPicUrl}
|
|
|
+ first_pic_url = #{firstPicUrl},
|
|
|
+ bail=#{bill}
|
|
|
WHERE id = #{id}
|
|
|
</update>
|
|
|
|
|
@@ -105,7 +106,7 @@
|
|
|
<!--在售设备-->
|
|
|
<select id="selectDisplaceOnList" resultType="com.demo.wjj.bo.DisplaceListBo">
|
|
|
SELECT a.id,a.is_kxc isKxc, a.up_type upType, a.displace_id displaceId, IFNULL(a.look_times, 0) lookTimes, IFNULL(d.offer_times, 0) offerTimes, a.first_pic_url picUrl, a.start_time , a.end_time startTime, IFNULL(d.max_offer, a.min_money) currentPrice,a.storage,a.is_good,a.min_price,a.max_price,a.persist_price
|
|
|
- FROM tb_displace_audit a JOIN tb_offer d ON d.displace_id=a.displace_id
|
|
|
+ FROM tb_displace_audit a left JOIN tb_offer d ON d.displace_id=a.displace_id
|
|
|
WHERE
|
|
|
a.audit_status IN ('1', '3')
|
|
|
AND #{now} BETWEEN a.start_time AND a.end_time
|
|
@@ -119,7 +120,7 @@
|
|
|
<!--已售设备-->
|
|
|
<select id="selectDisplaceSaleList" resultType="com.demo.wjj.bo.DisplaceListBo">
|
|
|
SELECT a.id,a.is_kxc isKxc, a.up_type upType, a.displace_id displaceId, IFNULL(a.look_times, 0) lookTimes, IFNULL(b.offer_times, 0) offerTimes, a.first_pic_url picUrl, a.start_time , a.end_time startTime, IFNULL(b.max_offer, a.min_money) currentPrice,a.storage,a.is_good,a.min_price,a.max_price,a.persist_price
|
|
|
- FROM tb_displace_audit a JOIN tb_offer b ON b.displace_id=a.displace_id
|
|
|
+ FROM tb_displace_audit a left JOIN tb_offer b ON b.displace_id=a.displace_id
|
|
|
WHERE
|
|
|
a.audit_status IN ('1', '3')
|
|
|
AND #{now} > a.end_time
|
|
@@ -135,7 +136,7 @@
|
|
|
<!--停售设备-->
|
|
|
<select id="selectDisplaceHaltList" resultType="com.demo.wjj.bo.DisplaceListBo">
|
|
|
SELECT a.id,a.is_kxc isKxc, a.up_type upType, a.displace_id displaceId, IFNULL(a.look_times, 0) lookTimes, IFNULL(b.offer_times, 0) offerTimes, a.first_pic_url picUrl, a.start_time , a.end_time startTime, IFNULL(b.max_offer, a.min_money) currentPrice,a.storage,a.is_good,a.min_price,a.max_price,a.persist_price
|
|
|
- FROM tb_displace_audit a JOIN tb_offer b ON b.displace_id=a.displace_id
|
|
|
+ FROM tb_displace_audit a left JOIN tb_offer b ON b.displace_id=a.displace_id
|
|
|
WHERE
|
|
|
a.audit_status IN ('1', '3')
|
|
|
AND #{now} > a.end_time
|