Quellcode durchsuchen

协议查询添加查询归属机构条件

Qchen vor 2 Wochen
Ursprung
Commit
aafc45bf24

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

@@ -38,6 +38,9 @@ public class AgreementParam extends PageRequest {
     @Schema(description = "对接人(手机号,名字查询)")
     private String dockingPerson;
 
+    @Schema(description = "归属机构id")
+    private String deptId;
+
     @Schema(description = "出单账号")
     private String attributionName;
 

+ 3 - 0
tenant/organization/src/main/resources/mapper/PtlAgreementMapper.xml

@@ -126,6 +126,9 @@
             <if test="param.dockingPerson != null and param.dockingPerson != ''">
                 and ( pa.docking_person = #{param.dockingPerson} or pa.docking_phone = #{param.dockingPerson} )
             </if>
+            <if test="param.deptId != null and param.deptId !=''">
+                and pa.dept_id = #{param.deptId}
+            </if>
             <if test="param.attributionName != null and param.attributionName != ''">
                 and ( paa.username = #{param.attributionName} or paa.user_abbr = #{param.attributionName} )
             </if>