|
@@ -738,10 +738,11 @@ public class TbOrderService extends ServiceImpl<TbOrderMapper, TbOrder> implemen
|
|
|
/**
|
|
|
* 订单补扣款——按车,并且未扣款
|
|
|
*/
|
|
|
- public boolean deductionByVeNo(String veNo) {
|
|
|
+ public boolean deductionByVeNo(String veNo, Long id) {
|
|
|
LambdaQueryWrapper<TbOrder> wrapper = new LambdaQueryWrapper<>();
|
|
|
wrapper.eq(TbOrder::getVeNo, veNo);
|
|
|
- wrapper.ne(TbOrder::getSxb010Status, 1);
|
|
|
+ wrapper.eq(TbOrder::getSaleMainId, id);
|
|
|
+ wrapper.ne(TbOrder::getSxb010Status, 1).orderByDesc(TbOrder::getCreateTime);
|
|
|
List<TbOrder> tbOrders = tbOrderMapper.selectList(wrapper);
|
|
|
if (!tbOrders.isEmpty()) {
|
|
|
for (TbOrder tbOrder : tbOrders) {
|
|
@@ -759,7 +760,8 @@ public class TbOrderService extends ServiceImpl<TbOrderMapper, TbOrder> implemen
|
|
|
List<TbOrder> getDeductionByVeNoList(SoMap so) {
|
|
|
LambdaQueryWrapper<TbOrder> wrapper = new LambdaQueryWrapper<>();
|
|
|
wrapper.eq(TbOrder::getVeNo, so.getString("veNo"));
|
|
|
- wrapper.ne(TbOrder::getSxb010Status, 1);
|
|
|
+ wrapper.eq(TbOrder::getSaleMainId, so.getLong("id"));
|
|
|
+ wrapper.ne(TbOrder::getSxb010Status, 1).orderByDesc(TbOrder::getCreateTime);
|
|
|
List<TbOrder> tbOrders = tbOrderMapper.selectList(wrapper);
|
|
|
return tbOrders;
|
|
|
}
|
|
@@ -872,9 +874,10 @@ public class TbOrderService extends ServiceImpl<TbOrderMapper, TbOrder> implemen
|
|
|
/**
|
|
|
* 订单补推结关信息给银行——按车,并且未完成
|
|
|
*/
|
|
|
- public boolean sendCXB001ByVeNo(String veNo) {
|
|
|
+ public boolean sendCXB001ByVeNo(String veNo, Long id) {
|
|
|
LambdaQueryWrapper<TbOrder> wrapper = new LambdaQueryWrapper<>();
|
|
|
wrapper.eq(TbOrder::getVeNo, veNo);
|
|
|
+ wrapper.eq(TbOrder::getSaleMainId, id);
|
|
|
wrapper.ne(TbOrder::getFinishStatus, 1).orderByDesc(TbOrder::getCreateTime);
|
|
|
List<TbOrder> tbOrders = tbOrderMapper.selectList(wrapper);
|
|
|
|
|
@@ -910,6 +913,7 @@ public class TbOrderService extends ServiceImpl<TbOrderMapper, TbOrder> implemen
|
|
|
List<TbOrder> getSendCXB001ByVeNoList(SoMap so) {
|
|
|
LambdaQueryWrapper<TbOrder> wrapper = new LambdaQueryWrapper<>();
|
|
|
wrapper.eq(TbOrder::getVeNo, so.getString("veNo"));
|
|
|
+ wrapper.eq(TbOrder::getSaleMainId, so.getLong("id"));
|
|
|
wrapper.ne(TbOrder::getFinishStatus, 1).orderByDesc(TbOrder::getCreateTime);
|
|
|
List<TbOrder> tbOrders = tbOrderMapper.selectList(wrapper);
|
|
|
return tbOrders;
|