fix app create and update report
parent
e6580bb146
commit
7f47311ff8
@ -0,0 +1,25 @@
|
||||
package cn.iocoder.yudao.module.mes.dal.mysql.producereport;
|
||||
|
||||
import cn.iocoder.yudao.framework.mybatis.core.mapper.BaseMapperX;
|
||||
import cn.iocoder.yudao.framework.mybatis.core.query.LambdaQueryWrapperX;
|
||||
import cn.iocoder.yudao.module.mes.dal.dataobject.producereport.ViewReportUserDateSummary;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 报工工人日期汇总 Mapper
|
||||
*
|
||||
* @author 内蒙必硕
|
||||
*/
|
||||
@Mapper
|
||||
public interface ViewReportUserDateMapper extends BaseMapperX<ViewReportUserDateSummary> {
|
||||
|
||||
default List<ViewReportUserDateSummary> selectBy(Long userId, String reportDay, String[]reportDays) {
|
||||
return selectList(new LambdaQueryWrapperX<ViewReportUserDateSummary>()
|
||||
.eqIfPresent(ViewReportUserDateSummary::getUserId, userId)
|
||||
.eqIfPresent(ViewReportUserDateSummary::getReportDay, reportDay)
|
||||
.betweenIfPresent(ViewReportUserDateSummary::getReportDay, reportDays)
|
||||
.orderByDesc(ViewReportUserDateSummary::getReportDay));
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue