From 7621526df22fbc9f6a4d995af99b6c014c486334 Mon Sep 17 00:00:00 2001 From: zhouhefeng Date: Tue, 26 May 2026 16:07:58 +0800 Subject: [PATCH] commit --- .../ActivityReimbursementQueryController.java | 50 +++++ .../ActivityReimbursementBudgetSummaryVO.java | 28 +++ .../vo/ActivityReimbursementRecordVO.java | 55 +++++ .../reimbursement/query/index.html | 189 ++++++++++++++++++ src/test/java/com/budwk/app/JugTest.java | 2 +- 5 files changed, 323 insertions(+), 1 deletion(-) create mode 100644 src/main/java/com/budwk/app/zhgh/activity/declarereimbursement/reimbursement/controller/ActivityReimbursementQueryController.java create mode 100644 src/main/java/com/budwk/app/zhgh/activity/declarereimbursement/vo/ActivityReimbursementBudgetSummaryVO.java create mode 100644 src/main/java/com/budwk/app/zhgh/activity/declarereimbursement/vo/ActivityReimbursementRecordVO.java create mode 100644 src/main/resources/views/platform/zhgh/activity/declarereimbursement/reimbursement/query/index.html diff --git a/src/main/java/com/budwk/app/zhgh/activity/declarereimbursement/reimbursement/controller/ActivityReimbursementQueryController.java b/src/main/java/com/budwk/app/zhgh/activity/declarereimbursement/reimbursement/controller/ActivityReimbursementQueryController.java new file mode 100644 index 0000000..c879cdf --- /dev/null +++ b/src/main/java/com/budwk/app/zhgh/activity/declarereimbursement/reimbursement/controller/ActivityReimbursementQueryController.java @@ -0,0 +1,50 @@ +package com.budwk.app.zhgh.activity.declarereimbursement.reimbursement.controller; + +import cn.dev33.satoken.annotation.SaCheckPermission; +import com.budwk.app.base.page.Pagination; +import com.budwk.app.base.result.Result; +import com.budwk.app.zhgh.activity.declarereimbursement.reimbursement.service.ActivityReimbursementService; +import com.budwk.app.zhgh.activity.declarereimbursement.vo.ActivityReimbursementRecordVO; +import com.budwk.app.zhgh.activity.declarereimbursement.vo.CommonPageParam; +import io.swagger.annotations.ApiOperation; +import org.nutz.ioc.loader.annotation.Inject; +import org.nutz.ioc.loader.annotation.IocBean; +import org.nutz.mvc.annotation.At; +import org.nutz.mvc.annotation.Ok; + +import java.math.BigDecimal; + +/** + * 费用报销记录查询。 + */ +@IocBean +@Ok("json") +@ApiOperation("费用报销记录查询") +@At("/platform/activityReimbursement/query") +public class ActivityReimbursementQueryController { + + @Inject + private ActivityReimbursementService activityReimbursementService; + + @At("") + @SaCheckPermission("activityReimbursement.query") + @Ok("beetl:/platform/zhgh/activity/declarereimbursement/reimbursement/query/index.html") + public void index() { + } + + @At + @ApiOperation("分页查询所有已完成费用报销记录") + @SaCheckPermission("activityReimbursement.query") + public Result pageData(CommonPageParam pageParam) { + Pagination pagination = activityReimbursementService.queryReimbursementRecordPage(pageParam); + return Result.success().addData(pagination); + } + + @At + @ApiOperation("按当前查询条件统计费用报销汇总金额") + @SaCheckPermission("activityReimbursement.query") + public Result summaryMoney(CommonPageParam pageParam) { + BigDecimal summaryMoney = activityReimbursementService.queryReimbursementRecordSummaryMoney(pageParam); + return Result.success(summaryMoney); + } +} diff --git a/src/main/java/com/budwk/app/zhgh/activity/declarereimbursement/vo/ActivityReimbursementBudgetSummaryVO.java b/src/main/java/com/budwk/app/zhgh/activity/declarereimbursement/vo/ActivityReimbursementBudgetSummaryVO.java new file mode 100644 index 0000000..40d1118 --- /dev/null +++ b/src/main/java/com/budwk/app/zhgh/activity/declarereimbursement/vo/ActivityReimbursementBudgetSummaryVO.java @@ -0,0 +1,28 @@ +package com.budwk.app.zhgh.activity.declarereimbursement.vo; + +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + +import java.math.BigDecimal; + +/** + * 预算/报销汇总表行数据。 + * 用于展示指定年度下分工会或协会的预算金额与已完成报销金额。 + */ +@Data +@ApiModel("预算/报销汇总表") +public class ActivityReimbursementBudgetSummaryVO { + + @ApiModelProperty("年度") + private Integer year; + + @ApiModelProperty("分工会或协会名称") + private String name; + + @ApiModelProperty("预算金额") + private BigDecimal budgetMoney; + + @ApiModelProperty("费用报销汇总") + private BigDecimal reimbursementMoney; +} diff --git a/src/main/java/com/budwk/app/zhgh/activity/declarereimbursement/vo/ActivityReimbursementRecordVO.java b/src/main/java/com/budwk/app/zhgh/activity/declarereimbursement/vo/ActivityReimbursementRecordVO.java new file mode 100644 index 0000000..7b068e2 --- /dev/null +++ b/src/main/java/com/budwk/app/zhgh/activity/declarereimbursement/vo/ActivityReimbursementRecordVO.java @@ -0,0 +1,55 @@ +package com.budwk.app.zhgh.activity.declarereimbursement.vo; + +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + +import java.math.BigDecimal; +import java.util.Date; + +/** + * 费用报销记录列表 VO。 + */ +@Data +@ApiModel("费用报销记录列表") +public class ActivityReimbursementRecordVO { + + @ApiModelProperty("报销记录ID") + private String id; + + @ApiModelProperty("申报人姓名") + private String userName; + + @ApiModelProperty("申报人工号") + private String loginName; + + @ApiModelProperty("项目名称") + private String activityName; + + @ApiModelProperty("报销模式,activity 表示活动报销,daily 表示日常报销") + private String activityReimbursementMode; + + @ApiModelProperty("经费类型字典值,对应 ACTIVITY_BUDGET_TYPE") + private String outlayManageSource; + + @ApiModelProperty("预算条目字典值,对应 ACTIVITY_BUDGET_REIMBURSE_TYPE") + private String budgetReimburseType; + + @ApiModelProperty("报销金额") + private BigDecimal actualMoney; + + @ApiModelProperty("申报单位或协会名称") + private String declareUnitName; + + @ApiModelProperty("申报时间") + private Date applyTime; + + @ApiModelProperty("流程实例ID,查看详情和流程信息时使用") + private Long instanceId; + + @ApiModelProperty("流程实例状态") + private Integer instanceState; + + @ApiModelProperty("流程定义ID") + private Long instanceProcessDefineId; +} diff --git a/src/main/resources/views/platform/zhgh/activity/declarereimbursement/reimbursement/query/index.html b/src/main/resources/views/platform/zhgh/activity/declarereimbursement/reimbursement/query/index.html new file mode 100644 index 0000000..c099a67 --- /dev/null +++ b/src/main/resources/views/platform/zhgh/activity/declarereimbursement/reimbursement/query/index.html @@ -0,0 +1,189 @@ + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 汇总金额:{{summaryMoney}} 元 + + + + + + + + + + + + + + + + + + + + +
+ + + diff --git a/src/test/java/com/budwk/app/JugTest.java b/src/test/java/com/budwk/app/JugTest.java index ec41b19..9670539 100644 --- a/src/test/java/com/budwk/app/JugTest.java +++ b/src/test/java/com/budwk/app/JugTest.java @@ -78,7 +78,7 @@ public class JugTest { @Test public void sendMsg() { - smsService.send("20182040", "这是一条由智慧工会系统发出的测试消息。"); +// smsService.send("20182040", "这是一条由智慧工会系统发出的测试消息。"); } @Test