| @ -0,0 +1,44 @@ | |||
| import request from '@/utils/request' | |||
| // 查询地址信息列表 | |||
| export function listAppletAddress(query) { | |||
| return request({ | |||
| url: '/model/AppletAddress/list', | |||
| method: 'get', | |||
| params: query | |||
| }) | |||
| } | |||
| // 查询地址信息详细 | |||
| export function getAppletAddress(area) { | |||
| return request({ | |||
| url: '/model/AppletAddress/' + area, | |||
| method: 'get' | |||
| }) | |||
| } | |||
| // 新增地址信息 | |||
| export function addAppletAddress(data) { | |||
| return request({ | |||
| url: '/model/AppletAddress', | |||
| method: 'post', | |||
| data: data | |||
| }) | |||
| } | |||
| // 修改地址信息 | |||
| export function updateAppletAddress(data) { | |||
| return request({ | |||
| url: '/model/AppletAddress', | |||
| method: 'put', | |||
| data: data | |||
| }) | |||
| } | |||
| // 删除地址信息 | |||
| export function delAppletAddress(area) { | |||
| return request({ | |||
| url: '/model/AppletAddress/' + area, | |||
| method: 'delete' | |||
| }) | |||
| } | |||
| @ -0,0 +1,44 @@ | |||
| import request from '@/utils/request' | |||
| // 查询配置信息列表 | |||
| export function listAppletConfig(query) { | |||
| return request({ | |||
| url: '/model/AppletConfig/list', | |||
| method: 'get', | |||
| params: query | |||
| }) | |||
| } | |||
| // 查询配置信息详细 | |||
| export function getAppletConfig(paramCode) { | |||
| return request({ | |||
| url: '/model/AppletConfig/' + paramCode, | |||
| method: 'get' | |||
| }) | |||
| } | |||
| // 新增配置信息 | |||
| export function addAppletConfig(data) { | |||
| return request({ | |||
| url: '/model/AppletConfig', | |||
| method: 'post', | |||
| data: data | |||
| }) | |||
| } | |||
| // 修改配置信息 | |||
| export function updateAppletConfig(data) { | |||
| return request({ | |||
| url: '/model/AppletConfig', | |||
| method: 'put', | |||
| data: data | |||
| }) | |||
| } | |||
| // 删除配置信息 | |||
| export function delAppletConfig(paramCode) { | |||
| return request({ | |||
| url: '/model/AppletConfig/' + paramCode, | |||
| method: 'delete' | |||
| }) | |||
| } | |||
| @ -0,0 +1,44 @@ | |||
| import request from '@/utils/request' | |||
| // 查询不接单日期列表 | |||
| export function listAppletOutDate(query) { | |||
| return request({ | |||
| url: '/model/AppletOutDate/list', | |||
| method: 'get', | |||
| params: query | |||
| }) | |||
| } | |||
| // 查询不接单日期详细 | |||
| export function getAppletOutDate(date) { | |||
| return request({ | |||
| url: '/model/AppletOutDate/' + date, | |||
| method: 'get' | |||
| }) | |||
| } | |||
| // 新增不接单日期 | |||
| export function addAppletOutDate(data) { | |||
| return request({ | |||
| url: '/model/AppletOutDate', | |||
| method: 'post', | |||
| data: data | |||
| }) | |||
| } | |||
| // 修改不接单日期 | |||
| export function updateAppletOutDate(data) { | |||
| return request({ | |||
| url: '/model/AppletOutDate', | |||
| method: 'put', | |||
| data: data | |||
| }) | |||
| } | |||
| // 删除不接单日期 | |||
| export function delAppletOutDate(date) { | |||
| return request({ | |||
| url: '/model/AppletOutDate/' + date, | |||
| method: 'delete' | |||
| }) | |||
| } | |||
| @ -0,0 +1,349 @@ | |||
| <template> | |||
| <div class="app-container"> | |||
| <el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="100px" size="medium" class="ry_form"> | |||
| <el-form-item label="接单地址" prop="area"> | |||
| <el-input | |||
| v-model="queryParams.area" | |||
| placeholder="请输入接单地址" | |||
| clearable | |||
| size="small" | |||
| @keyup.enter.native="handleQuery" | |||
| /> | |||
| </el-form-item> | |||
| <el-form-item label="详细地址" prop="address"> | |||
| <el-input | |||
| v-model="queryParams.address" | |||
| placeholder="请输入详细地址" | |||
| clearable | |||
| size="small" | |||
| @keyup.enter.native="handleQuery" | |||
| /> | |||
| </el-form-item> | |||
| <el-form-item label="接单状态" prop="status"> | |||
| <el-select v-model="queryParams.status" placeholder="请选择接单状态" clearable size="small"> | |||
| </el-select> | |||
| </el-form-item> | |||
| <el-form-item label="接单范围" prop="range"> | |||
| <el-input | |||
| v-model="queryParams.range" | |||
| placeholder="请输入接单范围" | |||
| clearable | |||
| size="small" | |||
| @keyup.enter.native="handleQuery" | |||
| /> | |||
| </el-form-item> | |||
| <el-form-item label="${comment}" prop="outDate"> | |||
| <el-date-picker | |||
| clearable | |||
| size="small" | |||
| v-model="queryParams.outDate" | |||
| type="datetime" | |||
| value-format="yyyy-MM-dd HH:mm:ss" | |||
| placeholder="选择${comment}"> | |||
| </el-date-picker> | |||
| </el-form-item> | |||
| <el-form-item label="关联用户id" prop="userId"> | |||
| <el-input | |||
| v-model="queryParams.userId" | |||
| placeholder="请输入关联用户id" | |||
| clearable | |||
| size="small" | |||
| @keyup.enter.native="handleQuery" | |||
| /> | |||
| </el-form-item> | |||
| <el-form-item class="flex_one tr"> | |||
| <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button> | |||
| <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button> | |||
| </el-form-item> | |||
| </el-form> | |||
| <el-row :gutter="10" class="mb8"> | |||
| <el-col :span="1.5"> | |||
| <el-button | |||
| type="primary" | |||
| plain | |||
| icon="el-icon-plus" | |||
| size="mini" | |||
| @click="handleAdd" | |||
| v-hasPermi="['model:AppletAddress:add']" | |||
| >新增</el-button> | |||
| </el-col> | |||
| <el-col :span="1.5"> | |||
| <el-button | |||
| type="success" | |||
| plain | |||
| icon="el-icon-edit" | |||
| size="mini" | |||
| :disabled="single" | |||
| @click="handleUpdate" | |||
| v-hasPermi="['model:AppletAddress:edit']" | |||
| >修改</el-button> | |||
| </el-col> | |||
| <el-col :span="1.5"> | |||
| <el-button | |||
| type="danger" | |||
| plain | |||
| icon="el-icon-delete" | |||
| size="mini" | |||
| :disabled="multiple" | |||
| @click="handleDelete" | |||
| v-hasPermi="['model:AppletAddress:remove']" | |||
| >删除</el-button> | |||
| </el-col> | |||
| <el-col :span="1.5"> | |||
| <el-button | |||
| type="warning" | |||
| plain | |||
| icon="el-icon-download" | |||
| size="mini" | |||
| :loading="exportLoading" | |||
| @click="handleExport" | |||
| v-hasPermi="['model:AppletAddress:export']" | |||
| >导出</el-button> | |||
| </el-col> | |||
| <right-toolbar :showSearch.sync="showSearch" @queryTable="getList" :columns="columns"></right-toolbar> | |||
| </el-row> | |||
| <el-table v-loading="loading" :data="AppletAddressList" @selection-change="handleSelectionChange"> | |||
| <el-table-column type="selection" width="55" align="center" /> | |||
| <el-table-column label="接单地址" align="center" prop="area" v-if="columns[0].visible"/> | |||
| <el-table-column label="详细地址" align="center" prop="address" v-if="columns[1].visible"/> | |||
| <el-table-column label="接单状态" align="center" prop="status" v-if="columns[2].visible"/> | |||
| <el-table-column label="接单范围" align="center" prop="range" v-if="columns[3].visible"/> | |||
| <el-table-column label="${comment}" align="center" prop="outDate" width="180" v-if="columns[4].visible"> | |||
| <template slot-scope="scope"> | |||
| <span>{{ parseTime(scope.row.outDate, '')}}</span> | |||
| </template> | |||
| </el-table-column> | |||
| <el-table-column label="关联用户id" align="center" prop="userId" v-if="columns[5].visible"/> | |||
| <el-table-column label="操作" align="center" class-name="small-padding fixed-width"> | |||
| <template slot-scope="scope"> | |||
| <el-button | |||
| size="mini" | |||
| type="text" | |||
| icon="el-icon-edit" | |||
| @click="handleUpdate(scope.row)" | |||
| v-hasPermi="['model:AppletAddress:edit']" | |||
| >修改</el-button> | |||
| <el-button | |||
| size="mini" | |||
| type="text" | |||
| icon="el-icon-delete" | |||
| @click="handleDelete(scope.row)" | |||
| v-hasPermi="['model:AppletAddress:remove']" | |||
| >删除</el-button> | |||
| </template> | |||
| </el-table-column> | |||
| </el-table> | |||
| <pagination | |||
| v-show="total>0" | |||
| :total="total" | |||
| :page.sync="queryParams.pageNum" | |||
| :limit.sync="queryParams.pageSize" | |||
| @pagination="getList" | |||
| /> | |||
| <!-- 添加或修改地址信息对话框 --> | |||
| <el-dialog :title="title" :visible.sync="open" width="50%" append-to-body> | |||
| <el-form ref="form" :model="form" :rules="rules" label-width="108px" inline class="dialog-form-two"> | |||
| <el-form-item label="接单地址" prop="area"> | |||
| <el-input v-model="form.area" placeholder="请输入接单地址" /> | |||
| </el-form-item> | |||
| <el-form-item label="详细地址" prop="address"> | |||
| <el-input v-model="form.address" placeholder="请输入详细地址" /> | |||
| </el-form-item> | |||
| <el-form-item label="接单范围" prop="range"> | |||
| <el-input v-model="form.range" placeholder="请输入接单范围" /> | |||
| </el-form-item> | |||
| <el-form-item label="${comment}" prop="outDate"> | |||
| <el-date-picker clearable size="small" | |||
| v-model="form.outDate" | |||
| type="datetime" | |||
| value-format="yyyy-MM-dd HH:mm:ss" | |||
| placeholder="选择${comment}"> | |||
| </el-date-picker> | |||
| </el-form-item> | |||
| <el-form-item label="关联用户id" prop="userId"> | |||
| <el-input v-model="form.userId" placeholder="请输入关联用户id" /> | |||
| </el-form-item> | |||
| </el-form> | |||
| <div slot="footer" class="dialog-footer"> | |||
| <el-button type="primary" @click="submitForm">确 定</el-button> | |||
| <el-button @click="cancel">取 消</el-button> | |||
| </div> | |||
| </el-dialog> | |||
| </div> | |||
| </template> | |||
| <script> | |||
| import { listAppletAddress, getAppletAddress, delAppletAddress, addAppletAddress, updateAppletAddress, exportAppletAddress } from "@/api/model/AppletAddress"; | |||
| export default { | |||
| name: "AppletAddress", | |||
| data() { | |||
| return { | |||
| // 遮罩层 | |||
| loading: true, | |||
| // 导出遮罩层 | |||
| exportLoading: false, | |||
| // 选中数组 | |||
| ids: [], | |||
| // 非单个禁用 | |||
| single: true, | |||
| // 非多个禁用 | |||
| multiple: true, | |||
| // 显示搜索条件 | |||
| showSearch: true, | |||
| // 总条数 | |||
| total: 0, | |||
| // 地址信息表格数据 | |||
| AppletAddressList: [], | |||
| // 弹出层标题 | |||
| title: "", | |||
| // 是否显示弹出层 | |||
| open: false, | |||
| // 查询参数 | |||
| queryParams: { | |||
| pageNum: 1, | |||
| pageSize: 10, | |||
| area: null, | |||
| address: null, | |||
| status: null, | |||
| range: null, | |||
| outDate: null, | |||
| userId: null, | |||
| }, | |||
| // 表单参数 | |||
| form: {}, | |||
| // 表单校验 | |||
| rules: { | |||
| }, | |||
| columns: [ | |||
| { key: 0, label: "接单地址", visible: true }, | |||
| { key: 1, label: "详细地址", visible: true }, | |||
| { key: 2, label: "接单状态", visible: true }, | |||
| { key: 3, label: "接单范围", visible: true }, | |||
| { key: 4, label: "$column.columnComment", visible: true }, | |||
| { key: 5, label: "关联用户id", visible: true }, | |||
| ], | |||
| }; | |||
| }, | |||
| created() { | |||
| this.getList(); | |||
| }, | |||
| methods: { | |||
| /** 查询地址信息列表 */ | |||
| getList() { | |||
| this.loading = true; | |||
| listAppletAddress(this.queryParams).then(response => { | |||
| this.AppletAddressList = response.rows; | |||
| this.total = response.total; | |||
| this.loading = false; | |||
| }); | |||
| }, | |||
| // 取消按钮 | |||
| cancel() { | |||
| this.open = false; | |||
| this.reset(); | |||
| }, | |||
| // 表单重置 | |||
| reset() { | |||
| this.form = { | |||
| area: null, | |||
| address: null, | |||
| status: "0", | |||
| range: null, | |||
| outDate: null, | |||
| userId: null, | |||
| }; | |||
| this.resetForm("form"); | |||
| }, | |||
| /** 搜索按钮操作 */ | |||
| handleQuery() { | |||
| this.queryParams.pageNum = 1; | |||
| this.getList(); | |||
| }, | |||
| /** 重置按钮操作 */ | |||
| resetQuery() { | |||
| this.resetForm("queryForm"); | |||
| this.handleQuery(); | |||
| }, | |||
| // 多选框选中数据 | |||
| handleSelectionChange(selection) { | |||
| this.ids = selection.map(item => item.area) | |||
| this.single = selection.length!==1 | |||
| this.multiple = !selection.length | |||
| }, | |||
| /** 新增按钮操作 */ | |||
| handleAdd() { | |||
| this.reset(); | |||
| this.open = true; | |||
| this.title = "添加地址信息"; | |||
| }, | |||
| /** 修改按钮操作 */ | |||
| handleUpdate(row) { | |||
| this.reset(); | |||
| const area = row.area || this.ids | |||
| getAppletAddress(area).then(response => { | |||
| this.form = response.data; | |||
| this.open = true; | |||
| this.title = "修改地址信息"; | |||
| }); | |||
| }, | |||
| /** 提交按钮 */ | |||
| submitForm() { | |||
| this.$refs["form"].validate(valid => { | |||
| if (valid) { | |||
| if (this.form.area != null) { | |||
| updateAppletAddress(this.form).then(response => { | |||
| this.$modal.msgSuccess("修改成功"); | |||
| this.open = false; | |||
| this.getList(); | |||
| }); | |||
| } else { | |||
| addAppletAddress(this.form).then(response => { | |||
| this.$modal.msgSuccess("新增成功"); | |||
| this.open = false; | |||
| this.getList(); | |||
| }); | |||
| } | |||
| } | |||
| }); | |||
| }, | |||
| /** 删除按钮操作 */ | |||
| handleDelete(row) { | |||
| const areas = row.area || this.ids; | |||
| this.$modal.confirm('是否确认删除地址信息编号为"' + areas + '"的数据项?').then(function() { | |||
| return delAppletAddress(areas); | |||
| }).then(() => { | |||
| this.getList(); | |||
| this.$modal.msgSuccess("删除成功"); | |||
| }).catch(() => {}); | |||
| }, | |||
| /** 导出按钮操作 */ | |||
| handleExport() { | |||
| const queryParams = this.queryParams; | |||
| this.$modal.confirm('是否确认导出所有地址信息数据项?').then(() => { | |||
| this.exportLoading = true; | |||
| return exportAppletAddress(queryParams); | |||
| }).then(response => { | |||
| this.download(response.msg); | |||
| this.exportLoading = false; | |||
| }).catch(() => {}); | |||
| } | |||
| } | |||
| }; | |||
| </script> | |||
| @ -0,0 +1,302 @@ | |||
| <template> | |||
| <div class="app-container"> | |||
| <el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="100px" size="medium" class="ry_form"> | |||
| <el-form-item label="参数编码" prop="paramCode"> | |||
| <el-input | |||
| v-model="queryParams.paramCode" | |||
| placeholder="请输入参数编码" | |||
| clearable | |||
| size="small" | |||
| @keyup.enter.native="handleQuery" | |||
| /> | |||
| </el-form-item> | |||
| <el-form-item label="参数值-普通文本" prop="paramValueText"> | |||
| <el-input | |||
| v-model="queryParams.paramValueText" | |||
| placeholder="请输入参数值-普通文本" | |||
| clearable | |||
| size="small" | |||
| @keyup.enter.native="handleQuery" | |||
| /> | |||
| </el-form-item> | |||
| <el-form-item label="参数值-富文本" prop="paramValueArea"> | |||
| <el-input | |||
| v-model="queryParams.paramValueArea" | |||
| placeholder="请输入参数值-富文本" | |||
| clearable | |||
| size="small" | |||
| @keyup.enter.native="handleQuery" | |||
| /> | |||
| </el-form-item> | |||
| <el-form-item class="flex_one tr"> | |||
| <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button> | |||
| <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button> | |||
| </el-form-item> | |||
| </el-form> | |||
| <el-row :gutter="10" class="mb8"> | |||
| <el-col :span="1.5"> | |||
| <el-button | |||
| type="primary" | |||
| plain | |||
| icon="el-icon-plus" | |||
| size="mini" | |||
| @click="handleAdd" | |||
| v-hasPermi="['model:AppletConfig:add']" | |||
| >新增</el-button> | |||
| </el-col> | |||
| <el-col :span="1.5"> | |||
| <el-button | |||
| type="success" | |||
| plain | |||
| icon="el-icon-edit" | |||
| size="mini" | |||
| :disabled="single" | |||
| @click="handleUpdate" | |||
| v-hasPermi="['model:AppletConfig:edit']" | |||
| >修改</el-button> | |||
| </el-col> | |||
| <el-col :span="1.5"> | |||
| <el-button | |||
| type="danger" | |||
| plain | |||
| icon="el-icon-delete" | |||
| size="mini" | |||
| :disabled="multiple" | |||
| @click="handleDelete" | |||
| v-hasPermi="['model:AppletConfig:remove']" | |||
| >删除</el-button> | |||
| </el-col> | |||
| <el-col :span="1.5"> | |||
| <el-button | |||
| type="warning" | |||
| plain | |||
| icon="el-icon-download" | |||
| size="mini" | |||
| :loading="exportLoading" | |||
| @click="handleExport" | |||
| v-hasPermi="['model:AppletConfig:export']" | |||
| >导出</el-button> | |||
| </el-col> | |||
| <right-toolbar :showSearch.sync="showSearch" @queryTable="getList" :columns="columns"></right-toolbar> | |||
| </el-row> | |||
| <el-table v-loading="loading" :data="AppletConfigList" @selection-change="handleSelectionChange"> | |||
| <el-table-column type="selection" width="55" align="center" /> | |||
| <el-table-column label="参数编码" align="center" prop="paramCode" v-if="columns[0].visible"/> | |||
| <el-table-column label="参数值-普通文本" align="center" prop="paramValueText" v-if="columns[1].visible"/> | |||
| <el-table-column label="参数值-图片" align="center" prop="paramValueImage" v-if="columns[2].visible"/> | |||
| <el-table-column label="参数值-富文本" align="center" prop="paramValueArea" v-if="columns[3].visible"/> | |||
| <el-table-column label="操作" align="center" class-name="small-padding fixed-width"> | |||
| <template slot-scope="scope"> | |||
| <el-button | |||
| size="mini" | |||
| type="text" | |||
| icon="el-icon-edit" | |||
| @click="handleUpdate(scope.row)" | |||
| v-hasPermi="['model:AppletConfig:edit']" | |||
| >修改</el-button> | |||
| <el-button | |||
| size="mini" | |||
| type="text" | |||
| icon="el-icon-delete" | |||
| @click="handleDelete(scope.row)" | |||
| v-hasPermi="['model:AppletConfig:remove']" | |||
| >删除</el-button> | |||
| </template> | |||
| </el-table-column> | |||
| </el-table> | |||
| <pagination | |||
| v-show="total>0" | |||
| :total="total" | |||
| :page.sync="queryParams.pageNum" | |||
| :limit.sync="queryParams.pageSize" | |||
| @pagination="getList" | |||
| /> | |||
| <!-- 添加或修改配置信息对话框 --> | |||
| <el-dialog :title="title" :visible.sync="open" width="50%" append-to-body> | |||
| <el-form ref="form" :model="form" :rules="rules" label-width="108px" inline class="dialog-form-two"> | |||
| <el-form-item label="参数编码" prop="paramCode"> | |||
| <el-input v-model="form.paramCode" placeholder="请输入参数编码" /> | |||
| </el-form-item> | |||
| <el-form-item label="参数值-普通文本" prop="paramValueText"> | |||
| <el-input v-model="form.paramValueText" placeholder="请输入参数值-普通文本" /> | |||
| </el-form-item> | |||
| <el-form-item label="参数值-图片"> | |||
| <imageUpload v-model="form.paramValueImage"/> | |||
| </el-form-item> | |||
| <el-form-item label="参数值-富文本" prop="paramValueArea"> | |||
| <el-input v-model="form.paramValueArea" placeholder="请输入参数值-富文本" /> | |||
| </el-form-item> | |||
| </el-form> | |||
| <div slot="footer" class="dialog-footer"> | |||
| <el-button type="primary" @click="submitForm">确 定</el-button> | |||
| <el-button @click="cancel">取 消</el-button> | |||
| </div> | |||
| </el-dialog> | |||
| </div> | |||
| </template> | |||
| <script> | |||
| import { listAppletConfig, getAppletConfig, delAppletConfig, addAppletConfig, updateAppletConfig, exportAppletConfig } from "@/api/model/AppletConfig"; | |||
| export default { | |||
| name: "AppletConfig", | |||
| data() { | |||
| return { | |||
| // 遮罩层 | |||
| loading: true, | |||
| // 导出遮罩层 | |||
| exportLoading: false, | |||
| // 选中数组 | |||
| ids: [], | |||
| // 非单个禁用 | |||
| single: true, | |||
| // 非多个禁用 | |||
| multiple: true, | |||
| // 显示搜索条件 | |||
| showSearch: true, | |||
| // 总条数 | |||
| total: 0, | |||
| // 配置信息表格数据 | |||
| AppletConfigList: [], | |||
| // 弹出层标题 | |||
| title: "", | |||
| // 是否显示弹出层 | |||
| open: false, | |||
| // 查询参数 | |||
| queryParams: { | |||
| pageNum: 1, | |||
| pageSize: 10, | |||
| paramCode: null, | |||
| paramValueText: null, | |||
| paramValueImage: null, | |||
| paramValueArea: null, | |||
| }, | |||
| // 表单参数 | |||
| form: {}, | |||
| // 表单校验 | |||
| rules: { | |||
| }, | |||
| columns: [ | |||
| { key: 0, label: "参数编码", visible: true }, | |||
| { key: 1, label: "参数值-普通文本", visible: true }, | |||
| { key: 2, label: "参数值-图片", visible: false }, | |||
| { key: 3, label: "参数值-富文本", visible: true }, | |||
| ], | |||
| }; | |||
| }, | |||
| created() { | |||
| this.getList(); | |||
| }, | |||
| methods: { | |||
| /** 查询配置信息列表 */ | |||
| getList() { | |||
| this.loading = true; | |||
| listAppletConfig(this.queryParams).then(response => { | |||
| this.AppletConfigList = response.rows; | |||
| this.total = response.total; | |||
| this.loading = false; | |||
| }); | |||
| }, | |||
| // 取消按钮 | |||
| cancel() { | |||
| this.open = false; | |||
| this.reset(); | |||
| }, | |||
| // 表单重置 | |||
| reset() { | |||
| this.form = { | |||
| paramCode: null, | |||
| paramValueText: null, | |||
| paramValueImage: null, | |||
| paramValueArea: null, | |||
| }; | |||
| this.resetForm("form"); | |||
| }, | |||
| /** 搜索按钮操作 */ | |||
| handleQuery() { | |||
| this.queryParams.pageNum = 1; | |||
| this.getList(); | |||
| }, | |||
| /** 重置按钮操作 */ | |||
| resetQuery() { | |||
| this.resetForm("queryForm"); | |||
| this.handleQuery(); | |||
| }, | |||
| // 多选框选中数据 | |||
| handleSelectionChange(selection) { | |||
| this.ids = selection.map(item => item.paramCode) | |||
| this.single = selection.length!==1 | |||
| this.multiple = !selection.length | |||
| }, | |||
| /** 新增按钮操作 */ | |||
| handleAdd() { | |||
| this.reset(); | |||
| this.open = true; | |||
| this.title = "添加配置信息"; | |||
| }, | |||
| /** 修改按钮操作 */ | |||
| handleUpdate(row) { | |||
| this.reset(); | |||
| const paramCode = row.paramCode || this.ids | |||
| getAppletConfig(paramCode).then(response => { | |||
| this.form = response.data; | |||
| this.open = true; | |||
| this.title = "修改配置信息"; | |||
| }); | |||
| }, | |||
| /** 提交按钮 */ | |||
| submitForm() { | |||
| this.$refs["form"].validate(valid => { | |||
| if (valid) { | |||
| if (this.form.paramCode != null) { | |||
| updateAppletConfig(this.form).then(response => { | |||
| this.$modal.msgSuccess("修改成功"); | |||
| this.open = false; | |||
| this.getList(); | |||
| }); | |||
| } else { | |||
| addAppletConfig(this.form).then(response => { | |||
| this.$modal.msgSuccess("新增成功"); | |||
| this.open = false; | |||
| this.getList(); | |||
| }); | |||
| } | |||
| } | |||
| }); | |||
| }, | |||
| /** 删除按钮操作 */ | |||
| handleDelete(row) { | |||
| const paramCodes = row.paramCode || this.ids; | |||
| this.$modal.confirm('是否确认删除配置信息编号为"' + paramCodes + '"的数据项?').then(function() { | |||
| return delAppletConfig(paramCodes); | |||
| }).then(() => { | |||
| this.getList(); | |||
| this.$modal.msgSuccess("删除成功"); | |||
| }).catch(() => {}); | |||
| }, | |||
| /** 导出按钮操作 */ | |||
| handleExport() { | |||
| const queryParams = this.queryParams; | |||
| this.$modal.confirm('是否确认导出所有配置信息数据项?').then(() => { | |||
| this.exportLoading = true; | |||
| return exportAppletConfig(queryParams); | |||
| }).then(response => { | |||
| this.download(response.msg); | |||
| this.exportLoading = false; | |||
| }).catch(() => {}); | |||
| } | |||
| } | |||
| }; | |||
| </script> | |||
| @ -0,0 +1,285 @@ | |||
| <template> | |||
| <div class="app-container"> | |||
| <el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="100px" size="medium" class="ry_form"> | |||
| <el-form-item label="日期" prop="date"> | |||
| <el-date-picker | |||
| clearable | |||
| size="small" | |||
| v-model="queryParams.date" | |||
| type="datetime" | |||
| value-format="yyyy-MM-dd HH:mm:ss" | |||
| placeholder="选择日期"> | |||
| </el-date-picker> | |||
| </el-form-item> | |||
| <el-form-item label="关联接单地址" prop="addressId"> | |||
| <el-input | |||
| v-model="queryParams.addressId" | |||
| placeholder="请输入关联接单地址" | |||
| clearable | |||
| size="small" | |||
| @keyup.enter.native="handleQuery" | |||
| /> | |||
| </el-form-item> | |||
| <el-form-item class="flex_one tr"> | |||
| <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button> | |||
| <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button> | |||
| </el-form-item> | |||
| </el-form> | |||
| <el-row :gutter="10" class="mb8"> | |||
| <el-col :span="1.5"> | |||
| <el-button | |||
| type="primary" | |||
| plain | |||
| icon="el-icon-plus" | |||
| size="mini" | |||
| @click="handleAdd" | |||
| v-hasPermi="['model:AppletOutDate:add']" | |||
| >新增</el-button> | |||
| </el-col> | |||
| <el-col :span="1.5"> | |||
| <el-button | |||
| type="success" | |||
| plain | |||
| icon="el-icon-edit" | |||
| size="mini" | |||
| :disabled="single" | |||
| @click="handleUpdate" | |||
| v-hasPermi="['model:AppletOutDate:edit']" | |||
| >修改</el-button> | |||
| </el-col> | |||
| <el-col :span="1.5"> | |||
| <el-button | |||
| type="danger" | |||
| plain | |||
| icon="el-icon-delete" | |||
| size="mini" | |||
| :disabled="multiple" | |||
| @click="handleDelete" | |||
| v-hasPermi="['model:AppletOutDate:remove']" | |||
| >删除</el-button> | |||
| </el-col> | |||
| <el-col :span="1.5"> | |||
| <el-button | |||
| type="warning" | |||
| plain | |||
| icon="el-icon-download" | |||
| size="mini" | |||
| :loading="exportLoading" | |||
| @click="handleExport" | |||
| v-hasPermi="['model:AppletOutDate:export']" | |||
| >导出</el-button> | |||
| </el-col> | |||
| <right-toolbar :showSearch.sync="showSearch" @queryTable="getList" :columns="columns"></right-toolbar> | |||
| </el-row> | |||
| <el-table v-loading="loading" :data="AppletOutDateList" @selection-change="handleSelectionChange"> | |||
| <el-table-column type="selection" width="55" align="center" /> | |||
| <el-table-column label="日期" align="center" prop="date" width="180" v-if="columns[0].visible"> | |||
| <template slot-scope="scope"> | |||
| <span>{{ parseTime(scope.row.date, '')}}</span> | |||
| </template> | |||
| </el-table-column> | |||
| <el-table-column label="关联接单地址" align="center" prop="addressId" v-if="columns[1].visible"/> | |||
| <el-table-column label="操作" align="center" class-name="small-padding fixed-width"> | |||
| <template slot-scope="scope"> | |||
| <el-button | |||
| size="mini" | |||
| type="text" | |||
| icon="el-icon-edit" | |||
| @click="handleUpdate(scope.row)" | |||
| v-hasPermi="['model:AppletOutDate:edit']" | |||
| >修改</el-button> | |||
| <el-button | |||
| size="mini" | |||
| type="text" | |||
| icon="el-icon-delete" | |||
| @click="handleDelete(scope.row)" | |||
| v-hasPermi="['model:AppletOutDate:remove']" | |||
| >删除</el-button> | |||
| </template> | |||
| </el-table-column> | |||
| </el-table> | |||
| <pagination | |||
| v-show="total>0" | |||
| :total="total" | |||
| :page.sync="queryParams.pageNum" | |||
| :limit.sync="queryParams.pageSize" | |||
| @pagination="getList" | |||
| /> | |||
| <!-- 添加或修改不接单日期对话框 --> | |||
| <el-dialog :title="title" :visible.sync="open" width="50%" append-to-body> | |||
| <el-form ref="form" :model="form" :rules="rules" label-width="108px" inline class="dialog-form-two"> | |||
| <el-form-item label="日期" prop="date"> | |||
| <el-date-picker clearable size="small" | |||
| v-model="form.date" | |||
| type="datetime" | |||
| value-format="yyyy-MM-dd HH:mm:ss" | |||
| placeholder="选择日期"> | |||
| </el-date-picker> | |||
| </el-form-item> | |||
| <el-form-item label="关联接单地址" prop="addressId"> | |||
| <el-input v-model="form.addressId" placeholder="请输入关联接单地址" /> | |||
| </el-form-item> | |||
| </el-form> | |||
| <div slot="footer" class="dialog-footer"> | |||
| <el-button type="primary" @click="submitForm">确 定</el-button> | |||
| <el-button @click="cancel">取 消</el-button> | |||
| </div> | |||
| </el-dialog> | |||
| </div> | |||
| </template> | |||
| <script> | |||
| import { listAppletOutDate, getAppletOutDate, delAppletOutDate, addAppletOutDate, updateAppletOutDate, exportAppletOutDate } from "@/api/model/AppletOutDate"; | |||
| export default { | |||
| name: "AppletOutDate", | |||
| data() { | |||
| return { | |||
| // 遮罩层 | |||
| loading: true, | |||
| // 导出遮罩层 | |||
| exportLoading: false, | |||
| // 选中数组 | |||
| ids: [], | |||
| // 非单个禁用 | |||
| single: true, | |||
| // 非多个禁用 | |||
| multiple: true, | |||
| // 显示搜索条件 | |||
| showSearch: true, | |||
| // 总条数 | |||
| total: 0, | |||
| // 不接单日期表格数据 | |||
| AppletOutDateList: [], | |||
| // 弹出层标题 | |||
| title: "", | |||
| // 是否显示弹出层 | |||
| open: false, | |||
| // 查询参数 | |||
| queryParams: { | |||
| pageNum: 1, | |||
| pageSize: 10, | |||
| date: null, | |||
| addressId: null, | |||
| }, | |||
| // 表单参数 | |||
| form: {}, | |||
| // 表单校验 | |||
| rules: { | |||
| }, | |||
| columns: [ | |||
| { key: 0, label: "日期", visible: true }, | |||
| { key: 1, label: "关联接单地址", visible: true }, | |||
| ], | |||
| }; | |||
| }, | |||
| created() { | |||
| this.getList(); | |||
| }, | |||
| methods: { | |||
| /** 查询不接单日期列表 */ | |||
| getList() { | |||
| this.loading = true; | |||
| listAppletOutDate(this.queryParams).then(response => { | |||
| this.AppletOutDateList = response.rows; | |||
| this.total = response.total; | |||
| this.loading = false; | |||
| }); | |||
| }, | |||
| // 取消按钮 | |||
| cancel() { | |||
| this.open = false; | |||
| this.reset(); | |||
| }, | |||
| // 表单重置 | |||
| reset() { | |||
| this.form = { | |||
| date: null, | |||
| addressId: null, | |||
| }; | |||
| this.resetForm("form"); | |||
| }, | |||
| /** 搜索按钮操作 */ | |||
| handleQuery() { | |||
| this.queryParams.pageNum = 1; | |||
| this.getList(); | |||
| }, | |||
| /** 重置按钮操作 */ | |||
| resetQuery() { | |||
| this.resetForm("queryForm"); | |||
| this.handleQuery(); | |||
| }, | |||
| // 多选框选中数据 | |||
| handleSelectionChange(selection) { | |||
| this.ids = selection.map(item => item.date) | |||
| this.single = selection.length!==1 | |||
| this.multiple = !selection.length | |||
| }, | |||
| /** 新增按钮操作 */ | |||
| handleAdd() { | |||
| this.reset(); | |||
| this.open = true; | |||
| this.title = "添加不接单日期"; | |||
| }, | |||
| /** 修改按钮操作 */ | |||
| handleUpdate(row) { | |||
| this.reset(); | |||
| const date = row.date || this.ids | |||
| getAppletOutDate(date).then(response => { | |||
| this.form = response.data; | |||
| this.open = true; | |||
| this.title = "修改不接单日期"; | |||
| }); | |||
| }, | |||
| /** 提交按钮 */ | |||
| submitForm() { | |||
| this.$refs["form"].validate(valid => { | |||
| if (valid) { | |||
| if (this.form.date != null) { | |||
| updateAppletOutDate(this.form).then(response => { | |||
| this.$modal.msgSuccess("修改成功"); | |||
| this.open = false; | |||
| this.getList(); | |||
| }); | |||
| } else { | |||
| addAppletOutDate(this.form).then(response => { | |||
| this.$modal.msgSuccess("新增成功"); | |||
| this.open = false; | |||
| this.getList(); | |||
| }); | |||
| } | |||
| } | |||
| }); | |||
| }, | |||
| /** 删除按钮操作 */ | |||
| handleDelete(row) { | |||
| const dates = row.date || this.ids; | |||
| this.$modal.confirm('是否确认删除不接单日期编号为"' + dates + '"的数据项?').then(function() { | |||
| return delAppletOutDate(dates); | |||
| }).then(() => { | |||
| this.getList(); | |||
| this.$modal.msgSuccess("删除成功"); | |||
| }).catch(() => {}); | |||
| }, | |||
| /** 导出按钮操作 */ | |||
| handleExport() { | |||
| const queryParams = this.queryParams; | |||
| this.$modal.confirm('是否确认导出所有不接单日期数据项?').then(() => { | |||
| this.exportLoading = true; | |||
| return exportAppletOutDate(queryParams); | |||
| }).then(response => { | |||
| this.download(response.msg); | |||
| this.exportLoading = false; | |||
| }).catch(() => {}); | |||
| } | |||
| } | |||
| }; | |||
| </script> | |||
| @ -0,0 +1,104 @@ | |||
| package com.ruoyi.model.controller; | |||
| import java.io.IOException; | |||
| import java.util.List; | |||
| import javax.servlet.http.HttpServletResponse; | |||
| import org.springframework.security.access.prepost.PreAuthorize; | |||
| import org.springframework.beans.factory.annotation.Autowired; | |||
| import org.springframework.web.bind.annotation.GetMapping; | |||
| import org.springframework.web.bind.annotation.PostMapping; | |||
| import org.springframework.web.bind.annotation.PutMapping; | |||
| import org.springframework.web.bind.annotation.DeleteMapping; | |||
| import org.springframework.web.bind.annotation.PathVariable; | |||
| import org.springframework.web.bind.annotation.RequestBody; | |||
| import org.springframework.web.bind.annotation.RequestMapping; | |||
| import org.springframework.web.bind.annotation.RestController; | |||
| import com.ruoyi.common.annotation.Log; | |||
| import com.ruoyi.common.core.controller.BaseController; | |||
| import com.ruoyi.common.core.domain.AjaxResult; | |||
| import com.ruoyi.common.enums.BusinessType; | |||
| import com.ruoyi.model.domain.AppletAddress; | |||
| import com.ruoyi.model.service.IAppletAddressService; | |||
| import com.ruoyi.common.utils.poi.ExcelUtil; | |||
| import com.ruoyi.common.core.page.TableDataInfo; | |||
| /** | |||
| * 地址信息Controller | |||
| * | |||
| * @author ruoyi | |||
| * @date 2025-03-27 | |||
| */ | |||
| @RestController | |||
| @RequestMapping("/model/AppletAddress") | |||
| public class AppletAddressController extends BaseController | |||
| { | |||
| @Autowired | |||
| private IAppletAddressService appletAddressService; | |||
| /** | |||
| * 查询地址信息列表 | |||
| */ | |||
| @PreAuthorize("@ss.hasPermi('model:AppletAddress:list')") | |||
| @GetMapping("/list") | |||
| public TableDataInfo list(AppletAddress appletAddress) | |||
| { | |||
| startPage(); | |||
| List<AppletAddress> list = appletAddressService.selectAppletAddressList(appletAddress); | |||
| return getDataTable(list); | |||
| } | |||
| /** | |||
| * 导出地址信息列表 | |||
| */ | |||
| @PreAuthorize("@ss.hasPermi('model:AppletAddress:export')") | |||
| @Log(title = "地址信息", businessType = BusinessType.EXPORT) | |||
| @PostMapping("/export") | |||
| public void export(HttpServletResponse response, AppletAddress appletAddress) throws IOException { | |||
| List<AppletAddress> list = appletAddressService.selectAppletAddressList(appletAddress); | |||
| ExcelUtil<AppletAddress> util = new ExcelUtil<AppletAddress>(AppletAddress.class); | |||
| util.exportExcel(response, list, "地址信息数据"); | |||
| } | |||
| /** | |||
| * 获取地址信息详细信息 | |||
| */ | |||
| @PreAuthorize("@ss.hasPermi('model:AppletAddress:query')") | |||
| @GetMapping(value = "/{area}") | |||
| public AjaxResult getInfo(@PathVariable("area") String area) | |||
| { | |||
| return success(appletAddressService.selectAppletAddressByArea(area)); | |||
| } | |||
| /** | |||
| * 新增地址信息 | |||
| */ | |||
| @PreAuthorize("@ss.hasPermi('model:AppletAddress:add')") | |||
| @Log(title = "地址信息", businessType = BusinessType.INSERT) | |||
| @PostMapping | |||
| public AjaxResult add(@RequestBody AppletAddress appletAddress) | |||
| { | |||
| return toAjax(appletAddressService.insertAppletAddress(appletAddress)); | |||
| } | |||
| /** | |||
| * 修改地址信息 | |||
| */ | |||
| @PreAuthorize("@ss.hasPermi('model:AppletAddress:edit')") | |||
| @Log(title = "地址信息", businessType = BusinessType.UPDATE) | |||
| @PutMapping | |||
| public AjaxResult edit(@RequestBody AppletAddress appletAddress) | |||
| { | |||
| return toAjax(appletAddressService.updateAppletAddress(appletAddress)); | |||
| } | |||
| /** | |||
| * 删除地址信息 | |||
| */ | |||
| @PreAuthorize("@ss.hasPermi('model:AppletAddress:remove')") | |||
| @Log(title = "地址信息", businessType = BusinessType.DELETE) | |||
| @DeleteMapping("/{areas}") | |||
| public AjaxResult remove(@PathVariable String[] areas) | |||
| { | |||
| return toAjax(appletAddressService.deleteAppletAddressByAreas(areas)); | |||
| } | |||
| } | |||
| @ -0,0 +1,104 @@ | |||
| package com.ruoyi.model.controller; | |||
| import java.io.IOException; | |||
| import java.util.List; | |||
| import javax.servlet.http.HttpServletResponse; | |||
| import org.springframework.security.access.prepost.PreAuthorize; | |||
| import org.springframework.beans.factory.annotation.Autowired; | |||
| import org.springframework.web.bind.annotation.GetMapping; | |||
| import org.springframework.web.bind.annotation.PostMapping; | |||
| import org.springframework.web.bind.annotation.PutMapping; | |||
| import org.springframework.web.bind.annotation.DeleteMapping; | |||
| import org.springframework.web.bind.annotation.PathVariable; | |||
| import org.springframework.web.bind.annotation.RequestBody; | |||
| import org.springframework.web.bind.annotation.RequestMapping; | |||
| import org.springframework.web.bind.annotation.RestController; | |||
| import com.ruoyi.common.annotation.Log; | |||
| import com.ruoyi.common.core.controller.BaseController; | |||
| import com.ruoyi.common.core.domain.AjaxResult; | |||
| import com.ruoyi.common.enums.BusinessType; | |||
| import com.ruoyi.model.domain.AppletConfig; | |||
| import com.ruoyi.model.service.IAppletConfigService; | |||
| import com.ruoyi.common.utils.poi.ExcelUtil; | |||
| import com.ruoyi.common.core.page.TableDataInfo; | |||
| /** | |||
| * 配置信息Controller | |||
| * | |||
| * @author ruoyi | |||
| * @date 2025-03-27 | |||
| */ | |||
| @RestController | |||
| @RequestMapping("/model/AppletConfig") | |||
| public class AppletConfigController extends BaseController | |||
| { | |||
| @Autowired | |||
| private IAppletConfigService appletConfigService; | |||
| /** | |||
| * 查询配置信息列表 | |||
| */ | |||
| @PreAuthorize("@ss.hasPermi('model:AppletConfig:list')") | |||
| @GetMapping("/list") | |||
| public TableDataInfo list(AppletConfig appletConfig) | |||
| { | |||
| startPage(); | |||
| List<AppletConfig> list = appletConfigService.selectAppletConfigList(appletConfig); | |||
| return getDataTable(list); | |||
| } | |||
| /** | |||
| * 导出配置信息列表 | |||
| */ | |||
| @PreAuthorize("@ss.hasPermi('model:AppletConfig:export')") | |||
| @Log(title = "配置信息", businessType = BusinessType.EXPORT) | |||
| @PostMapping("/export") | |||
| public void export(HttpServletResponse response, AppletConfig appletConfig) throws IOException { | |||
| List<AppletConfig> list = appletConfigService.selectAppletConfigList(appletConfig); | |||
| ExcelUtil<AppletConfig> util = new ExcelUtil<AppletConfig>(AppletConfig.class); | |||
| util.exportExcel(response, list, "配置信息数据"); | |||
| } | |||
| /** | |||
| * 获取配置信息详细信息 | |||
| */ | |||
| @PreAuthorize("@ss.hasPermi('model:AppletConfig:query')") | |||
| @GetMapping(value = "/{paramCode}") | |||
| public AjaxResult getInfo(@PathVariable("paramCode") String paramCode) | |||
| { | |||
| return success(appletConfigService.selectAppletConfigByParamCode(paramCode)); | |||
| } | |||
| /** | |||
| * 新增配置信息 | |||
| */ | |||
| @PreAuthorize("@ss.hasPermi('model:AppletConfig:add')") | |||
| @Log(title = "配置信息", businessType = BusinessType.INSERT) | |||
| @PostMapping | |||
| public AjaxResult add(@RequestBody AppletConfig appletConfig) | |||
| { | |||
| return toAjax(appletConfigService.insertAppletConfig(appletConfig)); | |||
| } | |||
| /** | |||
| * 修改配置信息 | |||
| */ | |||
| @PreAuthorize("@ss.hasPermi('model:AppletConfig:edit')") | |||
| @Log(title = "配置信息", businessType = BusinessType.UPDATE) | |||
| @PutMapping | |||
| public AjaxResult edit(@RequestBody AppletConfig appletConfig) | |||
| { | |||
| return toAjax(appletConfigService.updateAppletConfig(appletConfig)); | |||
| } | |||
| /** | |||
| * 删除配置信息 | |||
| */ | |||
| @PreAuthorize("@ss.hasPermi('model:AppletConfig:remove')") | |||
| @Log(title = "配置信息", businessType = BusinessType.DELETE) | |||
| @DeleteMapping("/{paramCodes}") | |||
| public AjaxResult remove(@PathVariable String[] paramCodes) | |||
| { | |||
| return toAjax(appletConfigService.deleteAppletConfigByParamCodes(paramCodes)); | |||
| } | |||
| } | |||
| @ -0,0 +1,105 @@ | |||
| package com.ruoyi.model.controller; | |||
| import java.io.IOException; | |||
| import java.util.Date; | |||
| import java.util.List; | |||
| import javax.servlet.http.HttpServletResponse; | |||
| import org.springframework.security.access.prepost.PreAuthorize; | |||
| import org.springframework.beans.factory.annotation.Autowired; | |||
| import org.springframework.web.bind.annotation.GetMapping; | |||
| import org.springframework.web.bind.annotation.PostMapping; | |||
| import org.springframework.web.bind.annotation.PutMapping; | |||
| import org.springframework.web.bind.annotation.DeleteMapping; | |||
| import org.springframework.web.bind.annotation.PathVariable; | |||
| import org.springframework.web.bind.annotation.RequestBody; | |||
| import org.springframework.web.bind.annotation.RequestMapping; | |||
| import org.springframework.web.bind.annotation.RestController; | |||
| import com.ruoyi.common.annotation.Log; | |||
| import com.ruoyi.common.core.controller.BaseController; | |||
| import com.ruoyi.common.core.domain.AjaxResult; | |||
| import com.ruoyi.common.enums.BusinessType; | |||
| import com.ruoyi.model.domain.AppletOutDate; | |||
| import com.ruoyi.model.service.IAppletOutDateService; | |||
| import com.ruoyi.common.utils.poi.ExcelUtil; | |||
| import com.ruoyi.common.core.page.TableDataInfo; | |||
| /** | |||
| * 不接单日期Controller | |||
| * | |||
| * @author ruoyi | |||
| * @date 2025-03-27 | |||
| */ | |||
| @RestController | |||
| @RequestMapping("/model/AppletOutDate") | |||
| public class AppletOutDateController extends BaseController | |||
| { | |||
| @Autowired | |||
| private IAppletOutDateService appletOutDateService; | |||
| /** | |||
| * 查询不接单日期列表 | |||
| */ | |||
| @PreAuthorize("@ss.hasPermi('model:AppletOutDate:list')") | |||
| @GetMapping("/list") | |||
| public TableDataInfo list(AppletOutDate appletOutDate) | |||
| { | |||
| startPage(); | |||
| List<AppletOutDate> list = appletOutDateService.selectAppletOutDateList(appletOutDate); | |||
| return getDataTable(list); | |||
| } | |||
| /** | |||
| * 导出不接单日期列表 | |||
| */ | |||
| @PreAuthorize("@ss.hasPermi('model:AppletOutDate:export')") | |||
| @Log(title = "不接单日期", businessType = BusinessType.EXPORT) | |||
| @PostMapping("/export") | |||
| public void export(HttpServletResponse response, AppletOutDate appletOutDate) throws IOException { | |||
| List<AppletOutDate> list = appletOutDateService.selectAppletOutDateList(appletOutDate); | |||
| ExcelUtil<AppletOutDate> util = new ExcelUtil<AppletOutDate>(AppletOutDate.class); | |||
| util.exportExcel(response, list, "不接单日期数据"); | |||
| } | |||
| /** | |||
| * 获取不接单日期详细信息 | |||
| */ | |||
| @PreAuthorize("@ss.hasPermi('model:AppletOutDate:query')") | |||
| @GetMapping(value = "/{date}") | |||
| public AjaxResult getInfo(@PathVariable("date") Date date) | |||
| { | |||
| return success(appletOutDateService.selectAppletOutDateByDate(date)); | |||
| } | |||
| /** | |||
| * 新增不接单日期 | |||
| */ | |||
| @PreAuthorize("@ss.hasPermi('model:AppletOutDate:add')") | |||
| @Log(title = "不接单日期", businessType = BusinessType.INSERT) | |||
| @PostMapping | |||
| public AjaxResult add(@RequestBody AppletOutDate appletOutDate) | |||
| { | |||
| return toAjax(appletOutDateService.insertAppletOutDate(appletOutDate)); | |||
| } | |||
| /** | |||
| * 修改不接单日期 | |||
| */ | |||
| @PreAuthorize("@ss.hasPermi('model:AppletOutDate:edit')") | |||
| @Log(title = "不接单日期", businessType = BusinessType.UPDATE) | |||
| @PutMapping | |||
| public AjaxResult edit(@RequestBody AppletOutDate appletOutDate) | |||
| { | |||
| return toAjax(appletOutDateService.updateAppletOutDate(appletOutDate)); | |||
| } | |||
| /** | |||
| * 删除不接单日期 | |||
| */ | |||
| @PreAuthorize("@ss.hasPermi('model:AppletOutDate:remove')") | |||
| @Log(title = "不接单日期", businessType = BusinessType.DELETE) | |||
| @DeleteMapping("/{dates}") | |||
| public AjaxResult remove(@PathVariable Date[] dates) | |||
| { | |||
| return toAjax(appletOutDateService.deleteAppletOutDateByDates(dates)); | |||
| } | |||
| } | |||
| @ -0,0 +1,110 @@ | |||
| package com.ruoyi.model.domain; | |||
| import java.util.Date; | |||
| import com.fasterxml.jackson.annotation.JsonFormat; | |||
| import org.apache.commons.lang3.builder.ToStringBuilder; | |||
| import org.apache.commons.lang3.builder.ToStringStyle; | |||
| import com.ruoyi.common.annotation.Excel; | |||
| import com.ruoyi.common.core.domain.BaseEntity; | |||
| /** | |||
| * 地址信息对象 applet_address | |||
| * | |||
| * @author ruoyi | |||
| * @date 2025-03-27 | |||
| */ | |||
| public class AppletAddress extends BaseEntity | |||
| { | |||
| private static final long serialVersionUID = 1L; | |||
| /** 接单地址 */ | |||
| @Excel(name = "接单地址") | |||
| private String area; | |||
| /** 详细地址 */ | |||
| @Excel(name = "详细地址") | |||
| private String address; | |||
| /** 接单状态 */ | |||
| @Excel(name = "接单状态") | |||
| private String status; | |||
| /** 接单范围 */ | |||
| @Excel(name = "接单范围") | |||
| private String range; | |||
| /** $column.columnComment */ | |||
| @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") | |||
| private Date outDate; | |||
| /** 关联用户id */ | |||
| @Excel(name = "关联用户id") | |||
| private Long userId; | |||
| public void setArea(String area) | |||
| { | |||
| this.area = area; | |||
| } | |||
| public String getArea() | |||
| { | |||
| return area; | |||
| } | |||
| public void setAddress(String address) | |||
| { | |||
| this.address = address; | |||
| } | |||
| public String getAddress() | |||
| { | |||
| return address; | |||
| } | |||
| public void setStatus(String status) | |||
| { | |||
| this.status = status; | |||
| } | |||
| public String getStatus() | |||
| { | |||
| return status; | |||
| } | |||
| public void setRange(String range) | |||
| { | |||
| this.range = range; | |||
| } | |||
| public String getRange() | |||
| { | |||
| return range; | |||
| } | |||
| public void setOutDate(Date outDate) | |||
| { | |||
| this.outDate = outDate; | |||
| } | |||
| public Date getOutDate() | |||
| { | |||
| return outDate; | |||
| } | |||
| public void setUserId(Long userId) | |||
| { | |||
| this.userId = userId; | |||
| } | |||
| public Long getUserId() | |||
| { | |||
| return userId; | |||
| } | |||
| @Override | |||
| public String toString() { | |||
| return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) | |||
| .append("area", getArea()) | |||
| .append("address", getAddress()) | |||
| .append("status", getStatus()) | |||
| .append("range", getRange()) | |||
| .append("outDate", getOutDate()) | |||
| .append("userId", getUserId()) | |||
| .toString(); | |||
| } | |||
| } | |||
| @ -0,0 +1,80 @@ | |||
| package com.ruoyi.model.domain; | |||
| import org.apache.commons.lang3.builder.ToStringBuilder; | |||
| import org.apache.commons.lang3.builder.ToStringStyle; | |||
| import com.ruoyi.common.annotation.Excel; | |||
| import com.ruoyi.common.core.domain.BaseEntity; | |||
| /** | |||
| * 配置信息对象 applet_config | |||
| * | |||
| * @author ruoyi | |||
| * @date 2025-03-27 | |||
| */ | |||
| public class AppletConfig extends BaseEntity | |||
| { | |||
| private static final long serialVersionUID = 1L; | |||
| /** 参数编码 */ | |||
| @Excel(name = "参数编码") | |||
| private String paramCode; | |||
| /** 参数值-普通文本 */ | |||
| @Excel(name = "参数值-普通文本") | |||
| private String paramValueText; | |||
| /** 参数值-图片 */ | |||
| @Excel(name = "参数值-图片") | |||
| private String paramValueImage; | |||
| /** 参数值-富文本 */ | |||
| @Excel(name = "参数值-富文本") | |||
| private String paramValueArea; | |||
| public void setParamCode(String paramCode) | |||
| { | |||
| this.paramCode = paramCode; | |||
| } | |||
| public String getParamCode() | |||
| { | |||
| return paramCode; | |||
| } | |||
| public void setParamValueText(String paramValueText) | |||
| { | |||
| this.paramValueText = paramValueText; | |||
| } | |||
| public String getParamValueText() | |||
| { | |||
| return paramValueText; | |||
| } | |||
| public void setParamValueImage(String paramValueImage) | |||
| { | |||
| this.paramValueImage = paramValueImage; | |||
| } | |||
| public String getParamValueImage() | |||
| { | |||
| return paramValueImage; | |||
| } | |||
| public void setParamValueArea(String paramValueArea) | |||
| { | |||
| this.paramValueArea = paramValueArea; | |||
| } | |||
| public String getParamValueArea() | |||
| { | |||
| return paramValueArea; | |||
| } | |||
| @Override | |||
| public String toString() { | |||
| return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) | |||
| .append("paramCode", getParamCode()) | |||
| .append("paramValueText", getParamValueText()) | |||
| .append("paramValueImage", getParamValueImage()) | |||
| .append("paramValueArea", getParamValueArea()) | |||
| .toString(); | |||
| } | |||
| } | |||
| @ -0,0 +1,55 @@ | |||
| package com.ruoyi.model.domain; | |||
| import java.util.Date; | |||
| import com.fasterxml.jackson.annotation.JsonFormat; | |||
| import org.apache.commons.lang3.builder.ToStringBuilder; | |||
| import org.apache.commons.lang3.builder.ToStringStyle; | |||
| import com.ruoyi.common.annotation.Excel; | |||
| import com.ruoyi.common.core.domain.BaseEntity; | |||
| /** | |||
| * 不接单日期对象 applet_out_date | |||
| * | |||
| * @author ruoyi | |||
| * @date 2025-03-27 | |||
| */ | |||
| public class AppletOutDate extends BaseEntity | |||
| { | |||
| private static final long serialVersionUID = 1L; | |||
| /** 日期 */ | |||
| @JsonFormat(pattern = "yyyy-MM-dd") | |||
| @Excel(name = "日期", width = 30, dateFormat = "yyyy-MM-dd") | |||
| private Date date; | |||
| /** 关联接单地址 */ | |||
| @Excel(name = "关联接单地址") | |||
| private Long addressId; | |||
| public void setDate(Date date) | |||
| { | |||
| this.date = date; | |||
| } | |||
| public Date getDate() | |||
| { | |||
| return date; | |||
| } | |||
| public void setAddressId(Long addressId) | |||
| { | |||
| this.addressId = addressId; | |||
| } | |||
| public Long getAddressId() | |||
| { | |||
| return addressId; | |||
| } | |||
| @Override | |||
| public String toString() { | |||
| return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) | |||
| .append("date", getDate()) | |||
| .append("addressId", getAddressId()) | |||
| .toString(); | |||
| } | |||
| } | |||
| @ -0,0 +1,61 @@ | |||
| package com.ruoyi.model.mapper; | |||
| import java.util.List; | |||
| import com.ruoyi.model.domain.AppletAddress; | |||
| /** | |||
| * 地址信息Mapper接口 | |||
| * | |||
| * @author ruoyi | |||
| * @date 2025-03-27 | |||
| */ | |||
| public interface AppletAddressMapper | |||
| { | |||
| /** | |||
| * 查询地址信息 | |||
| * | |||
| * @param area 地址信息主键 | |||
| * @return 地址信息 | |||
| */ | |||
| public AppletAddress selectAppletAddressByArea(String area); | |||
| /** | |||
| * 查询地址信息列表 | |||
| * | |||
| * @param appletAddress 地址信息 | |||
| * @return 地址信息集合 | |||
| */ | |||
| public List<AppletAddress> selectAppletAddressList(AppletAddress appletAddress); | |||
| /** | |||
| * 新增地址信息 | |||
| * | |||
| * @param appletAddress 地址信息 | |||
| * @return 结果 | |||
| */ | |||
| public int insertAppletAddress(AppletAddress appletAddress); | |||
| /** | |||
| * 修改地址信息 | |||
| * | |||
| * @param appletAddress 地址信息 | |||
| * @return 结果 | |||
| */ | |||
| public int updateAppletAddress(AppletAddress appletAddress); | |||
| /** | |||
| * 删除地址信息 | |||
| * | |||
| * @param area 地址信息主键 | |||
| * @return 结果 | |||
| */ | |||
| public int deleteAppletAddressByArea(String area); | |||
| /** | |||
| * 批量删除地址信息 | |||
| * | |||
| * @param areas 需要删除的数据主键集合 | |||
| * @return 结果 | |||
| */ | |||
| public int deleteAppletAddressByAreas(String[] areas); | |||
| } | |||
| @ -0,0 +1,61 @@ | |||
| package com.ruoyi.model.mapper; | |||
| import java.util.List; | |||
| import com.ruoyi.model.domain.AppletConfig; | |||
| /** | |||
| * 配置信息Mapper接口 | |||
| * | |||
| * @author ruoyi | |||
| * @date 2025-03-27 | |||
| */ | |||
| public interface AppletConfigMapper | |||
| { | |||
| /** | |||
| * 查询配置信息 | |||
| * | |||
| * @param paramCode 配置信息主键 | |||
| * @return 配置信息 | |||
| */ | |||
| public AppletConfig selectAppletConfigByParamCode(String paramCode); | |||
| /** | |||
| * 查询配置信息列表 | |||
| * | |||
| * @param appletConfig 配置信息 | |||
| * @return 配置信息集合 | |||
| */ | |||
| public List<AppletConfig> selectAppletConfigList(AppletConfig appletConfig); | |||
| /** | |||
| * 新增配置信息 | |||
| * | |||
| * @param appletConfig 配置信息 | |||
| * @return 结果 | |||
| */ | |||
| public int insertAppletConfig(AppletConfig appletConfig); | |||
| /** | |||
| * 修改配置信息 | |||
| * | |||
| * @param appletConfig 配置信息 | |||
| * @return 结果 | |||
| */ | |||
| public int updateAppletConfig(AppletConfig appletConfig); | |||
| /** | |||
| * 删除配置信息 | |||
| * | |||
| * @param paramCode 配置信息主键 | |||
| * @return 结果 | |||
| */ | |||
| public int deleteAppletConfigByParamCode(String paramCode); | |||
| /** | |||
| * 批量删除配置信息 | |||
| * | |||
| * @param paramCodes 需要删除的数据主键集合 | |||
| * @return 结果 | |||
| */ | |||
| public int deleteAppletConfigByParamCodes(String[] paramCodes); | |||
| } | |||
| @ -0,0 +1,62 @@ | |||
| package com.ruoyi.model.mapper; | |||
| import java.util.Date; | |||
| import java.util.List; | |||
| import com.ruoyi.model.domain.AppletOutDate; | |||
| /** | |||
| * 不接单日期Mapper接口 | |||
| * | |||
| * @author ruoyi | |||
| * @date 2025-03-27 | |||
| */ | |||
| public interface AppletOutDateMapper | |||
| { | |||
| /** | |||
| * 查询不接单日期 | |||
| * | |||
| * @param date 不接单日期主键 | |||
| * @return 不接单日期 | |||
| */ | |||
| public AppletOutDate selectAppletOutDateByDate(Date date); | |||
| /** | |||
| * 查询不接单日期列表 | |||
| * | |||
| * @param appletOutDate 不接单日期 | |||
| * @return 不接单日期集合 | |||
| */ | |||
| public List<AppletOutDate> selectAppletOutDateList(AppletOutDate appletOutDate); | |||
| /** | |||
| * 新增不接单日期 | |||
| * | |||
| * @param appletOutDate 不接单日期 | |||
| * @return 结果 | |||
| */ | |||
| public int insertAppletOutDate(AppletOutDate appletOutDate); | |||
| /** | |||
| * 修改不接单日期 | |||
| * | |||
| * @param appletOutDate 不接单日期 | |||
| * @return 结果 | |||
| */ | |||
| public int updateAppletOutDate(AppletOutDate appletOutDate); | |||
| /** | |||
| * 删除不接单日期 | |||
| * | |||
| * @param date 不接单日期主键 | |||
| * @return 结果 | |||
| */ | |||
| public int deleteAppletOutDateByDate(Date date); | |||
| /** | |||
| * 批量删除不接单日期 | |||
| * | |||
| * @param dates 需要删除的数据主键集合 | |||
| * @return 结果 | |||
| */ | |||
| public int deleteAppletOutDateByDates(Date[] dates); | |||
| } | |||
| @ -0,0 +1,61 @@ | |||
| package com.ruoyi.model.service; | |||
| import java.util.List; | |||
| import com.ruoyi.model.domain.AppletAddress; | |||
| /** | |||
| * 地址信息Service接口 | |||
| * | |||
| * @author ruoyi | |||
| * @date 2025-03-27 | |||
| */ | |||
| public interface IAppletAddressService | |||
| { | |||
| /** | |||
| * 查询地址信息 | |||
| * | |||
| * @param area 地址信息主键 | |||
| * @return 地址信息 | |||
| */ | |||
| public AppletAddress selectAppletAddressByArea(String area); | |||
| /** | |||
| * 查询地址信息列表 | |||
| * | |||
| * @param appletAddress 地址信息 | |||
| * @return 地址信息集合 | |||
| */ | |||
| public List<AppletAddress> selectAppletAddressList(AppletAddress appletAddress); | |||
| /** | |||
| * 新增地址信息 | |||
| * | |||
| * @param appletAddress 地址信息 | |||
| * @return 结果 | |||
| */ | |||
| public int insertAppletAddress(AppletAddress appletAddress); | |||
| /** | |||
| * 修改地址信息 | |||
| * | |||
| * @param appletAddress 地址信息 | |||
| * @return 结果 | |||
| */ | |||
| public int updateAppletAddress(AppletAddress appletAddress); | |||
| /** | |||
| * 批量删除地址信息 | |||
| * | |||
| * @param areas 需要删除的地址信息主键集合 | |||
| * @return 结果 | |||
| */ | |||
| public int deleteAppletAddressByAreas(String[] areas); | |||
| /** | |||
| * 删除地址信息信息 | |||
| * | |||
| * @param area 地址信息主键 | |||
| * @return 结果 | |||
| */ | |||
| public int deleteAppletAddressByArea(String area); | |||
| } | |||
| @ -0,0 +1,61 @@ | |||
| package com.ruoyi.model.service; | |||
| import java.util.List; | |||
| import com.ruoyi.model.domain.AppletConfig; | |||
| /** | |||
| * 配置信息Service接口 | |||
| * | |||
| * @author ruoyi | |||
| * @date 2025-03-27 | |||
| */ | |||
| public interface IAppletConfigService | |||
| { | |||
| /** | |||
| * 查询配置信息 | |||
| * | |||
| * @param paramCode 配置信息主键 | |||
| * @return 配置信息 | |||
| */ | |||
| public AppletConfig selectAppletConfigByParamCode(String paramCode); | |||
| /** | |||
| * 查询配置信息列表 | |||
| * | |||
| * @param appletConfig 配置信息 | |||
| * @return 配置信息集合 | |||
| */ | |||
| public List<AppletConfig> selectAppletConfigList(AppletConfig appletConfig); | |||
| /** | |||
| * 新增配置信息 | |||
| * | |||
| * @param appletConfig 配置信息 | |||
| * @return 结果 | |||
| */ | |||
| public int insertAppletConfig(AppletConfig appletConfig); | |||
| /** | |||
| * 修改配置信息 | |||
| * | |||
| * @param appletConfig 配置信息 | |||
| * @return 结果 | |||
| */ | |||
| public int updateAppletConfig(AppletConfig appletConfig); | |||
| /** | |||
| * 批量删除配置信息 | |||
| * | |||
| * @param paramCodes 需要删除的配置信息主键集合 | |||
| * @return 结果 | |||
| */ | |||
| public int deleteAppletConfigByParamCodes(String[] paramCodes); | |||
| /** | |||
| * 删除配置信息信息 | |||
| * | |||
| * @param paramCode 配置信息主键 | |||
| * @return 结果 | |||
| */ | |||
| public int deleteAppletConfigByParamCode(String paramCode); | |||
| } | |||
| @ -0,0 +1,62 @@ | |||
| package com.ruoyi.model.service; | |||
| import java.util.Date; | |||
| import java.util.List; | |||
| import com.ruoyi.model.domain.AppletOutDate; | |||
| /** | |||
| * 不接单日期Service接口 | |||
| * | |||
| * @author ruoyi | |||
| * @date 2025-03-27 | |||
| */ | |||
| public interface IAppletOutDateService | |||
| { | |||
| /** | |||
| * 查询不接单日期 | |||
| * | |||
| * @param date 不接单日期主键 | |||
| * @return 不接单日期 | |||
| */ | |||
| public AppletOutDate selectAppletOutDateByDate(Date date); | |||
| /** | |||
| * 查询不接单日期列表 | |||
| * | |||
| * @param appletOutDate 不接单日期 | |||
| * @return 不接单日期集合 | |||
| */ | |||
| public List<AppletOutDate> selectAppletOutDateList(AppletOutDate appletOutDate); | |||
| /** | |||
| * 新增不接单日期 | |||
| * | |||
| * @param appletOutDate 不接单日期 | |||
| * @return 结果 | |||
| */ | |||
| public int insertAppletOutDate(AppletOutDate appletOutDate); | |||
| /** | |||
| * 修改不接单日期 | |||
| * | |||
| * @param appletOutDate 不接单日期 | |||
| * @return 结果 | |||
| */ | |||
| public int updateAppletOutDate(AppletOutDate appletOutDate); | |||
| /** | |||
| * 批量删除不接单日期 | |||
| * | |||
| * @param dates 需要删除的不接单日期主键集合 | |||
| * @return 结果 | |||
| */ | |||
| public int deleteAppletOutDateByDates(Date[] dates); | |||
| /** | |||
| * 删除不接单日期信息 | |||
| * | |||
| * @param date 不接单日期主键 | |||
| * @return 结果 | |||
| */ | |||
| public int deleteAppletOutDateByDate(Date date); | |||
| } | |||
| @ -0,0 +1,93 @@ | |||
| package com.ruoyi.model.service.impl; | |||
| import java.util.List; | |||
| import org.springframework.beans.factory.annotation.Autowired; | |||
| import org.springframework.stereotype.Service; | |||
| import com.ruoyi.model.mapper.AppletAddressMapper; | |||
| import com.ruoyi.model.domain.AppletAddress; | |||
| import com.ruoyi.model.service.IAppletAddressService; | |||
| /** | |||
| * 地址信息Service业务层处理 | |||
| * | |||
| * @author ruoyi | |||
| * @date 2025-03-27 | |||
| */ | |||
| @Service | |||
| public class AppletAddressServiceImpl implements IAppletAddressService | |||
| { | |||
| @Autowired | |||
| private AppletAddressMapper appletAddressMapper; | |||
| /** | |||
| * 查询地址信息 | |||
| * | |||
| * @param area 地址信息主键 | |||
| * @return 地址信息 | |||
| */ | |||
| @Override | |||
| public AppletAddress selectAppletAddressByArea(String area) | |||
| { | |||
| return appletAddressMapper.selectAppletAddressByArea(area); | |||
| } | |||
| /** | |||
| * 查询地址信息列表 | |||
| * | |||
| * @param appletAddress 地址信息 | |||
| * @return 地址信息 | |||
| */ | |||
| @Override | |||
| public List<AppletAddress> selectAppletAddressList(AppletAddress appletAddress) | |||
| { | |||
| return appletAddressMapper.selectAppletAddressList(appletAddress); | |||
| } | |||
| /** | |||
| * 新增地址信息 | |||
| * | |||
| * @param appletAddress 地址信息 | |||
| * @return 结果 | |||
| */ | |||
| @Override | |||
| public int insertAppletAddress(AppletAddress appletAddress) | |||
| { | |||
| return appletAddressMapper.insertAppletAddress(appletAddress); | |||
| } | |||
| /** | |||
| * 修改地址信息 | |||
| * | |||
| * @param appletAddress 地址信息 | |||
| * @return 结果 | |||
| */ | |||
| @Override | |||
| public int updateAppletAddress(AppletAddress appletAddress) | |||
| { | |||
| return appletAddressMapper.updateAppletAddress(appletAddress); | |||
| } | |||
| /** | |||
| * 批量删除地址信息 | |||
| * | |||
| * @param areas 需要删除的地址信息主键 | |||
| * @return 结果 | |||
| */ | |||
| @Override | |||
| public int deleteAppletAddressByAreas(String[] areas) | |||
| { | |||
| return appletAddressMapper.deleteAppletAddressByAreas(areas); | |||
| } | |||
| /** | |||
| * 删除地址信息信息 | |||
| * | |||
| * @param area 地址信息主键 | |||
| * @return 结果 | |||
| */ | |||
| @Override | |||
| public int deleteAppletAddressByArea(String area) | |||
| { | |||
| return appletAddressMapper.deleteAppletAddressByArea(area); | |||
| } | |||
| } | |||
| @ -0,0 +1,93 @@ | |||
| package com.ruoyi.model.service.impl; | |||
| import java.util.List; | |||
| import org.springframework.beans.factory.annotation.Autowired; | |||
| import org.springframework.stereotype.Service; | |||
| import com.ruoyi.model.mapper.AppletConfigMapper; | |||
| import com.ruoyi.model.domain.AppletConfig; | |||
| import com.ruoyi.model.service.IAppletConfigService; | |||
| /** | |||
| * 配置信息Service业务层处理 | |||
| * | |||
| * @author ruoyi | |||
| * @date 2025-03-27 | |||
| */ | |||
| @Service | |||
| public class AppletConfigServiceImpl implements IAppletConfigService | |||
| { | |||
| @Autowired | |||
| private AppletConfigMapper appletConfigMapper; | |||
| /** | |||
| * 查询配置信息 | |||
| * | |||
| * @param paramCode 配置信息主键 | |||
| * @return 配置信息 | |||
| */ | |||
| @Override | |||
| public AppletConfig selectAppletConfigByParamCode(String paramCode) | |||
| { | |||
| return appletConfigMapper.selectAppletConfigByParamCode(paramCode); | |||
| } | |||
| /** | |||
| * 查询配置信息列表 | |||
| * | |||
| * @param appletConfig 配置信息 | |||
| * @return 配置信息 | |||
| */ | |||
| @Override | |||
| public List<AppletConfig> selectAppletConfigList(AppletConfig appletConfig) | |||
| { | |||
| return appletConfigMapper.selectAppletConfigList(appletConfig); | |||
| } | |||
| /** | |||
| * 新增配置信息 | |||
| * | |||
| * @param appletConfig 配置信息 | |||
| * @return 结果 | |||
| */ | |||
| @Override | |||
| public int insertAppletConfig(AppletConfig appletConfig) | |||
| { | |||
| return appletConfigMapper.insertAppletConfig(appletConfig); | |||
| } | |||
| /** | |||
| * 修改配置信息 | |||
| * | |||
| * @param appletConfig 配置信息 | |||
| * @return 结果 | |||
| */ | |||
| @Override | |||
| public int updateAppletConfig(AppletConfig appletConfig) | |||
| { | |||
| return appletConfigMapper.updateAppletConfig(appletConfig); | |||
| } | |||
| /** | |||
| * 批量删除配置信息 | |||
| * | |||
| * @param paramCodes 需要删除的配置信息主键 | |||
| * @return 结果 | |||
| */ | |||
| @Override | |||
| public int deleteAppletConfigByParamCodes(String[] paramCodes) | |||
| { | |||
| return appletConfigMapper.deleteAppletConfigByParamCodes(paramCodes); | |||
| } | |||
| /** | |||
| * 删除配置信息信息 | |||
| * | |||
| * @param paramCode 配置信息主键 | |||
| * @return 结果 | |||
| */ | |||
| @Override | |||
| public int deleteAppletConfigByParamCode(String paramCode) | |||
| { | |||
| return appletConfigMapper.deleteAppletConfigByParamCode(paramCode); | |||
| } | |||
| } | |||
| @ -0,0 +1,94 @@ | |||
| package com.ruoyi.model.service.impl; | |||
| import java.util.Date; | |||
| import java.util.List; | |||
| import org.springframework.beans.factory.annotation.Autowired; | |||
| import org.springframework.stereotype.Service; | |||
| import com.ruoyi.model.mapper.AppletOutDateMapper; | |||
| import com.ruoyi.model.domain.AppletOutDate; | |||
| import com.ruoyi.model.service.IAppletOutDateService; | |||
| /** | |||
| * 不接单日期Service业务层处理 | |||
| * | |||
| * @author ruoyi | |||
| * @date 2025-03-27 | |||
| */ | |||
| @Service | |||
| public class AppletOutDateServiceImpl implements IAppletOutDateService | |||
| { | |||
| @Autowired | |||
| private AppletOutDateMapper appletOutDateMapper; | |||
| /** | |||
| * 查询不接单日期 | |||
| * | |||
| * @param date 不接单日期主键 | |||
| * @return 不接单日期 | |||
| */ | |||
| @Override | |||
| public AppletOutDate selectAppletOutDateByDate(Date date) | |||
| { | |||
| return appletOutDateMapper.selectAppletOutDateByDate(date); | |||
| } | |||
| /** | |||
| * 查询不接单日期列表 | |||
| * | |||
| * @param appletOutDate 不接单日期 | |||
| * @return 不接单日期 | |||
| */ | |||
| @Override | |||
| public List<AppletOutDate> selectAppletOutDateList(AppletOutDate appletOutDate) | |||
| { | |||
| return appletOutDateMapper.selectAppletOutDateList(appletOutDate); | |||
| } | |||
| /** | |||
| * 新增不接单日期 | |||
| * | |||
| * @param appletOutDate 不接单日期 | |||
| * @return 结果 | |||
| */ | |||
| @Override | |||
| public int insertAppletOutDate(AppletOutDate appletOutDate) | |||
| { | |||
| return appletOutDateMapper.insertAppletOutDate(appletOutDate); | |||
| } | |||
| /** | |||
| * 修改不接单日期 | |||
| * | |||
| * @param appletOutDate 不接单日期 | |||
| * @return 结果 | |||
| */ | |||
| @Override | |||
| public int updateAppletOutDate(AppletOutDate appletOutDate) | |||
| { | |||
| return appletOutDateMapper.updateAppletOutDate(appletOutDate); | |||
| } | |||
| /** | |||
| * 批量删除不接单日期 | |||
| * | |||
| * @param dates 需要删除的不接单日期主键 | |||
| * @return 结果 | |||
| */ | |||
| @Override | |||
| public int deleteAppletOutDateByDates(Date[] dates) | |||
| { | |||
| return appletOutDateMapper.deleteAppletOutDateByDates(dates); | |||
| } | |||
| /** | |||
| * 删除不接单日期信息 | |||
| * | |||
| * @param date 不接单日期主键 | |||
| * @return 结果 | |||
| */ | |||
| @Override | |||
| public int deleteAppletOutDateByDate(Date date) | |||
| { | |||
| return appletOutDateMapper.deleteAppletOutDateByDate(date); | |||
| } | |||
| } | |||
| @ -0,0 +1,79 @@ | |||
| <?xml version="1.0" encoding="UTF-8" ?> | |||
| <!DOCTYPE mapper | |||
| PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" | |||
| "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | |||
| <mapper namespace="com.ruoyi.model.mapper.AppletAddressMapper"> | |||
| <resultMap type="AppletAddress" id="AppletAddressResult"> | |||
| <result property="area" column="area" /> | |||
| <result property="address" column="address" /> | |||
| <result property="status" column="status" /> | |||
| <result property="range" column="range" /> | |||
| <result property="outDate" column="out_date" /> | |||
| <result property="userId" column="user_id" /> | |||
| </resultMap> | |||
| <sql id="selectAppletAddressVo"> | |||
| select area, address, status, range, out_date, user_id from applet_address | |||
| </sql> | |||
| <select id="selectAppletAddressList" parameterType="AppletAddress" resultMap="AppletAddressResult"> | |||
| <include refid="selectAppletAddressVo"/> | |||
| <where> | |||
| <if test="area != null and area != ''"> and area = #{area}</if> | |||
| <if test="address != null and address != ''"> and address = #{address}</if> | |||
| <if test="status != null and status != ''"> and status = #{status}</if> | |||
| <if test="range != null and range != ''"> and range = #{range}</if> | |||
| <if test="outDate != null "> and out_date = #{outDate}</if> | |||
| <if test="userId != null "> and user_id = #{userId}</if> | |||
| </where> | |||
| </select> | |||
| <select id="selectAppletAddressByArea" parameterType="String" resultMap="AppletAddressResult"> | |||
| <include refid="selectAppletAddressVo"/> | |||
| where area = #{area} | |||
| </select> | |||
| <insert id="insertAppletAddress" parameterType="AppletAddress"> | |||
| insert into applet_address | |||
| <trim prefix="(" suffix=")" suffixOverrides=","> | |||
| <if test="area != null">area,</if> | |||
| <if test="address != null">address,</if> | |||
| <if test="status != null">status,</if> | |||
| <if test="range != null">range,</if> | |||
| <if test="outDate != null">out_date,</if> | |||
| <if test="userId != null">user_id,</if> | |||
| </trim> | |||
| <trim prefix="values (" suffix=")" suffixOverrides=","> | |||
| <if test="area != null">#{area},</if> | |||
| <if test="address != null">#{address},</if> | |||
| <if test="status != null">#{status},</if> | |||
| <if test="range != null">#{range},</if> | |||
| <if test="outDate != null">#{outDate},</if> | |||
| <if test="userId != null">#{userId},</if> | |||
| </trim> | |||
| </insert> | |||
| <update id="updateAppletAddress" parameterType="AppletAddress"> | |||
| update applet_address | |||
| <trim prefix="SET" suffixOverrides=","> | |||
| <if test="address != null">address = #{address},</if> | |||
| <if test="status != null">status = #{status},</if> | |||
| <if test="range != null">range = #{range},</if> | |||
| <if test="outDate != null">out_date = #{outDate},</if> | |||
| <if test="userId != null">user_id = #{userId},</if> | |||
| </trim> | |||
| where area = #{area} | |||
| </update> | |||
| <delete id="deleteAppletAddressByArea" parameterType="String"> | |||
| delete from applet_address where area = #{area} | |||
| </delete> | |||
| <delete id="deleteAppletAddressByAreas" parameterType="String"> | |||
| delete from applet_address where area in | |||
| <foreach item="area" collection="array" open="(" separator="," close=")"> | |||
| #{area} | |||
| </foreach> | |||
| </delete> | |||
| </mapper> | |||
| @ -0,0 +1,69 @@ | |||
| <?xml version="1.0" encoding="UTF-8" ?> | |||
| <!DOCTYPE mapper | |||
| PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" | |||
| "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | |||
| <mapper namespace="com.ruoyi.model.mapper.AppletConfigMapper"> | |||
| <resultMap type="AppletConfig" id="AppletConfigResult"> | |||
| <result property="paramCode" column="param_code" /> | |||
| <result property="paramValueText" column="param_value_text" /> | |||
| <result property="paramValueImage" column="param_value_image" /> | |||
| <result property="paramValueArea" column="param_value_area" /> | |||
| </resultMap> | |||
| <sql id="selectAppletConfigVo"> | |||
| select param_code, param_value_text, param_value_image, param_value_area from applet_config | |||
| </sql> | |||
| <select id="selectAppletConfigList" parameterType="AppletConfig" resultMap="AppletConfigResult"> | |||
| <include refid="selectAppletConfigVo"/> | |||
| <where> | |||
| <if test="paramCode != null and paramCode != ''"> and param_code = #{paramCode}</if> | |||
| <if test="paramValueText != null and paramValueText != ''"> and param_value_text = #{paramValueText}</if> | |||
| <if test="paramValueImage != null and paramValueImage != ''"> and param_value_image = #{paramValueImage}</if> | |||
| <if test="paramValueArea != null and paramValueArea != ''"> and param_value_area = #{paramValueArea}</if> | |||
| </where> | |||
| </select> | |||
| <select id="selectAppletConfigByParamCode" parameterType="String" resultMap="AppletConfigResult"> | |||
| <include refid="selectAppletConfigVo"/> | |||
| where param_code = #{paramCode} | |||
| </select> | |||
| <insert id="insertAppletConfig" parameterType="AppletConfig"> | |||
| insert into applet_config | |||
| <trim prefix="(" suffix=")" suffixOverrides=","> | |||
| <if test="paramCode != null">param_code,</if> | |||
| <if test="paramValueText != null">param_value_text,</if> | |||
| <if test="paramValueImage != null">param_value_image,</if> | |||
| <if test="paramValueArea != null">param_value_area,</if> | |||
| </trim> | |||
| <trim prefix="values (" suffix=")" suffixOverrides=","> | |||
| <if test="paramCode != null">#{paramCode},</if> | |||
| <if test="paramValueText != null">#{paramValueText},</if> | |||
| <if test="paramValueImage != null">#{paramValueImage},</if> | |||
| <if test="paramValueArea != null">#{paramValueArea},</if> | |||
| </trim> | |||
| </insert> | |||
| <update id="updateAppletConfig" parameterType="AppletConfig"> | |||
| update applet_config | |||
| <trim prefix="SET" suffixOverrides=","> | |||
| <if test="paramValueText != null">param_value_text = #{paramValueText},</if> | |||
| <if test="paramValueImage != null">param_value_image = #{paramValueImage},</if> | |||
| <if test="paramValueArea != null">param_value_area = #{paramValueArea},</if> | |||
| </trim> | |||
| where param_code = #{paramCode} | |||
| </update> | |||
| <delete id="deleteAppletConfigByParamCode" parameterType="String"> | |||
| delete from applet_config where param_code = #{paramCode} | |||
| </delete> | |||
| <delete id="deleteAppletConfigByParamCodes" parameterType="String"> | |||
| delete from applet_config where param_code in | |||
| <foreach item="paramCode" collection="array" open="(" separator="," close=")"> | |||
| #{paramCode} | |||
| </foreach> | |||
| </delete> | |||
| </mapper> | |||
| @ -0,0 +1,59 @@ | |||
| <?xml version="1.0" encoding="UTF-8" ?> | |||
| <!DOCTYPE mapper | |||
| PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" | |||
| "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | |||
| <mapper namespace="com.ruoyi.model.mapper.AppletOutDateMapper"> | |||
| <resultMap type="AppletOutDate" id="AppletOutDateResult"> | |||
| <result property="date" column="date" /> | |||
| <result property="addressId" column="address_id" /> | |||
| </resultMap> | |||
| <sql id="selectAppletOutDateVo"> | |||
| select date, address_id from applet_out_date | |||
| </sql> | |||
| <select id="selectAppletOutDateList" parameterType="AppletOutDate" resultMap="AppletOutDateResult"> | |||
| <include refid="selectAppletOutDateVo"/> | |||
| <where> | |||
| <if test="date != null "> and date = #{date}</if> | |||
| <if test="addressId != null "> and address_id = #{addressId}</if> | |||
| </where> | |||
| </select> | |||
| <select id="selectAppletOutDateByDate" parameterType="Date" resultMap="AppletOutDateResult"> | |||
| <include refid="selectAppletOutDateVo"/> | |||
| where date = #{date} | |||
| </select> | |||
| <insert id="insertAppletOutDate" parameterType="AppletOutDate"> | |||
| insert into applet_out_date | |||
| <trim prefix="(" suffix=")" suffixOverrides=","> | |||
| <if test="date != null">date,</if> | |||
| <if test="addressId != null">address_id,</if> | |||
| </trim> | |||
| <trim prefix="values (" suffix=")" suffixOverrides=","> | |||
| <if test="date != null">#{date},</if> | |||
| <if test="addressId != null">#{addressId},</if> | |||
| </trim> | |||
| </insert> | |||
| <update id="updateAppletOutDate" parameterType="AppletOutDate"> | |||
| update applet_out_date | |||
| <trim prefix="SET" suffixOverrides=","> | |||
| <if test="addressId != null">address_id = #{addressId},</if> | |||
| </trim> | |||
| where date = #{date} | |||
| </update> | |||
| <delete id="deleteAppletOutDateByDate" parameterType="Date"> | |||
| delete from applet_out_date where date = #{date} | |||
| </delete> | |||
| <delete id="deleteAppletOutDateByDates" parameterType="String"> | |||
| delete from applet_out_date where date in | |||
| <foreach item="date" collection="array" open="(" separator="," close=")"> | |||
| #{date} | |||
| </foreach> | |||
| </delete> | |||
| </mapper> | |||