Commit 9645a3de3d4339456eac19c05abba30833ec454b

Authored by 2c2c2c
1 parent 25712633

装修垃圾-投放点信息管理

trash-ui/src/api/unit/dropPointInfo.js 0 → 100644
  1 +import request from '@/utils/request'
  2 +
  3 +// 查询投放点信息管理列表
  4 +export function listDropPointInfo(query) {
  5 + return request({
  6 + url: '/unit/dropPointInfo/list',
  7 + method: 'get',
  8 + params: query
  9 + })
  10 +}
  11 +
  12 +// 查询投放点信息管理详细
  13 +export function getDropPointInfo(id) {
  14 + return request({
  15 + url: '/unit/dropPointInfo/' + id,
  16 + method: 'get'
  17 + })
  18 +}
  19 +
  20 +// 新增投放点信息管理
  21 +export function addDropPointInfo(data) {
  22 + return request({
  23 + url: '/unit/dropPointInfo',
  24 + method: 'post',
  25 + data: data
  26 + })
  27 +}
  28 +
  29 +// 修改投放点信息管理
  30 +export function updateDropPointInfo(data) {
  31 + return request({
  32 + url: '/unit/dropPointInfo',
  33 + method: 'put',
  34 + data: data
  35 + })
  36 +}
  37 +
  38 +// 删除投放点信息管理
  39 +export function delDropPointInfo(id) {
  40 + return request({
  41 + url: '/unit/dropPointInfo/' + id,
  42 + method: 'delete'
  43 + })
  44 +}
  45 +
  46 +// 导出投放点信息管理
  47 +export function exportDropPointInfo(query) {
  48 + return request({
  49 + url: '/unit/dropPointInfo/export',
  50 + method: 'get',
  51 + params: query
  52 + })
  53 +}
0 \ No newline at end of file 54 \ No newline at end of file
trash-ui/src/views/unit/dropPointInfo/index.vue 0 → 100644
  1 +<template>
  2 + <div class="app-container">
  3 + <el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="108px">
  4 + <el-form-item label="投放点名称" prop="dropPointName">
  5 + <el-input
  6 + v-model="queryParams.dropPointName"
  7 + placeholder="请输入投放点名称"
  8 + clearable
  9 + size="small"
  10 + @keyup.enter.native="handleQuery"
  11 + />
  12 + </el-form-item>
  13 + <el-form-item label="详细地址" prop="address">
  14 + <el-input
  15 + v-model="queryParams.address"
  16 + placeholder="请输入详细地址"
  17 + clearable
  18 + size="small"
  19 + @keyup.enter.native="handleQuery"
  20 + />
  21 + </el-form-item>
  22 + <el-form-item label="投放点形式" prop="type">
  23 + <el-select v-model="queryParams.type" placeholder="请选择投放点形式" clearable size="small">
  24 + <el-option label="全部" value=""/>
  25 + <el-option label="固定" value="固定"/>
  26 + <el-option label="临时" value="临时"/>
  27 + </el-select>
  28 + </el-form-item>
  29 + <el-form-item>
  30 + <el-button type="cyan" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
  31 + <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
  32 + </el-form-item>
  33 + </el-form>
  34 +
  35 + <el-row :gutter="10" class="mb8">
  36 + <el-col :span="1.5">
  37 + <el-button
  38 + type="primary"
  39 + icon="el-icon-plus"
  40 + size="mini"
  41 + @click="handleAdd"
  42 + v-hasPermi="['unit:dropPointInfo:add']"
  43 + >新增
  44 + </el-button>
  45 + </el-col>
  46 + <el-col :span="1.5">
  47 + <el-button
  48 + type="success"
  49 + icon="el-icon-edit"
  50 + size="mini"
  51 + :disabled="single"
  52 + @click="handleUpdate"
  53 + v-hasPermi="['unit:dropPointInfo:edit']"
  54 + >修改
  55 + </el-button>
  56 + </el-col>
  57 + <el-col :span="1.5">
  58 + <el-button
  59 + type="danger"
  60 + icon="el-icon-delete"
  61 + size="mini"
  62 + :disabled="multiple"
  63 + @click="handleDelete"
  64 + v-hasPermi="['unit:dropPointInfo:remove']"
  65 + >删除
  66 + </el-button>
  67 + </el-col>
  68 + <el-col :span="1.5">
  69 + <el-button
  70 + type="warning"
  71 + icon="el-icon-download"
  72 + size="mini"
  73 + @click="handleExport"
  74 + v-hasPermi="['unit:dropPointInfo:export']"
  75 + >导出
  76 + </el-button>
  77 + </el-col>
  78 + <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
  79 + </el-row>
  80 +
  81 + <el-table v-loading="loading" :data="dropPointInfoList" @selection-change="handleSelectionChange">
  82 + <el-table-column type="selection" width="55" align="center"/>
  83 + <el-table-column label="投放点名称" align="center" prop="dropPointName"/>
  84 + <el-table-column label="所属区域" align="center" prop="district"/>
  85 + <el-table-column label="所属街道" align="center" prop="street"/>
  86 + <el-table-column label="社区" align="center" prop="community"/>
  87 + <el-table-column label="详细地址" align="center" prop="address"/>
  88 + <el-table-column label="投放点形式" align="center" prop="type"/>
  89 + <el-table-column label="投放点面积(m²)" align="center" prop="area"/>
  90 + <el-table-column label="投放点容量(m³)" align="center" prop="capacity"/>
  91 + <el-table-column label="管理单位" align="center" prop="managementUnit"/>
  92 + <el-table-column label="管理人" align="center" prop="custodian"/>
  93 + <el-table-column label="管理员电话" align="center" prop="custodianPhone"/>
  94 + <el-table-column label="投放时间" align="center" prop="dropTime" width="180"/>
  95 + <el-table-column label="投放点编号" align="center" prop="dropPointNo"/>
  96 + <el-table-column label="运营单位" align="center" prop="operatingUnit"/>
  97 + <el-table-column label="运输单位" align="center" prop="transportUnit"/>
  98 + <el-table-column label="创建时间" align="center" prop="createTime" width="180">
  99 + <template slot-scope="scope">
  100 + <span>{{ parseTime(scope.row.createTime, '{y}-{m}-{d} {h}-{i}-{s}') }}</span>
  101 + </template>
  102 + </el-table-column>
  103 + <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
  104 + <template slot-scope="scope">
  105 + <el-button
  106 + size="mini"
  107 + type="text"
  108 + icon="el-icon-edit"
  109 + @click="handleUpdate(scope.row)"
  110 + v-hasPermi="['unit:dropPointInfo:edit']"
  111 + >修改
  112 + </el-button>
  113 + <el-button
  114 + size="mini"
  115 + type="text"
  116 + icon="el-icon-delete"
  117 + @click="handleDelete(scope.row)"
  118 + v-hasPermi="['unit:dropPointInfo:remove']"
  119 + >删除
  120 + </el-button>
  121 + </template>
  122 + </el-table-column>
  123 + </el-table>
  124 +
  125 + <pagination
  126 + v-show="total>0"
  127 + :total="total"
  128 + :page.sync="queryParams.pageNum"
  129 + :limit.sync="queryParams.pageSize"
  130 + @pagination="getList"
  131 + />
  132 +
  133 + <!-- 添加或修改投放点信息管理对话框 -->
  134 + <el-dialog :title="title" :visible.sync="open" width="800px" append-to-body>
  135 + <el-form ref="form" :model="form" :rules="rules" label-width="128px">
  136 + <el-row>
  137 + <el-col :span="12">
  138 + <el-form-item label="投放点编号" prop="dropPointNo">
  139 + <el-input v-model="form.dropPointNo" placeholder="请输入投放点编号" :disabled="true"/>
  140 + </el-form-item>
  141 + </el-col>
  142 + <el-col :span="12">
  143 + <el-form-item label="投放点名称" prop="dropPointName">
  144 + <el-input v-model="form.dropPointName" placeholder="请输入投放点名称"/>
  145 + </el-form-item>
  146 + </el-col>
  147 + </el-row>
  148 + <el-row>
  149 + <el-col :span="12">
  150 + <el-form-item label="所属区域" prop="street">
  151 + <el-select v-model="form.district" placeholder="请输入所属区域" style="width: 100%" clearable @change="getStreets">
  152 + <el-option v-for="(area,index) in areas" :label="area.name" :value="area.name" :key="index"/>
  153 + </el-select>
  154 + </el-form-item>
  155 + </el-col>
  156 + <el-col :span="12">
  157 + <el-form-item label="所属街道" prop="street">
  158 + <el-select v-model="form.street" placeholder="请输入所属街道" style="width: 100%" clearable>
  159 + <el-option v-for="(area,index) in streets" :label="area.name" :value="area.name" :key="area.code" @click.native="createDropPointNo(area)"/>
  160 + </el-select>
  161 + </el-form-item>
  162 +
  163 + </el-col>
  164 + </el-row>
  165 + <el-row>
  166 + <el-col :span="12">
  167 + <el-form-item label="社区" prop="community">
  168 + <el-input v-model="form.community" placeholder="请输入社区"/>
  169 + </el-form-item>
  170 +
  171 + </el-col>
  172 + <el-col :span="12">
  173 + <el-form-item label="详细地址" prop="address">
  174 + <el-input v-model="form.address" placeholder="请输入详细地址"/>
  175 + </el-form-item>
  176 + </el-col>
  177 + </el-row>
  178 + <el-row>
  179 + <el-col :span="12">
  180 + <el-form-item label="投放点形式" prop="type">
  181 + <el-select v-model="form.type" placeholder="请选择投放点形式" style="width: 100%">
  182 + <el-option label="固定" value="固定"/>
  183 + <el-option label="临时" value="临时"/>
  184 + </el-select>
  185 + </el-form-item>
  186 +
  187 + </el-col>
  188 + <el-col :span="12">
  189 + <el-form-item label="投放点面积(m²)" prop="area">
  190 + <el-input v-model="form.area" placeholder="请输入投放点面积"/>
  191 + </el-form-item>
  192 + </el-col>
  193 + </el-row>
  194 + <el-row>
  195 + <el-col :span="12">
  196 + <el-form-item label="投放点容量(m³)" prop="capacity">
  197 + <el-input v-model="form.capacity" placeholder="请输入投放点容量"/>
  198 + </el-form-item>
  199 + </el-col>
  200 + <el-col :span="12">
  201 + <el-form-item label="管理单位" prop="managementUnit">
  202 + <el-input v-model="form.managementUnit" placeholder="请输入管理单位"/>
  203 + </el-form-item>
  204 + </el-col>
  205 + </el-row>
  206 + <el-row>
  207 + <el-col :span="12">
  208 + <el-form-item label="管理人" prop="custodian">
  209 + <el-input v-model="form.custodian" placeholder="请输入管理人"/>
  210 + </el-form-item>
  211 + </el-col>
  212 + <el-col :span="12">
  213 + <el-form-item label="管理员电话" prop="custodianPhone">
  214 + <el-input v-model="form.custodianPhone" placeholder="请输入管理员联系电话" :maxlength="11" show-word-limit/>
  215 + </el-form-item>
  216 + </el-col>
  217 + </el-row>
  218 + <el-row>
  219 + <el-col :span="12">
  220 + <el-form-item label="投放时间" prop="dropTime">
  221 + <el-time-select
  222 + v-model="form.dropTime"
  223 + style="width: 100%"
  224 + :picker-options="{
  225 + start: '00:00',
  226 + step: '00:30',
  227 + end: '23:30'
  228 + }"
  229 + placeholder="选择时间">
  230 + </el-time-select>
  231 + </el-form-item>
  232 + </el-col>
  233 + <el-col :span="12">
  234 + <el-form-item label="运营单位" prop="operatingUnit">
  235 + <el-input v-model="form.operatingUnit" placeholder="请输入运营单位"/>
  236 + </el-form-item>
  237 + </el-col>
  238 + </el-row>
  239 + <el-row>
  240 + <el-col :span="12">
  241 + <el-form-item label="运输单位" prop="transportUnit">
  242 + <el-input v-model="form.transportUnit" placeholder="请输入运输单位"/>
  243 + </el-form-item>
  244 + </el-col>
  245 + </el-row>
  246 + </el-form>
  247 + <div slot="footer" class="dialog-footer">
  248 + <el-button type="primary" @click="submitForm">确 定</el-button>
  249 + <el-button @click="cancel">取 消</el-button>
  250 + </div>
  251 + </el-dialog>
  252 + </div>
  253 +</template>
  254 +
  255 +<script>
  256 +import {
  257 + listDropPointInfo,
  258 + getDropPointInfo,
  259 + delDropPointInfo,
  260 + addDropPointInfo,
  261 + updateDropPointInfo,
  262 + exportDropPointInfo
  263 +} from "@/api/unit/dropPointInfo";
  264 +import {getAreaList} from "@/api/casefile/remoteServer";
  265 +
  266 +export default {
  267 + name: "DropPointInfo",
  268 + data() {
  269 + return {
  270 + // 遮罩层
  271 + loading: true,
  272 + // 选中数组
  273 + ids: [],
  274 + // 非单个禁用
  275 + single: true,
  276 + // 非多个禁用
  277 + multiple: true,
  278 + // 显示搜索条件
  279 + showSearch: true,
  280 + // 总条数
  281 + total: 0,
  282 + // 投放点信息管理表格数据
  283 + dropPointInfoList: [],
  284 + // 弹出层标题
  285 + title: "",
  286 + // 是否显示弹出层
  287 + open: false,
  288 + // 查询参数
  289 + queryParams: {
  290 + pageNum: 1,
  291 + pageSize: 10,
  292 + dropPointName: null,
  293 + address: null,
  294 + type: null,
  295 + },
  296 + // 表单参数
  297 + form: {},
  298 + // 表单校验
  299 + rules: {
  300 + dropPointName: [
  301 + {required: true, message: "请输入投放点名称", trigger: "blur"}
  302 + ],
  303 + district: [
  304 + {required: true, message: "请输入所属区域", trigger: "blur"}
  305 + ],
  306 + street: [
  307 + {required: true, message: "请输入所属街道", trigger: "blur"}
  308 + ],
  309 + community: [
  310 + {required: true, message: "请输入社区", trigger: "blur"}
  311 + ],
  312 + address: [
  313 + {required: true, message: "请输入详细地址", trigger: "blur"}
  314 + ],
  315 + type: [
  316 + {required: true, message: "请选择投放点形式", trigger: "change"}
  317 + ],
  318 + area: [
  319 + {required: true, message: "请输入投放点面积", trigger: "blur"},
  320 + //只能填写数字、小数
  321 + {pattern: /^[0-9]+(\.[0-9]{1,2})?$/, message: "只能填写数字、小数,限制两位小数", trigger: "blur"}
  322 + ],
  323 + capacity: [
  324 + {required: true, message: "请输入投放点容量", trigger: "blur"},
  325 + //只能填写数字
  326 + {pattern: /^[0-9]+(\.[0-9]{1,2})?$/, message: "只能填写数字、小数,限制两位小数", trigger: "blur"}
  327 + ],
  328 + managementUnit: [
  329 + {required: true, message: "请输入管理单位", trigger: "blur"}
  330 + ],
  331 + custodian: [
  332 + {required: true, message: "请输入管理人", trigger: "blur"}
  333 + ],
  334 + custodianPhone: [
  335 + {required: true, message: "请输入管理员电话", trigger: "blur"},
  336 + {
  337 + pattern: /^1(3|4|5|7|8|9)\d{9}$/,
  338 + message: '手机号格式错误',
  339 + trigger: 'change'
  340 + }
  341 + ],
  342 + dropTime: [
  343 + {required: true, message: "请选择投放时间", trigger: "change"}
  344 + ],
  345 + operatingUnit: [
  346 + {required: true, message: "请输入运营单位", trigger: "blur"}
  347 + ],
  348 + transportUnit: [
  349 + {required: true, message: "请输入运输单位", trigger: "blur"}
  350 + ]
  351 + },
  352 + areas: [
  353 + {
  354 + name: "芙蓉区",
  355 + streets: [
  356 + {code: "F01", name: "湘湖"},
  357 + {code: "F02", name: "定王台街道"},
  358 + {code: "F03", name: "韭菜园街道"},
  359 + {code: "F04", name: "文艺路街道"},
  360 + {code: "F05", name: "朝阳街道"},
  361 + {code: "F06", name: "五里牌街道"},
  362 + {code: "F07", name: "马王堆街道"},
  363 + {code: "F08", name: "荷花园街道"},
  364 + {code: "F09", name: "东屯渡街道"},
  365 + {code: "F10", name: "火星街道"},
  366 + {code: "F11", name: "东岸街道"},
  367 + {code: "F12", name: "马坡岭街道"},
  368 + {code: "F13", name: "东湖街道"}
  369 + ]
  370 + },
  371 + {
  372 + name: "天心区",
  373 + streets: [
  374 + {code: "T01", name: "坡子街街道"},
  375 + {code: "T02", name: "城南路街道"},
  376 + {code: "T03", name: "裕南街街道"},
  377 + {code: "T04", name: "赤岭路街道"},
  378 + {code: "T05", name: "金盆岭街道"},
  379 + {code: "T06", name: "新开铺街道"},
  380 + {code: "T07", name: "文源街道"},
  381 + {code: "T08", name: "桂花坪街道"},
  382 + {code: "T09", name: "青园街道"},
  383 + {code: "T10", name: "黑石铺街道"},
  384 + {code: "T11", name: "大托铺街道"},
  385 + {code: "T12", name: "先锋街道"},
  386 + {code: "T13", name: "南托街道"},
  387 + {code: "T14", name: "暮云街道"}
  388 + ]
  389 + },
  390 + {
  391 + name: "开福区",
  392 + streets: [
  393 + {code: "K01", name: "望麓园街道"},
  394 + {code: "K02", name: "清水塘街道"},
  395 + {code: "K03", name: "湘雅路街道"},
  396 + {code: "K04", name: "伍家岭街道"},
  397 + {code: "K05", name: "新河街道"},
  398 + {code: "K06", name: "东风路街道"},
  399 + {code: "K07", name: "通泰街街道"},
  400 + {code: "K08", name: "四方坪街道"},
  401 + {code: "K09", name: "芙蓉北路街道"},
  402 + {code: "K10", name: "洪山街道"},
  403 + {code: "K11", name: "月湖街道"},
  404 + {code: "K12", name: "浏阳河街道"},
  405 + {code: "K13", name: "秀峰街道"},
  406 + {code: "K14", name: "捞刀河街道"},
  407 + {code: "K15", name: "沙坪街道"},
  408 + {code: "K16", name: "青竹湖街道"}
  409 + ]
  410 + },
  411 + {
  412 + name: "雨花区",
  413 + streets: [
  414 + {code: "Y01", name: "雨花亭街道"},
  415 + {code: "Y02", name: "高桥街道"},
  416 + {code: "Y03", name: "左家塘街道"},
  417 + {code: "Y04", name: "侯家塘街道"},
  418 + {code: "Y05", name: "砂子塘街道"},
  419 + {code: "Y06", name: "东塘街道"},
  420 + {code: "Y07", name: "圭塘街道"},
  421 + {code: "Y08", name: "黎托街道"},
  422 + {code: "Y09", name: "洞井街道"},
  423 + {code: "Y10", name: "井湾子街道"},
  424 + {code: "Y11", name: "东山街道"},
  425 + {code: "Y12", name: "同升街道"},
  426 + {code: "Y13", name: "跳马镇"}
  427 + ]
  428 + },
  429 + {
  430 + name: "长沙县",
  431 + streets: [
  432 + {code: "C01", name: "星沙街道"},
  433 + {code: "C02", name: "湘龙街道"},
  434 + {code: "C03", name: "泉塘街道"},
  435 + {code: "C04", name: "榔梨街道"}
  436 + ]
  437 + },
  438 + {
  439 + name: "望城",
  440 + streets: [
  441 + {code: "W01", name: "丁字湾街道"},
  442 + {code: "W02", name: "书堂山街道"},
  443 + {code: "W03", name: "高塘岭街道"},
  444 + {code: "W04", name: "喻家坡街道"},
  445 + {code: "W05", name: "白沙洲街道"},
  446 + {code: "W06", name: "大泽湖街道"},
  447 + {code: "W07", name: "月亮岛街道"},
  448 + {code: "W08", name: "廖家坪街道"}
  449 + ]
  450 + },
  451 + {
  452 + name: "浏阳",
  453 + streets: [
  454 + {code: "L01", name: "淮川街道"},
  455 + {code: "L02", name: "集里街道"},
  456 + {code: "L03", name: "荷花街道"},
  457 + {code: "L04", name: "关口街道"}
  458 + ]
  459 + },
  460 + {
  461 + name: "宁乡",
  462 + streets: [
  463 + {code: "N01", name: "玉潭街道"},
  464 + {code: "N02", name: "城郊街道"},
  465 + {code: "N03", name: "历经铺街道"},
  466 + {code: "N04", name: "白马桥街道"},
  467 + {code: "N05", name: "煤炭坝镇"},
  468 + {code: "N06", name: "双凫铺镇"},
  469 + {code: "N07", name: "双江口镇"},
  470 + {code: "N08", name: "回龙铺镇"},
  471 + {code: "N09", name: "夏铎铺镇"},
  472 + {code: "N10", name: "历经铺镇"}
  473 + ]
  474 + },
  475 + {
  476 + name: "湘江新区",
  477 + streets: [
  478 + {code: "X01", name: "岳麓街道"},
  479 + {code: "X02", name: "桔子洲街道"},
  480 + {code: "X03", name: "望月湖街道"},
  481 + {code: "X04", name: "银盆岭街道"},
  482 + {code: "X05", name: "观沙岭街道"},
  483 + {code: "X06", name: "西湖街道"},
  484 + {code: "X07", name: "望城坡街道"},
  485 + {code: "X08", name: "望岳街道"},
  486 + {code: "X09", name: "咸嘉湖街道"},
  487 + {code: "X10", name: "梅溪湖街道"},
  488 + {code: "X11", name: "天顶街道"},
  489 + {code: "X12", name: "坪塘街道"},
  490 + {code: "X13", name: "洋湖街道"},
  491 + {code: "X14", name: "含浦街道"},
  492 + {code: "X15", name: "学士街道"},
  493 + {code: "X16", name: "莲花镇"},
  494 + {code: "X17", name: "雨敞坪镇"},
  495 + {code: "X18", name: "麓谷街道"},
  496 + {code: "X19", name: "东方红街道"},
  497 + {code: "X20", name: "白马街道"},
  498 + {code: "X21", name: "雷锋街道"},
  499 + {code: "X22", name: "黄金园街道"},
  500 + {code: "X23", name: "金山桥街道"},
  501 + {code: "X24", name: "白箬铺镇"}
  502 + ]
  503 + }
  504 + ],
  505 + streets:[]
  506 + };
  507 + },
  508 + created() {
  509 + this.getList();
  510 + },
  511 + methods: {
  512 + createDropPointNo(area){
  513 + listDropPointInfo({dropPointNo: area.code}).then(response => {
  514 + const total = response.total+1;
  515 + this.form.dropPointNo = area.code+total.toString().padStart(3, '0');
  516 + });
  517 + },
  518 + getStreets(regionName) {
  519 + this.streets = [];
  520 + this.form.dropPointNo = null;
  521 + this.form.street = null;
  522 + const region = this.areas.find(region => region.name === regionName);
  523 + this.streets = region.streets;
  524 + },
  525 + /** 下载文件 */
  526 + /** 查询投放点信息管理列表 */
  527 + getList() {
  528 + this.loading = true;
  529 + listDropPointInfo(this.queryParams).then(response => {
  530 + this.dropPointInfoList = response.rows;
  531 + this.total = response.total;
  532 + this.loading = false;
  533 + });
  534 + },
  535 + // 取消按钮
  536 + cancel() {
  537 + this.open = false;
  538 + this.reset();
  539 + },
  540 + // 表单重置
  541 + reset() {
  542 + this.form = {
  543 + id: null,
  544 + dropPointName: null,
  545 + district: null,
  546 + street: null,
  547 + community: null,
  548 + address: null,
  549 + type: null,
  550 + area: null,
  551 + capacity: null,
  552 + managementUnit: null,
  553 + custodian: null,
  554 + custodianPhone: null,
  555 + dropTime: null,
  556 + dropPointNo: null,
  557 + operatingUnit: null,
  558 + transportUnit: null,
  559 + createTime: null,
  560 + createBy: null,
  561 + updateTime: null,
  562 + updateBy: null
  563 + };
  564 + this.resetForm("form");
  565 + },
  566 + /** 搜索按钮操作 */
  567 + handleQuery() {
  568 + this.queryParams.pageNum = 1;
  569 + this.getList();
  570 + },
  571 + /** 重置按钮操作 */
  572 + resetQuery() {
  573 + this.resetForm("queryForm");
  574 + this.handleQuery();
  575 + },
  576 + // 多选框选中数据
  577 + handleSelectionChange(selection) {
  578 + this.ids = selection.map(item => item.id)
  579 + this.single = selection.length !== 1
  580 + this.multiple = !selection.length
  581 + },
  582 + /** 新增按钮操作 */
  583 + handleAdd() {
  584 + this.reset();
  585 + this.open = true;
  586 + this.title = "添加投放点信息管理";
  587 + },
  588 + /** 修改按钮操作 */
  589 + handleUpdate(row) {
  590 + this.reset();
  591 + const id = row.id || this.ids
  592 + getDropPointInfo(id).then(response => {
  593 + this.form = response.data;
  594 + this.open = true;
  595 + this.title = "修改投放点信息管理";
  596 + });
  597 + },
  598 + /** 提交按钮 */
  599 + submitForm() {
  600 + this.$refs["form"].validate(valid => {
  601 + if (valid) {
  602 + if (this.form.id != null) {
  603 + updateDropPointInfo(this.form).then(response => {
  604 + this.msgSuccess("修改成功");
  605 + this.open = false;
  606 + this.getList();
  607 + });
  608 + } else {
  609 + addDropPointInfo(this.form).then(response => {
  610 + this.msgSuccess("新增成功");
  611 + this.open = false;
  612 + this.getList();
  613 + });
  614 + }
  615 + }
  616 + });
  617 + },
  618 + /** 删除按钮操作 */
  619 + handleDelete(row) {
  620 + const ids = row.id || this.ids;
  621 + this.$confirm('是否确认删除投放点信息管理编号为"' + ids + '"的数据项?', "警告", {
  622 + confirmButtonText: "确定",
  623 + cancelButtonText: "取消",
  624 + type: "warning"
  625 + }).then(function () {
  626 + return delDropPointInfo(ids);
  627 + }).then(() => {
  628 + this.getList();
  629 + this.msgSuccess("删除成功");
  630 + })
  631 + },
  632 + /** 导出按钮操作 */
  633 + handleExport() {
  634 + const queryParams = this.queryParams;
  635 + this.$confirm('是否确认导出所有投放点信息管理数据项?', "警告", {
  636 + confirmButtonText: "确定",
  637 + cancelButtonText: "取消",
  638 + type: "warning"
  639 + }).then(function () {
  640 + return exportDropPointInfo(queryParams);
  641 + }).then(response => {
  642 + this.download(response.msg);
  643 + })
  644 + }
  645 + }
  646 +};
  647 +</script>
trash-unit/src/main/java/com/trash/dropPointInfo/controller/DropPointInfoController.java 0 → 100644
  1 +package com.trash.dropPointInfo.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.dropPointInfo.domain.DropPointInfo;
  19 +import com.trash.dropPointInfo.service.IDropPointInfoService;
  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 2024-11-14
  28 + */
  29 +@RestController
  30 +@RequestMapping("/unit/dropPointInfo")
  31 +public class DropPointInfoController extends BaseController
  32 +{
  33 + @Autowired
  34 + private IDropPointInfoService dropPointInfoService;
  35 +
  36 + /**
  37 + * 查询投放点信息管理列表
  38 + */
  39 + @PreAuthorize("@ss.hasPermi('unit:dropPointInfo:list')")
  40 + @GetMapping("/list")
  41 + public TableDataInfo list(DropPointInfo dropPointInfo)
  42 + {
  43 + startPage();
  44 + List<DropPointInfo> list = dropPointInfoService.selectDropPointInfoList(dropPointInfo);
  45 + return getDataTable(list);
  46 + }
  47 +
  48 + /**
  49 + * 导出投放点信息管理列表
  50 + */
  51 + @PreAuthorize("@ss.hasPermi('unit:dropPointInfo:export')")
  52 + @Log(title = "投放点信息管理", businessType = BusinessType.EXPORT)
  53 + @GetMapping("/export")
  54 + public AjaxResult export(DropPointInfo dropPointInfo)
  55 + {
  56 + List<DropPointInfo> list = dropPointInfoService.selectDropPointInfoList(dropPointInfo);
  57 + ExcelUtil<DropPointInfo> util = new ExcelUtil<DropPointInfo>(DropPointInfo.class);
  58 + return util.exportExcel(list, "投放点信息管理");
  59 + }
  60 +
  61 + /**
  62 + * 获取投放点信息管理详细信息
  63 + */
  64 + @PreAuthorize("@ss.hasPermi('unit:dropPointInfo:query')")
  65 + @GetMapping(value = "/{id}")
  66 + public AjaxResult getInfo(@PathVariable("id") Long id)
  67 + {
  68 + return AjaxResult.success(dropPointInfoService.selectDropPointInfoById(id));
  69 + }
  70 +
  71 + /**
  72 + * 新增投放点信息管理
  73 + */
  74 + @PreAuthorize("@ss.hasPermi('unit:dropPointInfo:add')")
  75 + @Log(title = "投放点信息管理", businessType = BusinessType.INSERT)
  76 + @PostMapping
  77 + public AjaxResult add(@RequestBody DropPointInfo dropPointInfo)
  78 + {
  79 + return toAjax(dropPointInfoService.insertDropPointInfo(dropPointInfo));
  80 + }
  81 +
  82 + /**
  83 + * 修改投放点信息管理
  84 + */
  85 + @PreAuthorize("@ss.hasPermi('unit:dropPointInfo:edit')")
  86 + @Log(title = "投放点信息管理", businessType = BusinessType.UPDATE)
  87 + @PutMapping
  88 + public AjaxResult edit(@RequestBody DropPointInfo dropPointInfo)
  89 + {
  90 + return toAjax(dropPointInfoService.updateDropPointInfo(dropPointInfo));
  91 + }
  92 +
  93 + /**
  94 + * 删除投放点信息管理
  95 + */
  96 + @PreAuthorize("@ss.hasPermi('unit:dropPointInfo:remove')")
  97 + @Log(title = "投放点信息管理", businessType = BusinessType.DELETE)
  98 + @DeleteMapping("/{ids}")
  99 + public AjaxResult remove(@PathVariable Long[] ids)
  100 + {
  101 + return toAjax(dropPointInfoService.deleteDropPointInfoByIds(ids));
  102 + }
  103 +}
trash-unit/src/main/java/com/trash/dropPointInfo/domain/DropPointInfo.java 0 → 100644
  1 +package com.trash.dropPointInfo.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 + * 投放点信息管理对象 drop_point_info
  13 + *
  14 + * @author trash
  15 + * @date 2024-11-14
  16 + */
  17 +public class DropPointInfo extends BaseEntity
  18 +{
  19 + private static final long serialVersionUID = 1L;
  20 +
  21 + /** 主键 id */
  22 + private Long id;
  23 +
  24 + /** 投放点名称 */
  25 + @Excel(name = "投放点名称")
  26 + private String dropPointName;
  27 +
  28 + /** 所属区域 */
  29 + @Excel(name = "所属区域")
  30 + private String district;
  31 +
  32 + /** 所属街道 */
  33 + @Excel(name = "所属街道")
  34 + private String street;
  35 +
  36 + /** 社区 */
  37 + @Excel(name = "社区")
  38 + private String community;
  39 +
  40 + /** 详细地址 */
  41 + @Excel(name = "详细地址")
  42 + private String address;
  43 +
  44 + /** 投放点形式(固定、临时) */
  45 + @Excel(name = "投放点形式")
  46 + private String type;
  47 +
  48 + /** 投放点面积 */
  49 + @Excel(name = "投放点面积")
  50 + private BigDecimal area;
  51 +
  52 + /** 投放点容量 */
  53 + @Excel(name = "投放点容量")
  54 + private BigDecimal capacity;
  55 +
  56 + /** 管理单位 */
  57 + @Excel(name = "管理单位")
  58 + private String managementUnit;
  59 +
  60 + /** 管理人 */
  61 + @Excel(name = "管理人")
  62 + private String custodian;
  63 +
  64 + /** 管理员电话 */
  65 + @Excel(name = "管理员电话")
  66 + private String custodianPhone;
  67 +
  68 + /** 投放时间 */
  69 + @Excel(name = "投放时间")
  70 + private String dropTime;
  71 +
  72 + /** 投放点编号 */
  73 + @Excel(name = "投放点编号")
  74 + private String dropPointNo;
  75 +
  76 + /** 运营单位 */
  77 + @Excel(name = "运营单位")
  78 + private String operatingUnit;
  79 +
  80 + /** 运输单位 */
  81 + @Excel(name = "运输单位")
  82 + private String transportUnit;
  83 +
  84 + @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  85 + @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
  86 + private Date createTime;
  87 +
  88 + @Override
  89 + public Date getCreateTime() {
  90 + return createTime;
  91 + }
  92 +
  93 + @Override
  94 + public void setCreateTime(Date createTime) {
  95 + this.createTime = createTime;
  96 + }
  97 +
  98 + public void setId(Long id)
  99 + {
  100 + this.id = id;
  101 + }
  102 +
  103 + public Long getId()
  104 + {
  105 + return id;
  106 + }
  107 + public void setDropPointName(String dropPointName)
  108 + {
  109 + this.dropPointName = dropPointName;
  110 + }
  111 +
  112 + public String getDropPointName()
  113 + {
  114 + return dropPointName;
  115 + }
  116 + public void setDistrict(String district)
  117 + {
  118 + this.district = district;
  119 + }
  120 +
  121 + public String getDistrict()
  122 + {
  123 + return district;
  124 + }
  125 + public void setStreet(String street)
  126 + {
  127 + this.street = street;
  128 + }
  129 +
  130 + public String getStreet()
  131 + {
  132 + return street;
  133 + }
  134 + public void setCommunity(String community)
  135 + {
  136 + this.community = community;
  137 + }
  138 +
  139 + public String getCommunity()
  140 + {
  141 + return community;
  142 + }
  143 + public void setAddress(String address)
  144 + {
  145 + this.address = address;
  146 + }
  147 +
  148 + public String getAddress()
  149 + {
  150 + return address;
  151 + }
  152 + public void setType(String type)
  153 + {
  154 + this.type = type;
  155 + }
  156 +
  157 + public String getType()
  158 + {
  159 + return type;
  160 + }
  161 + public void setArea(BigDecimal area)
  162 + {
  163 + this.area = area;
  164 + }
  165 +
  166 + public BigDecimal getArea()
  167 + {
  168 + return area;
  169 + }
  170 + public void setCapacity(BigDecimal capacity)
  171 + {
  172 + this.capacity = capacity;
  173 + }
  174 +
  175 + public BigDecimal getCapacity()
  176 + {
  177 + return capacity;
  178 + }
  179 + public void setManagementUnit(String managementUnit)
  180 + {
  181 + this.managementUnit = managementUnit;
  182 + }
  183 +
  184 + public String getManagementUnit()
  185 + {
  186 + return managementUnit;
  187 + }
  188 + public void setCustodian(String custodian)
  189 + {
  190 + this.custodian = custodian;
  191 + }
  192 +
  193 + public String getCustodian()
  194 + {
  195 + return custodian;
  196 + }
  197 + public void setCustodianPhone(String custodianPhone)
  198 + {
  199 + this.custodianPhone = custodianPhone;
  200 + }
  201 +
  202 + public String getCustodianPhone()
  203 + {
  204 + return custodianPhone;
  205 + }
  206 + public void setDropTime(String dropTime)
  207 + {
  208 + this.dropTime = dropTime;
  209 + }
  210 +
  211 + public String getDropTime()
  212 + {
  213 + return dropTime;
  214 + }
  215 + public void setDropPointNo(String dropPointNo)
  216 + {
  217 + this.dropPointNo = dropPointNo;
  218 + }
  219 +
  220 + public String getDropPointNo()
  221 + {
  222 + return dropPointNo;
  223 + }
  224 + public void setOperatingUnit(String operatingUnit)
  225 + {
  226 + this.operatingUnit = operatingUnit;
  227 + }
  228 +
  229 + public String getOperatingUnit()
  230 + {
  231 + return operatingUnit;
  232 + }
  233 + public void setTransportUnit(String transportUnit)
  234 + {
  235 + this.transportUnit = transportUnit;
  236 + }
  237 +
  238 + public String getTransportUnit()
  239 + {
  240 + return transportUnit;
  241 + }
  242 +
  243 + @Override
  244 + public String toString() {
  245 + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
  246 + .append("id", getId())
  247 + .append("dropPointName", getDropPointName())
  248 + .append("district", getDistrict())
  249 + .append("street", getStreet())
  250 + .append("community", getCommunity())
  251 + .append("address", getAddress())
  252 + .append("type", getType())
  253 + .append("area", getArea())
  254 + .append("capacity", getCapacity())
  255 + .append("managementUnit", getManagementUnit())
  256 + .append("custodian", getCustodian())
  257 + .append("custodianPhone", getCustodianPhone())
  258 + .append("dropTime", getDropTime())
  259 + .append("dropPointNo", getDropPointNo())
  260 + .append("operatingUnit", getOperatingUnit())
  261 + .append("transportUnit", getTransportUnit())
  262 + .append("createTime", getCreateTime())
  263 + .append("createBy", getCreateBy())
  264 + .append("updateTime", getUpdateTime())
  265 + .append("updateBy", getUpdateBy())
  266 + .toString();
  267 + }
  268 +}
trash-unit/src/main/java/com/trash/dropPointInfo/mapper/DropPointInfoMapper.java 0 → 100644
  1 +package com.trash.dropPointInfo.mapper;
  2 +
  3 +import java.util.List;
  4 +import com.trash.dropPointInfo.domain.DropPointInfo;
  5 +
  6 +/**
  7 + * 投放点信息管理Mapper接口
  8 + *
  9 + * @author trash
  10 + * @date 2024-11-14
  11 + */
  12 +public interface DropPointInfoMapper
  13 +{
  14 + /**
  15 + * 查询投放点信息管理
  16 + *
  17 + * @param id 投放点信息管理ID
  18 + * @return 投放点信息管理
  19 + */
  20 + DropPointInfo selectDropPointInfoById(Long id);
  21 +
  22 + /**
  23 + * 查询投放点信息管理列表
  24 + *
  25 + * @param dropPointInfo 投放点信息管理
  26 + * @return 投放点信息管理集合
  27 + */
  28 + List<DropPointInfo> selectDropPointInfoList(DropPointInfo dropPointInfo);
  29 +
  30 + /**
  31 + * 新增投放点信息管理
  32 + *
  33 + * @param dropPointInfo 投放点信息管理
  34 + * @return 结果
  35 + */
  36 + int insertDropPointInfo(DropPointInfo dropPointInfo);
  37 +
  38 + /**
  39 + * 修改投放点信息管理
  40 + *
  41 + * @param dropPointInfo 投放点信息管理
  42 + * @return 结果
  43 + */
  44 + int updateDropPointInfo(DropPointInfo dropPointInfo);
  45 +
  46 + /**
  47 + * 删除投放点信息管理
  48 + *
  49 + * @param id 投放点信息管理ID
  50 + * @return 结果
  51 + */
  52 + int deleteDropPointInfoById(Long id);
  53 +
  54 + /**
  55 + * 批量删除投放点信息管理
  56 + *
  57 + * @param ids 需要删除的数据ID
  58 + * @return 结果
  59 + */
  60 + int deleteDropPointInfoByIds(Long[] ids);
  61 +}
trash-unit/src/main/java/com/trash/dropPointInfo/service/IDropPointInfoService.java 0 → 100644
  1 +package com.trash.dropPointInfo.service;
  2 +
  3 +import java.util.List;
  4 +import com.trash.dropPointInfo.domain.DropPointInfo;
  5 +
  6 +/**
  7 + * 投放点信息管理Service接口
  8 + *
  9 + * @author trash
  10 + * @date 2024-11-14
  11 + */
  12 +public interface IDropPointInfoService
  13 +{
  14 + /**
  15 + * 查询投放点信息管理
  16 + *
  17 + * @param id 投放点信息管理ID
  18 + * @return 投放点信息管理
  19 + */
  20 + DropPointInfo selectDropPointInfoById(Long id);
  21 +
  22 + /**
  23 + * 查询投放点信息管理列表
  24 + *
  25 + * @param dropPointInfo 投放点信息管理
  26 + * @return 投放点信息管理集合
  27 + */
  28 + List<DropPointInfo> selectDropPointInfoList(DropPointInfo dropPointInfo);
  29 +
  30 + /**
  31 + * 新增投放点信息管理
  32 + *
  33 + * @param dropPointInfo 投放点信息管理
  34 + * @return 结果
  35 + */
  36 + int insertDropPointInfo(DropPointInfo dropPointInfo);
  37 +
  38 + /**
  39 + * 修改投放点信息管理
  40 + *
  41 + * @param dropPointInfo 投放点信息管理
  42 + * @return 结果
  43 + */
  44 + int updateDropPointInfo(DropPointInfo dropPointInfo);
  45 +
  46 + /**
  47 + * 批量删除投放点信息管理
  48 + *
  49 + * @param ids 需要删除的投放点信息管理ID
  50 + * @return 结果
  51 + */
  52 + int deleteDropPointInfoByIds(Long[] ids);
  53 +
  54 + /**
  55 + * 删除投放点信息管理信息
  56 + *
  57 + * @param id 投放点信息管理ID
  58 + * @return 结果
  59 + */
  60 + int deleteDropPointInfoById(Long id);
  61 +}
trash-unit/src/main/java/com/trash/dropPointInfo/service/impl/DropPointInfoServiceImpl.java 0 → 100644
  1 +package com.trash.dropPointInfo.service.impl;
  2 +
  3 +import java.util.List;
  4 +import com.trash.common.utils.DateUtils;
  5 +import com.trash.common.utils.SecurityUtils;
  6 +import org.springframework.beans.factory.annotation.Autowired;
  7 +import org.springframework.stereotype.Service;
  8 +import com.trash.dropPointInfo.mapper.DropPointInfoMapper;
  9 +import com.trash.dropPointInfo.domain.DropPointInfo;
  10 +import com.trash.dropPointInfo.service.IDropPointInfoService;
  11 +
  12 +/**
  13 + * 投放点信息管理Service业务层处理
  14 + *
  15 + * @author trash
  16 + * @date 2024-11-14
  17 + */
  18 +@Service
  19 +public class DropPointInfoServiceImpl implements IDropPointInfoService
  20 +{
  21 + @Autowired
  22 + private DropPointInfoMapper dropPointInfoMapper;
  23 +
  24 + /**
  25 + * 查询投放点信息管理
  26 + *
  27 + * @param id 投放点信息管理ID
  28 + * @return 投放点信息管理
  29 + */
  30 + @Override
  31 + public DropPointInfo selectDropPointInfoById(Long id)
  32 + {
  33 + return dropPointInfoMapper.selectDropPointInfoById(id);
  34 + }
  35 +
  36 + /**
  37 + * 查询投放点信息管理列表
  38 + *
  39 + * @param dropPointInfo 投放点信息管理
  40 + * @return 投放点信息管理
  41 + */
  42 + @Override
  43 + public List<DropPointInfo> selectDropPointInfoList(DropPointInfo dropPointInfo)
  44 + {
  45 + return dropPointInfoMapper.selectDropPointInfoList(dropPointInfo);
  46 + }
  47 +
  48 + /**
  49 + * 新增投放点信息管理
  50 + *
  51 + * @param dropPointInfo 投放点信息管理
  52 + * @return 结果
  53 + */
  54 + @Override
  55 + public int insertDropPointInfo(DropPointInfo dropPointInfo)
  56 + {
  57 + dropPointInfo.setCreateTime(DateUtils.getNowDate());
  58 + dropPointInfo.setCreateBy(SecurityUtils.getUsername());
  59 + return dropPointInfoMapper.insertDropPointInfo(dropPointInfo);
  60 + }
  61 +
  62 + /**
  63 + * 修改投放点信息管理
  64 + *
  65 + * @param dropPointInfo 投放点信息管理
  66 + * @return 结果
  67 + */
  68 + @Override
  69 + public int updateDropPointInfo(DropPointInfo dropPointInfo)
  70 + {
  71 + dropPointInfo.setUpdateTime(DateUtils.getNowDate());
  72 + dropPointInfo.setUpdateBy(SecurityUtils.getUsername());
  73 + return dropPointInfoMapper.updateDropPointInfo(dropPointInfo);
  74 + }
  75 +
  76 + /**
  77 + * 批量删除投放点信息管理
  78 + *
  79 + * @param ids 需要删除的投放点信息管理ID
  80 + * @return 结果
  81 + */
  82 + @Override
  83 + public int deleteDropPointInfoByIds(Long[] ids)
  84 + {
  85 + return dropPointInfoMapper.deleteDropPointInfoByIds(ids);
  86 + }
  87 +
  88 + /**
  89 + * 删除投放点信息管理信息
  90 + *
  91 + * @param id 投放点信息管理ID
  92 + * @return 结果
  93 + */
  94 + @Override
  95 + public int deleteDropPointInfoById(Long id)
  96 + {
  97 + return dropPointInfoMapper.deleteDropPointInfoById(id);
  98 + }
  99 +}
trash-unit/src/main/resources/mapper/unit/DropPointInfoMapper.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.dropPointInfo.mapper.DropPointInfoMapper">
  6 +
  7 + <resultMap type="DropPointInfo" id="DropPointInfoResult">
  8 + <result property="id" column="id" />
  9 + <result property="dropPointName" column="drop_point_name" />
  10 + <result property="district" column="district" />
  11 + <result property="street" column="street" />
  12 + <result property="community" column="community" />
  13 + <result property="address" column="address" />
  14 + <result property="type" column="type" />
  15 + <result property="area" column="area" />
  16 + <result property="capacity" column="capacity" />
  17 + <result property="managementUnit" column="management_unit" />
  18 + <result property="custodian" column="custodian" />
  19 + <result property="custodianPhone" column="custodian_phone" />
  20 + <result property="dropTime" column="drop_time" />
  21 + <result property="dropPointNo" column="drop_point_no" />
  22 + <result property="operatingUnit" column="operating_unit" />
  23 + <result property="transportUnit" column="transport_unit" />
  24 + <result property="createTime" column="create_time" />
  25 + <result property="createBy" column="create_by" />
  26 + <result property="updateTime" column="update_time" />
  27 + <result property="updateBy" column="update_by" />
  28 + </resultMap>
  29 +
  30 + <sql id="selectDropPointInfoVo">
  31 + select id, drop_point_name, district, street, community, address, type, area, capacity, management_unit, custodian, custodian_phone, drop_time, drop_point_no, operating_unit, transport_unit, create_time, create_by, update_time, update_by from drop_point_info
  32 + </sql>
  33 +
  34 + <select id="selectDropPointInfoList" parameterType="DropPointInfo" resultMap="DropPointInfoResult">
  35 + <include refid="selectDropPointInfoVo"/>
  36 + <where>
  37 + <if test="dropPointName != null and dropPointName != ''"> and drop_point_name like concat('%', #{dropPointName}, '%')</if>
  38 + <if test="address != null and address != ''"> and address like concat('%', #{address}, '%')</if>
  39 + <if test="type != null and type != ''"> and type = #{type}</if>
  40 + <if test="dropPointNo != null and dropPointNo != ''"> and drop_point_no like concat(#{dropPointNo}, '%')</if>
  41 + </where>
  42 + </select>
  43 +
  44 + <select id="selectDropPointInfoById" parameterType="Long" resultMap="DropPointInfoResult">
  45 + <include refid="selectDropPointInfoVo"/>
  46 + where id = #{id}
  47 + </select>
  48 +
  49 + <insert id="insertDropPointInfo" parameterType="DropPointInfo" useGeneratedKeys="true" keyProperty="id">
  50 + insert into drop_point_info
  51 + <trim prefix="(" suffix=")" suffixOverrides=",">
  52 + <if test="dropPointName != null">drop_point_name,</if>
  53 + <if test="district != null">district,</if>
  54 + <if test="street != null">street,</if>
  55 + <if test="community != null">community,</if>
  56 + <if test="address != null">address,</if>
  57 + <if test="type != null">type,</if>
  58 + <if test="area != null">area,</if>
  59 + <if test="capacity != null">capacity,</if>
  60 + <if test="managementUnit != null">management_unit,</if>
  61 + <if test="custodian != null">custodian,</if>
  62 + <if test="custodianPhone != null">custodian_phone,</if>
  63 + <if test="dropTime != null">drop_time,</if>
  64 + <if test="dropPointNo != null">drop_point_no,</if>
  65 + <if test="operatingUnit != null">operating_unit,</if>
  66 + <if test="transportUnit != null">transport_unit,</if>
  67 + <if test="createTime != null">create_time,</if>
  68 + <if test="createBy != null">create_by,</if>
  69 + <if test="updateTime != null">update_time,</if>
  70 + <if test="updateBy != null">update_by,</if>
  71 + </trim>
  72 + <trim prefix="values (" suffix=")" suffixOverrides=",">
  73 + <if test="dropPointName != null">#{dropPointName},</if>
  74 + <if test="district != null">#{district},</if>
  75 + <if test="street != null">#{street},</if>
  76 + <if test="community != null">#{community},</if>
  77 + <if test="address != null">#{address},</if>
  78 + <if test="type != null">#{type},</if>
  79 + <if test="area != null">#{area},</if>
  80 + <if test="capacity != null">#{capacity},</if>
  81 + <if test="managementUnit != null">#{managementUnit},</if>
  82 + <if test="custodian != null">#{custodian},</if>
  83 + <if test="custodianPhone != null">#{custodianPhone},</if>
  84 + <if test="dropTime != null">#{dropTime},</if>
  85 + <if test="dropPointNo != null">#{dropPointNo},</if>
  86 + <if test="operatingUnit != null">#{operatingUnit},</if>
  87 + <if test="transportUnit != null">#{transportUnit},</if>
  88 + <if test="createTime != null">#{createTime},</if>
  89 + <if test="createBy != null">#{createBy},</if>
  90 + <if test="updateTime != null">#{updateTime},</if>
  91 + <if test="updateBy != null">#{updateBy},</if>
  92 + </trim>
  93 + </insert>
  94 +
  95 + <update id="updateDropPointInfo" parameterType="DropPointInfo">
  96 + update drop_point_info
  97 + <trim prefix="SET" suffixOverrides=",">
  98 + <if test="dropPointName != null">drop_point_name = #{dropPointName},</if>
  99 + <if test="district != null">district = #{district},</if>
  100 + <if test="street != null">street = #{street},</if>
  101 + <if test="community != null">community = #{community},</if>
  102 + <if test="address != null">address = #{address},</if>
  103 + <if test="type != null">type = #{type},</if>
  104 + <if test="area != null">area = #{area},</if>
  105 + <if test="capacity != null">capacity = #{capacity},</if>
  106 + <if test="managementUnit != null">management_unit = #{managementUnit},</if>
  107 + <if test="custodian != null">custodian = #{custodian},</if>
  108 + <if test="custodianPhone != null">custodian_phone = #{custodianPhone},</if>
  109 + <if test="dropTime != null">drop_time = #{dropTime},</if>
  110 + <if test="dropPointNo != null">drop_point_no = #{dropPointNo},</if>
  111 + <if test="operatingUnit != null">operating_unit = #{operatingUnit},</if>
  112 + <if test="transportUnit != null">transport_unit = #{transportUnit},</if>
  113 + <if test="createTime != null">create_time = #{createTime},</if>
  114 + <if test="createBy != null">create_by = #{createBy},</if>
  115 + <if test="updateTime != null">update_time = #{updateTime},</if>
  116 + <if test="updateBy != null">update_by = #{updateBy},</if>
  117 + </trim>
  118 + where id = #{id}
  119 + </update>
  120 +
  121 + <delete id="deleteDropPointInfoById" parameterType="Long">
  122 + delete from drop_point_info where id = #{id}
  123 + </delete>
  124 +
  125 + <delete id="deleteDropPointInfoByIds" parameterType="String">
  126 + delete from drop_point_info where id in
  127 + <foreach item="id" collection="array" open="(" separator="," close=")">
  128 + #{id}
  129 + </foreach>
  130 + </delete>
  131 +
  132 +</mapper>
0 \ No newline at end of file 133 \ No newline at end of file