|
|
@ -86,8 +86,12 @@ public class DistributionStockArticleController extends BladeController { |
|
|
|
public R<IPage<DistributionStockArticleVO>> list(@ApiIgnore @RequestParam Map<String, Object> distributionStockArticle, Query query) { |
|
|
|
public R<IPage<DistributionStockArticleVO>> list(@ApiIgnore @RequestParam Map<String, Object> distributionStockArticle, Query query) { |
|
|
|
Object o = distributionStockArticle.get("orderSelfNumbering"); |
|
|
|
Object o = distributionStockArticle.get("orderSelfNumbering"); |
|
|
|
distributionStockArticle.remove("orderSelfNumbering"); |
|
|
|
distributionStockArticle.remove("orderSelfNumbering"); |
|
|
|
|
|
|
|
Object o2 = distributionStockArticle.get("startDate"); |
|
|
|
|
|
|
|
Object o1 = distributionStockArticle.get("entDate"); |
|
|
|
Object d = distributionStockArticle.get("id"); |
|
|
|
Object d = distributionStockArticle.get("id"); |
|
|
|
distributionStockArticle.remove("id"); |
|
|
|
distributionStockArticle.remove("id"); |
|
|
|
|
|
|
|
distributionStockArticle.remove("startDate"); |
|
|
|
|
|
|
|
distributionStockArticle.remove("entDate"); |
|
|
|
QueryWrapper<DistributionStockArticleEntity> queryWrapper = Condition.getQueryWrapper(distributionStockArticle, DistributionStockArticleEntity.class); |
|
|
|
QueryWrapper<DistributionStockArticleEntity> queryWrapper = Condition.getQueryWrapper(distributionStockArticle, DistributionStockArticleEntity.class); |
|
|
|
if(Func.isNotEmpty(o)){ |
|
|
|
if(Func.isNotEmpty(o)){ |
|
|
|
queryWrapper.in("order_self_numbering",String.valueOf(o).split(",")); |
|
|
|
queryWrapper.in("order_self_numbering",String.valueOf(o).split(",")); |
|
|
@ -95,6 +99,9 @@ public class DistributionStockArticleController extends BladeController { |
|
|
|
if(ObjectUtil.isNotEmpty(d)){ |
|
|
|
if(ObjectUtil.isNotEmpty(d)){ |
|
|
|
queryWrapper.in("id",String.valueOf(d).split(",")); |
|
|
|
queryWrapper.in("id",String.valueOf(d).split(",")); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
if(ObjectUtil.isNotEmpty(o2)){ |
|
|
|
|
|
|
|
queryWrapper.between("warehouse_entry_time",o2,o1); |
|
|
|
|
|
|
|
} |
|
|
|
IPage<DistributionStockArticleEntity> pages = distributionStockArticleService.page(Condition.getPage(query), queryWrapper); |
|
|
|
IPage<DistributionStockArticleEntity> pages = distributionStockArticleService.page(Condition.getPage(query), queryWrapper); |
|
|
|
return R.data(DistributionStockArticleWrapper.build().pageVO(pages)); |
|
|
|
return R.data(DistributionStockArticleWrapper.build().pageVO(pages)); |
|
|
|
|
|
|
|
|
|
|
|