用车计算

This commit is contained in:
王帅 2025-04-28 17:36:04 +08:00
parent 6b2e5d3172
commit 006173ff94
2 changed files with 3 additions and 1 deletions

View File

@ -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()));

View File

@ -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<>();