Commit 39f37963 by 张富康

fix(database): 优化姓名排序以支持中文字符排序

- 将AttendanceSummaryMapper中的姓名排序改为使用gbk编码和gbk_chinese_ci校对规则
- 修改PerformanceEvaluationMapper中绩效评估查询的姓名排序,确保中文排序正确
- 替换原有的按姓名降序排序方式,提升中文排序效果
1 parent 47203170
...@@ -205,7 +205,7 @@ ...@@ -205,7 +205,7 @@
<if test="name != null and name != ''"> <if test="name != null and name != ''">
AND name LIKE CONCAT('%', #{name}, '%') AND name LIKE CONCAT('%', #{name}, '%')
</if> </if>
ORDER BY name desc ORDER BY CONVERT(name USING gbk) COLLATE gbk_chinese_ci
</select> </select>
<select id="attendanceSummary" resultType="cn.com.glsx.dj.staff.dto.perfSalary.AttendanceStaffSummaryDTO"> <select id="attendanceSummary" resultType="cn.com.glsx.dj.staff.dto.perfSalary.AttendanceStaffSummaryDTO">
......
...@@ -551,7 +551,7 @@ ...@@ -551,7 +551,7 @@
AND sas.deleted_flag = 'N' AND sas.deleted_flag = 'N'
WHERE spe.deleted_flag = 'N' WHERE spe.deleted_flag = 'N'
AND spe.evaluation_month = #{evaluationMonth} AND spe.evaluation_month = #{evaluationMonth}
ORDER BY spe.name desc; ORDER BY CONVERT(spe.name USING gbk) COLLATE gbk_chinese_ci
</select> </select>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!