| | |
| | | import com.dy.pipIrrGlobal.daoSe.SeRefundMapper; |
| | | import com.dy.pipIrrGlobal.daoSe.SeWalletMapper; |
| | | import com.dy.pipIrrGlobal.daoSe.SeWalletRechargeMapper; |
| | | import com.dy.pipIrrGlobal.pojoSe.SeConsume; |
| | | import com.dy.pipIrrGlobal.pojoSe.SeRefund; |
| | | import com.dy.pipIrrGlobal.pojoSe.SeWallet; |
| | | import com.dy.pipIrrGlobal.pojoSe.SeWalletRecharge; |
| | | import lombok.extern.slf4j.Slf4j; |
| | |
| | | return po.getId(); |
| | | } |
| | | |
| | | public Integer updateWallet(SeWallet po) { |
| | | return seWalletMapper.updateByPrimaryKeySelective(po); |
| | | } |
| | | |
| | | /** |
| | | * 电子钱包充值 |
| | | * @param po |
| | |
| | | return po.getId(); |
| | | } |
| | | |
| | | /** |
| | | * 电子钱包消费 |
| | | * @param po |
| | | * @return |
| | | */ |
| | | public Long addConsume(SeConsume po) { |
| | | seConsumeMapper.insert(po); |
| | | return po.getId(); |
| | | } |
| | | |
| | | /** |
| | | * 添加退款申请 |
| | | * @param po |
| | | * @return |
| | | */ |
| | | public Long addRefund(SeRefund po) { |
| | | seRefundMapper.insert(po); |
| | | return po.getId(); |
| | | } |
| | | |
| | | /** |
| | | * 根据钱包ID获取待审核的退款申请对象 |
| | | * @param walletId |
| | | * @return |
| | | */ |
| | | public SeRefund getRefundByWallerId(Long walletId) { |
| | | return seRefundMapper.getRefundByWallerId(walletId); |
| | | } |
| | | |
| | | /** |
| | | * 审核退款申请 |
| | | * @param po |
| | | * @return |
| | | */ |
| | | public Integer auditRefund(SeRefund po) { |
| | | return seRefundMapper.updateByPrimaryKeySelective(po); |
| | | } |
| | | |
| | | /** |
| | | * 修改电子钱包 |
| | | * 充值、消费、申请退款、审核退款时需要修改电子钱包的:余额、最后操作、最后操作时间 |
| | | * @param po |
| | | * @return |
| | | */ |
| | | public Integer updateWallet(SeWallet po) { |
| | | return seWalletMapper.updateByPrimaryKeySelective(po); |
| | | } |
| | | |
| | | } |