|
@@ -153,7 +153,12 @@
|
|
|
<if test="fence != null">fence = #{fence},</if>
|
|
|
<if test="createTime != null">create_time = #{createTime},</if>
|
|
|
</trim>
|
|
|
- where plan_date = #{planDate} and card = #{card} and checkpoint_card = #{checkpointCard}
|
|
|
+ where str_to_date(concat(plan_date, ' ', start_time), '%Y-%m-%d %H:%i:%s') <= #{createTime}
|
|
|
+ and str_to_date(concat(plan_date, ' ', end_time), '%Y-%m-%d %H:%i:%s') >= #{createTime}
|
|
|
+ and card = #{card}
|
|
|
+ and checkpoint_card = #{checkpointCard}
|
|
|
+ and create_time is null
|
|
|
+ limit 1
|
|
|
</update>
|
|
|
|
|
|
<delete id="deleteTlPlanRecordById" parameterType="Long">
|