| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- <?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.ydtech.modules.inv.dao.InvPayableStatementMapper">
- <resultMap id="BaseResultMap" type="com.ydtech.modules.inv.model.InvPayableStatement">
- <id property="id" column="id" jdbcType="INTEGER"/>
- <result property="businessChannel" column="business_channel" jdbcType="VARCHAR"/>
- <result property="signingDate" column="signing_date" jdbcType="DATE"/>
- <result property="numberPlate" column="number_plate" jdbcType="VARCHAR"/>
- <result property="insured" column="insured" jdbcType="VARCHAR"/>
- <result property="insuranceCompany" column="insurance_company" jdbcType="VARCHAR"/>
- <result property="dangerous" column="dangerous" jdbcType="VARCHAR"/>
- <result property="orderChannel" column="order_channel" jdbcType="VARCHAR"/>
- <result property="strongCross" column="strong_cross" jdbcType="DECIMAL"/>
- <result property="travelTax" column="travel_tax" jdbcType="DECIMAL"/>
- <result property="business" column="business" jdbcType="DECIMAL"/>
- <result property="strongCrossProportion" column="strong_cross_proportion" jdbcType="VARCHAR"/>
- <result property="travelTaxProportion" column="travel_tax_proportion" jdbcType="VARCHAR"/>
- <result property="businessProportion" column="business_proportion" jdbcType="VARCHAR"/>
- <result property="handle" column="handle" jdbcType="VARCHAR"/>
- </resultMap>
- <sql id="Base_Column_List">
- id
- ,business_channel,signing_date,
- number_plate,insured,insurance_company,
- dangerous,order_channel,strong_cross,
- travel_tax,business,strong_cross_proportion,
- travel_tax_proportion,business_proportion,handle
- </sql>
- <insert id="insertBatch">
- INSERT INTO inv_payable_statement(business_channel, signing_date, number_plate, insured, insurance_company,
- dangerous, order_channel, strong_cross, travel_tax, business, strong_cross_proportion, travel_tax_proportion,
- business_proportion, handle)VALUES
- <foreach collection='invPayableStatements' item='invPayableStatement' separator=','>
- (#{invPayableStatement.businessChannel},
- #{invPayableStatement.signingDate},
- #{invPayableStatement.numberPlate},
- #{invPayableStatement.insured},
- #{invPayableStatement.insuranceCompany},
- #{invPayableStatement.dangerous},
- #{invPayableStatement.orderChannel},
- #{invPayableStatement.strongCross},
- #{invPayableStatement.travelTax},
- #{invPayableStatement.business},
- #{invPayableStatement.strongCrossProportion},
- #{invPayableStatement.travelTaxProportion},
- #{invPayableStatement.businessProportion},
- #{invPayableStatement.handle})
- </foreach>
- </insert>
- <select id="selectBySigningDateAndNumberPlate" resultMap="BaseResultMap" parameterType="java.util.List">
- select * from inv_payable_statement where (signing_date, number_plate) in (
- <foreach collection='invPayableStatements' item='invPayableStatement' separator=','>
- (#{invPayableStatement.signingDate},
- #{invPayableStatement.numberPlate})
- </foreach>)
- </select>
- </mapper>
|