出库确认

This commit is contained in:
liuhanqing
2025-06-16 16:04:39 +08:00
parent 36c95928ba
commit 43797aa35a
5 changed files with 36 additions and 8 deletions

View File

@@ -17,11 +17,9 @@ import com.ruoyi.pda.trayMsg.domain.TrayMsg;
import com.ruoyi.pda.trayMsg.service.ITrayMsgService;
import com.ruoyi.stock.stock.domain.BasStock;
import com.ruoyi.stock.stock.service.IBasStockService;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import java.util.HashMap;
import java.util.List;
@@ -171,5 +169,16 @@ public class PdaController extends BaseController {
}
return pdaService.addInJob(trayCodeMsg);
}
/**
* 出库确认
* @param trayCode 托盘码
* @return
*/
@GetMapping("/outMakeSure")
@ResponseBody
public AjaxResult outMakeSure(String trayCode) {
return pdaService.outMakeSure(trayCode);
}
}

View File

@@ -15,4 +15,6 @@ public interface PdaMapper {
void bindTrayMsg(HashMap<String, Object> map);
void addInJob(HashMap<String, Object> map);
void outMakeSure(HashMap<String, Object> map);
}

View File

@@ -22,7 +22,5 @@ public interface PdaService {
public AjaxResult addInJob(TrayCodeMsg trayCodeMsg);
AjaxResult outMakeSure(String trayCode);
}

View File

@@ -124,4 +124,17 @@ public class PdaServiceImp implements PdaService{
}
}
@Override
public AjaxResult outMakeSure(String trayCode) {
HashMap<String, Object> map = new HashMap<>();
map.put("v_tray_code", trayCode);
pdaMapper.outMakeSure(map);
String result = map.get("v_result").toString();
if("10".equals(result)){
return AjaxResult.success(map.get("v_resultmsg").toString());
}else{
return AjaxResult.warn(map.get("v_resultmsg").toString());
}
}
}

View File

@@ -3,7 +3,13 @@
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.pda.mapper.PdaMapper">
<select id="outMakeSure" parameterType="java.util.Map" statementType="CALLABLE">
{call proc_out_masksure(
#{v_tray_code,mode=IN,jdbcType=VARCHAR},
#{v_result,mode=OUT,jdbcType=INTEGER},
#{v_resultmsg,mode=OUT,jdbcType=VARCHAR}
)}
</select>
<select id="emptyTrayIn" parameterType="java.util.Map" statementType="CALLABLE">
@@ -62,4 +68,4 @@
#{v_resultmsg,mode=OUT,jdbcType=VARCHAR}
)}
</select>
</mapper>
</mapper>