自定义报表代码提交

This commit is contained in:
2022-10-21 09:05:55 +08:00
parent c0ebd4958e
commit b55d988c7e
14 changed files with 446 additions and 452 deletions

View File

@@ -1,19 +0,0 @@
package com.njcn.harmonic.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.njcn.harmonic.pojo.po.ReportTemplate;
import com.njcn.harmonic.pojo.vo.ReportTemplateVO;
import com.njcn.web.pojo.param.BaseParam;
import org.apache.ibatis.annotations.Param;
/**
* pqs
*
* @author cdf
* @date 2022/8/16
*/
public interface CustomReportMapper extends BaseMapper<ReportTemplate> {
Page<ReportTemplateVO> getReportTemplateList(Page<BaseParam> page, @Param("baseParam")BaseParam baseParam);
}

View File

@@ -1,25 +0,0 @@
<?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.njcn.harmonic.mapper.CustomReportMapper">
<select id="getReportTemplateList" resultType="ReportTemplateVO">
select
a.id,
a.name,
a.dept_id,
b.name deptName,
a.active,
a.update_time,
c.name updateBy
from sys_report_template a
left join sys_dept b on a.dept_id = b.id
left join sys_user c on a.update_by = c.id
where a.state = 1
<if test="baseParam.searchValue!=null and baseParam.searchValue!=''">
and (
a.name like CONCAT('%', #{baseParam.searchValue},'%') or
b.name like CONCAT('%', #{baseParam.searchValue},'%')
)
</if>
</select>
</mapper>