This commit is contained in:
2022-10-09 18:41:41 +08:00
parent 5b16486fcb
commit dff2f324cc
3 changed files with 63 additions and 10 deletions

View File

@@ -7,7 +7,7 @@ import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.nl.modules.logging.annotation.Log;
import org.nl.wms.pda.mps.service.BakingService;
import org.nl.wms.pda.mps.service.RawFoilService;
import org.nl.wms.pda.mps.service.EmptyTubeService;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.PostMapping;
@@ -17,17 +17,24 @@ import org.springframework.web.bind.annotation.RestController;
@RestController
@RequiredArgsConstructor
@Api(tags = "烘烤工序")
@RequestMapping("api/pda/baking")
@Api(tags = "空管入库")
@RequestMapping("api/pda/empty")
@Slf4j
public class BakingController {
public class EmptyTubeController {
private final BakingService bakingService;
private final EmptyTubeService emptyTubeService;
@PostMapping("/ovenInAndOut")
@Log("烘箱出入")
@ApiOperation("烘箱出入")
public ResponseEntity<Object> queryRawFoil(@RequestBody JSONObject whereJson) {
return new ResponseEntity<>(bakingService.ovenInAndOut(whereJson), HttpStatus.OK);
@PostMapping("/queryMaterialInfo")
@Log("空纸管库设备物料初始化查询")
@ApiOperation("空纸管库设备物料初始化查询")
public ResponseEntity<Object> queryMaterialInfo(@RequestBody JSONObject whereJson) {
return new ResponseEntity<>(emptyTubeService.queryMaterialInfo(whereJson), HttpStatus.OK);
}
@PostMapping("/confirm")
@Log("入库确认")
@ApiOperation("入库确认")
public ResponseEntity<Object> confirm(@RequestBody JSONObject whereJson) {
return new ResponseEntity<>(emptyTubeService.confirm(whereJson), HttpStatus.OK);
}
}

View File

@@ -0,0 +1,21 @@
package org.nl.wms.pda.mps.service;
import com.alibaba.fastjson.JSONObject;
public interface EmptyTubeService {
/**
* 空纸管库设备物料初始化查询
* @param whereJson /
* @return JSONObject
*/
JSONObject queryMaterialInfo(JSONObject whereJson);
/**
* 入库确认
* @param whereJson /
* @return JSONObject
*/
JSONObject confirm(JSONObject whereJson);
}

View File

@@ -0,0 +1,25 @@
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.BakingService;
import org.nl.wms.pda.mps.service.EmptyTubeService;
import org.springframework.stereotype.Service;
@Service
@RequiredArgsConstructor
@Slf4j
public class EmptyTubeServiceImpl implements EmptyTubeService {
@Override
public JSONObject queryMaterialInfo(JSONObject whereJson) {
JSONObject result = new JSONObject();
result.put("code", "1");
result.put("desc", "查询成功");
return result;
}
}