出库部分
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user