报告模版配置联调

This commit is contained in:
zhuxinyu
2023-04-20 15:33:07 +08:00
parent a844123e43
commit e4e8e991cc
13 changed files with 104 additions and 27 deletions

View File

@@ -3,10 +3,11 @@ package com.njcn.system.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.njcn.system.pojo.dto.EventReportDictDTO;
import com.njcn.system.pojo.po.ReportDict;
import org.apache.ibatis.annotations.Param;
import java.util.List;
public interface EventDictMapper extends BaseMapper<ReportDict> {
List<EventReportDictDTO> getAllDict();
List<EventReportDictDTO> getAllDict(@Param("type") String type);
}

View File

@@ -3,6 +3,6 @@
<mapper namespace="com.njcn.system.mapper.EventDictMapper">
<select id="getAllDict" resultType="EventReportDictDTO">
SELECT * from report_dict WHERE State = 1
SELECT * from report_dict WHERE State = 1 AND Type = #{type}
</select>
</mapper>