时间:2021-07-01 10:21:17 帮助过:18人阅读
<!-- 添加微信团活动 --> <insert id="save" parameterType="WeixinActivity"> INSERT INTO weixin_activity ( WEIXIN_NAME, BANNER_IMG_URL, START_TIME, END_TIME , GROUP_PRICE, DISCOUNT_LAB, MINIMUM_JOIN_MEMBER_NUM, ORDER_BY, IS_STATUS, BEGIN_WAIT_TIME, ADD_USER_ID, EDIT_TIME, IS_DELETE, ADD_TIME, EDIT_USER_ID ) values ( #{weixinName}, #{bannerImgUrl}, #{startTime}, #{endTime}, #{groupPrice}, #{discountLab}, #{minimumJoinMemberNum}, IFNULL(#{sortBy}, ( SELECT id FROM ( SELECT MAX(order_by) + 1 AS id FROM weixin_activity) t)), <!-- (select id from --> <!-- (SELECT MAX(order_by) + 1 as id FROM weixin_activity) t), --> #{isStatus}, #{beginWaitTime}, #{addUserId}, #{editTime}, ‘N‘, #{addTime}, #{editUserId} ) </insert>
oracle 排序字段自增长
标签:iss sde code bsp 活动 sel rom nextval sort