|
@@ -0,0 +1,72 @@
|
|
|
+package com.iamberry.rst.controllers.pts;
|
|
|
+
|
|
|
+import com.iamberry.rst.core.order.Order;
|
|
|
+import com.iamberry.rst.core.pts.*;
|
|
|
+import com.iamberry.rst.core.tools.QRCJson;
|
|
|
+import com.iamberry.rst.core.tools.WeixinUtil;
|
|
|
+import com.iamberry.rst.faces.pts.*;
|
|
|
+import com.iamberry.wechat.tools.NameUtils;
|
|
|
+import com.iamberry.wechat.tools.ResponseJson;
|
|
|
+import com.iamberry.wechat.tools.ResultInfo;
|
|
|
+import net.sf.json.JSONArray;
|
|
|
+import net.sf.json.JSONObject;
|
|
|
+import org.apache.shiro.authz.annotation.RequiresPermissions;
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.stereotype.Controller;
|
|
|
+import org.springframework.web.bind.annotation.RequestBody;
|
|
|
+import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
+import org.springframework.web.bind.annotation.RequestParam;
|
|
|
+import org.springframework.web.bind.annotation.ResponseBody;
|
|
|
+import org.springframework.web.servlet.ModelAndView;
|
|
|
+
|
|
|
+import javax.servlet.http.HttpServletRequest;
|
|
|
+import java.util.Date;
|
|
|
+import java.util.List;
|
|
|
+
|
|
|
+/**
|
|
|
+ * Created by LJK on 2017/8/29.
|
|
|
+ */
|
|
|
+@Controller
|
|
|
+@RequestMapping("/admin/mcahine")
|
|
|
+public class AdminMachineController {
|
|
|
+ @Autowired
|
|
|
+ private ProduceService produceService;
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ private MachineService machineService;
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ private DeviceService deviceService;
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ private PtsEmployeeService ptsEmployeeService;
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ private MachineLogsService machineLogsService;
|
|
|
+ /**
|
|
|
+ * 查询机器列表
|
|
|
+ *
|
|
|
+ * @param request
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @RequiresPermissions("produce:list_produce:produce")
|
|
|
+ @RequestMapping("/_machine_list")
|
|
|
+ public ModelAndView selectOrderList(HttpServletRequest request,
|
|
|
+ @RequestParam(value = "pageNO", defaultValue = "1", required = false) int pageNO,
|
|
|
+ @RequestParam(value = "pageTotal", required = false) Integer pageTotal,
|
|
|
+ @RequestParam(value = "pageSize", defaultValue = "5", required = false) int pageSize,
|
|
|
+ Order order) {
|
|
|
+ ModelAndView mv = new ModelAndView("produce/produce_list");
|
|
|
+ StringBuilder url = new StringBuilder("/admin/produce/_produce_list?pageSize=" + pageSize);
|
|
|
+ List<Produce> list = produceService.getProduceList();
|
|
|
+ mv.addObject("result", list);
|
|
|
+ return mv;
|
|
|
+ }
|
|
|
+ @ResponseBody
|
|
|
+ @RequestMapping("/uploadProcessOptions")
|
|
|
+ public ResponseJson uploadProcessOptions(HttpServletRequest request,@RequestBody JSONObject query){
|
|
|
+ ResponseJson rj = new ResponseJson();
|
|
|
+
|
|
|
+ return rj;
|
|
|
+ }
|
|
|
+}
|