Browse Source

Merge remote-tracking branch 'remotes/origin/dev_bugfix' into dev

master
jianjun 5 years ago
parent
commit
b194abb708
  1. 16
      epmet-module/epmet-heart/epmet-heart-client/src/main/java/com/epmet/dto/result/resi/ResiActDetailResultDTO.java
  2. 15
      epmet-module/epmet-heart/epmet-heart-server/src/main/java/com/epmet/service/impl/ActInfoServiceImpl.java
  3. 1
      epmet-module/resi-group/resi-group-server/src/main/resources/db/migration/V0.0.3__topic.sql

16
epmet-module/epmet-heart/epmet-heart-client/src/main/java/com/epmet/dto/result/resi/ResiActDetailResultDTO.java

@ -139,13 +139,17 @@ public class ResiActDetailResultDTO implements Serializable {
private Boolean isSignUp;
/**
* 用户报名活动后当前状态
* --已报名/待审核auditing
* -- 审核通过passed
* -- 未报名(审核不通过 取消报名)canceled
* --
* 按钮控制字段(兼容旧版) - true已报名false未报名
*/
private String isRegistration;
private Boolean isRegistration;
/**
* 按钮控制字段(新版) -
* 已报名/待审核auditing
* 审核通过passed
* 未报名(审核不通过 取消报名)canceled
*/
private String userAuditStatus;
/**
* 打卡开始时间yyyy-MM-dd HH:mm

15
epmet-module/epmet-heart/epmet-heart-server/src/main/java/com/epmet/service/impl/ActInfoServiceImpl.java

@ -221,15 +221,24 @@ public class ActInfoServiceImpl extends BaseServiceImpl<ActInfoDao, ActInfoEntit
// 查询用户是否已报名活动
String status = actUserRelationDao.selectUserStatusByActIdAndUserId(formDto.getActId(), formDto.getUserId());
// 按钮控制字段 - 兼容旧版本
detailResultDTO.setIsRegistration(false);
if (null != status){
if (ActConstant.ACT_USER_STATUS_PASSED.equals(status) || ActConstant.ACT_USER_STATUS_AUDITING.equals(status)){
detailResultDTO.setIsRegistration(true);
}
}
// 按钮控制字段 - 新版本(为了解决,因为用户未审核通过,却可以打卡的问题)
// 默认用户 未报名活动
detailResultDTO.setIsRegistration(ActConstant.ACT_USER_LOG_OPER_CANCELD);
detailResultDTO.setUserAuditStatus(ActConstant.ACT_USER_LOG_OPER_CANCELD);
if (null != status){
if (ActConstant.ACT_USER_STATUS_PASSED.equals(status)){
// 用户报名活动审核通过,赋值 审核通过
detailResultDTO.setIsRegistration(status);
detailResultDTO.setUserAuditStatus(status);
} else if ( ActConstant.ACT_USER_STATUS_AUDITING.equals(status)){
// 用户报名活动未审核,赋值 已报名/待审核
detailResultDTO.setIsRegistration(status);
detailResultDTO.setUserAuditStatus(status);
}
}

1
epmet-module/resi-group/resi-group-server/src/main/resources/db/migration/V0.0.3__topic.sql

@ -0,0 +1 @@
UPDATE resi_topic SET CLOSED_STATUS = 'resolved' WHERE CLOSED_STATUS IS NULL
Loading…
Cancel
Save