소스 검색

出差校验重叠

wanghaiwu 1 주 전
부모
커밋
e2f2ed2dcc
1개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  1. 4 4
      code/jyyy/nckd-jimin-jyyy-fi/src/main/java/nckd/jimin/jyyy/fi/common/FinanceCommonUtils.java

+ 4 - 4
code/jyyy/nckd-jimin-jyyy-fi/src/main/java/nckd/jimin/jyyy/fi/common/FinanceCommonUtils.java

@@ -76,14 +76,14 @@ public class FinanceCommonUtils {
     public static QFilter buildSearchFilter(String entityName, Long billId, Long userId, Date startDate, Date endDate){
         String prefix = "";
 
+        QFilter qFilter = new QFilter("applier", QCP.equals, userId);
+        qFilter.and(new QFilter("id", QCP.not_equals, billId));
         if("er_tripreqbill".equals(entityName)){
+            qFilter.and(new QFilter("billstatus", QCP.not_equals2, "H"));
+
             prefix = "tripentry.";
         }
 
-        QFilter qFilter = new QFilter("billstatus", QCP.equals, "A");
-        qFilter.and(new QFilter("id", QCP.not_equals, billId));
-        qFilter.and(new QFilter("applier", QCP.equals, userId));
-
         QFilter startFilter = new QFilter(prefix + "startDate", QCP.less_equals, startDate);
         startFilter.and(new QFilter(prefix + "endDate", QCP.large_equals, startDate));