修改细节问题
This commit is contained in:
parent
49820fdaa2
commit
53a6dbea2d
@ -57,6 +57,11 @@ public class CommentBlackQuery extends PageQuery {
|
||||
@Max(3)
|
||||
private Integer scope;
|
||||
|
||||
@ApiModelProperty("禁言状态:0生效中 1已解除 2自然过期")
|
||||
@Min(0)
|
||||
@Max(2)
|
||||
private Integer status;
|
||||
|
||||
public String getUserName() {
|
||||
return userName;
|
||||
}
|
||||
@ -168,4 +173,12 @@ public class CommentBlackQuery extends PageQuery {
|
||||
public void setScope(Integer scope) {
|
||||
this.scope = scope;
|
||||
}
|
||||
|
||||
public Integer getStatus() {
|
||||
return status;
|
||||
}
|
||||
|
||||
public void setStatus(Integer status) {
|
||||
this.status = status;
|
||||
}
|
||||
}
|
||||
|
||||
@ -155,6 +155,7 @@ public class CommentBlackService {
|
||||
QueryWrapper<CommentBlack> wrapper = Wrappers.query();
|
||||
wrapper.like(StrUtil.isNotEmpty(query.getUserName()), "user_name", query.getUserName())
|
||||
.eq(StrUtil.isNotEmpty(query.getPhone()), "phone", query.getPhone())
|
||||
.eq(query.getStatus() != null, "status", query.getStatus())
|
||||
.eq(query.getType() != null, "type", query.getType())
|
||||
.eq(query.getProductType() != null, "product_type", query.getProductType())
|
||||
.eq(query.getProductType() != null && query.getProductId() != null, "product_id", query.getProductId())
|
||||
|
||||
@ -137,7 +137,6 @@ public class AdminGroupMessageController {
|
||||
public CommonResult<Void> setFirstAudit(
|
||||
@Validated @RequestBody @ApiParam(required = true) GroupMessageStatusQuery query,
|
||||
@RequestAttribute(value = "backendUser", required = false) BackendUserVO backendUser) {
|
||||
|
||||
if (backendUser == null) {
|
||||
throw new BizException(ResponseStatus.SESSION_EXPIRY);
|
||||
}
|
||||
|
||||
@ -53,11 +53,9 @@ public class SaveGroupQuery {
|
||||
private Integer pageId;
|
||||
|
||||
@ApiModelProperty("原价")
|
||||
@NotNull
|
||||
private BigDecimal originalPrice;
|
||||
|
||||
@ApiModelProperty("活动价")
|
||||
@NotNull
|
||||
private BigDecimal activityPrice;
|
||||
|
||||
@ApiModelProperty("支付链接")
|
||||
@ -268,5 +266,4 @@ public class SaveGroupQuery {
|
||||
this.wechatWorkId = wechatWorkId;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@ -103,10 +103,11 @@ public class AdminGroupMessageService {
|
||||
if (GroupMessageStatus.DELETED.equals(targetStatus)) {
|
||||
groupCacheService.removeMessage(groupMessageInDB);
|
||||
} else if (GroupMessageStatus.AUDITED.equals(targetStatus)) {
|
||||
if (!IsOrNot.IS.value.equals(group.getFirstAudit())) {
|
||||
if (IsOrNot.IS.value.equals(group.getFirstAudit())) {
|
||||
groupMessageService.publishMessage(groupMessageInDB);
|
||||
}
|
||||
}
|
||||
clearCache(query.getId());
|
||||
}
|
||||
|
||||
public AppPager<GroupMessageVO> getMessageList(ListGroupMessageQuery query, BackendUserVO backendUser) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user