| | |
| | | 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; |
| | |
| | | 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(); |
| | | } |
| | | |