Quellcode durchsuchen

修复BUG

master
梁超 vor 3 Wochen
Ursprung
Commit
e498022eac

+ 3
- 3
zhywpt-service-inss/src/main/java/cn/com/taiji/inss/manager/inst/InstOnlineActiveMananger.java Datei anzeigen

@@ -30,6 +30,7 @@ import cn.com.taiji.inss.manager.model.inst.IssueOrderVO;
import cn.com.taiji.inss.manager.tools.InstTools;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.PostConstruct;
import java.time.LocalDateTime;
@@ -156,7 +157,6 @@ public class InstOnlineActiveMananger extends AbstractCallBackManager {
throw GlyServiceError.BUSINESS_VALIDATE_ERR.toHandleException("车辆下已存在卡信息");
}
}

vehicleInfo = vehicleInfoRepo.findByVehicleId(vo.getVehicleId());
if (vehicleInfo == null)
throw GlyServiceError.BUSINESS_VALIDATE_ERR.toHandleException("没有开卡车辆信息,请先录入.");
@@ -171,7 +171,7 @@ public class InstOnlineActiveMananger extends AbstractCallBackManager {
&& (vehicleInfo.getPermittedWeight() == null || vehicleInfo.getPermittedWeight() == 0)) {
throw GlyServiceError.BUSINESS_VALIDATE_ERR.toHandleException("货车核定载重错误,不能为空或0,请修改车辆信息!");
}
//库存检测
// 库存检测
cardDetails = cardDetailsRepo.findBy(vo.getCardId());
if (cardDetails == null) {
throw GlyServiceError.BUSINESS_VALIDATE_ERR.toHandleException("当前卡不在库存中");
@@ -263,6 +263,7 @@ public class InstOnlineActiveMananger extends AbstractCallBackManager {


@Override
@Transactional(rollbackFor = Exception.class)
void saveData(IssueOrderVO vo) throws ServiceHandleException {
IssueOrderinfo orderInfo = orderInfoRepo.findByOrderNo(vo.getOrderId());
if (vo.isSaveOrder()) {
@@ -493,7 +494,6 @@ public class InstOnlineActiveMananger extends AbstractCallBackManager {

}
return obuInfo;

}



Laden…
Abbrechen
Speichern