forked from rongchao/epmet-cloud-rizhao
9 changed files with 272 additions and 7 deletions
@ -0,0 +1,31 @@ |
|||
package com.epmet.dto.form; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.NotBlank; |
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* 积分任务列表查询入参 |
|||
* |
|||
* @author yinzuomei@elink-cn.com |
|||
* @date 2021/6/18 13:56 |
|||
*/ |
|||
@Data |
|||
public class MyPointTaskFormDTO implements Serializable { |
|||
private static final long serialVersionUID = 8274146750217261820L; |
|||
|
|||
/** |
|||
* 当前用户Id |
|||
* */ |
|||
@NotBlank(message = "tokenDto获取userId为空") |
|||
private String userId; |
|||
|
|||
@NotBlank(message = "tokenDto获取customerId为空") |
|||
private String customerId; |
|||
/** |
|||
* 未完成:unfinished;已完成:finished;全部:all |
|||
* */ |
|||
@NotBlank(message = "未完成:unfinished;已完成:finished;全部:all") |
|||
private String type; |
|||
} |
@ -0,0 +1,84 @@ |
|||
package com.epmet.dto.result; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* 积分任务列表查询返参 |
|||
* |
|||
* @author yinzuomei@elink-cn.com |
|||
* @date 2021/6/18 13:58 |
|||
*/ |
|||
@Data |
|||
public class MyPointTaskResultDTO implements Serializable { |
|||
|
|||
/** |
|||
* 规则名称 |
|||
* */ |
|||
private String ruleName; |
|||
|
|||
/** |
|||
* 规则描述 |
|||
* */ |
|||
private String ruleDesc; |
|||
|
|||
/** |
|||
* 加减积分描述,举例:积分+2 |
|||
* */ |
|||
private String pointDesc; |
|||
|
|||
/** |
|||
* 完成情况描述,举例:完成0/3 |
|||
* */ |
|||
private String finishTotalDesc; |
|||
|
|||
/** |
|||
* 去完成 or 已完成 |
|||
* */ |
|||
private String finishFlag; |
|||
|
|||
/** |
|||
* 楼院小组:group;爱心互助:heart; 前端根据这个key跳转到相应页面 |
|||
* */ |
|||
private String linkPage; |
|||
|
|||
|
|||
|
|||
/** |
|||
* 事件CODE 来自事件表 |
|||
*/ |
|||
// @JsonIgnore
|
|||
private String eventCode; |
|||
|
|||
/** |
|||
* 操作类型 加积分:add;减积分:subtract |
|||
*/ |
|||
// @JsonIgnore
|
|||
private String operateType; |
|||
|
|||
/** |
|||
* 积分上限 0表示不涉及积分上限; |
|||
*/ |
|||
// @JsonIgnore
|
|||
private Integer upLimit; |
|||
|
|||
/** |
|||
* 获得积分值 |
|||
*/ |
|||
// @JsonIgnore
|
|||
private Integer point; |
|||
/** |
|||
* 已完成次数 |
|||
*/ |
|||
private Integer finishedCount; |
|||
|
|||
/** |
|||
* 上限次数,-1代表没有上限 |
|||
*/ |
|||
private Integer upLimitCount; |
|||
/** |
|||
* 排序 |
|||
*/ |
|||
private Integer sort; |
|||
} |
@ -0,0 +1,27 @@ |
|||
alter table point_rule_default add COLUMN SORT INT(11) COMMENT '规则显示顺序' AFTER ENABLED_FLAG ; |
|||
alter table point_rule add COLUMN SORT INT(11) COMMENT '规则显示顺序' AFTER ENABLED_FLAG ; |
|||
alter table point_rule_default add COLUMN LINK_PAGE VARCHAR(32) COMMENT '链接页面' AFTER SORT ; |
|||
alter table point_rule add COLUMN LINK_PAGE VARCHAR(32) COMMENT '链接页面' AFTER SORT ; |
|||
|
|||
update point_rule_default set sort='1001',LINK_PAGE='group' where EVENT_CODE='participate_one_topic' and DEL_FLAG='0'; |
|||
update point_rule_default set sort='1002',LINK_PAGE='group' where EVENT_CODE='publish_one_topic' and DEL_FLAG='0'; |
|||
update point_rule_default set sort='1003',LINK_PAGE='group' where EVENT_CODE='invite_resi_into_group' and DEL_FLAG='0'; |
|||
update point_rule_default set sort='1004',LINK_PAGE='group' where EVENT_CODE='invite_new_into_group' and DEL_FLAG='0'; |
|||
update point_rule_default set sort='1005',LINK_PAGE='group' where EVENT_CODE='leader_resolve_topic' and DEL_FLAG='0'; |
|||
update point_rule_default set sort='1006',LINK_PAGE='group' where EVENT_CODE='shift_topic_to_issue' and DEL_FLAG='0'; |
|||
update point_rule_default set sort='1007',LINK_PAGE='group' where EVENT_CODE='topic_to_issue' and DEL_FLAG='0'; |
|||
update point_rule_default set sort='1008',LINK_PAGE='group' where EVENT_CODE='topic_to_project' and DEL_FLAG='0'; |
|||
update point_rule_default set sort='2001',LINK_PAGE='heart' where EVENT_CODE='register_volunteer' and DEL_FLAG='0'; |
|||
update point_rule_default set sort='2002',LINK_PAGE='heart' where EVENT_CODE='active_insert_live' and DEL_FLAG='0'; |
|||
|
|||
|
|||
update point_rule set sort='1001',LINK_PAGE='group' where EVENT_CODE='participate_one_topic' and DEL_FLAG='0'; |
|||
update point_rule set sort='1002',LINK_PAGE='group' where EVENT_CODE='publish_one_topic' and DEL_FLAG='0'; |
|||
update point_rule set sort='1003',LINK_PAGE='group' where EVENT_CODE='invite_resi_into_group' and DEL_FLAG='0'; |
|||
update point_rule set sort='1004',LINK_PAGE='group' where EVENT_CODE='invite_new_into_group' and DEL_FLAG='0'; |
|||
update point_rule set sort='1005',LINK_PAGE='group' where EVENT_CODE='leader_resolve_topic' and DEL_FLAG='0'; |
|||
update point_rule set sort='1006',LINK_PAGE='group' where EVENT_CODE='shift_topic_to_issue' and DEL_FLAG='0'; |
|||
update point_rule set sort='1007',LINK_PAGE='group' where EVENT_CODE='topic_to_issue' and DEL_FLAG='0'; |
|||
update point_rule set sort='1008',LINK_PAGE='group' where EVENT_CODE='topic_to_project' and DEL_FLAG='0'; |
|||
update point_rule set sort='2001',LINK_PAGE='heart' where EVENT_CODE='register_volunteer' and DEL_FLAG='0'; |
|||
update point_rule set sort='2002',LINK_PAGE='heart' where EVENT_CODE='active_insert_live' and DEL_FLAG='0'; |
Loading…
Reference in new issue