修改BOM查询逻辑联查name和code
This commit is contained in:
@@ -56,5 +56,22 @@ public class WmsProductBomVo {
|
||||
@ExcelProperty(value = "备注")
|
||||
private String remark;
|
||||
|
||||
/**
|
||||
* 产品名称
|
||||
*/
|
||||
private String productName;
|
||||
/**
|
||||
* 产品编码
|
||||
*/
|
||||
private String productCode;
|
||||
/**
|
||||
* 原材料名称
|
||||
*/
|
||||
private String rawMaterialName;
|
||||
/**
|
||||
* 原材料编码
|
||||
*/
|
||||
private String rawMaterialCode;
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -3,6 +3,9 @@ package com.klp.mapper;
|
||||
import com.klp.domain.WmsProductBom;
|
||||
import com.klp.domain.vo.WmsProductBomVo;
|
||||
import com.klp.common.core.mapper.BaseMapperPlus;
|
||||
import com.baomidou.mybatisplus.core.conditions.Wrapper;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@@ -15,4 +18,9 @@ import java.util.List;
|
||||
public interface WmsProductBomMapper extends BaseMapperPlus<WmsProductBomMapper, WmsProductBom, WmsProductBomVo> {
|
||||
|
||||
List<WmsProductBom> listByProductId(Long productId);
|
||||
|
||||
/**
|
||||
* 分页联查产品和原材料名称编码,支持Wrapper动态条件,返回Page<WmsProductBomVo>
|
||||
*/
|
||||
Page<WmsProductBomVo> selectVoPagePlus(Page<?> page, @Param("ew") Wrapper<WmsProductBom> wrapper);
|
||||
}
|
||||
|
||||
@@ -45,7 +45,7 @@ public class WmsProductBomServiceImpl implements IWmsProductBomService {
|
||||
@Override
|
||||
public TableDataInfo<WmsProductBomVo> queryPageList(WmsProductBomBo bo, PageQuery pageQuery) {
|
||||
LambdaQueryWrapper<WmsProductBom> lqw = buildQueryWrapper(bo);
|
||||
Page<WmsProductBomVo> result = baseMapper.selectVoPage(pageQuery.build(), lqw);
|
||||
Page<WmsProductBomVo> result = baseMapper.selectVoPagePlus(pageQuery.build(), lqw);
|
||||
return TableDataInfo.build(result);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user