记得上下班打卡 | git大法好,push需谨慎

Commit 00f2b58f authored by wangyifan's avatar wangyifan

douduo-bug修复

parent 9176068d
......@@ -100,6 +100,9 @@ public class SweetDoudouServiceImpl extends ServiceImpl<SweetDoudouMapper, Sweet
if (null == vo) {
return ResponseDto.failure(ErrorMapping.get("90091"));
}
if (!vo.getDoudouId().equals(param.getDoudouId())) {
return ResponseDto.failure(ErrorMapping.get("90095"));
}
// 判断状态
if (vo.getStatus().equals(1)) {
......@@ -133,6 +136,12 @@ public class SweetDoudouServiceImpl extends ServiceImpl<SweetDoudouMapper, Sweet
return ResponseDto.failure(ErrorMapping.get("20003"));
}
SweetDouDouVo vo = redisDataUtils.getSweetDouDou(param.getUserId());
if (vo == null) {
return ResponseDto.failure(ErrorMapping.get("90091"));
}
if (!vo.getDoudouId().equals(param.getDoudouId())) {
return ResponseDto.failure(ErrorMapping.get("90095"));
}
return ResponseDto.success(vo);
}
......
......@@ -9,3 +9,4 @@
90092=\u672A\u5230\u89E3\u9501\u65F6\u95F4
90093=\u60A8\u672A\u4E2D\u7B7E
90094=\u5DF2\u88AB\u6838\u9500
90095=\u4E8C\u7EF4\u7801\u65E0\u6548
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment