申请接口 报错文本处理
This commit is contained in:
parent
987b51d00e
commit
fc2e03f0be
@ -54,7 +54,7 @@ public class ApplyJoinFamilyExe {
|
|||||||
|
|
||||||
@Transactional(rollbackFor = Exception.class)
|
@Transactional(rollbackFor = Exception.class)
|
||||||
public void execute(ApplyJoinFamilyCmd cmd) {
|
public void execute(ApplyJoinFamilyCmd cmd) {
|
||||||
String string = redisService.getString(FamilyKeys.USER_LEAVE.getKey());
|
String string = redisService.getString(FamilyKeys.USER_LEAVE.getKey(cmd.getReqUserId()));
|
||||||
ResponseAssert.isNull(FamilyErrorCode.USER_RECENT_LEAVE, string);
|
ResponseAssert.isNull(FamilyErrorCode.USER_RECENT_LEAVE, string);
|
||||||
|
|
||||||
ResponseAssert.isFalse(FamilyErrorCode.THERE_ARE_FAMILIES_ERROR, getExistFamilyByUserId(cmd));
|
ResponseAssert.isFalse(FamilyErrorCode.THERE_ARE_FAMILIES_ERROR, getExistFamilyByUserId(cmd));
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user