浏览代码

时间标签的添加

5 年之前
父节点
当前提交
928dd49286

+ 21 - 0
cloud-model/src/main/java/com/hssx/cloudmodel/controller/LngLatCompanyController.java

@@ -0,0 +1,21 @@
+package com.hssx.cloudmodel.controller;
+
+
+import org.springframework.web.bind.annotation.RequestMapping;
+
+import org.springframework.web.bind.annotation.RestController;
+
+/**
+ * <p>
+ *  前端控制器
+ * </p>
+ *
+ * @author 吴涛涛
+ * @since 2019-08-09
+ */
+@RestController
+@RequestMapping("/lnglatcompany")
+public class LngLatCompanyController {
+
+}
+

+ 110 - 0
cloud-model/src/main/java/com/hssx/cloudmodel/entity/LngLatCompany.java

@@ -0,0 +1,110 @@
+package com.hssx.cloudmodel.entity;
+
+import com.baomidou.mybatisplus.annotation.TableName;
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.extension.activerecord.Model;
+import com.baomidou.mybatisplus.annotation.TableId;
+import java.time.LocalDateTime;
+import com.baomidou.mybatisplus.annotation.TableField;
+import java.io.Serializable;
+
+/**
+ * <p>
+ * 
+ * </p>
+ *
+ * @author 吴涛涛
+ * @since 2019-08-09
+ */
+@TableName("tb_lng_lat_company")
+public class LngLatCompany extends Model<LngLatCompany> {
+
+    private static final long serialVersionUID=1L;
+
+    /**
+     * 公司经纬度表主键
+     */
+    @TableId(value = "id", type = IdType.AUTO)
+    private Integer id;
+
+    /**
+     * 经度
+     */
+    @TableField("y_lng")
+    private String yLng;
+
+    /**
+     * 纬度
+     */
+    @TableField("x_lat")
+    private String xLat;
+
+    /**
+     * 创建时间
+     */
+    @TableField("indate")
+    private LocalDateTime indate;
+
+    /**
+     * 所属生产方公司id
+     */
+    @TableField("company_id")
+    private Integer companyId;
+
+
+    public Integer getId() {
+        return id;
+    }
+
+    public void setId(Integer id) {
+        this.id = id;
+    }
+
+    public String getyLng() {
+        return yLng;
+    }
+
+    public void setyLng(String yLng) {
+        this.yLng = yLng;
+    }
+
+    public String getxLat() {
+        return xLat;
+    }
+
+    public void setxLat(String xLat) {
+        this.xLat = xLat;
+    }
+
+    public LocalDateTime getIndate() {
+        return indate;
+    }
+
+    public void setIndate(LocalDateTime indate) {
+        this.indate = indate;
+    }
+
+    public Integer getCompanyId() {
+        return companyId;
+    }
+
+    public void setCompanyId(Integer companyId) {
+        this.companyId = companyId;
+    }
+
+    @Override
+    protected Serializable pkVal() {
+        return this.id;
+    }
+
+    @Override
+    public String toString() {
+        return "LngLatCompany{" +
+        "id=" + id +
+        ", yLng=" + yLng +
+        ", xLat=" + xLat +
+        ", indate=" + indate +
+        ", companyId=" + companyId +
+        "}";
+    }
+}

+ 16 - 0
cloud-model/src/main/java/com/hssx/cloudmodel/mapper/LngLatCompanyMapper.java

@@ -0,0 +1,16 @@
+package com.hssx.cloudmodel.mapper;
+
+import com.hssx.cloudmodel.entity.LngLatCompany;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+
+/**
+ * <p>
+ *  Mapper 接口
+ * </p>
+ *
+ * @author 吴涛涛
+ * @since 2019-08-09
+ */
+public interface LngLatCompanyMapper extends BaseMapper<LngLatCompany> {
+
+}

+ 16 - 0
cloud-model/src/main/java/com/hssx/cloudmodel/service/LngLatCompanyService.java

@@ -0,0 +1,16 @@
+package com.hssx.cloudmodel.service;
+
+import com.hssx.cloudmodel.entity.LngLatCompany;
+import com.baomidou.mybatisplus.extension.service.IService;
+
+/**
+ * <p>
+ *  服务类
+ * </p>
+ *
+ * @author 吴涛涛
+ * @since 2019-08-09
+ */
+public interface LngLatCompanyService extends IService<LngLatCompany> {
+
+}

+ 20 - 0
cloud-model/src/main/java/com/hssx/cloudmodel/service/impl/LngLatCompanyServiceImpl.java

@@ -0,0 +1,20 @@
+package com.hssx.cloudmodel.service.impl;
+
+import com.hssx.cloudmodel.entity.LngLatCompany;
+import com.hssx.cloudmodel.mapper.LngLatCompanyMapper;
+import com.hssx.cloudmodel.service.LngLatCompanyService;
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import org.springframework.stereotype.Service;
+
+/**
+ * <p>
+ *  服务实现类
+ * </p>
+ *
+ * @author 吴涛涛
+ * @since 2019-08-09
+ */
+@Service
+public class LngLatCompanyServiceImpl extends ServiceImpl<LngLatCompanyMapper, LngLatCompany> implements LngLatCompanyService {
+
+}

+ 19 - 0
cloud-model/src/main/resources/mapper/LngLatCompanyMapper.xml

@@ -0,0 +1,19 @@
+<?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.hssx.cloudmodel.mapper.LngLatCompanyMapper">
+
+    <!-- 通用查询映射结果 -->
+    <resultMap id="BaseResultMap" type="com.hssx.cloudmodel.entity.LngLatCompany">
+        <id column="id" property="id" />
+        <result column="y_lng" property="yLng" />
+        <result column="x_lat" property="xLat" />
+        <result column="indate" property="indate" />
+        <result column="company_id" property="companyId" />
+    </resultMap>
+
+    <!-- 通用查询结果列 -->
+    <sql id="Base_Column_List">
+        id, y_lng, x_lat, indate, company_id
+    </sql>
+
+</mapper>