|
@@ -1191,15 +1191,16 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</select>
|
|
</select>
|
|
|
|
|
|
|
|
<select id="selectIdListByHandleCollectionIds" resultType="com.fs.qw.vo.FsStoreOrderScrmIdVo">
|
|
<select id="selectIdListByHandleCollectionIds" resultType="com.fs.qw.vo.FsStoreOrderScrmIdVo">
|
|
|
- select id,handle_collection_id from fs_store_order_scrm where handle_collection_id in
|
|
|
|
|
- <foreach collection="handwriteCollectionIds" index="index" item="item" open="(" separator="," close=")">
|
|
|
|
|
- #{item}
|
|
|
|
|
- </foreach>
|
|
|
|
|
-</select>
|
|
|
|
|
|
|
+ select id,handle_collection_id from fs_store_order_scrm where handle_collection_id in
|
|
|
|
|
+ <foreach collection="handwriteCollectionIds" index="index" item="item" open="(" separator="," close=")">
|
|
|
|
|
+ #{item}
|
|
|
|
|
+ </foreach>
|
|
|
|
|
+ </select>
|
|
|
|
|
|
|
|
<select id="fetchPharmacyPrescribeOrderPhoneCountList"
|
|
<select id="fetchPharmacyPrescribeOrderPhoneCountList"
|
|
|
resultType="com.fs.hisStore.vo.FsStoreOrderScrmPhoneAndOrderNumVO">
|
|
resultType="com.fs.hisStore.vo.FsStoreOrderScrmPhoneAndOrderNumVO">
|
|
|
- SELECT user_phone, COUNT(*) AS valid_order_num
|
|
|
|
|
|
|
+ SELECT user_phone AS phone,
|
|
|
|
|
+ COUNT(*) AS orderNum
|
|
|
FROM fs_store_order_scrm
|
|
FROM fs_store_order_scrm
|
|
|
WHERE paid = 1
|
|
WHERE paid = 1
|
|
|
AND status IN (1, 2, 3)
|
|
AND status IN (1, 2, 3)
|