|
@ -128,6 +128,18 @@ public class PrescriptionInfoService extends BaseService {
|
|
|
String rp= jwPrescriptionService.getLastRecipe(p.getSsc(),null,null,null);
|
|
|
com.alibaba.fastjson.JSONArray pres =presModeAdapter.modeToPrescription(rp);
|
|
|
|
|
|
Iterator iterator = pres.iterator();
|
|
|
while(iterator.hasNext()){
|
|
|
com.alibaba.fastjson.JSONObject r = (com.alibaba.fastjson.JSONObject)iterator.next();
|
|
|
StringBuffer sql = new StringBuffer(" SELECT pr.code FORM wlyy_prescription pr JOIN wlyy_prescription_reviewed r ON pr.code = r.prescription_code WHERE pr.parent_code = ? AND r.status = 0");
|
|
|
List<Map<String,Object>> mp = jdbcTemplate.queryForList(sql.toString(),new Object[]{r.getString("code")});
|
|
|
if(mp!=null&&mp.size()>0){
|
|
|
r.put("reviewedState",'0');
|
|
|
}else{
|
|
|
r.put("reviewedState",'1');
|
|
|
}
|
|
|
}
|
|
|
|
|
|
return pres;
|
|
|
// //基卫接口
|
|
|
// List<Map<String,Object>> prescriptions = new ArrayList<>();
|