| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- <?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.usoftchina.saas.document.mapper.VendorMapper">
- <resultMap id="VendorResultMapper" type="com.usoftchina.saas.document.entities.Vendor">
- <id column="ve_id" property="id" jdbcType="INTEGER" />
- <result column="ve_code" property="ve_code" jdbcType="VARCHAR" />
- <result column="ve_uu" property="ve_uu" jdbcType="VARCHAR" />
- <result column="ve_name" property="ve_name" jdbcType="VARCHAR" />
- <result column="ve_type" property="ve_type" jdbcType="VARCHAR" />
- <result column="ve_begindate" property="ve_begindate" jdbcType="TIMESTAMP" />
- <result column="ve_beginapamount" property="ve_beginapamount" jdbcType="INTEGER" />
- <result column="ve_beginprepayamount" property="ve_beginprepayamount" jdbcType="INTEGER" />
- <result column="ve_promisedays" property="ve_promisedays" jdbcType="INTEGER" />
- <result column="ve_taxrate" property="ve_taxrate" jdbcType="DOUBLE" />
- <result column="ve_nsrzh" property="ve_nsrzh" jdbcType="VARCHAR" />
- <result column="ve_bankaccount" property="ve_bankaccount" jdbcType="VARCHAR" />
- <result column="ve_bankcode" property="ve_bankcode" jdbcType="VARCHAR" />
- <result column="ve_status" property="ve_status" jdbcType="VARCHAR" />
- <result column="ve_statuscode" property="ve_statuscode" jdbcType="VARCHAR" />
- <result column="ve_recordid" property="ve_recordid" jdbcType="INTEGER" />
- <result column="ve_recordname" property="ve_recordname" jdbcType="VARCHAR" />
- <result column="ve_initdate" property="ve_initdate" jdbcType="TIMESTAMP" />
- <result column="companyid" property="companyId" jdbcType="INTEGER" />
- <result column="updatemanid" property="updaterId" jdbcType="INTEGER" />
- <result column="updatedate" property="updateTime" jdbcType="TIMESTAMP" />
- <result column="ve_text1" property="ve_text1" jdbcType="VARCHAR" />
- <result column="ve_text2" property="ve_text2" jdbcType="VARCHAR" />
- <result column="ve_text3" property="ve_text3" jdbcType="VARCHAR" />
- <result column="ve_text4" property="ve_text4" jdbcType="VARCHAR" />
- <result column="ve_text5" property="ve_text5" jdbcType="VARCHAR" />
- </resultMap>
- <resultMap id="VendorDTOResultMapper" type="com.usoftchina.saas.document.dto.VendorDTO">
- <id column="ve_id" property="id" jdbcType="INTEGER" />
- <result column="ve_code" property="ve_code" jdbcType="VARCHAR" />
- <result column="ve_name" property="ve_name" jdbcType="VARCHAR" />
- <result column="ve_type" property="ve_type" jdbcType="VARCHAR" />
- <result column="ve_status" property="ve_status" jdbcType="VARCHAR" />
- </resultMap>
- <select id="getVendorsByCondition" resultMap="VendorDTOResultMapper" parameterType="com.usoftchina.saas.commons.dto.DocReqDTO">
- SELECT * FROM VENDOR
- <where>
- <if test="condition!=null">
- ${condition}
- </if>
- </where>
- </select>
- </mapper>
|