入库部分和接口
This commit is contained in:
@@ -28,7 +28,7 @@ public interface PdaService {
|
||||
|
||||
AjaxResult bindTray(TrayCodeMakeSure trayCodeMakeSure);
|
||||
|
||||
AjaxResult tpIn(String trayCode);
|
||||
AjaxResult tpIn(TrayCodeMsg trayCodeMsg);
|
||||
|
||||
AjaxResult tpOut(TrayCodeMsg trayCodeMsg);
|
||||
|
||||
|
||||
@@ -139,9 +139,11 @@ public class PdaServiceImp implements PdaService {
|
||||
}
|
||||
|
||||
@Override
|
||||
public AjaxResult tpIn(String trayCode) {
|
||||
public AjaxResult tpIn(TrayCodeMsg trayCodeMsg) {
|
||||
HashMap<String, Object> map = new HashMap<>();
|
||||
map.put("v_tray_code", trayCode);
|
||||
map.put("v_tray_code", trayCodeMsg.getTrayCode());
|
||||
map.put("v_tray_type", trayCodeMsg.getTrayType());
|
||||
map.put("v_quantity", Integer.valueOf(trayCodeMsg.getInQuantity()));
|
||||
pdaMapper.tpIn(map);
|
||||
if(!"10".equals(map.get("v_result").toString())){
|
||||
return AjaxResult.error(map.get("v_resultmsg").toString());
|
||||
@@ -155,7 +157,7 @@ public class PdaServiceImp implements PdaService {
|
||||
public AjaxResult tpOut(TrayCodeMsg trayCodeMsg) {
|
||||
|
||||
HashMap<String, Object> map = new HashMap<>();
|
||||
map.put("v_exit_id", trayCodeMsg.getExitId());
|
||||
map.put("v_tray_type", trayCodeMsg.getTrayType());
|
||||
pdaMapper.tpOut(map);
|
||||
if(!"10".equals(map.get("v_result").toString())){
|
||||
return AjaxResult.error(map.get("v_resultmsg").toString());
|
||||
|
||||
Reference in New Issue
Block a user