|
@ -138,6 +138,10 @@ public class PrescriptionInfoService extends BaseService {
|
|
|
String rp = jwPrescriptionService.getLastRecipe(p.getSsc(), null, startDate, endDate);
|
|
|
com.alibaba.fastjson.JSONArray pres = presModeAdapter.modeToPrescription(rp);
|
|
|
|
|
|
if(pres==null||pres.size()==0){
|
|
|
return pres;
|
|
|
}
|
|
|
|
|
|
for (int i = 0; i < pres.size(); i++) {
|
|
|
com.alibaba.fastjson.JSONObject r = (com.alibaba.fastjson.JSONObject) pres.get(i);
|
|
|
String rState = presCheckStateObj(r.getString("code"));
|
|
@ -213,7 +217,7 @@ public class PrescriptionInfoService extends BaseService {
|
|
|
return pres;
|
|
|
} else {
|
|
|
Patient p = patientDao.findByCode(patient);
|
|
|
StringBuffer sqlBuffer = new StringBuffer("SELECT p.code,p.create_time AS createTime,p.status,p.hospital_name As hospitalName FROM wlyy_prescription p " +
|
|
|
StringBuffer sqlBuffer = new StringBuffer("SELECT p.code,LEFT(pr.create_time,19) AS createTime,p.status,p.hospital_name As hospitalName FROM wlyy_prescription p " +
|
|
|
"WHERE p.patient=?");
|
|
|
List<Object> params = new ArrayList<>();
|
|
|
params.add(patient);
|