|
@@ -31,15 +31,16 @@ import java.util.Map;
|
|
|
public class SupplierPriceServiceImpl extends ServiceImpl<SupplierPriceMapper, SupplierPrice> implements SupplierPriceService {
|
|
|
|
|
|
@Override
|
|
|
- public Page<SupplierPrice> getPage(Map<String, Object> condition) {
|
|
|
+ public Page<Map<String, Object>> getPage(Map<String, Object> condition) {
|
|
|
|
|
|
- IWrapper<SupplierPrice> wrapper = IWrapper.getWrapper(condition);
|
|
|
+ IWrapper<Map<String, Object>> wrapper = IWrapper.getWrapper(condition);
|
|
|
wrapper.orderByDesc(Supplier::getId)
|
|
|
.keyword(new KeywordData("s", Supplier::getName),
|
|
|
new KeywordData("pi", ProductInfo::getName),
|
|
|
new KeywordData("pi", ProductInfo::getCode))
|
|
|
.eq("s", Supplier::getId, condition.get("supplierId"))
|
|
|
.like("s", Supplier::getName, condition.get("supplierName"))
|
|
|
+ .like("s", Supplier::getType, condition.get("supplierType"))
|
|
|
|
|
|
.eq("pi", ProductInfo::getId, condition.get("materialId"))
|
|
|
.eq("pi", ProductInfo::getType, condition.get("materialType"))
|