InvSettlementSourceMapper.xml 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE mapper
  3. PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
  4. "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
  5. <mapper namespace="com.ydtech.modules.inv.dao.InvSettlementSourceMapper">
  6. <resultMap id="BaseResultMap" type="com.ydtech.modules.inv.model.po.InvSettlementSource">
  7. <id property="employeeId" column="employee_id" jdbcType="BIGINT"/>
  8. <id property="id" column="id" jdbcType="BIGINT"/>
  9. <result property="signDate" column="sign_date" jdbcType="TIMESTAMP"/>
  10. <result property="licenseno" column="licenseno" jdbcType="INTEGER"/>
  11. <result property="insuredName" column="insured_name" jdbcType="VARCHAR"/>
  12. <result property="insuranceCompany" column="insurance_company" jdbcType="VARCHAR"/>
  13. <result property="insuranceType" column="insurance_type" jdbcType="VARCHAR"/>
  14. <result property="businessOwner" column="business_owner" jdbcType="VARCHAR"/>
  15. <result property="jqPolicyId" column="jq_policy_id" jdbcType="INTEGER"/>
  16. <result property="syPolicyId" column="sy_policy_id" jdbcType="INTEGER"/>
  17. <result property="nonCarPolicyId" column="non_car_policy_id" jdbcType="INTEGER"/>
  18. <result property="jqPremiumTax" column="jq_premium_tax" jdbcType="VARCHAR"/>
  19. <result property="vehicleTax" column="vehicle_tax" jdbcType="VARCHAR"/>
  20. <result property="syPremiumTax" column="sy_premium_tax" jdbcType="VARCHAR"/>
  21. <result property="nonCarPremiumTax" column="non_car_premium_tax" jdbcType="VARCHAR"/>
  22. <result property="compulsoryExportRatio" column="compulsory_export_ratio" jdbcType="VARCHAR"/>
  23. <result property="commercialExportRatio" column="commercial_export_ratio" jdbcType="VARCHAR"/>
  24. <result property="nonVehicleExportRatio" column="non_vehicle_export_ratio" jdbcType="VARCHAR"/>
  25. <result property="settlementAmount" column="settlement_amount" jdbcType="VARCHAR"/>
  26. <result property="agencySettlementTime" column="agency_settlement_time" jdbcType="TIMESTAMP"/>
  27. <result property="revenueTime" column="revenue_time" jdbcType="VARCHAR"/>
  28. <result property="revenueName" column="revenue_name" jdbcType="VARCHAR"/>
  29. <result property="revenueUserId" column="revenue_userid" jdbcType="VARCHAR"/>
  30. </resultMap>
  31. <sql id="Base_Column_List">
  32. employee_id,id,sign_date,
  33. licenseno,insured_name,insurance_company,
  34. insurance_type,business_owner,jq_policy_id,
  35. sy_policy_id,non_car_policy_id,jq_premium_tax,
  36. vehicle_tax,sy_premium_tax,non_car_premium_tax,
  37. compulsory_export_ratio,commercial_export_ratio,non_vehicle_export_ratio,
  38. settlement_amount,agency_settlement_time,revenue_time,revenue_name,revenue_userid
  39. </sql>
  40. <select id="getReceivableListByLicenseno" resultType="java.lang.String">
  41. select licenseno from inv_source where licenseno in
  42. <foreach collection="namesList" item="item" open="(" separator="," close=")">
  43. #{item}
  44. </foreach>
  45. </select>
  46. </mapper>