Forráskód Böngészése

fix:收银台初始化时integer overflow导致商品列表等信息不显示

survive 1 hete
szülő
commit
9a87356468

+ 1 - 1
fuintBackend/fuint-application/src/main/java/com/fuint/module/backendApi/controller/BackendCashierController.java

@@ -113,7 +113,7 @@ public class BackendCashierController extends BaseController {
             return getFailureResult(1001, "请先登录");
         }
 
-        TAccount accountInfo = accountService.getAccountInfoById((long) Math.toIntExact(accountDto.getId()));
+        TAccount accountInfo = accountService.getAccountInfoById((accountDto.getId()));
         Long storeId = (accountInfo.getStoreId() == null || accountInfo.getStoreId() < 1) ? 0 : accountInfo.getStoreId();
         MtStore storeInfo = null;
         if (storeId == null || storeId < 1) {