UserStrategyExport_Mapper.xml 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637
  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.seamew.lottery.infrastructure.dao.IUserStrategyExportDao">
  4. <insert id="insert" parameterType="com.seamew.lottery.infrastructure.po.UserStrategyExport">
  5. INSERT INTO user_strategy_export
  6. (u_id, activity_id, order_id, strategy_id, strategy_mode,
  7. grant_type, grant_date, grant_state, award_id, award_type,
  8. award_name, award_content, uuid, create_time, update_time)
  9. VALUES (#{uId}, #{activityId}, #{orderId}, #{strategyId}, #{strategyMode},
  10. #{grantType}, #{grantDate}, #{grantState}, #{awardId}, #{awardType},
  11. #{awardName}, #{awardContent}, #{uuid}, now(), now())
  12. </insert>
  13. <select id="queryUserStrategyExportByUId" parameterType="java.lang.String"
  14. resultType="com.seamew.lottery.infrastructure.po.UserStrategyExport">
  15. SELECT id,
  16. u_id,
  17. activity_id,
  18. order_id,
  19. strategy_id,
  20. strategy_mode,
  21. grant_type,
  22. grant_date,
  23. grant_state,
  24. award_id,
  25. award_type,
  26. award_name,
  27. award_content,
  28. uuid,
  29. create_time,
  30. update_time
  31. FROM user_strategy_export
  32. WHERE u_id = #{uId}
  33. </select>
  34. </mapper>