| 
															
																@ -3232,7 +3232,7 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres 
															 | 
														
													
												
													
														
															| 
															 | 
															
																     * @return 
															 | 
															
															 | 
															
																     * @return 
															 | 
														
													
												
													
														
															| 
															 | 
															
																     */ 
															 | 
															
															 | 
															
																     */ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																    public MixEnvelop  findExpressageList2(String status, String oneselfPickupFlg, String nameKey, String startTime, String endTime, Integer page, Integer size, String wxId,String patientName) { 
															 | 
															
															 | 
															
																    public MixEnvelop  findExpressageList2(String status, String oneselfPickupFlg, String nameKey, String startTime, String endTime, Integer page, Integer size, String wxId,String patientName) { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																        String totalSql = "SELECT " + 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																        /*String totalSql = "SELECT " + 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                " COUNT(1) AS \"total\" " + 
															 | 
															
															 | 
															
																                " COUNT(1) AS \"total\" " + 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                " FROM " + 
															 | 
															
															 | 
															
																                " FROM " + 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                " wlyy_outpatient o " + 
															 | 
															
															 | 
															
																                " wlyy_outpatient o " + 
															 | 
														
													
												
											
												
													
														
															 | 
															
																@ -3281,7 +3281,7 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres 
															 | 
														
													
												
													
														
															| 
															 | 
															
																        Long count = 0L; 
															 | 
															
															 | 
															
																        Long count = 0L; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																        if (rstotal != null && rstotal.size() > 0) { 
															 | 
															
															 | 
															
																        if (rstotal != null && rstotal.size() > 0) { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																            count = Long.parseLong(rstotal.get(0).get("total").toString()); 
															 | 
															
															 | 
															
																            count = Long.parseLong(rstotal.get(0).get("total").toString()); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																        } 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																        }*/ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																        String sql = "SELECT  "; 
															 | 
															
															 | 
															
																        String sql = "SELECT  "; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																        if ("xm_ykyy_wx".equals(wxId)) { 
															 | 
															
															 | 
															
																        if ("xm_ykyy_wx".equals(wxId)) { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																            if (flag) { 
															 | 
															
															 | 
															
																            if (flag) { 
															 | 
														
													
												
											
												
													
														
															 | 
															
																@ -3341,7 +3341,6 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																        if (StringUtils.isNotBlank(patientName)) { 
															 | 
															
															 | 
															
																        if (StringUtils.isNotBlank(patientName)) { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																            sql += " AND o.patient_name like '%" + patientName + "%' "; 
															 | 
															
															 | 
															
																            sql += " AND o.patient_name like '%" + patientName + "%' "; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																            /*sql += " and (a.patient_name like '" + title + "' OR a.doctor_name like '" + title + "' OR a.dept_name like '" + title + "' )"*/ 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																        } 
															 | 
															
															 | 
															
																        } 
															 | 
														
													
												
													
														
															| 
															 | 
															
																        if (StringUtils.isNotBlank(startTime)) { 
															 | 
															
															 | 
															
																        if (StringUtils.isNotBlank(startTime)) { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																            if ("xm_ykyy_wx".equals(wxId)) { 
															 | 
															
															 | 
															
																            if ("xm_ykyy_wx".equals(wxId)) { 
															 | 
														
													
												
											
												
													
														
															 | 
															
																@ -3366,7 +3365,6 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres 
															 | 
														
													
												
													
														
															| 
															 | 
															
																            } else { 
															 | 
															
															 | 
															
																            } else { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                sql += " AND p.create_time <='" + endTime + " 23:59:59'"; 
															 | 
															
															 | 
															
																                sql += " AND p.create_time <='" + endTime + " 23:59:59'"; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																            } 
															 | 
															
															 | 
															
																            } 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																        } 
															 | 
															
															 | 
															
																        } 
															 | 
														
													
												
													
														
															| 
															 | 
															
																        sql += " order by p.create_time desc "; 
															 | 
															
															 | 
															
																        sql += " order by p.create_time desc "; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																        /*       sql += " LIMIT " + (page - 1) * size + "," + size + "";*/ 
															 | 
															
															 | 
															
																        /*       sql += " LIMIT " + (page - 1) * size + "," + size + "";*/ 
															 | 
														
													
												
											
												
													
														
															 | 
															
																@ -3581,10 +3579,10 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                } 
															 | 
															
															 | 
															
																                } 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                String opf = ""; 
															 | 
															
															 | 
															
																                String opf = ""; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                if (m.get("oneself_pickup_flg") == null) { 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                if (m.get("oneselfPickupFlg") == null) { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                    opf = null; 
															 | 
															
															 | 
															
																                    opf = null; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                }else { 
															 | 
															
															 | 
															
																                }else { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                    String opff = m.get("oneself_pickup_flg").toString(); 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                    String opff = m.get("oneselfPickupFlg").toString(); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                    if (opff.equals("1")){ 
															 | 
															
															 | 
															
																                    if (opff.equals("1")){ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                        opf = "自取"; 
															 | 
															
															 | 
															
																                        opf = "自取"; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                    }else if (opff.equals("0")){ 
															 | 
															
															 | 
															
																                    }else if (opff.equals("0")){ 
															 |