|
@ -1229,11 +1229,13 @@ public class ConsultController extends WeixinBaseController {
|
|
public String countRemainConsult(){
|
|
public String countRemainConsult(){
|
|
try {
|
|
try {
|
|
String patient = getRepUID();
|
|
String patient = getRepUID();
|
|
int count = consultTeamService.countRemainConsult(patient);
|
|
|
|
if (count>=0){
|
|
|
|
return write(200, "查询成功!", "data", count);
|
|
|
|
|
|
JSONObject result = consultTeamService.countRemainConsult(patient);
|
|
|
|
if (result.has("count") && result.has("amount")){
|
|
|
|
return write(200, "查询成功!", "data", result);
|
|
|
|
}else if (result.has("count") && !result.has("amount")){
|
|
|
|
return error(-1, "查询已签约记录失败!");
|
|
}else {
|
|
}else {
|
|
return error(-1, "已缴费用户无家庭咨询次数限制!");
|
|
|
|
|
|
return error(-1, "查询失败!");
|
|
}
|
|
}
|
|
}catch (Exception e){
|
|
}catch (Exception e){
|
|
error(e);
|
|
error(e);
|