diff --git a/6.program/wms-basic/src/main/java/com/mt/wms/basic/params/WarehouseParam.java b/6.program/wms-basic/src/main/java/com/mt/wms/basic/params/WarehouseParam.java
index 441606b..a59d549 100644
--- a/6.program/wms-basic/src/main/java/com/mt/wms/basic/params/WarehouseParam.java
+++ b/6.program/wms-basic/src/main/java/com/mt/wms/basic/params/WarehouseParam.java
@@ -61,4 +61,22 @@ public class WarehouseParam extends BaseParam {
*/
@ApiModelProperty(value = "描述",required = true, example = "1")
private String description;
+
+ /**
+ * 英文名称
+ */
+ @ApiModelProperty(value = "英文名称",required = false, example = "1")
+ private String englishName;
+
+ /**
+ * 别名
+ */
+ @ApiModelProperty(value = "英文名称",required = false, example = "1")
+ private String aliasName;
+
+ /**
+ * 库位数量
+ */
+ @ApiModelProperty(value = "英文名称",required = true, example = "1")
+ private Integer number;
}
diff --git a/6.program/wms-basic/src/main/java/com/mt/wms/basic/vo/WarehouseVo.java b/6.program/wms-basic/src/main/java/com/mt/wms/basic/vo/WarehouseVo.java
index 0e936da..6a1a5ff 100644
--- a/6.program/wms-basic/src/main/java/com/mt/wms/basic/vo/WarehouseVo.java
+++ b/6.program/wms-basic/src/main/java/com/mt/wms/basic/vo/WarehouseVo.java
@@ -57,4 +57,21 @@ public class WarehouseVo extends BaseVo implements PageVo.ConvertVo{
*/
@ApiModelProperty(value = "描述信息", example = "1")
private String description;
+ /**
+ * 英文名称
+ */
+ @ApiModelProperty(value = "英文名称",example = "1")
+ private String englishName;
+
+ /**
+ * 别名
+ */
+ @ApiModelProperty(value = "英文名称",example = "1")
+ private String aliasName;
+
+ /**
+ * 库位数量
+ */
+ @ApiModelProperty(value = "英文名称",example = "1")
+ private Integer number;
}
diff --git a/6.program/wms-core/src/main/java/com/mt/wms/core/dal/entity/Warehouse.java b/6.program/wms-core/src/main/java/com/mt/wms/core/dal/entity/Warehouse.java
index 929dc64..6039cdd 100644
--- a/6.program/wms-core/src/main/java/com/mt/wms/core/dal/entity/Warehouse.java
+++ b/6.program/wms-core/src/main/java/com/mt/wms/core/dal/entity/Warehouse.java
@@ -19,7 +19,7 @@ import lombok.experimental.Accessors;
*
*
* @author mt
- * @since 2021-11-18
+ * @since 2021-12-10
*/
@Data
@EqualsAndHashCode(callSuper = false)
@@ -71,7 +71,7 @@ public class Warehouse extends Model {
private String version;
/**
- * 状态 0初始化
+ * 状态 0初始化,1已占用
*/
@TableField("status")
private Integer status;
@@ -118,6 +118,24 @@ public class Warehouse extends Model {
@TableField("note")
private String note;
+ /**
+ * 英文名称
+ */
+ @TableField("english_name")
+ private String englishName;
+
+ /**
+ * 别名
+ */
+ @TableField("alias_name")
+ private String aliasName;
+
+ /**
+ * 库位数量
+ */
+ @TableField("number")
+ private Integer number;
+
public static final String ID = "id";
@@ -149,6 +167,12 @@ public class Warehouse extends Model {
public static final String NOTE = "note";
+ public static final String ENGLISH_NAME = "english_name";
+
+ public static final String ALIAS_NAME = "alias_name";
+
+ public static final String NUMBER = "number";
+
@Override
protected Serializable pkVal() {
return this.id;
diff --git a/6.program/wms-core/src/main/java/com/mt/wms/core/dal/mapper/WarehouseMapper.java b/6.program/wms-core/src/main/java/com/mt/wms/core/dal/mapper/WarehouseMapper.java
index 2736627..7f2425e 100644
--- a/6.program/wms-core/src/main/java/com/mt/wms/core/dal/mapper/WarehouseMapper.java
+++ b/6.program/wms-core/src/main/java/com/mt/wms/core/dal/mapper/WarehouseMapper.java
@@ -9,7 +9,7 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
*
*
* @author mt
- * @since 2021-11-18
+ * @since 2021-12-10
*/
public interface WarehouseMapper extends BaseMapper {
diff --git a/6.program/wms-core/src/main/java/com/mt/wms/core/dal/mapper/WarehouseMapper.xml b/6.program/wms-core/src/main/java/com/mt/wms/core/dal/mapper/WarehouseMapper.xml
index 2fc14db..19a347b 100644
--- a/6.program/wms-core/src/main/java/com/mt/wms/core/dal/mapper/WarehouseMapper.xml
+++ b/6.program/wms-core/src/main/java/com/mt/wms/core/dal/mapper/WarehouseMapper.xml
@@ -19,11 +19,14 @@
+
+
+
- id, valid, create_time, creator_id, updater_id, update_time, version, status, inter_code, code, factory_id, warehouse_name, spec, description, note
+ id, valid, create_time, creator_id, updater_id, update_time, version, status, inter_code, code, factory_id, warehouse_name, spec, description, note, english_name, alias_name, number
diff --git a/6.program/wms-core/src/main/java/com/mt/wms/core/dal/service/WarehouseServiceBiz.java b/6.program/wms-core/src/main/java/com/mt/wms/core/dal/service/WarehouseServiceBiz.java
index 0883fda..a75a1f3 100644
--- a/6.program/wms-core/src/main/java/com/mt/wms/core/dal/service/WarehouseServiceBiz.java
+++ b/6.program/wms-core/src/main/java/com/mt/wms/core/dal/service/WarehouseServiceBiz.java
@@ -9,7 +9,7 @@ import com.baomidou.mybatisplus.extension.service.IService;
*
*
* @author mt
- * @since 2021-11-18
+ * @since 2021-12-10
*/
public interface WarehouseServiceBiz extends IService {
diff --git a/6.program/wms-core/src/main/java/com/mt/wms/core/dal/service/impl/WarehouseServiceBizImpl.java b/6.program/wms-core/src/main/java/com/mt/wms/core/dal/service/impl/WarehouseServiceBizImpl.java
index 3206aad..5af80aa 100644
--- a/6.program/wms-core/src/main/java/com/mt/wms/core/dal/service/impl/WarehouseServiceBizImpl.java
+++ b/6.program/wms-core/src/main/java/com/mt/wms/core/dal/service/impl/WarehouseServiceBizImpl.java
@@ -12,7 +12,7 @@ import org.springframework.stereotype.Service;
*
*
* @author mt
- * @since 2021-11-18
+ * @since 2021-12-10
*/
@Service
public class WarehouseServiceBizImpl extends ServiceImpl implements WarehouseServiceBiz {
diff --git a/6.program/wms-empty/src/main/java/com/mt/wms/empty/task/TaskDistanceUtils.java b/6.program/wms-empty/src/main/java/com/mt/wms/empty/task/TaskDistanceUtils.java
new file mode 100644
index 0000000..daa4b64
--- /dev/null
+++ b/6.program/wms-empty/src/main/java/com/mt/wms/empty/task/TaskDistanceUtils.java
@@ -0,0 +1,33 @@
+package com.mt.wms.empty.task;
+
+import java.util.List;
+
+/**
+ * @Author: liguanghao
+ * @Date: 2021/12/1 16:56
+ * @Version 1.0
+ */
+public class TaskDistanceUtils {
+ /**
+ *计算各个空闲小车执行此任务的路径长度,传入任务起终点,返回一个小车ID
+ */
+ public static Long chooseVehicle(String startPoint,String endPoint){
+ //计算任务起点到终点的距离
+
+ //计算空闲小车当前位置到起点的距离
+
+ //计算得出总距离最短的小车
+
+ return null;
+ }
+ /**
+ * 计算正在执行任务的小车本次任务的剩余路径经过的点位集合
+ */
+ public static List getPointList(){
+ //获取小车当前位置
+
+ //计算小车当前位置到任务起点-任务起点到任务终点的路径点集合
+
+ return null;
+ }
+}
diff --git a/6.program/wms-empty/src/main/java/com/mt/wms/empty/task/VehicleCollisionUtils.java b/6.program/wms-empty/src/main/java/com/mt/wms/empty/task/VehicleCollisionUtils.java
new file mode 100644
index 0000000..b67f758
--- /dev/null
+++ b/6.program/wms-empty/src/main/java/com/mt/wms/empty/task/VehicleCollisionUtils.java
@@ -0,0 +1,14 @@
+package com.mt.wms.empty.task;
+
+/**
+ * @Author: liguanghao
+ * @Date: 2021/12/1 16:38
+ * @Version 1.0
+ */
+//计算车辆路径是否冲突的方法,若只有一辆车空闲,计算是否冲突,
+// 若两辆车都空闲且路径冲突,离起点近的那辆车计算避让出起点的距离,离终点近的那辆车计算出避让出终点的距离,取小
+public class VehicleCollisionUtils {
+ //获取当前车辆执行任务的路径,与其他正在执行任务的车辆路径对比
+ //根据点坐标的最大最小值确定任务需要经过的点的集合,再根据车辆自身大小加上安全距离包含的点位
+ //比较两个集合是否有相同元素
+}