fix(入库任务): 通过rfid入库修复
This commit is contained in:
parent
d5bf5f2999
commit
5c9ab8087b
@ -97,7 +97,11 @@ public class WmsInTaskController extends BaseController {
|
||||
*/
|
||||
@GetMapping("/open/rfid/{rfid}")
|
||||
public AjaxResult byRfid(@PathVariable String rfid) {
|
||||
return AjaxResult.success(wmsInTaskService.selectWmsInTaskByRfid(rfid));
|
||||
WmsInTask wmsInTask = wmsInTaskService.selectWmsInTaskByRfid(rfid);
|
||||
if (wmsInTask == null) {
|
||||
return AjaxResult.error("查询不到相关的入库任务");
|
||||
}
|
||||
return AjaxResult.success();
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -58,6 +58,7 @@ public class WmsInTaskServiceImpl implements IWmsInTaskService {
|
||||
public WmsInTask selectWmsInTaskByRfid(String rfid) {
|
||||
WmsInPlanDetailEntity wmsInPlanDetailEntity = new WmsInPlanDetailEntity();
|
||||
WmsInTask wmsInTask = null;
|
||||
wmsInPlanDetailEntity.setRfid(rfid);
|
||||
List<WmsInPlanDetailEntity> wmsInPlanDetailEntityList = wmsInPlanDetailEntityService.selectWmsInPlanDetailEntityList(wmsInPlanDetailEntity);
|
||||
for (WmsInPlanDetailEntity entity : wmsInPlanDetailEntityList) {
|
||||
WmsInTask wmsInTaskQuery = new WmsInTask();
|
||||
|
Loading…
Reference in New Issue
Block a user