Merge branch 'master' of http://192.168.0.75:3000/bonus/Bonus-Cloud-JYY-Canteen
This commit is contained in:
commit
31ef454db0
|
|
@ -37,6 +37,7 @@ import org.springframework.stereotype.Service;
|
|||
import com.bonus.canteen.core.account.mapper.AccWalletInfoMapper;
|
||||
import com.bonus.canteen.core.account.domain.AccWalletInfo;
|
||||
import com.bonus.canteen.core.account.service.IAccWalletInfoService;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
|
|
@ -194,7 +195,9 @@ public class AccWalletInfoServiceImpl implements IAccWalletInfoService {
|
|||
// SecurityUtils.getUserId().toString(), DateUtils.toLocalDateTime(new Date()));
|
||||
// }
|
||||
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public void acWalletBalanceOperation(WalletBalanceOperation operation) {
|
||||
try{
|
||||
switch (WalletBalanceOperationEnum.getEnum(operation.getOperationType())) {
|
||||
case ADD_BAL:
|
||||
addAccWalletInfo(operation);
|
||||
|
|
@ -246,5 +249,9 @@ public class AccWalletInfoServiceImpl implements IAccWalletInfoService {
|
|||
accTradeWalletDetail.setTradeTime(DateUtils.getNowDate());
|
||||
accTradeWalletDetail.setCreateBy(SecurityUtils.getUsername());
|
||||
this.accTradeWalletDetailService.insertAccTradeWalletDetail(accTradeWalletDetail);
|
||||
}catch (Exception ex) {
|
||||
log.error("修改钱包失败", ex);
|
||||
throw new ServiceException("修改钱包失败");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue