EventTemplate控制器编写
This commit is contained in:
@@ -4,15 +4,26 @@ import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.njcn.system.pojo.po.EventDict;
|
||||
import com.njcn.system.pojo.vo.EventTemplateTree;
|
||||
import com.njcn.system.pojo.vo.EventTemplateVO;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author hany
|
||||
* @createTime 2022/09/08
|
||||
*/
|
||||
public interface EventTemplateMapper extends BaseMapper<EventDict> {
|
||||
|
||||
/**
|
||||
* 返回所有树节点(全部report_template_dict表数据)
|
||||
*
|
||||
* @author hany
|
||||
* @date 2022/09/21
|
||||
*/
|
||||
List<EventTemplateTree> getAllList();
|
||||
|
||||
/**
|
||||
* 分页查询字典数据
|
||||
* @param page 分页数据
|
||||
|
||||
@@ -11,4 +11,11 @@
|
||||
WHERE ${ew.sqlSegment}
|
||||
</select>
|
||||
|
||||
<!--获取所有表数据-->
|
||||
<select id="getAllList" resultType="com.njcn.system.pojo.vo.EventTemplateTree">
|
||||
select id, pid, name, level, sort
|
||||
from report_template_dict
|
||||
where state = 1
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user