自动化立体仓库 - WMS系统
skyouc
2 天以前 b4c6f129662be7fb14f71235817a24e15f824449
src/main/java/com/zy/asrs/controller/LocCacheController.java
@@ -10,6 +10,7 @@
import com.zy.asrs.entity.LocCache;
import com.zy.asrs.entity.LocMast;
import com.zy.asrs.entity.param.LocMastInitParam;
import com.zy.asrs.enums.LocAreaType;
import com.zy.asrs.service.LocCacheService;
import com.core.annotations.ManagerAuth;
import com.core.common.BaseRes;
@@ -77,7 +78,15 @@
        if (Cools.isEmpty(locCache) || null==locCache.getLocNo()){
            return R.error();
        }
        locCacheService.updateById(locCache);
        LocCache cache = locCacheService.selectOne(new EntityWrapper<LocCache>()
        .eq("loc_no", locCache.getLocNo()));
        if (Cools.isEmpty(cache)){
            return R.error("库位不存在");
        }
        cache.setSort(locCache.getSort());
        if (!locCacheService.updateById(cache)) {
            return R.error("更新失败");
        }
        return R.ok();
    }