|
@@ -3,6 +3,8 @@ package com.idea.invoice.service;
|
|
|
import cn.hutool.core.util.IdUtil;
|
|
|
import com.github.pagehelper.PageHelper;
|
|
|
import com.github.pagehelper.PageInfo;
|
|
|
+import com.idea.invoice.dto.ReceiptManageDto;
|
|
|
+import com.idea.invoice.mapper.ReceiptManageExtendMapper;
|
|
|
import com.idea.invoice.mapper.ReceiptManageMapper;
|
|
|
import com.idea.invoice.model.InvoiceManage;
|
|
|
import com.idea.invoice.model.ReceiptManage;
|
|
@@ -22,6 +24,9 @@ public class ReceiptManageService implements BaseService<ReceiptManage, ReceiptM
|
|
|
|
|
|
@Autowired
|
|
|
private ReceiptManageMapper modelMapper;
|
|
|
+ @Autowired
|
|
|
+ private ReceiptManageExtendMapper extendMapper;
|
|
|
+
|
|
|
|
|
|
@Override
|
|
|
public int deleteByPrimaryKey(String s) {
|
|
@@ -80,12 +85,11 @@ public class ReceiptManageService implements BaseService<ReceiptManage, ReceiptM
|
|
|
return example;
|
|
|
}
|
|
|
|
|
|
- public PageInfo listByModel(Tablepar tablepar,ReceiptManage model){
|
|
|
+ public PageInfo listByModel(Tablepar tablepar, ReceiptManageDto model){
|
|
|
|
|
|
- ReceiptManageExample example = this.getCondition(model);
|
|
|
PageHelper.startPage(tablepar.getPageNum(),tablepar.getPageSize());
|
|
|
- List<ReceiptManage> receiptManages = modelMapper.selectByExample(example);
|
|
|
- return new PageInfo<ReceiptManage>(receiptManages);
|
|
|
+ List<ReceiptManageDto> receiptManages = extendMapper.listByModel(model);
|
|
|
+ return new PageInfo<ReceiptManageDto>(receiptManages);
|
|
|
}
|
|
|
|
|
|
|