|
@@ -11,9 +11,11 @@ package com.zskk.shop.controller.api;
|
|
|
import java.text.SimpleDateFormat;
|
|
|
import java.util.List;
|
|
|
|
|
|
+import javax.websocket.server.PathParam;
|
|
|
+
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Controller;
|
|
|
-import org.springframework.stereotype.Service;
|
|
|
+import org.springframework.web.bind.annotation.PathVariable;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestParam;
|
|
|
import org.springframework.web.bind.annotation.ResponseBody;
|
|
@@ -24,6 +26,7 @@ import com.zskk.shop.controller.bean.PageBean;
|
|
|
import com.zskk.shop.dao.entry.BuyOrderItem;
|
|
|
import com.zskk.shop.exception.ErrorConstant;
|
|
|
import com.zskk.shop.service.BuyOrderService;
|
|
|
+import com.zskk.shop.service.TJCenterService;
|
|
|
|
|
|
@RequestMapping("/api")
|
|
|
@Controller
|
|
@@ -32,6 +35,9 @@ public class ApiController {
|
|
|
@Autowired
|
|
|
private BuyOrderService buyOrderService;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private TJCenterService tJCenterService;
|
|
|
+
|
|
|
@RequestMapping("/refund")
|
|
|
@ResponseBody
|
|
|
public ControllerResult refund(@RequestParam("id") Long id){
|
|
@@ -99,4 +105,11 @@ public class ApiController {
|
|
|
|
|
|
return new ControllerResult(pageBean);
|
|
|
}
|
|
|
+
|
|
|
+ @RequestMapping("rjreport/{id}")
|
|
|
+ @ResponseBody
|
|
|
+ public String rjreport(@PathVariable("id") String id){
|
|
|
+ String htmlContent = tJCenterService.getTjReport(id);
|
|
|
+ return htmlContent;
|
|
|
+ }
|
|
|
}
|