瀏覽代碼

九防台账基础框架上传(sql待完善)

wuhonghao 4 年之前
父節點
當前提交
eba6c9a928
共有 24 個文件被更改,包括 2403 次插入0 次删除
  1. 63 0
      railway-admin/src/main/java/com/railway/web/controller/business/baseinfo/BasePreventThawController.java
  2. 63 0
      railway-admin/src/main/java/com/railway/web/controller/business/baseinfo/BasePreventThunderController.java
  3. 63 0
      railway-admin/src/main/java/com/railway/web/controller/business/baseinfo/BasePreventTreeController.java
  4. 63 0
      railway-admin/src/main/java/com/railway/web/controller/business/baseinfo/BasePreventWindController.java
  5. 106 0
      railway-business/src/main/java/com/railway/business/baseinfo/domain/BasePreventThaw.java
  6. 83 0
      railway-business/src/main/java/com/railway/business/baseinfo/domain/BasePreventThunder.java
  7. 107 0
      railway-business/src/main/java/com/railway/business/baseinfo/domain/BasePreventTree.java
  8. 91 0
      railway-business/src/main/java/com/railway/business/baseinfo/domain/BasePreventWind.java
  9. 43 0
      railway-business/src/main/java/com/railway/business/baseinfo/mapper/BasePreventThawMapper.java
  10. 43 0
      railway-business/src/main/java/com/railway/business/baseinfo/mapper/BasePreventThunderMapper.java
  11. 43 0
      railway-business/src/main/java/com/railway/business/baseinfo/mapper/BasePreventTreeMapper.java
  12. 43 0
      railway-business/src/main/java/com/railway/business/baseinfo/mapper/BasePreventWindMapper.java
  13. 37 0
      railway-business/src/main/java/com/railway/business/baseinfo/service/IBasePreventThawService.java
  14. 37 0
      railway-business/src/main/java/com/railway/business/baseinfo/service/IBasePreventThunderService.java
  15. 37 0
      railway-business/src/main/java/com/railway/business/baseinfo/service/IBasePreventTreeService.java
  16. 37 0
      railway-business/src/main/java/com/railway/business/baseinfo/service/IBasePreventWindService.java
  17. 71 0
      railway-business/src/main/java/com/railway/business/baseinfo/service/impl/BasePreventThawServiceImpl.java
  18. 71 0
      railway-business/src/main/java/com/railway/business/baseinfo/service/impl/BasePreventThunderServiceImpl.java
  19. 71 0
      railway-business/src/main/java/com/railway/business/baseinfo/service/impl/BasePreventTreeServiceImpl.java
  20. 71 0
      railway-business/src/main/java/com/railway/business/baseinfo/service/impl/BasePreventWindServiceImpl.java
  21. 320 0
      railway-business/src/main/resources/mapper/baseinfo/BasePreventThawMapper.xml
  22. 248 0
      railway-business/src/main/resources/mapper/baseinfo/BasePreventThunderMapper.xml
  23. 320 0
      railway-business/src/main/resources/mapper/baseinfo/BasePreventTreeMapper.xml
  24. 272 0
      railway-business/src/main/resources/mapper/baseinfo/BasePreventWindMapper.xml

+ 63 - 0
railway-admin/src/main/java/com/railway/web/controller/business/baseinfo/BasePreventThawController.java

@@ -0,0 +1,63 @@
+package com.railway.web.controller.business.baseinfo;
+
+import com.railway.business.baseinfo.domain.BasePreventThaw;
+import com.railway.business.baseinfo.service.IBasePreventThawService;
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.http.ResponseEntity;
+import org.springframework.validation.annotation.Validated;
+import org.springframework.web.bind.annotation.*;
+import org.springframework.web.bind.WebDataBinder;
+import com.railway.common.core.controller.BaseController;
+import com.railway.common.core.domain.AjaxResult;
+import com.railway.common.core.page.TableDataInfo;
+import javax.validation.Valid;
+import java.util.List;
+
+import javax.validation.Valid;
+
+@Api(value = "rest/baseinfo/base/prevent/thaw", tags = "九防台账-防春融")
+@RestController
+@Validated
+@RequestMapping(value = "business/baseinfo/base/prevent/thaw")
+public class BasePreventThawController extends BaseController {
+    @Autowired
+    private IBasePreventThawService basePreventThawService;
+
+    @ApiOperation(value = "新增")
+    @PostMapping("/add")
+    public AjaxResult add(@Validated @RequestBody BasePreventThaw basePreventThaw) {
+        return toAjax(basePreventThawService.create(basePreventThaw));
+    }
+
+    @ApiOperation(value = "删除")
+    @DeleteMapping("/{ids}")
+    public AjaxResult delete(@RequestParam String[] ids) {
+        return toAjax(basePreventThawService.delete(ids));
+    }
+
+    @ApiOperation(value = "更新")
+    @PutMapping("/update")
+    public AjaxResult update(@RequestBody @Valid BasePreventThaw basePreventThaw) {
+        return toAjax(basePreventThawService.update(basePreventThaw));
+    }
+
+    @ApiOperation(value = "单个")
+    @GetMapping(value = {"/", "/{id}"})
+    public AjaxResult getInfo(String id) {
+        BasePreventThaw info = basePreventThawService.getInfo(id);
+        AjaxResult ajax = AjaxResult.success();
+        ajax.put("info",info);
+        return ajax;
+    }
+
+    @ApiOperation(value = "列表")
+    @GetMapping(value = "list")
+    public TableDataInfo getList(BasePreventThaw basePreventThaw) {
+        startPage();
+        List<BasePreventThaw> list = basePreventThawService.getList(basePreventThaw);
+        return getDataTable(list);
+    }
+
+}

+ 63 - 0
railway-admin/src/main/java/com/railway/web/controller/business/baseinfo/BasePreventThunderController.java

@@ -0,0 +1,63 @@
+package com.railway.web.controller.business.baseinfo;
+
+import com.railway.business.baseinfo.domain.BasePreventThunder;
+import com.railway.business.baseinfo.service.IBasePreventThunderService;
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.http.ResponseEntity;
+import org.springframework.validation.annotation.Validated;
+import org.springframework.web.bind.annotation.*;
+import org.springframework.web.bind.WebDataBinder;
+import com.railway.common.core.controller.BaseController;
+import com.railway.common.core.domain.AjaxResult;
+import com.railway.common.core.page.TableDataInfo;
+import javax.validation.Valid;
+import java.util.List;
+
+import javax.validation.Valid;
+
+@Api(value = "rest/baseinfo/base/prevent/thunder", tags = "九防台账-防雷")
+@RestController
+@Validated
+@RequestMapping(value = "business/baseinfo/base/prevent/thunder")
+public class BasePreventThunderController extends BaseController {
+    @Autowired
+    private IBasePreventThunderService basePreventThunderService;
+
+    @ApiOperation(value = "新增")
+    @PostMapping("/add")
+    public AjaxResult add(@Validated @RequestBody BasePreventThunder basePreventThunder) {
+        return toAjax(basePreventThunderService.create(basePreventThunder));
+    }
+
+    @ApiOperation(value = "删除")
+    @DeleteMapping("/{ids}")
+    public AjaxResult delete(@RequestParam String[] ids) {
+        return toAjax(basePreventThunderService.delete(ids));
+    }
+
+    @ApiOperation(value = "更新")
+    @PutMapping("/update")
+    public AjaxResult update(@RequestBody @Valid BasePreventThunder basePreventThunder) {
+        return toAjax(basePreventThunderService.update(basePreventThunder));
+    }
+
+    @ApiOperation(value = "单个")
+    @GetMapping(value = {"/", "/{id}"})
+    public AjaxResult getInfo(String id) {
+        BasePreventThunder info = basePreventThunderService.getInfo(id);
+        AjaxResult ajax = AjaxResult.success();
+        ajax.put("info",info);
+        return ajax;
+    }
+
+    @ApiOperation(value = "列表")
+    @GetMapping(value = "list")
+    public TableDataInfo getList(BasePreventThunder basePreventThunder) {
+        startPage();
+        List<BasePreventThunder> list = basePreventThunderService.getList(basePreventThunder);
+        return getDataTable(list);
+    }
+
+}

+ 63 - 0
railway-admin/src/main/java/com/railway/web/controller/business/baseinfo/BasePreventTreeController.java

@@ -0,0 +1,63 @@
+package com.railway.web.controller.business.baseinfo;
+
+import com.railway.business.baseinfo.domain.BasePreventTree;
+import com.railway.business.baseinfo.service.IBasePreventTreeService;
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.http.ResponseEntity;
+import org.springframework.validation.annotation.Validated;
+import org.springframework.web.bind.annotation.*;
+import org.springframework.web.bind.WebDataBinder;
+import com.railway.common.core.controller.BaseController;
+import com.railway.common.core.domain.AjaxResult;
+import com.railway.common.core.page.TableDataInfo;
+import javax.validation.Valid;
+import java.util.List;
+
+import javax.validation.Valid;
+
+@Api(value = "rest/baseinfo/base/prevent/tree", tags = "九防台账-防树")
+@RestController
+@Validated
+@RequestMapping(value = "business/baseinfo/base/prevent/tree")
+public class BasePreventTreeController extends BaseController {
+    @Autowired
+    private IBasePreventTreeService basePreventTreeService;
+
+    @ApiOperation(value = "新增")
+    @PostMapping("/add")
+    public AjaxResult add(@Validated @RequestBody BasePreventTree basePreventTree) {
+        return toAjax(basePreventTreeService.create(basePreventTree));
+    }
+
+    @ApiOperation(value = "删除")
+    @DeleteMapping("/{ids}")
+    public AjaxResult delete(@RequestParam String[] ids) {
+        return toAjax(basePreventTreeService.delete(ids));
+    }
+
+    @ApiOperation(value = "更新")
+    @PutMapping("/update")
+    public AjaxResult update(@RequestBody @Valid BasePreventTree basePreventTree) {
+        return toAjax(basePreventTreeService.update(basePreventTree));
+    }
+
+    @ApiOperation(value = "单个")
+    @GetMapping(value = {"/", "/{id}"})
+    public AjaxResult getInfo(String id) {
+        BasePreventTree info = basePreventTreeService.getInfo(id);
+        AjaxResult ajax = AjaxResult.success();
+        ajax.put("info",info);
+        return ajax;
+    }
+
+    @ApiOperation(value = "列表")
+    @GetMapping(value = "list")
+    public TableDataInfo getList(BasePreventTree basePreventTree) {
+        startPage();
+        List<BasePreventTree> list = basePreventTreeService.getList(basePreventTree);
+        return getDataTable(list);
+    }
+
+}

+ 63 - 0
railway-admin/src/main/java/com/railway/web/controller/business/baseinfo/BasePreventWindController.java

@@ -0,0 +1,63 @@
+package com.railway.web.controller.business.baseinfo;
+
+import com.railway.business.baseinfo.domain.BasePreventWind;
+import com.railway.business.baseinfo.service.IBasePreventWindService;
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.http.ResponseEntity;
+import org.springframework.validation.annotation.Validated;
+import org.springframework.web.bind.annotation.*;
+import org.springframework.web.bind.WebDataBinder;
+import com.railway.common.core.controller.BaseController;
+import com.railway.common.core.domain.AjaxResult;
+import com.railway.common.core.page.TableDataInfo;
+import javax.validation.Valid;
+import java.util.List;
+
+import javax.validation.Valid;
+
+@Api(value = "rest/baseinfo/base/prevent/wind", tags = "九防台账-防风")
+@RestController
+@Validated
+@RequestMapping(value = "business/baseinfo/base/prevent/wind")
+public class BasePreventWindController extends BaseController {
+    @Autowired
+    private IBasePreventWindService basePreventWindService;
+
+    @ApiOperation(value = "新增")
+    @PostMapping("/add")
+    public AjaxResult add(@Validated @RequestBody BasePreventWind basePreventWind) {
+        return toAjax(basePreventWindService.create(basePreventWind));
+    }
+
+    @ApiOperation(value = "删除")
+    @DeleteMapping("/{ids}")
+    public AjaxResult delete(@RequestParam String[] ids) {
+        return toAjax(basePreventWindService.delete(ids));
+    }
+
+    @ApiOperation(value = "更新")
+    @PutMapping("/update")
+    public AjaxResult update(@RequestBody @Valid BasePreventWind basePreventWind) {
+        return toAjax(basePreventWindService.update(basePreventWind));
+    }
+
+    @ApiOperation(value = "单个")
+    @GetMapping(value = {"/", "/{id}"})
+    public AjaxResult getInfo(String id) {
+        BasePreventWind info = basePreventWindService.getInfo(id);
+        AjaxResult ajax = AjaxResult.success();
+        ajax.put("info",info);
+        return ajax;
+    }
+
+    @ApiOperation(value = "列表")
+    @GetMapping(value = "list")
+    public TableDataInfo getList(BasePreventWind basePreventWind) {
+        startPage();
+        List<BasePreventWind> list = basePreventWindService.getList(basePreventWind);
+        return getDataTable(list);
+    }
+
+}

+ 106 - 0
railway-business/src/main/java/com/railway/business/baseinfo/domain/BasePreventThaw.java

@@ -0,0 +1,106 @@
+package com.railway.business.baseinfo.domain;
+
+import com.railway.common.core.domain.BaseEntity;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+import java.util.Date;
+
+import org.hibernate.validator.constraints.Length;
+import javax.validation.constraints.NotNull;
+/**
+ * 九防台账-防春融
+ * @author wuhonghao 2021-11-13
+ */
+@Data
+@ApiModel("九防台账-防春融")
+@EqualsAndHashCode(callSuper = true)
+public class BasePreventThaw extends BaseEntity{
+
+    @ApiModelProperty(value = "主键", hidden = true)
+    private String id;
+
+    @ApiModelProperty(value = "段别")
+    @Length(min = 1, max = 100, message = "【段别】长度必须介于 {min} 和 {max} 之间")
+    private String piecewise;
+
+    @ApiModelProperty(value = "车间id")
+    private Long deptId;
+
+    @ApiModelProperty(value = "车间名称(冗余)")
+    @Length(min = 1, max = 30, message = "【车间名称(冗余)】长度必须介于 {min} 和 {max} 之间")
+    private String deptName;
+
+    @ApiModelProperty(value = "线路id")
+    private Long lineId;
+
+    @ApiModelProperty(value = "线路名称(冗余)")
+    @Length(min = 1, max = 30, message = "【线路名称(冗余)】长度必须介于 {min} 和 {max} 之间")
+    private String lineName;
+
+    @ApiModelProperty(value = "行别")
+    @Length(min = 1, max = 4, message = "【行别】长度必须介于 {min} 和 {max} 之间")
+    private String xingbie;
+
+    @ApiModelProperty(value = "区间站场id")
+    private Long stationId;
+
+    @ApiModelProperty(value = "区间站场名称")
+    @Length(min = 1, max = 64, message = "【区间站场名称】长度必须介于 {min} 和 {max} 之间")
+    private String stationName;
+
+    @ApiModelProperty(value = "杆号范围")
+    @Length(min = 1, max = 10, message = "【杆号范围】长度必须介于 {min} 和 {max} 之间")
+    private String pillarArea;
+
+    @ApiModelProperty(value = "共计数量")
+    private Integer pillarCount;
+
+    @ApiModelProperty(value = "线路性质")
+    @Length(min = 1, max = 50, message = "【线路性质】长度必须介于 {min} 和 {max} 之间")
+    private String lineType;
+
+    @ApiModelProperty(value = "支柱类型")
+    @Length(min = 1, max = 50, message = "【支柱类型】长度必须介于 {min} 和 {max} 之间")
+    private String pillarType;
+
+    @ApiModelProperty(value = "公里标(m)")
+    @Length(min = 1, max = 20, message = "【公里标(m)】长度必须介于 {min} 和 {max} 之间")
+    private String marker;
+
+    @ApiModelProperty(value = "地形")
+    @Length(min = 1, max = 100, message = "【地形】长度必须介于 {min} 和 {max} 之间")
+    private String terrain;
+
+    @ApiModelProperty(value = "是否改造地段")
+    @Length(min = 1, max = 255, message = "【是否改造地段】长度必须介于 {min} 和 {max} 之间")
+    private String iftransform;
+
+    @ApiModelProperty(value = "采取措施")
+    @Length(min = 1, max = 255, message = "【采取措施】长度必须介于 {min} 和 {max} 之间")
+    private String measures;
+
+    @ApiModelProperty(value = "备注")
+    @Length(min = 1, max = 255, message = "【备注】长度必须介于 {min} 和 {max} 之间")
+    private String remark;
+
+    @ApiModelProperty(value = "del_flag")
+    @Length(min = 1, max = 1, message = "【del_flag】长度必须介于 {min} 和 {max} 之间")
+    private String delFlag;
+
+    @ApiModelProperty(value = "create_by")
+    @Length(min = 1, max = 64, message = "【create_by】长度必须介于 {min} 和 {max} 之间")
+    private String createBy;
+
+    @ApiModelProperty(value = "update_by")
+    @Length(min = 1, max = 64, message = "【update_by】长度必须介于 {min} 和 {max} 之间")
+    private String updateBy;
+
+    @ApiModelProperty(value = "update_time")
+    private Date updateTime;
+
+    public BasePreventThaw() {
+    }
+
+}

+ 83 - 0
railway-business/src/main/java/com/railway/business/baseinfo/domain/BasePreventThunder.java

@@ -0,0 +1,83 @@
+package com.railway.business.baseinfo.domain;
+
+import com.railway.common.core.domain.BaseEntity;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+import java.util.Date;
+
+import org.hibernate.validator.constraints.Length;
+import javax.validation.constraints.NotNull;
+/**
+ * 九防台账-防雷
+ * @author wuhonghao 2021-11-13
+ */
+@Data
+@ApiModel("九防台账-防雷")
+@EqualsAndHashCode(callSuper = true)
+public class BasePreventThunder extends BaseEntity{
+
+    @ApiModelProperty(value = "主键", hidden = true)
+    private String id;
+
+    @ApiModelProperty(value = "车间id")
+    private Long deptId;
+
+    @ApiModelProperty(value = "车间名称(冗余)")
+    @Length(min = 1, max = 30, message = "【车间名称(冗余)】长度必须介于 {min} 和 {max} 之间")
+    private String deptName;
+
+    @ApiModelProperty(value = "线路id")
+    private Long lineId;
+
+    @ApiModelProperty(value = "线路名称(冗余)")
+    @Length(min = 1, max = 30, message = "【线路名称(冗余)】长度必须介于 {min} 和 {max} 之间")
+    private String lineName;
+
+    @ApiModelProperty(value = "行别")
+    @Length(min = 1, max = 4, message = "【行别】长度必须介于 {min} 和 {max} 之间")
+    private String xingbie;
+
+    @ApiModelProperty(value = "区间站场id")
+    private Long stationId;
+
+    @ApiModelProperty(value = "区间站场名称")
+    @Length(min = 1, max = 64, message = "【区间站场名称】长度必须介于 {min} 和 {max} 之间")
+    private String stationName;
+
+    @ApiModelProperty(value = "避雷器安装支柱号")
+    @Length(min = 1, max = 10, message = "【避雷器安装支柱号】长度必须介于 {min} 和 {max} 之间")
+    private String pillarCode;
+
+    @ApiModelProperty(value = "公里标(m)")
+    @Length(min = 1, max = 20, message = "【公里标(m)】长度必须介于 {min} 和 {max} 之间")
+    private String marker;
+
+    @ApiModelProperty(value = "规格型号")
+    @Length(min = 1, max = 100, message = "【规格型号】长度必须介于 {min} 和 {max} 之间")
+    private String specification;
+
+    @ApiModelProperty(value = "示数")
+    @Length(min = 1, max = 100, message = "【示数】长度必须介于 {min} 和 {max} 之间")
+    private String displayNum;
+
+    @ApiModelProperty(value = "del_flag")
+    @Length(min = 1, max = 1, message = "【del_flag】长度必须介于 {min} 和 {max} 之间")
+    private String delFlag;
+
+    @ApiModelProperty(value = "create_by")
+    @Length(min = 1, max = 64, message = "【create_by】长度必须介于 {min} 和 {max} 之间")
+    private String createBy;
+
+    @ApiModelProperty(value = "update_by")
+    @Length(min = 1, max = 64, message = "【update_by】长度必须介于 {min} 和 {max} 之间")
+    private String updateBy;
+
+    @ApiModelProperty(value = "update_time")
+    private Date updateTime;
+
+    public BasePreventThunder() {
+    }
+
+}

+ 107 - 0
railway-business/src/main/java/com/railway/business/baseinfo/domain/BasePreventTree.java

@@ -0,0 +1,107 @@
+package com.railway.business.baseinfo.domain;
+
+import com.railway.common.core.domain.BaseEntity;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+import java.util.Date;
+
+import org.hibernate.validator.constraints.Length;
+import javax.validation.constraints.NotNull;
+/**
+ * 九防台账-防树
+ * @author wuhonghao 2021-11-13
+ */
+@Data
+@ApiModel("九防台账-防树")
+@EqualsAndHashCode(callSuper = true)
+public class BasePreventTree extends BaseEntity{
+
+    @ApiModelProperty(value = "主键", hidden = true)
+    private String id;
+
+    @ApiModelProperty(value = "车间id")
+    private Long deptId;
+
+    @ApiModelProperty(value = "车间名称(冗余)")
+    @Length(min = 1, max = 30, message = "【车间名称(冗余)】长度必须介于 {min} 和 {max} 之间")
+    private String deptName;
+
+    @ApiModelProperty(value = "线路id")
+    private Long lineId;
+
+    @ApiModelProperty(value = "线路名称(冗余)")
+    @Length(min = 1, max = 30, message = "【线路名称(冗余)】长度必须介于 {min} 和 {max} 之间")
+    private String lineName;
+
+    @ApiModelProperty(value = "行别")
+    @Length(min = 1, max = 4, message = "【行别】长度必须介于 {min} 和 {max} 之间")
+    private String xingbie;
+
+    @ApiModelProperty(value = "区间站场id")
+    private Long stationId;
+
+    @ApiModelProperty(value = "区间站场名称")
+    @Length(min = 1, max = 64, message = "【区间站场名称】长度必须介于 {min} 和 {max} 之间")
+    private String stationName;
+
+    @ApiModelProperty(value = "支柱号")
+    @Length(min = 1, max = 10, message = "【支柱号】长度必须介于 {min} 和 {max} 之间")
+    private String pillarCode;
+
+    @ApiModelProperty(value = "公里标(m)")
+    @Length(min = 1, max = 20, message = "【公里标(m)】长度必须介于 {min} 和 {max} 之间")
+    private String marker;
+
+    @ApiModelProperty(value = "数量")
+    @Length(min = 1, max = 100, message = "【数量】长度必须介于 {min} 和 {max} 之间")
+    private String count;
+
+    @ApiModelProperty(value = "距导线距离(米)_水平")
+    @Length(min = 1, max = 10, message = "【距导线距离(米)_水平】长度必须介于 {min} 和 {max} 之间")
+    private String distanceHorizontal;
+
+    @ApiModelProperty(value = "距导线距离(米)_垂直")
+    @Length(min = 1, max = 10, message = "【距导线距离(米)_垂直】长度必须介于 {min} 和 {max} 之间")
+    private String distanceVertical;
+
+    @ApiModelProperty(value = "树种")
+    @Length(min = 1, max = 100, message = "【树种】长度必须介于 {min} 和 {max} 之间")
+    private String kind;
+
+    @ApiModelProperty(value = "严重程度")
+    @Length(min = 1, max = 50, message = "【严重程度】长度必须介于 {min} 和 {max} 之间")
+    private String severity;
+
+    @ApiModelProperty(value = "产权(林场、个人)")
+    @Length(min = 1, max = 50, message = "【产权(林场、个人)】长度必须介于 {min} 和 {max} 之间")
+    private String propertyRights;
+
+    @ApiModelProperty(value = "调查人")
+    @Length(min = 1, max = 50, message = "【调查人】长度必须介于 {min} 和 {max} 之间")
+    private String inquirer;
+
+    @ApiModelProperty(value = "备注")
+    @Length(min = 1, max = 255, message = "【备注】长度必须介于 {min} 和 {max} 之间")
+    private String remark;
+
+    @ApiModelProperty(value = "del_flag")
+    @Length(min = 1, max = 1, message = "【del_flag】长度必须介于 {min} 和 {max} 之间")
+    private String delFlag;
+
+    @ApiModelProperty(value = "create_by")
+    @Length(min = 1, max = 64, message = "【create_by】长度必须介于 {min} 和 {max} 之间")
+    private String createBy;
+
+    @ApiModelProperty(value = "update_by")
+    @Length(min = 1, max = 64, message = "【update_by】长度必须介于 {min} 和 {max} 之间")
+    private String updateBy;
+
+    @ApiModelProperty(value = "update_time")
+    private Date updateTime;
+
+    public BasePreventTree() {
+    }
+
+}

+ 91 - 0
railway-business/src/main/java/com/railway/business/baseinfo/domain/BasePreventWind.java

@@ -0,0 +1,91 @@
+package com.railway.business.baseinfo.domain;
+
+import com.railway.common.core.domain.BaseEntity;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+import java.util.Date;
+
+import org.hibernate.validator.constraints.Length;
+import javax.validation.constraints.NotNull;
+/**
+ * 九防台账-防风
+ * @author wuhonghao 2021-11-13
+ */
+@Data
+@ApiModel("九防台账-防风")
+@EqualsAndHashCode(callSuper = true)
+public class BasePreventWind extends BaseEntity{
+
+    @ApiModelProperty(value = "主键", hidden = true)
+    private String id;
+
+    @ApiModelProperty(value = "段别")
+    @Length(min = 1, max = 100, message = "【段别】长度必须介于 {min} 和 {max} 之间")
+    private String piecewise;
+
+    @ApiModelProperty(value = "车间id")
+    private Long deptId;
+
+    @ApiModelProperty(value = "车间名称(冗余)")
+    @Length(min = 1, max = 30, message = "【车间名称(冗余)】长度必须介于 {min} 和 {max} 之间")
+    private String deptName;
+
+    @ApiModelProperty(value = "线路id")
+    private Long lineId;
+
+    @ApiModelProperty(value = "线路名称(冗余)")
+    @Length(min = 1, max = 30, message = "【线路名称(冗余)】长度必须介于 {min} 和 {max} 之间")
+    private String lineName;
+
+    @ApiModelProperty(value = "行别")
+    @Length(min = 1, max = 4, message = "【行别】长度必须介于 {min} 和 {max} 之间")
+    private String xingbie;
+
+    @ApiModelProperty(value = "区间站场id")
+    private Long stationId;
+
+    @ApiModelProperty(value = "区间站场名称")
+    @Length(min = 1, max = 64, message = "【区间站场名称】长度必须介于 {min} 和 {max} 之间")
+    private String stationName;
+
+    @ApiModelProperty(value = "支柱号")
+    @Length(min = 1, max = 10, message = "【支柱号】长度必须介于 {min} 和 {max} 之间")
+    private String pillarCode;
+
+    @ApiModelProperty(value = "公里标(m)")
+    @Length(min = 1, max = 20, message = "【公里标(m)】长度必须介于 {min} 和 {max} 之间")
+    private String marker;
+
+    @ApiModelProperty(value = "风险源(易搭窝部位)")
+    @Length(min = 1, max = 100, message = "【风险源(易搭窝部位)】长度必须介于 {min} 和 {max} 之间")
+    private String riskSource;
+
+    @ApiModelProperty(value = "采取措施")
+    @Length(min = 1, max = 255, message = "【采取措施】长度必须介于 {min} 和 {max} 之间")
+    private String measures;
+
+    @ApiModelProperty(value = "备注")
+    @Length(min = 1, max = 255, message = "【备注】长度必须介于 {min} 和 {max} 之间")
+    private String remark;
+
+    @ApiModelProperty(value = "del_flag")
+    @Length(min = 1, max = 1, message = "【del_flag】长度必须介于 {min} 和 {max} 之间")
+    private String delFlag;
+
+    @ApiModelProperty(value = "create_by")
+    @Length(min = 1, max = 64, message = "【create_by】长度必须介于 {min} 和 {max} 之间")
+    private String createBy;
+
+    @ApiModelProperty(value = "update_by")
+    @Length(min = 1, max = 64, message = "【update_by】长度必须介于 {min} 和 {max} 之间")
+    private String updateBy;
+
+    @ApiModelProperty(value = "update_time")
+    private Date updateTime;
+
+    public BasePreventWind() {
+    }
+
+}

+ 43 - 0
railway-business/src/main/java/com/railway/business/baseinfo/mapper/BasePreventThawMapper.java

@@ -0,0 +1,43 @@
+package com.railway.business.baseinfo.mapper;
+
+import com.github.pagehelper.Page;
+import com.railway.business.baseinfo.domain.BasePreventThaw;
+import org.apache.ibatis.annotations.Mapper;
+import org.apache.ibatis.annotations.Param;
+import org.springframework.stereotype.Repository;
+
+/**
+* 九防台账-防春融
+* @author wuhonghao
+* @date 2021/11/13
+*/
+@Mapper
+@Repository
+public interface BasePreventThawMapper {
+
+    /**
+    * 新增
+    */
+    int insert(BasePreventThaw basePreventThaw);
+
+    /**
+    * 删除
+    */
+    int delete(@Param("id") String id);
+
+    /**
+    * 更新
+    */
+    int update(BasePreventThaw basePreventThaw);
+
+    /**
+    * 获取单个
+    */
+    BasePreventThaw getInfo(@Param("id") String id);
+
+    /**
+    * 查询列表
+    */
+    Page<BasePreventThaw> getList(BasePreventThaw basePreventThaw);
+
+}

+ 43 - 0
railway-business/src/main/java/com/railway/business/baseinfo/mapper/BasePreventThunderMapper.java

@@ -0,0 +1,43 @@
+package com.railway.business.baseinfo.mapper;
+
+import com.github.pagehelper.Page;
+import com.railway.business.baseinfo.domain.BasePreventThunder;
+import org.apache.ibatis.annotations.Mapper;
+import org.apache.ibatis.annotations.Param;
+import org.springframework.stereotype.Repository;
+
+/**
+* 九防台账-防雷
+* @author wuhonghao
+* @date 2021/11/13
+*/
+@Mapper
+@Repository
+public interface BasePreventThunderMapper {
+
+    /**
+    * 新增
+    */
+    int insert(BasePreventThunder basePreventThunder);
+
+    /**
+    * 删除
+    */
+    int delete(@Param("id") String id);
+
+    /**
+    * 更新
+    */
+    int update(BasePreventThunder basePreventThunder);
+
+    /**
+    * 获取单个
+    */
+    BasePreventThunder getInfo(@Param("id") String id);
+
+    /**
+    * 查询列表
+    */
+    Page<BasePreventThunder> getList(BasePreventThunder basePreventThunder);
+
+}

+ 43 - 0
railway-business/src/main/java/com/railway/business/baseinfo/mapper/BasePreventTreeMapper.java

@@ -0,0 +1,43 @@
+package com.railway.business.baseinfo.mapper;
+
+import com.github.pagehelper.Page;
+import com.railway.business.baseinfo.domain.BasePreventTree;
+import org.apache.ibatis.annotations.Mapper;
+import org.apache.ibatis.annotations.Param;
+import org.springframework.stereotype.Repository;
+
+/**
+* 九防台账-防树
+* @author wuhonghao
+* @date 2021/11/13
+*/
+@Mapper
+@Repository
+public interface BasePreventTreeMapper {
+
+    /**
+    * 新增
+    */
+    int insert(BasePreventTree basePreventTree);
+
+    /**
+    * 删除
+    */
+    int delete(@Param("id") String id);
+
+    /**
+    * 更新
+    */
+    int update(BasePreventTree basePreventTree);
+
+    /**
+    * 获取单个
+    */
+    BasePreventTree getInfo(@Param("id") String id);
+
+    /**
+    * 查询列表
+    */
+    Page<BasePreventTree> getList(BasePreventTree basePreventTree);
+
+}

+ 43 - 0
railway-business/src/main/java/com/railway/business/baseinfo/mapper/BasePreventWindMapper.java

@@ -0,0 +1,43 @@
+package com.railway.business.baseinfo.mapper;
+
+import com.github.pagehelper.Page;
+import com.railway.business.baseinfo.domain.BasePreventWind;
+import org.apache.ibatis.annotations.Mapper;
+import org.apache.ibatis.annotations.Param;
+import org.springframework.stereotype.Repository;
+
+/**
+* 九防台账-防风
+* @author wuhonghao
+* @date 2021/11/13
+*/
+@Mapper
+@Repository
+public interface BasePreventWindMapper {
+
+    /**
+    * 新增
+    */
+    int insert(BasePreventWind basePreventWind);
+
+    /**
+    * 删除
+    */
+    int delete(@Param("id") String id);
+
+    /**
+    * 更新
+    */
+    int update(BasePreventWind basePreventWind);
+
+    /**
+    * 获取单个
+    */
+    BasePreventWind getInfo(@Param("id") String id);
+
+    /**
+    * 查询列表
+    */
+    Page<BasePreventWind> getList(BasePreventWind basePreventWind);
+
+}

+ 37 - 0
railway-business/src/main/java/com/railway/business/baseinfo/service/IBasePreventThawService.java

@@ -0,0 +1,37 @@
+package com.railway.business.baseinfo.service;
+
+import com.railway.business.baseinfo.domain.BasePreventThaw;
+import java.util.List;
+/**
+* 九防台账-防春融
+* @author wuhonghao
+* @date 2021/11/13
+*/
+public interface IBasePreventThawService{
+
+    /**
+    * 新增
+    */
+    int create(BasePreventThaw basePreventThaw);
+
+    /**
+    * 删除
+    */
+    int delete(String[] ids);
+
+    /**
+    * 更新
+    */
+    int update(BasePreventThaw basePreventThaw);
+
+    /**
+    * 获取单个
+    */
+    BasePreventThaw getInfo(String id);
+
+    /**
+    * 查询列表
+    */
+    List<BasePreventThaw> getList(BasePreventThaw basePreventThaw);
+
+}

+ 37 - 0
railway-business/src/main/java/com/railway/business/baseinfo/service/IBasePreventThunderService.java

@@ -0,0 +1,37 @@
+package com.railway.business.baseinfo.service;
+
+import com.railway.business.baseinfo.domain.BasePreventThunder;
+import java.util.List;
+/**
+* 九防台账-防雷
+* @author wuhonghao
+* @date 2021/11/13
+*/
+public interface IBasePreventThunderService{
+
+    /**
+    * 新增
+    */
+    int create(BasePreventThunder basePreventThunder);
+
+    /**
+    * 删除
+    */
+    int delete(String[] ids);
+
+    /**
+    * 更新
+    */
+    int update(BasePreventThunder basePreventThunder);
+
+    /**
+    * 获取单个
+    */
+    BasePreventThunder getInfo(String id);
+
+    /**
+    * 查询列表
+    */
+    List<BasePreventThunder> getList(BasePreventThunder basePreventThunder);
+
+}

+ 37 - 0
railway-business/src/main/java/com/railway/business/baseinfo/service/IBasePreventTreeService.java

@@ -0,0 +1,37 @@
+package com.railway.business.baseinfo.service;
+
+import com.railway.business.baseinfo.domain.BasePreventTree;
+import java.util.List;
+/**
+* 九防台账-防树
+* @author wuhonghao
+* @date 2021/11/13
+*/
+public interface IBasePreventTreeService{
+
+    /**
+    * 新增
+    */
+    int create(BasePreventTree basePreventTree);
+
+    /**
+    * 删除
+    */
+    int delete(String[] ids);
+
+    /**
+    * 更新
+    */
+    int update(BasePreventTree basePreventTree);
+
+    /**
+    * 获取单个
+    */
+    BasePreventTree getInfo(String id);
+
+    /**
+    * 查询列表
+    */
+    List<BasePreventTree> getList(BasePreventTree basePreventTree);
+
+}

+ 37 - 0
railway-business/src/main/java/com/railway/business/baseinfo/service/IBasePreventWindService.java

@@ -0,0 +1,37 @@
+package com.railway.business.baseinfo.service;
+
+import com.railway.business.baseinfo.domain.BasePreventWind;
+import java.util.List;
+/**
+* 九防台账-防风
+* @author wuhonghao
+* @date 2021/11/13
+*/
+public interface IBasePreventWindService{
+
+    /**
+    * 新增
+    */
+    int create(BasePreventWind basePreventWind);
+
+    /**
+    * 删除
+    */
+    int delete(String[] ids);
+
+    /**
+    * 更新
+    */
+    int update(BasePreventWind basePreventWind);
+
+    /**
+    * 获取单个
+    */
+    BasePreventWind getInfo(String id);
+
+    /**
+    * 查询列表
+    */
+    List<BasePreventWind> getList(BasePreventWind basePreventWind);
+
+}

+ 71 - 0
railway-business/src/main/java/com/railway/business/baseinfo/service/impl/BasePreventThawServiceImpl.java

@@ -0,0 +1,71 @@
+package com.railway.business.baseinfo.service.impl;
+
+import com.github.pagehelper.Page;
+import com.github.pagehelper.PageHelper;
+import com.railway.business.baseinfo.mapper.BasePreventThawMapper;
+import com.railway.business.baseinfo.domain.BasePreventThaw;
+import com.railway.business.baseinfo.service.IBasePreventThawService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+import com.railway.common.utils.SecurityUtils;
+import org.springframework.transaction.annotation.Transactional;
+import java.util.List;
+import java.util.Date;
+/**
+* 九防台账-防春融
+* @author wuhonghao
+* @date 2021/11/13
+*/
+@Service
+@Transactional(readOnly = true)
+public class BasePreventThawServiceImpl implements IBasePreventThawService{
+@Autowired
+private BasePreventThawMapper basePreventThawMapper;
+
+	/**
+	* 新增
+	*/
+	@Transactional(rollbackFor = Exception.class)
+	public int create(BasePreventThaw basePreventThaw) {
+	    basePreventThaw.setCreateTime(new Date());
+        basePreventThaw.setCreateBy(SecurityUtils.getUsername());
+		return basePreventThawMapper.insert(basePreventThaw);
+	}
+
+	/**
+	* 删除
+	*/
+	@Transactional(rollbackFor = Exception.class)
+	public int delete(String[] ids) {
+		int r =0;
+		for (String id : ids) {
+			int j= basePreventThawMapper.delete(id);
+			r = r + j;
+		}
+		return	r;
+	}
+
+	/**
+	* 更新
+	*/
+	@Transactional(rollbackFor = Exception.class)
+	public int update(BasePreventThaw basePreventThaw) {
+		basePreventThaw.setUpdateTime(new Date());
+    	basePreventThaw.setUpdateBy(SecurityUtils.getUsername());
+		return basePreventThawMapper.update(basePreventThaw);
+	}
+
+	/**
+	* 获取单个
+	*/
+	public BasePreventThaw getInfo(String id) {
+		return basePreventThawMapper.getInfo(id);
+	}
+
+	/**
+	* 查询列表
+	*/
+	public List<BasePreventThaw> getList(BasePreventThaw basePreventThaw) {
+		return basePreventThawMapper.getList(basePreventThaw);
+	}
+}

+ 71 - 0
railway-business/src/main/java/com/railway/business/baseinfo/service/impl/BasePreventThunderServiceImpl.java

@@ -0,0 +1,71 @@
+package com.railway.business.baseinfo.service.impl;
+
+import com.github.pagehelper.Page;
+import com.github.pagehelper.PageHelper;
+import com.railway.business.baseinfo.mapper.BasePreventThunderMapper;
+import com.railway.business.baseinfo.domain.BasePreventThunder;
+import com.railway.business.baseinfo.service.IBasePreventThunderService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+import com.railway.common.utils.SecurityUtils;
+import org.springframework.transaction.annotation.Transactional;
+import java.util.List;
+import java.util.Date;
+/**
+* 九防台账-防雷
+* @author wuhonghao
+* @date 2021/11/13
+*/
+@Service
+@Transactional(readOnly = true)
+public class BasePreventThunderServiceImpl implements IBasePreventThunderService{
+@Autowired
+private BasePreventThunderMapper basePreventThunderMapper;
+
+	/**
+	* 新增
+	*/
+	@Transactional(rollbackFor = Exception.class)
+	public int create(BasePreventThunder basePreventThunder) {
+	    basePreventThunder.setCreateTime(new Date());
+        basePreventThunder.setCreateBy(SecurityUtils.getUsername());
+		return basePreventThunderMapper.insert(basePreventThunder);
+	}
+
+	/**
+	* 删除
+	*/
+	@Transactional(rollbackFor = Exception.class)
+	public int delete(String[] ids) {
+		int r =0;
+		for (String id : ids) {
+			int j= basePreventThunderMapper.delete(id);
+			r = r + j;
+		}
+		return	r;
+	}
+
+	/**
+	* 更新
+	*/
+	@Transactional(rollbackFor = Exception.class)
+	public int update(BasePreventThunder basePreventThunder) {
+		basePreventThunder.setUpdateTime(new Date());
+    	basePreventThunder.setUpdateBy(SecurityUtils.getUsername());
+		return basePreventThunderMapper.update(basePreventThunder);
+	}
+
+	/**
+	* 获取单个
+	*/
+	public BasePreventThunder getInfo(String id) {
+		return basePreventThunderMapper.getInfo(id);
+	}
+
+	/**
+	* 查询列表
+	*/
+	public List<BasePreventThunder> getList(BasePreventThunder basePreventThunder) {
+		return basePreventThunderMapper.getList(basePreventThunder);
+	}
+}

+ 71 - 0
railway-business/src/main/java/com/railway/business/baseinfo/service/impl/BasePreventTreeServiceImpl.java

@@ -0,0 +1,71 @@
+package com.railway.business.baseinfo.service.impl;
+
+import com.github.pagehelper.Page;
+import com.github.pagehelper.PageHelper;
+import com.railway.business.baseinfo.mapper.BasePreventTreeMapper;
+import com.railway.business.baseinfo.domain.BasePreventTree;
+import com.railway.business.baseinfo.service.IBasePreventTreeService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+import com.railway.common.utils.SecurityUtils;
+import org.springframework.transaction.annotation.Transactional;
+import java.util.List;
+import java.util.Date;
+/**
+* 九防台账-防树
+* @author wuhonghao
+* @date 2021/11/13
+*/
+@Service
+@Transactional(readOnly = true)
+public class BasePreventTreeServiceImpl implements IBasePreventTreeService{
+@Autowired
+private BasePreventTreeMapper basePreventTreeMapper;
+
+	/**
+	* 新增
+	*/
+	@Transactional(rollbackFor = Exception.class)
+	public int create(BasePreventTree basePreventTree) {
+	    basePreventTree.setCreateTime(new Date());
+        basePreventTree.setCreateBy(SecurityUtils.getUsername());
+		return basePreventTreeMapper.insert(basePreventTree);
+	}
+
+	/**
+	* 删除
+	*/
+	@Transactional(rollbackFor = Exception.class)
+	public int delete(String[] ids) {
+		int r =0;
+		for (String id : ids) {
+			int j= basePreventTreeMapper.delete(id);
+			r = r + j;
+		}
+		return	r;
+	}
+
+	/**
+	* 更新
+	*/
+	@Transactional(rollbackFor = Exception.class)
+	public int update(BasePreventTree basePreventTree) {
+		basePreventTree.setUpdateTime(new Date());
+    	basePreventTree.setUpdateBy(SecurityUtils.getUsername());
+		return basePreventTreeMapper.update(basePreventTree);
+	}
+
+	/**
+	* 获取单个
+	*/
+	public BasePreventTree getInfo(String id) {
+		return basePreventTreeMapper.getInfo(id);
+	}
+
+	/**
+	* 查询列表
+	*/
+	public List<BasePreventTree> getList(BasePreventTree basePreventTree) {
+		return basePreventTreeMapper.getList(basePreventTree);
+	}
+}

+ 71 - 0
railway-business/src/main/java/com/railway/business/baseinfo/service/impl/BasePreventWindServiceImpl.java

@@ -0,0 +1,71 @@
+package com.railway.business.baseinfo.service.impl;
+
+import com.github.pagehelper.Page;
+import com.github.pagehelper.PageHelper;
+import com.railway.business.baseinfo.mapper.BasePreventWindMapper;
+import com.railway.business.baseinfo.domain.BasePreventWind;
+import com.railway.business.baseinfo.service.IBasePreventWindService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+import com.railway.common.utils.SecurityUtils;
+import org.springframework.transaction.annotation.Transactional;
+import java.util.List;
+import java.util.Date;
+/**
+* 九防台账-防风
+* @author wuhonghao
+* @date 2021/11/13
+*/
+@Service
+@Transactional(readOnly = true)
+public class BasePreventWindServiceImpl implements IBasePreventWindService{
+@Autowired
+private BasePreventWindMapper basePreventWindMapper;
+
+	/**
+	* 新增
+	*/
+	@Transactional(rollbackFor = Exception.class)
+	public int create(BasePreventWind basePreventWind) {
+	    basePreventWind.setCreateTime(new Date());
+        basePreventWind.setCreateBy(SecurityUtils.getUsername());
+		return basePreventWindMapper.insert(basePreventWind);
+	}
+
+	/**
+	* 删除
+	*/
+	@Transactional(rollbackFor = Exception.class)
+	public int delete(String[] ids) {
+		int r =0;
+		for (String id : ids) {
+			int j= basePreventWindMapper.delete(id);
+			r = r + j;
+		}
+		return	r;
+	}
+
+	/**
+	* 更新
+	*/
+	@Transactional(rollbackFor = Exception.class)
+	public int update(BasePreventWind basePreventWind) {
+		basePreventWind.setUpdateTime(new Date());
+    	basePreventWind.setUpdateBy(SecurityUtils.getUsername());
+		return basePreventWindMapper.update(basePreventWind);
+	}
+
+	/**
+	* 获取单个
+	*/
+	public BasePreventWind getInfo(String id) {
+		return basePreventWindMapper.getInfo(id);
+	}
+
+	/**
+	* 查询列表
+	*/
+	public List<BasePreventWind> getList(BasePreventWind basePreventWind) {
+		return basePreventWindMapper.getList(basePreventWind);
+	}
+}

+ 320 - 0
railway-business/src/main/resources/mapper/baseinfo/BasePreventThawMapper.xml

@@ -0,0 +1,320 @@
+<?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.railway.business.baseinfo.mapper.BasePreventThawMapper">
+
+    <resultMap id="BaseResultMap" type="com.railway.business.baseinfo.domain.BasePreventThaw">
+                <result column="id" property="id"/>
+                <result column="piecewise" property="piecewise"/>
+                <result column="dept_id" property="deptId"/>
+                <result column="dept_name" property="deptName"/>
+                <result column="line_id" property="lineId"/>
+                <result column="line_name" property="lineName"/>
+                <result column="xingbie" property="xingbie"/>
+                <result column="station_id" property="stationId"/>
+                <result column="station_name" property="stationName"/>
+                <result column="pillar_area" property="pillarArea"/>
+                <result column="pillar_count" property="pillarCount"/>
+                <result column="line_type" property="lineType"/>
+                <result column="pillar_type" property="pillarType"/>
+                <result column="marker" property="marker"/>
+                <result column="terrain" property="terrain"/>
+                <result column="iftransform" property="iftransform"/>
+                <result column="measures" property="measures"/>
+                <result column="remark" property="remark"/>
+                <result column="del_flag" property="delFlag"/>
+                <result column="create_by" property="createBy"/>
+                <result column="create_time" property="createTime"/>
+                <result column="update_by" property="updateBy"/>
+                <result column="update_time" property="updateTime"/>
+    </resultMap>
+
+    <sql id="Base_Column_List">
+                id,
+                piecewise,
+                dept_id,
+                dept_name,
+                line_id,
+                line_name,
+                xingbie,
+                station_id,
+                station_name,
+                pillar_area,
+                pillar_count,
+                line_type,
+                pillar_type,
+                marker,
+                terrain,
+                iftransform,
+                measures,
+                remark,
+                del_flag,
+                create_by,
+                create_time,
+                update_by,
+                update_time
+    </sql>
+
+    <insert id="insert" parameterType="com.railway.business.baseinfo.domain.BasePreventThaw">
+        <selectKey keyProperty="id" order="BEFORE" resultType="String">
+            select replace(uuid(), '-', '') from dual
+        </selectKey>
+        INSERT INTO base_prevent_thaw
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+                    <if test ='null != piecewise'>
+                    piecewise,
+                    </if>
+                    <if test ='null != deptId'>
+                    dept_id,
+                    </if>
+                    <if test ='null != deptName'>
+                    dept_name,
+                    </if>
+                    <if test ='null != lineId'>
+                    line_id,
+                    </if>
+                    <if test ='null != lineName'>
+                    line_name,
+                    </if>
+                    <if test ='null != xingbie'>
+                    xingbie,
+                    </if>
+                    <if test ='null != stationId'>
+                    station_id,
+                    </if>
+                    <if test ='null != stationName'>
+                    station_name,
+                    </if>
+                    <if test ='null != pillarArea'>
+                    pillar_area,
+                    </if>
+                    <if test ='null != pillarCount'>
+                    pillar_count,
+                    </if>
+                    <if test ='null != lineType'>
+                    line_type,
+                    </if>
+                    <if test ='null != pillarType'>
+                    pillar_type,
+                    </if>
+                    <if test ='null != marker'>
+                    marker,
+                    </if>
+                    <if test ='null != terrain'>
+                    terrain,
+                    </if>
+                    <if test ='null != iftransform'>
+                    iftransform,
+                    </if>
+                    <if test ='null != measures'>
+                    measures,
+                    </if>
+                    <if test ='null != remark'>
+                    remark,
+                    </if>
+                    <if test ='null != delFlag'>
+                    del_flag,
+                    </if>
+                    <if test ='null != createBy'>
+                    create_by,
+                    </if>
+                    <if test ='null != createTime'>
+                    create_time,
+                    </if>
+                    <if test ='null != updateBy'>
+                    update_by,
+                    </if>
+                    <if test ='null != updateTime'>
+                    update_time
+                    </if>
+        </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+                    <if test ='null != piecewise'>
+                    #{piecewise},
+                    </if>
+                    <if test ='null != deptId'>
+                    #{deptId},
+                    </if>
+                    <if test ='null != deptName'>
+                    #{deptName},
+                    </if>
+                    <if test ='null != lineId'>
+                    #{lineId},
+                    </if>
+                    <if test ='null != lineName'>
+                    #{lineName},
+                    </if>
+                    <if test ='null != xingbie'>
+                    #{xingbie},
+                    </if>
+                    <if test ='null != stationId'>
+                    #{stationId},
+                    </if>
+                    <if test ='null != stationName'>
+                    #{stationName},
+                    </if>
+                    <if test ='null != pillarArea'>
+                    #{pillarArea},
+                    </if>
+                    <if test ='null != pillarCount'>
+                    #{pillarCount},
+                    </if>
+                    <if test ='null != lineType'>
+                    #{lineType},
+                    </if>
+                    <if test ='null != pillarType'>
+                    #{pillarType},
+                    </if>
+                    <if test ='null != marker'>
+                    #{marker},
+                    </if>
+                    <if test ='null != terrain'>
+                    #{terrain},
+                    </if>
+                    <if test ='null != iftransform'>
+                    #{iftransform},
+                    </if>
+                    <if test ='null != measures'>
+                    #{measures},
+                    </if>
+                    <if test ='null != remark'>
+                    #{remark},
+                    </if>
+                    <if test ='null != delFlag'>
+                    #{delFlag},
+                    </if>
+                    <if test ='null != createBy'>
+                    #{createBy},
+                    </if>
+                    <if test ='null != createTime'>
+                    #{createTime},
+                    </if>
+                    <if test ='null != updateBy'>
+                    #{updateBy},
+                    </if>
+                    <if test ='null != updateTime'>
+                    #{updateTime}
+                    </if>
+        </trim>
+    </insert>
+
+    <delete id="delete">
+        UPDATE base_prevent_thaw
+        set del_flag='1'
+        WHERE id = #{id}
+    </delete>
+
+    <update id="update" parameterType="com.railway.business.baseinfo.domain.BasePreventThaw">
+        UPDATE base_prevent_thaw
+        <set>
+                    <if test ='null != piecewise'>piecewise = #{piecewise},</if>
+                    <if test ='null != deptId'>dept_id = #{deptId},</if>
+                    <if test ='null != deptName'>dept_name = #{deptName},</if>
+                    <if test ='null != lineId'>line_id = #{lineId},</if>
+                    <if test ='null != lineName'>line_name = #{lineName},</if>
+                    <if test ='null != xingbie'>xingbie = #{xingbie},</if>
+                    <if test ='null != stationId'>station_id = #{stationId},</if>
+                    <if test ='null != stationName'>station_name = #{stationName},</if>
+                    <if test ='null != pillarArea'>pillar_area = #{pillarArea},</if>
+                    <if test ='null != pillarCount'>pillar_count = #{pillarCount},</if>
+                    <if test ='null != lineType'>line_type = #{lineType},</if>
+                    <if test ='null != pillarType'>pillar_type = #{pillarType},</if>
+                    <if test ='null != marker'>marker = #{marker},</if>
+                    <if test ='null != terrain'>terrain = #{terrain},</if>
+                    <if test ='null != iftransform'>iftransform = #{iftransform},</if>
+                    <if test ='null != measures'>measures = #{measures},</if>
+                    <if test ='null != remark'>remark = #{remark},</if>
+                    <if test ='null != delFlag'>del_flag = #{delFlag},</if>
+                    <if test ='null != createBy'>create_by = #{createBy},</if>
+                    <if test ='null != createTime'>create_time = #{createTime},</if>
+                    <if test ='null != updateBy'>update_by = #{updateBy},</if>
+                    <if test ='null != updateTime'>update_time = #{updateTime}</if>
+        </set>
+        WHERE id = #{id}
+    </update>
+
+
+    <select id="getInfo" resultMap="BaseResultMap">
+        SELECT
+        <include refid="Base_Column_List"/>
+        FROM base_prevent_thaw
+        WHERE del_flag='0' and id = #{id}
+
+    </select>
+
+    <select id="getList" resultMap="BaseResultMap">
+        SELECT
+        <include refid="Base_Column_List"/>
+        FROM base_prevent_thaw
+        <where>
+            del_flag='0'
+                <if test="piecewise!=null and piecewise!=''">
+                    and piecewise=#{piecewise}
+                </if>
+                <if test="deptId!=null and deptId!=''">
+                    and dept_id=#{deptId}
+                </if>
+                <if test="deptName!=null and deptName!=''">
+                    and dept_name=#{deptName}
+                </if>
+                <if test="lineId!=null and lineId!=''">
+                    and line_id=#{lineId}
+                </if>
+                <if test="lineName!=null and lineName!=''">
+                    and line_name=#{lineName}
+                </if>
+                <if test="xingbie!=null and xingbie!=''">
+                    and xingbie=#{xingbie}
+                </if>
+                <if test="stationId!=null and stationId!=''">
+                    and station_id=#{stationId}
+                </if>
+                <if test="stationName!=null and stationName!=''">
+                    and station_name=#{stationName}
+                </if>
+                <if test="pillarArea!=null and pillarArea!=''">
+                    and pillar_area=#{pillarArea}
+                </if>
+                <if test="pillarCount!=null and pillarCount!=''">
+                    and pillar_count=#{pillarCount}
+                </if>
+                <if test="lineType!=null and lineType!=''">
+                    and line_type=#{lineType}
+                </if>
+                <if test="pillarType!=null and pillarType!=''">
+                    and pillar_type=#{pillarType}
+                </if>
+                <if test="marker!=null and marker!=''">
+                    and marker=#{marker}
+                </if>
+                <if test="terrain!=null and terrain!=''">
+                    and terrain=#{terrain}
+                </if>
+                <if test="iftransform!=null and iftransform!=''">
+                    and iftransform=#{iftransform}
+                </if>
+                <if test="measures!=null and measures!=''">
+                    and measures=#{measures}
+                </if>
+                <if test="remark!=null and remark!=''">
+                    and remark=#{remark}
+                </if>
+                <if test="delFlag!=null and delFlag!=''">
+                    and del_flag=#{delFlag}
+                </if>
+                <if test="createBy!=null and createBy!=''">
+                    and create_by=#{createBy}
+                </if>
+                <if test="createTime!=null and createTime!=''">
+                    and create_time=#{createTime}
+                </if>
+                <if test="updateBy!=null and updateBy!=''">
+                    and update_by=#{updateBy}
+                </if>
+                <if test="updateTime!=null and updateTime!=''">
+                    and update_time=#{updateTime}
+                </if>
+        </where>
+    </select>
+
+</mapper>

+ 248 - 0
railway-business/src/main/resources/mapper/baseinfo/BasePreventThunderMapper.xml

@@ -0,0 +1,248 @@
+<?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.railway.business.baseinfo.mapper.BasePreventThunderMapper">
+
+    <resultMap id="BaseResultMap" type="com.railway.business.baseinfo.domain.BasePreventThunder">
+                <result column="id" property="id"/>
+                <result column="dept_id" property="deptId"/>
+                <result column="dept_name" property="deptName"/>
+                <result column="line_id" property="lineId"/>
+                <result column="line_name" property="lineName"/>
+                <result column="xingbie" property="xingbie"/>
+                <result column="station_id" property="stationId"/>
+                <result column="station_name" property="stationName"/>
+                <result column="pillar_code" property="pillarCode"/>
+                <result column="marker" property="marker"/>
+                <result column="specification" property="specification"/>
+                <result column="display_num" property="displayNum"/>
+                <result column="del_flag" property="delFlag"/>
+                <result column="create_by" property="createBy"/>
+                <result column="create_time" property="createTime"/>
+                <result column="update_by" property="updateBy"/>
+                <result column="update_time" property="updateTime"/>
+    </resultMap>
+
+    <sql id="Base_Column_List">
+                id,
+                dept_id,
+                dept_name,
+                line_id,
+                line_name,
+                xingbie,
+                station_id,
+                station_name,
+                pillar_code,
+                marker,
+                specification,
+                display_num,
+                del_flag,
+                create_by,
+                create_time,
+                update_by,
+                update_time
+    </sql>
+
+    <insert id="insert" parameterType="com.railway.business.baseinfo.domain.BasePreventThunder">
+        <selectKey keyProperty="id" order="BEFORE" resultType="String">
+            select replace(uuid(), '-', '') from dual
+        </selectKey>
+        INSERT INTO base_prevent_thunder
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+                    <if test ='null != deptId'>
+                    dept_id,
+                    </if>
+                    <if test ='null != deptName'>
+                    dept_name,
+                    </if>
+                    <if test ='null != lineId'>
+                    line_id,
+                    </if>
+                    <if test ='null != lineName'>
+                    line_name,
+                    </if>
+                    <if test ='null != xingbie'>
+                    xingbie,
+                    </if>
+                    <if test ='null != stationId'>
+                    station_id,
+                    </if>
+                    <if test ='null != stationName'>
+                    station_name,
+                    </if>
+                    <if test ='null != pillarCode'>
+                    pillar_code,
+                    </if>
+                    <if test ='null != marker'>
+                    marker,
+                    </if>
+                    <if test ='null != specification'>
+                    specification,
+                    </if>
+                    <if test ='null != displayNum'>
+                    display_num,
+                    </if>
+                    <if test ='null != delFlag'>
+                    del_flag,
+                    </if>
+                    <if test ='null != createBy'>
+                    create_by,
+                    </if>
+                    <if test ='null != createTime'>
+                    create_time,
+                    </if>
+                    <if test ='null != updateBy'>
+                    update_by,
+                    </if>
+                    <if test ='null != updateTime'>
+                    update_time
+                    </if>
+        </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+                    <if test ='null != deptId'>
+                    #{deptId},
+                    </if>
+                    <if test ='null != deptName'>
+                    #{deptName},
+                    </if>
+                    <if test ='null != lineId'>
+                    #{lineId},
+                    </if>
+                    <if test ='null != lineName'>
+                    #{lineName},
+                    </if>
+                    <if test ='null != xingbie'>
+                    #{xingbie},
+                    </if>
+                    <if test ='null != stationId'>
+                    #{stationId},
+                    </if>
+                    <if test ='null != stationName'>
+                    #{stationName},
+                    </if>
+                    <if test ='null != pillarCode'>
+                    #{pillarCode},
+                    </if>
+                    <if test ='null != marker'>
+                    #{marker},
+                    </if>
+                    <if test ='null != specification'>
+                    #{specification},
+                    </if>
+                    <if test ='null != displayNum'>
+                    #{displayNum},
+                    </if>
+                    <if test ='null != delFlag'>
+                    #{delFlag},
+                    </if>
+                    <if test ='null != createBy'>
+                    #{createBy},
+                    </if>
+                    <if test ='null != createTime'>
+                    #{createTime},
+                    </if>
+                    <if test ='null != updateBy'>
+                    #{updateBy},
+                    </if>
+                    <if test ='null != updateTime'>
+                    #{updateTime}
+                    </if>
+        </trim>
+    </insert>
+
+    <delete id="delete">
+        UPDATE base_prevent_thunder
+        set del_flag='1'
+        WHERE id = #{id}
+    </delete>
+
+    <update id="update" parameterType="com.railway.business.baseinfo.domain.BasePreventThunder">
+        UPDATE base_prevent_thunder
+        <set>
+                    <if test ='null != deptId'>dept_id = #{deptId},</if>
+                    <if test ='null != deptName'>dept_name = #{deptName},</if>
+                    <if test ='null != lineId'>line_id = #{lineId},</if>
+                    <if test ='null != lineName'>line_name = #{lineName},</if>
+                    <if test ='null != xingbie'>xingbie = #{xingbie},</if>
+                    <if test ='null != stationId'>station_id = #{stationId},</if>
+                    <if test ='null != stationName'>station_name = #{stationName},</if>
+                    <if test ='null != pillarCode'>pillar_code = #{pillarCode},</if>
+                    <if test ='null != marker'>marker = #{marker},</if>
+                    <if test ='null != specification'>specification = #{specification},</if>
+                    <if test ='null != displayNum'>display_num = #{displayNum},</if>
+                    <if test ='null != delFlag'>del_flag = #{delFlag},</if>
+                    <if test ='null != createBy'>create_by = #{createBy},</if>
+                    <if test ='null != createTime'>create_time = #{createTime},</if>
+                    <if test ='null != updateBy'>update_by = #{updateBy},</if>
+                    <if test ='null != updateTime'>update_time = #{updateTime}</if>
+        </set>
+        WHERE id = #{id}
+    </update>
+
+
+    <select id="getInfo" resultMap="BaseResultMap">
+        SELECT
+        <include refid="Base_Column_List"/>
+        FROM base_prevent_thunder
+        WHERE del_flag='0' and id = #{id}
+
+    </select>
+
+    <select id="getList" resultMap="BaseResultMap">
+        SELECT
+        <include refid="Base_Column_List"/>
+        FROM base_prevent_thunder
+        <where>
+            del_flag='0'
+                <if test="deptId!=null and deptId!=''">
+                    and dept_id=#{deptId}
+                </if>
+                <if test="deptName!=null and deptName!=''">
+                    and dept_name=#{deptName}
+                </if>
+                <if test="lineId!=null and lineId!=''">
+                    and line_id=#{lineId}
+                </if>
+                <if test="lineName!=null and lineName!=''">
+                    and line_name=#{lineName}
+                </if>
+                <if test="xingbie!=null and xingbie!=''">
+                    and xingbie=#{xingbie}
+                </if>
+                <if test="stationId!=null and stationId!=''">
+                    and station_id=#{stationId}
+                </if>
+                <if test="stationName!=null and stationName!=''">
+                    and station_name=#{stationName}
+                </if>
+                <if test="pillarCode!=null and pillarCode!=''">
+                    and pillar_code=#{pillarCode}
+                </if>
+                <if test="marker!=null and marker!=''">
+                    and marker=#{marker}
+                </if>
+                <if test="specification!=null and specification!=''">
+                    and specification=#{specification}
+                </if>
+                <if test="displayNum!=null and displayNum!=''">
+                    and display_num=#{displayNum}
+                </if>
+                <if test="delFlag!=null and delFlag!=''">
+                    and del_flag=#{delFlag}
+                </if>
+                <if test="createBy!=null and createBy!=''">
+                    and create_by=#{createBy}
+                </if>
+                <if test="createTime!=null and createTime!=''">
+                    and create_time=#{createTime}
+                </if>
+                <if test="updateBy!=null and updateBy!=''">
+                    and update_by=#{updateBy}
+                </if>
+                <if test="updateTime!=null and updateTime!=''">
+                    and update_time=#{updateTime}
+                </if>
+        </where>
+    </select>
+
+</mapper>

+ 320 - 0
railway-business/src/main/resources/mapper/baseinfo/BasePreventTreeMapper.xml

@@ -0,0 +1,320 @@
+<?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.railway.business.baseinfo.mapper.BasePreventTreeMapper">
+
+    <resultMap id="BaseResultMap" type="com.railway.business.baseinfo.domain.BasePreventTree">
+                <result column="id" property="id"/>
+                <result column="dept_id" property="deptId"/>
+                <result column="dept_name" property="deptName"/>
+                <result column="line_id" property="lineId"/>
+                <result column="line_name" property="lineName"/>
+                <result column="xingbie" property="xingbie"/>
+                <result column="station_id" property="stationId"/>
+                <result column="station_name" property="stationName"/>
+                <result column="pillar_code" property="pillarCode"/>
+                <result column="marker" property="marker"/>
+                <result column="count" property="count"/>
+                <result column="distance_horizontal" property="distanceHorizontal"/>
+                <result column="distance_vertical" property="distanceVertical"/>
+                <result column="kind" property="kind"/>
+                <result column="severity" property="severity"/>
+                <result column="property_rights" property="propertyRights"/>
+                <result column="inquirer" property="inquirer"/>
+                <result column="remark" property="remark"/>
+                <result column="del_flag" property="delFlag"/>
+                <result column="create_by" property="createBy"/>
+                <result column="create_time" property="createTime"/>
+                <result column="update_by" property="updateBy"/>
+                <result column="update_time" property="updateTime"/>
+    </resultMap>
+
+    <sql id="Base_Column_List">
+                id,
+                dept_id,
+                dept_name,
+                line_id,
+                line_name,
+                xingbie,
+                station_id,
+                station_name,
+                pillar_code,
+                marker,
+                count,
+                distance_horizontal,
+                distance_vertical,
+                kind,
+                severity,
+                property_rights,
+                inquirer,
+                remark,
+                del_flag,
+                create_by,
+                create_time,
+                update_by,
+                update_time
+    </sql>
+
+    <insert id="insert" parameterType="com.railway.business.baseinfo.domain.BasePreventTree">
+        <selectKey keyProperty="id" order="BEFORE" resultType="String">
+            select replace(uuid(), '-', '') from dual
+        </selectKey>
+        INSERT INTO base_prevent_tree
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+                    <if test ='null != deptId'>
+                    dept_id,
+                    </if>
+                    <if test ='null != deptName'>
+                    dept_name,
+                    </if>
+                    <if test ='null != lineId'>
+                    line_id,
+                    </if>
+                    <if test ='null != lineName'>
+                    line_name,
+                    </if>
+                    <if test ='null != xingbie'>
+                    xingbie,
+                    </if>
+                    <if test ='null != stationId'>
+                    station_id,
+                    </if>
+                    <if test ='null != stationName'>
+                    station_name,
+                    </if>
+                    <if test ='null != pillarCode'>
+                    pillar_code,
+                    </if>
+                    <if test ='null != marker'>
+                    marker,
+                    </if>
+                    <if test ='null != count'>
+                    count,
+                    </if>
+                    <if test ='null != distanceHorizontal'>
+                    distance_horizontal,
+                    </if>
+                    <if test ='null != distanceVertical'>
+                    distance_vertical,
+                    </if>
+                    <if test ='null != kind'>
+                    kind,
+                    </if>
+                    <if test ='null != severity'>
+                    severity,
+                    </if>
+                    <if test ='null != propertyRights'>
+                    property_rights,
+                    </if>
+                    <if test ='null != inquirer'>
+                    inquirer,
+                    </if>
+                    <if test ='null != remark'>
+                    remark,
+                    </if>
+                    <if test ='null != delFlag'>
+                    del_flag,
+                    </if>
+                    <if test ='null != createBy'>
+                    create_by,
+                    </if>
+                    <if test ='null != createTime'>
+                    create_time,
+                    </if>
+                    <if test ='null != updateBy'>
+                    update_by,
+                    </if>
+                    <if test ='null != updateTime'>
+                    update_time
+                    </if>
+        </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+                    <if test ='null != deptId'>
+                    #{deptId},
+                    </if>
+                    <if test ='null != deptName'>
+                    #{deptName},
+                    </if>
+                    <if test ='null != lineId'>
+                    #{lineId},
+                    </if>
+                    <if test ='null != lineName'>
+                    #{lineName},
+                    </if>
+                    <if test ='null != xingbie'>
+                    #{xingbie},
+                    </if>
+                    <if test ='null != stationId'>
+                    #{stationId},
+                    </if>
+                    <if test ='null != stationName'>
+                    #{stationName},
+                    </if>
+                    <if test ='null != pillarCode'>
+                    #{pillarCode},
+                    </if>
+                    <if test ='null != marker'>
+                    #{marker},
+                    </if>
+                    <if test ='null != count'>
+                    #{count},
+                    </if>
+                    <if test ='null != distanceHorizontal'>
+                    #{distanceHorizontal},
+                    </if>
+                    <if test ='null != distanceVertical'>
+                    #{distanceVertical},
+                    </if>
+                    <if test ='null != kind'>
+                    #{kind},
+                    </if>
+                    <if test ='null != severity'>
+                    #{severity},
+                    </if>
+                    <if test ='null != propertyRights'>
+                    #{propertyRights},
+                    </if>
+                    <if test ='null != inquirer'>
+                    #{inquirer},
+                    </if>
+                    <if test ='null != remark'>
+                    #{remark},
+                    </if>
+                    <if test ='null != delFlag'>
+                    #{delFlag},
+                    </if>
+                    <if test ='null != createBy'>
+                    #{createBy},
+                    </if>
+                    <if test ='null != createTime'>
+                    #{createTime},
+                    </if>
+                    <if test ='null != updateBy'>
+                    #{updateBy},
+                    </if>
+                    <if test ='null != updateTime'>
+                    #{updateTime}
+                    </if>
+        </trim>
+    </insert>
+
+    <delete id="delete">
+        UPDATE base_prevent_tree
+        set del_flag='1'
+        WHERE id = #{id}
+    </delete>
+
+    <update id="update" parameterType="com.railway.business.baseinfo.domain.BasePreventTree">
+        UPDATE base_prevent_tree
+        <set>
+                    <if test ='null != deptId'>dept_id = #{deptId},</if>
+                    <if test ='null != deptName'>dept_name = #{deptName},</if>
+                    <if test ='null != lineId'>line_id = #{lineId},</if>
+                    <if test ='null != lineName'>line_name = #{lineName},</if>
+                    <if test ='null != xingbie'>xingbie = #{xingbie},</if>
+                    <if test ='null != stationId'>station_id = #{stationId},</if>
+                    <if test ='null != stationName'>station_name = #{stationName},</if>
+                    <if test ='null != pillarCode'>pillar_code = #{pillarCode},</if>
+                    <if test ='null != marker'>marker = #{marker},</if>
+                    <if test ='null != count'>count = #{count},</if>
+                    <if test ='null != distanceHorizontal'>distance_horizontal = #{distanceHorizontal},</if>
+                    <if test ='null != distanceVertical'>distance_vertical = #{distanceVertical},</if>
+                    <if test ='null != kind'>kind = #{kind},</if>
+                    <if test ='null != severity'>severity = #{severity},</if>
+                    <if test ='null != propertyRights'>property_rights = #{propertyRights},</if>
+                    <if test ='null != inquirer'>inquirer = #{inquirer},</if>
+                    <if test ='null != remark'>remark = #{remark},</if>
+                    <if test ='null != delFlag'>del_flag = #{delFlag},</if>
+                    <if test ='null != createBy'>create_by = #{createBy},</if>
+                    <if test ='null != createTime'>create_time = #{createTime},</if>
+                    <if test ='null != updateBy'>update_by = #{updateBy},</if>
+                    <if test ='null != updateTime'>update_time = #{updateTime}</if>
+        </set>
+        WHERE id = #{id}
+    </update>
+
+
+    <select id="getInfo" resultMap="BaseResultMap">
+        SELECT
+        <include refid="Base_Column_List"/>
+        FROM base_prevent_tree
+        WHERE del_flag='0' and id = #{id}
+
+    </select>
+
+    <select id="getList" resultMap="BaseResultMap">
+        SELECT
+        <include refid="Base_Column_List"/>
+        FROM base_prevent_tree
+        <where>
+            del_flag='0'
+                <if test="deptId!=null and deptId!=''">
+                    and dept_id=#{deptId}
+                </if>
+                <if test="deptName!=null and deptName!=''">
+                    and dept_name=#{deptName}
+                </if>
+                <if test="lineId!=null and lineId!=''">
+                    and line_id=#{lineId}
+                </if>
+                <if test="lineName!=null and lineName!=''">
+                    and line_name=#{lineName}
+                </if>
+                <if test="xingbie!=null and xingbie!=''">
+                    and xingbie=#{xingbie}
+                </if>
+                <if test="stationId!=null and stationId!=''">
+                    and station_id=#{stationId}
+                </if>
+                <if test="stationName!=null and stationName!=''">
+                    and station_name=#{stationName}
+                </if>
+                <if test="pillarCode!=null and pillarCode!=''">
+                    and pillar_code=#{pillarCode}
+                </if>
+                <if test="marker!=null and marker!=''">
+                    and marker=#{marker}
+                </if>
+                <if test="count!=null and count!=''">
+                    and count=#{count}
+                </if>
+                <if test="distanceHorizontal!=null and distanceHorizontal!=''">
+                    and distance_horizontal=#{distanceHorizontal}
+                </if>
+                <if test="distanceVertical!=null and distanceVertical!=''">
+                    and distance_vertical=#{distanceVertical}
+                </if>
+                <if test="kind!=null and kind!=''">
+                    and kind=#{kind}
+                </if>
+                <if test="severity!=null and severity!=''">
+                    and severity=#{severity}
+                </if>
+                <if test="propertyRights!=null and propertyRights!=''">
+                    and property_rights=#{propertyRights}
+                </if>
+                <if test="inquirer!=null and inquirer!=''">
+                    and inquirer=#{inquirer}
+                </if>
+                <if test="remark!=null and remark!=''">
+                    and remark=#{remark}
+                </if>
+                <if test="delFlag!=null and delFlag!=''">
+                    and del_flag=#{delFlag}
+                </if>
+                <if test="createBy!=null and createBy!=''">
+                    and create_by=#{createBy}
+                </if>
+                <if test="createTime!=null and createTime!=''">
+                    and create_time=#{createTime}
+                </if>
+                <if test="updateBy!=null and updateBy!=''">
+                    and update_by=#{updateBy}
+                </if>
+                <if test="updateTime!=null and updateTime!=''">
+                    and update_time=#{updateTime}
+                </if>
+        </where>
+    </select>
+
+</mapper>

+ 272 - 0
railway-business/src/main/resources/mapper/baseinfo/BasePreventWindMapper.xml

@@ -0,0 +1,272 @@
+<?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.railway.business.baseinfo.mapper.BasePreventWindMapper">
+
+    <resultMap id="BaseResultMap" type="com.railway.business.baseinfo.domain.BasePreventWind">
+                <result column="id" property="id"/>
+                <result column="piecewise" property="piecewise"/>
+                <result column="dept_id" property="deptId"/>
+                <result column="dept_name" property="deptName"/>
+                <result column="line_id" property="lineId"/>
+                <result column="line_name" property="lineName"/>
+                <result column="xingbie" property="xingbie"/>
+                <result column="station_id" property="stationId"/>
+                <result column="station_name" property="stationName"/>
+                <result column="pillar_code" property="pillarCode"/>
+                <result column="marker" property="marker"/>
+                <result column="risk_source" property="riskSource"/>
+                <result column="measures" property="measures"/>
+                <result column="remark" property="remark"/>
+                <result column="del_flag" property="delFlag"/>
+                <result column="create_by" property="createBy"/>
+                <result column="create_time" property="createTime"/>
+                <result column="update_by" property="updateBy"/>
+                <result column="update_time" property="updateTime"/>
+    </resultMap>
+
+    <sql id="Base_Column_List">
+                id,
+                piecewise,
+                dept_id,
+                dept_name,
+                line_id,
+                line_name,
+                xingbie,
+                station_id,
+                station_name,
+                pillar_code,
+                marker,
+                risk_source,
+                measures,
+                remark,
+                del_flag,
+                create_by,
+                create_time,
+                update_by,
+                update_time
+    </sql>
+
+    <insert id="insert" parameterType="com.railway.business.baseinfo.domain.BasePreventWind">
+        <selectKey keyProperty="id" order="BEFORE" resultType="String">
+            select replace(uuid(), '-', '') from dual
+        </selectKey>
+        INSERT INTO base_prevent_wind
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+                    <if test ='null != piecewise'>
+                    piecewise,
+                    </if>
+                    <if test ='null != deptId'>
+                    dept_id,
+                    </if>
+                    <if test ='null != deptName'>
+                    dept_name,
+                    </if>
+                    <if test ='null != lineId'>
+                    line_id,
+                    </if>
+                    <if test ='null != lineName'>
+                    line_name,
+                    </if>
+                    <if test ='null != xingbie'>
+                    xingbie,
+                    </if>
+                    <if test ='null != stationId'>
+                    station_id,
+                    </if>
+                    <if test ='null != stationName'>
+                    station_name,
+                    </if>
+                    <if test ='null != pillarCode'>
+                    pillar_code,
+                    </if>
+                    <if test ='null != marker'>
+                    marker,
+                    </if>
+                    <if test ='null != riskSource'>
+                    risk_source,
+                    </if>
+                    <if test ='null != measures'>
+                    measures,
+                    </if>
+                    <if test ='null != remark'>
+                    remark,
+                    </if>
+                    <if test ='null != delFlag'>
+                    del_flag,
+                    </if>
+                    <if test ='null != createBy'>
+                    create_by,
+                    </if>
+                    <if test ='null != createTime'>
+                    create_time,
+                    </if>
+                    <if test ='null != updateBy'>
+                    update_by,
+                    </if>
+                    <if test ='null != updateTime'>
+                    update_time
+                    </if>
+        </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+                    <if test ='null != piecewise'>
+                    #{piecewise},
+                    </if>
+                    <if test ='null != deptId'>
+                    #{deptId},
+                    </if>
+                    <if test ='null != deptName'>
+                    #{deptName},
+                    </if>
+                    <if test ='null != lineId'>
+                    #{lineId},
+                    </if>
+                    <if test ='null != lineName'>
+                    #{lineName},
+                    </if>
+                    <if test ='null != xingbie'>
+                    #{xingbie},
+                    </if>
+                    <if test ='null != stationId'>
+                    #{stationId},
+                    </if>
+                    <if test ='null != stationName'>
+                    #{stationName},
+                    </if>
+                    <if test ='null != pillarCode'>
+                    #{pillarCode},
+                    </if>
+                    <if test ='null != marker'>
+                    #{marker},
+                    </if>
+                    <if test ='null != riskSource'>
+                    #{riskSource},
+                    </if>
+                    <if test ='null != measures'>
+                    #{measures},
+                    </if>
+                    <if test ='null != remark'>
+                    #{remark},
+                    </if>
+                    <if test ='null != delFlag'>
+                    #{delFlag},
+                    </if>
+                    <if test ='null != createBy'>
+                    #{createBy},
+                    </if>
+                    <if test ='null != createTime'>
+                    #{createTime},
+                    </if>
+                    <if test ='null != updateBy'>
+                    #{updateBy},
+                    </if>
+                    <if test ='null != updateTime'>
+                    #{updateTime}
+                    </if>
+        </trim>
+    </insert>
+
+    <delete id="delete">
+        UPDATE base_prevent_wind
+        set del_flag='1'
+        WHERE id = #{id}
+    </delete>
+
+    <update id="update" parameterType="com.railway.business.baseinfo.domain.BasePreventWind">
+        UPDATE base_prevent_wind
+        <set>
+                    <if test ='null != piecewise'>piecewise = #{piecewise},</if>
+                    <if test ='null != deptId'>dept_id = #{deptId},</if>
+                    <if test ='null != deptName'>dept_name = #{deptName},</if>
+                    <if test ='null != lineId'>line_id = #{lineId},</if>
+                    <if test ='null != lineName'>line_name = #{lineName},</if>
+                    <if test ='null != xingbie'>xingbie = #{xingbie},</if>
+                    <if test ='null != stationId'>station_id = #{stationId},</if>
+                    <if test ='null != stationName'>station_name = #{stationName},</if>
+                    <if test ='null != pillarCode'>pillar_code = #{pillarCode},</if>
+                    <if test ='null != marker'>marker = #{marker},</if>
+                    <if test ='null != riskSource'>risk_source = #{riskSource},</if>
+                    <if test ='null != measures'>measures = #{measures},</if>
+                    <if test ='null != remark'>remark = #{remark},</if>
+                    <if test ='null != delFlag'>del_flag = #{delFlag},</if>
+                    <if test ='null != createBy'>create_by = #{createBy},</if>
+                    <if test ='null != createTime'>create_time = #{createTime},</if>
+                    <if test ='null != updateBy'>update_by = #{updateBy},</if>
+                    <if test ='null != updateTime'>update_time = #{updateTime}</if>
+        </set>
+        WHERE id = #{id}
+    </update>
+
+
+    <select id="getInfo" resultMap="BaseResultMap">
+        SELECT
+        <include refid="Base_Column_List"/>
+        FROM base_prevent_wind
+        WHERE del_flag='0' and id = #{id}
+
+    </select>
+
+    <select id="getList" resultMap="BaseResultMap">
+        SELECT
+        <include refid="Base_Column_List"/>
+        FROM base_prevent_wind
+        <where>
+            del_flag='0'
+                <if test="piecewise!=null and piecewise!=''">
+                    and piecewise=#{piecewise}
+                </if>
+                <if test="deptId!=null and deptId!=''">
+                    and dept_id=#{deptId}
+                </if>
+                <if test="deptName!=null and deptName!=''">
+                    and dept_name=#{deptName}
+                </if>
+                <if test="lineId!=null and lineId!=''">
+                    and line_id=#{lineId}
+                </if>
+                <if test="lineName!=null and lineName!=''">
+                    and line_name=#{lineName}
+                </if>
+                <if test="xingbie!=null and xingbie!=''">
+                    and xingbie=#{xingbie}
+                </if>
+                <if test="stationId!=null and stationId!=''">
+                    and station_id=#{stationId}
+                </if>
+                <if test="stationName!=null and stationName!=''">
+                    and station_name=#{stationName}
+                </if>
+                <if test="pillarCode!=null and pillarCode!=''">
+                    and pillar_code=#{pillarCode}
+                </if>
+                <if test="marker!=null and marker!=''">
+                    and marker=#{marker}
+                </if>
+                <if test="riskSource!=null and riskSource!=''">
+                    and risk_source=#{riskSource}
+                </if>
+                <if test="measures!=null and measures!=''">
+                    and measures=#{measures}
+                </if>
+                <if test="remark!=null and remark!=''">
+                    and remark=#{remark}
+                </if>
+                <if test="delFlag!=null and delFlag!=''">
+                    and del_flag=#{delFlag}
+                </if>
+                <if test="createBy!=null and createBy!=''">
+                    and create_by=#{createBy}
+                </if>
+                <if test="createTime!=null and createTime!=''">
+                    and create_time=#{createTime}
+                </if>
+                <if test="updateBy!=null and updateBy!=''">
+                    and update_by=#{updateBy}
+                </if>
+                <if test="updateTime!=null and updateTime!=''">
+                    and update_time=#{updateTime}
+                </if>
+        </where>
+    </select>
+
+</mapper>