44323
2024-03-06 198153fd0e686392bc57bd4041c216e499c2de9c
cloud-server-management/src/main/resources/mapper/TStoreMapper.xml
@@ -171,4 +171,23 @@
            and t1.name like concat("%",#{shopName},"%")
        </if>
    </select>
    <select id="querySiteListOfpage" resultType="java.util.Map">
        SELECT t1.id, t1.operatorId, t1.province, t1.city, t2.name,t1.ids,t1.name as siteName
        from t_site t1
        left join t_store t2 on t1.storeId =t2.id
        where t1.state=1 and t2.state=1
        <if test="provinceCode != null and provinceCode!=''">
            and t1.provinceCode = #{provinceCode}
        </if>
        <if test="cityCode != null and cityCode!=''">
            and t1.cityCode = #{cityCode}
        </if>
        <if test="operatorId != null and operatorId!=''">
            and t1.operatorId = #{operatorId}
        </if>
        <if test="storeName != null and storeName != ''">
            and t1.name like CONCAT('%',#{storeName},'%')
        </if>
    </select>
</mapper>