Jelajahi Sumber

feat 仓库模块结构生成

classic_blue 1 bulan lalu
induk
melakukan
f777e491f8
14 mengubah file dengan 272 tambahan dan 0 penghapusan
  1. 0 0
      edu-travel-service/edu-travel-service-commodity/src/main/java/edu/travle/CommodityApplication.java
  2. 0 0
      edu-travel-service/edu-travel-service-warehouse/src/main/java/edu/travel/WarehouseApplication.java
  3. 97 0
      edu-travel-service/edu-travel-service-warehouse/src/main/java/edu/travel/warehouse/entity/ShopWarehouse.java
  4. 79 0
      edu-travel-service/edu-travel-service-warehouse/src/main/java/edu/travel/warehouse/entity/ShopWarehouseStaff.java
  5. 7 0
      edu-travel-service/edu-travel-service-warehouse/src/main/java/edu/travel/warehouse/mapper/ShopWarehouseMapper.java
  6. 7 0
      edu-travel-service/edu-travel-service-warehouse/src/main/java/edu/travel/warehouse/mapper/ShopWarehouseStaffMapper.java
  7. 7 0
      edu-travel-service/edu-travel-service-warehouse/src/main/java/edu/travel/warehouse/service/ShopWarehouseService.java
  8. 7 0
      edu-travel-service/edu-travel-service-warehouse/src/main/java/edu/travel/warehouse/service/ShopWarehouseStaffService.java
  9. 10 0
      edu-travel-service/edu-travel-service-warehouse/src/main/java/edu/travel/warehouse/service/impl/ShopWarehouseService.java
  10. 10 0
      edu-travel-service/edu-travel-service-warehouse/src/main/java/edu/travel/warehouse/service/impl/ShopWarehouseStaffService.java
  11. 11 0
      edu-travel-service/edu-travel-service-warehouse/src/main/java/edu/travel/warehouse/web/ShopWarehouseController.java
  12. 11 0
      edu-travel-service/edu-travel-service-warehouse/src/main/java/edu/travel/warehouse/web/ShopWarehouseStaffController.java
  13. 26 0
      edu-travel-service/edu-travel-service-warehouse/src/resources/mapper/ShopWarehouseMapper.xml
  14. 0 0
      edu-travel-service/edu-travle-service-order/src/main/java/edu/travel/OrderApplication.java

+ 0 - 0
edu-travel-service/edu-travel-service-commodity/src/main/java/edu/travle/commodity/CommodityApplication.java → edu-travel-service/edu-travel-service-commodity/src/main/java/edu/travle/CommodityApplication.java


+ 0 - 0
edu-travel-service/edu-travel-service-warehouse/src/main/java/edu/travle/warehouse/WarehouseApplication.java → edu-travel-service/edu-travel-service-warehouse/src/main/java/edu/travel/WarehouseApplication.java


+ 97 - 0
edu-travel-service/edu-travel-service-warehouse/src/main/java/edu/travel/warehouse/entity/ShopWarehouse.java

@@ -0,0 +1,97 @@
+package edu.travel.tenant.entity;
+
+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 java.util.Date;
+import lombok.AllArgsConstructor;
+import lombok.Data;
+import lombok.NoArgsConstructor;
+
+/**
+ * 库房表
+ */
+@Data
+@AllArgsConstructor
+@NoArgsConstructor
+@TableName(value = "shop_warehouse")
+public class ShopWarehouse {
+    /**
+     * 库房表ID
+     */
+    @TableId(value = "id", type = IdType.ASSIGN_ID)
+    private Long id;
+
+    /**
+     * 0是总仓
+     */
+    @TableField(value = "parent_id")
+    private Long parentId;
+
+    /**
+     * 库房名称
+     */
+    @TableField(value = "warehouse_name")
+    private String warehouseName;
+
+    /**
+     * 经度
+     */
+    @TableField(value = "longitude")
+    private String longitude;
+
+    /**
+     * 维度
+     */
+    @TableField(value = "latitude")
+    private String latitude;
+
+    /**
+     * 国家ID
+     */
+    @TableField(value = "country_id")
+    private String countryId;
+
+    /**
+     * 库房详细地址
+     */
+    @TableField(value = "detailed_address")
+    private String detailedAddress;
+
+    /**
+     * 系统标识
+     */
+    @TableField(value = "project")
+    private String project;
+
+    /**
+     * 创建时间
+     */
+    @TableField(value = "create_time")
+    private Date createTime;
+
+    /**
+     * 创建人
+     */
+    @TableField(value = "create_user_id")
+    private String createUserId;
+
+    /**
+     * 更新时间
+     */
+    @TableField(value = "update_time")
+    private Date updateTime;
+
+    /**
+     * 更新人id
+     */
+    @TableField(value = "update_user_id")
+    private String updateUserId;
+
+    /**
+     * 删除标记 0正常 1删除
+     */
+    @TableField(value = "delete_flag")
+    private Integer deleteFlag;
+}

+ 79 - 0
edu-travel-service/edu-travel-service-warehouse/src/main/java/edu/travel/warehouse/entity/ShopWarehouseStaff.java

@@ -0,0 +1,79 @@
+package edu.travel.tenant.entity;
+
+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 java.util.Date;
+import lombok.AllArgsConstructor;
+import lombok.Data;
+import lombok.NoArgsConstructor;
+
+/**
+ * 库房人员关联表
+ */
+@Data
+@AllArgsConstructor
+@NoArgsConstructor
+@TableName(value = "shop_warehouse_staff")
+public class ShopWarehouseStaff {
+    /**
+     * ID
+     */
+    @TableId(value = "id", type = IdType.ASSIGN_ID)
+    private Long id;
+
+    /**
+     * 库房ID
+     */
+    @TableField(value = "warehouse_id")
+    private Long warehouseId;
+
+    /**
+     * 用户ID
+     */
+    @TableField(value = "user_id")
+    private Long userId;
+
+    /**
+     * 角色
+     */
+    @TableField(value = "role_id")
+    private Long roleId;
+
+    /**
+     * 系统标识
+     */
+    @TableField(value = "project")
+    private String project;
+
+    /**
+     * 创建时间
+     */
+    @TableField(value = "create_time")
+    private Date createTime;
+
+    /**
+     * 创建人
+     */
+    @TableField(value = "create_user_id")
+    private String createUserId;
+
+    /**
+     * 更新时间
+     */
+    @TableField(value = "update_time")
+    private Date updateTime;
+
+    /**
+     * 更新人id
+     */
+    @TableField(value = "update_user_id")
+    private String updateUserId;
+
+    /**
+     * 删除标记 0正常 1删除
+     */
+    @TableField(value = "delete_flag")
+    private Integer deleteFlag;
+}

+ 7 - 0
edu-travel-service/edu-travel-service-warehouse/src/main/java/edu/travel/warehouse/mapper/ShopWarehouseMapper.java

@@ -0,0 +1,7 @@
+package edu.travel.tenant.mapper;
+
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import edu.travel.tenant.entity.ShopWarehouse;
+
+public interface ShopWarehouseMapper extends BaseMapper<ShopWarehouse> {
+}

+ 7 - 0
edu-travel-service/edu-travel-service-warehouse/src/main/java/edu/travel/warehouse/mapper/ShopWarehouseStaffMapper.java

@@ -0,0 +1,7 @@
+package edu.travel.tenant.mapper;
+
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import edu.travel.tenant.entity.ShopWarehouseStaff;
+
+public interface ShopWarehouseStaffMapper extends BaseMapper<ShopWarehouseStaff> {
+}

+ 7 - 0
edu-travel-service/edu-travel-service-warehouse/src/main/java/edu/travel/warehouse/service/ShopWarehouseService.java

@@ -0,0 +1,7 @@
+package edu.travel.tenant.service;
+
+import com.baomidou.mybatisplus.extension.service.IService;
+
+public interface ShopWarehouseService extends IService<ShopWarehouse> {
+
+}

+ 7 - 0
edu-travel-service/edu-travel-service-warehouse/src/main/java/edu/travel/warehouse/service/ShopWarehouseStaffService.java

@@ -0,0 +1,7 @@
+package edu.travel.tenant.service;
+
+import com.baomidou.mybatisplus.extension.service.IService;
+
+public interface ShopWarehouseStaffService extends IService<ShopWarehouseStaff> {
+
+}

+ 10 - 0
edu-travel-service/edu-travel-service-warehouse/src/main/java/edu/travel/warehouse/service/impl/ShopWarehouseService.java

@@ -0,0 +1,10 @@
+package edu.travel.tenant.service;
+
+import org.springframework.stereotype.Service;
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import edu.travel.tenant.mapper.ShopWarehouseMapper;
+import edu.travel.tenant.entity.ShopWarehouse;
+@Service
+public class ShopWarehouseService extends ServiceImpl<ShopWarehouseMapper, ShopWarehouse> {
+
+}

+ 10 - 0
edu-travel-service/edu-travel-service-warehouse/src/main/java/edu/travel/warehouse/service/impl/ShopWarehouseStaffService.java

@@ -0,0 +1,10 @@
+package edu.travel.tenant.service;
+
+import org.springframework.stereotype.Service;
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import edu.travel.tenant.mapper.ShopWarehouseStaffMapper;
+import edu.travel.tenant.entity.ShopWarehouseStaff;
+@Service
+public class ShopWarehouseStaffService extends ServiceImpl<ShopWarehouseStaffMapper, ShopWarehouseStaff> {
+
+}

+ 11 - 0
edu-travel-service/edu-travel-service-warehouse/src/main/java/edu/travel/warehouse/web/ShopWarehouseController.java

@@ -0,0 +1,11 @@
+package edu.travel.tenant.web;
+
+import edu.travel.web.BaseController;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+
+
+@RestController
+public class ShopWarehouseController extends BaseController<ShopWarehouse> {
+
+}

+ 11 - 0
edu-travel-service/edu-travel-service-warehouse/src/main/java/edu/travel/warehouse/web/ShopWarehouseStaffController.java

@@ -0,0 +1,11 @@
+package edu.travel.tenant.web;
+
+import edu.travel.web.BaseController;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+
+
+@RestController
+public class ShopWarehouseController extends BaseController<ShopWarehouseStaff> {
+
+}

+ 26 - 0
edu-travel-service/edu-travel-service-warehouse/src/resources/mapper/ShopWarehouseMapper.xml

@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="edu.travel.tenant.mapper.ShopWarehouseMapper">
+  <resultMap id="BaseResultMap" type="edu.travel.tenant.entity.ShopWarehouse">
+    <!--@mbg.generated-->
+    <!--@Table shop_warehouse-->
+    <id column="id" jdbcType="BIGINT" property="id" />
+    <result column="parent_id" jdbcType="BIGINT" property="parentId" />
+    <result column="warehouse_name" jdbcType="VARCHAR" property="warehouseName" />
+    <result column="longitude" jdbcType="VARCHAR" property="longitude" />
+    <result column="latitude" jdbcType="VARCHAR" property="latitude" />
+    <result column="country_id" jdbcType="VARCHAR" property="countryId" />
+    <result column="detailed_address" jdbcType="VARCHAR" property="detailedAddress" />
+    <result column="project" jdbcType="VARCHAR" property="project" />
+    <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
+    <result column="create_user_id" jdbcType="VARCHAR" property="createUserId" />
+    <result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
+    <result column="update_user_id" jdbcType="VARCHAR" property="updateUserId" />
+    <result column="delete_flag" jdbcType="INTEGER" property="deleteFlag" />
+  </resultMap>
+  <sql id="Base_Column_List">
+    <!--@mbg.generated-->
+    id, parent_id, warehouse_name, longitude, latitude, country_id, detailed_address, 
+    project, create_time, create_user_id, update_time, update_user_id, delete_flag
+  </sql>
+</mapper>

+ 0 - 0
edu-travel-service/edu-travle-service-order/src/main/java/edu/travel/order/OrderApplication.java → edu-travel-service/edu-travle-service-order/src/main/java/edu/travel/OrderApplication.java