@@ -30,12 +30,10 @@ public class CardDetailsSaveManagerImpl extends AbstractManager implements CardD | |||
private OdsInterfaceLogRepo logRepo; | |||
@Override | |||
@Transactional(rollbackFor = Exception.class) | |||
public OisCardDetailsSaveResponse serviceHandle(OisCardDetailsSaveRequest req) throws ServiceHandleException { | |||
try { | |||
long begin = System.currentTimeMillis(); | |||
InvwCardDetails cardDetails = req.getCardDetails(); | |||
vmiCardDetailsRepo.save(cardDetails); | |||
ImsCardDetail imsCardDetail = imsCardDetailRepo.findOneByCardId(cardDetails.getCardId()); | |||
if (imsCardDetail == null) { | |||
imsCardDetail = new ImsCardDetail(); |
@@ -27,12 +27,10 @@ public class CardSaveManagerImpl extends AbstractManager implements CardSaveMana | |||
private OdsInterfaceLogRepo logRepo; | |||
@Override | |||
@Transactional(rollbackFor = Exception.class) | |||
public OisCardSaveResponse serviceHandle(OisCardSaveRequest req) throws ServiceHandleException { | |||
try { | |||
long begin = System.currentTimeMillis(); | |||
QtkCardInfo cardInfo = req.getCardInfo(); | |||
qtkCardInfoRepo.save(cardInfo); | |||
DsiCardInfo dsiCardInfo = dsiCardInfoRepo.findByCardId(cardInfo.getCardId()); | |||
if (dsiCardInfo == null) { | |||
dsiCardInfo = new DsiCardInfo(); |
@@ -28,12 +28,10 @@ public class ObuDetailsSaveManagerImpl extends AbstractManager implements ObuDet | |||
private OdsInterfaceLogRepo logRepo; | |||
@Override | |||
@Transactional(rollbackFor = Exception.class) | |||
public OisObuDetailsSaveResponse serviceHandle(OisObuDetailsSaveRequest req) throws ServiceHandleException { | |||
try { | |||
long begin = System.currentTimeMillis(); | |||
InvwObuDetails obuDetails = req.getObuDetails(); | |||
vmiObuDetailsRepo.save(obuDetails); | |||
ImsObuDetails imsObuDetails = imsObuDetailsRepo.findOneByObuId(obuDetails.getObuId()); | |||
if (imsObuDetails == null) { | |||
imsObuDetails = new ImsObuDetails(); |
@@ -27,12 +27,10 @@ public class ObuSaveManagerImpl extends AbstractManager implements ObuSaveManage | |||
private OdsInterfaceLogRepo logRepo; | |||
@Override | |||
@Transactional(rollbackFor = Exception.class) | |||
public OisObuSaveResponse serviceHandle(OisObuSaveRequest req) throws ServiceHandleException { | |||
try { | |||
long begin = System.currentTimeMillis(); | |||
QtkObuInfo obuInfo = req.getObuInfo(); | |||
qtkObuInfoRepo.save(obuInfo); | |||
DsiOBUInfo dsiOBUInfo = dsiOBUInfoRepo.findByObuId(obuInfo.getObuId()); | |||
if (dsiOBUInfo == null) { | |||
dsiOBUInfo = new DsiOBUInfo(); |
@@ -55,6 +55,7 @@ public class OrderSaveManagerImpl extends AbstractManager implements OrderSaveMa | |||
throw exception(req, OdsInterfaceLog.class, e.getMessage()); | |||
} | |||
} | |||
@Transactional(rollbackFor = Exception.class) | |||
private OisOrderSaveResponse getOisOrderSaveResponse(OisOrderSaveRequest req) { | |||
long begin = System.currentTimeMillis(); |
@@ -29,13 +29,11 @@ public class UserSaveManagerImpl extends AbstractManager implements UserSaveMana | |||
private OdsInterfaceLogRepo logRepo; | |||
@Override | |||
@Transactional(rollbackFor = Exception.class) | |||
public OisUserSaveResponse serviceHandle(OisUserSaveRequest req) throws ServiceHandleException { | |||
try { | |||
long begin = System.currentTimeMillis(); | |||
logger.info("用户信息保存:" + req.getCustomerId()); | |||
QtkCustomerInfo customerInfo = req.getCustomerInfo(); | |||
qtkCustomerInfoRepo.save(customerInfo); | |||
DsiCustomerInfo dsiCustomerInfo = dsiCustomerInfoRepo.findByCustomerId(customerInfo.getCustomerId()); | |||
if (dsiCustomerInfo == null) { | |||
dsiCustomerInfo = new DsiCustomerInfo(); |
@@ -28,12 +28,10 @@ public class VehicleSaveManagerImpl extends AbstractManager implements VehicleSa | |||
private OdsInterfaceLogRepo logRepo; | |||
@Override | |||
@Transactional(rollbackFor = Exception.class) | |||
public OisVehicleSaveResponse serviceHandle(OisVehicleSaveRequest req) throws ServiceHandleException { | |||
try { | |||
long begin = System.currentTimeMillis(); | |||
QtkVehicleInfo vehicleInfo = req.getVehicleInfo(); | |||
qtkVehicleInfoRepo.save(vehicleInfo); | |||
DsiVehicleInfo dsiVehicleInfo = dsiVehicleInfoRepo.findByVehicleId(vehicleInfo.getVehicleId()); | |||
if (dsiVehicleInfo == null) { | |||
dsiVehicleInfo = new DsiVehicleInfo(); |