|
|
|
@@ -95,22 +95,26 @@ public class WxActivity extends BaseEntity { |
|
|
|
protected String weappPath; |
|
|
|
|
|
|
|
@Transient |
|
|
|
@io.swagger.annotations.ApiModelProperty(value = "小程序二维码Scene", name = "weappScene") |
|
|
|
protected String weappScene; |
|
|
|
@io.swagger.annotations.ApiModelProperty(value = "报名二维码", name = "weappSceneForJoin") |
|
|
|
protected String weappSceneForJoin; |
|
|
|
|
|
|
|
public String getWeappSceneForSign() { |
|
|
|
return "t:ra:" + id; |
|
|
|
} |
|
|
|
|
|
|
|
@Transient |
|
|
|
@io.swagger.annotations.ApiModelProperty(value = "签到二维码", name = "weappSceneForSign") |
|
|
|
protected String weappSceneForSign; |
|
|
|
|
|
|
|
public String getWeappPath() { |
|
|
|
if (type == null) |
|
|
|
return "pages/index/index"; |
|
|
|
return "pages/index/index?type=bd&bt=" + type + "&id=" + id; |
|
|
|
return "pages/index/index?type=ra&id=" + id; |
|
|
|
} |
|
|
|
|
|
|
|
public String getWeappScene() { |
|
|
|
if (type == null) |
|
|
|
return ""; |
|
|
|
return "t:bd:" + type + ":" + id; |
|
|
|
public String getWeappSceneForJoin() { |
|
|
|
return "t:ra:" + id; |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public static enum Field { |
|
|
|
Id_ASC("`id` ASC"), Id_DESC("`id` DESC"), TenantId_ASC("`tenant_id` ASC"), TenantId_DESC("`tenant_id` DESC"), CoverImg_ASC("`cover_img` ASC"), CoverImg_DESC("`cover_img` DESC"), Title_ASC("`title` ASC"), Title_DESC("`title` DESC"), SubTitle_ASC("`sub_title` ASC"), SubTitle_DESC("`sub_title` DESC"), StartTime_ASC("`start_time` ASC"), StartTime_DESC("`start_time` DESC"), EndTime_ASC("`end_time` ASC"), EndTime_DESC("`end_time` DESC"), Type_ASC("`type` ASC"), Type_DESC("`type` DESC"), Status_ASC("`status` ASC"), Status_DESC("`status` DESC"), ActivityTime_ASC("`activity_start_time` ASC"), ActivityTime_DESC("`activity_start_time` DESC"), CreateTime_ASC("`create_time` ASC"), CreateTime_DESC("`create_time` DESC"), UpdateTime_ASC("`update_time` ASC"), UpdateTime_DESC("`update_time` DESC"); |
|
|
|
private String value; |
|
|
|
|