From c93cf2f36c93687d5a933fd4da51ba5bbf90d0b4 Mon Sep 17 00:00:00 2001 From: zhouhefeng Date: Thu, 28 Aug 2025 11:29:30 +0800 Subject: [PATCH] commit --- .../OutlayReimburseSummaryServiceImpl.java | 73 ++++++ .../excellentRecuperation/line/index.html | 234 ++++++++++++++++++ 2 files changed, 307 insertions(+) create mode 100644 src/main/java/com/budwk/app/zhgh/outlay/outlayReimburse/service/impl/OutlayReimburseSummaryServiceImpl.java create mode 100644 src/main/resources/views/platform/zhgh/staffbenefit/excellentRecuperation/line/index.html diff --git a/src/main/java/com/budwk/app/zhgh/outlay/outlayReimburse/service/impl/OutlayReimburseSummaryServiceImpl.java b/src/main/java/com/budwk/app/zhgh/outlay/outlayReimburse/service/impl/OutlayReimburseSummaryServiceImpl.java new file mode 100644 index 00000000..6b670d5e --- /dev/null +++ b/src/main/java/com/budwk/app/zhgh/outlay/outlayReimburse/service/impl/OutlayReimburseSummaryServiceImpl.java @@ -0,0 +1,73 @@ +package com.budwk.app.zhgh.outlay.outlayReimburse.service.impl; + +import cn.hutool.core.util.StrUtil; +import com.budwk.app.base.service.impl.BaseServiceImpl; +import com.budwk.app.base.utils.PageUtil; +import com.budwk.app.flow.enums.ProcessTaskStateEnum; +import com.budwk.app.zhgh.outlay.outlayReimburse.service.OutlayReimburseSummaryService; +import com.budwk.app.zhgh.outlay.outlayReimburse.vo.OutlayReimbursePageForm; +import org.nutz.dao.Cnd; +import org.nutz.dao.Dao; +import org.nutz.dao.Sqls; +import org.nutz.dao.sql.Sql; +import org.nutz.ioc.loader.annotation.IocBean; + +/** + * @author zhf + * @date 2025/8/21 09:17 + * @description + */ +@IocBean(args = {"refer:dao"}) +public class OutlayReimburseSummaryServiceImpl extends BaseServiceImpl implements OutlayReimburseSummaryService { + public OutlayReimburseSummaryServiceImpl(Dao dao) { + super(dao); + } + + @Override + public Sql getSql(OutlayReimbursePageForm pageForm) { + Sql sql = Sqls.create(""" + SELECT + info.*, + ins.id AS instanceId, + ins.businessNo, + ins.state instanceState, + ins.variable instanceVariale, + ins.processDefineId instanceProcessDefineId, + t.id taskId, + t.taskName AS taskKey, + t.displayName taskName, + t.taskType, + t.performType taskPerformType, + t.taskState, + t.finishTime, + t.taskParentId, + t.variable taskVariale, + IF((SELECT taskName FROM wf_process_task tt WHERE tt.id = t.taskParentId) = 'startTask', 1, 0) canRevoke, + (SELECT MAX(id) FROM wf_process_task WHERE processInstanceId = ins.id AND taskName = 'startTask' AND taskState IN (10, 20)) AS startTaskId + FROM + outlay_reimburse info + LEFT JOIN `wf_process_instance` ins ON ins.businessNo = info.id + LEFT JOIN wf_process_task t ON t.processInstanceId = ins.id + AND t.taskState = 10 + LEFT JOIN wf_process_task_actor ta ON ta.processTaskId = t.id + $condition + """); + Cnd cnd = Cnd.NEW(); + cnd.andEX("info.unionId", "=", pageForm.getUnionId()); + cnd.andEX("info.outlayManageSource", "=", pageForm.getOutlayManageSource()); + cnd.andEX("YEAR(info.applyTime)", "=", pageForm.getYear()); + cnd.andEX("info.detailsTypeId", "=", pageForm.getDetailsTypeId()); + cnd.and("ins.state", "=", ProcessTaskStateEnum.FINISHED.getCode()); + if (StrUtil.isAllNotEmpty(pageForm.getSearchName(), pageForm.getSearchKeyword())) { + cnd.where().andLike(pageForm.getSearchName(), pageForm.getSearchKeyword()); + } + if (StrUtil.isAllBlank(pageForm.getPageOrderName(), pageForm.getPageOrderBy())) { + cnd.desc("t.createdAt").desc("info.applyTime"); + } else { + cnd.orderBy(pageForm.getPageOrderName(), PageUtil.getOrder(pageForm.getPageOrderBy())); + } + + sql.setCondition(cnd); + return sql; + } +} diff --git a/src/main/resources/views/platform/zhgh/staffbenefit/excellentRecuperation/line/index.html b/src/main/resources/views/platform/zhgh/staffbenefit/excellentRecuperation/line/index.html new file mode 100644 index 00000000..a835f5d9 --- /dev/null +++ b/src/main/resources/views/platform/zhgh/staffbenefit/excellentRecuperation/line/index.html @@ -0,0 +1,234 @@ + + + + +
+ + + + + + + + + + +
+ +