|
@ -88,6 +88,14 @@ public class AppointmentService extends BaseJpaService<WlyyAppointmentDO, WlyyAp
|
|
|
public JSONArray getAppointmentList(String idcard,String doctor,String doctorName,String dept,String startDate,String endDate,String chargeType)throws Exception{
|
|
|
logger.info("getAppointmentList :");
|
|
|
|
|
|
if(StringUtils.isBlank(startDate)){
|
|
|
throw new RuntimeException("startDate is not null");
|
|
|
}
|
|
|
|
|
|
if(StringUtils.isBlank(endDate)){
|
|
|
throw new RuntimeException("endDate is not null");
|
|
|
}
|
|
|
|
|
|
String doctorMappingId = null;
|
|
|
if(StringUtils.isNotBlank(doctor)){
|
|
|
DoctorMappingDO doctorMappingDO = doctorMappingService.findMappingCode(doctor,"350211A1002");
|
|
@ -132,10 +140,20 @@ public class AppointmentService extends BaseJpaService<WlyyAppointmentDO, WlyyAp
|
|
|
|
|
|
net.sf.json.JSONObject res = registerService.BS10048(registerAmVO,demoFlag);
|
|
|
|
|
|
logger.info(res.toString());
|
|
|
if(res!=null){
|
|
|
logger.info(res.toString());
|
|
|
|
|
|
String code = res.getString("code");
|
|
|
if(StringUtils.isNotBlank(code)&&"-1".equals(code)){
|
|
|
wlyyAppointmentDO.setStatus(1);
|
|
|
}else {
|
|
|
wlyyAppointmentDO.setStatus(0);
|
|
|
}
|
|
|
}else{
|
|
|
wlyyAppointmentDO.setStatus(0);
|
|
|
}
|
|
|
|
|
|
wlyyAppointmentDO.setCreateTime(new Date());
|
|
|
wlyyAppointmentDO.setStatus(2);
|
|
|
wlyyAppointmentDO.setType(1);
|
|
|
wlyyAppointmentDO.setHttpLog(res.toString());
|
|
|
wlyyAppointmentDao.save(wlyyAppointmentDO);
|