加班时长扣减调整
This commit is contained in:
parent
bb970a144a
commit
d4658848cf
@ -239,6 +239,7 @@
|
||||
<version>2.5.15</version>
|
||||
<configuration>
|
||||
<fork>true</fork> <!-- 如果没有该配置,devtools不会生效 -->
|
||||
<includeSystemScope>true</includeSystemScope>
|
||||
</configuration>
|
||||
<executions>
|
||||
<execution>
|
||||
|
||||
@ -147,7 +147,7 @@ public class KqUtils {
|
||||
* B) 公司检查发现的按层级组织秩序,激励责任管理岗两级各-100元/项/次。
|
||||
*/
|
||||
if(!rzAttendanceDetail.getButtonType().contains("12") && !rzAttendanceDetail.getButtonType().contains("三班")){
|
||||
minutes = minutes.subtract(new BigDecimal(ParamUtils.getShortBreakDeductionMinutes()));
|
||||
minutes = minutes.subtract(new BigDecimal(ParamUtils.getShortBreakDeductionMinutes("ZC")));
|
||||
}
|
||||
//设置默认加班0小时
|
||||
double hours = 0;
|
||||
|
||||
@ -151,7 +151,7 @@ public class TSDeviceExchangeProcessor implements PunchTheClockStrategyExchangeP
|
||||
Long overMinutes = DateUtils.getBetweenMinutes(rzSpecialAttendance.getWorkStartTime(), rzSpecialAttendance.getWorkEndTime());
|
||||
//核查当前人员, 当天是否吃完饭 //如果吃晚饭, 扣减30分钟
|
||||
if((rzSpecialAttendance.getWorkStartTime().compareTo(endMealDate) <= 0) && (rzRestaurantDetailMapper.checkDinnerByStaffIdAndDateAndSign(sysStaff.getUserId(), date, "晚餐").compareTo(0l) > 0)){
|
||||
overMinutes = new BigDecimal(overMinutes).subtract(new BigDecimal(ParamUtils.getShortBreakDeductionMinutes())).longValue();
|
||||
overMinutes = new BigDecimal(overMinutes).subtract(new BigDecimal(ParamUtils.getShortBreakDeductionMinutes("TS"))).longValue();
|
||||
}
|
||||
BigDecimal workHours = new BigDecimal(0);
|
||||
if(overMinutes >= (maxHour*60)){
|
||||
|
||||
@ -112,9 +112,11 @@ public class ParamUtils {
|
||||
* 获取日薪全勤天数
|
||||
* @return
|
||||
*/
|
||||
public static String getShortBreakDeductionMinutes(){
|
||||
RzSysParam param= paramService.getRzSysParam("短休的工时扣减(分钟)", "short_break_deduction_minutes","30","短休的工时扣减(分钟)");
|
||||
return param.getParamValue();
|
||||
public static String getShortBreakDeductionMinutes(String type){
|
||||
RzSysParam param= paramService.getRzSysParam("短休的工时扣减(分钟)", "short_break_deduction_minutes","{\"TS\":\"30\",\"ZC\":\"0\"}","短休的工时扣减(分钟)");
|
||||
JSONObject jsonObject = JSONObject.parseObject(param.getParamValue());
|
||||
String rulesVal = jsonObject.getString(type);
|
||||
return (StringUtils.isEmpty(rulesVal) ? "0" : rulesVal);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -190,7 +190,7 @@ public class SysStaffServiceImpl extends ServiceImpl<SysStaffMapper, SysStaff> i
|
||||
dkj_list.add(com.evo.equipment.constant.Constants.EQ_DEVICE_PUBLIC_CODE); //公共
|
||||
dkj_list.add(sysStaff.getTimeClock());
|
||||
//下发照片
|
||||
//eqSnDetailService.sendPhoto(dkj_list, Collections.asList(Collections.asMap("userId", String.valueOf(sysStaff.getUserId()), "name", sysStaff.getName(), "photoUrl", ParamUtils.getGlobalStaticUrl()+upload.getFileName())));
|
||||
eqSnDetailService.sendPhoto(dkj_list, Collections.asList(Collections.asMap("userId", String.valueOf(sysStaff.getUserId()), "name", sysStaff.getName(), "photoUrl", ParamUtils.getGlobalStaticUrl()+upload.getFileName())));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user