From 3cf1435a6e6e87e9c2b7dccfb872ac208298a1d1 Mon Sep 17 00:00:00 2001 From: syruan <321359594@qq.com> Date: Thu, 23 Jan 2025 17:51:20 +0800 Subject: [PATCH] =?UTF-8?q?i=E7=9A=96=E9=80=81=E6=8E=A8=E9=80=81=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/IwsCostPushController.java | 16 ++++++++ .../material/push/domain/IwsCostPushBean.java | 8 ++++ .../push/mapper/IwsCostPushMapper.java | 5 +++ .../push/service/IwsCostPushService.java | 5 +++ .../service/impl/IwsCostPushServiceImpl.java | 8 ++++ .../material/push/IwsCostPushMapper.xml | 37 +++++++++++++++++++ 6 files changed, 79 insertions(+) diff --git a/bonus-modules/bonus-material/src/main/java/com/bonus/material/push/controller/IwsCostPushController.java b/bonus-modules/bonus-material/src/main/java/com/bonus/material/push/controller/IwsCostPushController.java index 2789ead7..a7cbba2f 100644 --- a/bonus-modules/bonus-material/src/main/java/com/bonus/material/push/controller/IwsCostPushController.java +++ b/bonus-modules/bonus-material/src/main/java/com/bonus/material/push/controller/IwsCostPushController.java @@ -6,10 +6,13 @@ import com.bonus.common.core.web.page.TableDataInfo; import com.bonus.material.push.domain.IwsCostPushBean; import com.bonus.material.push.service.IwsCostPushService; import io.swagger.annotations.ApiOperation; +import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; import javax.annotation.Resource; import javax.servlet.http.HttpServletResponse; +import javax.validation.Valid; +import javax.validation.constraints.NotNull; import java.util.List; /** @@ -21,6 +24,7 @@ import java.util.List; */ @RestController @RequestMapping("/iws_cost_push") +@Validated public class IwsCostPushController extends BaseController { @Resource @@ -51,4 +55,16 @@ public class IwsCostPushController extends BaseController { } + /** + * 查询费用推送审核列表 + * @param obj 查询条件 + */ + @GetMapping("/getCostPushCheckList") + @ApiOperation("查询费用推送审核列表--分页") + public TableDataInfo getCostPushCheckList(@NotNull @Valid IwsCostPushBean obj) { + startPage(); + List list = iwsCostPushService.getCostPushCheckList(obj); + return getDataTable(list); + } + } diff --git a/bonus-modules/bonus-material/src/main/java/com/bonus/material/push/domain/IwsCostPushBean.java b/bonus-modules/bonus-material/src/main/java/com/bonus/material/push/domain/IwsCostPushBean.java index dc8bfd03..2267b08c 100644 --- a/bonus-modules/bonus-material/src/main/java/com/bonus/material/push/domain/IwsCostPushBean.java +++ b/bonus-modules/bonus-material/src/main/java/com/bonus/material/push/domain/IwsCostPushBean.java @@ -2,8 +2,11 @@ package com.bonus.material.push.domain; import com.bonus.common.core.annotation.Excel; import com.fasterxml.jackson.annotation.JsonFormat; +import io.swagger.annotations.ApiModelProperty; import lombok.Data; +import javax.validation.constraints.NotBlank; +import javax.validation.constraints.Size; import java.io.Serializable; import java.time.LocalDateTime; import java.util.List; @@ -65,6 +68,8 @@ public class IwsCostPushBean implements Serializable { private String time; + // 月份 + @NotBlank(message = "月份不能为空") private String month; private String type; @@ -96,6 +101,9 @@ public class IwsCostPushBean implements Serializable { private List ids; + @ApiModelProperty(value = "审核状态") + private Byte checkStatus; + // 推送备注 private String pushRemark; diff --git a/bonus-modules/bonus-material/src/main/java/com/bonus/material/push/mapper/IwsCostPushMapper.java b/bonus-modules/bonus-material/src/main/java/com/bonus/material/push/mapper/IwsCostPushMapper.java index 8a2e83c2..14324a09 100644 --- a/bonus-modules/bonus-material/src/main/java/com/bonus/material/push/mapper/IwsCostPushMapper.java +++ b/bonus-modules/bonus-material/src/main/java/com/bonus/material/push/mapper/IwsCostPushMapper.java @@ -24,4 +24,9 @@ public interface IwsCostPushMapper { * 更新协议push状态 */ int updateAgreementIsPush(IwsCostPushBean o); + + /** + * 查询费用推送审核数据列表 + */ + List getCostPushCheckList(IwsCostPushBean o); } diff --git a/bonus-modules/bonus-material/src/main/java/com/bonus/material/push/service/IwsCostPushService.java b/bonus-modules/bonus-material/src/main/java/com/bonus/material/push/service/IwsCostPushService.java index 3f5ec855..115b512f 100644 --- a/bonus-modules/bonus-material/src/main/java/com/bonus/material/push/service/IwsCostPushService.java +++ b/bonus-modules/bonus-material/src/main/java/com/bonus/material/push/service/IwsCostPushService.java @@ -18,4 +18,9 @@ public interface IwsCostPushService { */ List findAgreement(IwsCostPushBean o); + + /** + * 查询费用推送审核数据列表 + */ + List getCostPushCheckList(IwsCostPushBean o); } diff --git a/bonus-modules/bonus-material/src/main/java/com/bonus/material/push/service/impl/IwsCostPushServiceImpl.java b/bonus-modules/bonus-material/src/main/java/com/bonus/material/push/service/impl/IwsCostPushServiceImpl.java index 07ae8fd1..7a94e1c0 100644 --- a/bonus-modules/bonus-material/src/main/java/com/bonus/material/push/service/impl/IwsCostPushServiceImpl.java +++ b/bonus-modules/bonus-material/src/main/java/com/bonus/material/push/service/impl/IwsCostPushServiceImpl.java @@ -33,4 +33,12 @@ public class IwsCostPushServiceImpl implements IwsCostPushService { public List findAgreement(IwsCostPushBean o) { return iwsCostPushMapper.findAgreement(o); } + + /** + * 查询费用推送审核数据列表 + */ + @Override + public List getCostPushCheckList(IwsCostPushBean o) { + return iwsCostPushMapper.getCostPushCheckList(o); + } } diff --git a/bonus-modules/bonus-material/src/main/resources/mapper/material/push/IwsCostPushMapper.xml b/bonus-modules/bonus-material/src/main/resources/mapper/material/push/IwsCostPushMapper.xml index 04cbf726..801b003b 100644 --- a/bonus-modules/bonus-material/src/main/resources/mapper/material/push/IwsCostPushMapper.xml +++ b/bonus-modules/bonus-material/src/main/resources/mapper/material/push/IwsCostPushMapper.xml @@ -44,4 +44,41 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" #{id} + + \ No newline at end of file