|
@@ -1065,14 +1065,9 @@ public class PayOrderLogic {
|
|
|
.eq(!StringUtil.isEmpty(goodsType), WorkerOrder::getGoodsType, goodsType)
|
|
|
.like(!StringUtil.isEmpty(settlementType), WorkerOrder::getSettlementType, settlementType)
|
|
|
.eq(!StringUtil.isEmpty(orderId), WorkerOrder::getOrderId, orderId)
|
|
|
- .and(item -> item
|
|
|
- .eq(WorkerOrder::getPayStatus,"CANCEL")
|
|
|
-
|
|
|
- .or(iter -> iter.eq(WorkerOrder::getRefundStatus, IsYesNoEnum.YES.getKey()))
|
|
|
- )
|
|
|
- .and(item -> item.eq(WorkerOrder::getUserId,currentCompanyWechat.getUser().getUserId())
|
|
|
- .or(!StringUtil.isEmpty(currentCompanyWechat.getUser().getWorkerNumber())).eq(WorkerOrder::getWorkerNumber,currentCompanyWechat.getUser().getWorkerNumber())
|
|
|
- )
|
|
|
+ .eq(WorkerOrder::getPayStatus,"CANCEL")
|
|
|
+ .eq(!StringUtil.isEmpty(currentCompanyWechat.getUser().getWorkerNumber()),WorkerOrder::getWorkerNumber,currentCompanyWechat.getUser().getWorkerNumber())
|
|
|
+ .eq(StringUtil.isEmpty(currentCompanyWechat.getUser().getWorkerNumber()),WorkerOrder::getIdentity,currentCompanyWechat.getUser().getIdCard())
|
|
|
.between(!StringUtil.isEmpty(startTime), WorkerOrder::getCreateTime, startTime, endTime)
|
|
|
.in(WorkerOrder::getCompanyWechatId, currentCompanyWechat.getCompanyWechatId()).count();
|
|
|
|
|
@@ -1081,11 +1076,9 @@ public class PayOrderLogic {
|
|
|
.eq(!StringUtil.isEmpty(goodsType), WorkerOrder::getGoodsType, goodsType)
|
|
|
.like(!StringUtil.isEmpty(settlementType), WorkerOrder::getSettlementType, settlementType)
|
|
|
.eq(!StringUtil.isEmpty(orderId), WorkerOrder::getOrderId, orderId)
|
|
|
-
|
|
|
.eq( WorkerOrder::getPayStatus, "WAIT")
|
|
|
- .and(item -> item.eq(WorkerOrder::getUserId,currentCompanyWechat.getUser().getUserId())
|
|
|
- .or().eq(WorkerOrder::getWorkerNumber,currentCompanyWechat.getUser().getWorkerNumber())
|
|
|
- )
|
|
|
+ .eq(!StringUtil.isEmpty(currentCompanyWechat.getUser().getWorkerNumber()),WorkerOrder::getWorkerNumber,currentCompanyWechat.getUser().getWorkerNumber())
|
|
|
+ .eq(StringUtil.isEmpty(currentCompanyWechat.getUser().getWorkerNumber()),WorkerOrder::getIdentity,currentCompanyWechat.getUser().getIdCard())
|
|
|
.between(!StringUtil.isEmpty(startTime), WorkerOrder::getCreateTime, startTime, endTime)
|
|
|
.in(WorkerOrder::getCompanyWechatId, currentCompanyWechat.getCompanyWechatId()).count();
|
|
|
|
|
@@ -1095,11 +1088,9 @@ public class PayOrderLogic {
|
|
|
.like(!StringUtil.isEmpty(settlementType), WorkerOrder::getSettlementType, settlementType)
|
|
|
.eq(!StringUtil.isEmpty(orderId), WorkerOrder::getOrderId, orderId)
|
|
|
.eq(WorkerOrder::getRefundStatus, IsYesNoEnum.NO.getKey())
|
|
|
-
|
|
|
.eq( WorkerOrder::getPayStatus, PayStatusEnum.PAID.getKey())
|
|
|
- .and(item -> item.eq(WorkerOrder::getUserId,currentCompanyWechat.getUser().getUserId())
|
|
|
- .or().eq(WorkerOrder::getWorkerNumber,currentCompanyWechat.getUser().getWorkerNumber())
|
|
|
- )
|
|
|
+ .eq(!StringUtil.isEmpty(currentCompanyWechat.getUser().getWorkerNumber()),WorkerOrder::getWorkerNumber,currentCompanyWechat.getUser().getWorkerNumber())
|
|
|
+ .eq(StringUtil.isEmpty(currentCompanyWechat.getUser().getWorkerNumber()),WorkerOrder::getIdentity,currentCompanyWechat.getUser().getIdCard())
|
|
|
.between(!StringUtil.isEmpty(startTime), WorkerOrder::getCreateTime, startTime, endTime)
|
|
|
.in(WorkerOrder::getCompanyWechatId, currentCompanyWechat.getCompanyWechatId()).count();
|
|
|
|
|
@@ -1108,9 +1099,8 @@ public class PayOrderLogic {
|
|
|
.eq(!StringUtil.isEmpty(goodsType), WorkerOrder::getGoodsType, goodsType)
|
|
|
.like(!StringUtil.isEmpty(settlementType), WorkerOrder::getSettlementType, settlementType)
|
|
|
.eq(!StringUtil.isEmpty(orderId), WorkerOrder::getOrderId, orderId)
|
|
|
- .and(item -> item.eq(WorkerOrder::getUserId,currentCompanyWechat.getUser().getUserId())
|
|
|
- .or().eq(WorkerOrder::getWorkerNumber,currentCompanyWechat.getUser().getWorkerNumber())
|
|
|
- )
|
|
|
+ .eq(!StringUtil.isEmpty(currentCompanyWechat.getUser().getWorkerNumber()),WorkerOrder::getWorkerNumber,currentCompanyWechat.getUser().getWorkerNumber())
|
|
|
+ .eq(StringUtil.isEmpty(currentCompanyWechat.getUser().getWorkerNumber()),WorkerOrder::getIdentity,currentCompanyWechat.getUser().getIdCard())
|
|
|
.between(!StringUtil.isEmpty(startTime), WorkerOrder::getCreateTime, startTime, endTime)
|
|
|
.in(WorkerOrder::getCompanyWechatId, currentCompanyWechat.getCompanyWechatId()).count();
|
|
|
|