合并代码找回

This commit is contained in:
Tankaikai
2024-11-18 14:03:45 +08:00
parent a648000c8a
commit 6f5763b831
4 changed files with 16 additions and 2 deletions

View File

@@ -1,7 +1,5 @@
package com.chaozhanggui.system.cashierservice.constant;
import io.netty.handler.codec.http2.Http2FrameStreamEvent;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import java.util.Objects;

View File

@@ -68,5 +68,13 @@ public interface TbActivateOutRecordMapper {
*/
int deleteById(Integer id);
/**
* 根据订单id 将数据状态变为
* @param orderId 订单Id
* @param status 状态
* @return
*/
int updateByOrderIdAndStatus(@Param("orderId")Integer orderId,@Param("status")String status);
}

View File

@@ -8,6 +8,7 @@ import cn.hutool.core.util.StrUtil;
import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
import com.chaozhanggui.system.cashierservice.constant.TableConstant;
import com.chaozhanggui.system.cashierservice.dao.*;
import com.chaozhanggui.system.cashierservice.entity.Enum.OrderUseTypeEnum;
import com.chaozhanggui.system.cashierservice.entity.*;

View File

@@ -164,6 +164,13 @@
where id = #{id}
</update>
<update id="updateByOrderIdAndStatus">
update tb_activate_out_record
set
status = 'closed'
where order_id = #{orderId}
</update>
<update id="updateRefNum">
update tb_activate_out_record
set ref_num = ref_num + #{refNum}