Quellcode durchsuchen

图表数据增加部门查询

ZhangManMan vor 2 Jahren
Ursprung
Commit
b9204560c6
1 geänderte Dateien mit 1 neuen und 9 gelöschten Zeilen
  1. 1 9
      src/main/java/com/sky/ioc/mapper/FitnesMapper.java

+ 1 - 9
src/main/java/com/sky/ioc/mapper/FitnesMapper.java

@@ -11,9 +11,6 @@ public interface FitnesMapper {
 
     @Select("<script>" +
             "SELECT count(1) FROM fitnes where 1=1 " +
-            "<if test='iocParam!=null and iocParam.companyId != null '>" +
-            " and company_id=#{iocParam.companyId} " +
-            "</if>"+
             "<if test='warehouse!=null '>" +
             " and warehouse = #{warehouse} " +
             "</if>"+
@@ -25,9 +22,7 @@ public interface FitnesMapper {
 
     @Select("<script>" +
             "SELECT count(1) FROM fitnes where 1=1 " +
-            "<if test='iocParam!=null and iocParam.companyId != null '>" +
-            " and company_id=#{iocParam.companyId} " +
-            "</if>"+
+
             "<if test='fitnesType!=null '>" +
             " and fitnes_type = #{fitnesType} " +
             "</if>"+
@@ -38,9 +33,6 @@ public interface FitnesMapper {
     Integer getTotalPersonByCompanyIdAndDeptIdAndFitnesType(@Param("iocParam") IocParam iocParam,@Param("fitnesType") Integer fitnesType);
     @Select("<script>" +
             "SELECT count(1) FROM fitnes where 1=1 " +
-            "<if test='iocParam!=null and iocParam.companyId != null '>" +
-            " and company_id=#{iocParam.companyId} " +
-            "</if>"+
             "<if test='warehouse!=null '>" +
             " and warehouse = #{warehouse} " +
             "</if>"+