| | |
| | | package com.dy.pipIrrSell.recharge; |
| | | |
| | | import com.dy.common.webUtil.QueryResultVo; |
| | | import com.dy.pipIrrGlobal.daoSe.SeRechargeHistoryMapper; |
| | | import com.dy.pipIrrGlobal.daoSe.SeRechargeMapper; |
| | | import com.dy.pipIrrGlobal.pojoSe.VoRecharge; |
| | | import com.dy.pipIrrGlobal.pojoSe.SeRecharge; |
| | | import com.dy.pipIrrGlobal.pojoSe.SeRechargeHistory; |
| | | import com.dy.pipIrrGlobal.voSe.VoRecharge; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.apache.dubbo.common.utils.PojoUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | |
| | | public class RechargeSv { |
| | | @Autowired |
| | | private SeRechargeMapper seRechargeMapper; |
| | | |
| | | @Autowired |
| | | private SeRechargeHistoryMapper seRechargeHistoryMapper; |
| | | |
| | | public QueryResultVo<List<VoRecharge>> getRecharges(QueryVo queryVo) { |
| | | //完善查询充值记录的起止时间 |
| | |
| | | return rsVo ; |
| | | } |
| | | |
| | | /** |
| | | * 根据水卡编号(主键)删除充值记录 |
| | | * @param cardId |
| | | * @return |
| | | */ |
| | | //public Integer deleteByPrimaryKey(Long cardId) { |
| | | // return seRechargeMapper.deleteByPrimaryKey(cardId); |
| | | //} |
| | | |
| | | /** |
| | | * 添加充值记录 |
| | | * @param po |
| | | * @return |
| | | */ |
| | | public Long add(SeRecharge po) { |
| | | seRechargeMapper.insert(po); |
| | | return po.getId(); |
| | | } |
| | | |
| | | /** |
| | | * 根据水卡编号删除充值记录 |
| | | * @param cardNum |
| | | * @return |
| | | */ |
| | | //public Integer deleteByCardId(Long cardId) { |
| | | // return seRechargeMapper.deleteByCardId(cardId); |
| | | //} |
| | | public Integer deleteByCardNum(String cardNum) { |
| | | return seRechargeMapper.deleteByCardNum(cardNum); |
| | | } |
| | | |
| | | /** |
| | | * 添加充值历史表 |
| | | * @param po |
| | | * @return |
| | | */ |
| | | public Long addHistory(SeRechargeHistory po){ |
| | | seRechargeHistoryMapper.insert(po); |
| | | return po.getId(); |
| | | } |
| | | |
| | | } |