| | |
| | | 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; |
| | |
| | | convert(param, wrapper); |
| | | allLike(LocCache.class, param.keySet(), wrapper, condition); |
| | | if (!Cools.isEmpty(orderByField)){wrapper.orderBy(humpToLine(orderByField), "asc".equals(orderByType));} |
| | | wrapper.eq("full_plt", "N"); |
| | | return R.ok(locCacheService.selectPage(new Page<>(curr, limit), wrapper)); |
| | | } |
| | | |
| | |
| | | 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(); |
| | | } |
| | | |