xiaochen 2 år sedan
förälder
incheckning
9805ba1fe8

+ 1 - 1
src/main/java/com/tld/service/impl/DictionaryServiceImpl.java

@@ -63,7 +63,7 @@ public class DictionaryServiceImpl implements DictionaryService {
                         dictionaryMapper.addTreasuryAccount(dictionary);
                     }else if (dictionary.getType().equals("仓库")){
                         //添加库位信息
-                        String storageLocationCode = "XN"+snowflakeUtil.nextId()+"" ; // XN+雪花算法
+                        String storageLocationCode = "XNKW"+snowflakeUtil.nextId()+"" ; // XN+雪花算法
                         String warehouseWhere = dictionary.getTldId();// tldId
                         String storageLocationName = dictionary.getName()+"虚拟库位" ;// 仓库名称+虚拟库位
                         dictionaryMapper.addStorageLocation(storageLocationCode,warehouseWhere,storageLocationName);

+ 1 - 1
src/main/resources/mapper/StorageLocationMapper.xml

@@ -98,7 +98,7 @@
                storage_location_code,
                storage_location_name,
                warehouse_where,
-               storage_location_type,
+               if(storage_location_type = '', '暂无' , storage_location_type) as storageLocationType,
                storage_location_capacity,
                case is_not_disable when '1' then '是' when '0' then '不是' END as isNotDisable,
                create_time