@ -50,7 +50,7 @@ public class PayDayWorkHoursServiceImpl implements IPayDayWorkHoursService {
* /
* /
@Override
@Override
public PayDayWorkHoursVo queryById ( Long id ) {
public PayDayWorkHoursVo queryById ( Long id ) {
return baseMapper . select Vo ById( id ) ;
return baseMapper . select Detail ById( id ) ;
}
}
/ * *
/ * *
@ -157,7 +157,7 @@ public class PayDayWorkHoursServiceImpl implements IPayDayWorkHoursService {
if ( result > 0 ) {
if ( result > 0 ) {
List < PayDwHoursContrast > sgrDwHoursContrasts = sgrDayWorkHoursQuery . getDwHoursContrasts ( ) ;
List < PayDwHoursContrast > sgrDwHoursContrasts = sgrDayWorkHoursQuery . getDwHoursContrasts ( ) ;
sgrDwHoursContrasts . parallelStream ( ) . forEachOrdered ( sgrDwHoursContrast - > {
sgrDwHoursContrasts . parallelStream ( ) . forEachOrdered ( sgrDwHoursContrast - > {
sgrDwHoursContrast . setDwHoursId ( sgrDayWorkHoursQuery . getId ( ) ) ;
sgrDwHoursContrast . setDwHoursId ( payDayWorkHour . getId ( ) ) ;
if ( sgrDwHoursContrast . getIsHelper ( ) = = 0 ) { //当不是帮工时 直接存员工的部门
if ( sgrDwHoursContrast . getIsHelper ( ) = = 0 ) { //当不是帮工时 直接存员工的部门
sgrDwHoursContrast . setDeptId ( sgrDayWorkHoursQuery . getDeptId ( ) ) ;
sgrDwHoursContrast . setDeptId ( sgrDayWorkHoursQuery . getDeptId ( ) ) ;
sgrDwHoursContrast . setDeptName ( sgrDayWorkHoursQuery . getDeptName ( ) ) ;
sgrDwHoursContrast . setDeptName ( sgrDayWorkHoursQuery . getDeptName ( ) ) ;
@ -217,7 +217,7 @@ public class PayDayWorkHoursServiceImpl implements IPayDayWorkHoursService {
//重新插入时间段
//重新插入时间段
List < PayDwHoursContrast > sgrDwHoursContrasts = sgrDayWorkHoursQuery . getDwHoursContrasts ( ) ;
List < PayDwHoursContrast > sgrDwHoursContrasts = sgrDayWorkHoursQuery . getDwHoursContrasts ( ) ;
sgrDwHoursContrasts . parallelStream ( ) . forEachOrdered ( sgrDwHoursContrast - > {
sgrDwHoursContrasts . parallelStream ( ) . forEachOrdered ( sgrDwHoursContrast - > {
sgrDwHoursContrast . setDwHoursId ( sgrDayWorkHoursQuery . getId ( ) ) ;
sgrDwHoursContrast . setDwHoursId ( payDayWorkHour . getId ( ) ) ;
if ( sgrDwHoursContrast . getIsHelper ( ) = = 0 ) { //当不是帮工时 直接存员工的部门
if ( sgrDwHoursContrast . getIsHelper ( ) = = 0 ) { //当不是帮工时 直接存员工的部门
sgrDwHoursContrast . setDeptId ( sgrDayWorkHoursQuery . getDeptId ( ) ) ;
sgrDwHoursContrast . setDeptId ( sgrDayWorkHoursQuery . getDeptId ( ) ) ;
sgrDwHoursContrast . setDeptName ( sgrDayWorkHoursQuery . getDeptName ( ) ) ;
sgrDwHoursContrast . setDeptName ( sgrDayWorkHoursQuery . getDeptName ( ) ) ;