|
@@ -17,6 +17,7 @@ import com.fjhx.sale.mapper.after.AfterSalesMapper;
|
|
|
import com.fjhx.sale.service.after.AfterSalesService;
|
|
|
import com.fjhx.sale.service.contract.ContractProductService;
|
|
|
import com.ruoyi.common.utils.wrapper.IWrapper;
|
|
|
+import com.ruoyi.common.utils.wrapper.SqlField;
|
|
|
import com.ruoyi.system.utils.UserUtil;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
@@ -49,6 +50,9 @@ public class AfterSalesServiceImpl extends ServiceImpl<AfterSalesMapper, AfterSa
|
|
|
@Override
|
|
|
public Page<AfterSalesVo> getPage(AfterSalesSelectDto dto) {
|
|
|
IWrapper<AfterSales> wrapper = getWrapper();
|
|
|
+
|
|
|
+ wrapper.keyword(dto.getKeyword(), new SqlField("as1.code"), new SqlField("c.code"));
|
|
|
+
|
|
|
wrapper.orderByDesc("as1", AfterSales::getId);
|
|
|
Page<AfterSalesVo> page = this.baseMapper.getPage(dto.getPage(), wrapper);
|
|
|
List<AfterSalesVo> records = page.getRecords();
|