123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475 |
- <?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.zcxk.dao.sqlserver.ReceiveDao">
- <update id="getMeterInfor" parameterType="map" statementType="CALLABLE">
- { call DBi_GetMeterInfor_Batch(
- #{regionId,mode=IN,jdbcType=VARCHAR},
- #{returnCode,mode=OUT,jdbcType=INTEGER},
- #{returnMsg,mode=OUT,jdbcType=VARCHAR}
- )
- }
- </update>
- <update id="getMeterChangeRecord" parameterType="map" statementType="CALLABLE">
- { call DBi_GetMeterInfor_Batch(
- #{regionId,mode=IN,jdbcType=VARCHAR},
- #{changeField,mode=IN,jdbcType=VARCHAR},
- #{id,mode=IN,jdbcType=INTEGER},
- #{returnCode,mode=OUT,jdbcType=INTEGER},
- #{returnMsg,mode=OUT,jdbcType=VARCHAR}
- )
- }
- </update>
- <update id="getUploadPlan" parameterType="map" statementType="CALLABLE">
- { call DBi_GetMeterInfor_Batch(
- #{returnCode,mode=OUT,jdbcType=INTEGER},
- #{returnMsg,mode=OUT,jdbcType=VARCHAR}
- )
- }
- </update>
- <update id="creatUploadTask" parameterType="map" statementType="CALLABLE">
- { call DBi_GetMeterInfor_Batch(
- #{regionId,mode=IN,jdbcType=VARCHAR},
- #{taskId,mode=OUT,jdbcType=VARCHAR},
- #{returnCode,mode=OUT,jdbcType=INTEGER},
- #{returnMsg,mode=OUT,jdbcType=VARCHAR}
- )
- }
- </update>
- <update id="meterDataInsert" parameterType="map" statementType="CALLABLE">
- { call DBi_GetMeterInfor_Batch(
- #{taskId,mode=IN,jdbcType=VARCHAR},
- #{meterData,mode=IN,jdbcType=VARCHAR},
- #{returnCode,mode=OUT,jdbcType=INTEGER},
- #{returnMsg,mode=OUT,jdbcType=VARCHAR}
- )
- }
- </update>
- <update id="dropMeterDataTable">
- drop table huaxu_meter_data
- </update>
- <update id="createMeterDataTable">
- CREATE table huaxu_meter_data (
- releationId nvarchar(20) Not NULL,
- currentReading decimal(18, 2) NULL,
- currentReadDate char (19) NOT NULL)
- </update>
- <insert id="insertIntoMeterDataTemp">
- INSERT INTO huaxu_meter_data
- (releationId, currentReading, currentReadDate)
- VALUES
- <foreach collection ="list" item="water" separator =",">
- (#{water.releationId}, #{water.currentReading}, #{water.currentReadDate})
- </foreach >
- </insert>
- <insert id="insertIntoMeterData">
- insert into @meterData (releationId,currentReading,currentReadDate) select *from huaxu_meter_data
- </insert>
- </mapper>
|