GzptVideoVipMapper.xml 1.3 KB

12345678910111213141516171819202122232425262728293031323334
  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.GzptVideoVipMapper">
  4. <insert id="saveGzptVideoVip" parameterType="com.miaxis.newgzpt.domain.GzptVideoVip">
  5. insert into GZPT_VIDEO_VIP VALUES (seq_gzpt_video_vip.nextval,
  6. #{userId},
  7. #{userName,jdbcType=VARCHAR},
  8. #{subject2,jdbcType=DATE},
  9. #{subject3,jdbcType=DATE})
  10. </insert>
  11. <update id="updateGzptVideoVipByUserId" parameterType="com.miaxis.newgzpt.domain.GzptVideoVip">
  12. update GZPT_VIDEO_VIP
  13. set SUBJECT2 = #{subject2,jdbcType=DATE}, SUBJECT3 = #{subject3,jdbcType=DATE}
  14. where user_id = #{userId}
  15. </update>
  16. <select id="getGzptVideoVipByUserId" resultType="com.miaxis.newgzpt.domain.GzptVideoVip" parameterType="com.miaxis.newgzpt.dto.GzptVideoVipDTO">
  17. select * from GZPT_VIDEO_VIP
  18. <where>
  19. and user_id = #{userId}
  20. </where>
  21. </select>
  22. <delete id="removeByUserId" parameterType="long">
  23. delete from GZPT_VIDEO_VIP where user_id = #{userId}
  24. </delete>
  25. </mapper>