From ddc374613a8926aabc5221fe907393ab5d1a6fc9 Mon Sep 17 00:00:00 2001 From: JyuHsin <729757837@qq.com> Date: Mon, 21 Apr 2025 14:12:46 +0800 Subject: [PATCH] commit --- .../controller/preAuditManageController.java | 2 +- .../controller/preAuditQueryController.java | 11 ++- .../controller/preAuditSchoolController.java | 7 +- .../platform/reimbursementPreAudit/audit.html | 73 +++++++++++------- .../platform/reimbursementPreAudit/query.html | 77 +++++++++++-------- .../views/platform/sys/union/unionMange.html | 4 +- 6 files changed, 108 insertions(+), 66 deletions(-) diff --git a/src/main/java/io/v/nutz/reimbursementPreAudit/controller/preAuditManageController.java b/src/main/java/io/v/nutz/reimbursementPreAudit/controller/preAuditManageController.java index 8c37984..0eb4c87 100644 --- a/src/main/java/io/v/nutz/reimbursementPreAudit/controller/preAuditManageController.java +++ b/src/main/java/io/v/nutz/reimbursementPreAudit/controller/preAuditManageController.java @@ -50,7 +50,7 @@ public class preAuditManageController { SELECT * FROM `reimbursement_pre_audit` $condition """); cnd.andEX("YEAR(applyDate)", "=", year); - cnd.andEX("userId", "=", ShiroUtil.getUserId()); + cnd.andEX("unionId", "=", Vi.getUnionId()); cnd.desc("applyDate").desc("opAt"); if (StrUtil.isNotEmpty(notes)) { cnd.andEX("notes", "like", "%" + notes + "%"); diff --git a/src/main/java/io/v/nutz/reimbursementPreAudit/controller/preAuditQueryController.java b/src/main/java/io/v/nutz/reimbursementPreAudit/controller/preAuditQueryController.java index d592174..e1576b2 100644 --- a/src/main/java/io/v/nutz/reimbursementPreAudit/controller/preAuditQueryController.java +++ b/src/main/java/io/v/nutz/reimbursementPreAudit/controller/preAuditQueryController.java @@ -37,23 +37,26 @@ public class preAuditQueryController { @At @ViReturn @RequiresPermissions("reimbursementPreAudit.manage") - public Object pageData(PageForm pageForm, String startDate, String endDate, String notes,String unitId,String unionId) { + public Object pageData(PageForm pageForm, String startDate, String endDate, String notes, String unitId, String unionId) { Cnd cnd = Cnd.NEW(); Sql sql = Sqls.create(""" SELECT * FROM `reimbursement_pre_audit` $condition """); cnd.andEX("applyDate", ">=", startDate); cnd.andEX("applyDate", "<=", endDate); - cnd.andEX("userId", "=", ShiroUtil.getUserId()); - cnd.andEX("auditState", "=", 3); + cnd.andEX("auditState", ">=", 3); cnd.andEX("unitId", "=", unitId); cnd.andEX("unionId", "=", unionId); - cnd.desc("applyDate").desc("opAt"); if (StrUtil.isNotEmpty(notes)) { cnd.andEX("notes", "like", "%" + notes + "%"); } + if (StrUtil.isAllNotEmpty(pageForm.getSearchName(), pageForm.getSearchKeyword())) { + cnd.and(Cnd.likeEX(pageForm.getSearchName(), pageForm.getSearchKeyword())); + } if (StrUtil.isAllNotEmpty(pageForm.getPageOrderName(), pageForm.getPageOrderBy())) { cnd.orderBy(pageForm.getPageOrderName(), pageForm.getPageOrderBy()); + }else{ + cnd.desc("applyDate").desc("opAt"); } sql.setCondition(cnd); return baseService.listPageMap(pageForm.getPageNumber(), pageForm.getPageSize(), sql); diff --git a/src/main/java/io/v/nutz/reimbursementPreAudit/controller/preAuditSchoolController.java b/src/main/java/io/v/nutz/reimbursementPreAudit/controller/preAuditSchoolController.java index 5d2a391..7e10542 100644 --- a/src/main/java/io/v/nutz/reimbursementPreAudit/controller/preAuditSchoolController.java +++ b/src/main/java/io/v/nutz/reimbursementPreAudit/controller/preAuditSchoolController.java @@ -57,11 +57,14 @@ public class preAuditSchoolController { if (StrUtil.isNotEmpty(notes)) { cnd.andEX("notes", "like", "%" + notes + "%"); } - cnd.andEX("userId", "=", ShiroUtil.getUserId()); - cnd.desc("applyDate").desc("opAt"); + if (StrUtil.isAllNotEmpty(pageForm.getSearchName(), pageForm.getSearchKeyword())) { + cnd.and(Cnd.likeEX(pageForm.getSearchName(), pageForm.getSearchKeyword())); + } if (StrUtil.isAllNotEmpty(pageForm.getPageOrderName(), pageForm.getPageOrderBy())) { cnd.orderBy(pageForm.getPageOrderName(), pageForm.getPageOrderBy()); + }else{ + cnd.desc("applyDate").desc("opAt"); } sql.setCondition(cnd); return baseService.listPageMap(pageForm.getPageNumber(), pageForm.getPageSize(), sql); diff --git a/src/main/resources/views/platform/reimbursementPreAudit/audit.html b/src/main/resources/views/platform/reimbursementPreAudit/audit.html index 5e9a36f..91064e5 100644 --- a/src/main/resources/views/platform/reimbursementPreAudit/audit.html +++ b/src/main/resources/views/platform/reimbursementPreAudit/audit.html @@ -16,22 +16,40 @@ layout("/layouts/platform.html"){
年  度:
+ placeholder="选择年" + style="width: 100%" + type="year" v-model="pageForm.year" + value-format="yyyy">
-
事由:
+
姓名/工号:
- + + + + +
+
+
摘要:
+
+ + +
+
+ +
所属工会:
@@ -82,12 +100,12 @@ layout("/layouts/platform.html"){ type="index" width="80px"> + :label="column.label" + :prop="column.prop" + :sortable="column.sortable" + align="center" + header-align="center" + v-for="column in tableColumns">