Commit 95c96363 by 张富康

feat(perfSalary): 新增并完善员工绩效相关字段及有效引荐复核通知

- AttendanceSummary和PerformanceEvaluation实体新增入职岗位、门店名称、上级领导名称字段
- AttendanceDataCleansingService和AutoPerfEvaluationService赋值新增字段
- 修正AttendanceSummaryMapper中attendanceMonth及oIdJobPost字段映射
- EffectiveReferralReviewMapper接口及XML新增带参数的查询方法queryOnlineNoHandlerQwSendMobilePhone
- EffectiveReferralReviewQwService通知逻辑调整,支持sceneType和changedMerchantId参数,优化消息标题与内容
- PerfQwNotificationService和相关配置新增url字段注释提示
- StaffQwClockCleanMapper中调整日期过滤条件为等值匹配
- 删除多余注释及调整日志提示内容以提升可读性与维护性
1 parent 0d77cdf2
...@@ -49,6 +49,20 @@ public class AttendanceSummary implements Serializable { ...@@ -49,6 +49,20 @@ public class AttendanceSummary implements Serializable {
private String merchantAttendanceListIds; private String merchantAttendanceListIds;
/** /**
* 入职岗位
*/
@ApiModelProperty(notes = "入职岗位")
@Column(name = "oId_job_post")
private String oIdJobPost;
/**
* 入职门店名称
*/
@ApiModelProperty(notes = "入职门店名称")
@Column(name = "merchant_name")
private String merchantName;
/**
* 考勤月份 * 考勤月份
*/ */
@ApiModelProperty(notes = "考勤月份 - yyyy-MM") @ApiModelProperty(notes = "考勤月份 - yyyy-MM")
...@@ -148,6 +162,13 @@ public class AttendanceSummary implements Serializable { ...@@ -148,6 +162,13 @@ public class AttendanceSummary implements Serializable {
private Integer missingPunchCount; private Integer missingPunchCount;
/** /**
* 上级领导名称-北森表
*/
@ApiModelProperty(notes = "上级领导名称-北森表")
@Column(name = "superior_leader_name")
private String superiorLeaderName;
/**
* 上级领导手机号-北森表 * 上级领导手机号-北森表
*/ */
@ApiModelProperty(notes = "上级领导手机号-北森表") @ApiModelProperty(notes = "上级领导手机号-北森表")
......
...@@ -222,11 +222,18 @@ public class PerformanceEvaluation implements Serializable { ...@@ -222,11 +222,18 @@ public class PerformanceEvaluation implements Serializable {
@Column(name = "is_correction") @Column(name = "is_correction")
private Integer isCorrection; private Integer isCorrection;
/**
* 入职岗位名称
*/
@ApiModelProperty(notes = "入职岗位")
@Column(name = "oId_job_post")
private String oIdJobPost;
/** /**
* 门店名称 * 入职门店名称
*/ */
@ApiModelProperty(notes = "门店名称") @ApiModelProperty(notes = "入职门店名称")
@Column(name = "merchant_name") @Column(name = "merchant_name")
private String merchantName; private String merchantName;
...@@ -281,6 +288,13 @@ public class PerformanceEvaluation implements Serializable { ...@@ -281,6 +288,13 @@ public class PerformanceEvaluation implements Serializable {
private Integer amountCalculationType; private Integer amountCalculationType;
/** /**
* 上级领导姓名-北森表
*/
@ApiModelProperty(notes = "上级领导姓名-北森表")
@Column(name = "superior_leader_name")
private String superiorLeaderName;
/**
* 上级领导手机号-北森表 * 上级领导手机号-北森表
*/ */
@ApiModelProperty(notes = "上级领导手机号-北森表") @ApiModelProperty(notes = "上级领导手机号-北森表")
......
...@@ -41,5 +41,5 @@ public interface EffectiveReferralReviewMapper extends OreMapper<EffectiveReferr ...@@ -41,5 +41,5 @@ public interface EffectiveReferralReviewMapper extends OreMapper<EffectiveReferr
List<String> queryQwSendMobilePhoneList(@Param("date") String date); List<String> queryQwSendMobilePhoneList(@Param("date") String date);
int queryOnlineNoHandlerCount(@Param("date") String date); List<String> queryOnlineNoHandlerQwSendMobilePhone(@Param("date") String date, @Param("merchantId") Integer merchantId, @Param("sceneType") Byte sceneType);
} }
\ No newline at end of file \ No newline at end of file
...@@ -235,6 +235,9 @@ public class AttendanceDataCleansingService { ...@@ -235,6 +235,9 @@ public class AttendanceDataCleansingService {
attendanceSummary.setName(employee.getStaffName()); attendanceSummary.setName(employee.getStaffName());
attendanceSummary.setAttendanceMonth(DateUtil.format(lastMonthYMD, DatePattern.NORM_MONTH_PATTERN)); attendanceSummary.setAttendanceMonth(DateUtil.format(lastMonthYMD, DatePattern.NORM_MONTH_PATTERN));
attendanceSummary.setExpectedAttendanceDays(lastMonthYMD.getLastDayOfMonth() - 4); attendanceSummary.setExpectedAttendanceDays(lastMonthYMD.getLastDayOfMonth() - 4);
attendanceSummary.setOIdJobPost(employee.getOidJobPost());
attendanceSummary.setMerchantName(employee.getMerchantName());
attendanceSummary.setSuperiorLeaderName(employee.getDirectLeaderName());
attendanceSummary.setSuperiorLeaderMobilePhone(employee.getDirectLeaderPhone()); attendanceSummary.setSuperiorLeaderMobilePhone(employee.getDirectLeaderPhone());
attendanceSummary.setCreatedBy("system"); attendanceSummary.setCreatedBy("system");
attendanceSummary.setCreatedDate(new Date()); attendanceSummary.setCreatedDate(new Date());
......
...@@ -163,9 +163,11 @@ public class AutoPerfEvaluationService { ...@@ -163,9 +163,11 @@ public class AutoPerfEvaluationService {
performanceEvaluation.setIsEntry(isEntryBoolean ? 1 : 0); performanceEvaluation.setIsEntry(isEntryBoolean ? 1 : 0);
performanceEvaluation.setIsProbation(isProbationBoolean ? 1 : 0); performanceEvaluation.setIsProbation(isProbationBoolean ? 1 : 0);
performanceEvaluation.setIsCorrection(isCorrectionBoolean ? 1 : 0); performanceEvaluation.setIsCorrection(isCorrectionBoolean ? 1 : 0);
performanceEvaluation.setOIdJobPost(employee.getOidJobPost());
performanceEvaluation.setMerchantName(employee.getMerchantName()); performanceEvaluation.setMerchantName(employee.getMerchantName());
performanceEvaluation.setSubmitCount(0); performanceEvaluation.setSubmitCount(0);
performanceEvaluation.setHandleStatus(0); performanceEvaluation.setHandleStatus(0);
performanceEvaluation.setSuperiorLeaderName(employee.getDirectLeaderName());
performanceEvaluation.setSuperiorLeaderMobilePhone(employee.getDirectLeaderPhone()); performanceEvaluation.setSuperiorLeaderMobilePhone(employee.getDirectLeaderPhone());
BigDecimal staffOutValue = phoneOutValueMap.get(employee.getStaffPhone()); BigDecimal staffOutValue = phoneOutValueMap.get(employee.getStaffPhone());
......
...@@ -62,6 +62,7 @@ public class PerfQwNotificationService { ...@@ -62,6 +62,7 @@ public class PerfQwNotificationService {
Integer merchantId = OrePropertyConfigurer.getProperty("dj.send.work.wechat.merchant.id", Integer.class, 44202977); Integer merchantId = OrePropertyConfigurer.getProperty("dj.send.work.wechat.merchant.id", Integer.class, 44202977);
String title = OrePropertyConfigurer.getProperty("dj.send.work.wechat.perf.title", String.class, "驻店销售评绩效通知"); String title = OrePropertyConfigurer.getProperty("dj.send.work.wechat.perf.title", String.class, "驻店销售评绩效通知");
String btnTxt = OrePropertyConfigurer.getProperty("dj.send.work.wechat.btnTxt", String.class, "去处理"); String btnTxt = OrePropertyConfigurer.getProperty("dj.send.work.wechat.btnTxt", String.class, "去处理");
// todz url待补充
String url = OrePropertyConfigurer.getProperty("dj.send.work.wechat.perf.url", String.class, ""); String url = OrePropertyConfigurer.getProperty("dj.send.work.wechat.perf.url", String.class, "");
String descriptionEvn = OrePropertyConfigurer.getProperty("dj.send.work.wechat.perf.description", String.class, String descriptionEvn = OrePropertyConfigurer.getProperty("dj.send.work.wechat.perf.description", String.class,
"你好,本月的驻店销售评分开始了,请尽快去完成~\n" + "你好,本月的驻店销售评分开始了,请尽快去完成~\n" +
......
...@@ -112,14 +112,12 @@ ...@@ -112,14 +112,12 @@
select sas.id as id, select sas.id as id,
sas.name as name, sas.name as name,
sas.mobile_phone as mobilePhone, sas.mobile_phone as mobilePhone,
DATE_FORMAT(sas.attendance_month, '%Y-%m') as attendanceMonth, sas.attendance_month as attendanceMonth,
sas.total_work_hours as totalWorkHours, sas.total_work_hours as totalWorkHours,
sas.late_early_hours as lateEarlyHours, sas.late_early_hours as lateEarlyHours,
sas.missing_punch_count as missingPunchCount, sas.missing_punch_count as missingPunchCount,
sbbi.oId_job_post as positionName sas.oId_job_post as positionName
from sal_attendance_summary sas from sal_attendance_summary sas
left join dj_car_life_staff_beisen_base_info sbbi on sas.mobile_phone = sbbi.staff_phone
and sbbi.deleted_flag = 'N'
where sas.deleted_flag = 'N' where sas.deleted_flag = 'N'
and sas.mobile_phone = #{mobilePhone} and sas.mobile_phone = #{mobilePhone}
and sas.attendance_month = #{attendanceMonth} and sas.attendance_month = #{attendanceMonth}
......
...@@ -164,14 +164,27 @@ ...@@ -164,14 +164,27 @@
AND dc.director_phone IS NOT NULL; AND dc.director_phone IS NOT NULL;
</select> </select>
<select id="queryOnlineNoHandlerCount" resultType="java.lang.Integer"> <select id="queryOnlineNoHandlerQwSendMobilePhone" resultType="java.lang.String">
select count(*) SELECT DISTINCT dc.director_phone
from sal_effective_referral_review FROM sal_effective_referral_review sr
where deleted_flag = 'N' LEFT JOIN
and review_month = #{date} dj_car_life_shop_merchant_director_config dc
and status = 2 ON sr.merchant_id = dc.merchant_id
and is_need_reviewed = 1 AND dc.deleted_flag = 'N'
and is_reviewed = 0; AND ((sr.scene_type = 1 AND dc.director_type = 5)
OR (sr.scene_type IN (2, 3) AND dc.director_type = 7))
WHERE sr.status = 2
AND sr.deleted_flag = 'N'
AND sr.is_need_reviewed = 1
AND sr.is_reviewed = 0
AND sr.review_month = #{date}
<if test="sceneType != null and sceneType != '' ">
AND sr.scene_type = #{sceneType}
</if>
<if test="merchantId != null and merchantId != '' ">
AND sr.merchant_id = #{merchantId}
</if>
AND dc.director_phone IS NOT NULL;
</select> </select>
</mapper> </mapper>
\ No newline at end of file \ No newline at end of file
...@@ -74,7 +74,7 @@ ...@@ -74,7 +74,7 @@
FROM dj_car_life_staff_qw_clock_clean FROM dj_car_life_staff_qw_clock_clean
WHERE staff_phone = #{mobilePhone} WHERE staff_phone = #{mobilePhone}
AND <![CDATA[ AND <![CDATA[
DATE_FORMAT(clock_in_date, '%Y-%m') >= #{date} DATE_FORMAT(clock_in_date, '%Y-%m') = #{date}
]]> ]]>
AND deleted_flag = 'N' AND deleted_flag = 'N'
ORDER BY clock_in_date ORDER BY clock_in_date
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!