Merge remote-tracking branch 'origin/cc_20250325_select' into cc_20250325_select
# Conflicts: # coolstore-partner-dao/src/main/java/com/cool/store/dao/ShopInfoDAO.java # coolstore-partner-dao/src/main/java/com/cool/store/mapper/ShopInfoMapper.java
This commit is contained in:
@@ -260,4 +260,10 @@ public class ShopInfoDAO {
|
||||
}
|
||||
return shopInfoMapper.getShopIdList(lineId);
|
||||
}
|
||||
public MiniShopsResponse currentShopWhetherOpen(Long shopId,String eid){
|
||||
if (shopId == null){
|
||||
return null;
|
||||
}
|
||||
return shopInfoMapper.currentShopWhetherOpen(shopId,eid);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -134,4 +134,7 @@ public interface ShopInfoMapper extends Mapper<ShopInfoDO> {
|
||||
List<String> getShopCodeList(@Param("lineId") Long lineId);
|
||||
|
||||
List<Long> getShopIdList(@Param("lineId") Long lineId);
|
||||
|
||||
MiniShopsResponse currentShopWhetherOpen(@Param("shopId")Long shopId,@Param("eid")String eid);
|
||||
|
||||
}
|
||||
|
||||
@@ -126,15 +126,11 @@
|
||||
p.create_time as createTime,
|
||||
p.opportunity_point_code as opportunityPointCode,
|
||||
p.opportunity_point_name as opportunityPointName,
|
||||
c.picture_obj as pictureObj,
|
||||
pr.status as recommendStatus,
|
||||
e.store_name as shopName
|
||||
c.picture_obj as pictureObj
|
||||
from
|
||||
xfsg_point_recommend pr
|
||||
inner join xfsg_point_info p on p.id = pr.point_id
|
||||
left join xfsg_point_detail_info c on p.id = c.point_id
|
||||
left JOIN xfsg_shop_info d ON c.shop_id = d.id
|
||||
left JOIN store_${enterpriseId} e ON d.shop_code = e.store_num
|
||||
where
|
||||
p.deleted = 0 and pr.shop_id = #{request.shopId} and pr.deleted = 0
|
||||
<if test="request.status != null and request.status == 1">
|
||||
@@ -146,11 +142,6 @@
|
||||
<if test="request.status != null and request.status == 3">
|
||||
and pr.status in (5, 6)
|
||||
</if>
|
||||
<if test="request.areaCode!=null and request.areaCode !=''">
|
||||
and (p.province_code = #{request.areaCode} or p.city_code = #{request.areaCode} or p.district_code =
|
||||
#{request.areaCode})
|
||||
</if>
|
||||
|
||||
</select>
|
||||
|
||||
<update id="updateStatusByPointIdAndLineId">
|
||||
|
||||
@@ -438,6 +438,13 @@
|
||||
from xfsg_shop_info
|
||||
where deleted = 0 and line_id = #{lineId} and shop_code is not null
|
||||
</select>
|
||||
<select id="currentShopWhetherOpen" resultType="com.cool.store.response.MiniShopsResponse">
|
||||
select a.shop_name as shopName,
|
||||
a.shop_code as shopCode
|
||||
from xfsg_shop_info a
|
||||
inner join store_${eid} b on a.shop_code = b.store_num
|
||||
where a.id = #{shopId}
|
||||
</select>
|
||||
|
||||
<select id="getShopIdList" resultType="java.lang.String">
|
||||
select id
|
||||
|
||||
Reference in New Issue
Block a user