GzptSchPayConfigMapper.xml 1.0 KB

1234567891011121314151617181920212223242526
  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.miaxis.newgzpt.mapper.GzptSchPayConfigMapper">
  4. <select id="getSchPayConfigByJxbh" resultType="com.miaxis.newgzpt.domain.GzptSchPayConfig">
  5. select * from GZPT_SCH_PAY_CONFIG where jxbh =#{jxbh}
  6. </select>
  7. <select id="selectSchPayConfigList" resultType="com.miaxis.newgzpt.dto.GzptSchPayConfigDTO">
  8. select * from GZPT_SCH_PAY_CONFIG
  9. <where>
  10. <if test="isOpen != null"> and is_open = #{isOpen }</if>
  11. <if test="jxmc != null and jxmc != ''"> and jxmc like '%' || #{jxmc,jdbcType=VARCHAR} || '%'</if>
  12. </where>
  13. </select>
  14. <update id="updateSchPayConfigByJxbh" parameterType="com.miaxis.newgzpt.dto.GzptSchPayConfigUpDTO">
  15. update GZPT_SCH_PAY_CONFIG
  16. set OPEN_TIME = #{openTime,jdbcType=DATE}, IS_OPEN = #{isOpen} , SYNC = 0
  17. where jxbh =#{jxbh}
  18. </update>
  19. </mapper>