|
|
@@ -12,6 +12,9 @@ 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.financial.domain.TopDivideLog;
|
|
|
+import com.zhongzheng.modules.top.goods.domain.TopOldOrder;
|
|
|
+import com.zhongzheng.modules.top.goods.service.ITopOldOrderService;
|
|
|
import com.zhongzheng.modules.top.order.bo.TopOrderRecNoteAddBo;
|
|
|
import com.zhongzheng.modules.top.order.bo.TopOrderRecNoteEditBo;
|
|
|
import com.zhongzheng.modules.top.order.bo.TopOrderRecNoteQueryBo;
|
|
|
@@ -19,6 +22,7 @@ import com.zhongzheng.modules.top.order.domain.TopOrderRecNote;
|
|
|
import com.zhongzheng.modules.top.order.mapper.TopOrderRecNoteMapper;
|
|
|
import com.zhongzheng.modules.top.order.service.ITopOrderRecNoteService;
|
|
|
import com.zhongzheng.modules.top.order.vo.TopOrderRecNoteVo;
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
@@ -26,6 +30,7 @@ import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
|
|
import com.github.pagehelper.Page;
|
|
|
|
|
|
import java.io.IOException;
|
|
|
+import java.math.BigDecimal;
|
|
|
import java.util.*;
|
|
|
import java.util.stream.Collectors;
|
|
|
|
|
|
@@ -38,6 +43,9 @@ import java.util.stream.Collectors;
|
|
|
@Service
|
|
|
public class TopOrderRecNoteServiceImpl extends ServiceImpl<TopOrderRecNoteMapper, TopOrderRecNote> implements ITopOrderRecNoteService {
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private ITopOldOrderService iTopOldOrderService;
|
|
|
+
|
|
|
@Override
|
|
|
public TopOrderRecNoteVo queryById(Long id){
|
|
|
TopOrderRecNote db = this.baseMapper.selectById(id);
|
|
|
@@ -118,6 +126,11 @@ public class TopOrderRecNoteServiceImpl extends ServiceImpl<TopOrderRecNoteMappe
|
|
|
}
|
|
|
|
|
|
private boolean pushOldNote(String orderSn){
|
|
|
+ TopOldOrder oldOrder = iTopOldOrderService.getOne(new LambdaQueryWrapper<TopOldOrder>()
|
|
|
+ .eq(TopOldOrder::getOrderSn, orderSn));
|
|
|
+ if(oldOrder.getOrderUncollected().compareTo(BigDecimal.ZERO)!=1){
|
|
|
+ return false;
|
|
|
+ }
|
|
|
Map<String, String> params = new HashMap<>();
|
|
|
Long nowTime = DateUtils.getNowTime();
|
|
|
String sign = ToolsUtils.EncoderByMd5(orderSn+"pubilc2022");
|