|
|
@@ -159,7 +159,9 @@ public class JsDistributionServiceImpl extends ServiceImpl<JsDistributionMapper,
|
|
|
@Override
|
|
|
public PaginationUtil.PageResult<JsProduction> productionPage(Integer pageNum, Integer pageSize, String startTime, String endTime, String animalCertNo) {
|
|
|
QueryWrapper<JsDistribution> queryWrapper = new QueryWrapper<>();
|
|
|
- queryWrapper.eq(StringUtils.isNotEmpty(animalCertNo), "animal_cert_no", animalCertNo).groupBy("supplier_name,purchaser_name");
|
|
|
+ queryWrapper.eq(StringUtils.isNotEmpty(animalCertNo), "animal_cert_no", animalCertNo)
|
|
|
+ .groupBy("supplier_name,purchaser_name,DATE(distribution_time)")
|
|
|
+ .orderByDesc("distribution_time");
|
|
|
if ("".equals(startTime) || null == startTime) {
|
|
|
|
|
|
} else {
|