Merge remote-tracking branch 'origin/cc_partner_init' into cc_partner_init

This commit is contained in:
shuo.wang
2024-04-26 19:08:49 +08:00
16 changed files with 557 additions and 9 deletions

View File

@@ -125,5 +125,49 @@
group by line_id
</select>
<select id="ListByCondition" resultType="com.cool.store.dto.Preparation.PreparationDTO">
select
a.id as id,
a.shop_name as shopName,
a.store_num as storeNum,
a.shop_manager_user_id as shopManagerUserId,
a.region_id as regionId,
a.plan_open_time as planOpenTime,
b.username as username,
b.mobile as mobile
from xfsg_shop_info a left join xfsg_line_info b on a.line_id = b.id
where a.deleted = 0
<if test="request.keyword != null and request.keyword != ''">
and (b.username like concat('%', #{request.keyword}, '%') or b.mobile like concat('%', #{request.keyword}, '%'))
</if>
<if test="request.shopName!=null and request.shopName!=''">
and a.shop_name like concat('%', #{request.shopName}, '%')
</if>
<if test="request.investmentUserId != null and request.investmentUserId != ''">
and b.investment_manager = #{request.investmentUserId}
</if>
<if test="request.supervisorUserId != null and request.supervisorUserId != ''">
and a.supervisor_user_id = #{request.supervisorUserId}
</if>
<if test="request.planOpenStartTime != null and request.planOpenStartTime != ''">
and a.plan_open_time >= #{request.planOpenStartTime}
</if>
<if test="request.planOpenEndTime != null and request.planOpenEndTime != ''">
<![CDATA[and a.plan_open_time <= #{request.planOpenEndTime}]]>
</if>
<if test="request.regionIds != null and request.regionIds.size() > 0">
and a.region_id in
<foreach collection="request.regionIds" item="regionId" index="index" open="(" separator="," close=")">
#{regionId}
</foreach>
</if>
<if test="request.authRegionIds != null and request.authRegionIds.size() > 0">
and a.region_id in
<foreach collection="request.authRegionIds" item="regionId" index="index" open="(" separator="," close=")">
#{regionId}
</foreach>
</if>
</select>
</mapper>