|
|
|
@ -36,6 +36,7 @@
|
|
|
|
select t2.id,t2.staff_code as stafferNo,t1.`name`,t3.`name` as shopName,t3.id as storeId
|
|
|
|
select t2.id,t2.staff_code as stafferNo,t1.`name`,t3.`name` as shopName,t3.id as storeId
|
|
|
|
from privilage_user t1, poi_store_staff t2, poi_store t3
|
|
|
|
from privilage_user t1, poi_store_staff t2, poi_store t3
|
|
|
|
where t1.id = t2.user_id and t2.`status` = 1 and t2.store_code = t3.`code`
|
|
|
|
where t1.id = t2.user_id and t2.`status` = 1 and t2.store_code = t3.`code`
|
|
|
|
|
|
|
|
and t1.id = #{userId}
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
<select id="selectStaffIdByUserId" resultType="java.lang.Long">
|
|
|
|
<select id="selectStaffIdByUserId" resultType="java.lang.Long">
|
|
|
|
|