Selaa lähdekoodia

基础数据-地面磁感应器 交叉线岔

Eric 4 vuotta sitten
vanhempi
commit
56f497f97e

+ 63 - 0
railway-admin/src/main/java/com/railway/web/controller/business/catenary/BusDmcgyqController.java

@@ -0,0 +1,63 @@
+package com.railway.web.controller.business.catenary;
+
+import com.railway.business.catenary.domain.BusDmcgyq;
+import com.railway.business.catenary.service.IBusDmcgyqService;
+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/catenary/bus/dmcgyq", tags = "基础数据-地面磁感应器")
+@RestController
+@Validated
+@RequestMapping(value = "business/catenary/bus/dmcgyq")
+public class BusDmcgyqController extends BaseController {
+    @Autowired
+    private IBusDmcgyqService busDmcgyqService;
+
+    @ApiOperation(value = "新增")
+    @PostMapping("/add")
+    public AjaxResult add(@Validated @RequestBody BusDmcgyq busDmcgyq) {
+        return toAjax(busDmcgyqService.create(busDmcgyq));
+    }
+
+    @ApiOperation(value = "删除")
+    @DeleteMapping("/{ids}")
+    public AjaxResult delete(@RequestParam String[] ids) {
+        return toAjax(busDmcgyqService.delete(ids));
+    }
+
+    @ApiOperation(value = "更新")
+    @PutMapping("/update")
+    public AjaxResult update(@RequestBody @Valid BusDmcgyq busDmcgyq) {
+        return toAjax(busDmcgyqService.update(busDmcgyq));
+    }
+
+    @ApiOperation(value = "单个")
+    @GetMapping(value = {"/", "/{id}"})
+    public AjaxResult getInfo(String id) {
+        BusDmcgyq info = busDmcgyqService.getInfo(id);
+        AjaxResult ajax = AjaxResult.success();
+        ajax.put("info",info);
+        return ajax;
+    }
+
+    @ApiOperation(value = "列表")
+    @GetMapping(value = "list")
+    public TableDataInfo getList(BusDmcgyq busDmcgyq) {
+        startPage();
+        List<BusDmcgyq> list = busDmcgyqService.getList(busDmcgyq);
+        return getDataTable(list);
+    }
+
+}

+ 63 - 0
railway-admin/src/main/java/com/railway/web/controller/business/catenary/BusJcxcController.java

@@ -0,0 +1,63 @@
+package com.railway.web.controller.business.catenary;
+
+import com.railway.business.catenary.domain.BusJcxc;
+import com.railway.business.catenary.service.IBusJcxcService;
+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/catenary/bus/jcxc", tags = "基础数据-交叉线岔")
+@RestController
+@Validated
+@RequestMapping(value = "business/catenary/bus/jcxc")
+public class BusJcxcController extends BaseController {
+    @Autowired
+    private IBusJcxcService busJcxcService;
+
+    @ApiOperation(value = "新增")
+    @PostMapping("/add")
+    public AjaxResult add(@Validated @RequestBody BusJcxc busJcxc) {
+        return toAjax(busJcxcService.create(busJcxc));
+    }
+
+    @ApiOperation(value = "删除")
+    @DeleteMapping("/{ids}")
+    public AjaxResult delete(@RequestParam String[] ids) {
+        return toAjax(busJcxcService.delete(ids));
+    }
+
+    @ApiOperation(value = "更新")
+    @PutMapping("/update")
+    public AjaxResult update(@RequestBody @Valid BusJcxc busJcxc) {
+        return toAjax(busJcxcService.update(busJcxc));
+    }
+
+    @ApiOperation(value = "单个")
+    @GetMapping(value = {"/", "/{id}"})
+    public AjaxResult getInfo(String id) {
+        BusJcxc info = busJcxcService.getInfo(id);
+        AjaxResult ajax = AjaxResult.success();
+        ajax.put("info",info);
+        return ajax;
+    }
+
+    @ApiOperation(value = "列表")
+    @GetMapping(value = "list")
+    public TableDataInfo getList(BusJcxc busJcxc) {
+        startPage();
+        List<BusJcxc> list = busJcxcService.getList(busJcxc);
+        return getDataTable(list);
+    }
+
+}

+ 115 - 0
railway-business/src/main/java/com/railway/business/catenary/domain/BusDmcgyq.java

@@ -0,0 +1,115 @@
+package com.railway.business.catenary.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 zcf 2021-10-26
+ */
+@Data
+@ApiModel("基础数据-地面磁感应器")
+@EqualsAndHashCode(callSuper = true)
+public class BusDmcgyq extends BaseEntity{
+
+    @ApiModelProperty(value = "主键", hidden = true)
+    private String id;
+
+    @ApiModelProperty(value = "段别")
+    @Length(min = 1, max = 200, message = "【段别】长度必须介于 {min} 和 {max} 之间")
+    private String db;
+
+    @ApiModelProperty(value = "车间id")
+    private Long deptId;
+
+    @ApiModelProperty(value = "所属部门")
+    @Length(min = 1, max = 100, message = "【所属部门】长度必须介于 {min} 和 {max} 之间")
+    private String bm;
+
+    @ApiModelProperty(value = "线别")
+    @Length(min = 1, max = 100, message = "【线别】长度必须介于 {min} 和 {max} 之间")
+    private String xb;
+
+    @ApiModelProperty(value = "站/区间")
+    @Length(min = 1, max = 100, message = "【站/区间】长度必须介于 {min} 和 {max} 之间")
+    private String qj;
+
+    @ApiModelProperty(value = "行别")
+    @Length(min = 1, max = 100, message = "【行别】长度必须介于 {min} 和 {max} 之间")
+    private String hb;
+
+    @ApiModelProperty(value = "支柱号")
+    @Length(min = 1, max = 50, message = "【支柱号】长度必须介于 {min} 和 {max} 之间")
+    private String zzh;
+
+    @ApiModelProperty(value = "股道")
+    @Length(min = 1, max = 100, message = "【股道】长度必须介于 {min} 和 {max} 之间")
+    private String gd;
+
+    @ApiModelProperty(value = "管辖模式")
+    @Length(min = 1, max = 50, message = "【管辖模式】长度必须介于 {min} 和 {max} 之间")
+    private String gxms;
+
+    @ApiModelProperty(value = "分相处所")
+    @Length(min = 1, max = 100, message = "【分相处所】长度必须介于 {min} 和 {max} 之间")
+    private String fxcs;
+
+    @ApiModelProperty(value = "分相名称")
+    @Length(min = 1, max = 100, message = "【分相名称】长度必须介于 {min} 和 {max} 之间")
+    private String fxmc;
+
+    @ApiModelProperty(value = "锚段号")
+    @Length(min = 1, max = 50, message = "【锚段号】长度必须介于 {min} 和 {max} 之间")
+    private String mdh;
+
+    @ApiModelProperty(value = "设备编号")
+    @Length(min = 1, max = 50, message = "【设备编号】长度必须介于 {min} 和 {max} 之间")
+    private String sbbh;
+
+    @ApiModelProperty(value = "轨枕类型")
+    @Length(min = 1, max = 50, message = "【轨枕类型】长度必须介于 {min} 和 {max} 之间")
+    private String gzlx;
+
+    @ApiModelProperty(value = "磁枕里程")
+    private Double czlc;
+
+    @ApiModelProperty(value = "分相中心里程")
+    private Double fxzxlc;
+
+    @ApiModelProperty(value = "生产厂家")
+    @Length(min = 1, max = 100, message = "【生产厂家】长度必须介于 {min} 和 {max} 之间")
+    private String sccj;
+
+    @ApiModelProperty(value = "型号")
+    @Length(min = 1, max = 100, message = "【型号】长度必须介于 {min} 和 {max} 之间")
+    private String xh;
+
+    @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;
+
+    @ApiModelProperty(value = "数据编号")
+    @Length(min = 1, max = 50, message = "【数据编号】长度必须介于 {min} 和 {max} 之间")
+    private String sjbh;
+
+    public BusDmcgyq() {
+    }
+
+}

+ 105 - 0
railway-business/src/main/java/com/railway/business/catenary/domain/BusJcxc.java

@@ -0,0 +1,105 @@
+package com.railway.business.catenary.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 zcf 2021-10-26
+ */
+@Data
+@ApiModel("基础数据-交叉线岔")
+@EqualsAndHashCode(callSuper = true)
+public class BusJcxc extends BaseEntity{
+
+    @ApiModelProperty(value = "主键", hidden = true)
+    private String id;
+
+    @ApiModelProperty(value = "段别")
+    @Length(min = 1, max = 200, message = "【段别】长度必须介于 {min} 和 {max} 之间")
+    private String db;
+
+    @ApiModelProperty(value = "车间id")
+    private Long deptId;
+
+    @ApiModelProperty(value = "所属部门")
+    @Length(min = 1, max = 100, message = "【所属部门】长度必须介于 {min} 和 {max} 之间")
+    private String bm;
+
+    @ApiModelProperty(value = "线别")
+    @Length(min = 1, max = 100, message = "【线别】长度必须介于 {min} 和 {max} 之间")
+    private String xb;
+
+    @ApiModelProperty(value = "站/区间")
+    @Length(min = 1, max = 100, message = "【站/区间】长度必须介于 {min} 和 {max} 之间")
+    private String qj;
+
+    @ApiModelProperty(value = "行别")
+    @Length(min = 1, max = 100, message = "【行别】长度必须介于 {min} 和 {max} 之间")
+    private String hb;
+
+    @ApiModelProperty(value = "支柱号")
+    @Length(min = 1, max = 50, message = "【支柱号】长度必须介于 {min} 和 {max} 之间")
+    private String zzh;
+
+    @ApiModelProperty(value = "股道")
+    @Length(min = 1, max = 100, message = "【股道】长度必须介于 {min} 和 {max} 之间")
+    private String gd;
+
+    @ApiModelProperty(value = "管辖模式")
+    @Length(min = 1, max = 50, message = "【管辖模式】长度必须介于 {min} 和 {max} 之间")
+    private String gxms;
+
+    @ApiModelProperty(value = "公里标")
+    @Length(min = 1, max = 100, message = "【公里标】长度必须介于 {min} 和 {max} 之间")
+    private String glb;
+
+    @ApiModelProperty(value = "德式/国产")
+    @Length(min = 1, max = 10, message = "【德式/国产】长度必须介于 {min} 和 {max} 之间")
+    private String dsgc;
+
+    @ApiModelProperty(value = "备注")
+    @Length(min = 1, max = 200, message = "【备注】长度必须介于 {min} 和 {max} 之间")
+    private String beizhu;
+
+    @ApiModelProperty(value = "线岔号")
+    @Length(min = 1, max = 50, message = "【线岔号】长度必须介于 {min} 和 {max} 之间")
+    private String xch;
+
+    @ApiModelProperty(value = "线岔类型")
+    @Length(min = 1, max = 20, message = "【线岔类型】长度必须介于 {min} 和 {max} 之间")
+    private String xclx;
+
+    @ApiModelProperty(value = "标准定位/非标准定位")
+    @Length(min = 1, max = 10, message = "【标准定位/非标准定位】长度必须介于 {min} 和 {max} 之间")
+    private String bzdw;
+
+    @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;
+
+    @ApiModelProperty(value = "数据编号")
+    @Length(min = 1, max = 50, message = "【数据编号】长度必须介于 {min} 和 {max} 之间")
+    private String sjbh;
+
+    public BusJcxc() {
+    }
+
+}

+ 43 - 0
railway-business/src/main/java/com/railway/business/catenary/mapper/BusDmcgyqMapper.java

@@ -0,0 +1,43 @@
+package com.railway.business.catenary.mapper;
+
+import com.github.pagehelper.Page;
+import com.railway.business.catenary.domain.BusDmcgyq;
+import org.apache.ibatis.annotations.Mapper;
+import org.apache.ibatis.annotations.Param;
+import org.springframework.stereotype.Repository;
+
+/**
+* 基础数据-地面磁感应器
+* @author zcf
+* @date 2021/10/26
+*/
+@Mapper
+@Repository
+public interface BusDmcgyqMapper {
+
+    /**
+    * @Description: 新增
+    */
+    int insert(BusDmcgyq busDmcgyq);
+
+    /**
+    * @Description: 删除
+    */
+    int delete(@Param("id") String id);
+
+    /**
+    * @Description: 更新
+    */
+    int update(BusDmcgyq busDmcgyq);
+
+    /**
+    * @Description: 获取单个
+    */
+    BusDmcgyq getInfo(@Param("id") String id);
+
+    /**
+    * @Description: 查询列表
+    */
+    Page<BusDmcgyq> getList(BusDmcgyq busDmcgyq);
+
+}

+ 43 - 0
railway-business/src/main/java/com/railway/business/catenary/mapper/BusJcxcMapper.java

@@ -0,0 +1,43 @@
+package com.railway.business.catenary.mapper;
+
+import com.github.pagehelper.Page;
+import com.railway.business.catenary.domain.BusJcxc;
+import org.apache.ibatis.annotations.Mapper;
+import org.apache.ibatis.annotations.Param;
+import org.springframework.stereotype.Repository;
+
+/**
+* 基础数据-交叉线岔
+* @author zcf
+* @date 2021/10/26
+*/
+@Mapper
+@Repository
+public interface BusJcxcMapper {
+
+    /**
+    * @Description: 新增
+    */
+    int insert(BusJcxc busJcxc);
+
+    /**
+    * @Description: 删除
+    */
+    int delete(@Param("id") String id);
+
+    /**
+    * @Description: 更新
+    */
+    int update(BusJcxc busJcxc);
+
+    /**
+    * @Description: 获取单个
+    */
+    BusJcxc getInfo(@Param("id") String id);
+
+    /**
+    * @Description: 查询列表
+    */
+    Page<BusJcxc> getList(BusJcxc busJcxc);
+
+}

+ 37 - 0
railway-business/src/main/java/com/railway/business/catenary/service/IBusDmcgyqService.java

@@ -0,0 +1,37 @@
+package com.railway.business.catenary.service;
+
+import com.railway.business.catenary.domain.BusDmcgyq;
+import java.util.List;
+/**
+* 基础数据-地面磁感应器
+* @author zcf
+* @date 2021/10/26
+*/
+public interface IBusDmcgyqService{
+
+    /**
+    * @Description: 新增
+    */
+    int create(BusDmcgyq busDmcgyq);
+
+    /**
+    * @Description: 删除
+    */
+    int delete(String[] ids);
+
+    /**
+    * @Description: 更新
+    */
+    int update(BusDmcgyq busDmcgyq);
+
+    /**
+    * @Description: 获取单个
+    */
+    BusDmcgyq getInfo(String id);
+
+    /**
+    * @Description: 查询列表
+    */
+    List<BusDmcgyq> getList(BusDmcgyq busDmcgyq);
+
+}

+ 37 - 0
railway-business/src/main/java/com/railway/business/catenary/service/IBusJcxcService.java

@@ -0,0 +1,37 @@
+package com.railway.business.catenary.service;
+
+import com.railway.business.catenary.domain.BusJcxc;
+import java.util.List;
+/**
+* 基础数据-交叉线岔
+* @author zcf
+* @date 2021/10/26
+*/
+public interface IBusJcxcService{
+
+    /**
+    * @Description: 新增
+    */
+    int create(BusJcxc busJcxc);
+
+    /**
+    * @Description: 删除
+    */
+    int delete(String[] ids);
+
+    /**
+    * @Description: 更新
+    */
+    int update(BusJcxc busJcxc);
+
+    /**
+    * @Description: 获取单个
+    */
+    BusJcxc getInfo(String id);
+
+    /**
+    * @Description: 查询列表
+    */
+    List<BusJcxc> getList(BusJcxc busJcxc);
+
+}

+ 71 - 0
railway-business/src/main/java/com/railway/business/catenary/service/impl/BusDmcgyqServiceImpl.java

@@ -0,0 +1,71 @@
+package com.railway.business.catenary.service.impl;
+
+import com.github.pagehelper.Page;
+import com.github.pagehelper.PageHelper;
+import com.railway.business.catenary.mapper.BusDmcgyqMapper;
+import com.railway.business.catenary.domain.BusDmcgyq;
+import com.railway.business.catenary.service.IBusDmcgyqService;
+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 zcf
+* @date 2021/10/26
+*/
+@Service
+@Transactional(readOnly = true)
+public class BusDmcgyqServiceImpl implements IBusDmcgyqService{
+@Autowired
+private BusDmcgyqMapper busDmcgyqMapper;
+
+	/**
+	* @Description: 新增
+	*/
+	@Transactional(rollbackFor = Exception.class)
+	public int create(BusDmcgyq busDmcgyq) {
+	    busDmcgyq.setCreateTime(new Date());
+        busDmcgyq.setCreateBy(SecurityUtils.getUsername());
+		return busDmcgyqMapper.insert(busDmcgyq);
+	}
+
+	/**
+	* @Description: 删除
+	*/
+	@Transactional(rollbackFor = Exception.class)
+	public int delete(String[] ids) {
+		int r =0;
+		for (String id : ids) {
+			int j= busDmcgyqMapper.delete(id);
+			r = r + j;
+		}
+		return	r;
+	}
+
+	/**
+	* @Description: 更新
+	*/
+	@Transactional(rollbackFor = Exception.class)
+	public int update(BusDmcgyq busDmcgyq) {
+		busDmcgyq.setUpdateTime(new Date());
+    	busDmcgyq.setUpdateBy(SecurityUtils.getUsername());
+		return busDmcgyqMapper.update(busDmcgyq);
+	}
+
+	/**
+	* @Description: 获取单个
+	*/
+	public BusDmcgyq getInfo(String id) {
+		return busDmcgyqMapper.getInfo(id);
+	}
+
+	/**
+	* @Description: 查询列表
+	*/
+	public List<BusDmcgyq> getList(BusDmcgyq busDmcgyq) {
+		return busDmcgyqMapper.getList(busDmcgyq);
+	}
+}

+ 71 - 0
railway-business/src/main/java/com/railway/business/catenary/service/impl/BusJcxcServiceImpl.java

@@ -0,0 +1,71 @@
+package com.railway.business.catenary.service.impl;
+
+import com.github.pagehelper.Page;
+import com.github.pagehelper.PageHelper;
+import com.railway.business.catenary.mapper.BusJcxcMapper;
+import com.railway.business.catenary.domain.BusJcxc;
+import com.railway.business.catenary.service.IBusJcxcService;
+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 zcf
+* @date 2021/10/26
+*/
+@Service
+@Transactional(readOnly = true)
+public class BusJcxcServiceImpl implements IBusJcxcService{
+@Autowired
+private BusJcxcMapper busJcxcMapper;
+
+	/**
+	* @Description: 新增
+	*/
+	@Transactional(rollbackFor = Exception.class)
+	public int create(BusJcxc busJcxc) {
+	    busJcxc.setCreateTime(new Date());
+        busJcxc.setCreateBy(SecurityUtils.getUsername());
+		return busJcxcMapper.insert(busJcxc);
+	}
+
+	/**
+	* @Description: 删除
+	*/
+	@Transactional(rollbackFor = Exception.class)
+	public int delete(String[] ids) {
+		int r =0;
+		for (String id : ids) {
+			int j= busJcxcMapper.delete(id);
+			r = r + j;
+		}
+		return	r;
+	}
+
+	/**
+	* @Description: 更新
+	*/
+	@Transactional(rollbackFor = Exception.class)
+	public int update(BusJcxc busJcxc) {
+		busJcxc.setUpdateTime(new Date());
+    	busJcxc.setUpdateBy(SecurityUtils.getUsername());
+		return busJcxcMapper.update(busJcxc);
+	}
+
+	/**
+	* @Description: 获取单个
+	*/
+	public BusJcxc getInfo(String id) {
+		return busJcxcMapper.getInfo(id);
+	}
+
+	/**
+	* @Description: 查询列表
+	*/
+	public List<BusJcxc> getList(BusJcxc busJcxc) {
+		return busJcxcMapper.getList(busJcxc);
+	}
+}

+ 344 - 0
railway-business/src/main/resources/mapper/business/BusDmcgyqMapper.xml

@@ -0,0 +1,344 @@
+<?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.catenary.mapper.BusDmcgyqMapper">
+
+    <resultMap id="BaseResultMap" type="com.railway.business.catenary.domain.BusDmcgyq">
+                <result column="id" property="id"/>
+                <result column="db" property="db"/>
+                <result column="dept_id" property="deptId"/>
+                <result column="bm" property="bm"/>
+                <result column="xb" property="xb"/>
+                <result column="qj" property="qj"/>
+                <result column="hb" property="hb"/>
+                <result column="zzh" property="zzh"/>
+                <result column="gd" property="gd"/>
+                <result column="gxms" property="gxms"/>
+                <result column="fxcs" property="fxcs"/>
+                <result column="fxmc" property="fxmc"/>
+                <result column="mdh" property="mdh"/>
+                <result column="sbbh" property="sbbh"/>
+                <result column="gzlx" property="gzlx"/>
+                <result column="czlc" property="czlc"/>
+                <result column="fxzxlc" property="fxzxlc"/>
+                <result column="sccj" property="sccj"/>
+                <result column="xh" property="xh"/>
+                <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"/>
+                <result column="sjbh" property="sjbh"/>
+    </resultMap>
+
+    <sql id="Base_Column_List">
+                id,
+                db,
+                dept_id,
+                bm,
+                xb,
+                qj,
+                hb,
+                zzh,
+                gd,
+                gxms,
+                fxcs,
+                fxmc,
+                mdh,
+                sbbh,
+                gzlx,
+                czlc,
+                fxzxlc,
+                sccj,
+                xh,
+                del_flag,
+                create_by,
+                create_time,
+                update_by,
+                update_time,
+                sjbh
+    </sql>
+
+    <insert id="insert" parameterType="com.railway.business.catenary.domain.BusDmcgyq">
+        <selectKey keyProperty="id" order="BEFORE" resultType="String">
+            select replace(uuid(), '-', '') from dual
+        </selectKey>
+        INSERT INTO bus_dmcgyq
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+                    <if test ='null != db'>
+                    db,
+                    </if>
+                    <if test ='null != deptId'>
+                    dept_id,
+                    </if>
+                    <if test ='null != bm'>
+                    bm,
+                    </if>
+                    <if test ='null != xb'>
+                    xb,
+                    </if>
+                    <if test ='null != qj'>
+                    qj,
+                    </if>
+                    <if test ='null != hb'>
+                    hb,
+                    </if>
+                    <if test ='null != zzh'>
+                    zzh,
+                    </if>
+                    <if test ='null != gd'>
+                    gd,
+                    </if>
+                    <if test ='null != gxms'>
+                    gxms,
+                    </if>
+                    <if test ='null != fxcs'>
+                    fxcs,
+                    </if>
+                    <if test ='null != fxmc'>
+                    fxmc,
+                    </if>
+                    <if test ='null != mdh'>
+                    mdh,
+                    </if>
+                    <if test ='null != sbbh'>
+                    sbbh,
+                    </if>
+                    <if test ='null != gzlx'>
+                    gzlx,
+                    </if>
+                    <if test ='null != czlc'>
+                    czlc,
+                    </if>
+                    <if test ='null != fxzxlc'>
+                    fxzxlc,
+                    </if>
+                    <if test ='null != sccj'>
+                    sccj,
+                    </if>
+                    <if test ='null != xh'>
+                    xh,
+                    </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>
+                    <if test ='null != sjbh'>
+                    sjbh
+                    </if>
+        </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+                    <if test ='null != db'>
+                    #{db},
+                    </if>
+                    <if test ='null != deptId'>
+                    #{deptId},
+                    </if>
+                    <if test ='null != bm'>
+                    #{bm},
+                    </if>
+                    <if test ='null != xb'>
+                    #{xb},
+                    </if>
+                    <if test ='null != qj'>
+                    #{qj},
+                    </if>
+                    <if test ='null != hb'>
+                    #{hb},
+                    </if>
+                    <if test ='null != zzh'>
+                    #{zzh},
+                    </if>
+                    <if test ='null != gd'>
+                    #{gd},
+                    </if>
+                    <if test ='null != gxms'>
+                    #{gxms},
+                    </if>
+                    <if test ='null != fxcs'>
+                    #{fxcs},
+                    </if>
+                    <if test ='null != fxmc'>
+                    #{fxmc},
+                    </if>
+                    <if test ='null != mdh'>
+                    #{mdh},
+                    </if>
+                    <if test ='null != sbbh'>
+                    #{sbbh},
+                    </if>
+                    <if test ='null != gzlx'>
+                    #{gzlx},
+                    </if>
+                    <if test ='null != czlc'>
+                    #{czlc},
+                    </if>
+                    <if test ='null != fxzxlc'>
+                    #{fxzxlc},
+                    </if>
+                    <if test ='null != sccj'>
+                    #{sccj},
+                    </if>
+                    <if test ='null != xh'>
+                    #{xh},
+                    </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>
+                    <if test ='null != sjbh'>
+                    #{sjbh}
+                    </if>
+        </trim>
+    </insert>
+
+    <delete id="delete">
+        UPDATE bus_dmcgyq
+        set del_flag='1'
+        WHERE id = #{id}
+    </delete>
+
+    <update id="update" parameterType="com.railway.business.catenary.domain.BusDmcgyq">
+        UPDATE bus_dmcgyq
+        <set>
+                    <if test ='null != db'>db = #{db},</if>
+                    <if test ='null != deptId'>dept_id = #{deptId},</if>
+                    <if test ='null != bm'>bm = #{bm},</if>
+                    <if test ='null != xb'>xb = #{xb},</if>
+                    <if test ='null != qj'>qj = #{qj},</if>
+                    <if test ='null != hb'>hb = #{hb},</if>
+                    <if test ='null != zzh'>zzh = #{zzh},</if>
+                    <if test ='null != gd'>gd = #{gd},</if>
+                    <if test ='null != gxms'>gxms = #{gxms},</if>
+                    <if test ='null != fxcs'>fxcs = #{fxcs},</if>
+                    <if test ='null != fxmc'>fxmc = #{fxmc},</if>
+                    <if test ='null != mdh'>mdh = #{mdh},</if>
+                    <if test ='null != sbbh'>sbbh = #{sbbh},</if>
+                    <if test ='null != gzlx'>gzlx = #{gzlx},</if>
+                    <if test ='null != czlc'>czlc = #{czlc},</if>
+                    <if test ='null != fxzxlc'>fxzxlc = #{fxzxlc},</if>
+                    <if test ='null != sccj'>sccj = #{sccj},</if>
+                    <if test ='null != xh'>xh = #{xh},</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>
+                    <if test ='null != sjbh'>sjbh = #{sjbh}</if>
+        </set>
+        WHERE id = #{id}
+    </update>
+
+
+    <select id="getInfo" resultMap="BaseResultMap">
+        SELECT
+        <include refid="Base_Column_List"/>
+        FROM bus_dmcgyq
+        WHERE del_flag='0' and id = #{id}
+
+    </select>
+
+    <select id="getList" resultMap="BaseResultMap">
+        SELECT
+        <include refid="Base_Column_List"/>
+        FROM bus_dmcgyq
+        <where>
+            del_flag='0'
+                <if test="db!=null and db!=''">
+                    and db=#{db}
+                </if>
+                <if test="deptId!=null and deptId!=''">
+                    and dept_id=#{deptId}
+                </if>
+                <if test="bm!=null and bm!=''">
+                    and bm=#{bm}
+                </if>
+                <if test="xb!=null and xb!=''">
+                    and xb=#{xb}
+                </if>
+                <if test="qj!=null and qj!=''">
+                    and qj=#{qj}
+                </if>
+                <if test="hb!=null and hb!=''">
+                    and hb=#{hb}
+                </if>
+                <if test="zzh!=null and zzh!=''">
+                    and zzh=#{zzh}
+                </if>
+                <if test="gd!=null and gd!=''">
+                    and gd=#{gd}
+                </if>
+                <if test="gxms!=null and gxms!=''">
+                    and gxms=#{gxms}
+                </if>
+                <if test="fxcs!=null and fxcs!=''">
+                    and fxcs=#{fxcs}
+                </if>
+                <if test="fxmc!=null and fxmc!=''">
+                    and fxmc=#{fxmc}
+                </if>
+                <if test="mdh!=null and mdh!=''">
+                    and mdh=#{mdh}
+                </if>
+                <if test="sbbh!=null and sbbh!=''">
+                    and sbbh=#{sbbh}
+                </if>
+                <if test="gzlx!=null and gzlx!=''">
+                    and gzlx=#{gzlx}
+                </if>
+                <if test="czlc!=null and czlc!=''">
+                    and czlc=#{czlc}
+                </if>
+                <if test="fxzxlc!=null and fxzxlc!=''">
+                    and fxzxlc=#{fxzxlc}
+                </if>
+                <if test="sccj!=null and sccj!=''">
+                    and sccj=#{sccj}
+                </if>
+                <if test="xh!=null and xh!=''">
+                    and xh=#{xh}
+                </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>
+                <if test="sjbh!=null and sjbh!=''">
+                    and sjbh=#{sjbh}
+                </if>
+        </where>
+    </select>
+
+</mapper>

+ 308 - 0
railway-business/src/main/resources/mapper/business/BusJcxcMapper.xml

@@ -0,0 +1,308 @@
+<?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.catenary.mapper.BusJcxcMapper">
+
+    <resultMap id="BaseResultMap" type="com.railway.business.catenary.domain.BusJcxc">
+                <result column="id" property="id"/>
+                <result column="db" property="db"/>
+                <result column="dept_id" property="deptId"/>
+                <result column="bm" property="bm"/>
+                <result column="xb" property="xb"/>
+                <result column="qj" property="qj"/>
+                <result column="hb" property="hb"/>
+                <result column="zzh" property="zzh"/>
+                <result column="gd" property="gd"/>
+                <result column="gxms" property="gxms"/>
+                <result column="glb" property="glb"/>
+                <result column="dsgc" property="dsgc"/>
+                <result column="beizhu" property="beizhu"/>
+                <result column="xch" property="xch"/>
+                <result column="xclx" property="xclx"/>
+                <result column="bzdw" property="bzdw"/>
+                <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"/>
+                <result column="sjbh" property="sjbh"/>
+    </resultMap>
+
+    <sql id="Base_Column_List">
+                id,
+                db,
+                dept_id,
+                bm,
+                xb,
+                qj,
+                hb,
+                zzh,
+                gd,
+                gxms,
+                glb,
+                dsgc,
+                beizhu,
+                xch,
+                xclx,
+                bzdw,
+                del_flag,
+                create_by,
+                create_time,
+                update_by,
+                update_time,
+                sjbh
+    </sql>
+
+    <insert id="insert" parameterType="com.railway.business.catenary.domain.BusJcxc">
+        <selectKey keyProperty="id" order="BEFORE" resultType="String">
+            select replace(uuid(), '-', '') from dual
+        </selectKey>
+        INSERT INTO bus_jcxc
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+                    <if test ='null != db'>
+                    db,
+                    </if>
+                    <if test ='null != deptId'>
+                    dept_id,
+                    </if>
+                    <if test ='null != bm'>
+                    bm,
+                    </if>
+                    <if test ='null != xb'>
+                    xb,
+                    </if>
+                    <if test ='null != qj'>
+                    qj,
+                    </if>
+                    <if test ='null != hb'>
+                    hb,
+                    </if>
+                    <if test ='null != zzh'>
+                    zzh,
+                    </if>
+                    <if test ='null != gd'>
+                    gd,
+                    </if>
+                    <if test ='null != gxms'>
+                    gxms,
+                    </if>
+                    <if test ='null != glb'>
+                    glb,
+                    </if>
+                    <if test ='null != dsgc'>
+                    dsgc,
+                    </if>
+                    <if test ='null != beizhu'>
+                    beizhu,
+                    </if>
+                    <if test ='null != xch'>
+                    xch,
+                    </if>
+                    <if test ='null != xclx'>
+                    xclx,
+                    </if>
+                    <if test ='null != bzdw'>
+                    bzdw,
+                    </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>
+                    <if test ='null != sjbh'>
+                    sjbh
+                    </if>
+        </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+                    <if test ='null != db'>
+                    #{db},
+                    </if>
+                    <if test ='null != deptId'>
+                    #{deptId},
+                    </if>
+                    <if test ='null != bm'>
+                    #{bm},
+                    </if>
+                    <if test ='null != xb'>
+                    #{xb},
+                    </if>
+                    <if test ='null != qj'>
+                    #{qj},
+                    </if>
+                    <if test ='null != hb'>
+                    #{hb},
+                    </if>
+                    <if test ='null != zzh'>
+                    #{zzh},
+                    </if>
+                    <if test ='null != gd'>
+                    #{gd},
+                    </if>
+                    <if test ='null != gxms'>
+                    #{gxms},
+                    </if>
+                    <if test ='null != glb'>
+                    #{glb},
+                    </if>
+                    <if test ='null != dsgc'>
+                    #{dsgc},
+                    </if>
+                    <if test ='null != beizhu'>
+                    #{beizhu},
+                    </if>
+                    <if test ='null != xch'>
+                    #{xch},
+                    </if>
+                    <if test ='null != xclx'>
+                    #{xclx},
+                    </if>
+                    <if test ='null != bzdw'>
+                    #{bzdw},
+                    </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>
+                    <if test ='null != sjbh'>
+                    #{sjbh}
+                    </if>
+        </trim>
+    </insert>
+
+    <delete id="delete">
+        UPDATE bus_jcxc
+        set del_flag='1'
+        WHERE id = #{id}
+    </delete>
+
+    <update id="update" parameterType="com.railway.business.catenary.domain.BusJcxc">
+        UPDATE bus_jcxc
+        <set>
+                    <if test ='null != db'>db = #{db},</if>
+                    <if test ='null != deptId'>dept_id = #{deptId},</if>
+                    <if test ='null != bm'>bm = #{bm},</if>
+                    <if test ='null != xb'>xb = #{xb},</if>
+                    <if test ='null != qj'>qj = #{qj},</if>
+                    <if test ='null != hb'>hb = #{hb},</if>
+                    <if test ='null != zzh'>zzh = #{zzh},</if>
+                    <if test ='null != gd'>gd = #{gd},</if>
+                    <if test ='null != gxms'>gxms = #{gxms},</if>
+                    <if test ='null != glb'>glb = #{glb},</if>
+                    <if test ='null != dsgc'>dsgc = #{dsgc},</if>
+                    <if test ='null != beizhu'>beizhu = #{beizhu},</if>
+                    <if test ='null != xch'>xch = #{xch},</if>
+                    <if test ='null != xclx'>xclx = #{xclx},</if>
+                    <if test ='null != bzdw'>bzdw = #{bzdw},</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>
+                    <if test ='null != sjbh'>sjbh = #{sjbh}</if>
+        </set>
+        WHERE id = #{id}
+    </update>
+
+
+    <select id="getInfo" resultMap="BaseResultMap">
+        SELECT
+        <include refid="Base_Column_List"/>
+        FROM bus_jcxc
+        WHERE del_flag='0' and id = #{id}
+
+    </select>
+
+    <select id="getList" resultMap="BaseResultMap">
+        SELECT
+        <include refid="Base_Column_List"/>
+        FROM bus_jcxc
+        <where>
+            del_flag='0'
+                <if test="db!=null and db!=''">
+                    and db=#{db}
+                </if>
+                <if test="deptId!=null and deptId!=''">
+                    and dept_id=#{deptId}
+                </if>
+                <if test="bm!=null and bm!=''">
+                    and bm=#{bm}
+                </if>
+                <if test="xb!=null and xb!=''">
+                    and xb=#{xb}
+                </if>
+                <if test="qj!=null and qj!=''">
+                    and qj=#{qj}
+                </if>
+                <if test="hb!=null and hb!=''">
+                    and hb=#{hb}
+                </if>
+                <if test="zzh!=null and zzh!=''">
+                    and zzh=#{zzh}
+                </if>
+                <if test="gd!=null and gd!=''">
+                    and gd=#{gd}
+                </if>
+                <if test="gxms!=null and gxms!=''">
+                    and gxms=#{gxms}
+                </if>
+                <if test="glb!=null and glb!=''">
+                    and glb=#{glb}
+                </if>
+                <if test="dsgc!=null and dsgc!=''">
+                    and dsgc=#{dsgc}
+                </if>
+                <if test="beizhu!=null and beizhu!=''">
+                    and beizhu=#{beizhu}
+                </if>
+                <if test="xch!=null and xch!=''">
+                    and xch=#{xch}
+                </if>
+                <if test="xclx!=null and xclx!=''">
+                    and xclx=#{xclx}
+                </if>
+                <if test="bzdw!=null and bzdw!=''">
+                    and bzdw=#{bzdw}
+                </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>
+                <if test="sjbh!=null and sjbh!=''">
+                    and sjbh=#{sjbh}
+                </if>
+        </where>
+    </select>
+
+</mapper>