fix 记账本定时任务
This commit is contained in:
@@ -79,11 +79,11 @@ public class ShopInfoDAO {
|
||||
return shopInfoMapper.getShopList(lineId);
|
||||
}
|
||||
|
||||
public List<ShopInfoDO> getShopIdByShopStatus(Integer shopStatus){
|
||||
public List<ShopInfoDO> getShopIdBySuccessOpen(Integer shopStatus){
|
||||
if (Objects.isNull(shopStatus)){
|
||||
return new ArrayList<>();
|
||||
}
|
||||
return shopInfoMapper.getShopIdByShopStatus(shopStatus);
|
||||
return shopInfoMapper.getShopIdBySuccessOpen(shopStatus);
|
||||
}
|
||||
|
||||
public List<ShopInfoDO> getShopListByRegion(Long lineId,List<Long> regionIdList,String userId){
|
||||
|
||||
@@ -121,7 +121,7 @@ public interface ShopInfoMapper extends Mapper<ShopInfoDO> {
|
||||
|
||||
List<ShopInfoDO> selectByLines (@Param("list") List<Long> list,@Param("regionIds") List<Long> regionIds);
|
||||
|
||||
List<ShopInfoDO> getShopIdByShopStatus(@Param("shopStatus") Integer shopStatus);
|
||||
List<ShopInfoDO> getShopIdBySuccessOpen(@Param("shopStatus") Integer shopStatus);
|
||||
|
||||
List<MiniShopsResponse> getShopListSuccessOpen(@Param("eid") String eid,@Param("lineId") Long lineId);
|
||||
|
||||
|
||||
@@ -407,10 +407,11 @@
|
||||
#{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 id="getShopIdBySuccessOpen" resultType="com.cool.store.entity.ShopInfoDO">
|
||||
select a.id as id, a.partner_id as partnerId
|
||||
from xfsg_shop_info a
|
||||
inner join store_${eid} b on a.shop_code = b.store_num
|
||||
|
||||
</select>
|
||||
<select id="getShopListSuccessOpen" resultType="com.cool.store.response.MiniShopsResponse">
|
||||
select a.shop_name as shopName,
|
||||
|
||||
@@ -317,7 +317,8 @@ public class XxlJobHandler {
|
||||
List<Long> shopIdList = new ArrayList<>();
|
||||
while (hasNext) {
|
||||
PageHelper.startPage(pageNum, pageSize);
|
||||
List<ShopInfoDO> shopList = shopInfoDAO.getShopIdByShopStatus(ShopStatusEnum.DONE.getCode());
|
||||
//获取成功开店的门店
|
||||
List<ShopInfoDO> shopList = shopInfoDAO.getShopIdBySuccessOpen(ShopStatusEnum.DONE.getCode());
|
||||
if (CollectionUtils.isEmpty(shopList)) {
|
||||
log.info("------initTallyBook is empty------");
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user