пре 1 година
родитељ
комит
17579e9060

+ 1 - 1
platform-dao/src/main/java/com/platform/dao/vo/report/SbInfoTypeReportVO2.java

@@ -16,7 +16,7 @@ import java.util.List;
 @Accessors(chain = true)
 public class SbInfoTypeReportVO2 implements Serializable {
     private static final long serialVersionUID = 1L;
-//    private String id;
+    private String id;
     /**
      * 每月总数
      */

+ 1 - 1
platform-dao/src/main/resources/mapper/sb/SbInfoMapper.xml

@@ -905,7 +905,7 @@ sb.scrap_user_name,sb.repair_dept_id,sb.sort_num
 
     <select id="getsbNumsByType" parameterType="com.platform.dao.dto.sb.SbInfoDTO"
             resultType="com.platform.dao.vo.report.SbInfoTypeReportVO2">
-        select count(1) as totalNum,type.name as typeName from t_sb_info info inner join t_sb_type type
+        select type.id as id count(1) as totalNum,type.name as typeName from t_sb_info info inner join t_sb_type type
         on info.type_id = type.id
         <where>
             <if test="useType!=null">

+ 1 - 1
platform-dao/src/main/resources/mapper/sb/SbTypeMapper.xml

@@ -101,7 +101,7 @@
 
     <select id="getSbNums" resultType="com.platform.dao.vo.report.SbInfoTypeReportVO2"
     parameterType="com.platform.dao.dto.sb.SbTypeDTO">
-    select count(1) as totalNum,type2.name as typeName
+    select count(1) as totalNum,type2.name as typeName,type.id as id
     from t_sb_type type inner join t_sb_info info on
     type.id = info.type_id left join t_sb_type type2 on type.parent_id = type2.id
     <where>