ny
昨天 b6f169fe43a2b13f351aefc152374fc7f0bc8cb7
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
42
43
44
package jnpf.portal.model;
 
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import jnpf.base.MyBatisPrimaryBase;
import jnpf.portal.constant.PortalConst;
import jnpf.portal.entity.PortalDataEntity;
import lombok.Data;
 
/**
 * 类功能
 *
 * @author JNPF开发平台组 YanYu
 * @version v3.4.8
 * @copyrignt 引迈信息技术有限公司
 * @date 2023-04-21
 */
@Data
public class PortalReleasePrimary extends MyBatisPrimaryBase<PortalDataEntity> {
 
    /**
     * 门户ID
     */
    private String portalId;
 
    private String platform;
 
    /**
     * 类型(model:模型、custom:自定义、release:发布)
     */
    private String type = PortalConst.RELEASE;
 
    public PortalReleasePrimary(String portalId, String platform){
        this.portalId = portalId;
        this.platform = platform;
    }
 
    public QueryWrapper<PortalDataEntity> getQuery(){
        queryWrapper.lambda().eq(PortalDataEntity::getType, type);
        if(this.portalId != null) queryWrapper.lambda().eq(PortalDataEntity::getPortalId, portalId);
        if(this.platform != null) queryWrapper.lambda().eq(PortalDataEntity::getPlatform, platform);
        return queryWrapper;
    }
 
}