|
@@ -0,0 +1,52 @@
|
|
|
+package org.jeecg.modules.openApi.controller;
|
|
|
+
|
|
|
+import io.swagger.annotations.Api;
|
|
|
+import lombok.extern.slf4j.Slf4j;
|
|
|
+import org.jeecg.common.system.base.controller.JeecgController;
|
|
|
+import org.jeecg.modules.openApi.entity.PurchaseWarehousing;
|
|
|
+import org.jeecg.modules.openApi.entity.ResHttpStatus;
|
|
|
+import org.jeecg.modules.openApi.entity.SubcontractingOrder;
|
|
|
+import org.jeecg.modules.openApi.service.IPurchaseWarehousingService;
|
|
|
+import org.jeecg.modules.openApi.service.SubcontractingOrderService;
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.http.HttpStatus;
|
|
|
+import org.springframework.http.ResponseEntity;
|
|
|
+import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
+import org.springframework.web.bind.annotation.RequestMethod;
|
|
|
+import org.springframework.web.bind.annotation.ResponseBody;
|
|
|
+import org.springframework.web.bind.annotation.RestController;
|
|
|
+
|
|
|
+/**
|
|
|
+ * @Description: 委外订单
|
|
|
+ * @Author: jeecg-boot
|
|
|
+ * @Date: 2022-04-3
|
|
|
+ * @Version: V1.0
|
|
|
+ */
|
|
|
+@Slf4j
|
|
|
+@Api(tags="委外订单(染厂)- 验布机")
|
|
|
+@RestController
|
|
|
+@RequestMapping("/openApi/subcontractingOrder")
|
|
|
+public class SubcontractingOrderController extends JeecgController<SubcontractingOrder, SubcontractingOrderService> {
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ private SubcontractingOrderService subcontractingOrderService;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 根据订单号获取委外订单详情
|
|
|
+ */
|
|
|
+ @RequestMapping(value = "/getSubcontractingOrderByCode",method = RequestMethod.GET)
|
|
|
+ @ResponseBody
|
|
|
+ public ResponseEntity<ResHttpStatus> getSubcontractingOrderByCode(String code, String key) {
|
|
|
+ ResHttpStatus res = new ResHttpStatus();
|
|
|
+
|
|
|
+ SubcontractingOrder order =subcontractingOrderService.selectOrderByCode("SYW313-森宏");
|
|
|
+ res.setCode("200");
|
|
|
+ res.setMsg("成功");
|
|
|
+ res.setSuccess(true);
|
|
|
+ res.setData(order);
|
|
|
+
|
|
|
+ return new ResponseEntity<ResHttpStatus>(res, HttpStatus.OK);
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+}
|