@ -64,11 +64,11 @@ public class PayDayWorkHoursServiceImpl implements IPayDayWorkHoursService {
return TableDataInfo . build ( result ) ;
return TableDataInfo . build ( result ) ;
}
}
/ * *
/ * *
* 查 询 日 工 工 时 列 表
* 查 询 日 工 工 时 列 表 2
* /
* /
@Override
@Override
public TableDataInfo < PayDayWorkHoursQuery > queryPageList2 ( PayDayWorkHoursBo bo , PageQuery pageQuery ) {
public TableDataInfo < PayDayWorkHoursQuery > queryPageList2 ( PayDayWorkHoursBo bo , PageQuery pageQuery ) {
QueryWrapper < PayDayWorkHours > lqw = buildQueryWrapper2 ( bo ) ;
QueryWrapper < PayDayWorkHours Bo > lqw = buildQueryWrapper2 ( bo ) ;
Page < PayDayWorkHoursQuery > result = baseMapper . selectVoPage2 ( pageQuery . build ( ) , lqw ) ;
Page < PayDayWorkHoursQuery > result = baseMapper . selectVoPage2 ( pageQuery . build ( ) , lqw ) ;
return TableDataInfo . build ( result ) ;
return TableDataInfo . build ( result ) ;
}
}
@ -82,16 +82,17 @@ public class PayDayWorkHoursServiceImpl implements IPayDayWorkHoursService {
return baseMapper . selectVoList ( lqw ) ;
return baseMapper . selectVoList ( lqw ) ;
}
}
private QueryWrapper < PayDayWorkHours > buildQueryWrapper2 ( PayDayWorkHoursBo bo ) {
private QueryWrapper < PayDayWorkHours Bo > buildQueryWrapper2 ( PayDayWorkHoursBo bo ) {
Map < String , Object > params = bo . getParams ( ) ;
Map < String , Object > params = bo . getParams ( ) ;
QueryWrapper < PayDayWorkHours > lqw = Wrappers . query ( ) ; ;
QueryWrapper < PayDayWorkHours Bo > lqw = Wrappers . query ( ) ; ;
lqw . eq ( bo . getTenantId ( ) ! = null , "d.tenant_id" , bo . getTenantId ( ) ) ;
lqw . eq ( bo . getTenantId ( ) ! = null , "d.tenant_id" , bo . getTenantId ( ) ) ;
lqw . eq ( bo . getDeptId ( ) ! = null , "dept_id" , bo . getDeptId ( ) ) ;
lqw . eq ( bo . getDeptId ( ) ! = null , "dept_id" , bo . getDeptId ( ) ) ;
lqw . like ( StringUtils . isNotBlank ( bo . getDeptName ( ) ) , "dept_name" , bo . getDeptName ( ) ) ;
lqw . like ( StringUtils . isNotBlank ( bo . getDeptName ( ) ) , "dept_name" , bo . getDeptName ( ) ) ;
lqw . eq ( bo . getEmployeeId ( ) ! = null , "employee_id" , bo . getEmployeeId ( ) ) ;
lqw . eq ( bo . getEmployeeId ( ) ! = null , "employee_id" , bo . getEmployeeId ( ) ) ;
lqw . like ( StringUtils . isNotBlank ( bo . getEmpName ( ) ) , "emp_name" , bo . getEmpName ( ) ) ;
lqw . like ( StringUtils . isNotBlank ( bo . getEmpName ( ) ) , "emp_name" , bo . getEmpName ( ) ) ;
lqw . eq ( bo . getDate ( ) ! = null , "date" , bo . getDate ( ) ) ;
lqw . eq ( bo . getDate ( ) ! = null , "date" , bo . getDate ( ) ) ;
lqw . eq ( StringUtils . isNotBlank ( bo . getDwYearMonth ( ) ) , "year_month" , bo . getDwYearMonth ( ) ) ;
lqw . eq ( bo . getSalesman ( ) ! = null , "c.`salesman`" , bo . getSalesman ( ) ) ;
lqw . eq ( StringUtils . isNotBlank ( bo . getDwYearMonth ( ) ) , "dw_year_month" , bo . getDwYearMonth ( ) ) ;
lqw . eq ( StringUtils . isNotBlank ( bo . getNote ( ) ) , "note" , bo . getNote ( ) ) ;
lqw . eq ( StringUtils . isNotBlank ( bo . getNote ( ) ) , "note" , bo . getNote ( ) ) ;
return lqw ;
return lqw ;
}
}