This commit is contained in:
2022-11-25 10:05:40 +08:00
parent c788d29b11
commit c867b933fd
3 changed files with 27 additions and 0 deletions

View File

@@ -2,6 +2,7 @@
package org.nl.wms.pda.st.rest; package org.nl.wms.pda.st.rest;
import cn.dev33.satoken.annotation.SaIgnore;
import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.JSONObject;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
@@ -57,4 +58,14 @@ public class VirtualOutController {
public ResponseEntity<Object> outConfirm(@RequestBody JSONObject whereJson){ public ResponseEntity<Object> outConfirm(@RequestBody JSONObject whereJson){
return new ResponseEntity<>(virtualOutService.outConfirm(whereJson),HttpStatus.OK); return new ResponseEntity<>(virtualOutService.outConfirm(whereJson),HttpStatus.OK);
} }
@PostMapping("/printType")
@Log("打印机下拉框")
@ApiOperation("打印机下拉框")
@SaIgnore
public ResponseEntity<Object> printType(@RequestBody JSONObject whereJson){
return new ResponseEntity<>(virtualOutService.printType(whereJson),HttpStatus.OK);
}
} }

View File

@@ -37,4 +37,11 @@ public interface VirtualOutService {
* @return JSONObject / * @return JSONObject /
*/ */
JSONObject outConfirm(JSONObject whereJson); JSONObject outConfirm(JSONObject whereJson);
/**
* 获取单据类型
* @param whereJson /
* @return JSONObject /
*/
JSONObject printType(JSONObject whereJson);
} }

View File

@@ -123,4 +123,13 @@ public class VirtualOutServiceImpl implements VirtualOutService {
return jo; return jo;
} }
@Override
public JSONObject printType(JSONObject whereJson){
JSONArray rows = WQL.getWO("PDA_ST_01").addParam("flag","6").process().getResultJSONArray(0);
JSONObject jo = new JSONObject();
jo.put("data", rows);
jo.put("message", "查询成功!");
return jo;
}
} }