用车计算
This commit is contained in:
parent
6b2e5d3172
commit
006173ff94
@ -39,7 +39,7 @@ public class DeliveryDemandServiceImpl extends ServiceImpl<DeliveryDemandMapper,
|
||||
private final TmsVehicleProductMapper vehicleProductMapper;
|
||||
|
||||
@Override
|
||||
@Transactional
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public Result<?> handleMerge(List<String> ids) {
|
||||
List<DeliveryDemand> deliveryDemands = deliveryDemandMapper.selectBatchIds(ids);
|
||||
boolean hasEven = deliveryDemands.stream().anyMatch(item -> "0".equals(item.getShipType()));
|
||||
|
@ -19,6 +19,7 @@ import org.jeecg.modules.tms.outbound.vehicledemandcount.service.IVehicleDemandC
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.*;
|
||||
@ -40,6 +41,7 @@ public class VehicleDemandServiceImpl extends ServiceImpl<VehicleDemandMapper, V
|
||||
private final DeliveryDemandMapper deliveryDemandMapper;
|
||||
|
||||
@Override
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public Result<?> carCount(VehicleDemand vehicleDemand) {
|
||||
// 1.判断是否进行过用车计算
|
||||
LambdaQueryWrapper<VehicleDemandCount> countLambdaQueryWrapper = new LambdaQueryWrapper<>();
|
||||
|
Loading…
x
Reference in New Issue
Block a user