|  |  | 
 |  |  |  | 
 |  |  | import com.dy.common.webUtil.QueryResultVo; | 
 |  |  | import com.dy.pipIrrGlobal.daoBa.BaDistrictMapper; | 
 |  |  | import com.dy.pipIrrGlobal.daoBa.BaSettingsMapper; | 
 |  |  | import com.dy.pipIrrGlobal.daoSe.SeClientMapper; | 
 |  |  | import com.dy.pipIrrGlobal.daoSe.SeCodeVerifyMapper; | 
 |  |  | import com.dy.pipIrrGlobal.daoSe.SeOpenIdMapper; | 
 |  |  | import com.dy.pipIrrGlobal.pojoSe.SeClient; | 
 |  |  | import com.dy.pipIrrGlobal.pojoSe.SeCodeVerify; | 
 |  |  | import com.dy.pipIrrGlobal.pojoSe.SeOpenId; | 
 |  |  | import com.dy.pipIrrGlobal.voSe.VoClient; | 
 |  |  | import lombok.extern.slf4j.Slf4j; | 
 |  |  | 
 |  |  |     private BaDistrictMapper baDistrictMapper; | 
 |  |  |  | 
 |  |  |     @Autowired | 
 |  |  |     private SeCodeVerifyMapper seCodeVerifyMapper; | 
 |  |  |     private BaSettingsMapper baSettingsMapper; | 
 |  |  |  | 
 |  |  |     @Autowired | 
 |  |  |     private SeOpenIdMapper seOpenIdMapper; | 
 |  |  | 
 |  |  |      */ | 
 |  |  |     public QueryResultVo<List<VoClient>> getClients(QueryVo queryVo){ | 
 |  |  |         Map<String, Object> params = (Map<String, Object>) PojoUtils.generalize(queryVo) ; | 
 |  |  |         Long itemTotal = seClientMapper.getRecordCount(params); | 
 |  |  |  | 
 |  |  |         Long itemTotal = (long)seClientMapper.getRecordCount(params).size(); | 
 |  |  |         QueryResultVo<List<VoClient>> rsVo = new QueryResultVo<>() ; | 
 |  |  |         rsVo.pageSize = queryVo.pageSize ; | 
 |  |  |         rsVo.pageCurr = queryVo.pageCurr ; | 
 |  |  | 
 |  |  |      * @return | 
 |  |  |      */ | 
 |  |  |     public Integer addClient(SeClient po) { | 
 |  |  |         return seClientMapper.insert(po); | 
 |  |  |         return seClientMapper.insertSelective(po); | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |      * 添加验证码记录 | 
 |  |  |      * @param po | 
 |  |  |      * @return | 
 |  |  |      */ | 
 |  |  |     public Integer addCodeVerify(SeCodeVerify po) { | 
 |  |  |         return seCodeVerifyMapper.insert(po); | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |      * 根据手机号获取验证码验证对象 | 
 |  |  |      * @param phoneNumber | 
 |  |  |      * @return | 
 |  |  |      */ | 
 |  |  |     public SeCodeVerify getCodeVerify(String phoneNumber) { | 
 |  |  |         return seCodeVerifyMapper.getCodeVerify(phoneNumber); | 
 |  |  |     } | 
 |  |  |     /** | 
 |  |  |      * 根据6位区划串模糊查询农户编号 | 
 |  |  |      * @param district6 | 
 |  |  | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |      * 根据配置项获取配置项值 | 
 |  |  |      * @param itemName | 
 |  |  |      * @return | 
 |  |  |      */ | 
 |  |  |     public String getItemValue(String itemName) { | 
 |  |  |         return baSettingsMapper.getItemValue(itemName); | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |      * 根据电话号码获取农户ID | 
 |  |  |      * @param phoneNumber | 
 |  |  |      * @return | 
 |  |  | 
 |  |  |      */ | 
 |  |  |     public Long addOpenId(SeOpenId po) { | 
 |  |  |         seOpenIdMapper.insert(po); | 
 |  |  |         return po.getClientId(); | 
 |  |  |         //return po.getClientId(); | 
 |  |  |         return po.getId(); | 
 |  |  |     } | 
 |  |  | } |