|
@ -473,7 +473,7 @@ public class SecurityMonitoringOrderService extends BaseJpaService<SecurityMonit
|
|
|
tmp.put("id",one.get("orderId"));
|
|
|
tmp.put("serveDesc",one.get("serve_desc"));
|
|
|
Date date = (Date)one.get("create_time");
|
|
|
tmp.put("createTime", DateUtil.dateToStr(date,"yyyy-MM-dd hh:mm:ss"));
|
|
|
tmp.put("createTime", DateUtil.dateToStrLong(date));
|
|
|
tmp.put("status",one.get("status"));
|
|
|
tmp.put("doctor",one.get("doctor"));
|
|
|
tmp.put("doctorName",one.get("doctor_name"));
|
|
@ -827,11 +827,20 @@ public class SecurityMonitoringOrderService extends BaseJpaService<SecurityMonit
|
|
|
* @return
|
|
|
* @throws Exception
|
|
|
*/
|
|
|
public JSONObject updateDoorConclusion(Integer emergency_reason,Integer treatment_status,String orderId,String conclusion,String conclusion_img) throws Exception {
|
|
|
public JSONObject updateDoorConclusion(Integer emergency_reason,Integer treatment_status,String orderId,String conclusion,String conclusion_img,String doctor) throws Exception {
|
|
|
JSONObject result = new JSONObject();
|
|
|
ObjectMapper objectMapper = new ObjectMapper();
|
|
|
objectMapper.setDateFormat(new SimpleDateFormat("yyyy-MM-dd"));
|
|
|
SecurityMonitoringOrderDO one = securityMonitoringOrderDao.findOne(orderId);
|
|
|
if (StringUtils.isNotBlank(doctor)){
|
|
|
BaseDoctorDO doctorDO = baseDoctorDao.findById(doctor);
|
|
|
if (doctorDO!=null){
|
|
|
one.setDoctor(doctor);
|
|
|
one.setDoctorName(doctorDO.getName());
|
|
|
one.setUpdateUser(doctor);
|
|
|
one.setUpdateUserName(doctorDO.getName());
|
|
|
}
|
|
|
}
|
|
|
if (one==null){
|
|
|
String failMsg = "工单不存在" ;
|
|
|
result.put("resultFlag", 0);
|
|
@ -877,9 +886,18 @@ public class SecurityMonitoringOrderService extends BaseJpaService<SecurityMonit
|
|
|
* 跳过登记服务小结
|
|
|
* @param orderId
|
|
|
*/
|
|
|
public JSONObject cancelConclusion(String orderId) throws Exception {
|
|
|
public JSONObject cancelConclusion(String orderId,String doctor) throws Exception {
|
|
|
JSONObject result = new JSONObject();
|
|
|
SecurityMonitoringOrderDO one = securityMonitoringOrderDao.findOne(orderId);
|
|
|
if (StringUtils.isNotBlank(doctor)){
|
|
|
BaseDoctorDO doctorDO = baseDoctorDao.findById(doctor);
|
|
|
if (doctorDO!=null){
|
|
|
one.setDoctor(doctor);
|
|
|
one.setDoctorName(doctorDO.getName());
|
|
|
one.setUpdateUser(doctor);
|
|
|
one.setUpdateUserName(doctorDO.getName());
|
|
|
}
|
|
|
}
|
|
|
if (one==null){
|
|
|
String failMsg = "工单不存在" ;
|
|
|
result.put("resultFlag", 0);
|
|
@ -890,7 +908,10 @@ public class SecurityMonitoringOrderService extends BaseJpaService<SecurityMonit
|
|
|
String failMsg = "咨询结束失败 无法结束工单";
|
|
|
throw new Exception(failMsg);
|
|
|
}
|
|
|
securityMonitoringOrderDao.updateConclusionStatus(orderId);
|
|
|
one.setStatus(0);
|
|
|
one.setUpdateTime(new Date());
|
|
|
securityMonitoringOrderDao.save(one);
|
|
|
|
|
|
return getSecurityOrderDetail(orderId,null);
|
|
|
}
|
|
|
|