|
|
@@ -4,7 +4,6 @@ import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
import com.ydtech.core.page.HttpResult;
|
|
|
import com.ydtech.core.page.PageResult;
|
|
|
-import com.ydtech.modules.admin.model.SysUser;
|
|
|
import com.ydtech.modules.base.controller.BaseController;
|
|
|
import com.ydtech.modules.esm.model.EsmInsCompany;
|
|
|
import com.ydtech.modules.inv.model.po.InvSettlementSource;
|
|
|
@@ -17,9 +16,21 @@ import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
+import org.springframework.core.io.ClassPathResource;
|
|
|
+import org.springframework.core.io.Resource;
|
|
|
+import org.springframework.core.io.ResourceLoader;
|
|
|
+import org.springframework.core.io.UrlResource;
|
|
|
+import org.springframework.http.HttpHeaders;
|
|
|
+import org.springframework.http.HttpStatus;
|
|
|
+import org.springframework.http.MediaType;
|
|
|
+import org.springframework.http.ResponseEntity;
|
|
|
+import org.springframework.util.ResourceUtils;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
-import java.io.IOException;
|
|
|
+import javax.servlet.http.HttpServletResponse;
|
|
|
+import java.io.*;
|
|
|
+import java.net.MalformedURLException;
|
|
|
+import java.net.URLEncoder;
|
|
|
import java.nio.file.Files;
|
|
|
import java.nio.file.Path;
|
|
|
import java.nio.file.Paths;
|
|
|
@@ -241,4 +252,13 @@ public class InvReceivableController extends BaseController {
|
|
|
return HttpResult.ok("", false);
|
|
|
}
|
|
|
|
|
|
+ @GetMapping("getAccountsReceivable")
|
|
|
+ public HttpResult getAccountsReceivable(){
|
|
|
+ return HttpResult.ok("下载成功","template/finance/accountsReceivable.xlsx");
|
|
|
+ }
|
|
|
+
|
|
|
+ @GetMapping("/getSettlement")
|
|
|
+ public HttpResult getSettlement(){
|
|
|
+ return HttpResult.ok("下载成功","template/finance/settlement.xlsx");
|
|
|
+ }
|
|
|
}
|