|  |  |  | 
|---|
|  |  |  | return BaseResponseUtils.buildErrorMsg(WechatResultCode.PHONE_NUMBER_CANNOT_BE_NULL.getMessage()); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | Long clientId = clientSv.getClientIdByPhone(phoneNumber); | 
|---|
|  |  |  | if(clientId == null) { | 
|---|
|  |  |  | return BaseResponseUtils.buildErrorMsg("该手机号对应的农户不存在"); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | // 生成6位验证码并转为Json格式 | 
|---|
|  |  |  | String securityCode = String.valueOf(RandomCode.genCode()); | 
|---|
|  |  |  | JSONObject param = new JSONObject(); | 
|---|
|  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | JSONObject job_result = new JSONObject(); | 
|---|
|  |  |  | job_result.put("clientId", clientId); | 
|---|
|  |  |  | job_result.put("clientId", String.valueOf(clientId)); | 
|---|
|  |  |  | job_result.put("sessionId", sessionId); | 
|---|
|  |  |  | return BaseResponseUtils.buildSuccess(job_result); | 
|---|
|  |  |  |  | 
|---|