修复接口问题
This commit is contained in:
parent
1f423bcdf6
commit
2a6aefd2f0
|
|
@ -41,6 +41,7 @@ import com.ghy.worker.domain.WorkerCertification;
|
||||||
import com.ghy.worker.service.IWorkerCertificationService;
|
import com.ghy.worker.service.IWorkerCertificationService;
|
||||||
import com.ghy.worker.service.WorkerService;
|
import com.ghy.worker.service.WorkerService;
|
||||||
import com.huifu.adapay.core.exception.BaseAdaPayException;
|
import com.huifu.adapay.core.exception.BaseAdaPayException;
|
||||||
|
import org.apache.commons.collections.CollectionUtils;
|
||||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||||
import org.springframework.beans.BeanUtils;
|
import org.springframework.beans.BeanUtils;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
|
@ -128,11 +129,14 @@ public class OrderMasterController extends BaseController {
|
||||||
CustomerAddress customerAddress = addressService.selectByCustomerAddressId(master.getAddressId());
|
CustomerAddress customerAddress = addressService.selectByCustomerAddressId(master.getAddressId());
|
||||||
|
|
||||||
// 查询是否超时
|
// 查询是否超时
|
||||||
|
List<OrderTimeoutRecord> timeoutRecords = new ArrayList<>();
|
||||||
List<OrderDetail> detailOrderList = orderDetailService.selectByOrderMasterId(master.getId());
|
List<OrderDetail> detailOrderList = orderDetailService.selectByOrderMasterId(master.getId());
|
||||||
List<Long> detailOrderIds = detailOrderList.stream().map(OrderDetail::getId).collect(Collectors.toList());
|
detailOrderList.stream().forEach(detail -> {
|
||||||
OrderTimeoutRecord params = new OrderTimeoutRecord();
|
OrderTimeoutRecord timeoutRecord = orderFineRecordService.selectByDetailIdAndStatus(detail.getId(), detail.getOrderStatus());
|
||||||
params.setOrderDetailIds(detailOrderIds);
|
if (timeoutRecord != null) {
|
||||||
List<OrderTimeoutRecord> timeoutRecords = orderFineRecordService.selectList(params);
|
timeoutRecords.add(timeoutRecord);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
for (OrderGoods orderGoods : orderStandardList) {
|
for (OrderGoods orderGoods : orderStandardList) {
|
||||||
OrderStandard orderStandard = new OrderStandard();
|
OrderStandard orderStandard = new OrderStandard();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue