he2802 2 سال پیش
والد
کامیت
121c5015b8

+ 4 - 0
zhongzheng-system/src/main/java/com/zhongzheng/modules/top/order/service/impl/TopOrderRecNoteServiceImpl.java

@@ -10,6 +10,7 @@ import com.zhongzheng.common.utils.DateUtils;
 import com.zhongzheng.common.utils.ToolsUtils;
 import com.zhongzheng.common.utils.http.HttpUtils;
 import com.zhongzheng.modules.bank.domain.ExamQuestion;
+import com.zhongzheng.modules.base.domain.ShoppingCart;
 import com.zhongzheng.modules.grade.domain.ClassGradeUser;
 import com.zhongzheng.modules.top.order.bo.TopOrderRecNoteAddBo;
 import com.zhongzheng.modules.top.order.bo.TopOrderRecNoteEditBo;
@@ -100,6 +101,9 @@ public class TopOrderRecNoteServiceImpl extends ServiceImpl<TopOrderRecNoteMappe
         if(Validator.isEmpty(bo.getOrderSn())||Validator.isEmpty(bo.getTenantId())||Validator.isEmpty(bo.getId())){
             throw new CustomException("参数缺失");
         }
+        if(Validator.isNotEmpty(bo.getStatus())&&bo.getStatus()==-1){
+            return this.remove(new LambdaQueryWrapper<TopOrderRecNote>().eq(TopOrderRecNote::getId,bo.getId()));
+        }
         if (getOne(new LambdaQueryWrapper<TopOrderRecNote>().ne(TopOrderRecNote::getId, bo.getId()).eq(TopOrderRecNote::getOrderSn, bo.getOrderSn()).eq(TopOrderRecNote::getTenantId, bo.getTenantId()).last("limit 1")) != null) {
             throw new CustomException("该订单已经配置提醒了");
         }