Browse Source

fix:修改餐桌状态接口

huangjinliang 1 week ago
parent
commit
e6f38ce3f4

+ 0 - 5
fuintBackend/fuint-application/src/main/java/com/fuint/common/service/impl/TableInfoServiceImpl.java

@@ -125,11 +125,6 @@ public class TableInfoServiceImpl extends ServiceImpl<MtTableInfoMapper, MtTable
     @Transactional(rollbackFor = Exception.class)
     @OperationServiceLog(description = "更新餐桌信息")
     public MtTableInfo updateTableInfo(MtTableInfo mtTableInfo) throws BusinessCheckException {
-        mtTableInfo = queryTableInfoById(mtTableInfo.getId());
-        if (mtTableInfo == null) {
-            throw new BusinessCheckException("该餐桌信息状态异常");
-        }
-        mtTableInfo.setUpdateTime(new Date());
         mtTableInfoMapper.updateById(mtTableInfo);
         return mtTableInfo;
     }

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

@@ -91,8 +91,8 @@ public class BackendTableInfoController extends BaseController {
         if (mtTableInfo == null) {
             return getFailureResult(201);
         }
+        mtTableInfo.setTableStatus(Integer.parseInt(status));
 
-        String operator = accountInfo.getAccountName();
         tableInfoService.updateTableInfo(mtTableInfo);
 
         return getSuccessResult(true);