Pārlūkot izejas kodu

修复不能操作非自己的订单bug;

codingliang 2 gadi atpakaļ
vecāks
revīzija
37d743281f

+ 1 - 1
src/main/java/com/sqx/modules/errand/service/impl/TbIndentServiceImpl.java

@@ -1391,7 +1391,7 @@ public class TbIndentServiceImpl extends ServiceImpl<TbIndentDao, TbIndent> impl
             throw new SqxException("无效的配送单id");
         }
 
-        if (indent.getRiderUserId() != currentUserId) {
+        if (!indent.getRiderUserId().equals(currentUserId)) {
             throw new SqxException("不能操作非自己的订单");
         }