StationPayManageMapper.xml 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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.platform.yijia.dao.StationPayManageMapper">
  4. <resultMap id="BaseResultMap" type="com.platform.yijia.pojo.StationPayManage">
  5. <id column="pay_id" jdbcType="INTEGER" property="payId" />
  6. <result column="pay_mode" jdbcType="VARCHAR" property="payMode" />
  7. <result column="station_id" jdbcType="INTEGER" property="stationId" />
  8. <result column="station_name" jdbcType="VARCHAR" property="stationName" />
  9. <result column="image_photos_flag" jdbcType="CHAR" property="imagePhotosFlag" />
  10. <result column="activity_pic" jdbcType="LONGVARBINARY" property="activityPic" />
  11. <result column="card_enabled_flag" jdbcType="CHAR" property="cardEnabledFlag" />
  12. <result column="preferential_way_share_flag" jdbcType="CHAR" property="preferentialWayShareFlag" />
  13. <result column="other_preferential_way" jdbcType="VARCHAR" property="otherPreferentialWay" />
  14. <result column="pay_print_num" jdbcType="INTEGER" property="payPrintNum" />
  15. <result column="pay_callback_page" jdbcType="VARCHAR" property="payCallbackPage" />
  16. <result column="ws_print_flag" jdbcType="CHAR" property="wsPrintFlag" />
  17. <result column="print_setting" jdbcType="VARCHAR" property="printSetting" />
  18. <result column="discount_setting" jdbcType="VARCHAR" property="discountSetting" />
  19. <result column="is_no_oil" jdbcType="VARCHAR" property="isNoOil" />
  20. <result column="notice" jdbcType="VARCHAR" property="notice" />
  21. <result column="integral_flag" jdbcType="VARCHAR" property="integralFlag" />
  22. <result column="integral_print_flag" jdbcType="VARCHAR" property="integralPrintFlag" />
  23. </resultMap>
  24. <sql id="Base_Column_List">
  25. pay_id, pay_mode, station_id, station_name, image_photos_flag,activity_pic, card_enabled_flag,
  26. preferential_way_share_flag, other_preferential_way, pay_print_num, pay_callback_page,
  27. ws_print_flag, print_setting, discount_setting, is_no_oil, notice, integral_flag, integral_print_flag
  28. </sql>
  29. <!--查询油站配置信息-->
  30. <select id="selectStationPayManage" parameterType="com.platform.yijia.pojo.StationPayManage" resultMap="BaseResultMap">
  31. SELECT
  32. <include refid="Base_Column_List" />
  33. FROM station_pay
  34. <where>
  35. <if test="stationId !=null">
  36. station_id = #{stationId}
  37. </if>
  38. </where>
  39. </select>
  40. </mapper>