AppSignKeyMapper.xml 884 B

1234567891011121314151617181920212223
  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.juxiao.xchat.module.xbd.mapper.system.AppSignKeyMapper">
  4. <insert id="insert" parameterType="com.juxiao.xchat.module.xbd.domain.system.AppSignKey" >
  5. insert into app_sign_key (os, app_version, sign_key,
  6. create_time)
  7. values (#{os,jdbcType=VARCHAR}, #{appVersion,jdbcType=VARCHAR}, #{signKey,jdbcType=VARCHAR},
  8. #{createTime,jdbcType=TIMESTAMP})
  9. </insert>
  10. <delete id="deleteBySignKey">
  11. delete from app_sign_key
  12. where sign_key = #{signKey}
  13. </delete>
  14. <update id="updateBySignKey">
  15. update app_sign_key set os=#{os,jdbcType=INTEGER}, app_version=#{appVersion,jdbcType=VARCHAR}, create_time=now()
  16. where sign_key=#{signKey,jdbcType=VARCHAR}
  17. </update>
  18. </mapper>