lighter пре 1 недеља
родитељ
комит
c0a459f257

+ 1 - 1
src/main/java/thyyxxk/simzfeeoprnsystm/dao/MobilePayDao.java

@@ -41,7 +41,7 @@ public interface MobilePayDao extends BaseMapper<MobilePay> {
             "(select max(national_code) from yp_zd_dict where code=his_item_code) end, " +
             "his_item_code as medinsListCodg,charge_fee as detItemFeeSumamt, " +
             "quantity as cnt, price as pric, " +
-            "hospApprFlag=isnull(a.hosp_appr_flag, 0), " +
+            "hospApprFlag=case when isnull(a.hosp_appr_flag, 0)=0 then 1 else a.hosp_appr_flag end, " +
             "bilgDrCodg=(select rtrim(yb_code) from a_employee_mi where code=input_staff), " +
             "input_man as bilgDrName,medListName=a.his_item_name, " +
             "bilgDeptCodg=(select d.si_caty from zd_unit_code d where d.code=b.visit_dept_code), " +

+ 3 - 1
src/main/java/thyyxxk/simzfeeoprnsystm/service/SiMzFeeService.java

@@ -343,7 +343,9 @@ public class SiMzFeeService {
             item.setRxCircFlag(YesOrNo.NO.getCodeStr());
             item.setBilgDeptCodg(mzVisit.getVisitDeptCode());
             item.setBilgDeptName(mzVisit.getVisitDeptName());
-
+            if (Objects.equals(item.getHospApprFlag(), "0")) {
+                item.setHospApprFlag("1");
+            }
             if (siPatInfo.getMedType().equals("51")) {
                 item.setMatnFeeFlag("1");
             }