|
|
|
@ -6,7 +6,6 @@ import com.github.pagehelper.PageInfo;
|
|
|
|
|
import com.glxp.sale.admin.annotation.AuthRuleAnnotation;
|
|
|
|
|
import com.glxp.sale.admin.constant.ConstantStatus;
|
|
|
|
|
import com.glxp.sale.admin.constant.ConstantType;
|
|
|
|
|
import com.glxp.sale.admin.entity.info.CompanyEntity;
|
|
|
|
|
import com.glxp.sale.admin.entity.inventory.InvProductDetailEntity;
|
|
|
|
|
import com.glxp.sale.admin.entity.inventory.InvProductEntity;
|
|
|
|
|
import com.glxp.sale.admin.req.inout.DeleteRequest;
|
|
|
|
@ -50,14 +49,14 @@ public class InvPreInProductsController {
|
|
|
|
|
@GetMapping("spms/prein/inv/products/filter")
|
|
|
|
|
public BaseResponse filterInvProduct(FilterInvProductRequest filterInvProductRequest) {
|
|
|
|
|
boolean showSup = false;
|
|
|
|
|
if (Constant.SYSTEM_CUSTOMER_ID.equals(filterInvProductRequest.getCustomerId())) {
|
|
|
|
|
/* if (Constant.SYSTEM_CUSTOMER_ID.equals(filterInvProductRequest.getCustomerId())) {
|
|
|
|
|
filterInvProductRequest.setCustomerId(null);
|
|
|
|
|
showSup = true;
|
|
|
|
|
} else {
|
|
|
|
|
CompanyEntity companyEntity = companyService.findCompany((filterInvProductRequest.getCustomerId()));
|
|
|
|
|
filterInvProductRequest.setSupId(companyEntity.getUnitIdFk());
|
|
|
|
|
filterInvProductRequest.setCustomerId(null);
|
|
|
|
|
}
|
|
|
|
|
}*/
|
|
|
|
|
List<InvProductResponse> invProductResponses = invProductService.filterJoinInvProduct(filterInvProductRequest);
|
|
|
|
|
PageInfo<InvProductResponse> pageInfo;
|
|
|
|
|
pageInfo = new PageInfo<>(invProductResponses);
|
|
|
|
|