|
@ -51,7 +51,8 @@ public class RegisterService {
|
|
* @return
|
|
* @return
|
|
* @throws Exception
|
|
* @throws Exception
|
|
*/
|
|
*/
|
|
public JSONArray BS10045(String dept,String doctor_code,String special_code,String startDate,String endDate, boolean demoFlag) throws Exception {
|
|
|
|
|
|
public JSONArray BS10045(String dept,String doctor_code,String doctor_name,String special_code,String charge_type,String startDate,String endDate, boolean demoFlag) throws Exception {
|
|
|
|
logger.info("BS10045:");
|
|
String fid="BS10045";
|
|
String fid="BS10045";
|
|
String resp="";
|
|
String resp="";
|
|
if (demoFlag) {
|
|
if (demoFlag) {
|
|
@ -69,12 +70,19 @@ public class RegisterService {
|
|
if(StringUtils.isNotBlank(doctor_code)){
|
|
if(StringUtils.isNotBlank(doctor_code)){
|
|
sbs.append(" and doctor_code ='"+doctor_code+"'");
|
|
sbs.append(" and doctor_code ='"+doctor_code+"'");
|
|
}
|
|
}
|
|
|
|
if(StringUtils.isNotBlank(doctor_name)){
|
|
|
|
sbs.append(" and doctor_name like '%"+doctor_name+"%'");
|
|
|
|
}
|
|
|
|
if(StringUtils.isNotBlank(charge_type)){
|
|
|
|
sbs.append(" and charge_type ='"+charge_type+"'");
|
|
|
|
}
|
|
if(StringUtils.isNotBlank(special_code)){
|
|
if(StringUtils.isNotBlank(special_code)){
|
|
sbs.append(" and special_code ='"+special_code+"'");
|
|
sbs.append(" and special_code ='"+special_code+"'");
|
|
}
|
|
}
|
|
sbs.append(" order by request_day,ampm");
|
|
sbs.append(" order by request_day,ampm");
|
|
sbs.append(" </Msg>");
|
|
sbs.append(" </Msg>");
|
|
sbs.append("<startNum>1</startNum></MsgInfo></ESBEntry>");
|
|
sbs.append("<startNum>1</startNum></MsgInfo></ESBEntry>");
|
|
|
|
|
|
resp = MqSdkUtil.putReqAndGetRespByQueryStr(sbs.toString(), fid);
|
|
resp = MqSdkUtil.putReqAndGetRespByQueryStr(sbs.toString(), fid);
|
|
resp = MqSdkUtil.xml2jsonArrayRootRow(resp);
|
|
resp = MqSdkUtil.xml2jsonArrayRootRow(resp);
|
|
}
|
|
}
|
|
@ -90,7 +98,7 @@ public class RegisterService {
|
|
* @return
|
|
* @return
|
|
* @throws Exception
|
|
* @throws Exception
|
|
*/
|
|
*/
|
|
public JSONArray BS10046(String dept,String doctor_code,String date, boolean demoFlag) throws Exception {
|
|
|
|
|
|
public JSONArray BS10046(String dept,String doctor_code,String date,String ampm, boolean demoFlag) throws Exception {
|
|
String fid="BS10046";
|
|
String fid="BS10046";
|
|
String resp="";
|
|
String resp="";
|
|
if (demoFlag) {
|
|
if (demoFlag) {
|
|
@ -103,12 +111,12 @@ public class RegisterService {
|
|
sbs.append("<MessageHeader><Fid>" + fid + "</Fid><MsgDate>" + DateUtil.dateToStr(new Date(), DateUtil.YYYY_MM_DD_HH_MM_SS) + "</MsgDate><SourceSysCode>"+sourceSysCode+"</SourceSysCode><TargetSysCode>"+targetSysCode+"</TargetSysCode></MessageHeader>");
|
|
sbs.append("<MessageHeader><Fid>" + fid + "</Fid><MsgDate>" + DateUtil.dateToStr(new Date(), DateUtil.YYYY_MM_DD_HH_MM_SS) + "</MsgDate><SourceSysCode>"+sourceSysCode+"</SourceSysCode><TargetSysCode>"+targetSysCode+"</TargetSysCode></MessageHeader>");
|
|
//查询信息拼接
|
|
//查询信息拼接
|
|
sbs.append("<MsgInfo><endNum>10</endNum>");
|
|
sbs.append("<MsgInfo><endNum>10</endNum>");
|
|
sbs.append(" </Msg>");
|
|
|
|
|
|
sbs.append(" <Msg/>");
|
|
|
|
sbs.append(" <query compy=\"=\" item=\"unit_code\" splice=\"and\" value=\"'"+dept+"'\"/>");
|
|
sbs.append(" <query compy=\"=\" item=\"doctor_code\" splice=\"and\" value=\"'"+doctor_code+"'\"/>");
|
|
sbs.append(" <query compy=\"=\" item=\"doctor_code\" splice=\"and\" value=\"'"+doctor_code+"'\"/>");
|
|
sbs.append(" <query compy=\"=\" item=\"CONVERT(varchar(100),yy_time,23)\" splice=\"and\" value=\"'"+date+"'\"/>");
|
|
sbs.append(" <query compy=\"=\" item=\"CONVERT(varchar(100),yy_time,23)\" splice=\"and\" value=\"'"+date+"'\"/>");
|
|
sbs.append(" <query compy=\"=\" item=\"yy_status\" splice=\"and\" value=\"'0'\"/>");
|
|
sbs.append(" <query compy=\"=\" item=\"yy_status\" splice=\"and\" value=\"'0'\"/>");
|
|
sbs.append(" <query compy=\"=\" item=\"ampm\" splice=\"and\" value=\"'p'\"/>");
|
|
|
|
sbs.append(" </Msg>");
|
|
|
|
|
|
sbs.append(" <query compy=\"=\" item=\"ampm\" splice=\"and\" value=\"'"+ampm+"'\"/>");
|
|
sbs.append("<startNum>1</startNum></MsgInfo></ESBEntry>");
|
|
sbs.append("<startNum>1</startNum></MsgInfo></ESBEntry>");
|
|
resp = MqSdkUtil.putReqAndGetRespByQueryStr(sbs.toString(), fid);
|
|
resp = MqSdkUtil.putReqAndGetRespByQueryStr(sbs.toString(), fid);
|
|
resp = MqSdkUtil.xml2jsonArrayRootRow(resp);
|
|
resp = MqSdkUtil.xml2jsonArrayRootRow(resp);
|
|
@ -116,14 +124,21 @@ public class RegisterService {
|
|
return ConvertUtil.convertListEnvelopInBodyRow(resp);
|
|
return ConvertUtil.convertListEnvelopInBodyRow(resp);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
* BS10047 病人预约结果表 2.00
|
|
* BS10047 病人预约结果表 2.00
|
|
* @param req_id
|
|
|
|
|
|
* @param req_id 病人ID
|
|
|
|
* @param doctor_code 医生ID
|
|
|
|
* @param doctor_name 医生名称支持模糊
|
|
|
|
* @param op_id 预约医生
|
|
|
|
* @param startDate 开始时间
|
|
|
|
* @param endDate 结束时间
|
|
|
|
* @param reg_type 号别
|
|
* @param demoFlag
|
|
* @param demoFlag
|
|
* @return
|
|
* @return
|
|
* @throws Exception
|
|
* @throws Exception
|
|
*/
|
|
*/
|
|
public JSONArray BS10047(String req_id, boolean demoFlag) throws Exception {
|
|
|
|
|
|
public JSONArray BS10047(String req_id,String doctor_code,String doctor_name,String op_id,String startDate,String endDate,String reg_type,boolean demoFlag) throws Exception {
|
|
String fid="BS10047";
|
|
String fid="BS10047";
|
|
String resp="";
|
|
String resp="";
|
|
if (demoFlag) {
|
|
if (demoFlag) {
|
|
@ -136,7 +151,29 @@ public class RegisterService {
|
|
sbs.append("<MessageHeader><Fid>" + fid + "</Fid><MsgDate>" + DateUtil.dateToStr(new Date(), DateUtil.YYYY_MM_DD_HH_MM_SS) + "</MsgDate><SourceSysCode>"+sourceSysCode+"</SourceSysCode><TargetSysCode>"+targetSysCode+"</TargetSysCode></MessageHeader>");
|
|
sbs.append("<MessageHeader><Fid>" + fid + "</Fid><MsgDate>" + DateUtil.dateToStr(new Date(), DateUtil.YYYY_MM_DD_HH_MM_SS) + "</MsgDate><SourceSysCode>"+sourceSysCode+"</SourceSysCode><TargetSysCode>"+targetSysCode+"</TargetSysCode></MessageHeader>");
|
|
//查询信息拼接
|
|
//查询信息拼接
|
|
sbs.append("<MsgInfo><endNum>10</endNum>");
|
|
sbs.append("<MsgInfo><endNum>10</endNum>");
|
|
sbs.append("<Msg>and req_id = '"+req_id+"'</Msg>");
|
|
|
|
|
|
sbs.append("<Msg");
|
|
|
|
if(StringUtils.isNotBlank(req_id)){
|
|
|
|
sbs.append(" and req_id = '"+req_id+"' ");
|
|
|
|
}
|
|
|
|
if(StringUtils.isNotBlank(doctor_code)){
|
|
|
|
sbs.append(" and doctor_code = '"+doctor_code+"' ");
|
|
|
|
}
|
|
|
|
if(StringUtils.isNotBlank(doctor_name)){
|
|
|
|
sbs.append(" and doctor_name like '%"+doctor_name+"%' ");
|
|
|
|
}
|
|
|
|
if(StringUtils.isNotBlank(op_id)){
|
|
|
|
sbs.append(" and op_id = '"+op_id+"' ");
|
|
|
|
}
|
|
|
|
if(StringUtils.isNotBlank(startDate)){
|
|
|
|
sbs.append(" and request_day >= '"+startDate+"' ");
|
|
|
|
}
|
|
|
|
if(StringUtils.isNotBlank(endDate)){
|
|
|
|
sbs.append(" and request_day <= '"+endDate+"' ");
|
|
|
|
}
|
|
|
|
if(StringUtils.isNotBlank(reg_type)){
|
|
|
|
sbs.append(" and reg_type = '"+reg_type+"' ");
|
|
|
|
}
|
|
|
|
sbs.append("</Msg>");
|
|
sbs.append("<startNum>1</startNum></MsgInfo></ESBEntry>");
|
|
sbs.append("<startNum>1</startNum></MsgInfo></ESBEntry>");
|
|
resp = MqSdkUtil.putReqAndGetRespByQueryStr(sbs.toString(), fid);
|
|
resp = MqSdkUtil.putReqAndGetRespByQueryStr(sbs.toString(), fid);
|
|
resp = MqSdkUtil.xml2jsonArrayRootRow(resp);
|
|
resp = MqSdkUtil.xml2jsonArrayRootRow(resp);
|
|
@ -152,7 +189,7 @@ public class RegisterService {
|
|
* @return
|
|
* @return
|
|
* @throws Exception
|
|
* @throws Exception
|
|
*/
|
|
*/
|
|
public JSONArray BS10048(RegisterAmVO registerAmVO, boolean demoFlag) throws Exception {
|
|
|
|
|
|
public net.sf.json.JSONObject BS10048(RegisterAmVO registerAmVO, boolean demoFlag) throws Exception {
|
|
String fid="BS10048";
|
|
String fid="BS10048";
|
|
String resp="";
|
|
String resp="";
|
|
if (demoFlag) {
|
|
if (demoFlag) {
|
|
@ -179,7 +216,7 @@ public class RegisterService {
|
|
resp = MqSdkUtil.putReqAndGetRespByQueryStr(sbs.toString(), fid);
|
|
resp = MqSdkUtil.putReqAndGetRespByQueryStr(sbs.toString(), fid);
|
|
resp = MqSdkUtil.xml2jsonArrayRootRow(resp);
|
|
resp = MqSdkUtil.xml2jsonArrayRootRow(resp);
|
|
}
|
|
}
|
|
return ConvertUtil.convertListEnvelopInBodyRow(resp);
|
|
|
|
|
|
return ConvertUtil.convertListEnvelopInRequest(resp);
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
@ -189,7 +226,7 @@ public class RegisterService {
|
|
* @return
|
|
* @return
|
|
* @throws Exception
|
|
* @throws Exception
|
|
*/
|
|
*/
|
|
public JSONArray BS10049(RegisterAmVO registerAmVO, boolean demoFlag) throws Exception {
|
|
|
|
|
|
public net.sf.json.JSONObject BS10049(RegisterAmVO registerAmVO, boolean demoFlag) throws Exception {
|
|
String fid="BS10049";
|
|
String fid="BS10049";
|
|
String resp="";
|
|
String resp="";
|
|
if (demoFlag) {
|
|
if (demoFlag) {
|
|
@ -215,7 +252,7 @@ public class RegisterService {
|
|
resp = MqSdkUtil.putReqAndGetRespByQueryStr(sbs.toString(), fid);
|
|
resp = MqSdkUtil.putReqAndGetRespByQueryStr(sbs.toString(), fid);
|
|
resp = MqSdkUtil.xml2jsonArrayRootRow(resp);
|
|
resp = MqSdkUtil.xml2jsonArrayRootRow(resp);
|
|
}
|
|
}
|
|
return ConvertUtil.convertListEnvelopInBodyRow(resp);
|
|
|
|
|
|
return ConvertUtil.convertListEnvelopInRequest(resp);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|