zhangyuewww 2 년 전
부모
커밋
e617d74c0e

+ 2 - 2
winsea-haixin-plugin-wangluohuoyun/src/main/java/com/yh/saas/plugin/GeneratorCodeByTables.java

@@ -29,7 +29,7 @@ public class GeneratorCodeByTables {
 
     private static final String DATA_SOURCE_PREFIX = "spring.datasource.";
 
-    private static final String DATA_SOURCE_URL = "jdbc:mysql://47.100.3.209:3306/wlhy?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull&allowMultiQueries=true&useSSL=false&serverTimezone=UTC";
+    private static final String DATA_SOURCE_URL = "jdbc:mysql://106.14.75.12:3306/wlhy?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull&allowMultiQueries=true&useSSL=false&serverTimezone=UTC";
 
     private static final String DATA_SOURCE_USERNAME = "root";
 
@@ -53,7 +53,7 @@ public class GeneratorCodeByTables {
     }
 
     public static void main(String[] args) throws IOException {
-        generateByTables("Gdc", "com.yh.saas.plugin.yiliangyiyun","hy_bind_car_captain_info","hy_car_captain_info");
+        generateByTables("Gdc", "com.yh.saas.plugin.yiliangyiyun","hy_release_goods_info");
     }
 
     /**

+ 21 - 0
winsea-haixin-plugin-wangluohuoyun/src/main/java/com/yh/saas/plugin/yiliangyiyun/controller/HyReleaseGoodsInfoController.java

@@ -0,0 +1,21 @@
+package com.yh.saas.plugin.yiliangyiyun.controller;
+
+
+import org.springframework.web.bind.annotation.RequestMapping;
+
+import org.springframework.web.bind.annotation.RestController;
+
+/**
+ * <p>
+ * 记录货站发布信息 前端控制器
+ * </p>
+ *
+ * @author Gdc
+ * @since 2023-06-02
+ */
+@RestController
+@RequestMapping("/hyReleaseGoodsInfo")
+public class HyReleaseGoodsInfoController {
+
+}
+

+ 182 - 0
winsea-haixin-plugin-wangluohuoyun/src/main/java/com/yh/saas/plugin/yiliangyiyun/entity/HyReleaseGoodsInfo.java

@@ -0,0 +1,182 @@
+package com.yh.saas.plugin.yiliangyiyun.entity;
+
+import java.io.Serializable;
+
+import com.baomidou.mybatisplus.annotations.TableId;
+import com.baomidou.mybatisplus.annotations.TableName;
+
+import com.baomidou.mybatisplus.enums.IdType;
+import com.yh.saas.common.support.entity.BaseModel;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+import lombok.experimental.Accessors;
+
+/**
+ * <p>
+ * 记录货站发布信息
+ * </p>
+ *
+ * @author Gdc
+ * @since 2023-06-02
+ */
+@Data
+@EqualsAndHashCode(callSuper = true)
+@Accessors(chain = true)
+@TableName("hy_release_goods_info")
+public class HyReleaseGoodsInfo extends BaseModel<HyReleaseGoodsInfo> {
+
+    private static final long serialVersionUID = 1L;
+
+    /**
+     * 主键
+     */
+    @TableId(type = IdType.UUID)
+    private String id;
+    /**
+     * 发布货主id
+     */
+    private String commonId;
+    /**
+     * 发货地省
+     */
+    private String sendPrivate;
+    /**
+     * 发货地市
+     */
+    private String sendCity;
+    /**
+     * 发货地区
+     */
+    private String sendArea;
+    /**
+     * 发货地详细地址
+     */
+    private String sendDetailedAddress;
+    /**
+     * 发货地经度
+     */
+    private String sendLongitude;
+    /**
+     * 发货地纬度
+     */
+    private String sendLatitude;
+    /**
+     * 发货地行政区划代码
+     */
+    private String sendAdCode;
+    /**
+     * 收货地行政区划代码
+     */
+    private String unsendAdCode;
+    /**
+     * 收货地经度
+     */
+    private String unsendLongitude;
+    /**
+     * 收货地纬度
+     */
+    private String unsendLatitude;
+    /**
+     * 收货地省
+     */
+    private String unloadPrivate;
+    /**
+     * 收货地市
+     */
+    private String unloadCity;
+    /**
+     * 收货地区
+     */
+    private String unloadArea;
+    /**
+     * 收货地详细地址
+     */
+    private String unloadDetailedAddress;
+    /**
+     * 货距
+     */
+    private Double cargoDistance;
+    /**
+     * 货名
+     */
+    private String goodsName;
+    /**
+     * 包装类型
+     */
+    private String packageType;
+    /**
+     * 计量方式
+     */
+    private String measuringMethod;
+    /**
+     * 货物重量(吨)
+     */
+    private Double weight;
+    /**
+     * 货物体积(方)
+     */
+    private Double volume;
+    /**
+     * 预计用车数量
+     */
+    private Integer expectedNum;
+    /**
+     * 车型
+     */
+    private String carModel;
+    /**
+     * 车长
+     */
+    private String carLength;
+    /**
+     * 运价单位(0吨,1车,2方)
+     */
+    private String billingMethod;
+    /**
+     * 运价
+     */
+    private Double freightPrice;
+    /**
+     * 联系人
+     */
+    private String contacts;
+    /**
+     * 联系人电话
+     */
+    private String contactsPhone;
+    /**
+     * 货站名称
+     */
+    private String freightStationName;
+    /**
+     * 装车日期
+     */
+    private String loadingDate;
+    /**
+     * 时段
+     */
+    private String periodOfTime;
+    /**
+     * 备注
+     */
+    private String remark;
+    /**
+     * 货站信息费
+     */
+    private Double stationFee;
+    /**
+     * 常发标识(1常发)
+     */
+    private String oftenFlag;
+    /**
+     * 货源状态(已上架/已下架)
+     */
+    private String status;
+
+
+    @Override
+    protected Serializable pkVal() {
+        return this.id;
+    }
+
+}

+ 16 - 0
winsea-haixin-plugin-wangluohuoyun/src/main/java/com/yh/saas/plugin/yiliangyiyun/mapper/HyReleaseGoodsInfoMapper.java

@@ -0,0 +1,16 @@
+package com.yh.saas.plugin.yiliangyiyun.mapper;
+
+import com.yh.saas.plugin.yiliangyiyun.entity.HyReleaseGoodsInfo;
+import com.baomidou.mybatisplus.mapper.BaseMapper;
+
+/**
+ * <p>
+ * 记录货站发布信息 Mapper 接口
+ * </p>
+ *
+ * @author Gdc
+ * @since 2023-06-02
+ */
+public interface HyReleaseGoodsInfoMapper extends BaseMapper<HyReleaseGoodsInfo> {
+
+}

+ 16 - 0
winsea-haixin-plugin-wangluohuoyun/src/main/java/com/yh/saas/plugin/yiliangyiyun/service/IHyReleaseGoodsInfoService.java

@@ -0,0 +1,16 @@
+package com.yh.saas.plugin.yiliangyiyun.service;
+
+import com.yh.saas.plugin.yiliangyiyun.entity.HyReleaseGoodsInfo;
+import com.baomidou.mybatisplus.service.IService;
+
+/**
+ * <p>
+ * 记录货站发布信息 服务类
+ * </p>
+ *
+ * @author Gdc
+ * @since 2023-06-02
+ */
+public interface IHyReleaseGoodsInfoService extends IService<HyReleaseGoodsInfo> {
+
+}

+ 20 - 0
winsea-haixin-plugin-wangluohuoyun/src/main/java/com/yh/saas/plugin/yiliangyiyun/service/impl/HyReleaseGoodsInfoServiceImpl.java

@@ -0,0 +1,20 @@
+package com.yh.saas.plugin.yiliangyiyun.service.impl;
+
+import com.yh.saas.plugin.yiliangyiyun.entity.HyReleaseGoodsInfo;
+import com.yh.saas.plugin.yiliangyiyun.mapper.HyReleaseGoodsInfoMapper;
+import com.yh.saas.plugin.yiliangyiyun.service.IHyReleaseGoodsInfoService;
+import com.baomidou.mybatisplus.service.impl.ServiceImpl;
+import org.springframework.stereotype.Service;
+
+/**
+ * <p>
+ * 记录货站发布信息 服务实现类
+ * </p>
+ *
+ * @author Gdc
+ * @since 2023-06-02
+ */
+@Service
+public class HyReleaseGoodsInfoServiceImpl extends ServiceImpl<HyReleaseGoodsInfoMapper, HyReleaseGoodsInfo> implements IHyReleaseGoodsInfoService {
+
+}

+ 5 - 0
winsea-haixin-plugin-wangluohuoyun/src/main/resources/mapper/HyReleaseGoodsInfoMapper.xml

@@ -0,0 +1,5 @@
+<?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="com.yh.saas.plugin.yiliangyiyun.mapper.HyReleaseGoodsInfoMapper">
+
+</mapper>