文件名从 src/main/resources/mapper/DatabridgeMapper.xml 修改 |
| | |
| | | <?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="com.ard.alarm.digitization.mapper.DatabridgeMapper"> |
| | | <resultMap id="BaseResultMap" type="com.ard.alarm.digitization.model.Databridge"> |
| | | <mapper namespace="com.ard.alarm.digitization.mapper.DataBridgeMapper"> |
| | | <resultMap id="BaseResultMap" type="com.ard.alarm.digitization.model.DataBridge"> |
| | | <id column="DB_GUID" jdbcType="NVARCHAR" property="id" /> |
| | | <result column="DB_XMMC" jdbcType="VARCHAR" property="xmmc" /> |
| | | <result column="DB_FKEY" jdbcType="VARCHAR" property="fKey" /> |
| | |
| | | from DATABRIDGE |
| | | where DB_GUID = #{id,jdbcType=NVARCHAR} |
| | | </select> |
| | | <select id="selectDatabridgeList" parameterType="com.ard.alarm.digitization.model.Databridge" resultMap="BaseResultMap"> |
| | | <select id="selectDatabridgeList" parameterType="com.ard.alarm.digitization.model.DataBridge" resultMap="BaseResultMap"> |
| | | select |
| | | <include refid="Base_Column_List" /> |
| | | from (select * from DATABRIDGE order by DB_DATETIME desc ) |
| | |
| | | delete from DATABRIDGE |
| | | where DB_GUID = #{id,jdbcType=NVARCHAR} |
| | | </delete> |
| | | <insert id="insert" parameterType="com.ard.alarm.digitization.model.Databridge"> |
| | | <insert id="insert" parameterType="com.ard.alarm.digitization.model.DataBridge"> |
| | | insert into DATABRIDGE (DB_GUID, DB_XMMC, DB_FKEY, |
| | | DB_FNAME, DB_VALUE, DB_DATETIME, |
| | | DB_BZ) |
| | |
| | | #{fName,jdbcType=VARCHAR}, #{value,jdbcType=VARCHAR}, #{dateTime,jdbcType=TIMESTAMP}, |
| | | #{DB_BZ,jdbcType=VARCHAR}) |
| | | </insert> |
| | | <insert id="insertSelective" parameterType="com.ard.alarm.digitization.model.Databridge"> |
| | | <insert id="insertSelective" parameterType="com.ard.alarm.digitization.model.DataBridge"> |
| | | insert into DATABRIDGE |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="id != null"> |
| | |
| | | </if> |
| | | </trim> |
| | | </insert> |
| | | <update id="updateByPrimaryKeySelective" parameterType="com.ard.alarm.digitization.model.Databridge"> |
| | | <update id="updateByPrimaryKeySelective" parameterType="com.ard.alarm.digitization.model.DataBridge"> |
| | | update DATABRIDGE |
| | | <set> |
| | | <if test="xmmc != null"> |
| | |
| | | </set> |
| | | where DB_GUID = #{id,jdbcType=NVARCHAR} |
| | | </update> |
| | | <update id="updateByPrimaryKey" parameterType="com.ard.alarm.digitization.model.Databridge"> |
| | | <update id="updateByPrimaryKey" parameterType="com.ard.alarm.digitization.model.DataBridge"> |
| | | update DATABRIDGE |
| | | set DB_XMMC = #{xmmc,jdbcType=VARCHAR}, |
| | | DB_FKEY = #{fKey,jdbcType=VARCHAR}, |