| | |
| | | package com.dy.pipIrrSell.activeCard; |
| | | |
| | | import com.dy.common.webUtil.QueryResultVo; |
| | | import com.dy.pipIrrGlobal.daoBa.BaClientMapper; |
| | | import com.dy.pipIrrGlobal.daoSe.SeActiveCardMapper; |
| | | import com.dy.pipIrrGlobal.daoSe.SeClientCardMapper; |
| | | import com.dy.pipIrrGlobal.pojoSe.SeActiveCard; |
| | | import com.dy.pipIrrGlobal.pojoSe.VoActiveCard; |
| | | import com.dy.pipIrrGlobal.voBa.VoAreaCode; |
| | | import com.dy.pipIrrGlobal.voSe.VoActiveCard; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.apache.dubbo.common.utils.PojoUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | |
| | | public class ActiveCardSv { |
| | | @Autowired |
| | | private SeActiveCardMapper seActiveCardMapper; |
| | | |
| | | @Autowired |
| | | private SeClientCardMapper seClientCardMapper; |
| | | |
| | | @Autowired |
| | | private BaClientMapper baClientMapper; |
| | | |
| | | public QueryResultVo<List<VoActiveCard>> getActiveCards(QueryVo queryVo) { |
| | | //完善查询开卡记录的起止时间 |
| | |
| | | } |
| | | |
| | | /** |
| | | * 根据水卡编号和操作类型删除某卡补卡记录 |
| | | * @param cardId |
| | | * @param operateType |
| | | * 根据农户编号获取5级行政区划代码 |
| | | * @param clientNum 农户编号 |
| | | * @return 5级行政区划代码 |
| | | */ |
| | | public VoAreaCode getAreaCodeByNum(String clientNum) { |
| | | return baClientMapper.getAreaCodeByNum(clientNum); |
| | | } |
| | | |
| | | /** |
| | | * 根据行政区划串模块查询水卡编号 |
| | | * @param areaCode |
| | | * @return |
| | | */ |
| | | public Integer deleteByIdAndOperateType(Long cardId, Byte operateType) { |
| | | return seActiveCardMapper.deleteByIdAndOperateType(cardId, operateType); |
| | | String getCardNumOfMax(String areaCode) { |
| | | return seClientCardMapper.getCardNumOfMax(areaCode); |
| | | } |
| | | } |