主业务添加代码
This commit is contained in:
parent
2b7a4e7480
commit
b5e282a3ac
@ -123,23 +123,72 @@ public class CommonUtil {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//=====项目字典查询=========
|
//=====项目字典查询=========
|
||||||
public List<XmInfo> getXmInfoList(String yq) {return xmInfoMapper.getXmInfoList(yq);}
|
public List<XmInfo> getXmInfoList(String yq) {
|
||||||
public XmInfo getXmInfo(String yq,String xmdh) {return xmInfoMapper.getXmInfo(yq,xmdh);}
|
return xmInfoMapper.getXmInfoList(yq);
|
||||||
public List<XmRef> getXmRefList(String yq) {return xmRefMapper.getXmRefList(yq);}
|
}
|
||||||
public XmRef getXmRef(String yq,String xmdh) {return xmRefMapper.getXmRef(yq,xmdh);}
|
|
||||||
public XmRef getXmRefValue(Map<String,Object> map) {return xmRefMapper.getXmRefValue(map);}
|
public XmInfo getXmInfo(String yq, String xmdh) {
|
||||||
public String getXmRefJgbz(String yq,String xmdh,String csjg,String csjg1,String csjg2) {return xmValMapper.getXmValJgbz(yq,xmdh,csjg,csjg1,csjg2);}
|
return xmInfoMapper.getXmInfo(yq, xmdh);
|
||||||
public List<XmAlarmdetail> getXmAlarmdetail(String yq,String xmdh){return xmAlarmdetailMapper.getXmAlarmdetail(yq,xmdh);};
|
}
|
||||||
public String getYqmc(String yq){return labInstrMapper.getYqmc(yq);}
|
|
||||||
public String getYqdl(String yq){return labInstrMapper.getYqdl(yq);}
|
public List<XmRef> getXmRefList(String yq) {
|
||||||
public LabInstr getLabInstr(String yq){return labInstrMapper.getLabInstr(yq);}
|
return xmRefMapper.getXmRefList(yq);
|
||||||
public List<LabInstr> getLabInstrList(LabInstr labInstr){return labInstrMapper.getLabInstrList(labInstr);}
|
}
|
||||||
|
|
||||||
|
public XmRef getXmRef(String yq, String xmdh) {
|
||||||
|
return xmRefMapper.getXmRef(yq, xmdh);
|
||||||
|
}
|
||||||
|
|
||||||
|
public XmRef getXmRefValue(Map<String, Object> map) {
|
||||||
|
return xmRefMapper.getXmRefValue(map);
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getXmRefJgbz(String yq, String xmdh, String csjg, String csjg1, String csjg2) {
|
||||||
|
return xmValMapper.getXmValJgbz(yq, xmdh, csjg, csjg1, csjg2);
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<XmAlarmdetail> getXmAlarmdetail(String yq, String xmdh) {
|
||||||
|
return xmAlarmdetailMapper.getXmAlarmdetail(yq, xmdh);
|
||||||
|
}
|
||||||
|
|
||||||
|
;
|
||||||
|
|
||||||
|
public String getYqmc(String yq) {
|
||||||
|
return labInstrMapper.getYqmc(yq);
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getYqdl(String yq) {
|
||||||
|
return labInstrMapper.getYqdl(yq);
|
||||||
|
}
|
||||||
|
|
||||||
|
public LabInstr getLabInstr(String yq) {
|
||||||
|
return labInstrMapper.getLabInstr(yq);
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<LabInstr> getLabInstrList(LabInstr labInstr) {
|
||||||
|
return labInstrMapper.getLabInstrList(labInstr);
|
||||||
|
}
|
||||||
|
|
||||||
//服务器时间方法
|
//服务器时间方法
|
||||||
public Date getCurrentTime(){return commonMapper.getCurrentTime();}
|
public Date getCurrentTime() {
|
||||||
public String getCurrentDate(){return getDateString(getCurrentTime());}
|
return commonMapper.getCurrentTime();
|
||||||
public String getCurrentDateTime(){return getDateTimeString(getCurrentTime());}
|
}
|
||||||
public String getDateString(Date rq){return DateFormatUtils.format(rq, "yyyy-MM-dd");}
|
|
||||||
public String getDateTimeString(Date rq){return DateFormatUtils.format(rq, "yyyy-MM-dd HH:mm:ss");}
|
public String getCurrentDate() {
|
||||||
|
return getDateString(getCurrentTime());
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCurrentDateTime() {
|
||||||
|
return getDateTimeString(getCurrentTime());
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDateString(Date rq) {
|
||||||
|
return DateFormatUtils.format(rq, "yyyy-MM-dd");
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDateTimeString(Date rq) {
|
||||||
|
return DateFormatUtils.format(rq, "yyyy-MM-dd HH:mm:ss");
|
||||||
|
}
|
||||||
|
|
||||||
//字典查询单位名称
|
//字典查询单位名称
|
||||||
public String getCompany(String yljg) {
|
public String getCompany(String yljg) {
|
||||||
@ -196,12 +245,16 @@ public class CommonUtil {
|
|||||||
return comDictMapper.getComDictListByZdlb(zdlb);
|
return comDictMapper.getComDictListByZdlb(zdlb);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 获取本院设置全局参数yq=HISOPT
|
* 获取本院设置全局参数yq=HISOPT
|
||||||
|
*
|
||||||
* @param xxdh
|
* @param xxdh
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
public String getHISOPT(String xxdh){return getComOptValue("HISOPT",xxdh);}
|
public String getHISOPT(String xxdh) {
|
||||||
|
return getComOptValue("HISOPT", xxdh);
|
||||||
|
}
|
||||||
|
|
||||||
public String getComOptValue(String yq, String xxdh) {
|
public String getComOptValue(String yq, String xxdh) {
|
||||||
ComOpt comOpt = getOptCache(yq, xxdh);
|
ComOpt comOpt = getOptCache(yq, xxdh);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user