diff --git a/src/main/java/com/glxp/api/dao/basic/SysWorkplaceQueueMapper.java b/src/main/java/com/glxp/api/dao/basic/SysWorkplaceQueueMapper.java new file mode 100644 index 000000000..e5a39b14f --- /dev/null +++ b/src/main/java/com/glxp/api/dao/basic/SysWorkplaceQueueMapper.java @@ -0,0 +1,9 @@ +package com.glxp.api.dao.basic; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.glxp.api.entity.basic.SysWorkplaceQueue; +import org.apache.ibatis.annotations.Mapper; + +@Mapper +public interface SysWorkplaceQueueMapper extends BaseMapper { +} \ No newline at end of file diff --git a/src/main/java/com/glxp/api/entity/basic/SysWorkplaceQueue.java b/src/main/java/com/glxp/api/entity/basic/SysWorkplaceQueue.java new file mode 100644 index 000000000..7bd209587 --- /dev/null +++ b/src/main/java/com/glxp/api/entity/basic/SysWorkplaceQueue.java @@ -0,0 +1,68 @@ +package com.glxp.api.entity.basic; + +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableField; +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import java.io.Serializable; +import java.util.Date; + +import lombok.Data; + +@ApiModel(description = "sys_workplace_queue") +@Data +@TableName(value = "sys_workplace_queue") +public class SysWorkplaceQueue implements Serializable { + @TableId(value = "id", type = IdType.INPUT) + @ApiModelProperty(value = "") + private Integer id; + + /** + * 货架编码 + */ + @TableField(value = "code") + @ApiModelProperty(value = "货架编码") + private String code; + + /** + * 货架名称 + */ + @TableField(value = "`name`") + @ApiModelProperty(value = "货架名称") + private String name; + + /** + * 工位ID + */ + @TableField(value = "workPlaceIdFk") + @ApiModelProperty(value = "工位ID") + private Long workPlaceIdFk; + + /** + * 备注 + */ + @TableField(value = "remark") + @ApiModelProperty(value = "备注") + private String remark; + + @TableField(value = "createTime") + @ApiModelProperty(value = "") + private Date createTime; + + @TableField(value = "updateTime") + @ApiModelProperty(value = "") + private Date updateTime; + + @TableField(value = "`createUser`") + @ApiModelProperty(value = "") + private String createUser; + + @TableField(value = "updateUser") + @ApiModelProperty(value = "") + private String updateUser; + + private static final long serialVersionUID = 1L; +} \ No newline at end of file diff --git a/src/main/java/com/glxp/api/service/basic/SysWorkplaceQueueService.java b/src/main/java/com/glxp/api/service/basic/SysWorkplaceQueueService.java new file mode 100644 index 000000000..5d98843a2 --- /dev/null +++ b/src/main/java/com/glxp/api/service/basic/SysWorkplaceQueueService.java @@ -0,0 +1,12 @@ +package com.glxp.api.service.basic; + +import org.springframework.stereotype.Service; +import javax.annotation.Resource; +import java.util.List; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.glxp.api.entity.basic.SysWorkplaceQueue; +import com.glxp.api.dao.basic.SysWorkplaceQueueMapper; +@Service +public class SysWorkplaceQueueService extends ServiceImpl { + +} diff --git a/src/main/resources/mybatis/mapper/basic/SysWorkplaceQueueMapper.xml b/src/main/resources/mybatis/mapper/basic/SysWorkplaceQueueMapper.xml new file mode 100644 index 000000000..7a93d0869 --- /dev/null +++ b/src/main/resources/mybatis/mapper/basic/SysWorkplaceQueueMapper.xml @@ -0,0 +1,21 @@ + + + + + + + + + + + + + + + + + + + id, code, `name`, workPlaceIdFk, remark, createTime, updateTime, `createUser`, updateUser + + \ No newline at end of file diff --git a/src/main/resources/schemas/schema_v2.4.sql b/src/main/resources/schemas/schema_v2.4.sql index df2676e49..5be586875 100644 --- a/src/main/resources/schemas/schema_v2.4.sql +++ b/src/main/resources/schemas/schema_v2.4.sql @@ -4567,3 +4567,22 @@ CALL Pro_Temp_ColumnWork('io_code_temp', 'drugLink', 1); + +CREATE TABLE `sys_workplace_queue` +( + `id` int NOT NULL AUTO_INCREMENT, + `code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '货架编码', + `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '货架名称', + `workPlaceIdFk` bigint NULL DEFAULT NULL COMMENT '工位ID', + `remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '备注', + `createTime` datetime(0) NULL DEFAULT NULL, + `updateTime` datetime(0) NULL DEFAULT NULL, + `createUser` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL, + `updateUser` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL, + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB + CHARACTER SET = utf8mb4 + COLLATE = utf8mb4_0900_ai_ci + ROW_FORMAT = Dynamic; + +