|
@@ -4,7 +4,11 @@ import com.github.pagehelper.PageHelper;
|
|
|
import com.github.pagehelper.PageInfo;
|
|
import com.github.pagehelper.PageInfo;
|
|
|
import com.usoftchina.saas.commons.dto.ListReqDTO;
|
|
import com.usoftchina.saas.commons.dto.ListReqDTO;
|
|
|
import com.usoftchina.saas.context.BaseContextHolder;
|
|
import com.usoftchina.saas.context.BaseContextHolder;
|
|
|
|
|
+import com.usoftchina.saas.money.mapper.forms.AcountbalanceViewMapper;
|
|
|
|
|
+import com.usoftchina.saas.money.mapper.forms.PaydetailViewMapper;
|
|
|
|
|
+import com.usoftchina.saas.money.mapper.forms.RecdetailViewMapper;
|
|
|
import com.usoftchina.saas.money.mapper.forms.VendorAcountViewMapper;
|
|
import com.usoftchina.saas.money.mapper.forms.VendorAcountViewMapper;
|
|
|
|
|
+import com.usoftchina.saas.money.po.forms.AcountbalanceView;
|
|
|
import com.usoftchina.saas.money.service.MoneyReportService;
|
|
import com.usoftchina.saas.money.service.MoneyReportService;
|
|
|
import com.usoftchina.saas.page.PageRequest;
|
|
import com.usoftchina.saas.page.PageRequest;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
@@ -20,12 +24,33 @@ import java.util.List;
|
|
|
public class MoneyReportServiceImpl implements MoneyReportService {
|
|
public class MoneyReportServiceImpl implements MoneyReportService {
|
|
|
@Autowired
|
|
@Autowired
|
|
|
private VendorAcountViewMapper vendorAcountViewMapper;
|
|
private VendorAcountViewMapper vendorAcountViewMapper;
|
|
|
|
|
+ @Autowired
|
|
|
|
|
+ private PaydetailViewMapper paydetailViewMapper;
|
|
|
|
|
+ @Autowired
|
|
|
|
|
+ private RecdetailViewMapper recdetailViewMapper;
|
|
|
|
|
+ @Autowired
|
|
|
|
|
+ private AcountbalanceViewMapper acountbalanceViewMapper;
|
|
|
|
|
|
|
|
@Override
|
|
@Override
|
|
|
public PageInfo vendorCheck(PageRequest page, ListReqDTO req) {
|
|
public PageInfo vendorCheck(PageRequest page, ListReqDTO req) {
|
|
|
return getListDATA(page, req, "Supplier");
|
|
return getListDATA(page, req, "Supplier");
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ @Override
|
|
|
|
|
+ public PageInfo payDetail(PageRequest page, ListReqDTO req) {
|
|
|
|
|
+ return getListDATA(page, req, "payDetail");
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ @Override
|
|
|
|
|
+ public PageInfo recDetail(PageRequest page, ListReqDTO req) {
|
|
|
|
|
+ return getListDATA(page, req, "recDetail");
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ @Override
|
|
|
|
|
+ public PageInfo acountBalance(PageRequest page, ListReqDTO req) {
|
|
|
|
|
+ return getListDATA(page, req, "acountBalance");
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
private PageInfo getListDATA(PageRequest page, ListReqDTO req, String type) {
|
|
private PageInfo getListDATA(PageRequest page, ListReqDTO req, String type) {
|
|
|
//设置默认分页
|
|
//设置默认分页
|
|
|
if (null == page || page.getSize() == 0 || page.getNumber() == 0) {
|
|
if (null == page || page.getSize() == 0 || page.getNumber() == 0) {
|
|
@@ -52,10 +77,13 @@ public class MoneyReportServiceImpl implements MoneyReportService {
|
|
|
}
|
|
}
|
|
|
if ("Supplier".equals(type)) {
|
|
if ("Supplier".equals(type)) {
|
|
|
list = vendorAcountViewMapper.selectByCondition(con, companyId);
|
|
list = vendorAcountViewMapper.selectByCondition(con, companyId);
|
|
|
|
|
+ } else if("payDetail".equals(type)){
|
|
|
|
|
+ list = paydetailViewMapper.selectByCondition(con, companyId);
|
|
|
|
|
+ }else if("recDetail".equals(type)){
|
|
|
|
|
+ list = recdetailViewMapper.selectByCondition(con, companyId);
|
|
|
|
|
+ }else if ("acountBalance".equals(type)){
|
|
|
|
|
+ list = acountbalanceViewMapper.selectByCondition(con, companyId);
|
|
|
}
|
|
}
|
|
|
-// } else if ("SaleRec".equals(type)){
|
|
|
|
|
-// list = salerecViewMapper.selectByCondition(con, companyId);
|
|
|
|
|
-// }
|
|
|
|
|
return list;
|
|
return list;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|