|  |  | 
 |  |  | import com.dy.pipIrrGlobal.voSe.VoOrders; | 
 |  |  | import com.dy.pipIrrGlobal.voSe.VoVcRecharge; | 
 |  |  | import com.dy.pipIrrGlobal.voSe.VoVirtualCard; | 
 |  |  | import com.dy.pipIrrWechat.virtualCard.dto.DtoVcRecharge; | 
 |  |  | import com.dy.pipIrrWechat.result.WechatResultCode; | 
 |  |  | import com.dy.pipIrrWechat.virtualCard.dto.DtoVirtualCard; | 
 |  |  | import com.dy.pipIrrWechat.virtualCard.enums.LastOperateENUM; | 
 |  |  | import com.dy.pipIrrWechat.virtualCard.enums.OrderStateENUM; | 
 |  |  | import com.dy.pipIrrWechat.result.WechatResultCode; | 
 |  |  | import com.dy.pipIrrWechat.virtualCard.qo.QoVcRecharge; | 
 |  |  | import lombok.extern.slf4j.Slf4j; | 
 |  |  | import org.apache.dubbo.common.utils.PojoUtils; | 
 |  |  | import org.springframework.beans.factory.annotation.Autowired; | 
 |  |  | import org.springframework.beans.factory.annotation.Value; | 
 |  |  | import org.springframework.stereotype.Service; | 
 |  |  | import org.springframework.transaction.annotation.Transactional; | 
 |  |  |  | 
 |  |  | 
 |  |  |     @Autowired | 
 |  |  |     private SeVcOperateMapper seVcOperateMapper; | 
 |  |  |  | 
 |  |  |     @Value("${vc.alarmValue}") | 
 |  |  |     private Integer alarmValue; | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |      * 根据农户ID获取5级行政区划代码,注册虚拟卡使用 | 
 |  |  |      * @param clientId 农户ID | 
 |  |  | 
 |  |  |      * @return | 
 |  |  |      */ | 
 |  |  |     public List<VoVirtualCard> getVCs(Long clientId) { | 
 |  |  |         return seVirtualCardMapper.getVCs(clientId); | 
 |  |  |         return seVirtualCardMapper.getVCs(alarmValue, clientId); | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  | 
 |  |  |     public Long insertVirtualCard(SeVirtualCard po) { | 
 |  |  |         seVirtualCardMapper.insert(po); | 
 |  |  |         return po.getId(); | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |      * 根据农户ID及虚拟卡ID获取正常状态的虚拟卡对象 | 
 |  |  |      * @param clientId | 
 |  |  |      * @param vcId | 
 |  |  |      * @return | 
 |  |  |      */ | 
 |  |  |     public SeVirtualCard getVcByClientIdAndVcId (Long clientId, Long vcId) { | 
 |  |  |         return seVirtualCardMapper.getVcByClientIdAndVcId(clientId, vcId); | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |      * 根据虚拟卡ID注销虚拟卡 | 
 |  |  |      * @param clientId | 
 |  |  |      * @param vcId | 
 |  |  |      * @return | 
 |  |  |      */ | 
 |  |  |     public Integer cancelVc(Long clientId, Long vcId) { | 
 |  |  |         return seVirtualCardMapper.cancelVc(clientId, vcId); | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  | 
 |  |  |      * @param dtoVcRecharge | 
 |  |  |      * @return | 
 |  |  |      */ | 
 |  |  |     public QueryResultVo<List<VoVcRecharge>> getVcRechargeRecords(DtoVcRecharge dtoVcRecharge){ | 
 |  |  |     public QueryResultVo<List<VoVcRecharge>> getVcRechargeRecords(QoVcRecharge dtoVcRecharge){ | 
 |  |  |         Map<String, Object> params = (Map<String, Object>) PojoUtils.generalize(dtoVcRecharge); | 
 |  |  |         Long itemTotal = seVirtualCardMapper.getRechargeRecordCount(params); | 
 |  |  |  |