gaoluyang
2 天以前 8c65f898ed6e5b0c7a94c792c4562f6ec831dccd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
package cn.iocoder.yudao.module.mes.dal.mysql.pro.feedback;
 
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.pro.feedback.MesProFeedbackAuxDO;
import org.apache.ibatis.annotations.Mapper;
 
import java.util.Collection;
import java.util.List;
 
/**
 * MES 报工辅助工时明细 Mapper
 *
 * @author 超级管理员
 */
@Mapper
public interface MesProFeedbackAuxMapper extends BaseMapperX<MesProFeedbackAuxDO> {
 
    default List<MesProFeedbackAuxDO> selectListByFeedbackId(Long feedbackId) {
        return selectList(new LambdaQueryWrapperX<MesProFeedbackAuxDO>()
                .eq(MesProFeedbackAuxDO::getFeedbackId, feedbackId)
                .orderByAsc(MesProFeedbackAuxDO::getId));
    }
 
    default List<MesProFeedbackAuxDO> selectListByFeedbackIds(Collection<Long> feedbackIds) {
        return selectList(new LambdaQueryWrapperX<MesProFeedbackAuxDO>()
                .in(MesProFeedbackAuxDO::getFeedbackId, feedbackIds)
                .orderByAsc(MesProFeedbackAuxDO::getId));
    }
 
    default Long selectCountByAuxItemId(Long auxItemId) {
        return selectCount(new LambdaQueryWrapperX<MesProFeedbackAuxDO>()
                .eq(MesProFeedbackAuxDO::getAuxItemId, auxItemId));
    }
 
    default void deleteByFeedbackId(Long feedbackId) {
        delete(new LambdaQueryWrapperX<MesProFeedbackAuxDO>()
                .eq(MesProFeedbackAuxDO::getFeedbackId, feedbackId));
    }
 
}