手持机部分
This commit is contained in:
@@ -70,5 +70,13 @@ public class OutMydoJobController extends BaseController {
|
||||
return mydoJobService.OuthandInvalidation(jobIds);
|
||||
}
|
||||
|
||||
@PreAuthorize("@ss.hasPermi('job:outmydoJob:pointOut')")
|
||||
@Log(title = "指定货位出库", businessType = BusinessType.INSERT)
|
||||
@RequestMapping("/pointOut")
|
||||
public AjaxResult pointOut(@RequestParam("stockIds")String[] stockIds)
|
||||
{
|
||||
return mydoJobService.pointOut(stockIds);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -1,6 +1,9 @@
|
||||
package com.ruoyi.job.mydojob.mapper;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import com.ruoyi.job.mydojob.domain.MydoJob;
|
||||
|
||||
/**
|
||||
@@ -66,4 +69,6 @@ public interface MydoJobMapper
|
||||
public int deleteMydoJobByJobIds(String[] jobIds);
|
||||
|
||||
void insertHistory(String jobId);
|
||||
|
||||
void pointOut(HashMap<String, Object> map);
|
||||
}
|
||||
|
||||
@@ -83,4 +83,6 @@ public interface IMydoJobService
|
||||
* 出库手动作废
|
||||
*/
|
||||
AjaxResult OuthandInvalidation(String [] jobIds);
|
||||
|
||||
AjaxResult pointOut(String [] stockIds);
|
||||
}
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
package com.ruoyi.job.mydojob.service.impl;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.*;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
@@ -353,4 +354,24 @@ public class MydoJobServiceImpl implements IMydoJobService {
|
||||
return AjaxResult.error("任务处理异常");
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public AjaxResult pointOut(String[] stockIds) {
|
||||
HashMap<String, Object> map = new HashMap<>();
|
||||
String msg = "";
|
||||
String Stringbuilder = "";
|
||||
for(String stockId:stockIds){
|
||||
map.put("stockId",stockId);
|
||||
mydoJobMapper.pointOut(map);
|
||||
String result = map.get("result").toString();
|
||||
if("10".equals(result)){
|
||||
msg="操作成功!";
|
||||
}else{
|
||||
msg=map.get("v_resultmsg").toString();
|
||||
}
|
||||
Stringbuilder+=stockId+msg+"<br/>";
|
||||
}
|
||||
|
||||
return AjaxResult.success(Stringbuilder.toString());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user