出库部分

This commit is contained in:
张怡蓉
2025-08-01 11:10:20 +08:00
parent 27be485db1
commit b56e99d921
8 changed files with 145 additions and 38 deletions

View File

@@ -73,9 +73,9 @@ public class OutMydoJobController extends BaseController {
@PreAuthorize("@ss.hasPermi('job:outmydoJob:pointOut')")
@Log(title = "指定货位出库", businessType = BusinessType.INSERT)
@RequestMapping("/pointOut")
public AjaxResult pointOut(@RequestParam("stockIds")String[] stockIds)
public AjaxResult pointOut(@RequestParam("stockIds")String[] stockIds,@RequestParam("exitId")String exitId)
{
return mydoJobService.pointOut(stockIds);
return mydoJobService.pointOut(stockIds,exitId);
}

View File

@@ -85,7 +85,7 @@ public interface IMydoJobService
*/
AjaxResult OuthandInvalidation(String [] jobIds);
AjaxResult pointOut(String [] stockIds);
AjaxResult pointOut(String [] stockIds,String exitId);
MydoJob selectMydoJobByTrayCode(String trayCode);
}

View File

@@ -480,14 +480,15 @@ public class MydoJobServiceImpl implements IMydoJobService {
}
@Override
public AjaxResult pointOut(String[] stockIds) {
public AjaxResult pointOut(String[] stockIds,String exitId) {
HashMap<String, Object> map = new HashMap<>();
String msg = "";
String Stringbuilder = "";
for (String stockId : stockIds) {
map.put("stockId", stockId);
map.put("v_stock_id", stockId);
map.put("v_exit_id", exitId);
mydoJobMapper.pointOut(map);
String result = map.get("result").toString();
String result = map.get("v_result").toString();
if ("10".equals(result)) {
msg = "操作成功!";
} else {