傅行帆 5 年之前
父節點
當前提交
21088578a4
共有 1 個檔案被更改,包括 2 行新增2 行删除
  1. 2
    2
      src/main/resources/mapper/statistic/TsCustomerStatisticMonthlyMapper.xml

+ 2
- 2
src/main/resources/mapper/statistic/TsCustomerStatisticMonthlyMapper.xml 查看文件

@@ -57,8 +57,8 @@
57 57
           org_id = #{orgId}
58 58
         AND customer_type = #{customerType}
59 59
         AND (realty_consultant = #{personId} or realty_consultant = #{userId})
60
-        AND date_format( create_date, '%Y-%m-%d' ) >= date_format( #{beforeDate}, '%Y-%m-%d' )
61
-        AND date_format( create_date, '%Y-%m-%d' ) <= date_format( #{nowDate}, '%Y-%m-%d' )
60
+        AND date_format( create_date, '%Y-%m' ) >= date_format( #{beforeDate}, '%Y-%m' )
61
+        AND date_format( create_date, '%Y-%m' ) <= date_format( #{nowDate}, '%Y-%m' )
62 62
          order by `month`
63 63
     </select>
64 64
 </mapper>