|
|
|
@ -5,9 +5,7 @@
|
|
|
|
|
<select id="selectDeleteCustomer" resultType="com.kiisoo.ic.generalize.entity.PoiCustomerContactDataStat">
|
|
|
|
|
select id as id, store_id as storeId, negative_feedback_cnt as negativeFeedbackCnt,
|
|
|
|
|
new_contact_cnt as newContactCnt, stat_time as statTime, create_time as createTime
|
|
|
|
|
from poi_customer_contact_data_stat t1 where stat_time =
|
|
|
|
|
(select max(stat_time) from poi_customer_contact_data_stat t2 where t1.store_id=t2.store_id)
|
|
|
|
|
and t1.store_id in
|
|
|
|
|
from poi_customer_contact_data_stat t1 where t1.store_id in
|
|
|
|
|
<foreach collection="shopIds" separator="," item="item" index="index" close=")" open="(">
|
|
|
|
|
#{item}
|
|
|
|
|
</foreach>
|
|
|
|
|