fix
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
|
||||
/**
|
||||
* 店铺信息
|
||||
*
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user