|
@@ -261,6 +261,9 @@ public class GoodsDescController extends BladeController {
|
|
|
@RequestParam(name = "upperFrame", required = false) String upperFrame,
|
|
@RequestParam(name = "upperFrame", required = false) String upperFrame,
|
|
|
@RequestParam(name = "label", required = false) String label,
|
|
@RequestParam(name = "label", required = false) String label,
|
|
|
@RequestParam(name = "categoryitem", required = false) String categoryitem,
|
|
@RequestParam(name = "categoryitem", required = false) String categoryitem,
|
|
|
|
|
+ @RequestParam(name = "categoryitemId", required = false) String categoryitemId,
|
|
|
|
|
+ @RequestParam(name = "brandId", required = false) String brandId,
|
|
|
|
|
+ @RequestParam(name = "specs", required = false) String specs,
|
|
|
@RequestParam(name = "artsVision", required = false) String artsVision) {
|
|
@RequestParam(name = "artsVision", required = false) String artsVision) {
|
|
|
LambdaQueryWrapper<GoodsDesc> goodsDescLambdaQueryWrapper = new LambdaQueryWrapper<>();
|
|
LambdaQueryWrapper<GoodsDesc> goodsDescLambdaQueryWrapper = new LambdaQueryWrapper<>();
|
|
|
|
|
|
|
@@ -279,15 +282,18 @@ public class GoodsDescController extends BladeController {
|
|
|
goodsDescLambdaQueryWrapper.like(!StringUtils.isBlank(code), GoodsDesc::getCode, code);
|
|
goodsDescLambdaQueryWrapper.like(!StringUtils.isBlank(code), GoodsDesc::getCode, code);
|
|
|
goodsDescLambdaQueryWrapper.like(!StringUtils.isBlank(label), GoodsDesc::getCode, label);
|
|
goodsDescLambdaQueryWrapper.like(!StringUtils.isBlank(label), GoodsDesc::getCode, label);
|
|
|
goodsDescLambdaQueryWrapper.like(!StringUtils.isBlank(remarks), GoodsDesc::getCode, remarks);
|
|
goodsDescLambdaQueryWrapper.like(!StringUtils.isBlank(remarks), GoodsDesc::getCode, remarks);
|
|
|
|
|
+ goodsDescLambdaQueryWrapper.like(!StringUtils.isBlank(specs), GoodsDesc::getSpecs, specs);
|
|
|
goodsDescLambdaQueryWrapper.eq(GoodsDesc::getTenantId, AuthUtil.getTenantId());
|
|
goodsDescLambdaQueryWrapper.eq(GoodsDesc::getTenantId, AuthUtil.getTenantId());
|
|
|
goodsDescLambdaQueryWrapper.eq(GoodsDesc::getType, 0);
|
|
goodsDescLambdaQueryWrapper.eq(GoodsDesc::getType, 0);
|
|
|
goodsDescLambdaQueryWrapper.eq(ObjectUtils.isNotNull(status), GoodsDesc::getStatus, status);
|
|
goodsDescLambdaQueryWrapper.eq(ObjectUtils.isNotNull(status), GoodsDesc::getStatus, status);
|
|
|
|
|
+ goodsDescLambdaQueryWrapper.eq(ObjectUtils.isNotNull(brandId), GoodsDesc::getBrandId, brandId);
|
|
|
goodsDescLambdaQueryWrapper.eq(ObjectUtils.isNotNull(unit), GoodsDesc::getUnit, unit);
|
|
goodsDescLambdaQueryWrapper.eq(ObjectUtils.isNotNull(unit), GoodsDesc::getUnit, unit);
|
|
|
goodsDescLambdaQueryWrapper.eq(ObjectUtils.isNotNull(categoryitem), GoodsDesc::getCategoryitem, categoryitem);
|
|
goodsDescLambdaQueryWrapper.eq(ObjectUtils.isNotNull(categoryitem), GoodsDesc::getCategoryitem, categoryitem);
|
|
|
goodsDescLambdaQueryWrapper.eq(ObjectUtils.isNotNull(upperFrame), GoodsDesc::getUpperFrame, upperFrame);
|
|
goodsDescLambdaQueryWrapper.eq(ObjectUtils.isNotNull(upperFrame), GoodsDesc::getUpperFrame, upperFrame);
|
|
|
if (StringUtils.isNotEmpty(artsVision)) {
|
|
if (StringUtils.isNotEmpty(artsVision)) {
|
|
|
goodsDescLambdaQueryWrapper.and(i -> i.like(GoodsDesc::getArtsVision, artsVision).or().isNull(GoodsDesc::getArtsVision));
|
|
goodsDescLambdaQueryWrapper.and(i -> i.like(GoodsDesc::getArtsVision, artsVision).or().isNull(GoodsDesc::getArtsVision));
|
|
|
}
|
|
}
|
|
|
|
|
+ goodsDescLambdaQueryWrapper.apply(ObjectUtils.isNotNull(categoryitemId), "find_in_set(categoryitem_id,'" + categoryitemId + "')");
|
|
|
goodsDescLambdaQueryWrapper.orderByDesc(GoodsDesc::getCreateTime);
|
|
goodsDescLambdaQueryWrapper.orderByDesc(GoodsDesc::getCreateTime);
|
|
|
Page<GoodsDesc> page = new Page<>(current, size);
|
|
Page<GoodsDesc> page = new Page<>(current, size);
|
|
|
List<GoodsType> types = goodsDescType.list(new LambdaQueryWrapper<GoodsType>()
|
|
List<GoodsType> types = goodsDescType.list(new LambdaQueryWrapper<GoodsType>()
|