修改
This commit is contained in:
@@ -0,0 +1,39 @@
|
|||||||
|
package org.nl.wms.pda.mps.rest;
|
||||||
|
|
||||||
|
import com.alibaba.fastjson.JSONObject;
|
||||||
|
import io.swagger.annotations.Api;
|
||||||
|
import io.swagger.annotations.ApiOperation;
|
||||||
|
import lombok.RequiredArgsConstructor;
|
||||||
|
import lombok.extern.slf4j.Slf4j;
|
||||||
|
import org.nl.modules.logging.annotation.Log;
|
||||||
|
import org.nl.wms.pda.mps.service.CasingService;
|
||||||
|
import org.springframework.http.HttpStatus;
|
||||||
|
import org.springframework.http.ResponseEntity;
|
||||||
|
import org.springframework.web.bind.annotation.PostMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestBody;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
|
@RestController
|
||||||
|
@RequiredArgsConstructor
|
||||||
|
@Api(tags = "子卷套管")
|
||||||
|
@RequestMapping("api/pda/out")
|
||||||
|
@Slf4j
|
||||||
|
public class OutController {
|
||||||
|
|
||||||
|
private final CasingService casingService;
|
||||||
|
|
||||||
|
@PostMapping("/queryMaterialInfo")
|
||||||
|
@Log("分切计划初始化查询")
|
||||||
|
@ApiOperation("分切计划初始化查询")
|
||||||
|
public ResponseEntity<Object> queryMaterialInfo(@RequestBody JSONObject whereJson) {
|
||||||
|
return new ResponseEntity<>(casingService.queryMaterialInfo(whereJson), HttpStatus.OK);
|
||||||
|
}
|
||||||
|
|
||||||
|
@PostMapping("/confirm")
|
||||||
|
@Log("套轴确认")
|
||||||
|
@ApiOperation("套轴确认")
|
||||||
|
public ResponseEntity<Object> confirm(@RequestBody JSONObject whereJson) {
|
||||||
|
return new ResponseEntity<>(casingService.confirm(whereJson), HttpStatus.OK);
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,21 @@
|
|||||||
|
package org.nl.wms.pda.mps.service;
|
||||||
|
|
||||||
|
import com.alibaba.fastjson.JSONObject;
|
||||||
|
|
||||||
|
public interface OutService {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 分切计划初始化查询
|
||||||
|
* @param whereJson /
|
||||||
|
* @return JSONObject
|
||||||
|
*/
|
||||||
|
JSONObject queryMaterialInfo(JSONObject whereJson);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 出站确认
|
||||||
|
* @param whereJson /
|
||||||
|
* @return JSONObject
|
||||||
|
*/
|
||||||
|
JSONObject confirm(JSONObject whereJson);
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,34 @@
|
|||||||
|
package org.nl.wms.pda.mps.service.impl;
|
||||||
|
|
||||||
|
import com.alibaba.fastjson.JSONObject;
|
||||||
|
import lombok.RequiredArgsConstructor;
|
||||||
|
import lombok.extern.slf4j.Slf4j;
|
||||||
|
import org.nl.wms.pda.mps.service.OutService;
|
||||||
|
import org.nl.wms.pda.mps.service.ShippingService;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
@Service
|
||||||
|
@RequiredArgsConstructor
|
||||||
|
@Slf4j
|
||||||
|
public class OutServiceImpl implements OutService {
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public JSONObject queryMaterialInfo(JSONObject whereJson) {
|
||||||
|
JSONObject result = new JSONObject();
|
||||||
|
result.put("code", "1");
|
||||||
|
result.put("desc", "查询成功");
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public JSONObject confirm(JSONObject whereJson) {
|
||||||
|
JSONObject result = new JSONObject();
|
||||||
|
result.put("code", "1");
|
||||||
|
result.put("desc", "查询成功");
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user