12345678910111213141516171819202122232425262728293031323334353637 |
- <?xml version="1.0" encoding="UTF-8"?>
- <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
- <mapper namespace="com.seamew.lottery.infrastructure.dao.IUserStrategyExportDao">
- <insert id="insert" parameterType="com.seamew.lottery.infrastructure.po.UserStrategyExport">
- INSERT INTO user_strategy_export
- (u_id, activity_id, order_id, strategy_id, strategy_mode,
- grant_type, grant_date, grant_state, award_id, award_type,
- award_name, award_content, uuid, create_time, update_time)
- VALUES (#{uId}, #{activityId}, #{orderId}, #{strategyId}, #{strategyMode},
- #{grantType}, #{grantDate}, #{grantState}, #{awardId}, #{awardType},
- #{awardName}, #{awardContent}, #{uuid}, now(), now())
- </insert>
- <select id="queryUserStrategyExportByUId" parameterType="java.lang.String"
- resultType="com.seamew.lottery.infrastructure.po.UserStrategyExport">
- SELECT id,
- u_id,
- activity_id,
- order_id,
- strategy_id,
- strategy_mode,
- grant_type,
- grant_date,
- grant_state,
- award_id,
- award_type,
- award_name,
- award_content,
- uuid,
- create_time,
- update_time
- FROM user_strategy_export
- WHERE u_id = #{uId}
- </select>
- </mapper>
|