MounthAccMapper.xml 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
  3. <mapper namespace="com.jkcredit.invoice.mapper.calculateInfor.MounthAccMapper">
  4. <!-- 通用查询映射结果 -->
  5. <resultMap id="BaseResultMap" type="com.jkcredit.invoice.model.entity.Calculate.MounthAcc">
  6. <id column="id" property="id"/>
  7. <result column="customerId" property="customerId"/>
  8. <result column="companyName" property="companyName"/>
  9. <result column="waybillNum" property="waybillNum"/>
  10. <result column="tradeId" property="tradeId"/>
  11. <result column="fee" property="fee"/>
  12. <result column="exTime" property="exTime"/>
  13. <result column="buyerName" property="buyerName"/>
  14. <result column="buyerTaxpayerCode" property="buyerTaxpayerCode"/>
  15. <result column="enStation" property="enStation"/>
  16. <result column="exStation" property="exStation"/>
  17. </resultMap>
  18. <sql id="baseSql">
  19. id,
  20. customerId,
  21. companyName,
  22. waybillNum,
  23. tradeId,
  24. fee,
  25. exTime,
  26. buyerName,
  27. buyerTaxpayerCode,
  28. enStation,
  29. exStation
  30. </sql>
  31. <insert id="insert" parameterType="com.jkcredit.invoice.model.entity.Calculate.MounthAcc" >
  32. insert into t_mouth_cal (
  33. customerId,
  34. companyName,
  35. waybillNum,
  36. tradeId,
  37. fee,
  38. exTime,
  39. buyerName,
  40. buyerTaxpayerCode,
  41. enStation,
  42. exStation
  43. )
  44. values ( #{customerId,jdbcType=VARCHAR}, #{companyName,jdbcType=VARCHAR},#{waybillNum,jdbcType=VARCHAR},
  45. #{tradeId,jdbcType=VARCHAR}, #{fee,jdbcType=DOUBLE},#{exTime,jdbcType=VARCHAR}
  46. ,#{buyerName,jdbcType=VARCHAR},#{buyerTaxpayerCode,jdbcType=VARCHAR},#{enStation,jdbcType=VARCHAR},#{exStation,jdbcType=VARCHAR}
  47. )
  48. </insert>
  49. <delete id="deleteAll">
  50. delete from t_mouth_cal where 1=1
  51. </delete>
  52. </mapper>