From 5ef6d8097a8b853ee2d80639e6a9c0b828059e77 Mon Sep 17 00:00:00 2001 From: liuxy Date: Thu, 27 Oct 2022 18:59:15 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../nl/wms/pda/st/rest/CoolInController.java | 39 +++++++++++++++++++ .../nl/wms/pda/st/service/CoolInService.java | 20 ++++++++++ .../st/service/impl/CoolInServiceImpl.java | 27 +++++++++++++ 3 files changed, 86 insertions(+) create mode 100644 lms/nladmin-system/src/main/java/org/nl/wms/pda/st/rest/CoolInController.java create mode 100644 lms/nladmin-system/src/main/java/org/nl/wms/pda/st/service/CoolInService.java create mode 100644 lms/nladmin-system/src/main/java/org/nl/wms/pda/st/service/impl/CoolInServiceImpl.java diff --git a/lms/nladmin-system/src/main/java/org/nl/wms/pda/st/rest/CoolInController.java b/lms/nladmin-system/src/main/java/org/nl/wms/pda/st/rest/CoolInController.java new file mode 100644 index 000000000..0ee1c4af3 --- /dev/null +++ b/lms/nladmin-system/src/main/java/org/nl/wms/pda/st/rest/CoolInController.java @@ -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 create(@RequestBody JSONObject whereJson){ + return new ResponseEntity<>(coolInService.coolIOQuery(whereJson),HttpStatus.OK); + } + +} diff --git a/lms/nladmin-system/src/main/java/org/nl/wms/pda/st/service/CoolInService.java b/lms/nladmin-system/src/main/java/org/nl/wms/pda/st/service/CoolInService.java new file mode 100644 index 000000000..ed783c8d4 --- /dev/null +++ b/lms/nladmin-system/src/main/java/org/nl/wms/pda/st/service/CoolInService.java @@ -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); +} diff --git a/lms/nladmin-system/src/main/java/org/nl/wms/pda/st/service/impl/CoolInServiceImpl.java b/lms/nladmin-system/src/main/java/org/nl/wms/pda/st/service/impl/CoolInServiceImpl.java new file mode 100644 index 000000000..c369a720e --- /dev/null +++ b/lms/nladmin-system/src/main/java/org/nl/wms/pda/st/service/impl/CoolInServiceImpl.java @@ -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; + } +}