自定义报表代码提交

This commit is contained in:
2022-10-21 11:24:58 +08:00
parent 53389fb6f3
commit 225cefd1a5
4 changed files with 96 additions and 3 deletions

View File

@@ -5,6 +5,7 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.njcn.harmonic.pojo.param.ReportSearchParam;
import com.njcn.harmonic.pojo.po.ExcelRptTemp;
import com.njcn.harmonic.pojo.vo.ReportTemplateVO;
import com.njcn.user.pojo.dto.DeptDTO;
import com.njcn.web.pojo.param.BaseParam;
import org.apache.ibatis.annotations.Param;
@@ -22,5 +23,5 @@ public interface ExcelRptTempMapper extends BaseMapper<ExcelRptTemp> {
List<ReportTemplateVO> getReportTemplateList(@Param("reportSearchParam")ReportSearchParam reportSearchParam);
List<ReportTemplateVO> getReportTemplateByDept(@Param("deptId")String deptId);
List<ReportTemplateVO> getReportTemplateByDept(@Param("list") List<DeptDTO> list);
}

View File

@@ -46,6 +46,9 @@
LEFT JOIN sys_dept_temp b ON a.Id = b.temp_id
WHERE
a.state = 1
and b.dept_id = #{deptId}
and b.dept_id in
<foreach collection="list" index="index" item="item" separator="," open="(" close=")">
#{item.id}
</foreach>
</select>
</mapper>