测试用户
2023-04-13 43393f2bb11cbf9e6af40077bbc5284660e8a754
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
package com.deloitte.system.model;
 
import com.common.annotation.Table;
import com.common.core.domain.BaseModel;
 
/**
 * @author 廖振钦
 * @date 2022-01-17
 */
 
@Table(tableName = "app_config", clazz = AppConfig.class)
public class AppConfig extends BaseModel<AppConfig> {
 
    public static final AppConfig dao = new AppConfig();
 
    public String appid(){
        return getStr("app_id");
    }
 
    public AppConfig appid(String appid){
        set("app_id", appid);
        return this;
    }
 
    public String appsecret(){
        return getStr("app_secret");
    }
 
    public AppConfig appsecret(String appsecret){
        set("app_secret", appsecret);
        return this;
    }
 
    public AppConfig findByAppid(String appid){
        return this.dao.findFirst("select * from " + getTableName() + " where app_id=? ",appid);
    }
}