|
@@ -2,6 +2,7 @@ package org.jeecg.modules.openApi.controller;
|
|
|
|
|
|
import io.swagger.annotations.Api;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
+import org.apache.commons.lang.StringUtils;
|
|
|
import org.jeecg.common.system.base.controller.JeecgController;
|
|
|
import org.jeecg.modules.openApi.entity.PurchaseWarehousing;
|
|
|
import org.jeecg.modules.openApi.entity.ResHttpStatus;
|
|
@@ -16,6 +17,8 @@ import org.springframework.web.bind.annotation.RequestMethod;
|
|
|
import org.springframework.web.bind.annotation.ResponseBody;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
+import java.util.List;
|
|
|
+
|
|
|
/**
|
|
|
* @Description: 委外订单
|
|
|
* @Author: jeecg-boot
|
|
@@ -38,8 +41,13 @@ public class SubcontractingOrderController extends JeecgController<Subcontractin
|
|
|
@ResponseBody
|
|
|
public ResponseEntity<ResHttpStatus> getSubcontractingOrderByCode(String code, String key) {
|
|
|
ResHttpStatus res = new ResHttpStatus();
|
|
|
+ if(!StringUtils.isNotBlank(code)){
|
|
|
+ res.setCode("0");
|
|
|
+ res.setMsg("订单号不能为空");
|
|
|
+ res.setSuccess(false);
|
|
|
+ }
|
|
|
|
|
|
- SubcontractingOrder order =subcontractingOrderService.selectOrderByCode("SYW313-森宏");
|
|
|
+ List<SubcontractingOrder> order =subcontractingOrderService.selectOrderByCode(code);//"SYW313-森宏"
|
|
|
res.setCode("200");
|
|
|
res.setMsg("成功");
|
|
|
res.setSuccess(true);
|