ソースを参照

报价费用审核 需要增加费用描述筛选项,与费用规则筛选项一样的功能

lipf 1 ヶ月 前
親
コミット
91dbd122e5

+ 3 - 0
commons/src/main/java/com/jzg/commons/entity/dto/PtlAgreementCostParam.java

@@ -41,6 +41,9 @@ public class PtlAgreementCostParam extends PageRequest {
     @Schema(description = "费用规则")
     @Schema(description = "费用规则")
     private List<String> costRulesList;
     private List<String> costRulesList;
 
 
+    @Schema(description = "费用描述")
+    private String[] costDescribes;
+
     @Schema(description = "费用状态")
     @Schema(description = "费用状态")
     private String agreementStatus;
     private String agreementStatus;
 
 

+ 7 - 0
tenant/organization/src/main/resources/mapper/PtlAgreementCostMapper.xml

@@ -410,6 +410,13 @@
                     #{phone}
                     #{phone}
                 </foreach>
                 </foreach>
             </if>
             </if>
+            <if test="costParam.costDescribes != null and costParam.costDescribes.length >0 ">
+                and (
+                    <foreach  collection="costParam.costDescribes" close=")" open="(" separator="and " item="costDescribe">
+                        pc.cost_describe like concat('%', #{costDescribe} ,'%')
+                    </foreach>
+                )
+            </if>
             <if test="costParam.auditTimeBegin != null and costParam.auditTimeBegin != ''">
             <if test="costParam.auditTimeBegin != null and costParam.auditTimeBegin != ''">
                 and pc.audit_time &gt;= #{costParam.auditTimeBegin}
                 and pc.audit_time &gt;= #{costParam.auditTimeBegin}
             </if>
             </if>