diff --git a/ktg-admin/src/main/java/com/ktg/web/controller/system/SysMessageController.java b/ktg-admin/src/main/java/com/ktg/web/controller/system/SysMessageController.java index deca42e..a088b34 100644 --- a/ktg-admin/src/main/java/com/ktg/web/controller/system/SysMessageController.java +++ b/ktg-admin/src/main/java/com/ktg/web/controller/system/SysMessageController.java @@ -7,6 +7,7 @@ import com.ktg.common.constant.UserConstants; import com.ktg.common.core.domain.entity.SysUser; import com.ktg.common.utils.StringUtils; import com.ktg.framework.message.MessageProvider; +import com.ktg.system.domain.dto.AgvArrivedDto; import com.ktg.system.service.ISysUserService; import org.springframework.security.access.prepost.PreAuthorize; import org.springframework.beans.factory.annotation.Autowired; @@ -91,8 +92,8 @@ public class SysMessageController extends BaseController { */ @Log(title = "消息", businessType = BusinessType.INSERT) @PostMapping("/open/agv-arrived") - public AjaxResult addAgv(@RequestBody SysMessage sysMessage) { - sysMessageService.insertSysPromptMessage("AGV小车已到达",""); + public AjaxResult addAgv(@RequestBody AgvArrivedDto agvArrivedDto) { + sysMessageService.insertSysPromptMessage("AGV小车已到达", "订单号: " + agvArrivedDto.getOrderNo()); return AjaxResult.success(); }