提交 c75a038e authored 作者: 杨凯's avatar 杨凯

feat:家庭医生初始化

上级 4edbc3cd
......@@ -8,9 +8,9 @@
INSERT INTO mobile_benefit_package (
<if test="productId != '' and productId != null">productId,</if>
<if test="userId != '' and userId != null">userId,</if>
<if test="activateOrderId != '' and activateOrderId != null">orderId,</if>
<if test="activateOrderId != '' and activateOrderId != null">benefitOrderId,</if>
<if test="timeLimit != 0 and timeLimit != null">timeLimit,</if>
<if test="orderId != '' and orderId != null">benefitOrderId,</if>
<if test="orderId != '' and orderId != null">orderId,</if>
<if test="benefitsStartTime != '' and benefitsStartTime != null">benefitsStartTime,</if>
<if test="benefitsEndTime != '' and benefitsEndTime != null">benefitsEndTime,</if>
<if test="isRenew != '' and isRenew != null">isRenew,</if>
......@@ -58,8 +58,7 @@
FROM
mobile_benefit_package
WHERE
phone = #{mobile} and orderId = #{activateOrderId}
and NOW() BETWEEN STR_TO_DATE(benefitsStartTime, '%Y-%m-%d %H:%i:%s') AND STR_TO_DATE(benefitsEndTime, '%Y-%m-%d %H:%i:%s')
phone = #{mobile} and activateOrderId = #{activateOrderId}
ORDER BY
x_create_time DESC
LIMIT 0,1
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论