代码更新
This commit is contained in:
@@ -0,0 +1,39 @@
|
|||||||
|
|
||||||
|
package org.nl.wms.pda.st.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.st.service.CoolInService;
|
||||||
|
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;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author geng by
|
||||||
|
* @date 2022-05-25
|
||||||
|
**/
|
||||||
|
@RestController
|
||||||
|
@RequiredArgsConstructor
|
||||||
|
@Api(tags = "半成品入库")
|
||||||
|
@RequestMapping("/api/pda/coolIn")
|
||||||
|
@Slf4j
|
||||||
|
public class CoolInController {
|
||||||
|
|
||||||
|
private final CoolInService coolInService;
|
||||||
|
|
||||||
|
@PostMapping("/coolIOQuery")
|
||||||
|
@Log("新增生产设备")
|
||||||
|
@ApiOperation("新增生产设备")
|
||||||
|
public ResponseEntity<Object> create(@RequestBody JSONObject whereJson){
|
||||||
|
return new ResponseEntity<>(coolInService.coolIOQuery(whereJson),HttpStatus.OK);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,20 @@
|
|||||||
|
|
||||||
|
package org.nl.wms.pda.st.service;
|
||||||
|
|
||||||
|
import com.alibaba.fastjson.JSONArray;
|
||||||
|
import com.alibaba.fastjson.JSONObject;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @description 服务接口
|
||||||
|
* @author geng by
|
||||||
|
* @date 2022-05-25
|
||||||
|
**/
|
||||||
|
public interface CoolInService {
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @param whereJson /
|
||||||
|
* @return JSONArray /
|
||||||
|
*/
|
||||||
|
JSONArray coolIOQuery(JSONObject whereJson);
|
||||||
|
}
|
||||||
@@ -0,0 +1,27 @@
|
|||||||
|
|
||||||
|
package org.nl.wms.pda.st.service.impl;
|
||||||
|
|
||||||
|
|
||||||
|
import com.alibaba.fastjson.JSONArray;
|
||||||
|
import com.alibaba.fastjson.JSONObject;
|
||||||
|
import lombok.RequiredArgsConstructor;
|
||||||
|
import lombok.extern.slf4j.Slf4j;
|
||||||
|
import org.nl.wms.pda.st.service.CoolInService;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author geng by
|
||||||
|
* @description 服务实现
|
||||||
|
* @date 2022-05-25
|
||||||
|
**/
|
||||||
|
@Service
|
||||||
|
@RequiredArgsConstructor
|
||||||
|
@Slf4j
|
||||||
|
public class CoolInServiceImpl implements CoolInService {
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public JSONArray coolIOQuery(JSONObject whereJson) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user