| | |
| | | <if test="year != null"> |
| | | cayTb.`year` = #{year,jdbcType=INTEGER} |
| | | </if> |
| | | <!-- 2025-07-14 的selectClientIds4YearStatisticssselectClientIds4YearStatistics查询中已经用了name条件 |
| | | <if test="name != null and name != ''"> |
| | | and ctb.name like concat('%', #{clientName}, '%') |
| | | </if> |
| | | --> |
| | | </trim> |
| | | order by ctb.id DESC |
| | | <trim prefix="limit " > |
| | |
| | | <if test="year != null"> |
| | | (cayTb.`year` = #{year,jdbcType=INTEGER} or cayTb.`year` is null) |
| | | </if> |
| | | <!-- 2025-07-14 的selectClientIds4YearStatisticssselectClientIds4YearStatistics查询中已经用了name条件 |
| | | <if test="name != null and name != ''"> |
| | | and ctb.name like concat('%', #{clientName}, '%') |
| | | </if> |
| | | --> |
| | | </trim> |
| | | order by ctb.id DESC |
| | | <!-- 2025-07-14 因为有clientIdsJson限制的数量,所以不再用limit了 |