Parcourir la source

ods调整

master
huminghao il y a 3 semaines
Parent
révision
ad87f2fa45

+ 0
- 2
zhywpt-service-ods/src/main/java/cn/com/taiji/ods/manager/ois/issue/CardDetailsSaveManagerImpl.java Voir le fichier

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

+ 0
- 2
zhywpt-service-ods/src/main/java/cn/com/taiji/ods/manager/ois/issue/CardSaveManagerImpl.java Voir le fichier

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

+ 0
- 2
zhywpt-service-ods/src/main/java/cn/com/taiji/ods/manager/ois/issue/ObuDetailsSaveManagerImpl.java Voir le fichier

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

+ 0
- 2
zhywpt-service-ods/src/main/java/cn/com/taiji/ods/manager/ois/issue/ObuSaveManagerImpl.java Voir le fichier

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

+ 1
- 0
zhywpt-service-ods/src/main/java/cn/com/taiji/ods/manager/ois/issue/OrderSaveManagerImpl.java Voir le fichier

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

+ 0
- 2
zhywpt-service-ods/src/main/java/cn/com/taiji/ods/manager/ois/issue/UserSaveManagerImpl.java Voir le fichier

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

+ 0
- 2
zhywpt-service-ods/src/main/java/cn/com/taiji/ods/manager/ois/issue/VehicleSaveManagerImpl.java Voir le fichier

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

Chargement…
Annuler
Enregistrer