Browse Source

Merge remote-tracking branch 'origin/master'

zhuwei 5 months ago
parent
commit
6833746025

+ 42 - 0
blade-service/blade-manager/src/main/java/org/springblade/manager/mapper/NodeBaseInfoMapper.java

@@ -0,0 +1,42 @@
+/*
+ *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
+ *
+ *  Redistribution and use in source and binary forms, with or without
+ *  modification, are permitted provided that the following conditions are met:
+ *
+ *  Redistributions of source code must retain the above copyright notice,
+ *  this list of conditions and the following disclaimer.
+ *  Redistributions in binary form must reproduce the above copyright
+ *  notice, this list of conditions and the following disclaimer in the
+ *  documentation and/or other materials provided with the distribution.
+ *  Neither the name of the dreamlu.net developer nor the names of its
+ *  contributors may be used to endorse or promote products derived from
+ *  this software without specific prior written permission.
+ *  Author: Chill 庄骞 (smallchill@163.com)
+ */
+package org.springblade.manager.mapper;
+
+import org.springblade.manager.entity.NodeBaseInfo;
+import org.springblade.manager.vo.NodeBaseInfoVO;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import java.util.List;
+
+/**
+ *  Mapper 接口
+ *
+ * @author BladeX
+ * @since 2025-03-10
+ */
+public interface NodeBaseInfoMapper extends BaseMapper<NodeBaseInfo> {
+
+	/**
+	 * 自定义分页
+	 *
+	 * @param page
+	 * @param nodeBaseInfo
+	 * @return
+	 */
+	List<NodeBaseInfoVO> selectNodeBaseInfoPage(IPage page, NodeBaseInfoVO nodeBaseInfo);
+
+}

+ 23 - 0
blade-service/blade-manager/src/main/java/org/springblade/manager/mapper/NodeBaseInfoMapper.xml

@@ -0,0 +1,23 @@
+<?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="org.springblade.manager.mapper.NodeBaseInfoMapper">
+
+    <!-- 通用查询映射结果 -->
+    <resultMap id="nodeBaseInfoResultMap" type="org.springblade.manager.entity.NodeBaseInfo">
+        <result column="id" property="id"/>
+        <result column="node_id" property="nodeId"/>
+        <result column="unit" property="unit"/>
+        <result column="sub_unit" property="subUnit"/>
+        <result column="division" property="division"/>
+        <result column="sub_division" property="subDivision"/>
+        <result column="item" property="item"/>
+        <result column="sub_item" property="subItem"/>
+        <result column="processes" property="processes"/>
+    </resultMap>
+
+
+    <select id="selectNodeBaseInfoPage" resultMap="nodeBaseInfoResultMap">
+        select * from m_node_base_info where is_deleted = 0
+    </select>
+
+</mapper>