| | |
| | | |
| | | |
| | | <select id="getStoreStaffs" parameterType="Map" resultType="Map"> |
| | | select t.name storeName,t.address,su.user_id staffId , t.store_id storeId |
| | | select t.name storeName,t.address,su.user_id staffId , t.store_id storeId,t.create_time createTime |
| | | from s_store t |
| | | inner join s_store_user su on t.store_id = su.store_id and su.status_cd = '0' |
| | | <if test="relCd != null and relCd != ''"> |
| | |
| | | where |
| | | 1=1 |
| | | <if test="storeTypeCd != null and storeTypeCd != ''"> |
| | | t.store_type_cd = #{storeTypeCd} |
| | | and t.store_type_cd = #{storeTypeCd} |
| | | </if> |
| | | <if test="storeId != null and storeId != ''"> |
| | | t.store_id = #{storeId} |
| | | and t.store_id = #{storeId} |
| | | </if> |
| | | and t.status_cd = '0' |
| | | <if test="page != -1 and page != null "> |
| | | limit #{page}, #{row} |
| | | </if> |
| | | </select> |
| | | |
| | | <select id="getStoreStaffCount" parameterType="Map" resultType="Map"> |
| | |
| | | where |
| | | 1=1 |
| | | <if test="storeTypeCd != null and storeTypeCd != ''"> |
| | | t.store_type_cd = #{storeTypeCd} |
| | | and t.store_type_cd = #{storeTypeCd} |
| | | </if> |
| | | <if test="storeId != null and storeId != ''"> |
| | | t.store_id = #{storeId} |
| | | and t.store_id = #{storeId} |
| | | </if> |
| | | and t.status_cd = '0' |
| | | </select> |