第三方单据下载异常回滚问题

dev
anthonywj 2 years ago
parent 2771e60a67
commit 8cb095693c

@ -34,7 +34,6 @@ import java.util.List;
@Slf4j @Slf4j
@Service @Service
@Transactional(rollbackFor = Exception.class)
public class ThrOrderServiceImpl implements ThrOrderService { public class ThrOrderServiceImpl implements ThrOrderService {
@Resource @Resource
private ThrOrderDao thrOrderDao; private ThrOrderDao thrOrderDao;
@ -168,26 +167,31 @@ public class ThrOrderServiceImpl implements ThrOrderService {
} }
@Override @Override
@Transactional(rollbackFor = Exception.class)
public boolean insertThrOrder(ThrOrderEntity thrCorpEntity) { public boolean insertThrOrder(ThrOrderEntity thrCorpEntity) {
return thrOrderDao.insertThrOrder(thrCorpEntity); return thrOrderDao.insertThrOrder(thrCorpEntity);
} }
@Override @Override
@Transactional(rollbackFor = Exception.class)
public boolean insertThrOrders(List<ThrOrderEntity> thrOrderEntities) { public boolean insertThrOrders(List<ThrOrderEntity> thrOrderEntities) {
return thrOrderDao.insertThrOrders(thrOrderEntities); return thrOrderDao.insertThrOrders(thrOrderEntities);
} }
@Override @Override
@Transactional(rollbackFor = Exception.class)
public int updateThrOrder(ThrOrderEntity thrOrderEntity) { public int updateThrOrder(ThrOrderEntity thrOrderEntity) {
return thrOrderDao.updateById(thrOrderEntity); return thrOrderDao.updateById(thrOrderEntity);
} }
@Override @Override
@Transactional(rollbackFor = Exception.class)
public boolean deleteById(String id) { public boolean deleteById(String id) {
return thrOrderDao.deleteById(id); return thrOrderDao.deleteById(id);
} }
@Override @Override
@Transactional(rollbackFor = Exception.class)
public boolean deleteAll() { public boolean deleteAll() {
return thrOrderDao.deleteAll(); return thrOrderDao.deleteAll();
} }

Loading…
Cancel
Save