洪城义警-正式版后台
zengh
2021-07-16 eceb0c8f9480995c8a17f1d093f4e658268b234c
src/main/java/org/springblade/modules/routeIn/mapper/RouteinMapper.xml
@@ -23,11 +23,31 @@
        <result column="remarks" property="remarks"/>
    </resultMap>
    <resultMap id="treeNodeResultMap" type="org.springblade.core.tool.node.TreeNode">
        <id column="id" property="id"/>
        <result column="parent_id" property="parentId"/>
        <result column="title" property="title"/>
        <result column="value" property="value"/>
        <result column="key" property="key"/>
        <result column="has_children" property="hasChildren"/>
    </resultMap>
    <select id="selectRouteinPage" resultMap="routeinResultMap">
        select * from sys_routein where is_deleted = 0
    </select>
    <select id="tree" resultMap="treeNodeResultMap">
       SELECT
        id,
        0 AS parent_id,
        routeName AS title,
        id AS "value",
        id AS "key"
        FROM
        sys_routein
    </select>
    <insert id="insertlx" useGeneratedKeys="true" keyProperty="id" parameterType="org.springblade.modules.routeIn.entity.Routein">
    INSERT INTO sys_routein (routeName,regionId,routeInfo,rTime,creatName,remarks) VALUES (#{routeName},#{regionId},ST_GeomFromText(${routeInfo}),#{rTime},#{creatName},#{remarks});