Kaynağa Gözat

任务列表 - 取卸货完成按钮后台逻辑修改

k 1 yıl önce
ebeveyn
işleme
7726417c8f

+ 2 - 4
ruoyi-admin/src/main/java/com/ruoyi/web/controller/warewms/ams/WcsTaskController.java

@@ -119,8 +119,7 @@ public class WcsTaskController extends BaseController {
         if (StringUtils.isNotEmpty(wcsTask.getAgvNo())) {
             agvNo = Integer.parseInt(wcsTask.getAgvNo());
         }
-        AjaxResult ajaxResult = wcsTaskService.callBack(wcsTask.getTaskNo(), 4, agvNo);
-        return AjaxResult.error(ajaxResult.getMsg());
+        return wcsTaskService.callBack(wcsTask.getTaskNo(), 4, agvNo);
     }
 
     @Log(title = "卸货任务完成", businessType = BusinessType.INSERT)
@@ -134,8 +133,7 @@ public class WcsTaskController extends BaseController {
         if (StringUtils.isNotEmpty(wcsTask.getAgvNo())) {
             agvNo = Integer.parseInt(wcsTask.getAgvNo());
         }
-        AjaxResult ajaxResult = wcsTaskService.callBack(wcsTask.getTaskNo(),2,agvNo);
-        return AjaxResult.error(ajaxResult.getMsg());
+        return wcsTaskService.callBack(wcsTask.getTaskNo(), 4, agvNo);
     }
 
     @Log(title = "任务取消", businessType = BusinessType.INSERT)

+ 1 - 1
warewms-ams/src/main/java/com/ruoyi/ams/task/service/impl/WcsTaskServiceImpl.java

@@ -489,7 +489,7 @@ public class WcsTaskServiceImpl implements IWcsTaskService {
         wcsTask.setState(state.longValue());
         wcsTask.setUpdateDate(new Date());
         wcsTaskService.updateWcsTask(wcsTask);
-        return AjaxResult.error("操作成功!");
+        return AjaxResult.success("操作成功!");
     }
 
     /**