java110
2021-01-03 705923fdc6e615a0435c85d3d60eab0180b79a68
java110-db/src/main/resources/mapper/store/StoreServiceDaoImplMapper.xml
@@ -576,7 +576,7 @@
    <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 != ''">
@@ -585,12 +585,15 @@
        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">
@@ -603,10 +606,10 @@
        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>