修改
This commit is contained in:
@@ -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);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user