소스 검색

文件暂存

高家顺 3 년 전
부모
커밋
5d10661340
37개의 변경된 파일1023개의 추가작업 그리고 2개의 파일을 삭제
  1. 21 0
      src/main/java/com/macro/mall/tiny/modules/business/controller/KrBLineController.java
  2. 21 0
      src/main/java/com/macro/mall/tiny/modules/business/controller/KrBLineUploadLogController.java
  3. 21 0
      src/main/java/com/macro/mall/tiny/modules/business/controller/KrBRegionCityController.java
  4. 21 0
      src/main/java/com/macro/mall/tiny/modules/business/controller/KrBRegionCountyController.java
  5. 21 0
      src/main/java/com/macro/mall/tiny/modules/business/controller/KrBRegionProvinceController.java
  6. 21 0
      src/main/java/com/macro/mall/tiny/modules/business/controller/KrBTowerController.java
  7. 23 0
      src/main/java/com/macro/mall/tiny/modules/business/mapper/KrBLineMapper.java
  8. 16 0
      src/main/java/com/macro/mall/tiny/modules/business/mapper/KrBLineUploadLogMapper.java
  9. 16 0
      src/main/java/com/macro/mall/tiny/modules/business/mapper/KrBRegionCityMapper.java
  10. 16 0
      src/main/java/com/macro/mall/tiny/modules/business/mapper/KrBRegionCountyMapper.java
  11. 16 0
      src/main/java/com/macro/mall/tiny/modules/business/mapper/KrBRegionProvinceMapper.java
  12. 16 0
      src/main/java/com/macro/mall/tiny/modules/business/mapper/KrBTowerMapper.java
  13. 89 0
      src/main/java/com/macro/mall/tiny/modules/business/model/KrBLine.java
  14. 49 0
      src/main/java/com/macro/mall/tiny/modules/business/model/KrBLineUploadLog.java
  15. 39 0
      src/main/java/com/macro/mall/tiny/modules/business/model/KrBRegionCity.java
  16. 39 0
      src/main/java/com/macro/mall/tiny/modules/business/model/KrBRegionCounty.java
  17. 36 0
      src/main/java/com/macro/mall/tiny/modules/business/model/KrBRegionProvince.java
  18. 97 0
      src/main/java/com/macro/mall/tiny/modules/business/model/KrBTower.java
  19. 16 0
      src/main/java/com/macro/mall/tiny/modules/business/service/KrBLineService.java
  20. 16 0
      src/main/java/com/macro/mall/tiny/modules/business/service/KrBLineUploadLogService.java
  21. 16 0
      src/main/java/com/macro/mall/tiny/modules/business/service/KrBRegionCityService.java
  22. 16 0
      src/main/java/com/macro/mall/tiny/modules/business/service/KrBRegionCountyService.java
  23. 16 0
      src/main/java/com/macro/mall/tiny/modules/business/service/KrBRegionProvinceService.java
  24. 16 0
      src/main/java/com/macro/mall/tiny/modules/business/service/KrBTowerService.java
  25. 20 0
      src/main/java/com/macro/mall/tiny/modules/business/service/impl/KrBLineServiceImpl.java
  26. 20 0
      src/main/java/com/macro/mall/tiny/modules/business/service/impl/KrBLineUploadLogServiceImpl.java
  27. 20 0
      src/main/java/com/macro/mall/tiny/modules/business/service/impl/KrBRegionCityServiceImpl.java
  28. 20 0
      src/main/java/com/macro/mall/tiny/modules/business/service/impl/KrBRegionCountyServiceImpl.java
  29. 20 0
      src/main/java/com/macro/mall/tiny/modules/business/service/impl/KrBRegionProvinceServiceImpl.java
  30. 20 0
      src/main/java/com/macro/mall/tiny/modules/business/service/impl/KrBTowerServiceImpl.java
  31. 2 2
      src/main/resources/generator.properties
  32. 143 0
      src/main/resources/mapper/business/KrBLineMapper.xml
  33. 15 0
      src/main/resources/mapper/business/KrBLineUploadLogMapper.xml
  34. 13 0
      src/main/resources/mapper/business/KrBRegionCityMapper.xml
  35. 13 0
      src/main/resources/mapper/business/KrBRegionCountyMapper.xml
  36. 12 0
      src/main/resources/mapper/business/KrBRegionProvinceMapper.xml
  37. 31 0
      src/main/resources/mapper/business/KrBTowerMapper.xml

+ 21 - 0
src/main/java/com/macro/mall/tiny/modules/business/controller/KrBLineController.java

@@ -0,0 +1,21 @@
+package com.macro.mall.tiny.modules.business.controller;
+
+
+import org.springframework.web.bind.annotation.RequestMapping;
+
+import org.springframework.web.bind.annotation.RestController;
+
+/**
+ * <p>
+ *  前端控制器
+ * </p>
+ *
+ * @author macro
+ * @since 2021-09-07
+ */
+@RestController
+@RequestMapping("/business/krBLine")
+public class KrBLineController {
+
+}
+

+ 21 - 0
src/main/java/com/macro/mall/tiny/modules/business/controller/KrBLineUploadLogController.java

@@ -0,0 +1,21 @@
+package com.macro.mall.tiny.modules.business.controller;
+
+
+import org.springframework.web.bind.annotation.RequestMapping;
+
+import org.springframework.web.bind.annotation.RestController;
+
+/**
+ * <p>
+ *  前端控制器
+ * </p>
+ *
+ * @author macro
+ * @since 2021-09-07
+ */
+@RestController
+@RequestMapping("/business/krBLineUploadLog")
+public class KrBLineUploadLogController {
+
+}
+

+ 21 - 0
src/main/java/com/macro/mall/tiny/modules/business/controller/KrBRegionCityController.java

@@ -0,0 +1,21 @@
+package com.macro.mall.tiny.modules.business.controller;
+
+
+import org.springframework.web.bind.annotation.RequestMapping;
+
+import org.springframework.web.bind.annotation.RestController;
+
+/**
+ * <p>
+ *  前端控制器
+ * </p>
+ *
+ * @author macro
+ * @since 2021-09-07
+ */
+@RestController
+@RequestMapping("/business/krBRegionCity")
+public class KrBRegionCityController {
+
+}
+

+ 21 - 0
src/main/java/com/macro/mall/tiny/modules/business/controller/KrBRegionCountyController.java

@@ -0,0 +1,21 @@
+package com.macro.mall.tiny.modules.business.controller;
+
+
+import org.springframework.web.bind.annotation.RequestMapping;
+
+import org.springframework.web.bind.annotation.RestController;
+
+/**
+ * <p>
+ *  前端控制器
+ * </p>
+ *
+ * @author macro
+ * @since 2021-09-07
+ */
+@RestController
+@RequestMapping("/business/krBRegionCounty")
+public class KrBRegionCountyController {
+
+}
+

+ 21 - 0
src/main/java/com/macro/mall/tiny/modules/business/controller/KrBRegionProvinceController.java

@@ -0,0 +1,21 @@
+package com.macro.mall.tiny.modules.business.controller;
+
+
+import org.springframework.web.bind.annotation.RequestMapping;
+
+import org.springframework.web.bind.annotation.RestController;
+
+/**
+ * <p>
+ *  前端控制器
+ * </p>
+ *
+ * @author macro
+ * @since 2021-09-07
+ */
+@RestController
+@RequestMapping("/business/krBRegionProvince")
+public class KrBRegionProvinceController {
+
+}
+

+ 21 - 0
src/main/java/com/macro/mall/tiny/modules/business/controller/KrBTowerController.java

@@ -0,0 +1,21 @@
+package com.macro.mall.tiny.modules.business.controller;
+
+
+import org.springframework.web.bind.annotation.RequestMapping;
+
+import org.springframework.web.bind.annotation.RestController;
+
+/**
+ * <p>
+ *  前端控制器
+ * </p>
+ *
+ * @author macro
+ * @since 2021-09-07
+ */
+@RestController
+@RequestMapping("/business/krBTower")
+public class KrBTowerController {
+
+}
+

+ 23 - 0
src/main/java/com/macro/mall/tiny/modules/business/mapper/KrBLineMapper.java

@@ -0,0 +1,23 @@
+package com.macro.mall.tiny.modules.business.mapper;
+
+import com.macro.mall.tiny.modules.business.model.BLine;
+import com.macro.mall.tiny.modules.business.model.KrBLine;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import org.apache.ibatis.annotations.Param;
+
+import java.util.List;
+
+/**
+ * <p>
+ * Mapper 接口
+ * </p>
+ *
+ * @author macro
+ * @since 2021-09-07
+ */
+public interface KrBLineMapper extends BaseMapper<KrBLine> {
+
+    List<BLine> findListMulti();
+
+    List<BLine> findListByKey(@Param("key") String key, @Param("provinceId") String provinceId, @Param("cityId") String cityId);
+}

+ 16 - 0
src/main/java/com/macro/mall/tiny/modules/business/mapper/KrBLineUploadLogMapper.java

@@ -0,0 +1,16 @@
+package com.macro.mall.tiny.modules.business.mapper;
+
+import com.macro.mall.tiny.modules.business.model.KrBLineUploadLog;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+
+/**
+ * <p>
+ *  Mapper 接口
+ * </p>
+ *
+ * @author macro
+ * @since 2021-09-07
+ */
+public interface KrBLineUploadLogMapper extends BaseMapper<KrBLineUploadLog> {
+
+}

+ 16 - 0
src/main/java/com/macro/mall/tiny/modules/business/mapper/KrBRegionCityMapper.java

@@ -0,0 +1,16 @@
+package com.macro.mall.tiny.modules.business.mapper;
+
+import com.macro.mall.tiny.modules.business.model.KrBRegionCity;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+
+/**
+ * <p>
+ *  Mapper 接口
+ * </p>
+ *
+ * @author macro
+ * @since 2021-09-07
+ */
+public interface KrBRegionCityMapper extends BaseMapper<KrBRegionCity> {
+
+}

+ 16 - 0
src/main/java/com/macro/mall/tiny/modules/business/mapper/KrBRegionCountyMapper.java

@@ -0,0 +1,16 @@
+package com.macro.mall.tiny.modules.business.mapper;
+
+import com.macro.mall.tiny.modules.business.model.KrBRegionCounty;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+
+/**
+ * <p>
+ *  Mapper 接口
+ * </p>
+ *
+ * @author macro
+ * @since 2021-09-07
+ */
+public interface KrBRegionCountyMapper extends BaseMapper<KrBRegionCounty> {
+
+}

+ 16 - 0
src/main/java/com/macro/mall/tiny/modules/business/mapper/KrBRegionProvinceMapper.java

@@ -0,0 +1,16 @@
+package com.macro.mall.tiny.modules.business.mapper;
+
+import com.macro.mall.tiny.modules.business.model.KrBRegionProvince;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+
+/**
+ * <p>
+ *  Mapper 接口
+ * </p>
+ *
+ * @author macro
+ * @since 2021-09-07
+ */
+public interface KrBRegionProvinceMapper extends BaseMapper<KrBRegionProvince> {
+
+}

+ 16 - 0
src/main/java/com/macro/mall/tiny/modules/business/mapper/KrBTowerMapper.java

@@ -0,0 +1,16 @@
+package com.macro.mall.tiny.modules.business.mapper;
+
+import com.macro.mall.tiny.modules.business.model.KrBTower;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+
+/**
+ * <p>
+ *  Mapper 接口
+ * </p>
+ *
+ * @author macro
+ * @since 2021-09-07
+ */
+public interface KrBTowerMapper extends BaseMapper<KrBTower> {
+
+}

+ 89 - 0
src/main/java/com/macro/mall/tiny/modules/business/model/KrBLine.java

@@ -0,0 +1,89 @@
+package com.macro.mall.tiny.modules.business.model;
+
+import com.baomidou.mybatisplus.annotation.TableField;
+import com.baomidou.mybatisplus.annotation.TableName;
+import com.baomidou.mybatisplus.annotation.IdType;
+import java.util.Date;
+import com.baomidou.mybatisplus.annotation.TableId;
+import java.io.Serializable;
+import java.util.List;
+import java.util.Set;
+
+import com.fasterxml.jackson.annotation.JsonFormat;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+
+/**
+ * <p>
+ * 
+ * </p>
+ *
+ * @author macro
+ * @since 2021-09-07
+ */
+@Data
+@EqualsAndHashCode(callSuper = false)
+@TableName("kr_b_line")
+@ApiModel(value="KrBLine对象", description="线路表")
+public class KrBLine implements Serializable {
+
+    private static final long serialVersionUID=1L;
+
+    @ApiModelProperty(value = "线路表")
+    @TableId(value = "id", type = IdType.AUTO)
+    private Integer id;
+
+    @ApiModelProperty(value = "省份id")
+    private String provinceId;
+
+    @ApiModelProperty(value = "所属省份")
+    @TableField(exist = false)
+    private String province;
+
+    @ApiModelProperty(value = "城市id")
+    private String cityId;
+
+    @ApiModelProperty(value = "所属城市")
+    @TableField(exist = false)
+    private String city;
+
+    @ApiModelProperty(value = "线路名称")
+    private String lineName;
+
+    @ApiModelProperty(value = "机器人名称")
+    private String robotName;
+
+    @ApiModelProperty(value = "电压等级,例:直流220kV,交流xkV")
+    private String voltage;
+
+    @ApiModelProperty(value = "线路状态:在运,停运")
+    private String lineStatus;
+
+    @ApiModelProperty(value = "投运时间")
+    private Date serviceBegintime;
+
+    @ApiModelProperty(value = "机器运行的起始杆塔")
+    private String beginTower;
+
+    @ApiModelProperty(value = "机器运行的终止杆塔")
+    private String endTower;
+
+    @ApiModelProperty(value = "创建人")
+    private Integer creatorId;
+
+    @ApiModelProperty(value = "包含铁塔")
+    @TableField(exist = false)
+    private List<BTower> towerList;
+
+    @ApiModelProperty(value = "匹配塔形关键字")
+    @TableField(exist = false)
+    private Set<String> matchShapeList;
+
+    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
+    @ApiModelProperty(value = "创建时间")
+    private Date createTime;
+
+
+}

+ 49 - 0
src/main/java/com/macro/mall/tiny/modules/business/model/KrBLineUploadLog.java

@@ -0,0 +1,49 @@
+package com.macro.mall.tiny.modules.business.model;
+
+import com.baomidou.mybatisplus.annotation.TableName;
+import com.baomidou.mybatisplus.annotation.IdType;
+import java.util.Date;
+import com.baomidou.mybatisplus.annotation.TableId;
+import java.io.Serializable;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+
+/**
+ * <p>
+ * 
+ * </p>
+ *
+ * @author macro
+ * @since 2021-09-07
+ */
+@Data
+@EqualsAndHashCode(callSuper = false)
+@TableName("kr_b_line_upload_log")
+@ApiModel(value="KrBLineUploadLog对象", description="文件上传记录表")
+public class KrBLineUploadLog implements Serializable {
+
+    private static final long serialVersionUID=1L;
+
+    @ApiModelProperty(value = "上传记录表")
+    @TableId(value = "id", type = IdType.AUTO)
+    private Long id;
+
+    @ApiModelProperty(value = "上传线路ID")
+    private Long lineId;
+
+    @ApiModelProperty(value = "上传者ID")
+    private Long uploaderId;
+
+    @ApiModelProperty(value = "上传日期")
+    private Date uploadTime;
+
+    @ApiModelProperty(value = "上传状态:0-失败,1-成功")
+    private Boolean status;
+
+    @ApiModelProperty(value = "警告信息")
+    private String warnMsg;
+
+
+}

+ 39 - 0
src/main/java/com/macro/mall/tiny/modules/business/model/KrBRegionCity.java

@@ -0,0 +1,39 @@
+package com.macro.mall.tiny.modules.business.model;
+
+import com.baomidou.mybatisplus.annotation.TableName;
+import java.io.Serializable;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+
+/**
+ * <p>
+ * 
+ * </p>
+ *
+ * @author macro
+ * @since 2021-09-07
+ */
+@Data
+@EqualsAndHashCode(callSuper = false)
+@TableName("kr_b_region_city")
+@ApiModel(value="KrBRegionCity对象", description="城市表")
+public class KrBRegionCity implements Serializable {
+
+    private static final long serialVersionUID=1L;
+
+    @ApiModelProperty(value = "@desc: 自增ID")
+    private Integer id;
+
+    @ApiModelProperty(value = "@desc: 区、县名称")
+    private String name;
+
+    @ApiModelProperty(value = "@desc: 城市ID")
+    private String cityId;
+
+    @ApiModelProperty(value = "@desc: 省份ID")
+    private String provinceId;
+
+
+}

+ 39 - 0
src/main/java/com/macro/mall/tiny/modules/business/model/KrBRegionCounty.java

@@ -0,0 +1,39 @@
+package com.macro.mall.tiny.modules.business.model;
+
+import com.baomidou.mybatisplus.annotation.TableName;
+import java.io.Serializable;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+
+/**
+ * <p>
+ * 
+ * </p>
+ *
+ * @author macro
+ * @since 2021-09-07
+ */
+@Data
+@EqualsAndHashCode(callSuper = false)
+@TableName("kr_b_region_county")
+@ApiModel(value="KrBRegionCounty对象", description="区表")
+public class KrBRegionCounty implements Serializable {
+
+    private static final long serialVersionUID=1L;
+
+    @ApiModelProperty(value = "@desc: 自增ID")
+    private Integer id;
+
+    @ApiModelProperty(value = "@desc: 区、县名称")
+    private String name;
+
+    @ApiModelProperty(value = "@desc: 区ID")
+    private String countyId;
+
+    @ApiModelProperty(value = "@desc: 城市ID")
+    private String cityId;
+
+
+}

+ 36 - 0
src/main/java/com/macro/mall/tiny/modules/business/model/KrBRegionProvince.java

@@ -0,0 +1,36 @@
+package com.macro.mall.tiny.modules.business.model;
+
+import com.baomidou.mybatisplus.annotation.TableName;
+import java.io.Serializable;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+
+/**
+ * <p>
+ * 
+ * </p>
+ *
+ * @author macro
+ * @since 2021-09-07
+ */
+@Data
+@EqualsAndHashCode(callSuper = false)
+@TableName("kr_b_region_province")
+@ApiModel(value="KrBRegionProvince对象", description="省份表")
+public class KrBRegionProvince implements Serializable {
+
+    private static final long serialVersionUID=1L;
+
+    @ApiModelProperty(value = "@desc: 自增ID")
+    private Integer id;
+
+    @ApiModelProperty(value = "@desc: 省名称")
+    private String name;
+
+    @ApiModelProperty(value = "@desc: 省ID")
+    private String provinceId;
+
+
+}

+ 97 - 0
src/main/java/com/macro/mall/tiny/modules/business/model/KrBTower.java

@@ -0,0 +1,97 @@
+package com.macro.mall.tiny.modules.business.model;
+
+import com.baomidou.mybatisplus.annotation.TableName;
+import com.baomidou.mybatisplus.annotation.IdType;
+import java.util.Date;
+import com.baomidou.mybatisplus.annotation.TableId;
+import java.io.Serializable;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+
+/**
+ * <p>
+ * 
+ * </p>
+ *
+ * @author macro
+ * @since 2021-09-07
+ */
+@Data
+@EqualsAndHashCode(callSuper = false)
+@TableName("kr_b_tower")
+@ApiModel(value="KrBTower对象", description="杆塔表")
+public class KrBTower implements Serializable {
+
+    private static final long serialVersionUID=1L;
+
+    @ApiModelProperty(value = "杆塔详情表")
+    @TableId(value = "id", type = IdType.AUTO)
+    private Integer id;
+
+    @ApiModelProperty(value = "线路ID")
+    private Integer lineId;
+
+    @ApiModelProperty(value = "杆塔序号(对应机器巡检方案号)")
+    private Integer towerIndex;
+
+    @ApiModelProperty(value = "杆塔名称")
+    private String towerName;
+
+    @ApiModelProperty(value = "杆塔编号(SDG-18,SZT1-24等)")
+    private String towerNumber;
+
+    @ApiModelProperty(value = "金具串型号")
+    private String hardwareType;
+
+    @ApiModelProperty(value = "经度")
+    private Double longitude;
+
+    @ApiModelProperty(value = "纬度")
+    private Double latitude;
+
+    @ApiModelProperty(value = "杆塔性质(直线塔、耐张塔)")
+    private String type;
+
+    @ApiModelProperty(value = "是否为太阳能基站塔")
+    private Integer isStation;
+
+    @ApiModelProperty(value = "是否为微气象杆塔")
+    private Integer isWeather;
+
+    @ApiModelProperty(value = "杆塔回路(单回/双回/四回/六回)")
+    private String circuit;
+
+    @ApiModelProperty(value = "杆塔高度,单位m")
+    private Double height;
+
+    @ApiModelProperty(value = "杆塔呼高,单位m")
+    private Double practicalHeight;
+
+    @ApiModelProperty(value = "转角方向(左/右/否)否为无转角")
+    private String cornerDirection;
+
+    @ApiModelProperty(value = "转角角度")
+    private String cornerNumber;
+
+    @ApiModelProperty(value = "档距")
+    private Double span;
+
+    @ApiModelProperty(value = "投运时间")
+    private Date servuceBegintime;
+
+    @ApiModelProperty(value = "备注说明")
+    private String remark;
+
+    @ApiModelProperty(value = "是否存在文件")
+    private Integer hasFile;
+
+    @ApiModelProperty(value = "创建者id")
+    private Integer creatorId;
+
+    @ApiModelProperty(value = "创建时间")
+    private Date createTime;
+
+
+}

+ 16 - 0
src/main/java/com/macro/mall/tiny/modules/business/service/KrBLineService.java

@@ -0,0 +1,16 @@
+package com.macro.mall.tiny.modules.business.service;
+
+import com.macro.mall.tiny.modules.business.model.KrBLine;
+import com.baomidou.mybatisplus.extension.service.IService;
+
+/**
+ * <p>
+ *  服务类
+ * </p>
+ *
+ * @author macro
+ * @since 2021-09-07
+ */
+public interface KrBLineService extends IService<KrBLine> {
+
+}

+ 16 - 0
src/main/java/com/macro/mall/tiny/modules/business/service/KrBLineUploadLogService.java

@@ -0,0 +1,16 @@
+package com.macro.mall.tiny.modules.business.service;
+
+import com.macro.mall.tiny.modules.business.model.KrBLineUploadLog;
+import com.baomidou.mybatisplus.extension.service.IService;
+
+/**
+ * <p>
+ *  服务类
+ * </p>
+ *
+ * @author macro
+ * @since 2021-09-07
+ */
+public interface KrBLineUploadLogService extends IService<KrBLineUploadLog> {
+
+}

+ 16 - 0
src/main/java/com/macro/mall/tiny/modules/business/service/KrBRegionCityService.java

@@ -0,0 +1,16 @@
+package com.macro.mall.tiny.modules.business.service;
+
+import com.macro.mall.tiny.modules.business.model.KrBRegionCity;
+import com.baomidou.mybatisplus.extension.service.IService;
+
+/**
+ * <p>
+ *  服务类
+ * </p>
+ *
+ * @author macro
+ * @since 2021-09-07
+ */
+public interface KrBRegionCityService extends IService<KrBRegionCity> {
+
+}

+ 16 - 0
src/main/java/com/macro/mall/tiny/modules/business/service/KrBRegionCountyService.java

@@ -0,0 +1,16 @@
+package com.macro.mall.tiny.modules.business.service;
+
+import com.macro.mall.tiny.modules.business.model.KrBRegionCounty;
+import com.baomidou.mybatisplus.extension.service.IService;
+
+/**
+ * <p>
+ *  服务类
+ * </p>
+ *
+ * @author macro
+ * @since 2021-09-07
+ */
+public interface KrBRegionCountyService extends IService<KrBRegionCounty> {
+
+}

+ 16 - 0
src/main/java/com/macro/mall/tiny/modules/business/service/KrBRegionProvinceService.java

@@ -0,0 +1,16 @@
+package com.macro.mall.tiny.modules.business.service;
+
+import com.macro.mall.tiny.modules.business.model.KrBRegionProvince;
+import com.baomidou.mybatisplus.extension.service.IService;
+
+/**
+ * <p>
+ *  服务类
+ * </p>
+ *
+ * @author macro
+ * @since 2021-09-07
+ */
+public interface KrBRegionProvinceService extends IService<KrBRegionProvince> {
+
+}

+ 16 - 0
src/main/java/com/macro/mall/tiny/modules/business/service/KrBTowerService.java

@@ -0,0 +1,16 @@
+package com.macro.mall.tiny.modules.business.service;
+
+import com.macro.mall.tiny.modules.business.model.KrBTower;
+import com.baomidou.mybatisplus.extension.service.IService;
+
+/**
+ * <p>
+ *  服务类
+ * </p>
+ *
+ * @author macro
+ * @since 2021-09-07
+ */
+public interface KrBTowerService extends IService<KrBTower> {
+
+}

+ 20 - 0
src/main/java/com/macro/mall/tiny/modules/business/service/impl/KrBLineServiceImpl.java

@@ -0,0 +1,20 @@
+package com.macro.mall.tiny.modules.business.service.impl;
+
+import com.macro.mall.tiny.modules.business.model.KrBLine;
+import com.macro.mall.tiny.modules.business.mapper.KrBLineMapper;
+import com.macro.mall.tiny.modules.business.service.KrBLineService;
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import org.springframework.stereotype.Service;
+
+/**
+ * <p>
+ *  服务实现类
+ * </p>
+ *
+ * @author macro
+ * @since 2021-09-07
+ */
+@Service
+public class KrBLineServiceImpl extends ServiceImpl<KrBLineMapper, KrBLine> implements KrBLineService {
+
+}

+ 20 - 0
src/main/java/com/macro/mall/tiny/modules/business/service/impl/KrBLineUploadLogServiceImpl.java

@@ -0,0 +1,20 @@
+package com.macro.mall.tiny.modules.business.service.impl;
+
+import com.macro.mall.tiny.modules.business.model.KrBLineUploadLog;
+import com.macro.mall.tiny.modules.business.mapper.KrBLineUploadLogMapper;
+import com.macro.mall.tiny.modules.business.service.KrBLineUploadLogService;
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import org.springframework.stereotype.Service;
+
+/**
+ * <p>
+ *  服务实现类
+ * </p>
+ *
+ * @author macro
+ * @since 2021-09-07
+ */
+@Service
+public class KrBLineUploadLogServiceImpl extends ServiceImpl<KrBLineUploadLogMapper, KrBLineUploadLog> implements KrBLineUploadLogService {
+
+}

+ 20 - 0
src/main/java/com/macro/mall/tiny/modules/business/service/impl/KrBRegionCityServiceImpl.java

@@ -0,0 +1,20 @@
+package com.macro.mall.tiny.modules.business.service.impl;
+
+import com.macro.mall.tiny.modules.business.model.KrBRegionCity;
+import com.macro.mall.tiny.modules.business.mapper.KrBRegionCityMapper;
+import com.macro.mall.tiny.modules.business.service.KrBRegionCityService;
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import org.springframework.stereotype.Service;
+
+/**
+ * <p>
+ *  服务实现类
+ * </p>
+ *
+ * @author macro
+ * @since 2021-09-07
+ */
+@Service
+public class KrBRegionCityServiceImpl extends ServiceImpl<KrBRegionCityMapper, KrBRegionCity> implements KrBRegionCityService {
+
+}

+ 20 - 0
src/main/java/com/macro/mall/tiny/modules/business/service/impl/KrBRegionCountyServiceImpl.java

@@ -0,0 +1,20 @@
+package com.macro.mall.tiny.modules.business.service.impl;
+
+import com.macro.mall.tiny.modules.business.model.KrBRegionCounty;
+import com.macro.mall.tiny.modules.business.mapper.KrBRegionCountyMapper;
+import com.macro.mall.tiny.modules.business.service.KrBRegionCountyService;
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import org.springframework.stereotype.Service;
+
+/**
+ * <p>
+ *  服务实现类
+ * </p>
+ *
+ * @author macro
+ * @since 2021-09-07
+ */
+@Service
+public class KrBRegionCountyServiceImpl extends ServiceImpl<KrBRegionCountyMapper, KrBRegionCounty> implements KrBRegionCountyService {
+
+}

+ 20 - 0
src/main/java/com/macro/mall/tiny/modules/business/service/impl/KrBRegionProvinceServiceImpl.java

@@ -0,0 +1,20 @@
+package com.macro.mall.tiny.modules.business.service.impl;
+
+import com.macro.mall.tiny.modules.business.model.KrBRegionProvince;
+import com.macro.mall.tiny.modules.business.mapper.KrBRegionProvinceMapper;
+import com.macro.mall.tiny.modules.business.service.KrBRegionProvinceService;
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import org.springframework.stereotype.Service;
+
+/**
+ * <p>
+ *  服务实现类
+ * </p>
+ *
+ * @author macro
+ * @since 2021-09-07
+ */
+@Service
+public class KrBRegionProvinceServiceImpl extends ServiceImpl<KrBRegionProvinceMapper, KrBRegionProvince> implements KrBRegionProvinceService {
+
+}

+ 20 - 0
src/main/java/com/macro/mall/tiny/modules/business/service/impl/KrBTowerServiceImpl.java

@@ -0,0 +1,20 @@
+package com.macro.mall.tiny.modules.business.service.impl;
+
+import com.macro.mall.tiny.modules.business.model.KrBTower;
+import com.macro.mall.tiny.modules.business.mapper.KrBTowerMapper;
+import com.macro.mall.tiny.modules.business.service.KrBTowerService;
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import org.springframework.stereotype.Service;
+
+/**
+ * <p>
+ *  服务实现类
+ * </p>
+ *
+ * @author macro
+ * @since 2021-09-07
+ */
+@Service
+public class KrBTowerServiceImpl extends ServiceImpl<KrBTowerMapper, KrBTower> implements KrBTowerService {
+
+}

+ 2 - 2
src/main/resources/generator.properties

@@ -1,5 +1,5 @@
-dataSource.url=jdbc:mysql://localhost:3306/power_system?useUnicode=true&characterEncoding=utf-8&serverTimezone=Asia/Shanghai
+dataSource.url=jdbc:mysql://localhost:3306/file_collect?useUnicode=true&characterEncoding=utf-8&serverTimezone=Asia/Shanghai
 dataSource.driverName=com.mysql.cj.jdbc.Driver
 dataSource.username=root
-dataSource.password=abc45628
+dataSource.password=root
 package.base=com.macro.mall.tiny.modules

+ 143 - 0
src/main/resources/mapper/business/KrBLineMapper.xml

@@ -0,0 +1,143 @@
+<?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.macro.mall.tiny.modules.business.mapper.KrBLineMapper">
+
+    <select id="findListMulti" resultMap="BaseResultMap">
+        SELECT l.id,
+               l.province_id,
+               p.name province,
+               l.city_id,
+               c.name city,
+               l.line_name,
+               l.robot_name,
+               l.voltage,
+               l.line_status,
+               l.service_begintime,
+               l.begin_tower,
+               l.end_tower,
+               l.creator_id,
+               l.create_time,
+               t.id                t_id,
+               t.line_id           t_line_id,
+               t.tower_index       t_tower_index,
+               t.tower_name        t_tower_name,
+               t.tower_number      t_tower_number,
+               t.hardware_type     t_hardware_type,
+               t.longitude         t_longitude,
+               t.latitude          t_latitude,
+               t.type              t_type,
+               t.is_station        t_is_station,
+               t.is_weather        t_is_weather,
+               t.circuit           t_circuit,
+               t.height            t_height,
+               t.practical_height  t_practical_height,
+               t.corner_direction  t_corner_direction,
+               t.corner_number     t_corner_number,
+               t.span              t_span,
+               t.servuce_begintime t_servuce_begintime,
+               t.remark            t_remark,
+               t.has_file          t_has_file,
+               t.create_time       t_create_time
+        FROM kr_b_line l
+                 LEFT JOIN kr_b_region_province p ON l.province_id = p.province_id
+                 LEFT JOIN kr_b_region_city c ON l.city_id = c.city_id
+                 LEFT JOIN kr_b_tower t ON l.id = t.line_id
+        ORDER BY tower_index;
+    </select>
+
+    <select id="findListByKey" resultMap="BaseResultMap">
+        SELECT l.id,
+        l.province_id,
+        p.name province,
+        l.city_id,
+        c.name city,
+        l.line_name,
+        l.robot_name,
+        l.voltage,
+        l.line_status,
+        l.service_begintime,
+        l.begin_tower,
+        l.end_tower,
+        l.creator_id,
+        l.create_time,
+        t.id t_id,
+        t.line_id t_line_id,
+        t.tower_index t_tower_index,
+        t.tower_name t_tower_name,
+        t.tower_number t_tower_number,
+        t.hardware_type t_hardware_type,
+        t.longitude t_longitude,
+        t.latitude t_latitude,
+        t.type t_type,
+        t.is_station t_is_station,
+        t.is_weather t_is_weather,
+        t.circuit t_circuit,
+        t.height t_height,
+        t.practical_height t_practical_height,
+        t.corner_direction t_corner_direction,
+        t.corner_number t_corner_number,
+        t.span t_span,
+        t.servuce_begintime t_servuce_begintime,
+        t.remark t_remark,
+        t.has_file t_has_file,
+        t.create_time t_create_time
+        FROM kr_b_line l
+        LEFT JOIN kr_b_region_province p ON l.province_id = p.province_id
+        LEFT JOIN kr_b_region_city c ON l.city_id = c.city_id
+        LEFT JOIN kr_b_tower t ON l.id = t.line_id
+        WHERE l.line_name LIKE concat('%', #{key}, '%')
+        OR p.name like concat('%', #{key}, '%')
+        OR t.tower_number like concat('%', #{key}, '%')
+        <if test="provinceId != null and provinceId != ''">
+            AND l.province_id = #{provinceId}
+        </if>
+        <if test="cityId != null and cityId != ''">
+            AND l.city_id = #{cityId}
+        </if>
+        ORDER BY tower_index;
+
+    </select>
+
+    <!-- 通用查询映射结果 -->
+    <resultMap id="BaseResultMap" type="com.macro.mall.tiny.modules.business.model.KrBLine">
+        <id column="id" property="id"/>
+        <result column="province_id" property="provinceId"/>
+        <result column="province" property="province"/>
+        <result column="city_id" property="cityId"/>
+        <result column="city" property="city"/>
+        <result column="line_name" property="lineName"/>
+        <result column="robot_name" property="robotName"/>
+        <result column="voltage" property="voltage"/>
+        <result column="line_status" property="lineStatus"/>
+        <result column="service_begintime" property="serviceBegintime"/>
+        <result column="begin_tower" property="beginTower"/>
+        <result column="end_tower" property="endTower"/>
+        <result column="creator_id" property="creatorId"/>
+        <result column="create_time" property="createTime"/>
+        <collection property="towerList" ofType="com.macro.mall.tiny.modules.business.model.KrBTower" column="id">
+            <id column="t_id" property="id"/>
+            <result column="t_line_id" property="lineId"/>
+            <result column="t_tower_index" property="towerIndex"/>
+            <result column="t_tower_name" property="towerName"/>
+            <result column="t_tower_number" property="towerNumber"/>
+            <result column="t_hardware_type" property="hardwareType"/>
+            <result column="t_line_id" property="lineId"/>
+            <result column="t_longitude" property="longitude"/>
+            <result column="t_latitude" property="latitude"/>
+            <result column="t_type" property="type"/>
+            <result column="t_is_station" property="isStation"/>
+            <result column="t_is_weather" property="isWeather"/>
+            <result column="t_circuit" property="circuit"/>
+            <result column="t_height" property="height"/>
+            <result column="t_practical_height" property="practicalHeight"/>
+            <result column="t_corner_direction" property="cornerDirection"/>
+            <result column="t_corner_number" property="cornerNumber"/>
+            <result column="t_span" property="span"/>
+            <result column="t_servuce_begintime" property="servuceBegintime"/>
+            <result column="t_remark" property="remark"/>
+            <result column="t_has_file" property="hasFile"/>
+            <result column="t_create_time" property="createTime"/>
+        </collection>
+    </resultMap>
+
+</mapper>

+ 15 - 0
src/main/resources/mapper/business/KrBLineUploadLogMapper.xml

@@ -0,0 +1,15 @@
+<?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.macro.mall.tiny.modules.business.mapper.KrBLineUploadLogMapper">
+
+    <!-- 通用查询映射结果 -->
+    <resultMap id="BaseResultMap" type="com.macro.mall.tiny.modules.business.model.KrBLineUploadLog">
+        <id column="id" property="id" />
+        <result column="line_id" property="lineId" />
+        <result column="uploader_id" property="uploaderId" />
+        <result column="upload_time" property="uploadTime" />
+        <result column="status" property="status" />
+        <result column="warn_msg" property="warnMsg" />
+    </resultMap>
+
+</mapper>

+ 13 - 0
src/main/resources/mapper/business/KrBRegionCityMapper.xml

@@ -0,0 +1,13 @@
+<?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.macro.mall.tiny.modules.business.mapper.KrBRegionCityMapper">
+
+    <!-- 通用查询映射结果 -->
+    <resultMap id="BaseResultMap" type="com.macro.mall.tiny.modules.business.model.KrBRegionCity">
+        <id column="id" property="id" />
+        <result column="name" property="name" />
+        <result column="city_id" property="cityId" />
+        <result column="province_id" property="provinceId" />
+    </resultMap>
+
+</mapper>

+ 13 - 0
src/main/resources/mapper/business/KrBRegionCountyMapper.xml

@@ -0,0 +1,13 @@
+<?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.macro.mall.tiny.modules.business.mapper.KrBRegionCountyMapper">
+
+    <!-- 通用查询映射结果 -->
+    <resultMap id="BaseResultMap" type="com.macro.mall.tiny.modules.business.model.KrBRegionCounty">
+        <id column="id" property="id" />
+        <result column="name" property="name" />
+        <result column="county_id" property="countyId" />
+        <result column="city_id" property="cityId" />
+    </resultMap>
+
+</mapper>

+ 12 - 0
src/main/resources/mapper/business/KrBRegionProvinceMapper.xml

@@ -0,0 +1,12 @@
+<?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.macro.mall.tiny.modules.business.mapper.KrBRegionProvinceMapper">
+
+    <!-- 通用查询映射结果 -->
+    <resultMap id="BaseResultMap" type="com.macro.mall.tiny.modules.business.model.KrBRegionProvince">
+        <id column="id" property="id" />
+        <result column="name" property="name" />
+        <result column="province_id" property="provinceId" />
+    </resultMap>
+
+</mapper>

+ 31 - 0
src/main/resources/mapper/business/KrBTowerMapper.xml

@@ -0,0 +1,31 @@
+<?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.macro.mall.tiny.modules.business.mapper.KrBTowerMapper">
+
+    <!-- 通用查询映射结果 -->
+    <resultMap id="BaseResultMap" type="com.macro.mall.tiny.modules.business.model.KrBTower">
+        <id column="id" property="id" />
+        <result column="line_id" property="lineId" />
+        <result column="tower_index" property="towerIndex" />
+        <result column="tower_name" property="towerName" />
+        <result column="tower_number" property="towerNumber" />
+        <result column="hardware_type" property="hardwareType" />
+        <result column="longitude" property="longitude" />
+        <result column="latitude" property="latitude" />
+        <result column="type" property="type" />
+        <result column="is_station" property="isStation" />
+        <result column="is_weather" property="isWeather" />
+        <result column="circuit" property="circuit" />
+        <result column="height" property="height" />
+        <result column="practical_height" property="practicalHeight" />
+        <result column="corner_direction" property="cornerDirection" />
+        <result column="corner_number" property="cornerNumber" />
+        <result column="span" property="span" />
+        <result column="servuce_begintime" property="servuceBegintime" />
+        <result column="remark" property="remark" />
+        <result column="has_file" property="hasFile" />
+        <result column="creator_id" property="creatorId" />
+        <result column="create_time" property="createTime" />
+    </resultMap>
+
+</mapper>