fix (farm): 微服务API,微信端接口

- 微信端,获取多个服务token,用于切换服务
This commit is contained in:
达富斌
2025-09-16 19:02:51 +08:00
parent c1c6f8c897
commit 7d536ff8a9
12 changed files with 257 additions and 9 deletions

View File

@@ -56,10 +56,15 @@
AND production_start_date IS NOT NULL
<if test="tenantId != null and tenantId != ''">AND tenant_id = #{tenantId}</if>
<if test="baseId != null and baseId != ''">AND base_id = #{baseId}</if>
<!-- 添加年份范围筛选 -->
<if test="yieldDate != null and yieldDate.size() == 2">
AND YEAR(production_start_date) BETWEEN #{yieldDate[0]} AND #{yieldDate[1]}
</if>
<!-- 年份范围筛选 -->
<choose>
<when test="yieldDate != null and yieldDate.size() == 2">
AND YEAR(production_start_date) BETWEEN #{yieldDate[0]} AND #{yieldDate[1]}
</when>
<otherwise>
AND YEAR(production_start_date) BETWEEN YEAR(DATE_SUB(CURDATE(), INTERVAL 4 YEAR)) AND YEAR(CURDATE())
</otherwise>
</choose>
</where>
GROUP BY YEAR(production_start_date)
ORDER BY date