Commit 82979dcb by 张富康

fix(orm): 修复绩效评估查询的区域经理手机号过滤条件

- 在查询中添加判断regionManagerMobilePhone非空的条件
- 只有在regionManagerMobilePhone存在时才添加过滤条件
- 确保过滤时同时满足evaluation_month条件
- 避免空值导致的SQL语法错误风险
1 parent 20558cb9
......@@ -425,7 +425,9 @@
#{mobilePhone}
</foreach>
</if>
<if test="regionManagerMobilePhone != null and regionManagerMobilePhone != '' ">
and superior_leader_mobile_phone = #{regionManagerMobilePhone}
</if>
and evaluation_month = #{queryMonth}
</select>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!