Commit 26048699 by 张富康

feat(perfSalary): 实现绩效考核列表查询功能

- 优化PerformanceEvaluationMapper.xml中perfAppraisalList查询语句,增加条件筛选和排序
- 修正PerformanceEvaluationService中perfAppraisalList方法,返回正确查询结果
- 删除PerfRuleReqDTO中未使用的merchantId字段
- 新增PerfRuleReqDTO中merchantAndStaffSearch和name字段支持模糊搜索功能
1 parent 380f8929
......@@ -34,12 +34,6 @@ public class PerfRuleReqDTO implements Serializable {
private String regionManagerId;
/**
* 门店id
*/
@ApiModelProperty(notes = "门店id")
private Integer merchantId;
/**
* 绩效等级
*/
@ApiModelProperty(notes = "绩效等级")
......@@ -57,4 +51,16 @@ public class PerfRuleReqDTO implements Serializable {
@ApiModelProperty(notes = "处理状态")
private Integer handleStatus;
/**
* 门店名称&员工名称聚合搜索
*/
@ApiModelProperty(notes = "门店名称&员工名称聚合搜索")
private String merchantAndStaffSearch;
/**
* 员工名称搜索
*/
@ApiModelProperty(notes = "员工名称搜索")
private String name;
}
......@@ -38,7 +38,6 @@ public class PerformanceEvaluationService {
* 绩效考核列表
*/
public List<AppraisalInfoDTO> perfAppraisalList(PerfRuleReqDTO perfRuleReqDTO) {
List<AppraisalInfoDTO> result = performanceEvaluationMapper.perfAppraisalList(perfRuleReqDTO);
return null;
return performanceEvaluationMapper.perfAppraisalList(perfRuleReqDTO);
}
}
\ No newline at end of file
......@@ -293,8 +293,41 @@
<select id="perfAppraisalList" resultType="cn.com.glsx.dj.staff.dto.perfSalary.AppraisalInfoDTO">
select
id as id,
mobile_phone as mobilePhone,
name as name,
merchant_name as merchantName,
evaluation_month as evaluationMonth,
auto_grade_code as autoGradeCode,
auto_reward_coefficient as autoRewardCoefficient,
auto_score_symbol_value as autoScoreSymbolValue,
manual_grade_code as manualGradeCode,
manual_reward_coefficient as manualRewardCoefficient,
manual_score_symbol_value as manualScoreSymbolValue,
entry_date as entryDate,
auto_performance_config_id as autoPerformanceConfigId,
performance_grade_uuid as performanceGradeUuid,
auto_grade_type as autoGradeType,
submit_count as submitCount,
handle_status as handleStatus,
adopt_type as adoptType,
superior_leader_mobile_phone as superiorLeaderMobilePhone
from
sal_performance_evaluation
where deleted_flag = 'N'
and superior_leader_mobile_phone = #{regionManagerMobilePhone}
and evaluation_month = #{queryMonth}
<if test="handleStatus != null and handleStatus != ''">
and handle_status = #{handleStatus}
</if>
<if test="performanceLevel != null and performanceLevel != ''">
and (adopt_type = 1 and auto_grade_code = #{performanceLevel} or adopt_type = 2 and manual_grade_code = #{performanceLevel})
</if>
<if test="merchantAndStaffSearch != null and merchantAndStaffSearch != ''">
and (name like concat('%',#{merchantAndStaffSearch},'%') or merchant_name like concat('%',#{merchantAndStaffSearch},'%'))
</if>
order by entry_date desc, id desc
</select>
</mapper>
\ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!