|
|
@@ -125,16 +125,16 @@
|
|
|
order by pb.bill_id desc
|
|
|
</select>
|
|
|
|
|
|
- <update id="updateShopStartMoney">
|
|
|
- update platform_bill a join platform_bill b on a.user_id =b.user_id and a.type =b.type and TO_DAYS(a.day_id)-TO_DAYS(b.day_id)= 1
|
|
|
+ <update id="updatePlatFormStartMoney">
|
|
|
+ update platform_bill a join platform_bill b on a.type =b.type and TO_DAYS(a.day_id)-TO_DAYS(b.day_id)= 1
|
|
|
set a.start_money=b.end_money
|
|
|
- where a.day_id =#{dayId} and a.type = 1
|
|
|
+ where a.day_id =#{dayId} and a.type = 0
|
|
|
</update>
|
|
|
|
|
|
<update id="updateRiderStartMoney">
|
|
|
update platform_bill a join platform_bill b on a.user_id =b.user_id and a.type =b.type and TO_DAYS(a.day_id)-TO_DAYS(b.day_id)= 1
|
|
|
set a.start_money=b.end_money
|
|
|
- where a.day_id =#{dayId} and a.type in(0,2)
|
|
|
+ where a.day_id =#{dayId} and a.type in(1,2)
|
|
|
</update>
|
|
|
|
|
|
<insert id="insertPlatformBill">
|