Przeglądaj źródła

优化下 报表查询 数量

Your Name 2 lat temu
rodzic
commit
e94a89854b

+ 10 - 0
java110-bean/src/main/java/com/java110/dto/corder/CorderDto.java

@@ -34,6 +34,8 @@ public class CorderDto extends PageDto implements Serializable {
 
     private String actionObj;
 
+    private String businessTypeNameLike;
+
     public String getoId() {
         return oId;
     }
@@ -209,4 +211,12 @@ public class CorderDto extends PageDto implements Serializable {
     public void setActionObj(String actionObj) {
         this.actionObj = actionObj;
     }
+
+    public String getBusinessTypeNameLike() {
+        return businessTypeNameLike;
+    }
+
+    public void setBusinessTypeNameLike(String businessTypeNameLike) {
+        this.businessTypeNameLike = businessTypeNameLike;
+    }
 }

+ 7 - 0
java110-db/src/main/resources/mapper/order/CorderServiceDaoImplMapper.xml

@@ -71,6 +71,10 @@
         <if test="staffNameLike !=null and staffNameLike != ''">
             and u.name like concat('%',#{staffNameLike},'%')
         </if>
+        <if test="businessTypeNameLike !=null and businessTypeNameLike != ''">
+            and cbt.name like concat('%',#{businessTypeNameLike},'%')
+        </if>
+
         and u.name != 'dev'
         order by t.create_time desc
         <if test="page != -1 and page != null ">
@@ -111,6 +115,9 @@
         <if test="staffNameLike !=null and staffNameLike != ''">
             and u.name like concat('%',#{staffNameLike},'%')
         </if>
+        <if test="businessTypeNameLike !=null and businessTypeNameLike != ''">
+            and cbt.name like concat('%',#{businessTypeNameLike},'%')
+        </if>
         and u.name != 'dev'
 
     </select>