Merge branch 'ww' into test
This commit is contained in:
@@ -134,8 +134,8 @@ public class TbConsInfoFlowServiceImpl implements TbConsInfoFlowService {
|
|||||||
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
|
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
|
||||||
criteria.setStartTime(sdf.parse("2024-01-01"));//创建2024年1月1日的Date对象
|
criteria.setStartTime(sdf.parse("2024-01-01"));//创建2024年1月1日的Date对象
|
||||||
}
|
}
|
||||||
return stockRepository.consStockCount(criteria.getShopId().toString(), criteria.getProductName(),
|
return stockRepository.consStockCount(criteria.getShopId(), criteria.getProductName(),
|
||||||
criteria.getCategoryId(), DateUtil.getStrTime(criteria.getStartTime()), DateUtil.getStrTime(criteria.getEndTime()));
|
criteria.getCategoryId(), criteria.getStartTime(), criteria.getEndTime());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@@ -7,6 +7,8 @@ import org.springframework.data.domain.Pageable;
|
|||||||
import org.springframework.data.jpa.repository.JpaRepository;
|
import org.springframework.data.jpa.repository.JpaRepository;
|
||||||
import org.springframework.data.jpa.repository.Query;
|
import org.springframework.data.jpa.repository.Query;
|
||||||
|
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author lyf
|
* @author lyf
|
||||||
@@ -158,8 +160,8 @@ public interface ProductStockCountRepository extends JpaRepository<TbProductStoc
|
|||||||
" flow.shopId = :shopId " +
|
" flow.shopId = :shopId " +
|
||||||
" AND flow.createTime > :startTime " +
|
" AND flow.createTime > :startTime " +
|
||||||
" AND flow.createTime < :endTime ")
|
" AND flow.createTime < :endTime ")
|
||||||
TbProductStockCountVo consStockCount(String shopId,
|
TbProductStockCountVo consStockCount(Integer shopId,
|
||||||
String conName,
|
String conName,
|
||||||
String conTypeId, String startTime, String endTime);
|
String conTypeId, Date startTime, Date endTime);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user