提交 | 用户 | 时间
|
8c1646
|
1 |
package com.iailab.module.data.plan.item.dao; |
潘 |
2 |
|
|
3 |
import com.iailab.framework.common.pojo.PageResult; |
|
4 |
import com.iailab.framework.mybatis.core.mapper.BaseMapperX; |
|
5 |
import com.iailab.framework.mybatis.core.query.LambdaQueryWrapperX; |
ed4f78
|
6 |
import com.iailab.framework.tenant.core.aop.TenantIgnore; |
潘 |
7 |
import com.iailab.framework.tenant.core.db.dynamic.DataDS; |
8c1646
|
8 |
import com.iailab.framework.tenant.core.db.dynamic.TenantDS; |
潘 |
9 |
import com.iailab.module.data.plan.item.entity.PlanItemEntity; |
ed4f78
|
10 |
import com.iailab.module.data.plan.item.vo.PlanItemDataVO; |
8c1646
|
11 |
import com.iailab.module.data.plan.item.vo.PlanItemPageReqVO; |
潘 |
12 |
import org.apache.ibatis.annotations.Mapper; |
ed4f78
|
13 |
|
潘 |
14 |
import java.util.List; |
|
15 |
import java.util.Map; |
8c1646
|
16 |
|
潘 |
17 |
/** |
|
18 |
* @author PanZhibao |
|
19 |
* @Description |
|
20 |
* @createTime 2024年11月01日 |
|
21 |
*/ |
|
22 |
@TenantDS |
|
23 |
@Mapper |
|
24 |
public interface PlanItemDao extends BaseMapperX<PlanItemEntity> { |
|
25 |
|
ed4f78
|
26 |
@DataDS |
潘 |
27 |
@TenantIgnore |
|
28 |
List<PlanItemDataVO> getSourceValue(Map<String, Object> params); |
|
29 |
|
8c1646
|
30 |
default PageResult<PlanItemEntity> selectPage(PlanItemPageReqVO reqVO) { |
潘 |
31 |
return selectPage(reqVO, new LambdaQueryWrapperX<PlanItemEntity>() |
|
32 |
.likeIfPresent(PlanItemEntity::getItemNo, reqVO.getItemNo()) |
|
33 |
.likeIfPresent(PlanItemEntity::getItemName, reqVO.getItemName()) |
|
34 |
.eqIfPresent(PlanItemEntity::getItemCategory, reqVO.getItemCategory()) |
|
35 |
.orderByDesc(PlanItemEntity::getCreateTime)); |
|
36 |
} |
|
37 |
} |