From 8a3a1c0b838d3b532750dc7c69362c2f5b0e7132 Mon Sep 17 00:00:00 2001 From: heheng <475597332@qq.com> Date: 星期一, 18 八月 2025 10:35:59 +0800 Subject: [PATCH] 部分新功能 --- multi-system/src/main/resources/mapper/system/AnnualReportMapper.xml | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 48 insertions(+), 0 deletions(-) diff --git a/multi-system/src/main/resources/mapper/system/AnnualReportMapper.xml b/multi-system/src/main/resources/mapper/system/AnnualReportMapper.xml new file mode 100644 index 0000000..592ecf9 --- /dev/null +++ b/multi-system/src/main/resources/mapper/system/AnnualReportMapper.xml @@ -0,0 +1,48 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> +<mapper namespace="com.gkhy.exam.system.mapper.AnnualReportMapper"> + + <select id="selectAnnualList" resultType="com.gkhy.exam.system.domain.AnnualReport"> + SELECT + ar.`id`, + ar.`company_id`, + sc.`name` AS company_name, + ar.`report_name`, + ar.`number`, + ar.`dept_id`, + sd.dept_name, + ar.`end_time`, + ar.`grant_amount`, + ar.`recycle_amount`, + ar.`recycle_rate`, + ar.`check_amount`, + ar.`year_rate`, + ar.`anciently_rate`, + ar.`research_satisficing`, + ar.`delivery_satisficing`, + ar.`sum_satisficing`, + ar.`suggest`, + ar.`agent_id`, + su1.`name` AS agent_name, + ar.`dept_user`, + su2.`name` AS dept_user_name, + ar.`del_flag`, + ar.`create_by`, + ar.`create_time`, + ar.`update_by`, + ar.`update_time` + FROM + `annual_report` ar + LEFT JOIN sys_company sc ON ar.company_id = sc.id + LEFT JOIN sys_user su1 ON ar.agent_id = su1.id + LEFT JOIN sys_user su2 ON ar.dept_user = su2.id + LEFT JOIN sys_dept sd ON ar.dept_id = sd.dept_id + WHERE + ar.del_flag = 1 + <if test="companyId!=null"> + AND ar.company_id = 24 + </if> + ORDER BY + ar.create_time DESC + </select> +</mapper> -- Gitblit v1.9.2