You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
65 lines
1.8 KiB
Java
65 lines
1.8 KiB
Java
package com.glxp.api.controller.inv;
|
|
|
|
import com.github.pagehelper.PageInfo;
|
|
import com.glxp.api.common.res.BaseResponse;
|
|
import com.glxp.api.common.util.ResultVOUtils;
|
|
import com.glxp.api.req.inv.FilterInvRemindMsgRequest;
|
|
import com.glxp.api.res.inv.InvRemindMsgResponse;
|
|
import com.glxp.api.service.inv.InvRemindMsgService;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
import javax.annotation.Resource;
|
|
import java.util.List;
|
|
|
|
/**
|
|
* 库存预警消息接口
|
|
*/
|
|
@Slf4j
|
|
@RestController
|
|
public class InvRemindMsgController {
|
|
|
|
@Resource
|
|
private InvRemindMsgService invRemindMsgService;
|
|
|
|
/**
|
|
* 查询预警消息列表
|
|
*
|
|
* @param filterInvRemindMsgRequest
|
|
* @return
|
|
*/
|
|
@GetMapping("/udiwms/inv/remind/msg/filter")
|
|
public BaseResponse filterList(FilterInvRemindMsgRequest filterInvRemindMsgRequest) {
|
|
List<InvRemindMsgResponse> list = invRemindMsgService.filterList(filterInvRemindMsgRequest);
|
|
PageInfo<InvRemindMsgResponse> pageInfo = new PageInfo<>(list);
|
|
return ResultVOUtils.page(pageInfo);
|
|
}
|
|
|
|
/**
|
|
* 确认预警消息
|
|
*
|
|
* @param id
|
|
* @param handleMsg 处理方式
|
|
* @return
|
|
*/
|
|
@GetMapping("/udiwms/inv/remind/msg/confirmMsg")
|
|
public BaseResponse confirmMsg(Integer id, String handleMsg) {
|
|
return invRemindMsgService.confirmMsg(id, handleMsg);
|
|
}
|
|
|
|
/**
|
|
* 忽略消息提醒
|
|
*
|
|
* @param id 消息ID
|
|
* @param ignoreStatus 忽略状态
|
|
* @return
|
|
*/
|
|
@GetMapping("/udiwms/inv/remind/msg/ignoreMsg")
|
|
public BaseResponse ignoreMsg(Integer id, Integer ignoreStatus) {
|
|
return invRemindMsgService.ignoreMsg(id, ignoreStatus);
|
|
}
|
|
|
|
|
|
}
|