报告模版配置联调
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user