瀏覽代碼

fix 解决类型转换错误bug

pengzhenggao 1 月之前
父節點
當前提交
0f4196a32f

+ 1 - 1
fuintBackend/fuint-application/src/main/java/com/fuint/common/service/CartService.java

@@ -76,5 +76,5 @@ public interface CartService extends IService<MtCart> {
      * @param  isVisitor 是否游客
      * @return
      */
-    MtCart setHangNo(Integer cartId, String hangNo, String isVisitor) throws BusinessCheckException;
+    MtCart setHangNo(Long cartId, String hangNo, String isVisitor) throws BusinessCheckException;
 }

+ 1 - 1
fuintBackend/fuint-application/src/main/java/com/fuint/common/service/impl/CartServiceImpl.java

@@ -309,7 +309,7 @@ public class CartServiceImpl extends ServiceImpl<MtCartMapper, MtCart> implement
     @Override
     @OperationServiceLog(description = "执行挂单")
     @Transactional(rollbackFor = Exception.class)
-    public MtCart setHangNo(Integer cartId, String hangNo, String isVisitor) throws BusinessCheckException {
+    public MtCart setHangNo(Long cartId, String hangNo, String isVisitor) throws BusinessCheckException {
         MtCart mtCart = mtCartMapper.selectById(cartId);
         if (mtCart != null) {
             mtCart.setHangNo(hangNo);

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

@@ -379,7 +379,7 @@ public class BackendCashierController extends BaseController {
             String[] ids = cartIds.split(",");
             if (ids.length > 0) {
                 for (int i = 0; i < ids.length; i++) {
-                     cartService.setHangNo(Integer.parseInt(ids[i]), hangNo, isVisitor);
+                     cartService.setHangNo(Long.valueOf(ids[i]), hangNo, isVisitor);
                 }
             }
         }