parent
5468fa56de
commit
2d03914963
|
|
@ -38,7 +38,7 @@ public interface TbShopCategoryRepository extends JpaRepository<TbShopCategory,
|
|||
@Query("SELECT category FROM TbShopCategory category where category.tree IN :ids and category.id != category.tree")
|
||||
List<TbShopCategory> findChildren(@Param("ids")List<Integer> ids);
|
||||
|
||||
@Query(" SELECT category FROM TbShopCategory category where category.shopId = :shopId and (category.pid is null or category.pid != '')")
|
||||
@Query(" SELECT category FROM TbShopCategory category where category.shopId = :shopId and (category.pid is null or category.pid = '')")
|
||||
Page<TbShopCategory> findAllBy(@Param("shopId") String shopId,Pageable pageable);
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -244,6 +244,11 @@ public class TbProductStockDetailServiceImpl implements TbProductStockDetailServ
|
|||
@Override
|
||||
public void addSaleRecord(Integer orderId) {
|
||||
List<StockCountDTO> stockCountDTOS = stockCountRepository.countStockById(orderId);
|
||||
try {
|
||||
Thread.sleep(3000l);
|
||||
} catch (InterruptedException e) {
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
log.info("查询到订单id: {}的所有库存数据: {}", orderId, stockCountDTOS);
|
||||
// stockCountDTOS.forEach(s -> {
|
||||
// //客座费不统计
|
||||
|
|
|
|||
Loading…
Reference in New Issue