提交 | 用户 | 时间
|
7fd198
|
1 |
package com.iailab.module.model.mcs.pre.dao; |
潘 |
2 |
|
|
3 |
import com.baomidou.mybatisplus.core.metadata.IPage; |
|
4 |
import com.iailab.framework.common.pojo.PageResult; |
|
5 |
import com.iailab.framework.mybatis.core.mapper.BaseMapperX; |
|
6 |
import com.iailab.framework.mybatis.core.query.LambdaQueryWrapperX; |
58c749
|
7 |
import com.iailab.framework.tenant.core.db.dynamic.TenantDS; |
7fd198
|
8 |
import com.iailab.module.model.mcs.pre.entity.MmPredictItemEntity; |
潘 |
9 |
import com.iailab.module.model.mcs.pre.entity.MmPredictItemEntity; |
5c6007
|
10 |
import com.iailab.module.model.mcs.pre.entity.MmPredictItemEntity; |
L |
11 |
import com.iailab.module.model.mcs.pre.vo.DmModulePageReqVO; |
7fd198
|
12 |
import com.iailab.module.model.mcs.pre.vo.MmPredictItemPageReqVO; |
潘 |
13 |
import com.iailab.module.model.mcs.pre.vo.MmPredictItemRespVO; |
|
14 |
import com.iailab.module.model.mdk.vo.ItemVO; |
|
15 |
import com.iailab.module.model.mdk.vo.MergeItemVO; |
|
16 |
import org.apache.ibatis.annotations.Mapper; |
|
17 |
import org.apache.ibatis.annotations.Param; |
|
18 |
|
|
19 |
import java.util.List; |
|
20 |
import java.util.Map; |
|
21 |
|
|
22 |
/** |
|
23 |
* @author PanZhibao |
|
24 |
* @date 2021年04月26日 11:35 |
|
25 |
*/ |
58c749
|
26 |
@TenantDS |
7fd198
|
27 |
@Mapper |
潘 |
28 |
public interface MmPredictItemDao extends BaseMapperX<MmPredictItemEntity> { |
|
29 |
|
|
30 |
List<ItemVO> getByModuleId(Map<String, Object> params); |
|
31 |
|
|
32 |
List<ItemVO> getItem(Map<String, Object> params); |
|
33 |
|
|
34 |
List<MergeItemVO> getMergeItemByItemId(Map<String, Object> params); |
5c6007
|
35 |
|
L |
36 |
default PageResult<MmPredictItemEntity> selectPage(MmPredictItemPageReqVO reqVO) { |
|
37 |
return selectPage(reqVO, new LambdaQueryWrapperX<MmPredictItemEntity>() |
|
38 |
.likeIfPresent(MmPredictItemEntity::getItemno, reqVO.getItemno()) |
|
39 |
.likeIfPresent(MmPredictItemEntity::getItemname, reqVO.getItemname()) |
|
40 |
.orderByDesc(MmPredictItemEntity::getCreateTime)); |
|
41 |
} |
7fd198
|
42 |
} |