|
@@ -1,10 +1,17 @@
|
|
|
package com.fuzamei.web;
|
|
|
|
|
|
+import java.util.Map;
|
|
|
+
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.web.bind.annotation.RequestBody;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
+import org.springframework.web.bind.annotation.RequestMethod;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
+import com.fuzamei.constant.HintMSG;
|
|
|
+import com.fuzamei.entity.Orders;
|
|
|
import com.fuzamei.service.OrdersIssueService;
|
|
|
+import com.fuzamei.util.JSONUtil;
|
|
|
|
|
|
@RestController
|
|
|
@RequestMapping(path="/ordersIssue")
|
|
@@ -13,5 +20,14 @@ public class OrdersIssueAction {
|
|
|
@Autowired
|
|
|
private OrdersIssueService ordersIssueService;
|
|
|
|
|
|
-
|
|
|
+ @RequestMapping(path="queryOrdersByPlanner",method=RequestMethod.POST)
|
|
|
+ public Map<String, Object> queryOrdersByPlanner(){
|
|
|
+ try {
|
|
|
+
|
|
|
+
|
|
|
+ return JSONUtil.getJsonMap(200, true, HintMSG.QUERY_SUCCESS, null);
|
|
|
+ } catch (Exception e) {
|
|
|
+ return JSONUtil.getJsonMap(500, false, HintMSG.QUERY_FAIL+":"+e.getMessage(), null);
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|