|
@@ -69,11 +69,6 @@ public interface SiMzDao {
|
|
|
"his_item_code as medinsListCodg, " +
|
|
|
"charge_fee as detItemFeeSumamt, " +
|
|
|
"quantity as cnt, price as pric, " +
|
|
|
- "bilgDeptCodg=(select t.si_caty from zd_unit_code t where t.code=" +
|
|
|
- "(select rtrim(m.dept_code) from a_employee_mi m where m.code=input_staff)), " +
|
|
|
- "bilgDeptName=(select z.name from t_yb_dept z where z.code=" +
|
|
|
- "(select t.si_caty from zd_unit_code t where t.code=" +
|
|
|
- "(select rtrim(m.dept_code) from a_employee_mi m where m.code=input_staff))), " +
|
|
|
"bilgDrCodg=(select rtrim(yb_code) from a_employee_mi where code=input_staff), " +
|
|
|
"ordersDrCode=(select rtrim(yb_code) from a_employee_mi where code=input_staff), " +
|
|
|
"input_man as bilgDrName,input_man as ordersDrName " +
|
|
@@ -158,6 +153,13 @@ public interface SiMzDao {
|
|
|
void deleteAllReceipts(@Param("patNo") String patNo,
|
|
|
@Param("times") Integer times);
|
|
|
|
|
|
+ @Select("select b.si_caty as visitDeptCode,rtrim(c.name) as visitDeptName " +
|
|
|
+ "from mz_visit_table a, zd_unit_code b, t_yb_dept c where " +
|
|
|
+ "a.patient_id=#{patNo} and a.times=#{times} and a.visit_dept_code=b.code " +
|
|
|
+ "and b.si_caty=c.code")
|
|
|
+ MzVisit selectMzVisitInfo(@Param("patNo") String patNo,
|
|
|
+ @Param("times") Integer times);
|
|
|
+
|
|
|
@Select("select a.psn_no,a.insutype,chrgBchno=a.pat_no+'_'+cast(a.times as varchar)+'_1', " +
|
|
|
"medOrgOrd=a.pat_no+'_'+cast(a.times as varchar)+'_'+a.mdtrt_id, " +
|
|
|
"b.visit_date as begntime,a.mdtrt_id,a.med_type,acctUsedFlag='0', " +
|