Browse Source

修复窗口挂号不收钱

hurugang 5 năm trước cách đây
mục cha
commit
7adc785a23

+ 1 - 1
src/main/java/cn/hnthyy/thmz/service/impl/his/MzyReqrecServiceImpl.java

@@ -241,7 +241,7 @@ public class MzyReqrecServiceImpl implements MzyReqrecService {
         //周末挂号费为0,不收挂号费
         Calendar cal = Calendar.getInstance();
         cal.setTime(mzyReqrec.getRequestDay());
-        if ((cal.get(Calendar.DAY_OF_WEEK) == Calendar.SATURDAY && Constants.PM.equals(mzyRequest.getAmpm())) || cal.get(Calendar.DAY_OF_WEEK) == Calendar.SUNDAY) {
+        if (Constants.BRZZJF_CODE.equals(mzyReqrec.getOpId()) && ((cal.get(Calendar.DAY_OF_WEEK) == Calendar.SATURDAY && Constants.PM.equals(mzyRequest.getAmpm())) || cal.get(Calendar.DAY_OF_WEEK) == Calendar.SUNDAY )) {
             mzyReqrec.setOthFee(BigDecimal.ZERO);
             mzyReqrec.setClinicFee(BigDecimal.ZERO);
             mzyReqrec.setReqFee(BigDecimal.ZERO);