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.
72 lines
2.2 KiB
Java
72 lines
2.2 KiB
Java
2 years ago
|
package com.glxp.api.controller.purchase;
|
||
|
|
||
|
import cn.hutool.core.util.StrUtil;
|
||
|
import com.github.pagehelper.PageInfo;
|
||
|
import com.glxp.api.common.enums.ResultEnum;
|
||
|
import com.glxp.api.common.res.BaseResponse;
|
||
|
import com.glxp.api.common.util.ResultVOUtils;
|
||
|
import com.glxp.api.req.purchase.FilterCertRemindMsgRequest;
|
||
|
import com.glxp.api.res.purchase.SupCertRemindMsgResponse;
|
||
|
import com.glxp.api.service.purchase.SupCertRemindMsgService;
|
||
|
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 SupCertRemindMsgController {
|
||
|
|
||
|
@Resource
|
||
|
private SupCertRemindMsgService supCertRemindMsgService;
|
||
|
|
||
|
/**
|
||
|
* 查询资质预警信息列表
|
||
|
*
|
||
|
* @param filterCertRemindMsgRequest
|
||
|
* @return
|
||
|
*/
|
||
|
@GetMapping("/sup/cert/remind/msg/filter")
|
||
|
public BaseResponse filterList(FilterCertRemindMsgRequest filterCertRemindMsgRequest) {
|
||
|
List<SupCertRemindMsgResponse> list = supCertRemindMsgService.filterList(filterCertRemindMsgRequest);
|
||
|
PageInfo<SupCertRemindMsgResponse> pageInfo = new PageInfo<>(list);
|
||
|
return ResultVOUtils.page(pageInfo);
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* 确认消息
|
||
|
*
|
||
|
* @param id
|
||
|
* @param handleMsg 处理方式
|
||
|
* @return
|
||
|
*/
|
||
|
@GetMapping("/sup/cert/remind/msg/confirmMsg")
|
||
|
public BaseResponse confirmMsg(Integer id, String handleMsg) {
|
||
|
if (null == id || StrUtil.isBlank(handleMsg)) {
|
||
|
return ResultVOUtils.error(ResultEnum.PARAM_VERIFY_FALL);
|
||
|
}
|
||
|
return supCertRemindMsgService.confirmMsg(id, handleMsg);
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* 忽略消息
|
||
|
*
|
||
|
* @param id
|
||
|
* @param ignoreStatus 忽略状态
|
||
|
* @return
|
||
|
*/
|
||
|
@GetMapping("/sup/cert/remind/msg/ignoreMsg")
|
||
|
public BaseResponse ignoreMsg(Integer id, Integer ignoreStatus) {
|
||
|
if (null == id || null == ignoreStatus) {
|
||
|
return ResultVOUtils.error(ResultEnum.PARAM_VERIFY_FALL);
|
||
|
}
|
||
|
return supCertRemindMsgService.ignoreMsg(id, ignoreStatus);
|
||
|
}
|
||
|
|
||
|
}
|