获取状态为完成的门店列表接口+记账本定时任务
This commit is contained in:
@@ -9,6 +9,7 @@ import com.cool.store.dto.point.ShopPointDTO;
|
||||
import com.cool.store.entity.LineInfoDO;
|
||||
import com.cool.store.entity.ShopInfoDO;
|
||||
import com.cool.store.enums.ErrorCodeEnum;
|
||||
import com.cool.store.enums.point.ShopStatusEnum;
|
||||
import com.cool.store.exception.ServiceException;
|
||||
import com.cool.store.mapper.ShopInfoMapper;
|
||||
import com.cool.store.request.BranchShopRequest;
|
||||
@@ -16,6 +17,7 @@ import com.cool.store.request.PlanListRequest;
|
||||
import com.cool.store.request.PointLinePageRequest;
|
||||
import com.cool.store.request.PreparationRequest;
|
||||
import com.cool.store.request.platformBuildListRequest;
|
||||
import com.cool.store.response.MiniShopsResponse;
|
||||
import com.cool.store.response.PlatformBuildListResponse;
|
||||
import com.cool.store.vo.shop.StageShopCountVO;
|
||||
import com.github.pagehelper.Page;
|
||||
@@ -27,6 +29,7 @@ import org.apache.commons.collections4.CollectionUtils;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.springframework.stereotype.Repository;
|
||||
import tk.mybatis.mapper.entity.Example;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.ArrayList;
|
||||
@@ -76,6 +79,13 @@ public class ShopInfoDAO {
|
||||
return shopInfoMapper.getShopList(lineId);
|
||||
}
|
||||
|
||||
public List<ShopInfoDO> getShopIdByShopStatus(Integer shopStatus){
|
||||
if (Objects.isNull(shopStatus)){
|
||||
return new ArrayList<>();
|
||||
}
|
||||
return shopInfoMapper.getShopIdByShopStatus(shopStatus);
|
||||
}
|
||||
|
||||
public List<ShopInfoDO> getShopListByRegion(Long lineId,List<Long> regionIdList,String userId){
|
||||
if(Objects.isNull(lineId)){
|
||||
return new ArrayList<>();
|
||||
@@ -219,4 +229,7 @@ public class ShopInfoDAO {
|
||||
}
|
||||
return shopInfoMapper.selectByLines(lineIds,regionIds);
|
||||
}
|
||||
public List<MiniShopsResponse> getShopListAndStatusIsOverByLineId(Long lineId){
|
||||
return shopInfoMapper.getShopListAndStatusIsOverByLineId(lineId);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -12,6 +12,7 @@ import com.cool.store.request.PlanListRequest;
|
||||
import com.cool.store.request.PointLinePageRequest;
|
||||
import com.cool.store.request.PreparationRequest;
|
||||
import com.cool.store.request.platformBuildListRequest;
|
||||
import com.cool.store.response.MiniShopsResponse;
|
||||
import com.cool.store.response.PlatformBuildListResponse;
|
||||
import com.cool.store.vo.shop.StageShopCountVO;
|
||||
import com.github.pagehelper.Page;
|
||||
@@ -119,4 +120,8 @@ public interface ShopInfoMapper extends Mapper<ShopInfoDO> {
|
||||
Boolean batchUpdate(List<ShopInfoDO> list);
|
||||
|
||||
List<ShopInfoDO> selectByLines (@Param("list") List<Long> list,@Param("regionIds") List<Long> regionIds);
|
||||
|
||||
List<ShopInfoDO> getShopIdByShopStatus(@Param("shopStatus") Integer shopStatus);
|
||||
|
||||
List<MiniShopsResponse> getShopListAndStatusIsOverByLineId(Long lineId);
|
||||
}
|
||||
|
||||
@@ -403,6 +403,16 @@
|
||||
#{item}
|
||||
</foreach>
|
||||
</select>
|
||||
<select id="getShopIdByShopStatus" resultType="com.cool.store.entity.ShopInfoDO">
|
||||
select id ,partner_id as partnerId
|
||||
from xfsg_shop_info
|
||||
where shop_status = #{shopStatus}
|
||||
</select>
|
||||
<select id="getShopListAndStatusIsOverByLineId" resultType="com.cool.store.response.MiniShopsResponse">
|
||||
select id, shop_name as shopName
|
||||
from xfsg_shop_info
|
||||
where line_id = #{lineId} and shop_status = 1
|
||||
</select>
|
||||
|
||||
<update id="batchUpdate" parameterType="list">
|
||||
<foreach collection="list" item="item" index="index" open="" close="" separator=";">
|
||||
|
||||
Reference in New Issue
Block a user