|
|
@@ -29,6 +29,7 @@ import io.swagger.annotations.ApiParam;
|
|
|
import lombok.AllArgsConstructor;
|
|
|
import org.springblade.client.entity.CorpsDesc;
|
|
|
import org.springblade.client.entity.StorageDesc;
|
|
|
+import org.springblade.client.entity.StorageType;
|
|
|
import org.springblade.client.feign.ICorpsDescClient;
|
|
|
import org.springblade.client.feign.IRedisClient;
|
|
|
import org.springblade.client.feign.IStorageClient;
|
|
|
@@ -142,7 +143,7 @@ public class DeliveryController extends BladeController {
|
|
|
redisClient.basicData("all");
|
|
|
List<CorpsDesc> corpsDescList = castToList(redisTemplate.opsForValue().get("corps"), CorpsDesc.class);
|
|
|
List<User> userList = castToList(redisTemplate.opsForValue().get("user"), User.class);
|
|
|
- List<StorageDesc> storageDescList = castToList(redisTemplate.opsForValue().get("storageType"), StorageDesc.class);
|
|
|
+ List<StorageType> storageDescList = castToList(redisTemplate.opsForValue().get("storageType"), StorageType.class);
|
|
|
|
|
|
if (CollectionUtils.isNotEmpty(pages.getRecords())){
|
|
|
pages.getRecords().forEach(item ->{
|
|
|
@@ -172,7 +173,7 @@ public class DeliveryController extends BladeController {
|
|
|
}
|
|
|
//仓库信息
|
|
|
if (item.getStorageId() != null){
|
|
|
- StorageDesc storageDesc = storageDescList.stream().filter(e -> e.getId().equals(item.getStorageId())).findFirst().orElse(null);
|
|
|
+ StorageType storageDesc = storageDescList.stream().filter(e -> e.getId().equals(item.getStorageId())).findFirst().orElse(null);
|
|
|
if(storageDesc!=null)
|
|
|
{
|
|
|
item.setStorageName(storageDesc.getCname());
|
|
|
@@ -233,7 +234,7 @@ public class DeliveryController extends BladeController {
|
|
|
redisClient.basicData("all");
|
|
|
List<CorpsDesc> corpsDescList = castToList(redisTemplate.opsForValue().get("corps"), CorpsDesc.class);
|
|
|
List<User> userList = castToList(redisTemplate.opsForValue().get("user"), User.class);
|
|
|
- List<StorageDesc> storageDescList = castToList(redisTemplate.opsForValue().get("storageDesc"), StorageDesc.class);
|
|
|
+ List<StorageType> storageDescList = castToList(redisTemplate.opsForValue().get("storageType"), StorageType.class);
|
|
|
|
|
|
if (CollectionUtils.isNotEmpty(list)){
|
|
|
list.forEach(item ->{
|
|
|
@@ -263,10 +264,10 @@ public class DeliveryController extends BladeController {
|
|
|
}
|
|
|
//仓库信息
|
|
|
if (item.getStorageId() != null){
|
|
|
- StorageDesc storageDesc = storageDescList.stream().filter(e -> e.getId().equals(item.getStorageId())).findFirst().orElse(null);
|
|
|
- if(storageDesc!=null)
|
|
|
+ StorageType storageType = storageDescList.stream().filter(e -> e.getId().equals(item.getStorageId())).findFirst().orElse(null);
|
|
|
+ if(storageType!=null)
|
|
|
{
|
|
|
- item.setStorageName(storageDesc.getCname());
|
|
|
+ item.setStorageName(storageType.getCname());
|
|
|
}
|
|
|
}
|
|
|
|