refactor(消息通知): 通知内容增加“订单号”

This commit is contained in:
Kelvin 2025-01-07 14:24:02 +08:00
parent 888335a5bc
commit 0e2cd55fbd

View File

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