Просмотр исходного кода

报价费用审核 费用规则筛选项可以进行多个关键字的筛选吗

lipf 1 месяц назад
Родитель
Сommit
1beb18ea40

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

@@ -28,7 +28,7 @@ public class PtlAgreementCostParam extends PageRequest {
     private String rulesName;
 
     @Schema(description = "费用规则")
-    private String costRules;
+    private String[] costRules;
 
     @Schema(description = "费用规则")
     private List<String> costRulesList;

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

@@ -452,6 +452,12 @@
                     pc.cost_describe LIKE CONCAT('%', #{keyword}, '%')
                 </foreach>
             </if>
+            <if test="costParam.costRules != null and costParam.costRules.length > 0">
+                AND
+                <foreach collection="costParam.costRules" item="keyword" separator="AND">
+                    pc.cost_rules LIKE CONCAT('%', #{keyword}, '%')
+                </foreach>
+            </if>
             <if test="costParam.agreementStatus != null and costParam.agreementStatus != ''">
                 AND pc.is_enabled = #{costParam.agreementStatus}
             </if>