|
@@ -2,6 +2,8 @@ package com.dayou.controller;
|
|
|
|
|
|
import com.dayou.annotation.DataPermission;
|
|
|
import com.dayou.annotation.OperLog;
|
|
|
+import com.dayou.dto.CustomerDTO;
|
|
|
+import com.dayou.dto.PaymentExportDTO;
|
|
|
import com.dayou.vo.ItemPaymentVO;
|
|
|
import com.dayou.vo.PaymentCollectionVO;
|
|
|
import org.apache.poi.xssf.usermodel.XSSFWorkbook;
|
|
@@ -20,12 +22,15 @@ import com.dayou.common.PullDownModel;
|
|
|
import com.dayou.utils.ConvertUtil;
|
|
|
import com.dayou.utils.HttpKit;
|
|
|
import com.dayou.exception.ErrorCode;
|
|
|
+
|
|
|
+import java.io.IOException;
|
|
|
import java.util.Date;
|
|
|
import java.util.List;
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
import org.springframework.http.MediaType;
|
|
|
import org.springframework.web.multipart.MultipartFile;
|
|
|
|
|
|
+import javax.servlet.http.HttpServletResponse;
|
|
|
import javax.xml.crypto.dsig.keyinfo.RetrievalMethod;
|
|
|
|
|
|
import static com.dayou.common.Constants.MANAGER_OFFICE;
|
|
@@ -116,5 +121,15 @@ public class PaymentCollectionController extends BaseController {
|
|
|
IPage<ItemPaymentVO> result = paymentCollectionService.getItemPayment(page,paymentCollectionVO);
|
|
|
return RestResponse.data(result);
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 项目回款导出
|
|
|
+ */
|
|
|
+ @DataPermission(teamData = true,postChild = false,ignoreDepartment = {MANAGER_OFFICE})
|
|
|
+ @GetMapping("/item/export")
|
|
|
+ public void exportData(PaymentCollectionVO paymentCollectionVO, HttpServletResponse response ) throws IOException {
|
|
|
+ List<PaymentExportDTO> list = paymentCollectionService.getList(paymentCollectionVO);
|
|
|
+ exportPlus(response,"项目回款",list,PaymentExportDTO.class);
|
|
|
+ }
|
|
|
}
|
|
|
|