|
@@ -4,17 +4,18 @@
|
|
|
|
|
|
<insert id="insert" parameterType="com.seamew.lottery.infrastructure.po.Activity">
|
|
|
INSERT INTO activity
|
|
|
- (activity_id, activity_name, activity_desc, begin_date_time, end_date_time,
|
|
|
- stock_count, take_count, state, creator, create_time, update_time)
|
|
|
- VALUES (#{activityId}, #{activityName}, #{activityDesc}, #{beginDateTime}, #{endDateTime},
|
|
|
- #{stockCount}, #{takeCount}, #{state}, #{creator}, now(), now())
|
|
|
+ (activityId, activityName, activityDesc,beginDateTime, endDateTime,
|
|
|
+ stockCount, takeCount, state, creator, createTime, updateTime)
|
|
|
+ VALUES
|
|
|
+ (#{activityId}, #{activityName}, #{activityDesc},#{beginDateTime}, #{endDateTime},
|
|
|
+ #{stockCount}, #{takeCount}, #{state}, #{creator}, now(), now())
|
|
|
</insert>
|
|
|
|
|
|
<select id="queryActivityById" parameterType="java.lang.Long" resultType="com.seamew.lottery.infrastructure.po.Activity">
|
|
|
- SELECT activity_id, activity_name, activity_desc, begin_date_time, end_date_time,
|
|
|
- stock_count, take_count, state, creator, create_time, update_time
|
|
|
+ SELECT activityId, activityName, activityDesc,beginDateTime, endDateTime,
|
|
|
+ stockCount, takeCount, state, creator, createTime, updateTime
|
|
|
FROM activity
|
|
|
- WHERE activity_id = #{activityId}
|
|
|
+ WHERE activityId = #{activityId}
|
|
|
</select>
|
|
|
|
|
|
|