fix(入库任务): 通过rfid入库修复

This commit is contained in:
刘名喜 2024-12-04 09:57:54 +08:00
parent d5bf5f2999
commit 5c9ab8087b
2 changed files with 6 additions and 1 deletions

View File

@ -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();
}
/**

View File

@ -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();