订单管理
This commit is contained in:
parent
efeb4be4c2
commit
5aa087c457
|
|
@ -171,7 +171,7 @@ public class AccWalletInfoBusiness {
|
||||||
this.accTradeService.updateAccTrade(accountTrade);
|
this.accTradeService.updateAccTrade(accountTrade);
|
||||||
}
|
}
|
||||||
log.error("修改钱包失败", ex);
|
log.error("修改钱包失败", ex);
|
||||||
throw new ServiceException("修改钱包失败");
|
throw new ServiceException(ex.getMessage());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -14,6 +14,8 @@ import com.bonus.canteen.core.account.service.IAccTradeService;
|
||||||
import com.bonus.common.core.exception.ServiceException;
|
import com.bonus.common.core.exception.ServiceException;
|
||||||
import com.bonus.common.core.utils.DateUtils;
|
import com.bonus.common.core.utils.DateUtils;
|
||||||
import com.bonus.common.houqin.utils.SM4EncryptUtils;
|
import com.bonus.common.houqin.utils.SM4EncryptUtils;
|
||||||
|
import org.slf4j.Logger;
|
||||||
|
import org.slf4j.LoggerFactory;
|
||||||
import org.springframework.beans.BeanUtils;
|
import org.springframework.beans.BeanUtils;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
|
|
@ -30,6 +32,8 @@ import java.util.List;
|
||||||
*/
|
*/
|
||||||
@Service
|
@Service
|
||||||
public class AccTradeServiceImpl implements IAccTradeService {
|
public class AccTradeServiceImpl implements IAccTradeService {
|
||||||
|
private static final Logger log = LoggerFactory.getLogger(AccTradeServiceImpl.class);
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private AccTradeMapper accTradeMapper;
|
private AccTradeMapper accTradeMapper;
|
||||||
|
|
||||||
|
|
@ -69,9 +73,14 @@ public class AccTradeServiceImpl implements IAccTradeService {
|
||||||
@Override
|
@Override
|
||||||
@Transactional(rollbackFor = Exception.class, propagation = Propagation.REQUIRES_NEW)
|
@Transactional(rollbackFor = Exception.class, propagation = Propagation.REQUIRES_NEW)
|
||||||
public int insertAccTrade(AccountTrade accountTrade) {
|
public int insertAccTrade(AccountTrade accountTrade) {
|
||||||
|
try {
|
||||||
accountTrade.setCreateTime(DateUtils.getNowDate());
|
accountTrade.setCreateTime(DateUtils.getNowDate());
|
||||||
accountTrade.setUpdateTime(DateUtils.getNowDate());
|
accountTrade.setUpdateTime(DateUtils.getNowDate());
|
||||||
return accTradeMapper.insertAccTrade(accountTrade);
|
return accTradeMapper.insertAccTrade(accountTrade);
|
||||||
|
} catch (Exception e) {
|
||||||
|
log.error("insertAccTrade 异常:", e);
|
||||||
|
throw new ServiceException("系统异常");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
@ -82,7 +91,8 @@ public class AccTradeServiceImpl implements IAccTradeService {
|
||||||
BeanUtils.copyProperties(accTradeVo, accountTrade);
|
BeanUtils.copyProperties(accTradeVo, accountTrade);
|
||||||
return accTradeMapper.insertAccTrade(accountTrade);
|
return accTradeMapper.insertAccTrade(accountTrade);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
throw new ServiceException("错误信息描述" + e.getMessage());
|
log.error("insertAccTradeVo 异常:", e);
|
||||||
|
throw new ServiceException("系统异常");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -99,7 +109,8 @@ public class AccTradeServiceImpl implements IAccTradeService {
|
||||||
try {
|
try {
|
||||||
return accTradeMapper.updateAccTrade(accountTrade);
|
return accTradeMapper.updateAccTrade(accountTrade);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
throw new ServiceException("错误信息描述" + e.getMessage());
|
log.error("updateAccTrade 异常:", e);
|
||||||
|
throw new ServiceException("系统异常");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -109,7 +120,8 @@ public class AccTradeServiceImpl implements IAccTradeService {
|
||||||
try {
|
try {
|
||||||
return accTradeMapper.updateAccTradeVoByOrderNo(accTradeVo);
|
return accTradeMapper.updateAccTradeVoByOrderNo(accTradeVo);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
throw new ServiceException("错误信息描述" + e.getMessage());
|
log.error("updateAccTradeVoByOrderNo 异常:", e);
|
||||||
|
throw new ServiceException("系统异常");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue