|
@ -4,11 +4,13 @@ import com.yihu.wlyy.entity.patient.prescription.PrescriptionExpressageLog;
|
|
import com.yihu.wlyy.entity.patient.prescription.PrescriptionLog;
|
|
import com.yihu.wlyy.entity.patient.prescription.PrescriptionLog;
|
|
import com.yihu.wlyy.service.app.prescription.PrescriptionExpressageLogService;
|
|
import com.yihu.wlyy.service.app.prescription.PrescriptionExpressageLogService;
|
|
import com.yihu.wlyy.service.app.prescription.PrescriptionLogService;
|
|
import com.yihu.wlyy.service.app.prescription.PrescriptionLogService;
|
|
|
|
import com.yihu.wlyy.util.DateUtil;
|
|
import com.yihu.wlyy.web.BaseController;
|
|
import com.yihu.wlyy.web.BaseController;
|
|
import io.swagger.annotations.Api;
|
|
import io.swagger.annotations.Api;
|
|
import io.swagger.annotations.ApiOperation;
|
|
import io.swagger.annotations.ApiOperation;
|
|
import io.swagger.annotations.ApiParam;
|
|
import io.swagger.annotations.ApiParam;
|
|
import org.json.JSONArray;
|
|
import org.json.JSONArray;
|
|
|
|
import org.json.JSONObject;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
import org.springframework.web.bind.annotation.RequestMethod;
|
|
import org.springframework.web.bind.annotation.RequestMethod;
|
|
@ -80,7 +82,15 @@ public class PatientPrescriptionLogController extends BaseController {
|
|
}
|
|
}
|
|
});
|
|
});
|
|
if (prescriptionLogs != null) {
|
|
if (prescriptionLogs != null) {
|
|
return write(200, "获取处方流程成功", "data", new JSONArray(prescriptionLogs));
|
|
|
|
|
|
JSONArray ja = new JSONArray();
|
|
|
|
|
|
|
|
prescriptionLogs.stream().forEach(one -> {
|
|
|
|
JSONObject jo = new JSONObject();
|
|
|
|
jo.put("createTime", DateUtil.dateToStrLong(one.getCreateTime()));
|
|
|
|
jo.put("statusName", one.getStatusName());
|
|
|
|
ja.put(jo);
|
|
|
|
});
|
|
|
|
return write(200, "获取处方流程成功", "data", ja);
|
|
} else {
|
|
} else {
|
|
return error(-1, "获取失败");
|
|
return error(-1, "获取失败");
|
|
}
|
|
}
|