Browse Source

1.事务要加在public上才会生效

single_db
zhenghaoyu 1 year ago
parent
commit
42d6ad9cd5
  1. 8
      blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionAsyncServiceImpl.java

8
blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionAsyncServiceImpl.java

@ -735,7 +735,7 @@ public class DistributionAsyncServiceImpl implements IDistributionAsyncService {
checkReservationAndDeliveryLoadingStatus(deliveryId, reservationId);
}
@Transactional(rollbackFor = Exception.class)
// @Transactional(rollbackFor = Exception.class)
private void checkReservationAndDeliveryLoadingStatus(Long deliveryId, Long reservationId) {
//判断客户是否完成装车
DistributionReservationEntity distributionReservationEntity = distributionReservationMapper.selectById(reservationId);
@ -1524,7 +1524,7 @@ public class DistributionAsyncServiceImpl implements IDistributionAsyncService {
*
* @param deliveryId
*/
@Transactional
// @Transactional
private void maintenanceDeliveryPackageNum(Long deliveryId) {
DistributionDeliveryListEntity distributionDeliveryListEntity = distributionDeliveryListMapper.selectById(deliveryId);
if (Func.isNotEmpty(distributionDeliveryListEntity)) {
@ -1547,7 +1547,7 @@ public class DistributionAsyncServiceImpl implements IDistributionAsyncService {
*
* @param reservationId
*/
@Transactional
// @Transactional
private void maintenanceReservationPackageNum(Long reservationId) {
DistributionReservationEntity distributionReservationEntity = distributionReservationMapper.selectById(reservationId);
if (Func.isNotEmpty(distributionReservationEntity)) {
@ -1573,7 +1573,7 @@ public class DistributionAsyncServiceImpl implements IDistributionAsyncService {
}
}
@Transactional
// @Transactional
private void checkReservationAndDeliverySigningStatus(Long reservationId, Long deliveryId) {
//维护客户签收状态
DistributionReservationEntity distributionReservationEntity = distributionReservationMapper.selectById(reservationId);

Loading…
Cancel
Save