|
|
|
@ -16,8 +16,10 @@
|
|
|
|
|
*/ |
|
|
|
|
package com.logpm.distribution.controller; |
|
|
|
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
|
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
|
|
|
|
import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
|
|
|
|
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport; |
|
|
|
|
import com.logpm.basicdata.entity.BasicdataWarehouseEntity; |
|
|
|
|
import com.logpm.basicdata.feign.IBasicdataWarehouseClient; |
|
|
|
@ -184,7 +186,11 @@ public class DistributionStockArticleController extends BladeController {
|
|
|
|
|
Object o1 = distributionStockArticle.get("entDate"); |
|
|
|
|
String orderIds = (String) distributionStockArticle.get("orderIds"); |
|
|
|
|
String customerName = (String) distributionStockArticle.get("customerName"); |
|
|
|
|
String reservationStatus = (String) distributionStockArticle.get("reservationStatus"); |
|
|
|
|
String warehouseEntryTime = (String) distributionStockArticle.get("warehouseEntryTime"); |
|
|
|
|
String customerTelephone = (String) distributionStockArticle.get("customerTelephone"); |
|
|
|
|
String completeSet = (String) distributionStockArticle.get("completeSet"); |
|
|
|
|
String freezeStatus = (String) distributionStockArticle.get("freezeStatus"); |
|
|
|
|
Object d = distributionStockArticle.get("id"); |
|
|
|
|
distributionStockArticle.remove("id"); |
|
|
|
|
distributionStockArticle.remove("startDate"); |
|
|
|
@ -194,10 +200,23 @@ public class DistributionStockArticleController extends BladeController {
|
|
|
|
|
// distributionStockArticle.remove("currentPage");
|
|
|
|
|
// distributionStockArticle.remove("total");
|
|
|
|
|
QueryWrapper<DistributionStockArticleEntity> queryWrapper = Condition.getQueryWrapper(distributionStockArticle, DistributionStockArticleEntity.class); |
|
|
|
|
LambdaQueryWrapper<DistributionStockArticleEntity> lambda = Wrappers.<DistributionStockArticleEntity>query().lambda(); |
|
|
|
|
queryWrapper.ne("reservation_status","30"); |
|
|
|
|
queryWrapper.lambda().eq(DistributionStockArticleEntity::getWarehouseId,myCurrentWarehouse.getId()); |
|
|
|
|
if(Func.isNotEmpty(o)){ |
|
|
|
|
queryWrapper.in("orderCode",String.valueOf(o).split(",")); |
|
|
|
|
queryWrapper.in("order_code",String.valueOf(o).split(",")); |
|
|
|
|
} |
|
|
|
|
if(Func.isNotEmpty(reservationStatus)){ |
|
|
|
|
queryWrapper.eq("reservation_status",reservationStatus); |
|
|
|
|
} |
|
|
|
|
if(Func.isNotEmpty(warehouseEntryTime)){ |
|
|
|
|
queryWrapper.apply("datediff(warehouse_entry_time,{0} ) = 0",warehouseEntryTime); |
|
|
|
|
} |
|
|
|
|
if(Func.isNotEmpty(freezeStatus)){ |
|
|
|
|
queryWrapper.eq("freeze_status",freezeStatus); |
|
|
|
|
} |
|
|
|
|
if(Func.isNotEmpty(completeSet)){ |
|
|
|
|
queryWrapper.eq("complete_set",completeSet); |
|
|
|
|
} |
|
|
|
|
if(ObjectUtil.isNotEmpty(d)){ |
|
|
|
|
queryWrapper.in("id",String.valueOf(d).split(",")); |
|
|
|
@ -208,9 +227,9 @@ public class DistributionStockArticleController extends BladeController {
|
|
|
|
|
if(Func.isNotEmpty(orderIds)){ |
|
|
|
|
queryWrapper.notIn("id",Func.toLongList(orderIds)); |
|
|
|
|
} |
|
|
|
|
if(Func.isNotEmpty(orderIds)){ |
|
|
|
|
queryWrapper.notIn("id",Func.toLongList(orderIds)); |
|
|
|
|
} |
|
|
|
|
// if(Func.isNotEmpty(orderIds)){
|
|
|
|
|
// queryWrapper.notIn("id",Func.toLongList(orderIds));
|
|
|
|
|
// }
|
|
|
|
|
if(Func.isNotEmpty(customerName)){ |
|
|
|
|
queryWrapper.like("customer_name",customerName); |
|
|
|
|
} |
|
|
|
@ -239,7 +258,6 @@ public class DistributionStockArticleController extends BladeController {
|
|
|
|
|
IPage<DistributionStockArticleEntity> pages = distributionStockArticleService.page(Condition.getPage(query), queryWrapper); |
|
|
|
|
IPage<DistributionStockArticleVO> distributionStockArticleVOIPage = distributionStockArticleService.handlePackage(DistributionStockArticleWrapper.build().pageVO(pages)); |
|
|
|
|
return R.data(distributionStockArticleVOIPage); |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|