k94314517
2025-07-04 50fb58286ed3b718c39a97e0987ee7561a295651
server/company/src/main/java/com/doumee/api/business/NoticesController.java
@@ -9,8 +9,11 @@
import com.doumee.core.model.PageData;
import com.doumee.core.utils.Constants;
import com.doumee.dao.business.model.Notices;
import com.doumee.dao.business.vo.ApplyNoticeVO;
import com.doumee.service.business.NoticesService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.apache.shiro.SecurityUtils;
import org.apache.shiro.authz.annotation.RequiresPermissions;
@@ -93,4 +96,25 @@
    public ApiResponse findById(@PathVariable Integer id) {
        return ApiResponse.success(noticesService.findById(id));
    }
    @ApiOperation("查询投保单提醒数量")
    @GetMapping("/getApplyNotice")
    public ApiResponse<ApplyNoticeVO> getApplyNotice() {
        LoginUserInfo loginUserInfo = (LoginUserInfo) SecurityUtils.getSubject().getPrincipal();
        return ApiResponse.success(noticesService.getApplyNotice(loginUserInfo.getCompanyId()));
    }
    @ApiOperation("投保单关闭提醒")
    @GetMapping("/closeApplyNotice")
    @ApiImplicitParams({
            @ApiImplicitParam(paramType = "query", dataType = "Integer", name = "type", value = "关闭类型:1=待签署提醒;6=续保提醒", required = true),
    })
    public ApiResponse closeApplyNotice(@RequestParam Integer type) {
        LoginUserInfo loginUserInfo = (LoginUserInfo) SecurityUtils.getSubject().getPrincipal();
        noticesService.closeApplyNotice(loginUserInfo.getCompanyId(),type);
        return ApiResponse.success("操作成功");
    }
}