swagger mysql

dev_0531
zhenghuang 5 years ago
parent 45e53a944c
commit 3a9f4f6fcc

@ -11,13 +11,14 @@
</select>
<select id="selectSellersByShopIds" resultType="com.kiisoo.ic.store.bean.PoiStoreStaffDTO">
select
t2.id, t2.name, t2.mobil, t2.email, t2.address, t2.remark, t2.status,t1.id as staffId,t1.staff_code,t1.store_id,t1.user_id,t1.store_code,t1.type,t1.avatar
t2.id, t2.name, t2.mobil, t2.email, t2.address, t2.remark, t2.status,t1.id as
staffId,t1.staff_code,t1.store_id,t1.user_id,t1.store_code,t1.type,t1.avatar
from poi_store_staff t1, privilage_user t2
where t1.user_id = t2.id and
where t1.user_id = t2.id and t1.type=4 and
<choose>
<when test="shopId != null and shopId.size > 0">
t1.store_id in
<foreach collection="shopId" index="index" item="item" open="(" separator="," close=")">
<foreach collection="shopId" index="index" item="item" open="(" separator="," close=")">
#{item}
</foreach>
</when>
@ -33,12 +34,12 @@
count(1)
from poi_store_staff t1, privilage_user t2
where t1.user_id = t2.id
<if test="shopId != null and shopId.size > 0">
and t1.store_id in
<foreach collection="shopId" index="index" item="item" open="(" separator="," close=")">
#{item}
</foreach>
</if>
<if test="shopId != null and shopId.size > 0">
and t1.store_id in
<foreach collection="shopId" index="index" item="item" open="(" separator="," close=")">
#{item}
</foreach>
</if>
</select>
<select id="selectShopManagerByShop" resultType="java.lang.String">
select staff_code from poi_store_staff where store_id = #{shopId} and status = 1 and type = 1 and user_id != 0

Loading…
Cancel
Save