|
@ -91,7 +91,7 @@ public class ServerPackageService {
|
|
|
//上门护理
|
|
|
sql = "SELECT code,value title,'' unit,0 expense from base_system_dict_entry WHERE dict_code = 'door_service_door_dict' ORDER BY sort";
|
|
|
}else{
|
|
|
sql = "SELECT a.FYXH code,a.FYMC title,a.FYDW unit,a.FYDJ expense from gy_ylsf a ";
|
|
|
sql = "SELECT DISTINCT a.FYXH code,a.FYMC title,a.FYDW unit,a.FYDJ expense from gy_ylsf a ";
|
|
|
if("used".equals(type)){
|
|
|
sql += " JOIN wlyy_door_order_item i on i.code = a.FYXH and (i.patient = '"+patient+"' or i.doctor='"+doctor+"') ";
|
|
|
}else if("other".equals(type)){
|