|
@@ -48,7 +48,7 @@ public class WlnStatementOfAccountImpl implements WlnStatementOfAccount {
|
|
|
.ge(OrderInfo::getStatus, OrderStatusEnum.IN_PRODUCTION.getKey())
|
|
|
.isNotNull(OrderInfo::getWlnCode)
|
|
|
.isNull(OrderInfo::getStatementOfAccountId));
|
|
|
- if (orderList.size() == 0) {
|
|
|
+ if (orderList.isEmpty()) {
|
|
|
return;
|
|
|
}
|
|
|
|
|
@@ -57,7 +57,7 @@ public class WlnStatementOfAccountImpl implements WlnStatementOfAccount {
|
|
|
|
|
|
// 根据万里牛编号查询出库记录
|
|
|
List<OutboundOrder> outboundOrderList = outboundOrderService.list(q -> q.in(OutboundOrder::getOrderWlnCode, wlnCodeList));
|
|
|
- if (outboundOrderList.size() == 0) {
|
|
|
+ if (outboundOrderList.isEmpty()) {
|
|
|
return;
|
|
|
}
|
|
|
|
|
@@ -122,7 +122,7 @@ public class WlnStatementOfAccountImpl implements WlnStatementOfAccount {
|
|
|
// 订单生产完成时,生产任务一键完成
|
|
|
productionTaskService.completeTaskBatch(editProductionTaskList);
|
|
|
|
|
|
- if (saveStatementOfAccountList.size() > 0) {
|
|
|
+ if (!saveStatementOfAccountList.isEmpty()) {
|
|
|
statementOfAccountService.saveBatch(saveStatementOfAccountList);
|
|
|
}
|
|
|
|