添加ec同步数据到小程序
This commit is contained in:
@@ -49,6 +49,18 @@
|
||||
</foreach>
|
||||
</if>
|
||||
</select>
|
||||
<select id="selectByHourDate" resultType="com.cool.store.entity.SyncEcCustomerDO" >
|
||||
SELECT a.id as id, a.username as customername,a.mobile as customermobile,c.`name` as followname,c.mobile as followmobile FROM hy_partner_user_info a LEFT join hy_partner_line_info b on
|
||||
a.partner_id=b.partner_id left join enterprise_user c on b.investment_manager=c.user_id
|
||||
WHERE a.create_time BETWEEN #{selectTime} and #{now} or
|
||||
a.update_time BETWEEN #{selectTime} and #{now} order by a.id Limit #{limit1},#{limit2}
|
||||
</select>
|
||||
<select id="selectByHourDateCount" resultType="java.lang.Integer">
|
||||
SELECT count(*) FROM hy_partner_user_info a LEFT join hy_partner_line_info b on
|
||||
a.partner_id=b.partner_id left join enterprise_user c on b.investment_manager=c.user_id
|
||||
WHERE a.create_time BETWEEN #{selectTime} and #{now} or
|
||||
a.update_time BETWEEN #{selectTime} and #{now}
|
||||
</select>
|
||||
|
||||
<insert id="insertSelective" keyColumn="id" keyProperty="record.id" useGeneratedKeys="true">
|
||||
insert into hy_partner_user_info
|
||||
|
||||
Reference in New Issue
Block a user