|
@ -11,6 +11,7 @@ import com.yihu.wlyy.repository.patient.PatientDao;
|
|
import com.yihu.wlyy.repository.patient.SignFamilyDao;
|
|
import com.yihu.wlyy.repository.patient.SignFamilyDao;
|
|
import com.yihu.wlyy.service.app.consult.ConsultTeamService;
|
|
import com.yihu.wlyy.service.app.consult.ConsultTeamService;
|
|
import com.yihu.wlyy.service.app.consult.DoctorCommentService;
|
|
import com.yihu.wlyy.service.app.consult.DoctorCommentService;
|
|
|
|
import com.yihu.wlyy.service.app.prescription.PrescriptionDiagnosisService;
|
|
import com.yihu.wlyy.service.app.scheduling.DoctorWorkTimeService;
|
|
import com.yihu.wlyy.service.app.scheduling.DoctorWorkTimeService;
|
|
import com.yihu.wlyy.service.app.statistics.DoctorStatisticsService;
|
|
import com.yihu.wlyy.service.app.statistics.DoctorStatisticsService;
|
|
import com.yihu.wlyy.service.app.talk.TalkGroupService;
|
|
import com.yihu.wlyy.service.app.talk.TalkGroupService;
|
|
@ -63,15 +64,17 @@ public class ConsultController extends WeixinBaseController {
|
|
@Autowired
|
|
@Autowired
|
|
private PatientDao patientDao;
|
|
private PatientDao patientDao;
|
|
@Autowired
|
|
@Autowired
|
|
|
|
private SignFamilyDao signFamilyDao;
|
|
|
|
@Autowired
|
|
|
|
private DoctorDao doctorDao;
|
|
|
|
@Autowired
|
|
|
|
private PrescriptionDiagnosisService prescriptionDiagnosisService;
|
|
|
|
@Autowired
|
|
private CommonUtil CommonUtil;
|
|
private CommonUtil CommonUtil;
|
|
@Autowired
|
|
@Autowired
|
|
private ImUtill ImUtill;
|
|
private ImUtill ImUtill;
|
|
@Autowired
|
|
@Autowired
|
|
private HttpUtil httpUtil;
|
|
private HttpUtil httpUtil;
|
|
@Autowired
|
|
|
|
private SignFamilyDao signFamilyDao;
|
|
|
|
@Autowired
|
|
|
|
private DoctorDao doctorDao;
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
* 患者咨询记录查询
|
|
* 患者咨询记录查询
|
|
@ -129,7 +132,52 @@ public class ConsultController extends WeixinBaseController {
|
|
return error(-1, "查询失败!");
|
|
return error(-1, "查询失败!");
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
@RequestMapping(value = "getPreConsultList",method = RequestMethod.GET)
|
|
|
|
@ResponseBody
|
|
|
|
@ApiOperation("获取续方咨询列表")
|
|
|
|
public String getPreConsultList(@RequestParam(required = false) String title,
|
|
|
|
@RequestParam(required = true) long id,@RequestParam(required = true) int pagesize){
|
|
|
|
try {
|
|
|
|
JSONArray array = new JSONArray();
|
|
|
|
// Page<Object> data = consultTeamService.findConsultRecordByType("a663d0cf7f8c4d38a8327cedc921e65f", id, pagesize,8, title);//8表示续方咨询
|
|
|
|
Page<Object> data = consultTeamService.findConsultRecordByType(getRepUID(), id, pagesize,8, title);//8表示续方咨询
|
|
|
|
if (data != null) {
|
|
|
|
for (Object consult : data.getContent()) {
|
|
|
|
if (consult == null) {
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
Object[] result = (Object[]) consult;
|
|
|
|
JSONObject json = new JSONObject();
|
|
|
|
json.put("id", result[0]);
|
|
|
|
// 设置咨询类型:1三师咨询,2视频咨询,3图文咨询,4公共咨询,5病友圈,8 续方咨询
|
|
|
|
json.put("type", result[1]);
|
|
|
|
// 设置咨询标识
|
|
|
|
json.put("code", result[2]);
|
|
|
|
// 设置显示标题
|
|
|
|
json.put("title", result[3]);
|
|
|
|
// 设置主诉
|
|
|
|
json.put("symptoms", result[4]);
|
|
|
|
// 咨询状态
|
|
|
|
json.put("status", result[6]);
|
|
|
|
// 设置咨询日期
|
|
|
|
json.put("czrq", DateUtil.dateToStrLong((Date) result[5]));
|
|
|
|
// 咨询状态
|
|
|
|
json.put("doctorCode", result[7]);
|
|
|
|
json.put("evaluate", result[8]);
|
|
|
|
String relationCode = result[9]==null?"":result[9].toString();
|
|
|
|
json.put("prescriptionCode",relationCode);//续方code
|
|
|
|
json.put("prescriptionDt",prescriptionDiagnosisService.getPrescriptionDiagnosis(relationCode));//续方疾病类型
|
|
|
|
json.put("prescriptionInfo",prescriptionDiagnosisService.getPrescriptionInfo(relationCode));//续方药品信息
|
|
|
|
|
|
|
|
array.put(json);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return write(200, "查询成功!", "list", array);
|
|
|
|
} catch (Exception e) {
|
|
|
|
error(e);
|
|
|
|
return error(-1, "查询失败!");
|
|
|
|
}
|
|
|
|
}
|
|
/**
|
|
/**
|
|
* 获取医生的排班时间
|
|
* 获取医生的排班时间
|
|
*
|
|
*
|
|
@ -266,14 +314,14 @@ public class ConsultController extends WeixinBaseController {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
@RequestMapping(value = "isPrescriptionConsult", method = RequestMethod.GET)
|
|
|
|
|
|
@RequestMapping(value = "isPrescriptionConsult",method = RequestMethod.GET)
|
|
@ResponseBody
|
|
@ResponseBody
|
|
@ApiOperation("是否可以续方咨询")
|
|
@ApiOperation("是否可以续方咨询")
|
|
public String isPrescriptConsult(String patient) {
|
|
|
|
try {
|
|
|
|
|
|
public String isPrescriptConsult(String patient){
|
|
|
|
try{
|
|
SignFamily signFamily = signFamilyDao.findByPatient(patient);
|
|
SignFamily signFamily = signFamilyDao.findByPatient(patient);
|
|
if (signFamily == null) {
|
|
|
|
return error(-1, "您还未签约,不能发起续方咨询!");
|
|
|
|
|
|
if(signFamily==null){
|
|
|
|
return error(-1,"您还未签约,不能发起续方咨询!");
|
|
}
|
|
}
|
|
|
|
|
|
//点击后判断,如果用户当前存在可申请续方的处方记录,则进入续方申请流程,若不存在可续方记录,alert“当前没有可以申请续方的处方记录”
|
|
//点击后判断,如果用户当前存在可申请续方的处方记录,则进入续方申请流程,若不存在可续方记录,alert“当前没有可以申请续方的处方记录”
|
|
@ -281,42 +329,40 @@ public class ConsultController extends WeixinBaseController {
|
|
|
|
|
|
Doctor doctor = doctorDao.findByAdminTeamId(signFamily.getAdminTeamId());
|
|
Doctor doctor = doctorDao.findByAdminTeamId(signFamily.getAdminTeamId());
|
|
JSONObject json = new JSONObject();
|
|
JSONObject json = new JSONObject();
|
|
json.put("doctor", doctor.getCode());
|
|
|
|
json.put("doctorName", doctor.getName());
|
|
|
|
json.put("adminTeamId", signFamily.getAdminTeamId());
|
|
|
|
json.put("hospital", doctor.getHospital());
|
|
|
|
json.put("hospitalName", doctor.getHospitalName());
|
|
|
|
|
|
json.put("doctor",doctor.getCode());
|
|
|
|
json.put("doctorName",doctor.getName());
|
|
|
|
json.put("adminTeamId",signFamily.getAdminTeamId());
|
|
|
|
json.put("hospital",doctor.getHospital());
|
|
|
|
json.put("hospitalName",doctor.getHospitalName());
|
|
|
|
|
|
return write(200, "查询成功!", "data", json);
|
|
return write(200, "查询成功!", "data", json);
|
|
|
|
|
|
} catch (Exception e) {
|
|
|
|
|
|
}catch (Exception e){
|
|
error(e);
|
|
error(e);
|
|
return error(-1, "查询失败");
|
|
|
|
|
|
return error(-1,"查询失败");
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
@RequestMapping(value = "addPrescriptionConsult", method = RequestMethod.POST)
|
|
|
|
|
|
@RequestMapping(value = "addPrescriptionConsult",method = RequestMethod.POST)
|
|
@ResponseBody
|
|
@ResponseBody
|
|
@ApiOperation("添加续方咨询")
|
|
@ApiOperation("添加续方咨询")
|
|
public String addPrescriptionConsult(@ApiParam(name = "patient", value = "居民code", defaultValue = "1")
|
|
|
|
@RequestParam(value = "patient", required = true) String patient,
|
|
|
|
@ApiParam(name = "jwCode", value = "基位处方code", defaultValue = "10")
|
|
|
|
|
|
public String addPrescriptionConsult(@ApiParam(name = "jwCode", value = "基位处方code", defaultValue = "10")
|
|
@RequestParam(value = "jwCode", required = true) String jwCode,
|
|
@RequestParam(value = "jwCode", required = true) String jwCode,
|
|
@ApiParam(name = "doctor", value = "咨询医生(开方医生、审核医生)", defaultValue = "86225d1365e711e69f7c005056850d66")
|
|
@ApiParam(name = "doctor", value = "咨询医生(开方医生、审核医生)", defaultValue = "86225d1365e711e69f7c005056850d66")
|
|
@RequestParam(value = "doctor", required = true) String doctor,
|
|
@RequestParam(value = "doctor", required = true) String doctor,
|
|
@ApiParam(name = "adminTeamId", value = "签约行政团队id", defaultValue = "224")
|
|
@ApiParam(name = "adminTeamId", value = "签约行政团队id", defaultValue = "224")
|
|
@RequestParam(value = "adminTeamId", required = true) Long adminTeamId,
|
|
@RequestParam(value = "adminTeamId", required = true) Long adminTeamId,
|
|
@ApiParam(name = "reason", value = "续方说明", defaultValue = "续方申请")
|
|
@ApiParam(name = "reason", value = "续方说明", defaultValue = "续方申请")
|
|
@RequestParam(value = "reason", required = false) String reason) {
|
|
|
|
try {
|
|
|
|
|
|
@RequestParam(value = "reason", required = false) String reason){
|
|
|
|
try{
|
|
ConsultTeam consult = new ConsultTeam();
|
|
ConsultTeam consult = new ConsultTeam();
|
|
consult.setType(8);//续方咨询
|
|
consult.setType(8);//续方咨询
|
|
consult.setAdminTeamId(adminTeamId);
|
|
consult.setAdminTeamId(adminTeamId);
|
|
// 保存到数据库
|
|
// 保存到数据库
|
|
// int res = consultTeamService.addPrescriptionConsult(jwCode, "a663d0cf7f8c4d38a8327cedc921e65f", "a663d0cf7f8c4d38a8327cedc921e65f", doctor, consult, reason);
|
|
|
|
int res = consultTeamService.addPrescriptionConsult(jwCode, getRepUID(), getUID(), doctor, consult, reason);
|
|
|
|
|
|
// int res = consultTeamService.addPrescriptionConsult(jwCode, "a663d0cf7f8c4d38a8327cedc921e65f","a663d0cf7f8c4d38a8327cedc921e65f",doctor,consult,reason);
|
|
|
|
int res = consultTeamService.addPrescriptionConsult(jwCode, getRepUID(),getUID(),doctor,consult,reason);
|
|
if (res == -1) {
|
|
if (res == -1) {
|
|
return error(-1, "家庭签约信息不存在或已过期,无法进行家庭医生咨询!");
|
|
|
|
|
|
return error(-1, "该处方存在未审核的续方,无法进行续方咨询!");
|
|
}
|
|
}
|
|
|
|
|
|
// Doctor doctor = doctorService.findDoctorByCode(consult.getDoctor());
|
|
// Doctor doctor = doctorService.findDoctorByCode(consult.getDoctor());
|
|
@ -330,9 +376,9 @@ public class ConsultController extends WeixinBaseController {
|
|
BusinessLogs.info(BusinessLogs.BusinessType.consult, getRepUID(), getUID(), new JSONObject(consult));
|
|
BusinessLogs.info(BusinessLogs.BusinessType.consult, getRepUID(), getUID(), new JSONObject(consult));
|
|
return write(200, "提交成功", "data", consult);
|
|
return write(200, "提交成功", "data", consult);
|
|
|
|
|
|
} catch (Exception e) {
|
|
|
|
|
|
}catch (Exception e){
|
|
error(e);
|
|
error(e);
|
|
return error(-1, "添加失败");
|
|
|
|
|
|
return error(-1,"添加失败");
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
@ -355,8 +401,8 @@ public class ConsultController extends WeixinBaseController {
|
|
@RequestParam(required = false) String voice,
|
|
@RequestParam(required = false) String voice,
|
|
@RequestParam(required = false) Long guidance) {
|
|
@RequestParam(required = false) Long guidance) {
|
|
try {
|
|
try {
|
|
System.out.println("guidance1=" + guidance);
|
|
|
|
System.out.println("symptoms=" + symptoms);
|
|
|
|
|
|
System.out.println("guidance1="+guidance);
|
|
|
|
System.out.println("symptoms="+symptoms);
|
|
if (type == null) {
|
|
if (type == null) {
|
|
type = 1;
|
|
type = 1;
|
|
}
|
|
}
|
|
@ -400,9 +446,9 @@ public class ConsultController extends WeixinBaseController {
|
|
consult.setGuidance(guidance);
|
|
consult.setGuidance(guidance);
|
|
}
|
|
}
|
|
|
|
|
|
System.out.println("guidance2=" + guidance);
|
|
|
|
|
|
System.out.println("guidance2="+guidance);
|
|
// 保存到数据库
|
|
// 保存到数据库
|
|
int res = consultTeamService.addTeamConsult(consult, getRepUID(), getUID());
|
|
|
|
|
|
int res = consultTeamService.addTeamConsult(consult, getRepUID(),getUID());
|
|
if (res == -1) {
|
|
if (res == -1) {
|
|
return error(-1, "家庭签约信息不存在或已过期,无法进行家庭医生咨询!");
|
|
return error(-1, "家庭签约信息不存在或已过期,无法进行家庭医生咨询!");
|
|
} else if (res == -2) {
|
|
} else if (res == -2) {
|
|
@ -431,23 +477,23 @@ public class ConsultController extends WeixinBaseController {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
@RequestMapping(value = "intoTopic", method = RequestMethod.POST)
|
|
|
|
|
|
@RequestMapping(value = "intoTopic",method = RequestMethod.POST)
|
|
@ResponseBody
|
|
@ResponseBody
|
|
@ApiOperation("进入咨询")
|
|
@ApiOperation("进入咨询")
|
|
public String intoTopic(@RequestParam(required = true) String consult) {
|
|
|
|
try {
|
|
|
|
int result = consultTeamService.intoTopic(consult, getRepUID(), getUID());
|
|
|
|
if (result == -1) {
|
|
|
|
return error(-1, "该咨询不是进行中");
|
|
|
|
|
|
public String intoTopic(@RequestParam(required = true) String consult){
|
|
|
|
try{
|
|
|
|
int result = consultTeamService.intoTopic(consult,getRepUID(),getUID());
|
|
|
|
if(result==-1){
|
|
|
|
return error(-1,"该咨询不是进行中");
|
|
}
|
|
}
|
|
JSONObject json = new JSONObject();
|
|
JSONObject json = new JSONObject();
|
|
json.put("consult", consult);
|
|
|
|
json.put("content", "进入咨询");
|
|
|
|
|
|
json.put("consult",consult);
|
|
|
|
json.put("content","进入咨询");
|
|
BusinessLogs.info(BusinessLogs.BusinessType.consult, getUID(), getRepUID(), json);
|
|
BusinessLogs.info(BusinessLogs.BusinessType.consult, getUID(), getRepUID(), json);
|
|
return success("进入成功");
|
|
return success("进入成功");
|
|
} catch (Exception e) {
|
|
|
|
|
|
}catch (Exception e){
|
|
error(e);
|
|
error(e);
|
|
return error(-1, "请求失败");
|
|
|
|
|
|
return error(-1,"请求失败");
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
@ -510,9 +556,9 @@ public class ConsultController extends WeixinBaseController {
|
|
consult.setVoice(voice);
|
|
consult.setVoice(voice);
|
|
consult.setDoctor(doctorCode);//设置专科医生
|
|
consult.setDoctor(doctorCode);//设置专科医生
|
|
// 保存到数据库
|
|
// 保存到数据库
|
|
JSONObject object = consultTeamService.famousConsult(consult, getRepUID(), "1", getUID());
|
|
|
|
JSONObject resultConsult = new JSONObject(consult);
|
|
|
|
resultConsult.put("session_id", object.getString("session_id"));
|
|
|
|
|
|
JSONObject object = consultTeamService.famousConsult(consult, getRepUID(), "1",getUID());
|
|
|
|
JSONObject resultConsult = new JSONObject(consult);
|
|
|
|
resultConsult.put("session_id",object.getString("session_id"));
|
|
//名医咨询次数减一
|
|
//名医咨询次数减一
|
|
doctorWorkTimeService.setDoctorCurrentConsultTimesRemain(doctorCode);
|
|
doctorWorkTimeService.setDoctorCurrentConsultTimesRemain(doctorCode);
|
|
// 推送消息给医生
|
|
// 推送消息给医生
|
|
@ -778,10 +824,10 @@ public class ConsultController extends WeixinBaseController {
|
|
int i = 0;
|
|
int i = 0;
|
|
List<String> failed = new ArrayList<>();
|
|
List<String> failed = new ArrayList<>();
|
|
|
|
|
|
String agent = getUID() == getRepUID() ? null : getUID();
|
|
|
|
|
|
String agent = getUID()==getRepUID()?null:getUID();
|
|
for (ConsultTeamLog log : logs) {
|
|
for (ConsultTeamLog log : logs) {
|
|
// String response = ImUtill.sendTopicIM(getUID(), patient.getName(), consult, String.valueOf(log.getType()), log.getContent());
|
|
// String response = ImUtill.sendTopicIM(getUID(), patient.getName(), consult, String.valueOf(log.getType()), log.getContent());
|
|
String response = ImUtill.sendTopicIM(getRepUID(), patient.getName(), consult, String.valueOf(log.getType()), log.getContent(), agent);
|
|
|
|
|
|
String response = ImUtill.sendTopicIM(getRepUID(), patient.getName(), consult, String.valueOf(log.getType()), log.getContent(),agent);
|
|
if (StringUtils.isNotEmpty(response)) {
|
|
if (StringUtils.isNotEmpty(response)) {
|
|
JSONObject resObj = new JSONObject(response);
|
|
JSONObject resObj = new JSONObject(response);
|
|
if (resObj.getInt("status") == -1) {
|
|
if (resObj.getInt("status") == -1) {
|
|
@ -816,7 +862,7 @@ public class ConsultController extends WeixinBaseController {
|
|
JSONObject messageObj = ImUtill.getTopicMessage(consultModel.getConsult(), consultModel.getStartMsgId(), consultModel.getEndMsgId(), page, pagesize, getRepUID());
|
|
JSONObject messageObj = ImUtill.getTopicMessage(consultModel.getConsult(), consultModel.getStartMsgId(), consultModel.getEndMsgId(), page, pagesize, getRepUID());
|
|
|
|
|
|
//过滤续签
|
|
//过滤续签
|
|
consultTeamService.removeRenewPerson(messageObj, getRepUID());
|
|
|
|
|
|
consultTeamService.removeRenewPerson(messageObj,getRepUID());
|
|
|
|
|
|
return write(200, "查询成功", "list", messageObj);
|
|
return write(200, "查询成功", "list", messageObj);
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
@ -833,7 +879,7 @@ public class ConsultController extends WeixinBaseController {
|
|
*/
|
|
*/
|
|
@RequestMapping(value = "logs")
|
|
@RequestMapping(value = "logs")
|
|
@ResponseBody
|
|
@ResponseBody
|
|
public String logs(@RequestParam String sessionId, @RequestParam(required = false) String startMsgId, @RequestParam(required = false) String endMsgId, @RequestParam int page, @RequestParam int pagesize) {
|
|
|
|
|
|
public String logs(@RequestParam String sessionId,@RequestParam(required = false) String startMsgId,@RequestParam(required = false) String endMsgId, @RequestParam int page, @RequestParam int pagesize) {
|
|
try {
|
|
try {
|
|
JSONArray messageArray = ImUtill.getSessionMessage(sessionId, startMsgId, endMsgId, page, pagesize, getRepUID());
|
|
JSONArray messageArray = ImUtill.getSessionMessage(sessionId, startMsgId, endMsgId, page, pagesize, getRepUID());
|
|
return write(200, "查询成功", "list", messageArray);
|
|
return write(200, "查询成功", "list", messageArray);
|
|
@ -850,7 +896,7 @@ public class ConsultController extends WeixinBaseController {
|
|
JSONArray participants = ImUtill.getSessions(sessionId);
|
|
JSONArray participants = ImUtill.getSessions(sessionId);
|
|
|
|
|
|
//过滤续签
|
|
//过滤续签
|
|
consultTeamService.removeRenewPerson(participants, getRepUID());
|
|
|
|
|
|
consultTeamService.removeRenewPerson(participants,getRepUID());
|
|
|
|
|
|
return write(200, "查询成功", "list", participants);
|
|
return write(200, "查询成功", "list", participants);
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
@ -877,7 +923,7 @@ public class ConsultController extends WeixinBaseController {
|
|
|
|
|
|
String url = SystemConf.getInstance().getSystemProperties().getProperty("im_list_get")
|
|
String url = SystemConf.getInstance().getSystemProperties().getProperty("im_list_get")
|
|
+ "api/v1/chats/message";
|
|
+ "api/v1/chats/message";
|
|
String reG = httpUtil.sendGet(url, "id=" + logId + "&type=" + msgType);
|
|
|
|
|
|
String reG = HttpUtil.sendGet(url, "id=" + logId + "&type=" + msgType);
|
|
JSONObject obj = null;
|
|
JSONObject obj = null;
|
|
if (!org.springframework.util.StringUtils.isEmpty(reG)) {
|
|
if (!org.springframework.util.StringUtils.isEmpty(reG)) {
|
|
obj = new JSONObject(new String(reG.getBytes(), "utf-8"));
|
|
obj = new JSONObject(new String(reG.getBytes(), "utf-8"));
|
|
@ -961,22 +1007,21 @@ public class ConsultController extends WeixinBaseController {
|
|
|
|
|
|
@RequestMapping(value = "getTopic")
|
|
@RequestMapping(value = "getTopic")
|
|
@ResponseBody
|
|
@ResponseBody
|
|
public String getTopic(String consult) {
|
|
|
|
try {
|
|
|
|
|
|
public String getTopic(String consult){
|
|
|
|
try{
|
|
return success(ImUtill.getTopic(consult).get("data").toString());
|
|
return success(ImUtill.getTopic(consult).get("data").toString());
|
|
} catch (Exception e) {
|
|
|
|
return error(-1, e.getMessage());
|
|
|
|
|
|
}catch (Exception e){
|
|
|
|
return error(-1,e.getMessage());
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
@RequestMapping(value = "getConsult")
|
|
@RequestMapping(value = "getConsult")
|
|
@ResponseBody
|
|
@ResponseBody
|
|
public String getConsult(String consult) {
|
|
|
|
try {
|
|
|
|
|
|
public String getConsult(String consult){
|
|
|
|
try{
|
|
ConsultTeam consultTeam = consultTeamService.findByConsultCode(consult);
|
|
ConsultTeam consultTeam = consultTeamService.findByConsultCode(consult);
|
|
return write(200, "查询成功", "data", consultTeam);
|
|
return write(200, "查询成功", "data", consultTeam);
|
|
} catch (Exception e) {
|
|
|
|
return error(-1, e.getMessage());
|
|
|
|
|
|
}catch (Exception e){
|
|
|
|
return error(-1,e.getMessage());
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|