This commit is contained in:
zhangchenbiao
2024-05-07 10:32:50 +08:00
parent 45fc091c44
commit 10dfaafaba
3 changed files with 0 additions and 30 deletions

View File

@@ -86,19 +86,6 @@ public class ShopInfoDAO {
return shopInfoMapper.updateByPrimaryKeySelective(shopInfo);
}
/**
* 门店绑定铺位
* @param unSelectShopIds
* @param pointId
* @return
*/
public Integer occupyShopPoint(List<Long> unSelectShopIds, Long pointId) {
if(CollectionUtils.isEmpty(unSelectShopIds) || Objects.isNull(pointId)){
return CommonConstants.ZERO;
}
return shopInfoMapper.occupyShopPoint(unSelectShopIds, pointId);
}
public ShopInfoDO getShopInfoByPointId(Long lineId, Long pointId){
if(Objects.isNull(lineId) || Objects.isNull(pointId)){
return null;

View File

@@ -33,15 +33,6 @@ public interface ShopInfoMapper extends Mapper<ShopInfoDO> {
*/
List<ShopInfoDO> getShopList(@Param("lineId") Long lineId);
/**
* 门店占铺位
*
* @param unSelectShopIds
* @param pointId
* @return
*/
Integer occupyShopPoint(@Param("unSelectShopIds") List<Long> unSelectShopIds, @Param("pointId") Long pointId);
/**
* 店铺信息
*

View File

@@ -36,14 +36,6 @@
select <include refid="allColumn"/> from xfsg_shop_info where line_id = #{lineId} and deleted= '0'
</select>
<update id="occupyShopPoint">
update xfsg_shop_info set point_id = #{pointId} where point_id is null and shop_stage = '1' and deleted = '0' and id in
<foreach collection="unSelectShopIds" item="shopId" separator="," open="(" close=")">
#{shopId}
</foreach>
order by id asc limit 1
</update>
<select id="getShopInfoByPointId" resultMap="BaseResultMap">
select <include refid="allColumn"/> from xfsg_shop_info where point_id = #{pointId} and deleted= '0'
</select>