<?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.modules.energy.mapper.EnergyTreeMapper">
|
|
<!-- 通用查询映射结果 -->
|
<resultMap id="EnergyTreeResultMap" type="org.springblade.modules.energy.entity.EnergyTree">
|
<id column="id" property="id"/>
|
<result column="identification" property="identification"/>
|
<result column="num" property="num"/>
|
</resultMap>
|
|
|
<select id="selectNum" resultType="java.lang.String">
|
SELECT num FROM sys_energytree where identification=#{identification}
|
</select>
|
|
|
<update id="updateEnergyTreeId">
|
UPDATE sys_energytree SET
|
num =#{num} WHERE identification = #{identification}
|
</update>
|
|
</mapper>
|