hyy 1 ماه پیش
والد
کامیت
ce88a34272

+ 1 - 17
yudao-module-museums/yudao-module-museums-biz/src/main/resources/mapper/specimeninfo/SpecimenInfoMapper.xml

@@ -2,20 +2,6 @@
 <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
 <mapper namespace="cn.iocoder.yudao.module.museums.dal.mysql.specimeninfo.SpecimenInfoMapper">
 
-<!--    <select id="selectMonthlyEntryStatisticsByYear" parameterType="int" resultType="map">-->
-<!--        SELECT-->
-<!--            MONTH(acquisition_time) AS month,-->
-<!--            COUNT(*) AS entryCount-->
-<!--        FROM-->
-<!--            museums_specimen_info-->
-<!--        WHERE-->
-<!--            YEAR(acquisition_time) = #{year} AND deleted = 0-->
-<!--        GROUP BY-->
-<!--            MONTH(acquisition_time)-->
-<!--        ORDER BY-->
-<!--            month-->
-<!--    </select>-->
-
     <select id="selectMonthlyEntryStatisticsByYear" parameterType="int" resultType="map">
         SELECT months.month, COALESCE(statistics.entryCount, 0) AS entryCount
         FROM (
@@ -36,15 +22,13 @@
                  LEFT JOIN (
             SELECT MONTH(acquisition_time) AS month, COUNT(*) AS entryCount
             FROM museums_specimen_info
-            WHERE YEAR(acquisition_time) = #{year} AND deleted = 0 AND acquisition_time IS NOT NULL AND tenant_id = 1
+            WHERE YEAR(acquisition_time) = #{year} AND deleted = 0 AND acquisition_time IS NOT NULL
             GROUP BY MONTH(acquisition_time)
         ) AS statistics
                            ON months.month = statistics.month
         ORDER BY months.month;
     </select>
 
-
-
     <select id="selectAllSpecimenTypeStatistics" resultType="map">
         SELECT specimen_type, COUNT(*) as count
         FROM museums_specimen_info

+ 0 - 1
yudao-module-museums/yudao-module-museums-biz/src/main/resources/mapper/specimenoutbound/SpecimenOutboundMapper.xml

@@ -50,5 +50,4 @@
             months.month
     </select>
 
-
 </mapper>