Commit ef340c0f1202043f8ccd42b13d01e88b6265d05e

Authored by 2c
1 parent 834292aa

建筑垃圾-基础数据

Showing 27 changed files with 3506 additions and 1 deletions
@@ -209,7 +209,11 @@ @@ -209,7 +209,11 @@
209 <artifactId>trash-daily</artifactId> 209 <artifactId>trash-daily</artifactId>
210 <version>${trash.version}</version> 210 <version>${trash.version}</version>
211 </dependency> 211 </dependency>
212 - 212 + <dependency>
  213 + <groupId>com.trash</groupId>
  214 + <artifactId>trash-unit</artifactId>
  215 + <version>${trash.version}</version>
  216 + </dependency>
213 </dependencies> 217 </dependencies>
214 </dependencyManagement> 218 </dependencyManagement>
215 219
@@ -223,6 +227,7 @@ @@ -223,6 +227,7 @@
223 <module>trash-activiti</module> 227 <module>trash-activiti</module>
224 <module>trash-workflow</module> 228 <module>trash-workflow</module>
225 <module>trash-daily</module> 229 <module>trash-daily</module>
  230 + <module>trash-unit</module>
226 </modules> 231 </modules>
227 <packaging>pom</packaging> 232 <packaging>pom</packaging>
228 233
trash-admin/pom.xml
@@ -86,6 +86,10 @@ @@ -86,6 +86,10 @@
86 <groupId>com.trash</groupId> 86 <groupId>com.trash</groupId>
87 <artifactId>trash-daily</artifactId> 87 <artifactId>trash-daily</artifactId>
88 </dependency> 88 </dependency>
  89 + <dependency>
  90 + <groupId>com.trash</groupId>
  91 + <artifactId>trash-unit</artifactId>
  92 + </dependency>
89 </dependencies> 93 </dependencies>
90 94
91 <build> 95 <build>
trash-unit/pom.xml 0 → 100644
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<project xmlns="http://maven.apache.org/POM/4.0.0"
  3 + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4 + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  5 + <parent>
  6 + <artifactId>trash</artifactId>
  7 + <groupId>com.trash</groupId>
  8 + <version>3.2.0</version>
  9 + </parent>
  10 + <modelVersion>4.0.0</modelVersion>
  11 +
  12 + <artifactId>trash-unit</artifactId>
  13 +
  14 + <dependencies>
  15 + <dependency>
  16 + <groupId>com.trash</groupId>
  17 + <artifactId>trash-activiti</artifactId>
  18 + </dependency>
  19 + <dependency>
  20 + <groupId>com.trash</groupId>
  21 + <artifactId>trash-common</artifactId>
  22 + </dependency>
  23 + </dependencies>
  24 +</project>
0 \ No newline at end of file 25 \ No newline at end of file
trash-unit/src/main/java/com/trash/carInfo/controller/CarInfoController.java 0 → 100644
  1 +package com.trash.carInfo.controller;
  2 +
  3 +import java.util.List;
  4 +import org.springframework.security.access.prepost.PreAuthorize;
  5 +import org.springframework.beans.factory.annotation.Autowired;
  6 +import org.springframework.web.bind.annotation.GetMapping;
  7 +import org.springframework.web.bind.annotation.PostMapping;
  8 +import org.springframework.web.bind.annotation.PutMapping;
  9 +import org.springframework.web.bind.annotation.DeleteMapping;
  10 +import org.springframework.web.bind.annotation.PathVariable;
  11 +import org.springframework.web.bind.annotation.RequestBody;
  12 +import org.springframework.web.bind.annotation.RequestMapping;
  13 +import org.springframework.web.bind.annotation.RestController;
  14 +import com.trash.common.annotation.Log;
  15 +import com.trash.common.core.controller.BaseController;
  16 +import com.trash.common.core.domain.AjaxResult;
  17 +import com.trash.common.enums.BusinessType;
  18 +import com.trash.carInfo.domain.CarInfo;
  19 +import com.trash.carInfo.service.ICarInfoService;
  20 +import com.trash.common.utils.poi.ExcelUtil;
  21 +import com.trash.common.core.page.TableDataInfo;
  22 +
  23 +/**
  24 + * 运输车辆管理Controller
  25 + *
  26 + * @author trash
  27 + * @date 2023-11-15
  28 + */
  29 +@RestController
  30 +@RequestMapping("/carInfo")
  31 +public class CarInfoController extends BaseController
  32 +{
  33 + @Autowired
  34 + private ICarInfoService carInfoService;
  35 +
  36 + /**
  37 + * 查询运输车辆管理列表
  38 + */
  39 +// @PreAuthorize("@ss.hasPermi('carInfo:carInfo:list')")
  40 + @GetMapping("/list")
  41 + public TableDataInfo list(CarInfo carInfo)
  42 + {
  43 + startPage();
  44 + List<CarInfo> list = carInfoService.selectCarInfoList(carInfo);
  45 + return getDataTable(list);
  46 + }
  47 +
  48 + /**
  49 + * 导出运输车辆管理列表
  50 + */
  51 + @PreAuthorize("@ss.hasPermi('carInfo:carInfo:export')")
  52 + @Log(title = "运输车辆管理", businessType = BusinessType.EXPORT)
  53 + @GetMapping("/export")
  54 + public AjaxResult export(CarInfo carInfo)
  55 + {
  56 + List<CarInfo> list = carInfoService.selectCarInfoList(carInfo);
  57 + ExcelUtil<CarInfo> util = new ExcelUtil<CarInfo>(CarInfo.class);
  58 + return util.exportExcel(list, "carInfo");
  59 + }
  60 +
  61 + /**
  62 + * 获取运输车辆管理详细信息
  63 + */
  64 + @PreAuthorize("@ss.hasPermi('carInfo:carInfo:query')")
  65 + @GetMapping(value = "/{id}")
  66 + public AjaxResult getInfo(@PathVariable("id") Long id)
  67 + {
  68 + return AjaxResult.success(carInfoService.selectCarInfoById(id));
  69 + }
  70 +
  71 + /**
  72 + * 新增运输车辆管理
  73 + */
  74 + @PreAuthorize("@ss.hasPermi('carInfo:carInfo:add')")
  75 + @Log(title = "运输车辆管理", businessType = BusinessType.INSERT)
  76 + @PostMapping
  77 + public AjaxResult add(@RequestBody CarInfo carInfo)
  78 + {
  79 + return toAjax(carInfoService.insertCarInfo(carInfo));
  80 + }
  81 +
  82 + /**
  83 + * 修改运输车辆管理
  84 + */
  85 + @PreAuthorize("@ss.hasPermi('carInfo:carInfo:edit')")
  86 + @Log(title = "运输车辆管理", businessType = BusinessType.UPDATE)
  87 + @PutMapping
  88 + public AjaxResult edit(@RequestBody CarInfo carInfo)
  89 + {
  90 + return toAjax(carInfoService.updateCarInfo(carInfo));
  91 + }
  92 +
  93 + /**
  94 + * 删除运输车辆管理
  95 + */
  96 + @PreAuthorize("@ss.hasPermi('carInfo:carInfo:remove')")
  97 + @Log(title = "运输车辆管理", businessType = BusinessType.DELETE)
  98 + @DeleteMapping("/{ids}")
  99 + public AjaxResult remove(@PathVariable Long[] ids)
  100 + {
  101 + return toAjax(carInfoService.deleteCarInfoByIds(ids));
  102 + }
  103 +}
trash-unit/src/main/java/com/trash/carInfo/domain/CarInfo.java 0 → 100644
  1 +package com.trash.carInfo.domain;
  2 +
  3 +import java.util.Date;
  4 +import com.fasterxml.jackson.annotation.JsonFormat;
  5 +import org.apache.commons.lang3.builder.ToStringBuilder;
  6 +import org.apache.commons.lang3.builder.ToStringStyle;
  7 +import com.trash.common.annotation.Excel;
  8 +import com.trash.common.core.domain.BaseEntity;
  9 +
  10 +/**
  11 + * 运输车辆管理对象 car_info
  12 + *
  13 + * @author trash
  14 + * @date 2023-11-15
  15 + */
  16 +public class CarInfo extends BaseEntity
  17 +{
  18 + private static final long serialVersionUID = 1L;
  19 +
  20 + /** $column.columnComment */
  21 + private Long id;
  22 +
  23 + /** 所属公司 */
  24 + @Excel(name = "所属公司")
  25 + private Long companyId;
  26 +
  27 + /** 车辆类型 */
  28 + @Excel(name = "车辆类型")
  29 + private String carType;
  30 +
  31 + /** 车牌号 */
  32 + @Excel(name = "车牌号")
  33 + private String carCode;
  34 +
  35 + /** 车辆品牌 */
  36 + @Excel(name = "车辆品牌")
  37 + private String carBrank;
  38 +
  39 + /** 排放标准 */
  40 + @Excel(name = "排放标准")
  41 + private String emissionStandard;
  42 +
  43 + /** 道路运输证有效期 */
  44 + @JsonFormat(pattern = "yyyy-MM-dd")
  45 + @Excel(name = "道路运输证有效期", width = 30, dateFormat = "yyyy-MM-dd")
  46 + private Date roadTransportDate;
  47 +
  48 + /** 行驶证有效期 */
  49 + @JsonFormat(pattern = "yyyy-MM-dd")
  50 + @Excel(name = "行驶证有效期", width = 30, dateFormat = "yyyy-MM-dd")
  51 + private Date drivingLicenseDate;
  52 +
  53 + /** 录入日期 */
  54 + @JsonFormat(pattern = "yyyy-MM-dd")
  55 + @Excel(name = "录入日期", width = 30, dateFormat = "yyyy-MM-dd")
  56 + private Date enterDate;
  57 +
  58 + /** 车架号 */
  59 + @Excel(name = "车架号")
  60 + private String farmeNumber;
  61 +
  62 + /** 车辆标识牌 */
  63 + @Excel(name = "车辆标识牌")
  64 + private String carIdentification;
  65 +
  66 + /** 车辆体积 */
  67 + @Excel(name = "车辆体积")
  68 + private String containerVolume;
  69 +
  70 + /** 车辆颜色 */
  71 + @Excel(name = "车辆颜色")
  72 + private String carColor;
  73 +
  74 + /** 车辆设备 */
  75 + @Excel(name = "车辆设备")
  76 + private String carEquipment;
  77 +
  78 + /** 道路运输证 */
  79 + @Excel(name = "道路运输证")
  80 + private String roadTransport;
  81 +
  82 + /** 行驶证 */
  83 + @Excel(name = "行驶证")
  84 + private String drivingLicense;
  85 +
  86 + /** 车辆正面照片 */
  87 + @Excel(name = "车辆正面照片")
  88 + private String carFront;
  89 +
  90 + /** 车辆左侧照片 */
  91 + @Excel(name = "车辆左侧照片")
  92 + private String carLeft;
  93 +
  94 + /** 车辆尾部照片 */
  95 + @Excel(name = "车辆尾部照片")
  96 + private String carBehind;
  97 +
  98 + /** 车辆右侧照片 */
  99 + @Excel(name = "车辆右侧照片")
  100 + private String carRight;
  101 +
  102 + /** 驾驶员 */
  103 + @Excel(name = "驾驶员")
  104 + private String drivers;
  105 +
  106 + /** 审批状态,0=审批中,1=审批通过,2=被驳回 */
  107 + @Excel(name = "审批状态,0=审批中,1=审批通过,2=被驳回")
  108 + private Integer status;
  109 +
  110 + public void setId(Long id)
  111 + {
  112 + this.id = id;
  113 + }
  114 +
  115 + public Long getId()
  116 + {
  117 + return id;
  118 + }
  119 + public void setCompanyId(Long companyId)
  120 + {
  121 + this.companyId = companyId;
  122 + }
  123 +
  124 + public Long getCompanyId()
  125 + {
  126 + return companyId;
  127 + }
  128 + public void setCarType(String carType)
  129 + {
  130 + this.carType = carType;
  131 + }
  132 +
  133 + public String getCarType()
  134 + {
  135 + return carType;
  136 + }
  137 + public void setCarCode(String carCode)
  138 + {
  139 + this.carCode = carCode;
  140 + }
  141 +
  142 + public String getCarCode()
  143 + {
  144 + return carCode;
  145 + }
  146 + public void setCarBrank(String carBrank)
  147 + {
  148 + this.carBrank = carBrank;
  149 + }
  150 +
  151 + public String getCarBrank()
  152 + {
  153 + return carBrank;
  154 + }
  155 + public void setEmissionStandard(String emissionStandard)
  156 + {
  157 + this.emissionStandard = emissionStandard;
  158 + }
  159 +
  160 + public String getEmissionStandard()
  161 + {
  162 + return emissionStandard;
  163 + }
  164 + public void setRoadTransportDate(Date roadTransportDate)
  165 + {
  166 + this.roadTransportDate = roadTransportDate;
  167 + }
  168 +
  169 + public Date getRoadTransportDate()
  170 + {
  171 + return roadTransportDate;
  172 + }
  173 + public void setDrivingLicenseDate(Date drivingLicenseDate)
  174 + {
  175 + this.drivingLicenseDate = drivingLicenseDate;
  176 + }
  177 +
  178 + public Date getDrivingLicenseDate()
  179 + {
  180 + return drivingLicenseDate;
  181 + }
  182 + public void setEnterDate(Date enterDate)
  183 + {
  184 + this.enterDate = enterDate;
  185 + }
  186 +
  187 + public Date getEnterDate()
  188 + {
  189 + return enterDate;
  190 + }
  191 + public void setFarmeNumber(String farmeNumber)
  192 + {
  193 + this.farmeNumber = farmeNumber;
  194 + }
  195 +
  196 + public String getFarmeNumber()
  197 + {
  198 + return farmeNumber;
  199 + }
  200 + public void setCarIdentification(String carIdentification)
  201 + {
  202 + this.carIdentification = carIdentification;
  203 + }
  204 +
  205 + public String getCarIdentification()
  206 + {
  207 + return carIdentification;
  208 + }
  209 + public void setContainerVolume(String containerVolume)
  210 + {
  211 + this.containerVolume = containerVolume;
  212 + }
  213 +
  214 + public String getContainerVolume()
  215 + {
  216 + return containerVolume;
  217 + }
  218 + public void setCarColor(String carColor)
  219 + {
  220 + this.carColor = carColor;
  221 + }
  222 +
  223 + public String getCarColor()
  224 + {
  225 + return carColor;
  226 + }
  227 + public void setCarEquipment(String carEquipment)
  228 + {
  229 + this.carEquipment = carEquipment;
  230 + }
  231 +
  232 + public String getCarEquipment()
  233 + {
  234 + return carEquipment;
  235 + }
  236 + public void setRoadTransport(String roadTransport)
  237 + {
  238 + this.roadTransport = roadTransport;
  239 + }
  240 +
  241 + public String getRoadTransport()
  242 + {
  243 + return roadTransport;
  244 + }
  245 + public void setDrivingLicense(String drivingLicense)
  246 + {
  247 + this.drivingLicense = drivingLicense;
  248 + }
  249 +
  250 + public String getDrivingLicense()
  251 + {
  252 + return drivingLicense;
  253 + }
  254 + public void setCarFront(String carFront)
  255 + {
  256 + this.carFront = carFront;
  257 + }
  258 +
  259 + public String getCarFront()
  260 + {
  261 + return carFront;
  262 + }
  263 + public void setCarLeft(String carLeft)
  264 + {
  265 + this.carLeft = carLeft;
  266 + }
  267 +
  268 + public String getCarLeft()
  269 + {
  270 + return carLeft;
  271 + }
  272 + public void setCarBehind(String carBehind)
  273 + {
  274 + this.carBehind = carBehind;
  275 + }
  276 +
  277 + public String getCarBehind()
  278 + {
  279 + return carBehind;
  280 + }
  281 + public void setCarRight(String carRight)
  282 + {
  283 + this.carRight = carRight;
  284 + }
  285 +
  286 + public String getCarRight()
  287 + {
  288 + return carRight;
  289 + }
  290 + public void setDrivers(String drivers)
  291 + {
  292 + this.drivers = drivers;
  293 + }
  294 +
  295 + public String getDrivers()
  296 + {
  297 + return drivers;
  298 + }
  299 + public void setStatus(Integer status)
  300 + {
  301 + this.status = status;
  302 + }
  303 +
  304 + public Integer getStatus()
  305 + {
  306 + return status;
  307 + }
  308 +
  309 + @Override
  310 + public String toString() {
  311 + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
  312 + .append("id", getId())
  313 + .append("companyId", getCompanyId())
  314 + .append("carType", getCarType())
  315 + .append("carCode", getCarCode())
  316 + .append("carBrank", getCarBrank())
  317 + .append("emissionStandard", getEmissionStandard())
  318 + .append("roadTransportDate", getRoadTransportDate())
  319 + .append("drivingLicenseDate", getDrivingLicenseDate())
  320 + .append("enterDate", getEnterDate())
  321 + .append("farmeNumber", getFarmeNumber())
  322 + .append("carIdentification", getCarIdentification())
  323 + .append("containerVolume", getContainerVolume())
  324 + .append("carColor", getCarColor())
  325 + .append("carEquipment", getCarEquipment())
  326 + .append("remark", getRemark())
  327 + .append("roadTransport", getRoadTransport())
  328 + .append("drivingLicense", getDrivingLicense())
  329 + .append("carFront", getCarFront())
  330 + .append("carLeft", getCarLeft())
  331 + .append("carBehind", getCarBehind())
  332 + .append("carRight", getCarRight())
  333 + .append("drivers", getDrivers())
  334 + .append("status", getStatus())
  335 + .append("createTime", getCreateTime())
  336 + .append("createBy", getCreateBy())
  337 + .append("updateTime", getUpdateTime())
  338 + .append("updateBy", getUpdateBy())
  339 + .toString();
  340 + }
  341 +}
trash-unit/src/main/java/com/trash/carInfo/mapper/CarInfoMapper.java 0 → 100644
  1 +package com.trash.carInfo.mapper;
  2 +
  3 +import java.util.List;
  4 +import com.trash.carInfo.domain.CarInfo;
  5 +
  6 +/**
  7 + * 运输车辆管理Mapper接口
  8 + *
  9 + * @author trash
  10 + * @date 2023-11-15
  11 + */
  12 +public interface CarInfoMapper
  13 +{
  14 + /**
  15 + * 查询运输车辆管理
  16 + *
  17 + * @param id 运输车辆管理ID
  18 + * @return 运输车辆管理
  19 + */
  20 + CarInfo selectCarInfoById(Long id);
  21 +
  22 + /**
  23 + * 查询运输车辆管理列表
  24 + *
  25 + * @param carInfo 运输车辆管理
  26 + * @return 运输车辆管理集合
  27 + */
  28 + List<CarInfo> selectCarInfoList(CarInfo carInfo);
  29 +
  30 + /**
  31 + * 新增运输车辆管理
  32 + *
  33 + * @param carInfo 运输车辆管理
  34 + * @return 结果
  35 + */
  36 + int insertCarInfo(CarInfo carInfo);
  37 +
  38 + /**
  39 + * 修改运输车辆管理
  40 + *
  41 + * @param carInfo 运输车辆管理
  42 + * @return 结果
  43 + */
  44 + int updateCarInfo(CarInfo carInfo);
  45 +
  46 + /**
  47 + * 删除运输车辆管理
  48 + *
  49 + * @param id 运输车辆管理ID
  50 + * @return 结果
  51 + */
  52 + int deleteCarInfoById(Long id);
  53 +
  54 + /**
  55 + * 批量删除运输车辆管理
  56 + *
  57 + * @param ids 需要删除的数据ID
  58 + * @return 结果
  59 + */
  60 + int deleteCarInfoByIds(Long[] ids);
  61 +}
trash-unit/src/main/java/com/trash/carInfo/service/ICarInfoService.java 0 → 100644
  1 +package com.trash.carInfo.service;
  2 +
  3 +import java.util.List;
  4 +import com.trash.carInfo.domain.CarInfo;
  5 +
  6 +/**
  7 + * 运输车辆管理Service接口
  8 + *
  9 + * @author trash
  10 + * @date 2023-11-15
  11 + */
  12 +public interface ICarInfoService
  13 +{
  14 + /**
  15 + * 查询运输车辆管理
  16 + *
  17 + * @param id 运输车辆管理ID
  18 + * @return 运输车辆管理
  19 + */
  20 + CarInfo selectCarInfoById(Long id);
  21 +
  22 + /**
  23 + * 查询运输车辆管理列表
  24 + *
  25 + * @param carInfo 运输车辆管理
  26 + * @return 运输车辆管理集合
  27 + */
  28 + List<CarInfo> selectCarInfoList(CarInfo carInfo);
  29 +
  30 + /**
  31 + * 新增运输车辆管理
  32 + *
  33 + * @param carInfo 运输车辆管理
  34 + * @return 结果
  35 + */
  36 + int insertCarInfo(CarInfo carInfo);
  37 +
  38 + /**
  39 + * 修改运输车辆管理
  40 + *
  41 + * @param carInfo 运输车辆管理
  42 + * @return 结果
  43 + */
  44 + int updateCarInfo(CarInfo carInfo);
  45 +
  46 + /**
  47 + * 批量删除运输车辆管理
  48 + *
  49 + * @param ids 需要删除的运输车辆管理ID
  50 + * @return 结果
  51 + */
  52 + int deleteCarInfoByIds(Long[] ids);
  53 +
  54 + /**
  55 + * 删除运输车辆管理信息
  56 + *
  57 + * @param id 运输车辆管理ID
  58 + * @return 结果
  59 + */
  60 + int deleteCarInfoById(Long id);
  61 +}
trash-unit/src/main/java/com/trash/carInfo/service/impl/CarInfoServiceImpl.java 0 → 100644
  1 +package com.trash.carInfo.service.impl;
  2 +
  3 +import java.util.List;
  4 +import com.trash.common.utils.DateUtils;
  5 +import org.springframework.beans.factory.annotation.Autowired;
  6 +import org.springframework.stereotype.Service;
  7 +import com.trash.carInfo.mapper.CarInfoMapper;
  8 +import com.trash.carInfo.domain.CarInfo;
  9 +import com.trash.carInfo.service.ICarInfoService;
  10 +
  11 +/**
  12 + * 运输车辆管理Service业务层处理
  13 + *
  14 + * @author trash
  15 + * @date 2023-11-15
  16 + */
  17 +@Service
  18 +public class CarInfoServiceImpl implements ICarInfoService
  19 +{
  20 + @Autowired
  21 + private CarInfoMapper carInfoMapper;
  22 +
  23 + /**
  24 + * 查询运输车辆管理
  25 + *
  26 + * @param id 运输车辆管理ID
  27 + * @return 运输车辆管理
  28 + */
  29 + @Override
  30 + public CarInfo selectCarInfoById(Long id)
  31 + {
  32 + return carInfoMapper.selectCarInfoById(id);
  33 + }
  34 +
  35 + /**
  36 + * 查询运输车辆管理列表
  37 + *
  38 + * @param carInfo 运输车辆管理
  39 + * @return 运输车辆管理
  40 + */
  41 + @Override
  42 + public List<CarInfo> selectCarInfoList(CarInfo carInfo)
  43 + {
  44 + return carInfoMapper.selectCarInfoList(carInfo);
  45 + }
  46 +
  47 + /**
  48 + * 新增运输车辆管理
  49 + *
  50 + * @param carInfo 运输车辆管理
  51 + * @return 结果
  52 + */
  53 + @Override
  54 + public int insertCarInfo(CarInfo carInfo)
  55 + {
  56 + carInfo.setCreateTime(DateUtils.getNowDate());
  57 + return carInfoMapper.insertCarInfo(carInfo);
  58 + }
  59 +
  60 + /**
  61 + * 修改运输车辆管理
  62 + *
  63 + * @param carInfo 运输车辆管理
  64 + * @return 结果
  65 + */
  66 + @Override
  67 + public int updateCarInfo(CarInfo carInfo)
  68 + {
  69 + carInfo.setUpdateTime(DateUtils.getNowDate());
  70 + return carInfoMapper.updateCarInfo(carInfo);
  71 + }
  72 +
  73 + /**
  74 + * 批量删除运输车辆管理
  75 + *
  76 + * @param ids 需要删除的运输车辆管理ID
  77 + * @return 结果
  78 + */
  79 + @Override
  80 + public int deleteCarInfoByIds(Long[] ids)
  81 + {
  82 + return carInfoMapper.deleteCarInfoByIds(ids);
  83 + }
  84 +
  85 + /**
  86 + * 删除运输车辆管理信息
  87 + *
  88 + * @param id 运输车辆管理ID
  89 + * @return 结果
  90 + */
  91 + @Override
  92 + public int deleteCarInfoById(Long id)
  93 + {
  94 + return carInfoMapper.deleteCarInfoById(id);
  95 + }
  96 +}
trash-unit/src/main/java/com/trash/disposalSite/controller/DisposalSiteController.java 0 → 100644
  1 +package com.trash.disposalSite.controller;
  2 +
  3 +import java.util.List;
  4 +import org.springframework.security.access.prepost.PreAuthorize;
  5 +import org.springframework.beans.factory.annotation.Autowired;
  6 +import org.springframework.web.bind.annotation.GetMapping;
  7 +import org.springframework.web.bind.annotation.PostMapping;
  8 +import org.springframework.web.bind.annotation.PutMapping;
  9 +import org.springframework.web.bind.annotation.DeleteMapping;
  10 +import org.springframework.web.bind.annotation.PathVariable;
  11 +import org.springframework.web.bind.annotation.RequestBody;
  12 +import org.springframework.web.bind.annotation.RequestMapping;
  13 +import org.springframework.web.bind.annotation.RestController;
  14 +import com.trash.common.annotation.Log;
  15 +import com.trash.common.core.controller.BaseController;
  16 +import com.trash.common.core.domain.AjaxResult;
  17 +import com.trash.common.enums.BusinessType;
  18 +import com.trash.disposalSite.domain.DisposalSite;
  19 +import com.trash.disposalSite.service.IDisposalSiteService;
  20 +import com.trash.common.utils.poi.ExcelUtil;
  21 +import com.trash.common.core.page.TableDataInfo;
  22 +
  23 +/**
  24 + * 处理场所管理Controller
  25 + *
  26 + * @author trash
  27 + * @date 2023-11-15
  28 + */
  29 +@RestController
  30 +@RequestMapping("/disposalSite")
  31 +public class DisposalSiteController extends BaseController
  32 +{
  33 + @Autowired
  34 + private IDisposalSiteService disposalSiteService;
  35 +
  36 + /**
  37 + * 查询处理场所管理列表
  38 + */
  39 +// @PreAuthorize("@ss.hasPermi('disposalSite:disposalSite:list')")
  40 + @GetMapping("/list")
  41 + public TableDataInfo list(DisposalSite disposalSite)
  42 + {
  43 + startPage();
  44 + List<DisposalSite> list = disposalSiteService.selectDisposalSiteList(disposalSite);
  45 + return getDataTable(list);
  46 + }
  47 +
  48 + /**
  49 + * 导出处理场所管理列表
  50 + */
  51 + @PreAuthorize("@ss.hasPermi('disposalSite:disposalSite:export')")
  52 + @Log(title = "处理场所管理", businessType = BusinessType.EXPORT)
  53 + @GetMapping("/export")
  54 + public AjaxResult export(DisposalSite disposalSite)
  55 + {
  56 + List<DisposalSite> list = disposalSiteService.selectDisposalSiteList(disposalSite);
  57 + ExcelUtil<DisposalSite> util = new ExcelUtil<DisposalSite>(DisposalSite.class);
  58 + return util.exportExcel(list, "disposalSite");
  59 + }
  60 +
  61 + /**
  62 + * 获取处理场所管理详细信息
  63 + */
  64 + @PreAuthorize("@ss.hasPermi('disposalSite:disposalSite:query')")
  65 + @GetMapping(value = "/{id}")
  66 + public AjaxResult getInfo(@PathVariable("id") Long id)
  67 + {
  68 + return AjaxResult.success(disposalSiteService.selectDisposalSiteById(id));
  69 + }
  70 +
  71 + /**
  72 + * 新增处理场所管理
  73 + */
  74 + @PreAuthorize("@ss.hasPermi('disposalSite:disposalSite:add')")
  75 + @Log(title = "处理场所管理", businessType = BusinessType.INSERT)
  76 + @PostMapping
  77 + public AjaxResult add(@RequestBody DisposalSite disposalSite)
  78 + {
  79 + return toAjax(disposalSiteService.insertDisposalSite(disposalSite));
  80 + }
  81 +
  82 + /**
  83 + * 修改处理场所管理
  84 + */
  85 + @PreAuthorize("@ss.hasPermi('disposalSite:disposalSite:edit')")
  86 + @Log(title = "处理场所管理", businessType = BusinessType.UPDATE)
  87 + @PutMapping
  88 + public AjaxResult edit(@RequestBody DisposalSite disposalSite)
  89 + {
  90 + return toAjax(disposalSiteService.updateDisposalSite(disposalSite));
  91 + }
  92 +
  93 + /**
  94 + * 删除处理场所管理
  95 + */
  96 + @PreAuthorize("@ss.hasPermi('disposalSite:disposalSite:remove')")
  97 + @Log(title = "处理场所管理", businessType = BusinessType.DELETE)
  98 + @DeleteMapping("/{ids}")
  99 + public AjaxResult remove(@PathVariable Long[] ids)
  100 + {
  101 + return toAjax(disposalSiteService.deleteDisposalSiteByIds(ids));
  102 + }
  103 +}
trash-unit/src/main/java/com/trash/disposalSite/domain/DisposalSite.java 0 → 100644
  1 +package com.trash.disposalSite.domain;
  2 +
  3 +import java.util.Date;
  4 +import com.fasterxml.jackson.annotation.JsonFormat;
  5 +import org.apache.commons.lang3.builder.ToStringBuilder;
  6 +import org.apache.commons.lang3.builder.ToStringStyle;
  7 +import com.trash.common.annotation.Excel;
  8 +import com.trash.common.core.domain.BaseEntity;
  9 +
  10 +/**
  11 + * 处理场所管理对象 disposal_site
  12 + *
  13 + * @author trash
  14 + * @date 2023-11-15
  15 + */
  16 +public class DisposalSite extends BaseEntity
  17 +{
  18 + private static final long serialVersionUID = 1L;
  19 +
  20 + /** $column.columnComment */
  21 + private Long id;
  22 +
  23 + /** 建筑垃圾处理场所名称 */
  24 + @Excel(name = "建筑垃圾处理场所名称")
  25 + private String name;
  26 +
  27 + /** 证书编号 */
  28 + @Excel(name = "证书编号")
  29 + private String certificateNumber;
  30 +
  31 + /** 所在地址 */
  32 + @Excel(name = "所在地址")
  33 + private String address;
  34 +
  35 + /** 消纳(回填)场所工程性质 */
  36 + @Excel(name = "消纳", readConverterExp = "回=填")
  37 + private String engineeringProperty;
  38 +
  39 + /** 建筑垃圾处理场所类型 */
  40 + @Excel(name = "建筑垃圾处理场所类型")
  41 + private String siteType;
  42 +
  43 + /** 所在区域 */
  44 + @Excel(name = "所在区域")
  45 + private String localArea;
  46 +
  47 + /** 作业区域 */
  48 + @Excel(name = "作业区域")
  49 + private String operatingArea;
  50 +
  51 + /** 可受纳建筑垃圾类型 */
  52 + @Excel(name = "可受纳建筑垃圾类型")
  53 + private String trashType;
  54 +
  55 + /** 建设(施工)单位名称 */
  56 + @Excel(name = "建设", readConverterExp = "施=工")
  57 + private String constructionUnit;
  58 +
  59 + /** 建设(施工)单位责任人 */
  60 + @Excel(name = "建设", readConverterExp = "施=工")
  61 + private String constructionUnitPerson;
  62 +
  63 + /** 责任人联系电话 */
  64 + @Excel(name = "责任人联系电话")
  65 + private String constructionUnitPersonPhone;
  66 +
  67 + /** 有限期开始时间 */
  68 + @JsonFormat(pattern = "yyyy-MM-dd")
  69 + @Excel(name = "有限期开始时间", width = 30, dateFormat = "yyyy-MM-dd")
  70 + private Date validityBeginDate;
  71 +
  72 + /** 有限期结束时间 */
  73 + @JsonFormat(pattern = "yyyy-MM-dd")
  74 + @Excel(name = "有限期结束时间", width = 30, dateFormat = "yyyy-MM-dd")
  75 + private Date validityEndDate;
  76 +
  77 + /** 审批方量(m³) */
  78 + @Excel(name = "审批方量(m³)")
  79 + private String squareMeasure;
  80 +
  81 + /** 洗车作业设施 */
  82 + @Excel(name = "洗车作业设施")
  83 + private String carWashingFacilities;
  84 +
  85 + /** 出口道路状况 */
  86 + @Excel(name = "出口道路状况")
  87 + private String exitRoadCondition;
  88 +
  89 + /** 照明设施 */
  90 + @Excel(name = "照明设施")
  91 + private String lightingFacility;
  92 +
  93 + /** 视频监控设施 */
  94 + @Excel(name = "视频监控设施")
  95 + private String videoSurveillanceFacility;
  96 +
  97 + /** 填表人
  98 + */
  99 + @Excel(name = "填表人")
  100 + private String preparer;
  101 +
  102 + /** 办理意见
  103 + */
  104 + @Excel(name = "办理意见")
  105 + private String handlingAdvice;
  106 +
  107 + /** 电子围栏
  108 + */
  109 + @Excel(name = "电子围栏")
  110 + private String electronicFence;
  111 +
  112 + /** 批准文件 */
  113 + @Excel(name = "批准文件")
  114 + private String approvalDocument;
  115 +
  116 + /** 审批资料
  117 + */
  118 + @Excel(name = "审批资料")
  119 + private String approvalData;
  120 +
  121 + /** 现场照片 */
  122 + @Excel(name = "现场照片")
  123 + private String scenePhoto;
  124 +
  125 + /** 洗车设施照片 */
  126 + @Excel(name = "洗车设施照片")
  127 + private String carWashingFacilitiesImage;
  128 +
  129 + /** 安全评估报告 */
  130 + @Excel(name = "安全评估报告")
  131 + private String safetyAssessmentReport;
  132 +
  133 + /** 环评报告及环保部门批复
  134 + */
  135 + @Excel(name = "环评报告及环保部门批复")
  136 + private String environmentalApproval;
  137 +
  138 + /** 签署消纳合同授权委托书 */
  139 + @Excel(name = "签署消纳合同授权委托书")
  140 + private String authorization;
  141 +
  142 + /** 其他资料 */
  143 + @Excel(name = "其他资料")
  144 + private String otherInformation;
  145 +
  146 + /** 运输企业 */
  147 + @Excel(name = "运输企业")
  148 + private String companyIds;
  149 +
  150 + /** 审批状态,0=审批中,1=审批通过,2=被驳回 */
  151 + @Excel(name = "审批状态,0=审批中,1=审批通过,2=被驳回")
  152 + private Integer status;
  153 +
  154 + public void setId(Long id)
  155 + {
  156 + this.id = id;
  157 + }
  158 +
  159 + public Long getId()
  160 + {
  161 + return id;
  162 + }
  163 + public void setName(String name)
  164 + {
  165 + this.name = name;
  166 + }
  167 +
  168 + public String getName()
  169 + {
  170 + return name;
  171 + }
  172 + public void setCertificateNumber(String certificateNumber)
  173 + {
  174 + this.certificateNumber = certificateNumber;
  175 + }
  176 +
  177 + public String getCertificateNumber()
  178 + {
  179 + return certificateNumber;
  180 + }
  181 + public void setAddress(String address)
  182 + {
  183 + this.address = address;
  184 + }
  185 +
  186 + public String getAddress()
  187 + {
  188 + return address;
  189 + }
  190 + public void setEngineeringProperty(String engineeringProperty)
  191 + {
  192 + this.engineeringProperty = engineeringProperty;
  193 + }
  194 +
  195 + public String getEngineeringProperty()
  196 + {
  197 + return engineeringProperty;
  198 + }
  199 + public void setSiteType(String siteType)
  200 + {
  201 + this.siteType = siteType;
  202 + }
  203 +
  204 + public String getSiteType()
  205 + {
  206 + return siteType;
  207 + }
  208 + public void setLocalArea(String localArea)
  209 + {
  210 + this.localArea = localArea;
  211 + }
  212 +
  213 + public String getLocalArea()
  214 + {
  215 + return localArea;
  216 + }
  217 + public void setOperatingArea(String operatingArea)
  218 + {
  219 + this.operatingArea = operatingArea;
  220 + }
  221 +
  222 + public String getOperatingArea()
  223 + {
  224 + return operatingArea;
  225 + }
  226 + public void setTrashType(String trashType)
  227 + {
  228 + this.trashType = trashType;
  229 + }
  230 +
  231 + public String getTrashType()
  232 + {
  233 + return trashType;
  234 + }
  235 + public void setConstructionUnit(String constructionUnit)
  236 + {
  237 + this.constructionUnit = constructionUnit;
  238 + }
  239 +
  240 + public String getConstructionUnit()
  241 + {
  242 + return constructionUnit;
  243 + }
  244 + public void setConstructionUnitPerson(String constructionUnitPerson)
  245 + {
  246 + this.constructionUnitPerson = constructionUnitPerson;
  247 + }
  248 +
  249 + public String getConstructionUnitPerson()
  250 + {
  251 + return constructionUnitPerson;
  252 + }
  253 + public void setConstructionUnitPersonPhone(String constructionUnitPersonPhone)
  254 + {
  255 + this.constructionUnitPersonPhone = constructionUnitPersonPhone;
  256 + }
  257 +
  258 + public String getConstructionUnitPersonPhone()
  259 + {
  260 + return constructionUnitPersonPhone;
  261 + }
  262 + public void setValidityBeginDate(Date validityBeginDate)
  263 + {
  264 + this.validityBeginDate = validityBeginDate;
  265 + }
  266 +
  267 + public Date getValidityBeginDate()
  268 + {
  269 + return validityBeginDate;
  270 + }
  271 + public void setValidityEndDate(Date validityEndDate)
  272 + {
  273 + this.validityEndDate = validityEndDate;
  274 + }
  275 +
  276 + public Date getValidityEndDate()
  277 + {
  278 + return validityEndDate;
  279 + }
  280 + public void setSquareMeasure(String squareMeasure)
  281 + {
  282 + this.squareMeasure = squareMeasure;
  283 + }
  284 +
  285 + public String getSquareMeasure()
  286 + {
  287 + return squareMeasure;
  288 + }
  289 + public void setCarWashingFacilities(String carWashingFacilities)
  290 + {
  291 + this.carWashingFacilities = carWashingFacilities;
  292 + }
  293 +
  294 + public String getCarWashingFacilities()
  295 + {
  296 + return carWashingFacilities;
  297 + }
  298 + public void setExitRoadCondition(String exitRoadCondition)
  299 + {
  300 + this.exitRoadCondition = exitRoadCondition;
  301 + }
  302 +
  303 + public String getExitRoadCondition()
  304 + {
  305 + return exitRoadCondition;
  306 + }
  307 + public void setLightingFacility(String lightingFacility)
  308 + {
  309 + this.lightingFacility = lightingFacility;
  310 + }
  311 +
  312 + public String getLightingFacility()
  313 + {
  314 + return lightingFacility;
  315 + }
  316 + public void setVideoSurveillanceFacility(String videoSurveillanceFacility)
  317 + {
  318 + this.videoSurveillanceFacility = videoSurveillanceFacility;
  319 + }
  320 +
  321 + public String getVideoSurveillanceFacility()
  322 + {
  323 + return videoSurveillanceFacility;
  324 + }
  325 + public void setPreparer(String preparer)
  326 + {
  327 + this.preparer = preparer;
  328 + }
  329 +
  330 + public String getPreparer()
  331 + {
  332 + return preparer;
  333 + }
  334 + public void setHandlingAdvice(String handlingAdvice)
  335 + {
  336 + this.handlingAdvice = handlingAdvice;
  337 + }
  338 +
  339 + public String getHandlingAdvice()
  340 + {
  341 + return handlingAdvice;
  342 + }
  343 + public void setElectronicFence(String electronicFence)
  344 + {
  345 + this.electronicFence = electronicFence;
  346 + }
  347 +
  348 + public String getElectronicFence()
  349 + {
  350 + return electronicFence;
  351 + }
  352 + public void setApprovalDocument(String approvalDocument)
  353 + {
  354 + this.approvalDocument = approvalDocument;
  355 + }
  356 +
  357 + public String getApprovalDocument()
  358 + {
  359 + return approvalDocument;
  360 + }
  361 + public void setApprovalData(String approvalData)
  362 + {
  363 + this.approvalData = approvalData;
  364 + }
  365 +
  366 + public String getApprovalData()
  367 + {
  368 + return approvalData;
  369 + }
  370 + public void setScenePhoto(String scenePhoto)
  371 + {
  372 + this.scenePhoto = scenePhoto;
  373 + }
  374 +
  375 + public String getScenePhoto()
  376 + {
  377 + return scenePhoto;
  378 + }
  379 + public void setCarWashingFacilitiesImage(String carWashingFacilitiesImage)
  380 + {
  381 + this.carWashingFacilitiesImage = carWashingFacilitiesImage;
  382 + }
  383 +
  384 + public String getCarWashingFacilitiesImage()
  385 + {
  386 + return carWashingFacilitiesImage;
  387 + }
  388 + public void setSafetyAssessmentReport(String safetyAssessmentReport)
  389 + {
  390 + this.safetyAssessmentReport = safetyAssessmentReport;
  391 + }
  392 +
  393 + public String getSafetyAssessmentReport()
  394 + {
  395 + return safetyAssessmentReport;
  396 + }
  397 + public void setEnvironmentalApproval(String environmentalApproval)
  398 + {
  399 + this.environmentalApproval = environmentalApproval;
  400 + }
  401 +
  402 + public String getEnvironmentalApproval()
  403 + {
  404 + return environmentalApproval;
  405 + }
  406 + public void setAuthorization(String authorization)
  407 + {
  408 + this.authorization = authorization;
  409 + }
  410 +
  411 + public String getAuthorization()
  412 + {
  413 + return authorization;
  414 + }
  415 + public void setOtherInformation(String otherInformation)
  416 + {
  417 + this.otherInformation = otherInformation;
  418 + }
  419 +
  420 + public String getOtherInformation()
  421 + {
  422 + return otherInformation;
  423 + }
  424 + public void setCompanyIds(String companyIds)
  425 + {
  426 + this.companyIds = companyIds;
  427 + }
  428 +
  429 + public String getCompanyIds()
  430 + {
  431 + return companyIds;
  432 + }
  433 + public void setStatus(Integer status)
  434 + {
  435 + this.status = status;
  436 + }
  437 +
  438 + public Integer getStatus()
  439 + {
  440 + return status;
  441 + }
  442 +
  443 + @Override
  444 + public String toString() {
  445 + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
  446 + .append("id", getId())
  447 + .append("name", getName())
  448 + .append("certificateNumber", getCertificateNumber())
  449 + .append("address", getAddress())
  450 + .append("engineeringProperty", getEngineeringProperty())
  451 + .append("siteType", getSiteType())
  452 + .append("localArea", getLocalArea())
  453 + .append("operatingArea", getOperatingArea())
  454 + .append("trashType", getTrashType())
  455 + .append("constructionUnit", getConstructionUnit())
  456 + .append("constructionUnitPerson", getConstructionUnitPerson())
  457 + .append("constructionUnitPersonPhone", getConstructionUnitPersonPhone())
  458 + .append("validityBeginDate", getValidityBeginDate())
  459 + .append("validityEndDate", getValidityEndDate())
  460 + .append("squareMeasure", getSquareMeasure())
  461 + .append("carWashingFacilities", getCarWashingFacilities())
  462 + .append("exitRoadCondition", getExitRoadCondition())
  463 + .append("lightingFacility", getLightingFacility())
  464 + .append("videoSurveillanceFacility", getVideoSurveillanceFacility())
  465 + .append("preparer", getPreparer())
  466 + .append("handlingAdvice", getHandlingAdvice())
  467 + .append("electronicFence", getElectronicFence())
  468 + .append("approvalDocument", getApprovalDocument())
  469 + .append("approvalData", getApprovalData())
  470 + .append("scenePhoto", getScenePhoto())
  471 + .append("carWashingFacilitiesImage", getCarWashingFacilitiesImage())
  472 + .append("safetyAssessmentReport", getSafetyAssessmentReport())
  473 + .append("environmentalApproval", getEnvironmentalApproval())
  474 + .append("authorization", getAuthorization())
  475 + .append("otherInformation", getOtherInformation())
  476 + .append("companyIds", getCompanyIds())
  477 + .append("status", getStatus())
  478 + .append("createTime", getCreateTime())
  479 + .append("createBy", getCreateBy())
  480 + .append("updateTime", getUpdateTime())
  481 + .append("updateBy", getUpdateBy())
  482 + .toString();
  483 + }
  484 +}
trash-unit/src/main/java/com/trash/disposalSite/mapper/DisposalSiteMapper.java 0 → 100644
  1 +package com.trash.disposalSite.mapper;
  2 +
  3 +import java.util.List;
  4 +import com.trash.disposalSite.domain.DisposalSite;
  5 +
  6 +/**
  7 + * 处理场所管理Mapper接口
  8 + *
  9 + * @author trash
  10 + * @date 2023-11-15
  11 + */
  12 +public interface DisposalSiteMapper
  13 +{
  14 + /**
  15 + * 查询处理场所管理
  16 + *
  17 + * @param id 处理场所管理ID
  18 + * @return 处理场所管理
  19 + */
  20 + DisposalSite selectDisposalSiteById(Long id);
  21 +
  22 + /**
  23 + * 查询处理场所管理列表
  24 + *
  25 + * @param disposalSite 处理场所管理
  26 + * @return 处理场所管理集合
  27 + */
  28 + List<DisposalSite> selectDisposalSiteList(DisposalSite disposalSite);
  29 +
  30 + /**
  31 + * 新增处理场所管理
  32 + *
  33 + * @param disposalSite 处理场所管理
  34 + * @return 结果
  35 + */
  36 + int insertDisposalSite(DisposalSite disposalSite);
  37 +
  38 + /**
  39 + * 修改处理场所管理
  40 + *
  41 + * @param disposalSite 处理场所管理
  42 + * @return 结果
  43 + */
  44 + int updateDisposalSite(DisposalSite disposalSite);
  45 +
  46 + /**
  47 + * 删除处理场所管理
  48 + *
  49 + * @param id 处理场所管理ID
  50 + * @return 结果
  51 + */
  52 + int deleteDisposalSiteById(Long id);
  53 +
  54 + /**
  55 + * 批量删除处理场所管理
  56 + *
  57 + * @param ids 需要删除的数据ID
  58 + * @return 结果
  59 + */
  60 + int deleteDisposalSiteByIds(Long[] ids);
  61 +}
trash-unit/src/main/java/com/trash/disposalSite/service/IDisposalSiteService.java 0 → 100644
  1 +package com.trash.disposalSite.service;
  2 +
  3 +import java.util.List;
  4 +import com.trash.disposalSite.domain.DisposalSite;
  5 +
  6 +/**
  7 + * 处理场所管理Service接口
  8 + *
  9 + * @author trash
  10 + * @date 2023-11-15
  11 + */
  12 +public interface IDisposalSiteService
  13 +{
  14 + /**
  15 + * 查询处理场所管理
  16 + *
  17 + * @param id 处理场所管理ID
  18 + * @return 处理场所管理
  19 + */
  20 + DisposalSite selectDisposalSiteById(Long id);
  21 +
  22 + /**
  23 + * 查询处理场所管理列表
  24 + *
  25 + * @param disposalSite 处理场所管理
  26 + * @return 处理场所管理集合
  27 + */
  28 + List<DisposalSite> selectDisposalSiteList(DisposalSite disposalSite);
  29 +
  30 + /**
  31 + * 新增处理场所管理
  32 + *
  33 + * @param disposalSite 处理场所管理
  34 + * @return 结果
  35 + */
  36 + int insertDisposalSite(DisposalSite disposalSite);
  37 +
  38 + /**
  39 + * 修改处理场所管理
  40 + *
  41 + * @param disposalSite 处理场所管理
  42 + * @return 结果
  43 + */
  44 + int updateDisposalSite(DisposalSite disposalSite);
  45 +
  46 + /**
  47 + * 批量删除处理场所管理
  48 + *
  49 + * @param ids 需要删除的处理场所管理ID
  50 + * @return 结果
  51 + */
  52 + int deleteDisposalSiteByIds(Long[] ids);
  53 +
  54 + /**
  55 + * 删除处理场所管理信息
  56 + *
  57 + * @param id 处理场所管理ID
  58 + * @return 结果
  59 + */
  60 + int deleteDisposalSiteById(Long id);
  61 +}
trash-unit/src/main/java/com/trash/disposalSite/service/impl/DisposalSiteServiceImpl.java 0 → 100644
  1 +package com.trash.disposalSite.service.impl;
  2 +
  3 +import java.util.List;
  4 +import com.trash.common.utils.DateUtils;
  5 +import org.springframework.beans.factory.annotation.Autowired;
  6 +import org.springframework.stereotype.Service;
  7 +import com.trash.disposalSite.mapper.DisposalSiteMapper;
  8 +import com.trash.disposalSite.domain.DisposalSite;
  9 +import com.trash.disposalSite.service.IDisposalSiteService;
  10 +
  11 +/**
  12 + * 处理场所管理Service业务层处理
  13 + *
  14 + * @author trash
  15 + * @date 2023-11-15
  16 + */
  17 +@Service
  18 +public class DisposalSiteServiceImpl implements IDisposalSiteService
  19 +{
  20 + @Autowired
  21 + private DisposalSiteMapper disposalSiteMapper;
  22 +
  23 + /**
  24 + * 查询处理场所管理
  25 + *
  26 + * @param id 处理场所管理ID
  27 + * @return 处理场所管理
  28 + */
  29 + @Override
  30 + public DisposalSite selectDisposalSiteById(Long id)
  31 + {
  32 + return disposalSiteMapper.selectDisposalSiteById(id);
  33 + }
  34 +
  35 + /**
  36 + * 查询处理场所管理列表
  37 + *
  38 + * @param disposalSite 处理场所管理
  39 + * @return 处理场所管理
  40 + */
  41 + @Override
  42 + public List<DisposalSite> selectDisposalSiteList(DisposalSite disposalSite)
  43 + {
  44 + return disposalSiteMapper.selectDisposalSiteList(disposalSite);
  45 + }
  46 +
  47 + /**
  48 + * 新增处理场所管理
  49 + *
  50 + * @param disposalSite 处理场所管理
  51 + * @return 结果
  52 + */
  53 + @Override
  54 + public int insertDisposalSite(DisposalSite disposalSite)
  55 + {
  56 + disposalSite.setCreateTime(DateUtils.getNowDate());
  57 + return disposalSiteMapper.insertDisposalSite(disposalSite);
  58 + }
  59 +
  60 + /**
  61 + * 修改处理场所管理
  62 + *
  63 + * @param disposalSite 处理场所管理
  64 + * @return 结果
  65 + */
  66 + @Override
  67 + public int updateDisposalSite(DisposalSite disposalSite)
  68 + {
  69 + disposalSite.setUpdateTime(DateUtils.getNowDate());
  70 + return disposalSiteMapper.updateDisposalSite(disposalSite);
  71 + }
  72 +
  73 + /**
  74 + * 批量删除处理场所管理
  75 + *
  76 + * @param ids 需要删除的处理场所管理ID
  77 + * @return 结果
  78 + */
  79 + @Override
  80 + public int deleteDisposalSiteByIds(Long[] ids)
  81 + {
  82 + return disposalSiteMapper.deleteDisposalSiteByIds(ids);
  83 + }
  84 +
  85 + /**
  86 + * 删除处理场所管理信息
  87 + *
  88 + * @param id 处理场所管理ID
  89 + * @return 结果
  90 + */
  91 + @Override
  92 + public int deleteDisposalSiteById(Long id)
  93 + {
  94 + return disposalSiteMapper.deleteDisposalSiteById(id);
  95 + }
  96 +}
trash-unit/src/main/java/com/trash/driver/controller/DriverController.java 0 → 100644
  1 +package com.trash.driver.controller;
  2 +
  3 +import java.util.List;
  4 +import org.springframework.security.access.prepost.PreAuthorize;
  5 +import org.springframework.beans.factory.annotation.Autowired;
  6 +import org.springframework.web.bind.annotation.GetMapping;
  7 +import org.springframework.web.bind.annotation.PostMapping;
  8 +import org.springframework.web.bind.annotation.PutMapping;
  9 +import org.springframework.web.bind.annotation.DeleteMapping;
  10 +import org.springframework.web.bind.annotation.PathVariable;
  11 +import org.springframework.web.bind.annotation.RequestBody;
  12 +import org.springframework.web.bind.annotation.RequestMapping;
  13 +import org.springframework.web.bind.annotation.RestController;
  14 +import com.trash.common.annotation.Log;
  15 +import com.trash.common.core.controller.BaseController;
  16 +import com.trash.common.core.domain.AjaxResult;
  17 +import com.trash.common.enums.BusinessType;
  18 +import com.trash.driver.domain.Driver;
  19 +import com.trash.driver.service.IDriverService;
  20 +import com.trash.common.utils.poi.ExcelUtil;
  21 +import com.trash.common.core.page.TableDataInfo;
  22 +
  23 +/**
  24 + * 驾驶员管理Controller
  25 + *
  26 + * @author trash
  27 + * @date 2023-11-15
  28 + */
  29 +@RestController
  30 +@RequestMapping("/driver")
  31 +public class DriverController extends BaseController
  32 +{
  33 + @Autowired
  34 + private IDriverService driverService;
  35 +
  36 + /**
  37 + * 查询驾驶员管理列表
  38 + */
  39 +// @PreAuthorize("@ss.hasPermi('driver:driver:list')")
  40 + @GetMapping("/list")
  41 + public TableDataInfo list(Driver driver)
  42 + {
  43 + startPage();
  44 + List<Driver> list = driverService.selectDriverList(driver);
  45 + return getDataTable(list);
  46 + }
  47 +
  48 + /**
  49 + * 导出驾驶员管理列表
  50 + */
  51 + @PreAuthorize("@ss.hasPermi('driver:driver:export')")
  52 + @Log(title = "驾驶员管理", businessType = BusinessType.EXPORT)
  53 + @GetMapping("/export")
  54 + public AjaxResult export(Driver driver)
  55 + {
  56 + List<Driver> list = driverService.selectDriverList(driver);
  57 + ExcelUtil<Driver> util = new ExcelUtil<Driver>(Driver.class);
  58 + return util.exportExcel(list, "driver");
  59 + }
  60 +
  61 + /**
  62 + * 获取驾驶员管理详细信息
  63 + */
  64 + @PreAuthorize("@ss.hasPermi('driver:driver:query')")
  65 + @GetMapping(value = "/{id}")
  66 + public AjaxResult getInfo(@PathVariable("id") Long id)
  67 + {
  68 + return AjaxResult.success(driverService.selectDriverById(id));
  69 + }
  70 +
  71 + /**
  72 + * 新增驾驶员管理
  73 + */
  74 + @PreAuthorize("@ss.hasPermi('driver:driver:add')")
  75 + @Log(title = "驾驶员管理", businessType = BusinessType.INSERT)
  76 + @PostMapping
  77 + public AjaxResult add(@RequestBody Driver driver)
  78 + {
  79 + return toAjax(driverService.insertDriver(driver));
  80 + }
  81 +
  82 + /**
  83 + * 修改驾驶员管理
  84 + */
  85 + @PreAuthorize("@ss.hasPermi('driver:driver:edit')")
  86 + @Log(title = "驾驶员管理", businessType = BusinessType.UPDATE)
  87 + @PutMapping
  88 + public AjaxResult edit(@RequestBody Driver driver)
  89 + {
  90 + return toAjax(driverService.updateDriver(driver));
  91 + }
  92 +
  93 + /**
  94 + * 删除驾驶员管理
  95 + */
  96 + @PreAuthorize("@ss.hasPermi('driver:driver:remove')")
  97 + @Log(title = "驾驶员管理", businessType = BusinessType.DELETE)
  98 + @DeleteMapping("/{ids}")
  99 + public AjaxResult remove(@PathVariable Long[] ids)
  100 + {
  101 + return toAjax(driverService.deleteDriverByIds(ids));
  102 + }
  103 +}
trash-unit/src/main/java/com/trash/driver/domain/Driver.java 0 → 100644
  1 +package com.trash.driver.domain;
  2 +
  3 +import java.util.Date;
  4 +import com.fasterxml.jackson.annotation.JsonFormat;
  5 +import org.apache.commons.lang3.builder.ToStringBuilder;
  6 +import org.apache.commons.lang3.builder.ToStringStyle;
  7 +import com.trash.common.annotation.Excel;
  8 +import com.trash.common.core.domain.BaseEntity;
  9 +
  10 +/**
  11 + * 驾驶员管理对象 driver
  12 + *
  13 + * @author trash
  14 + * @date 2023-11-15
  15 + */
  16 +public class Driver extends BaseEntity
  17 +{
  18 + private static final long serialVersionUID = 1L;
  19 +
  20 + /** $column.columnComment */
  21 + private Long id;
  22 +
  23 + /** 驾驶员名称 */
  24 + @Excel(name = "驾驶员名称")
  25 + private String name;
  26 +
  27 + /** 身份证 */
  28 + @Excel(name = "身份证")
  29 + private String identityCard;
  30 +
  31 + /** 所属公司 */
  32 + @Excel(name = "所属公司")
  33 + private Long companyId;
  34 +
  35 + /** 从业资格证有效期起 */
  36 + @JsonFormat(pattern = "yyyy-MM-dd")
  37 + @Excel(name = "从业资格证有效期起", width = 30, dateFormat = "yyyy-MM-dd")
  38 + private Date professionalQualificationBeginDate;
  39 +
  40 + /** 从业资格证有效期终 */
  41 + @JsonFormat(pattern = "yyyy-MM-dd")
  42 + @Excel(name = "从业资格证有效期终", width = 30, dateFormat = "yyyy-MM-dd")
  43 + private Date professionalQualificationEndDate;
  44 +
  45 + /** 驾驶证有效期起 */
  46 + @JsonFormat(pattern = "yyyy-MM-dd")
  47 + @Excel(name = "驾驶证有效期起", width = 30, dateFormat = "yyyy-MM-dd")
  48 + private Date drivingLicenceBeginDate;
  49 +
  50 + /** 驾驶证有效期终 */
  51 + @JsonFormat(pattern = "yyyy-MM-dd")
  52 + @Excel(name = "驾驶证有效期终", width = 30, dateFormat = "yyyy-MM-dd")
  53 + private Date drivingLicenceEndDate;
  54 +
  55 + /** 安全教育培训日期 */
  56 + @JsonFormat(pattern = "yyyy-MM-dd")
  57 + @Excel(name = "安全教育培训日期", width = 30, dateFormat = "yyyy-MM-dd")
  58 + private Date safetyTrainingDate;
  59 +
  60 + /** 安全教育培训内容 */
  61 + @Excel(name = "安全教育培训内容")
  62 + private String safetyTrainingContent;
  63 +
  64 + /** 驾驶证 */
  65 + @Excel(name = "驾驶证")
  66 + private String drivingLicence;
  67 +
  68 + /** 从业资格证 */
  69 + @Excel(name = "从业资格证")
  70 + private String professionalQualification;
  71 +
  72 + /** 安全教育培训结业证明 */
  73 + @Excel(name = "安全教育培训结业证明")
  74 + private String safetyTraining;
  75 +
  76 + /** 审批状态,0=审批中,1=审批通过,2=被驳回 */
  77 + @Excel(name = "审批状态,0=审批中,1=审批通过,2=被驳回")
  78 + private Integer status;
  79 +
  80 + public void setId(Long id)
  81 + {
  82 + this.id = id;
  83 + }
  84 +
  85 + public Long getId()
  86 + {
  87 + return id;
  88 + }
  89 + public void setName(String name)
  90 + {
  91 + this.name = name;
  92 + }
  93 +
  94 + public String getName()
  95 + {
  96 + return name;
  97 + }
  98 + public void setIdentityCard(String identityCard)
  99 + {
  100 + this.identityCard = identityCard;
  101 + }
  102 +
  103 + public String getIdentityCard()
  104 + {
  105 + return identityCard;
  106 + }
  107 + public void setCompanyId(Long companyId)
  108 + {
  109 + this.companyId = companyId;
  110 + }
  111 +
  112 + public Long getCompanyId()
  113 + {
  114 + return companyId;
  115 + }
  116 + public void setProfessionalQualificationBeginDate(Date professionalQualificationBeginDate)
  117 + {
  118 + this.professionalQualificationBeginDate = professionalQualificationBeginDate;
  119 + }
  120 +
  121 + public Date getProfessionalQualificationBeginDate()
  122 + {
  123 + return professionalQualificationBeginDate;
  124 + }
  125 + public void setProfessionalQualificationEndDate(Date professionalQualificationEndDate)
  126 + {
  127 + this.professionalQualificationEndDate = professionalQualificationEndDate;
  128 + }
  129 +
  130 + public Date getProfessionalQualificationEndDate()
  131 + {
  132 + return professionalQualificationEndDate;
  133 + }
  134 + public void setDrivingLicenceBeginDate(Date drivingLicenceBeginDate)
  135 + {
  136 + this.drivingLicenceBeginDate = drivingLicenceBeginDate;
  137 + }
  138 +
  139 + public Date getDrivingLicenceBeginDate()
  140 + {
  141 + return drivingLicenceBeginDate;
  142 + }
  143 + public void setDrivingLicenceEndDate(Date drivingLicenceEndDate)
  144 + {
  145 + this.drivingLicenceEndDate = drivingLicenceEndDate;
  146 + }
  147 +
  148 + public Date getDrivingLicenceEndDate()
  149 + {
  150 + return drivingLicenceEndDate;
  151 + }
  152 + public void setSafetyTrainingDate(Date safetyTrainingDate)
  153 + {
  154 + this.safetyTrainingDate = safetyTrainingDate;
  155 + }
  156 +
  157 + public Date getSafetyTrainingDate()
  158 + {
  159 + return safetyTrainingDate;
  160 + }
  161 + public void setSafetyTrainingContent(String safetyTrainingContent)
  162 + {
  163 + this.safetyTrainingContent = safetyTrainingContent;
  164 + }
  165 +
  166 + public String getSafetyTrainingContent()
  167 + {
  168 + return safetyTrainingContent;
  169 + }
  170 + public void setDrivingLicence(String drivingLicence)
  171 + {
  172 + this.drivingLicence = drivingLicence;
  173 + }
  174 +
  175 + public String getDrivingLicence()
  176 + {
  177 + return drivingLicence;
  178 + }
  179 + public void setProfessionalQualification(String professionalQualification)
  180 + {
  181 + this.professionalQualification = professionalQualification;
  182 + }
  183 +
  184 + public String getProfessionalQualification()
  185 + {
  186 + return professionalQualification;
  187 + }
  188 + public void setSafetyTraining(String safetyTraining)
  189 + {
  190 + this.safetyTraining = safetyTraining;
  191 + }
  192 +
  193 + public String getSafetyTraining()
  194 + {
  195 + return safetyTraining;
  196 + }
  197 + public void setStatus(Integer status)
  198 + {
  199 + this.status = status;
  200 + }
  201 +
  202 + public Integer getStatus()
  203 + {
  204 + return status;
  205 + }
  206 +
  207 + @Override
  208 + public String toString() {
  209 + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
  210 + .append("id", getId())
  211 + .append("name", getName())
  212 + .append("identityCard", getIdentityCard())
  213 + .append("companyId", getCompanyId())
  214 + .append("professionalQualificationBeginDate", getProfessionalQualificationBeginDate())
  215 + .append("professionalQualificationEndDate", getProfessionalQualificationEndDate())
  216 + .append("drivingLicenceBeginDate", getDrivingLicenceBeginDate())
  217 + .append("drivingLicenceEndDate", getDrivingLicenceEndDate())
  218 + .append("safetyTrainingDate", getSafetyTrainingDate())
  219 + .append("safetyTrainingContent", getSafetyTrainingContent())
  220 + .append("remark", getRemark())
  221 + .append("drivingLicence", getDrivingLicence())
  222 + .append("professionalQualification", getProfessionalQualification())
  223 + .append("safetyTraining", getSafetyTraining())
  224 + .append("status", getStatus())
  225 + .append("createTime", getCreateTime())
  226 + .append("createBy", getCreateBy())
  227 + .append("updateTime", getUpdateTime())
  228 + .append("updateBy", getUpdateBy())
  229 + .toString();
  230 + }
  231 +}
trash-unit/src/main/java/com/trash/driver/mapper/DriverMapper.java 0 → 100644
  1 +package com.trash.driver.mapper;
  2 +
  3 +import java.util.List;
  4 +import com.trash.driver.domain.Driver;
  5 +
  6 +/**
  7 + * 驾驶员管理Mapper接口
  8 + *
  9 + * @author trash
  10 + * @date 2023-11-15
  11 + */
  12 +public interface DriverMapper
  13 +{
  14 + /**
  15 + * 查询驾驶员管理
  16 + *
  17 + * @param id 驾驶员管理ID
  18 + * @return 驾驶员管理
  19 + */
  20 + Driver selectDriverById(Long id);
  21 +
  22 + /**
  23 + * 查询驾驶员管理列表
  24 + *
  25 + * @param driver 驾驶员管理
  26 + * @return 驾驶员管理集合
  27 + */
  28 + List<Driver> selectDriverList(Driver driver);
  29 +
  30 + /**
  31 + * 新增驾驶员管理
  32 + *
  33 + * @param driver 驾驶员管理
  34 + * @return 结果
  35 + */
  36 + int insertDriver(Driver driver);
  37 +
  38 + /**
  39 + * 修改驾驶员管理
  40 + *
  41 + * @param driver 驾驶员管理
  42 + * @return 结果
  43 + */
  44 + int updateDriver(Driver driver);
  45 +
  46 + /**
  47 + * 删除驾驶员管理
  48 + *
  49 + * @param id 驾驶员管理ID
  50 + * @return 结果
  51 + */
  52 + int deleteDriverById(Long id);
  53 +
  54 + /**
  55 + * 批量删除驾驶员管理
  56 + *
  57 + * @param ids 需要删除的数据ID
  58 + * @return 结果
  59 + */
  60 + int deleteDriverByIds(Long[] ids);
  61 +}
trash-unit/src/main/java/com/trash/driver/service/IDriverService.java 0 → 100644
  1 +package com.trash.driver.service;
  2 +
  3 +import java.util.List;
  4 +import com.trash.driver.domain.Driver;
  5 +
  6 +/**
  7 + * 驾驶员管理Service接口
  8 + *
  9 + * @author trash
  10 + * @date 2023-11-15
  11 + */
  12 +public interface IDriverService
  13 +{
  14 + /**
  15 + * 查询驾驶员管理
  16 + *
  17 + * @param id 驾驶员管理ID
  18 + * @return 驾驶员管理
  19 + */
  20 + Driver selectDriverById(Long id);
  21 +
  22 + /**
  23 + * 查询驾驶员管理列表
  24 + *
  25 + * @param driver 驾驶员管理
  26 + * @return 驾驶员管理集合
  27 + */
  28 + List<Driver> selectDriverList(Driver driver);
  29 +
  30 + /**
  31 + * 新增驾驶员管理
  32 + *
  33 + * @param driver 驾驶员管理
  34 + * @return 结果
  35 + */
  36 + int insertDriver(Driver driver);
  37 +
  38 + /**
  39 + * 修改驾驶员管理
  40 + *
  41 + * @param driver 驾驶员管理
  42 + * @return 结果
  43 + */
  44 + int updateDriver(Driver driver);
  45 +
  46 + /**
  47 + * 批量删除驾驶员管理
  48 + *
  49 + * @param ids 需要删除的驾驶员管理ID
  50 + * @return 结果
  51 + */
  52 + int deleteDriverByIds(Long[] ids);
  53 +
  54 + /**
  55 + * 删除驾驶员管理信息
  56 + *
  57 + * @param id 驾驶员管理ID
  58 + * @return 结果
  59 + */
  60 + int deleteDriverById(Long id);
  61 +}
trash-unit/src/main/java/com/trash/driver/service/impl/DriverServiceImpl.java 0 → 100644
  1 +package com.trash.driver.service.impl;
  2 +
  3 +import java.util.List;
  4 +import com.trash.common.utils.DateUtils;
  5 +import org.springframework.beans.factory.annotation.Autowired;
  6 +import org.springframework.stereotype.Service;
  7 +import com.trash.driver.mapper.DriverMapper;
  8 +import com.trash.driver.domain.Driver;
  9 +import com.trash.driver.service.IDriverService;
  10 +
  11 +/**
  12 + * 驾驶员管理Service业务层处理
  13 + *
  14 + * @author trash
  15 + * @date 2023-11-15
  16 + */
  17 +@Service
  18 +public class DriverServiceImpl implements IDriverService
  19 +{
  20 + @Autowired
  21 + private DriverMapper driverMapper;
  22 +
  23 + /**
  24 + * 查询驾驶员管理
  25 + *
  26 + * @param id 驾驶员管理ID
  27 + * @return 驾驶员管理
  28 + */
  29 + @Override
  30 + public Driver selectDriverById(Long id)
  31 + {
  32 + return driverMapper.selectDriverById(id);
  33 + }
  34 +
  35 + /**
  36 + * 查询驾驶员管理列表
  37 + *
  38 + * @param driver 驾驶员管理
  39 + * @return 驾驶员管理
  40 + */
  41 + @Override
  42 + public List<Driver> selectDriverList(Driver driver)
  43 + {
  44 + return driverMapper.selectDriverList(driver);
  45 + }
  46 +
  47 + /**
  48 + * 新增驾驶员管理
  49 + *
  50 + * @param driver 驾驶员管理
  51 + * @return 结果
  52 + */
  53 + @Override
  54 + public int insertDriver(Driver driver)
  55 + {
  56 + driver.setCreateTime(DateUtils.getNowDate());
  57 + return driverMapper.insertDriver(driver);
  58 + }
  59 +
  60 + /**
  61 + * 修改驾驶员管理
  62 + *
  63 + * @param driver 驾驶员管理
  64 + * @return 结果
  65 + */
  66 + @Override
  67 + public int updateDriver(Driver driver)
  68 + {
  69 + driver.setUpdateTime(DateUtils.getNowDate());
  70 + return driverMapper.updateDriver(driver);
  71 + }
  72 +
  73 + /**
  74 + * 批量删除驾驶员管理
  75 + *
  76 + * @param ids 需要删除的驾驶员管理ID
  77 + * @return 结果
  78 + */
  79 + @Override
  80 + public int deleteDriverByIds(Long[] ids)
  81 + {
  82 + return driverMapper.deleteDriverByIds(ids);
  83 + }
  84 +
  85 + /**
  86 + * 删除驾驶员管理信息
  87 + *
  88 + * @param id 驾驶员管理ID
  89 + * @return 结果
  90 + */
  91 + @Override
  92 + public int deleteDriverById(Long id)
  93 + {
  94 + return driverMapper.deleteDriverById(id);
  95 + }
  96 +}
trash-unit/src/main/java/com/trash/enterprise/controller/TransportationEnterpriseController.java 0 → 100644
  1 +package com.trash.enterprise.controller;
  2 +
  3 +import java.util.List;
  4 +import org.springframework.security.access.prepost.PreAuthorize;
  5 +import org.springframework.beans.factory.annotation.Autowired;
  6 +import org.springframework.web.bind.annotation.GetMapping;
  7 +import org.springframework.web.bind.annotation.PostMapping;
  8 +import org.springframework.web.bind.annotation.PutMapping;
  9 +import org.springframework.web.bind.annotation.DeleteMapping;
  10 +import org.springframework.web.bind.annotation.PathVariable;
  11 +import org.springframework.web.bind.annotation.RequestBody;
  12 +import org.springframework.web.bind.annotation.RequestMapping;
  13 +import org.springframework.web.bind.annotation.RestController;
  14 +import com.trash.common.annotation.Log;
  15 +import com.trash.common.core.controller.BaseController;
  16 +import com.trash.common.core.domain.AjaxResult;
  17 +import com.trash.common.enums.BusinessType;
  18 +import com.trash.enterprise.domain.TransportationEnterprise;
  19 +import com.trash.enterprise.service.ITransportationEnterpriseService;
  20 +import com.trash.common.utils.poi.ExcelUtil;
  21 +import com.trash.common.core.page.TableDataInfo;
  22 +
  23 +/**
  24 + * 运输企业管理Controller
  25 + *
  26 + * @author trash
  27 + * @date 2023-11-15
  28 + */
  29 +@RestController
  30 +@RequestMapping("/enterprise")
  31 +public class TransportationEnterpriseController extends BaseController
  32 +{
  33 + @Autowired
  34 + private ITransportationEnterpriseService transportationEnterpriseService;
  35 +
  36 + /**
  37 + * 查询运输企业管理列表
  38 + */
  39 + //@PreAuthorize("@ss.hasPermi('enterprise:enterprise:list')")
  40 + @GetMapping("/list")
  41 + public TableDataInfo list(TransportationEnterprise transportationEnterprise)
  42 + {
  43 + startPage();
  44 + List<TransportationEnterprise> list = transportationEnterpriseService.selectTransportationEnterpriseList(transportationEnterprise);
  45 + return getDataTable(list);
  46 + }
  47 +
  48 + /**
  49 + * 导出运输企业管理列表
  50 + */
  51 + @PreAuthorize("@ss.hasPermi('enterprise:enterprise:export')")
  52 + @Log(title = "运输企业管理", businessType = BusinessType.EXPORT)
  53 + @GetMapping("/export")
  54 + public AjaxResult export(TransportationEnterprise transportationEnterprise)
  55 + {
  56 + List<TransportationEnterprise> list = transportationEnterpriseService.selectTransportationEnterpriseList(transportationEnterprise);
  57 + ExcelUtil<TransportationEnterprise> util = new ExcelUtil<TransportationEnterprise>(TransportationEnterprise.class);
  58 + return util.exportExcel(list, "enterprise");
  59 + }
  60 +
  61 + /**
  62 + * 获取运输企业管理详细信息
  63 + */
  64 + @PreAuthorize("@ss.hasPermi('enterprise:enterprise:query')")
  65 + @GetMapping(value = "/{id}")
  66 + public AjaxResult getInfo(@PathVariable("id") Long id)
  67 + {
  68 + return AjaxResult.success(transportationEnterpriseService.selectTransportationEnterpriseById(id));
  69 + }
  70 +
  71 + /**
  72 + * 新增运输企业管理
  73 + */
  74 + @PreAuthorize("@ss.hasPermi('enterprise:enterprise:add')")
  75 + @Log(title = "运输企业管理", businessType = BusinessType.INSERT)
  76 + @PostMapping
  77 + public AjaxResult add(@RequestBody TransportationEnterprise transportationEnterprise)
  78 + {
  79 + return toAjax(transportationEnterpriseService.insertTransportationEnterprise(transportationEnterprise));
  80 + }
  81 +
  82 + /**
  83 + * 修改运输企业管理
  84 + */
  85 + @PreAuthorize("@ss.hasPermi('enterprise:enterprise:edit')")
  86 + @Log(title = "运输企业管理", businessType = BusinessType.UPDATE)
  87 + @PutMapping
  88 + public AjaxResult edit(@RequestBody TransportationEnterprise transportationEnterprise)
  89 + {
  90 + return toAjax(transportationEnterpriseService.updateTransportationEnterprise(transportationEnterprise));
  91 + }
  92 +
  93 + /**
  94 + * 删除运输企业管理
  95 + */
  96 + @PreAuthorize("@ss.hasPermi('enterprise:enterprise:remove')")
  97 + @Log(title = "运输企业管理", businessType = BusinessType.DELETE)
  98 + @DeleteMapping("/{ids}")
  99 + public AjaxResult remove(@PathVariable Long[] ids)
  100 + {
  101 + return toAjax(transportationEnterpriseService.deleteTransportationEnterpriseByIds(ids));
  102 + }
  103 +}
trash-unit/src/main/java/com/trash/enterprise/domain/TransportationEnterprise.java 0 → 100644
  1 +package com.trash.enterprise.domain;
  2 +
  3 +import java.math.BigDecimal;
  4 +import java.util.Date;
  5 +import com.fasterxml.jackson.annotation.JsonFormat;
  6 +import org.apache.commons.lang3.builder.ToStringBuilder;
  7 +import org.apache.commons.lang3.builder.ToStringStyle;
  8 +import com.trash.common.annotation.Excel;
  9 +import com.trash.common.core.domain.BaseEntity;
  10 +
  11 +/**
  12 + * 运输企业管理对象 transportation_enterprise
  13 + *
  14 + * @author trash
  15 + * @date 2023-11-15
  16 + */
  17 +public class TransportationEnterprise extends BaseEntity
  18 +{
  19 + private static final long serialVersionUID = 1L;
  20 +
  21 + /** $column.columnComment */
  22 + private Long id;
  23 +
  24 + /** 企业名称 */
  25 + @Excel(name = "企业名称")
  26 + private String name;
  27 +
  28 + /** 简称 */
  29 + @Excel(name = "简称")
  30 + private String abbreviation;
  31 +
  32 + /** 注册地所在区域 */
  33 + @Excel(name = "注册地所在区域")
  34 + private String registrationArea;
  35 +
  36 + /** 企业道路运输经营许可证有效期 */
  37 + @JsonFormat(pattern = "yyyy-MM-dd")
  38 + @Excel(name = "企业道路运输经营许可证有效期", width = 30, dateFormat = "yyyy-MM-dd")
  39 + private Date transportPermissionDate;
  40 +
  41 + /** 企业入市时间 */
  42 + @JsonFormat(pattern = "yyyy-MM-dd")
  43 + @Excel(name = "企业入市时间", width = 30, dateFormat = "yyyy-MM-dd")
  44 + private Date enterDate;
  45 +
  46 + /** 企业营业执照有效期 */
  47 + @JsonFormat(pattern = "yyyy-MM-dd")
  48 + @Excel(name = "企业营业执照有效期", width = 30, dateFormat = "yyyy-MM-dd")
  49 + private Date businessLicenseDate;
  50 +
  51 + /** 办公地址 */
  52 + @Excel(name = "办公地址")
  53 + private String officeAddress;
  54 +
  55 + /** 停车场位置 */
  56 + @Excel(name = "停车场位置")
  57 + private String parkingLotLocation;
  58 +
  59 + /** 停车场面积 */
  60 + @Excel(name = "停车场面积")
  61 + private BigDecimal parkingArea;
  62 +
  63 + /** 车辆数 */
  64 + @Excel(name = "车辆数")
  65 + private Integer carNumber;
  66 +
  67 + /** 企业安全负责人名称 */
  68 + @Excel(name = "企业安全负责人名称")
  69 + private String safetyManagerName;
  70 +
  71 + /** 企业安全负责人联系方式 */
  72 + @Excel(name = "企业安全负责人联系方式")
  73 + private String safetyManagerPhone;
  74 +
  75 + /** 社会统一信用代码编号 */
  76 + @Excel(name = "社会统一信用代码编号")
  77 + private String socialUniformCreditCodeNumber;
  78 +
  79 + /** 法人代表 */
  80 + @Excel(name = "法人代表")
  81 + private String legalRepresentative;
  82 +
  83 + /** 法人代表联系方式 */
  84 + @Excel(name = "法人代表联系方式")
  85 + private String legalRepresentativePhone;
  86 +
  87 + /** 安全管理人员 */
  88 + @Excel(name = "安全管理人员")
  89 + private String safetyPeopleName;
  90 +
  91 + /** 企业道路运输经营许可证 */
  92 + @Excel(name = "企业道路运输经营许可证")
  93 + private String transportPermission;
  94 +
  95 + /** 企业营业执照 */
  96 + @Excel(name = "企业营业执照")
  97 + private String enterpriseBusinessLicense;
  98 +
  99 + /** 安全员考核合格证明 */
  100 + @Excel(name = "安全员考核合格证明")
  101 + private String safetyOfficerQualificationCertificate;
  102 +
  103 + /** 企业负责人安全考核证 */
  104 + @Excel(name = "企业负责人安全考核证")
  105 + private String safetyCertificate;
  106 +
  107 + /** 停车场全景图 */
  108 + @Excel(name = "停车场全景图")
  109 + private String carParkPanorama;
  110 +
  111 + /** 经营单位 */
  112 + @Excel(name = "经营单位")
  113 + private String businessUnit;
  114 +
  115 + /** 审批状态,0=审批中,1=审批通过,2=被驳回 */
  116 + @Excel(name = "审批状态,0=审批中,1=审批通过,2=被驳回")
  117 + private Integer status;
  118 +
  119 + /** 父公司id */
  120 + @Excel(name = "父公司id")
  121 + private Long parentId;
  122 +
  123 + /** 公司类型(0经营单位,1运输公司) */
  124 + @Excel(name = "公司类型", readConverterExp = "0=经营单位,1运输公司")
  125 + private Integer companyType;
  126 +
  127 + public void setId(Long id)
  128 + {
  129 + this.id = id;
  130 + }
  131 +
  132 + public Long getId()
  133 + {
  134 + return id;
  135 + }
  136 + public void setName(String name)
  137 + {
  138 + this.name = name;
  139 + }
  140 +
  141 + public String getName()
  142 + {
  143 + return name;
  144 + }
  145 + public void setAbbreviation(String abbreviation)
  146 + {
  147 + this.abbreviation = abbreviation;
  148 + }
  149 +
  150 + public String getAbbreviation()
  151 + {
  152 + return abbreviation;
  153 + }
  154 + public void setRegistrationArea(String registrationArea)
  155 + {
  156 + this.registrationArea = registrationArea;
  157 + }
  158 +
  159 + public String getRegistrationArea()
  160 + {
  161 + return registrationArea;
  162 + }
  163 + public void setTransportPermissionDate(Date transportPermissionDate)
  164 + {
  165 + this.transportPermissionDate = transportPermissionDate;
  166 + }
  167 +
  168 + public Date getTransportPermissionDate()
  169 + {
  170 + return transportPermissionDate;
  171 + }
  172 + public void setEnterDate(Date enterDate)
  173 + {
  174 + this.enterDate = enterDate;
  175 + }
  176 +
  177 + public Date getEnterDate()
  178 + {
  179 + return enterDate;
  180 + }
  181 + public void setBusinessLicenseDate(Date businessLicenseDate)
  182 + {
  183 + this.businessLicenseDate = businessLicenseDate;
  184 + }
  185 +
  186 + public Date getBusinessLicenseDate()
  187 + {
  188 + return businessLicenseDate;
  189 + }
  190 + public void setOfficeAddress(String officeAddress)
  191 + {
  192 + this.officeAddress = officeAddress;
  193 + }
  194 +
  195 + public String getOfficeAddress()
  196 + {
  197 + return officeAddress;
  198 + }
  199 + public void setParkingLotLocation(String parkingLotLocation)
  200 + {
  201 + this.parkingLotLocation = parkingLotLocation;
  202 + }
  203 +
  204 + public String getParkingLotLocation()
  205 + {
  206 + return parkingLotLocation;
  207 + }
  208 + public void setParkingArea(BigDecimal parkingArea)
  209 + {
  210 + this.parkingArea = parkingArea;
  211 + }
  212 +
  213 + public BigDecimal getParkingArea()
  214 + {
  215 + return parkingArea;
  216 + }
  217 + public void setCarNumber(Integer carNumber)
  218 + {
  219 + this.carNumber = carNumber;
  220 + }
  221 +
  222 + public Integer getCarNumber()
  223 + {
  224 + return carNumber;
  225 + }
  226 + public void setSafetyManagerName(String safetyManagerName)
  227 + {
  228 + this.safetyManagerName = safetyManagerName;
  229 + }
  230 +
  231 + public String getSafetyManagerName()
  232 + {
  233 + return safetyManagerName;
  234 + }
  235 + public void setSafetyManagerPhone(String safetyManagerPhone)
  236 + {
  237 + this.safetyManagerPhone = safetyManagerPhone;
  238 + }
  239 +
  240 + public String getSafetyManagerPhone()
  241 + {
  242 + return safetyManagerPhone;
  243 + }
  244 + public void setSocialUniformCreditCodeNumber(String socialUniformCreditCodeNumber)
  245 + {
  246 + this.socialUniformCreditCodeNumber = socialUniformCreditCodeNumber;
  247 + }
  248 +
  249 + public String getSocialUniformCreditCodeNumber()
  250 + {
  251 + return socialUniformCreditCodeNumber;
  252 + }
  253 + public void setLegalRepresentative(String legalRepresentative)
  254 + {
  255 + this.legalRepresentative = legalRepresentative;
  256 + }
  257 +
  258 + public String getLegalRepresentative()
  259 + {
  260 + return legalRepresentative;
  261 + }
  262 + public void setLegalRepresentativePhone(String legalRepresentativePhone)
  263 + {
  264 + this.legalRepresentativePhone = legalRepresentativePhone;
  265 + }
  266 +
  267 + public String getLegalRepresentativePhone()
  268 + {
  269 + return legalRepresentativePhone;
  270 + }
  271 + public void setSafetyPeopleName(String safetyPeopleName)
  272 + {
  273 + this.safetyPeopleName = safetyPeopleName;
  274 + }
  275 +
  276 + public String getSafetyPeopleName()
  277 + {
  278 + return safetyPeopleName;
  279 + }
  280 + public void setTransportPermission(String transportPermission)
  281 + {
  282 + this.transportPermission = transportPermission;
  283 + }
  284 +
  285 + public String getTransportPermission()
  286 + {
  287 + return transportPermission;
  288 + }
  289 + public void setEnterpriseBusinessLicense(String enterpriseBusinessLicense)
  290 + {
  291 + this.enterpriseBusinessLicense = enterpriseBusinessLicense;
  292 + }
  293 +
  294 + public String getEnterpriseBusinessLicense()
  295 + {
  296 + return enterpriseBusinessLicense;
  297 + }
  298 + public void setSafetyOfficerQualificationCertificate(String safetyOfficerQualificationCertificate)
  299 + {
  300 + this.safetyOfficerQualificationCertificate = safetyOfficerQualificationCertificate;
  301 + }
  302 +
  303 + public String getSafetyOfficerQualificationCertificate()
  304 + {
  305 + return safetyOfficerQualificationCertificate;
  306 + }
  307 + public void setSafetyCertificate(String safetyCertificate)
  308 + {
  309 + this.safetyCertificate = safetyCertificate;
  310 + }
  311 +
  312 + public String getSafetyCertificate()
  313 + {
  314 + return safetyCertificate;
  315 + }
  316 + public void setCarParkPanorama(String carParkPanorama)
  317 + {
  318 + this.carParkPanorama = carParkPanorama;
  319 + }
  320 +
  321 + public String getCarParkPanorama()
  322 + {
  323 + return carParkPanorama;
  324 + }
  325 + public void setBusinessUnit(String businessUnit)
  326 + {
  327 + this.businessUnit = businessUnit;
  328 + }
  329 +
  330 + public String getBusinessUnit()
  331 + {
  332 + return businessUnit;
  333 + }
  334 + public void setStatus(Integer status)
  335 + {
  336 + this.status = status;
  337 + }
  338 +
  339 + public Integer getStatus()
  340 + {
  341 + return status;
  342 + }
  343 + public void setParentId(Long parentId)
  344 + {
  345 + this.parentId = parentId;
  346 + }
  347 +
  348 + public Long getParentId()
  349 + {
  350 + return parentId;
  351 + }
  352 + public void setCompanyType(Integer companyType)
  353 + {
  354 + this.companyType = companyType;
  355 + }
  356 +
  357 + public Integer getCompanyType()
  358 + {
  359 + return companyType;
  360 + }
  361 +
  362 + @Override
  363 + public String toString() {
  364 + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
  365 + .append("id", getId())
  366 + .append("name", getName())
  367 + .append("abbreviation", getAbbreviation())
  368 + .append("registrationArea", getRegistrationArea())
  369 + .append("transportPermissionDate", getTransportPermissionDate())
  370 + .append("enterDate", getEnterDate())
  371 + .append("businessLicenseDate", getBusinessLicenseDate())
  372 + .append("officeAddress", getOfficeAddress())
  373 + .append("parkingLotLocation", getParkingLotLocation())
  374 + .append("parkingArea", getParkingArea())
  375 + .append("carNumber", getCarNumber())
  376 + .append("safetyManagerName", getSafetyManagerName())
  377 + .append("safetyManagerPhone", getSafetyManagerPhone())
  378 + .append("socialUniformCreditCodeNumber", getSocialUniformCreditCodeNumber())
  379 + .append("legalRepresentative", getLegalRepresentative())
  380 + .append("legalRepresentativePhone", getLegalRepresentativePhone())
  381 + .append("safetyPeopleName", getSafetyPeopleName())
  382 + .append("remark", getRemark())
  383 + .append("transportPermission", getTransportPermission())
  384 + .append("enterpriseBusinessLicense", getEnterpriseBusinessLicense())
  385 + .append("safetyOfficerQualificationCertificate", getSafetyOfficerQualificationCertificate())
  386 + .append("safetyCertificate", getSafetyCertificate())
  387 + .append("carParkPanorama", getCarParkPanorama())
  388 + .append("businessUnit", getBusinessUnit())
  389 + .append("status", getStatus())
  390 + .append("createTime", getCreateTime())
  391 + .append("createBy", getCreateBy())
  392 + .append("updateTime", getUpdateTime())
  393 + .append("updateBy", getUpdateBy())
  394 + .append("parentId", getParentId())
  395 + .append("companyType", getCompanyType())
  396 + .toString();
  397 + }
  398 +}
trash-unit/src/main/java/com/trash/enterprise/mapper/TransportationEnterpriseMapper.java 0 → 100644
  1 +package com.trash.enterprise.mapper;
  2 +
  3 +import java.util.List;
  4 +import com.trash.enterprise.domain.TransportationEnterprise;
  5 +
  6 +/**
  7 + * 运输企业管理Mapper接口
  8 + *
  9 + * @author trash
  10 + * @date 2023-11-15
  11 + */
  12 +public interface TransportationEnterpriseMapper
  13 +{
  14 + /**
  15 + * 查询运输企业管理
  16 + *
  17 + * @param id 运输企业管理ID
  18 + * @return 运输企业管理
  19 + */
  20 + TransportationEnterprise selectTransportationEnterpriseById(Long id);
  21 +
  22 + /**
  23 + * 查询运输企业管理列表
  24 + *
  25 + * @param transportationEnterprise 运输企业管理
  26 + * @return 运输企业管理集合
  27 + */
  28 + List<TransportationEnterprise> selectTransportationEnterpriseList(TransportationEnterprise transportationEnterprise);
  29 +
  30 + /**
  31 + * 新增运输企业管理
  32 + *
  33 + * @param transportationEnterprise 运输企业管理
  34 + * @return 结果
  35 + */
  36 + int insertTransportationEnterprise(TransportationEnterprise transportationEnterprise);
  37 +
  38 + /**
  39 + * 修改运输企业管理
  40 + *
  41 + * @param transportationEnterprise 运输企业管理
  42 + * @return 结果
  43 + */
  44 + int updateTransportationEnterprise(TransportationEnterprise transportationEnterprise);
  45 +
  46 + /**
  47 + * 删除运输企业管理
  48 + *
  49 + * @param id 运输企业管理ID
  50 + * @return 结果
  51 + */
  52 + int deleteTransportationEnterpriseById(Long id);
  53 +
  54 + /**
  55 + * 批量删除运输企业管理
  56 + *
  57 + * @param ids 需要删除的数据ID
  58 + * @return 结果
  59 + */
  60 + int deleteTransportationEnterpriseByIds(Long[] ids);
  61 +}
trash-unit/src/main/java/com/trash/enterprise/service/ITransportationEnterpriseService.java 0 → 100644
  1 +package com.trash.enterprise.service;
  2 +
  3 +import java.util.List;
  4 +import com.trash.enterprise.domain.TransportationEnterprise;
  5 +
  6 +/**
  7 + * 运输企业管理Service接口
  8 + *
  9 + * @author trash
  10 + * @date 2023-11-15
  11 + */
  12 +public interface ITransportationEnterpriseService
  13 +{
  14 + /**
  15 + * 查询运输企业管理
  16 + *
  17 + * @param id 运输企业管理ID
  18 + * @return 运输企业管理
  19 + */
  20 + TransportationEnterprise selectTransportationEnterpriseById(Long id);
  21 +
  22 + /**
  23 + * 查询运输企业管理列表
  24 + *
  25 + * @param transportationEnterprise 运输企业管理
  26 + * @return 运输企业管理集合
  27 + */
  28 + List<TransportationEnterprise> selectTransportationEnterpriseList(TransportationEnterprise transportationEnterprise);
  29 +
  30 + /**
  31 + * 新增运输企业管理
  32 + *
  33 + * @param transportationEnterprise 运输企业管理
  34 + * @return 结果
  35 + */
  36 + int insertTransportationEnterprise(TransportationEnterprise transportationEnterprise);
  37 +
  38 + /**
  39 + * 修改运输企业管理
  40 + *
  41 + * @param transportationEnterprise 运输企业管理
  42 + * @return 结果
  43 + */
  44 + int updateTransportationEnterprise(TransportationEnterprise transportationEnterprise);
  45 +
  46 + /**
  47 + * 批量删除运输企业管理
  48 + *
  49 + * @param ids 需要删除的运输企业管理ID
  50 + * @return 结果
  51 + */
  52 + int deleteTransportationEnterpriseByIds(Long[] ids);
  53 +
  54 + /**
  55 + * 删除运输企业管理信息
  56 + *
  57 + * @param id 运输企业管理ID
  58 + * @return 结果
  59 + */
  60 + int deleteTransportationEnterpriseById(Long id);
  61 +}
trash-unit/src/main/java/com/trash/enterprise/service/impl/TransportationEnterpriseServiceImpl.java 0 → 100644
  1 +package com.trash.enterprise.service.impl;
  2 +
  3 +import java.util.List;
  4 +import com.trash.common.utils.DateUtils;
  5 +import org.springframework.beans.factory.annotation.Autowired;
  6 +import org.springframework.stereotype.Service;
  7 +import com.trash.enterprise.mapper.TransportationEnterpriseMapper;
  8 +import com.trash.enterprise.domain.TransportationEnterprise;
  9 +import com.trash.enterprise.service.ITransportationEnterpriseService;
  10 +
  11 +/**
  12 + * 运输企业管理Service业务层处理
  13 + *
  14 + * @author trash
  15 + * @date 2023-11-15
  16 + */
  17 +@Service
  18 +public class TransportationEnterpriseServiceImpl implements ITransportationEnterpriseService
  19 +{
  20 + @Autowired
  21 + private TransportationEnterpriseMapper transportationEnterpriseMapper;
  22 +
  23 + /**
  24 + * 查询运输企业管理
  25 + *
  26 + * @param id 运输企业管理ID
  27 + * @return 运输企业管理
  28 + */
  29 + @Override
  30 + public TransportationEnterprise selectTransportationEnterpriseById(Long id)
  31 + {
  32 + return transportationEnterpriseMapper.selectTransportationEnterpriseById(id);
  33 + }
  34 +
  35 + /**
  36 + * 查询运输企业管理列表
  37 + *
  38 + * @param transportationEnterprise 运输企业管理
  39 + * @return 运输企业管理
  40 + */
  41 + @Override
  42 + public List<TransportationEnterprise> selectTransportationEnterpriseList(TransportationEnterprise transportationEnterprise)
  43 + {
  44 + return transportationEnterpriseMapper.selectTransportationEnterpriseList(transportationEnterprise);
  45 + }
  46 +
  47 + /**
  48 + * 新增运输企业管理
  49 + *
  50 + * @param transportationEnterprise 运输企业管理
  51 + * @return 结果
  52 + */
  53 + @Override
  54 + public int insertTransportationEnterprise(TransportationEnterprise transportationEnterprise)
  55 + {
  56 + transportationEnterprise.setCreateTime(DateUtils.getNowDate());
  57 + return transportationEnterpriseMapper.insertTransportationEnterprise(transportationEnterprise);
  58 + }
  59 +
  60 + /**
  61 + * 修改运输企业管理
  62 + *
  63 + * @param transportationEnterprise 运输企业管理
  64 + * @return 结果
  65 + */
  66 + @Override
  67 + public int updateTransportationEnterprise(TransportationEnterprise transportationEnterprise)
  68 + {
  69 + transportationEnterprise.setUpdateTime(DateUtils.getNowDate());
  70 + return transportationEnterpriseMapper.updateTransportationEnterprise(transportationEnterprise);
  71 + }
  72 +
  73 + /**
  74 + * 批量删除运输企业管理
  75 + *
  76 + * @param ids 需要删除的运输企业管理ID
  77 + * @return 结果
  78 + */
  79 + @Override
  80 + public int deleteTransportationEnterpriseByIds(Long[] ids)
  81 + {
  82 + return transportationEnterpriseMapper.deleteTransportationEnterpriseByIds(ids);
  83 + }
  84 +
  85 + /**
  86 + * 删除运输企业管理信息
  87 + *
  88 + * @param id 运输企业管理ID
  89 + * @return 结果
  90 + */
  91 + @Override
  92 + public int deleteTransportationEnterpriseById(Long id)
  93 + {
  94 + return transportationEnterpriseMapper.deleteTransportationEnterpriseById(id);
  95 + }
  96 +}
trash-unit/src/main/resources/mapper/carInfo/CarInfoMapper.xml 0 → 100644
  1 +<?xml version="1.0" encoding="UTF-8" ?>
  2 +<!DOCTYPE mapper
  3 +PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
  4 +"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
  5 +<mapper namespace="com.trash.carInfo.mapper.CarInfoMapper">
  6 +
  7 + <resultMap type="CarInfo" id="CarInfoResult">
  8 + <result property="id" column="id" />
  9 + <result property="companyId" column="company_id" />
  10 + <result property="carType" column="car_type" />
  11 + <result property="carCode" column="car_code" />
  12 + <result property="carBrank" column="car_brank" />
  13 + <result property="emissionStandard" column="emission_standard" />
  14 + <result property="roadTransportDate" column="road_transport_date" />
  15 + <result property="drivingLicenseDate" column="driving_license_date" />
  16 + <result property="enterDate" column="enter_date" />
  17 + <result property="farmeNumber" column="farme_number" />
  18 + <result property="carIdentification" column="car_identification" />
  19 + <result property="containerVolume" column="container_volume" />
  20 + <result property="carColor" column="car_color" />
  21 + <result property="carEquipment" column="car_equipment" />
  22 + <result property="remark" column="remark" />
  23 + <result property="roadTransport" column="road_transport" />
  24 + <result property="drivingLicense" column="driving_license" />
  25 + <result property="carFront" column="car_front" />
  26 + <result property="carLeft" column="car_left" />
  27 + <result property="carBehind" column="car_behind" />
  28 + <result property="carRight" column="car_right" />
  29 + <result property="drivers" column="drivers" />
  30 + <result property="status" column="status" />
  31 + <result property="createTime" column="create_time" />
  32 + <result property="createBy" column="create_by" />
  33 + <result property="updateTime" column="update_time" />
  34 + <result property="updateBy" column="update_by" />
  35 + </resultMap>
  36 +
  37 + <sql id="selectCarInfoVo">
  38 + select id, company_id, car_type, car_code, car_brank, emission_standard, road_transport_date, driving_license_date, enter_date, farme_number, car_identification, container_volume, car_color, car_equipment, remark, road_transport, driving_license, car_front, car_left, car_behind, car_right, drivers, status, create_time, create_by, update_time, update_by from car_info
  39 + </sql>
  40 +
  41 + <select id="selectCarInfoList" parameterType="CarInfo" resultMap="CarInfoResult">
  42 + <include refid="selectCarInfoVo"/>
  43 + <where>
  44 + <if test="companyId != null "> and company_id = #{companyId}</if>
  45 + <if test="carType != null and carType != ''"> and car_type = #{carType}</if>
  46 + <if test="carCode != null and carCode != ''"> and car_code = #{carCode}</if>
  47 + <if test="carBrank != null and carBrank != ''"> and car_brank = #{carBrank}</if>
  48 + <if test="emissionStandard != null and emissionStandard != ''"> and emission_standard = #{emissionStandard}</if>
  49 + <if test="roadTransportDate != null "> and road_transport_date = #{roadTransportDate}</if>
  50 + <if test="drivingLicenseDate != null "> and driving_license_date = #{drivingLicenseDate}</if>
  51 + <if test="enterDate != null "> and enter_date = #{enterDate}</if>
  52 + <if test="farmeNumber != null and farmeNumber != ''"> and farme_number = #{farmeNumber}</if>
  53 + <if test="carIdentification != null and carIdentification != ''"> and car_identification = #{carIdentification}</if>
  54 + <if test="containerVolume != null and containerVolume != ''"> and container_volume = #{containerVolume}</if>
  55 + <if test="carColor != null and carColor != ''"> and car_color = #{carColor}</if>
  56 + <if test="carEquipment != null and carEquipment != ''"> and car_equipment = #{carEquipment}</if>
  57 + <if test="roadTransport != null and roadTransport != ''"> and road_transport = #{roadTransport}</if>
  58 + <if test="drivingLicense != null and drivingLicense != ''"> and driving_license = #{drivingLicense}</if>
  59 + <if test="carFront != null and carFront != ''"> and car_front = #{carFront}</if>
  60 + <if test="carLeft != null and carLeft != ''"> and car_left = #{carLeft}</if>
  61 + <if test="carBehind != null and carBehind != ''"> and car_behind = #{carBehind}</if>
  62 + <if test="carRight != null and carRight != ''"> and car_right = #{carRight}</if>
  63 + <if test="drivers != null and drivers != ''"> and drivers = #{drivers}</if>
  64 + <if test="status != null "> and status = #{status}</if>
  65 + </where>
  66 + </select>
  67 +
  68 + <select id="selectCarInfoById" parameterType="Long" resultMap="CarInfoResult">
  69 + <include refid="selectCarInfoVo"/>
  70 + where id = #{id}
  71 + </select>
  72 +
  73 + <insert id="insertCarInfo" parameterType="CarInfo" useGeneratedKeys="true" keyProperty="id">
  74 + insert into car_info
  75 + <trim prefix="(" suffix=")" suffixOverrides=",">
  76 + <if test="companyId != null">company_id,</if>
  77 + <if test="carType != null">car_type,</if>
  78 + <if test="carCode != null">car_code,</if>
  79 + <if test="carBrank != null">car_brank,</if>
  80 + <if test="emissionStandard != null">emission_standard,</if>
  81 + <if test="roadTransportDate != null">road_transport_date,</if>
  82 + <if test="drivingLicenseDate != null">driving_license_date,</if>
  83 + <if test="enterDate != null">enter_date,</if>
  84 + <if test="farmeNumber != null">farme_number,</if>
  85 + <if test="carIdentification != null">car_identification,</if>
  86 + <if test="containerVolume != null">container_volume,</if>
  87 + <if test="carColor != null">car_color,</if>
  88 + <if test="carEquipment != null">car_equipment,</if>
  89 + <if test="remark != null">remark,</if>
  90 + <if test="roadTransport != null">road_transport,</if>
  91 + <if test="drivingLicense != null">driving_license,</if>
  92 + <if test="carFront != null">car_front,</if>
  93 + <if test="carLeft != null">car_left,</if>
  94 + <if test="carBehind != null">car_behind,</if>
  95 + <if test="carRight != null">car_right,</if>
  96 + <if test="drivers != null">drivers,</if>
  97 + <if test="status != null">status,</if>
  98 + <if test="createTime != null">create_time,</if>
  99 + <if test="createBy != null">create_by,</if>
  100 + <if test="updateTime != null">update_time,</if>
  101 + <if test="updateBy != null">update_by,</if>
  102 + </trim>
  103 + <trim prefix="values (" suffix=")" suffixOverrides=",">
  104 + <if test="companyId != null">#{companyId},</if>
  105 + <if test="carType != null">#{carType},</if>
  106 + <if test="carCode != null">#{carCode},</if>
  107 + <if test="carBrank != null">#{carBrank},</if>
  108 + <if test="emissionStandard != null">#{emissionStandard},</if>
  109 + <if test="roadTransportDate != null">#{roadTransportDate},</if>
  110 + <if test="drivingLicenseDate != null">#{drivingLicenseDate},</if>
  111 + <if test="enterDate != null">#{enterDate},</if>
  112 + <if test="farmeNumber != null">#{farmeNumber},</if>
  113 + <if test="carIdentification != null">#{carIdentification},</if>
  114 + <if test="containerVolume != null">#{containerVolume},</if>
  115 + <if test="carColor != null">#{carColor},</if>
  116 + <if test="carEquipment != null">#{carEquipment},</if>
  117 + <if test="remark != null">#{remark},</if>
  118 + <if test="roadTransport != null">#{roadTransport},</if>
  119 + <if test="drivingLicense != null">#{drivingLicense},</if>
  120 + <if test="carFront != null">#{carFront},</if>
  121 + <if test="carLeft != null">#{carLeft},</if>
  122 + <if test="carBehind != null">#{carBehind},</if>
  123 + <if test="carRight != null">#{carRight},</if>
  124 + <if test="drivers != null">#{drivers},</if>
  125 + <if test="status != null">#{status},</if>
  126 + <if test="createTime != null">#{createTime},</if>
  127 + <if test="createBy != null">#{createBy},</if>
  128 + <if test="updateTime != null">#{updateTime},</if>
  129 + <if test="updateBy != null">#{updateBy},</if>
  130 + </trim>
  131 + </insert>
  132 +
  133 + <update id="updateCarInfo" parameterType="CarInfo">
  134 + update car_info
  135 + <trim prefix="SET" suffixOverrides=",">
  136 + <if test="companyId != null">company_id = #{companyId},</if>
  137 + <if test="carType != null">car_type = #{carType},</if>
  138 + <if test="carCode != null">car_code = #{carCode},</if>
  139 + <if test="carBrank != null">car_brank = #{carBrank},</if>
  140 + <if test="emissionStandard != null">emission_standard = #{emissionStandard},</if>
  141 + <if test="roadTransportDate != null">road_transport_date = #{roadTransportDate},</if>
  142 + <if test="drivingLicenseDate != null">driving_license_date = #{drivingLicenseDate},</if>
  143 + <if test="enterDate != null">enter_date = #{enterDate},</if>
  144 + <if test="farmeNumber != null">farme_number = #{farmeNumber},</if>
  145 + <if test="carIdentification != null">car_identification = #{carIdentification},</if>
  146 + <if test="containerVolume != null">container_volume = #{containerVolume},</if>
  147 + <if test="carColor != null">car_color = #{carColor},</if>
  148 + <if test="carEquipment != null">car_equipment = #{carEquipment},</if>
  149 + <if test="remark != null">remark = #{remark},</if>
  150 + <if test="roadTransport != null">road_transport = #{roadTransport},</if>
  151 + <if test="drivingLicense != null">driving_license = #{drivingLicense},</if>
  152 + <if test="carFront != null">car_front = #{carFront},</if>
  153 + <if test="carLeft != null">car_left = #{carLeft},</if>
  154 + <if test="carBehind != null">car_behind = #{carBehind},</if>
  155 + <if test="carRight != null">car_right = #{carRight},</if>
  156 + <if test="drivers != null">drivers = #{drivers},</if>
  157 + <if test="status != null">status = #{status},</if>
  158 + <if test="createTime != null">create_time = #{createTime},</if>
  159 + <if test="createBy != null">create_by = #{createBy},</if>
  160 + <if test="updateTime != null">update_time = #{updateTime},</if>
  161 + <if test="updateBy != null">update_by = #{updateBy},</if>
  162 + </trim>
  163 + where id = #{id}
  164 + </update>
  165 +
  166 + <delete id="deleteCarInfoById" parameterType="Long">
  167 + delete from car_info where id = #{id}
  168 + </delete>
  169 +
  170 + <delete id="deleteCarInfoByIds" parameterType="String">
  171 + delete from car_info where id in
  172 + <foreach item="id" collection="array" open="(" separator="," close=")">
  173 + #{id}
  174 + </foreach>
  175 + </delete>
  176 +
  177 +</mapper>
0 \ No newline at end of file 178 \ No newline at end of file
trash-unit/src/main/resources/mapper/disposalSite/DisposalSiteMapper.xml 0 → 100644
  1 +<?xml version="1.0" encoding="UTF-8" ?>
  2 +<!DOCTYPE mapper
  3 +PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
  4 +"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
  5 +<mapper namespace="com.trash.disposalSite.mapper.DisposalSiteMapper">
  6 +
  7 + <resultMap type="DisposalSite" id="DisposalSiteResult">
  8 + <result property="id" column="id" />
  9 + <result property="name" column="name" />
  10 + <result property="certificateNumber" column="certificate_number" />
  11 + <result property="address" column="address" />
  12 + <result property="engineeringProperty" column="engineering_property" />
  13 + <result property="siteType" column="site_type" />
  14 + <result property="localArea" column="local_area" />
  15 + <result property="operatingArea" column="operating_area" />
  16 + <result property="trashType" column="trash_type" />
  17 + <result property="constructionUnit" column="construction_unit" />
  18 + <result property="constructionUnitPerson" column="construction_unit_person" />
  19 + <result property="constructionUnitPersonPhone" column="construction_unit_person_phone" />
  20 + <result property="validityBeginDate" column="validity_begin_date" />
  21 + <result property="validityEndDate" column="validity_end_date" />
  22 + <result property="squareMeasure" column="square_measure" />
  23 + <result property="carWashingFacilities" column="car_washing_facilities" />
  24 + <result property="exitRoadCondition" column="exit_road_condition" />
  25 + <result property="lightingFacility" column="lighting_facility" />
  26 + <result property="videoSurveillanceFacility" column="video_surveillance_facility" />
  27 + <result property="preparer" column="preparer" />
  28 + <result property="handlingAdvice" column="handling_advice" />
  29 + <result property="electronicFence" column="electronic_fence" />
  30 + <result property="approvalDocument" column="approval_document" />
  31 + <result property="approvalData" column="approval_data" />
  32 + <result property="scenePhoto" column="scene_photo" />
  33 + <result property="carWashingFacilitiesImage" column="car_washing_facilities_image" />
  34 + <result property="safetyAssessmentReport" column="safety_assessment_report" />
  35 + <result property="environmentalApproval" column="environmental_approval" />
  36 + <result property="authorization" column="authorization" />
  37 + <result property="otherInformation" column="other_information" />
  38 + <result property="companyIds" column="company_ids" />
  39 + <result property="status" column="status" />
  40 + <result property="createTime" column="create_time" />
  41 + <result property="createBy" column="create_by" />
  42 + <result property="updateTime" column="update_time" />
  43 + <result property="updateBy" column="update_by" />
  44 + </resultMap>
  45 +
  46 + <sql id="selectDisposalSiteVo">
  47 + select id, name, certificate_number, address, engineering_property, site_type, local_area, operating_area, trash_type, construction_unit, construction_unit_person, construction_unit_person_phone, validity_begin_date, validity_end_date, square_measure, car_washing_facilities, exit_road_condition, lighting_facility, video_surveillance_facility, preparer, handling_advice, electronic_fence, approval_document, approval_data, scene_photo, car_washing_facilities_image, safety_assessment_report, environmental_approval, authorization, other_information, company_ids, status, create_time, create_by, update_time, update_by from disposal_site
  48 + </sql>
  49 +
  50 + <select id="selectDisposalSiteList" parameterType="DisposalSite" resultMap="DisposalSiteResult">
  51 + <include refid="selectDisposalSiteVo"/>
  52 + <where>
  53 + <if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if>
  54 + <if test="certificateNumber != null and certificateNumber != ''"> and certificate_number = #{certificateNumber}</if>
  55 + <if test="address != null and address != ''"> and address = #{address}</if>
  56 + <if test="engineeringProperty != null and engineeringProperty != ''"> and engineering_property = #{engineeringProperty}</if>
  57 + <if test="siteType != null and siteType != ''"> and site_type = #{siteType}</if>
  58 + <if test="localArea != null and localArea != ''"> and local_area = #{localArea}</if>
  59 + <if test="operatingArea != null and operatingArea != ''"> and operating_area = #{operatingArea}</if>
  60 + <if test="trashType != null and trashType != ''"> and trash_type = #{trashType}</if>
  61 + <if test="constructionUnit != null and constructionUnit != ''"> and construction_unit = #{constructionUnit}</if>
  62 + <if test="constructionUnitPerson != null and constructionUnitPerson != ''"> and construction_unit_person = #{constructionUnitPerson}</if>
  63 + <if test="constructionUnitPersonPhone != null and constructionUnitPersonPhone != ''"> and construction_unit_person_phone = #{constructionUnitPersonPhone}</if>
  64 + <if test="validityBeginDate != null "> and validity_begin_date = #{validityBeginDate}</if>
  65 + <if test="validityEndDate != null "> and validity_end_date = #{validityEndDate}</if>
  66 + <if test="squareMeasure != null and squareMeasure != ''"> and square_measure = #{squareMeasure}</if>
  67 + <if test="carWashingFacilities != null and carWashingFacilities != ''"> and car_washing_facilities = #{carWashingFacilities}</if>
  68 + <if test="exitRoadCondition != null and exitRoadCondition != ''"> and exit_road_condition = #{exitRoadCondition}</if>
  69 + <if test="lightingFacility != null and lightingFacility != ''"> and lighting_facility = #{lightingFacility}</if>
  70 + <if test="videoSurveillanceFacility != null and videoSurveillanceFacility != ''"> and video_surveillance_facility = #{videoSurveillanceFacility}</if>
  71 + <if test="preparer != null and preparer != ''"> and preparer = #{preparer}</if>
  72 + <if test="handlingAdvice != null and handlingAdvice != ''"> and handling_advice = #{handlingAdvice}</if>
  73 + <if test="electronicFence != null and electronicFence != ''"> and electronic_fence = #{electronicFence}</if>
  74 + <if test="approvalDocument != null and approvalDocument != ''"> and approval_document = #{approvalDocument}</if>
  75 + <if test="approvalData != null and approvalData != ''"> and approval_data = #{approvalData}</if>
  76 + <if test="scenePhoto != null and scenePhoto != ''"> and scene_photo = #{scenePhoto}</if>
  77 + <if test="carWashingFacilitiesImage != null and carWashingFacilitiesImage != ''"> and car_washing_facilities_image = #{carWashingFacilitiesImage}</if>
  78 + <if test="safetyAssessmentReport != null and safetyAssessmentReport != ''"> and safety_assessment_report = #{safetyAssessmentReport}</if>
  79 + <if test="environmentalApproval != null and environmentalApproval != ''"> and environmental_approval = #{environmentalApproval}</if>
  80 + <if test="authorization != null and authorization != ''"> and authorization = #{authorization}</if>
  81 + <if test="otherInformation != null and otherInformation != ''"> and other_information = #{otherInformation}</if>
  82 + <if test="companyIds != null and companyIds != ''"> and company_ids = #{companyIds}</if>
  83 + <if test="status != null "> and status = #{status}</if>
  84 + </where>
  85 + </select>
  86 +
  87 + <select id="selectDisposalSiteById" parameterType="Long" resultMap="DisposalSiteResult">
  88 + <include refid="selectDisposalSiteVo"/>
  89 + where id = #{id}
  90 + </select>
  91 +
  92 + <insert id="insertDisposalSite" parameterType="DisposalSite" useGeneratedKeys="true" keyProperty="id">
  93 + insert into disposal_site
  94 + <trim prefix="(" suffix=")" suffixOverrides=",">
  95 + <if test="name != null">name,</if>
  96 + <if test="certificateNumber != null">certificate_number,</if>
  97 + <if test="address != null">address,</if>
  98 + <if test="engineeringProperty != null">engineering_property,</if>
  99 + <if test="siteType != null">site_type,</if>
  100 + <if test="localArea != null">local_area,</if>
  101 + <if test="operatingArea != null">operating_area,</if>
  102 + <if test="trashType != null">trash_type,</if>
  103 + <if test="constructionUnit != null">construction_unit,</if>
  104 + <if test="constructionUnitPerson != null">construction_unit_person,</if>
  105 + <if test="constructionUnitPersonPhone != null">construction_unit_person_phone,</if>
  106 + <if test="validityBeginDate != null">validity_begin_date,</if>
  107 + <if test="validityEndDate != null">validity_end_date,</if>
  108 + <if test="squareMeasure != null">square_measure,</if>
  109 + <if test="carWashingFacilities != null">car_washing_facilities,</if>
  110 + <if test="exitRoadCondition != null">exit_road_condition,</if>
  111 + <if test="lightingFacility != null">lighting_facility,</if>
  112 + <if test="videoSurveillanceFacility != null">video_surveillance_facility,</if>
  113 + <if test="preparer != null">preparer,</if>
  114 + <if test="handlingAdvice != null">handling_advice,</if>
  115 + <if test="electronicFence != null">electronic_fence,</if>
  116 + <if test="approvalDocument != null">approval_document,</if>
  117 + <if test="approvalData != null">approval_data,</if>
  118 + <if test="scenePhoto != null">scene_photo,</if>
  119 + <if test="carWashingFacilitiesImage != null">car_washing_facilities_image,</if>
  120 + <if test="safetyAssessmentReport != null">safety_assessment_report,</if>
  121 + <if test="environmentalApproval != null">environmental_approval,</if>
  122 + <if test="authorization != null">authorization,</if>
  123 + <if test="otherInformation != null">other_information,</if>
  124 + <if test="companyIds != null">company_ids,</if>
  125 + <if test="status != null">status,</if>
  126 + <if test="createTime != null">create_time,</if>
  127 + <if test="createBy != null">create_by,</if>
  128 + <if test="updateTime != null">update_time,</if>
  129 + <if test="updateBy != null">update_by,</if>
  130 + </trim>
  131 + <trim prefix="values (" suffix=")" suffixOverrides=",">
  132 + <if test="name != null">#{name},</if>
  133 + <if test="certificateNumber != null">#{certificateNumber},</if>
  134 + <if test="address != null">#{address},</if>
  135 + <if test="engineeringProperty != null">#{engineeringProperty},</if>
  136 + <if test="siteType != null">#{siteType},</if>
  137 + <if test="localArea != null">#{localArea},</if>
  138 + <if test="operatingArea != null">#{operatingArea},</if>
  139 + <if test="trashType != null">#{trashType},</if>
  140 + <if test="constructionUnit != null">#{constructionUnit},</if>
  141 + <if test="constructionUnitPerson != null">#{constructionUnitPerson},</if>
  142 + <if test="constructionUnitPersonPhone != null">#{constructionUnitPersonPhone},</if>
  143 + <if test="validityBeginDate != null">#{validityBeginDate},</if>
  144 + <if test="validityEndDate != null">#{validityEndDate},</if>
  145 + <if test="squareMeasure != null">#{squareMeasure},</if>
  146 + <if test="carWashingFacilities != null">#{carWashingFacilities},</if>
  147 + <if test="exitRoadCondition != null">#{exitRoadCondition},</if>
  148 + <if test="lightingFacility != null">#{lightingFacility},</if>
  149 + <if test="videoSurveillanceFacility != null">#{videoSurveillanceFacility},</if>
  150 + <if test="preparer != null">#{preparer},</if>
  151 + <if test="handlingAdvice != null">#{handlingAdvice},</if>
  152 + <if test="electronicFence != null">#{electronicFence},</if>
  153 + <if test="approvalDocument != null">#{approvalDocument},</if>
  154 + <if test="approvalData != null">#{approvalData},</if>
  155 + <if test="scenePhoto != null">#{scenePhoto},</if>
  156 + <if test="carWashingFacilitiesImage != null">#{carWashingFacilitiesImage},</if>
  157 + <if test="safetyAssessmentReport != null">#{safetyAssessmentReport},</if>
  158 + <if test="environmentalApproval != null">#{environmentalApproval},</if>
  159 + <if test="authorization != null">#{authorization},</if>
  160 + <if test="otherInformation != null">#{otherInformation},</if>
  161 + <if test="companyIds != null">#{companyIds},</if>
  162 + <if test="status != null">#{status},</if>
  163 + <if test="createTime != null">#{createTime},</if>
  164 + <if test="createBy != null">#{createBy},</if>
  165 + <if test="updateTime != null">#{updateTime},</if>
  166 + <if test="updateBy != null">#{updateBy},</if>
  167 + </trim>
  168 + </insert>
  169 +
  170 + <update id="updateDisposalSite" parameterType="DisposalSite">
  171 + update disposal_site
  172 + <trim prefix="SET" suffixOverrides=",">
  173 + <if test="name != null">name = #{name},</if>
  174 + <if test="certificateNumber != null">certificate_number = #{certificateNumber},</if>
  175 + <if test="address != null">address = #{address},</if>
  176 + <if test="engineeringProperty != null">engineering_property = #{engineeringProperty},</if>
  177 + <if test="siteType != null">site_type = #{siteType},</if>
  178 + <if test="localArea != null">local_area = #{localArea},</if>
  179 + <if test="operatingArea != null">operating_area = #{operatingArea},</if>
  180 + <if test="trashType != null">trash_type = #{trashType},</if>
  181 + <if test="constructionUnit != null">construction_unit = #{constructionUnit},</if>
  182 + <if test="constructionUnitPerson != null">construction_unit_person = #{constructionUnitPerson},</if>
  183 + <if test="constructionUnitPersonPhone != null">construction_unit_person_phone = #{constructionUnitPersonPhone},</if>
  184 + <if test="validityBeginDate != null">validity_begin_date = #{validityBeginDate},</if>
  185 + <if test="validityEndDate != null">validity_end_date = #{validityEndDate},</if>
  186 + <if test="squareMeasure != null">square_measure = #{squareMeasure},</if>
  187 + <if test="carWashingFacilities != null">car_washing_facilities = #{carWashingFacilities},</if>
  188 + <if test="exitRoadCondition != null">exit_road_condition = #{exitRoadCondition},</if>
  189 + <if test="lightingFacility != null">lighting_facility = #{lightingFacility},</if>
  190 + <if test="videoSurveillanceFacility != null">video_surveillance_facility = #{videoSurveillanceFacility},</if>
  191 + <if test="preparer != null">preparer = #{preparer},</if>
  192 + <if test="handlingAdvice != null">handling_advice = #{handlingAdvice},</if>
  193 + <if test="electronicFence != null">electronic_fence = #{electronicFence},</if>
  194 + <if test="approvalDocument != null">approval_document = #{approvalDocument},</if>
  195 + <if test="approvalData != null">approval_data = #{approvalData},</if>
  196 + <if test="scenePhoto != null">scene_photo = #{scenePhoto},</if>
  197 + <if test="carWashingFacilitiesImage != null">car_washing_facilities_image = #{carWashingFacilitiesImage},</if>
  198 + <if test="safetyAssessmentReport != null">safety_assessment_report = #{safetyAssessmentReport},</if>
  199 + <if test="environmentalApproval != null">environmental_approval = #{environmentalApproval},</if>
  200 + <if test="authorization != null">authorization = #{authorization},</if>
  201 + <if test="otherInformation != null">other_information = #{otherInformation},</if>
  202 + <if test="companyIds != null">company_ids = #{companyIds},</if>
  203 + <if test="status != null">status = #{status},</if>
  204 + <if test="createTime != null">create_time = #{createTime},</if>
  205 + <if test="createBy != null">create_by = #{createBy},</if>
  206 + <if test="updateTime != null">update_time = #{updateTime},</if>
  207 + <if test="updateBy != null">update_by = #{updateBy},</if>
  208 + </trim>
  209 + where id = #{id}
  210 + </update>
  211 +
  212 + <delete id="deleteDisposalSiteById" parameterType="Long">
  213 + delete from disposal_site where id = #{id}
  214 + </delete>
  215 +
  216 + <delete id="deleteDisposalSiteByIds" parameterType="String">
  217 + delete from disposal_site where id in
  218 + <foreach item="id" collection="array" open="(" separator="," close=")">
  219 + #{id}
  220 + </foreach>
  221 + </delete>
  222 +
  223 +</mapper>
0 \ No newline at end of file 224 \ No newline at end of file
trash-unit/src/main/resources/mapper/driver/DriverMapper.xml 0 → 100644
  1 +<?xml version="1.0" encoding="UTF-8" ?>
  2 +<!DOCTYPE mapper
  3 +PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
  4 +"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
  5 +<mapper namespace="com.trash.driver.mapper.DriverMapper">
  6 +
  7 + <resultMap type="Driver" id="DriverResult">
  8 + <result property="id" column="id" />
  9 + <result property="name" column="name" />
  10 + <result property="identityCard" column="identity_card" />
  11 + <result property="companyId" column="company_id" />
  12 + <result property="professionalQualificationBeginDate" column="professional_qualification_begin_date" />
  13 + <result property="professionalQualificationEndDate" column="professional_qualification_end_date" />
  14 + <result property="drivingLicenceBeginDate" column="driving_licence_begin_date" />
  15 + <result property="drivingLicenceEndDate" column="driving_licence_end_date" />
  16 + <result property="safetyTrainingDate" column="safety_training_date" />
  17 + <result property="safetyTrainingContent" column="safety_training_content" />
  18 + <result property="remark" column="remark" />
  19 + <result property="drivingLicence" column="driving_licence" />
  20 + <result property="professionalQualification" column="professional_qualification" />
  21 + <result property="safetyTraining" column="safety_training" />
  22 + <result property="status" column="status" />
  23 + <result property="createTime" column="create_time" />
  24 + <result property="createBy" column="create_by" />
  25 + <result property="updateTime" column="update_time" />
  26 + <result property="updateBy" column="update_by" />
  27 + </resultMap>
  28 +
  29 + <sql id="selectDriverVo">
  30 + select id, name, identity_card, company_id, professional_qualification_begin_date, professional_qualification_end_date, driving_licence_begin_date, driving_licence_end_date, safety_training_date, safety_training_content, remark, driving_licence, professional_qualification, safety_training, status, create_time, create_by, update_time, update_by from driver
  31 + </sql>
  32 +
  33 + <select id="selectDriverList" parameterType="Driver" resultMap="DriverResult">
  34 + <include refid="selectDriverVo"/>
  35 + <where>
  36 + <if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if>
  37 + <if test="identityCard != null and identityCard != ''"> and identity_card = #{identityCard}</if>
  38 + <if test="companyId != null "> and company_id = #{companyId}</if>
  39 + <if test="professionalQualificationBeginDate != null "> and professional_qualification_begin_date = #{professionalQualificationBeginDate}</if>
  40 + <if test="professionalQualificationEndDate != null "> and professional_qualification_end_date = #{professionalQualificationEndDate}</if>
  41 + <if test="drivingLicenceBeginDate != null "> and driving_licence_begin_date = #{drivingLicenceBeginDate}</if>
  42 + <if test="drivingLicenceEndDate != null "> and driving_licence_end_date = #{drivingLicenceEndDate}</if>
  43 + <if test="safetyTrainingDate != null "> and safety_training_date = #{safetyTrainingDate}</if>
  44 + <if test="safetyTrainingContent != null and safetyTrainingContent != ''"> and safety_training_content = #{safetyTrainingContent}</if>
  45 + <if test="drivingLicence != null and drivingLicence != ''"> and driving_licence = #{drivingLicence}</if>
  46 + <if test="professionalQualification != null and professionalQualification != ''"> and professional_qualification = #{professionalQualification}</if>
  47 + <if test="safetyTraining != null and safetyTraining != ''"> and safety_training = #{safetyTraining}</if>
  48 + <if test="status != null "> and status = #{status}</if>
  49 + </where>
  50 + </select>
  51 +
  52 + <select id="selectDriverById" parameterType="Long" resultMap="DriverResult">
  53 + <include refid="selectDriverVo"/>
  54 + where id = #{id}
  55 + </select>
  56 +
  57 + <insert id="insertDriver" parameterType="Driver" useGeneratedKeys="true" keyProperty="id">
  58 + insert into driver
  59 + <trim prefix="(" suffix=")" suffixOverrides=",">
  60 + <if test="name != null">name,</if>
  61 + <if test="identityCard != null">identity_card,</if>
  62 + <if test="companyId != null">company_id,</if>
  63 + <if test="professionalQualificationBeginDate != null">professional_qualification_begin_date,</if>
  64 + <if test="professionalQualificationEndDate != null">professional_qualification_end_date,</if>
  65 + <if test="drivingLicenceBeginDate != null">driving_licence_begin_date,</if>
  66 + <if test="drivingLicenceEndDate != null">driving_licence_end_date,</if>
  67 + <if test="safetyTrainingDate != null">safety_training_date,</if>
  68 + <if test="safetyTrainingContent != null">safety_training_content,</if>
  69 + <if test="remark != null">remark,</if>
  70 + <if test="drivingLicence != null">driving_licence,</if>
  71 + <if test="professionalQualification != null">professional_qualification,</if>
  72 + <if test="safetyTraining != null">safety_training,</if>
  73 + <if test="status != null">status,</if>
  74 + <if test="createTime != null">create_time,</if>
  75 + <if test="createBy != null">create_by,</if>
  76 + <if test="updateTime != null">update_time,</if>
  77 + <if test="updateBy != null">update_by,</if>
  78 + </trim>
  79 + <trim prefix="values (" suffix=")" suffixOverrides=",">
  80 + <if test="name != null">#{name},</if>
  81 + <if test="identityCard != null">#{identityCard},</if>
  82 + <if test="companyId != null">#{companyId},</if>
  83 + <if test="professionalQualificationBeginDate != null">#{professionalQualificationBeginDate},</if>
  84 + <if test="professionalQualificationEndDate != null">#{professionalQualificationEndDate},</if>
  85 + <if test="drivingLicenceBeginDate != null">#{drivingLicenceBeginDate},</if>
  86 + <if test="drivingLicenceEndDate != null">#{drivingLicenceEndDate},</if>
  87 + <if test="safetyTrainingDate != null">#{safetyTrainingDate},</if>
  88 + <if test="safetyTrainingContent != null">#{safetyTrainingContent},</if>
  89 + <if test="remark != null">#{remark},</if>
  90 + <if test="drivingLicence != null">#{drivingLicence},</if>
  91 + <if test="professionalQualification != null">#{professionalQualification},</if>
  92 + <if test="safetyTraining != null">#{safetyTraining},</if>
  93 + <if test="status != null">#{status},</if>
  94 + <if test="createTime != null">#{createTime},</if>
  95 + <if test="createBy != null">#{createBy},</if>
  96 + <if test="updateTime != null">#{updateTime},</if>
  97 + <if test="updateBy != null">#{updateBy},</if>
  98 + </trim>
  99 + </insert>
  100 +
  101 + <update id="updateDriver" parameterType="Driver">
  102 + update driver
  103 + <trim prefix="SET" suffixOverrides=",">
  104 + <if test="name != null">name = #{name},</if>
  105 + <if test="identityCard != null">identity_card = #{identityCard},</if>
  106 + <if test="companyId != null">company_id = #{companyId},</if>
  107 + <if test="professionalQualificationBeginDate != null">professional_qualification_begin_date = #{professionalQualificationBeginDate},</if>
  108 + <if test="professionalQualificationEndDate != null">professional_qualification_end_date = #{professionalQualificationEndDate},</if>
  109 + <if test="drivingLicenceBeginDate != null">driving_licence_begin_date = #{drivingLicenceBeginDate},</if>
  110 + <if test="drivingLicenceEndDate != null">driving_licence_end_date = #{drivingLicenceEndDate},</if>
  111 + <if test="safetyTrainingDate != null">safety_training_date = #{safetyTrainingDate},</if>
  112 + <if test="safetyTrainingContent != null">safety_training_content = #{safetyTrainingContent},</if>
  113 + <if test="remark != null">remark = #{remark},</if>
  114 + <if test="drivingLicence != null">driving_licence = #{drivingLicence},</if>
  115 + <if test="professionalQualification != null">professional_qualification = #{professionalQualification},</if>
  116 + <if test="safetyTraining != null">safety_training = #{safetyTraining},</if>
  117 + <if test="status != null">status = #{status},</if>
  118 + <if test="createTime != null">create_time = #{createTime},</if>
  119 + <if test="createBy != null">create_by = #{createBy},</if>
  120 + <if test="updateTime != null">update_time = #{updateTime},</if>
  121 + <if test="updateBy != null">update_by = #{updateBy},</if>
  122 + </trim>
  123 + where id = #{id}
  124 + </update>
  125 +
  126 + <delete id="deleteDriverById" parameterType="Long">
  127 + delete from driver where id = #{id}
  128 + </delete>
  129 +
  130 + <delete id="deleteDriverByIds" parameterType="String">
  131 + delete from driver where id in
  132 + <foreach item="id" collection="array" open="(" separator="," close=")">
  133 + #{id}
  134 + </foreach>
  135 + </delete>
  136 +
  137 +</mapper>
0 \ No newline at end of file 138 \ No newline at end of file
trash-unit/src/main/resources/mapper/enterprise/TransportationEnterpriseMapper.xml 0 → 100644
  1 +<?xml version="1.0" encoding="UTF-8" ?>
  2 +<!DOCTYPE mapper
  3 +PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
  4 +"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
  5 +<mapper namespace="com.trash.enterprise.mapper.TransportationEnterpriseMapper">
  6 +
  7 + <resultMap type="TransportationEnterprise" id="TransportationEnterpriseResult">
  8 + <result property="id" column="id" />
  9 + <result property="name" column="name" />
  10 + <result property="abbreviation" column="abbreviation" />
  11 + <result property="registrationArea" column="registration_area" />
  12 + <result property="transportPermissionDate" column="transport_permission_date" />
  13 + <result property="enterDate" column="enter_date" />
  14 + <result property="businessLicenseDate" column="business_license_date" />
  15 + <result property="officeAddress" column="office_address" />
  16 + <result property="parkingLotLocation" column="parking_lot_location" />
  17 + <result property="parkingArea" column="parking_area" />
  18 + <result property="carNumber" column="car_number" />
  19 + <result property="safetyManagerName" column="safety_manager_name" />
  20 + <result property="safetyManagerPhone" column="safety_manager_phone" />
  21 + <result property="socialUniformCreditCodeNumber" column="social_uniform_credit_code_number" />
  22 + <result property="legalRepresentative" column="legal_representative" />
  23 + <result property="legalRepresentativePhone" column="legal_representative_phone" />
  24 + <result property="safetyPeopleName" column="safety_people_name" />
  25 + <result property="remark" column="remark" />
  26 + <result property="transportPermission" column="transport_permission" />
  27 + <result property="enterpriseBusinessLicense" column="enterprise_business_license" />
  28 + <result property="safetyOfficerQualificationCertificate" column="safety_officer_qualification_certificate" />
  29 + <result property="safetyCertificate" column="safety_certificate" />
  30 + <result property="carParkPanorama" column="car_park_panorama" />
  31 + <result property="businessUnit" column="business_unit" />
  32 + <result property="status" column="status" />
  33 + <result property="createTime" column="create_time" />
  34 + <result property="createBy" column="create_by" />
  35 + <result property="updateTime" column="update_time" />
  36 + <result property="updateBy" column="update_by" />
  37 + <result property="parentId" column="parent_id" />
  38 + <result property="companyType" column="company_type" />
  39 + </resultMap>
  40 +
  41 + <sql id="selectTransportationEnterpriseVo">
  42 + select id, name, abbreviation, registration_area, transport_permission_date, enter_date, business_license_date, office_address, parking_lot_location, parking_area, car_number, safety_manager_name, safety_manager_phone, social_uniform_credit_code_number, legal_representative, legal_representative_phone, safety_people_name, remark, transport_permission, enterprise_business_license, safety_officer_qualification_certificate, safety_certificate, car_park_panorama, business_unit, status, create_time, create_by, update_time, update_by, parent_id, company_type from transportation_enterprise
  43 + </sql>
  44 +
  45 + <select id="selectTransportationEnterpriseList" parameterType="TransportationEnterprise" resultMap="TransportationEnterpriseResult">
  46 + <include refid="selectTransportationEnterpriseVo"/>
  47 + <where>
  48 + <if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if>
  49 + <if test="abbreviation != null and abbreviation != ''"> and abbreviation = #{abbreviation}</if>
  50 + <if test="registrationArea != null and registrationArea != ''"> and registration_area = #{registrationArea}</if>
  51 + <if test="transportPermissionDate != null "> and transport_permission_date = #{transportPermissionDate}</if>
  52 + <if test="enterDate != null "> and enter_date = #{enterDate}</if>
  53 + <if test="businessLicenseDate != null "> and business_license_date = #{businessLicenseDate}</if>
  54 + <if test="officeAddress != null and officeAddress != ''"> and office_address = #{officeAddress}</if>
  55 + <if test="parkingLotLocation != null and parkingLotLocation != ''"> and parking_lot_location = #{parkingLotLocation}</if>
  56 + <if test="parkingArea != null "> and parking_area = #{parkingArea}</if>
  57 + <if test="carNumber != null "> and car_number = #{carNumber}</if>
  58 + <if test="safetyManagerName != null and safetyManagerName != ''"> and safety_manager_name like concat('%', #{safetyManagerName}, '%')</if>
  59 + <if test="safetyManagerPhone != null and safetyManagerPhone != ''"> and safety_manager_phone = #{safetyManagerPhone}</if>
  60 + <if test="socialUniformCreditCodeNumber != null and socialUniformCreditCodeNumber != ''"> and social_uniform_credit_code_number = #{socialUniformCreditCodeNumber}</if>
  61 + <if test="legalRepresentative != null and legalRepresentative != ''"> and legal_representative = #{legalRepresentative}</if>
  62 + <if test="legalRepresentativePhone != null and legalRepresentativePhone != ''"> and legal_representative_phone = #{legalRepresentativePhone}</if>
  63 + <if test="safetyPeopleName != null and safetyPeopleName != ''"> and safety_people_name like concat('%', #{safetyPeopleName}, '%')</if>
  64 + <if test="transportPermission != null and transportPermission != ''"> and transport_permission = #{transportPermission}</if>
  65 + <if test="enterpriseBusinessLicense != null and enterpriseBusinessLicense != ''"> and enterprise_business_license = #{enterpriseBusinessLicense}</if>
  66 + <if test="safetyOfficerQualificationCertificate != null and safetyOfficerQualificationCertificate != ''"> and safety_officer_qualification_certificate = #{safetyOfficerQualificationCertificate}</if>
  67 + <if test="safetyCertificate != null and safetyCertificate != ''"> and safety_certificate = #{safetyCertificate}</if>
  68 + <if test="carParkPanorama != null and carParkPanorama != ''"> and car_park_panorama = #{carParkPanorama}</if>
  69 + <if test="businessUnit != null and businessUnit != ''"> and business_unit = #{businessUnit}</if>
  70 + <if test="status != null "> and status = #{status}</if>
  71 + <if test="parentId != null "> and parent_id = #{parentId}</if>
  72 + <if test="companyType != null "> and company_type = #{companyType}</if>
  73 + </where>
  74 + </select>
  75 +
  76 + <select id="selectTransportationEnterpriseById" parameterType="Long" resultMap="TransportationEnterpriseResult">
  77 + <include refid="selectTransportationEnterpriseVo"/>
  78 + where id = #{id}
  79 + </select>
  80 +
  81 + <insert id="insertTransportationEnterprise" parameterType="TransportationEnterprise" useGeneratedKeys="true" keyProperty="id">
  82 + insert into transportation_enterprise
  83 + <trim prefix="(" suffix=")" suffixOverrides=",">
  84 + <if test="name != null">name,</if>
  85 + <if test="abbreviation != null">abbreviation,</if>
  86 + <if test="registrationArea != null">registration_area,</if>
  87 + <if test="transportPermissionDate != null">transport_permission_date,</if>
  88 + <if test="enterDate != null">enter_date,</if>
  89 + <if test="businessLicenseDate != null">business_license_date,</if>
  90 + <if test="officeAddress != null">office_address,</if>
  91 + <if test="parkingLotLocation != null">parking_lot_location,</if>
  92 + <if test="parkingArea != null">parking_area,</if>
  93 + <if test="carNumber != null">car_number,</if>
  94 + <if test="safetyManagerName != null">safety_manager_name,</if>
  95 + <if test="safetyManagerPhone != null">safety_manager_phone,</if>
  96 + <if test="socialUniformCreditCodeNumber != null">social_uniform_credit_code_number,</if>
  97 + <if test="legalRepresentative != null">legal_representative,</if>
  98 + <if test="legalRepresentativePhone != null">legal_representative_phone,</if>
  99 + <if test="safetyPeopleName != null">safety_people_name,</if>
  100 + <if test="remark != null">remark,</if>
  101 + <if test="transportPermission != null">transport_permission,</if>
  102 + <if test="enterpriseBusinessLicense != null">enterprise_business_license,</if>
  103 + <if test="safetyOfficerQualificationCertificate != null">safety_officer_qualification_certificate,</if>
  104 + <if test="safetyCertificate != null">safety_certificate,</if>
  105 + <if test="carParkPanorama != null">car_park_panorama,</if>
  106 + <if test="businessUnit != null">business_unit,</if>
  107 + <if test="status != null">status,</if>
  108 + <if test="createTime != null">create_time,</if>
  109 + <if test="createBy != null">create_by,</if>
  110 + <if test="updateTime != null">update_time,</if>
  111 + <if test="updateBy != null">update_by,</if>
  112 + <if test="parentId != null">parent_id,</if>
  113 + <if test="companyType != null">company_type,</if>
  114 + </trim>
  115 + <trim prefix="values (" suffix=")" suffixOverrides=",">
  116 + <if test="name != null">#{name},</if>
  117 + <if test="abbreviation != null">#{abbreviation},</if>
  118 + <if test="registrationArea != null">#{registrationArea},</if>
  119 + <if test="transportPermissionDate != null">#{transportPermissionDate},</if>
  120 + <if test="enterDate != null">#{enterDate},</if>
  121 + <if test="businessLicenseDate != null">#{businessLicenseDate},</if>
  122 + <if test="officeAddress != null">#{officeAddress},</if>
  123 + <if test="parkingLotLocation != null">#{parkingLotLocation},</if>
  124 + <if test="parkingArea != null">#{parkingArea},</if>
  125 + <if test="carNumber != null">#{carNumber},</if>
  126 + <if test="safetyManagerName != null">#{safetyManagerName},</if>
  127 + <if test="safetyManagerPhone != null">#{safetyManagerPhone},</if>
  128 + <if test="socialUniformCreditCodeNumber != null">#{socialUniformCreditCodeNumber},</if>
  129 + <if test="legalRepresentative != null">#{legalRepresentative},</if>
  130 + <if test="legalRepresentativePhone != null">#{legalRepresentativePhone},</if>
  131 + <if test="safetyPeopleName != null">#{safetyPeopleName},</if>
  132 + <if test="remark != null">#{remark},</if>
  133 + <if test="transportPermission != null">#{transportPermission},</if>
  134 + <if test="enterpriseBusinessLicense != null">#{enterpriseBusinessLicense},</if>
  135 + <if test="safetyOfficerQualificationCertificate != null">#{safetyOfficerQualificationCertificate},</if>
  136 + <if test="safetyCertificate != null">#{safetyCertificate},</if>
  137 + <if test="carParkPanorama != null">#{carParkPanorama},</if>
  138 + <if test="businessUnit != null">#{businessUnit},</if>
  139 + <if test="status != null">#{status},</if>
  140 + <if test="createTime != null">#{createTime},</if>
  141 + <if test="createBy != null">#{createBy},</if>
  142 + <if test="updateTime != null">#{updateTime},</if>
  143 + <if test="updateBy != null">#{updateBy},</if>
  144 + <if test="parentId != null">#{parentId},</if>
  145 + <if test="companyType != null">#{companyType},</if>
  146 + </trim>
  147 + </insert>
  148 +
  149 + <update id="updateTransportationEnterprise" parameterType="TransportationEnterprise">
  150 + update transportation_enterprise
  151 + <trim prefix="SET" suffixOverrides=",">
  152 + <if test="name != null">name = #{name},</if>
  153 + <if test="abbreviation != null">abbreviation = #{abbreviation},</if>
  154 + <if test="registrationArea != null">registration_area = #{registrationArea},</if>
  155 + <if test="transportPermissionDate != null">transport_permission_date = #{transportPermissionDate},</if>
  156 + <if test="enterDate != null">enter_date = #{enterDate},</if>
  157 + <if test="businessLicenseDate != null">business_license_date = #{businessLicenseDate},</if>
  158 + <if test="officeAddress != null">office_address = #{officeAddress},</if>
  159 + <if test="parkingLotLocation != null">parking_lot_location = #{parkingLotLocation},</if>
  160 + <if test="parkingArea != null">parking_area = #{parkingArea},</if>
  161 + <if test="carNumber != null">car_number = #{carNumber},</if>
  162 + <if test="safetyManagerName != null">safety_manager_name = #{safetyManagerName},</if>
  163 + <if test="safetyManagerPhone != null">safety_manager_phone = #{safetyManagerPhone},</if>
  164 + <if test="socialUniformCreditCodeNumber != null">social_uniform_credit_code_number = #{socialUniformCreditCodeNumber},</if>
  165 + <if test="legalRepresentative != null">legal_representative = #{legalRepresentative},</if>
  166 + <if test="legalRepresentativePhone != null">legal_representative_phone = #{legalRepresentativePhone},</if>
  167 + <if test="safetyPeopleName != null">safety_people_name = #{safetyPeopleName},</if>
  168 + <if test="remark != null">remark = #{remark},</if>
  169 + <if test="transportPermission != null">transport_permission = #{transportPermission},</if>
  170 + <if test="enterpriseBusinessLicense != null">enterprise_business_license = #{enterpriseBusinessLicense},</if>
  171 + <if test="safetyOfficerQualificationCertificate != null">safety_officer_qualification_certificate = #{safetyOfficerQualificationCertificate},</if>
  172 + <if test="safetyCertificate != null">safety_certificate = #{safetyCertificate},</if>
  173 + <if test="carParkPanorama != null">car_park_panorama = #{carParkPanorama},</if>
  174 + <if test="businessUnit != null">business_unit = #{businessUnit},</if>
  175 + <if test="status != null">status = #{status},</if>
  176 + <if test="createTime != null">create_time = #{createTime},</if>
  177 + <if test="createBy != null">create_by = #{createBy},</if>
  178 + <if test="updateTime != null">update_time = #{updateTime},</if>
  179 + <if test="updateBy != null">update_by = #{updateBy},</if>
  180 + <if test="parentId != null">parent_id = #{parentId},</if>
  181 + <if test="companyType != null">company_type = #{companyType},</if>
  182 + </trim>
  183 + where id = #{id}
  184 + </update>
  185 +
  186 + <delete id="deleteTransportationEnterpriseById" parameterType="Long">
  187 + delete from transportation_enterprise where id = #{id}
  188 + </delete>
  189 +
  190 + <delete id="deleteTransportationEnterpriseByIds" parameterType="String">
  191 + delete from transportation_enterprise where id in
  192 + <foreach item="id" collection="array" open="(" separator="," close=")">
  193 + #{id}
  194 + </foreach>
  195 + </delete>
  196 +
  197 +</mapper>
0 \ No newline at end of file 198 \ No newline at end of file