| @ -0,0 +1,44 @@ | |||
| import request from '@/utils/request' | |||
| // 查询保证金配置列表 | |||
| export function listAppBondConfig(query) { | |||
| return request({ | |||
| url: '/model/AppBondConfig/list', | |||
| method: 'get', | |||
| params: query | |||
| }) | |||
| } | |||
| // 查询保证金配置详细 | |||
| export function getAppBondConfig(id) { | |||
| return request({ | |||
| url: '/model/AppBondConfig/' + id, | |||
| method: 'get' | |||
| }) | |||
| } | |||
| // 新增保证金配置 | |||
| export function addAppBondConfig(data) { | |||
| return request({ | |||
| url: '/model/AppBondConfig', | |||
| method: 'post', | |||
| data: data | |||
| }) | |||
| } | |||
| // 修改保证金配置 | |||
| export function updateAppBondConfig(data) { | |||
| return request({ | |||
| url: '/model/AppBondConfig', | |||
| method: 'put', | |||
| data: data | |||
| }) | |||
| } | |||
| // 删除保证金配置 | |||
| export function delAppBondConfig(id) { | |||
| return request({ | |||
| url: '/model/AppBondConfig/' + id, | |||
| method: 'delete' | |||
| }) | |||
| } | |||
| @ -0,0 +1,44 @@ | |||
| import request from '@/utils/request' | |||
| // 查询保证金记录列表 | |||
| export function listAppDeposit(query) { | |||
| return request({ | |||
| url: '/model/AppDeposit/list', | |||
| method: 'get', | |||
| params: query | |||
| }) | |||
| } | |||
| // 查询保证金记录详细 | |||
| export function getAppDeposit(id) { | |||
| return request({ | |||
| url: '/model/AppDeposit/' + id, | |||
| method: 'get' | |||
| }) | |||
| } | |||
| // 新增保证金记录 | |||
| export function addAppDeposit(data) { | |||
| return request({ | |||
| url: '/model/AppDeposit', | |||
| method: 'post', | |||
| data: data | |||
| }) | |||
| } | |||
| // 修改保证金记录 | |||
| export function updateAppDeposit(data) { | |||
| return request({ | |||
| url: '/model/AppDeposit', | |||
| method: 'put', | |||
| data: data | |||
| }) | |||
| } | |||
| // 删除保证金记录 | |||
| export function delAppDeposit(id) { | |||
| return request({ | |||
| url: '/model/AppDeposit/' + id, | |||
| method: 'delete' | |||
| }) | |||
| } | |||
| @ -0,0 +1,44 @@ | |||
| import request from '@/utils/request' | |||
| // 查询我的评价列表 | |||
| export function listAppMyEvaluate(query) { | |||
| return request({ | |||
| url: '/model/AppMyEvaluate/list', | |||
| method: 'get', | |||
| params: query | |||
| }) | |||
| } | |||
| // 查询我的评价详细 | |||
| export function getAppMyEvaluate(id) { | |||
| return request({ | |||
| url: '/model/AppMyEvaluate/' + id, | |||
| method: 'get' | |||
| }) | |||
| } | |||
| // 新增我的评价 | |||
| export function addAppMyEvaluate(data) { | |||
| return request({ | |||
| url: '/model/AppMyEvaluate', | |||
| method: 'post', | |||
| data: data | |||
| }) | |||
| } | |||
| // 修改我的评价 | |||
| export function updateAppMyEvaluate(data) { | |||
| return request({ | |||
| url: '/model/AppMyEvaluate', | |||
| method: 'put', | |||
| data: data | |||
| }) | |||
| } | |||
| // 删除我的评价 | |||
| export function delAppMyEvaluate(id) { | |||
| return request({ | |||
| url: '/model/AppMyEvaluate/' + id, | |||
| method: 'delete' | |||
| }) | |||
| } | |||
| @ -0,0 +1,44 @@ | |||
| import request from '@/utils/request' | |||
| // 查询平台协议配置列表 | |||
| export function listAppPlatformAgreementConfig(query) { | |||
| return request({ | |||
| url: '/model/AppPlatformAgreementConfig/list', | |||
| method: 'get', | |||
| params: query | |||
| }) | |||
| } | |||
| // 查询平台协议配置详细 | |||
| export function getAppPlatformAgreementConfig(id) { | |||
| return request({ | |||
| url: '/model/AppPlatformAgreementConfig/' + id, | |||
| method: 'get' | |||
| }) | |||
| } | |||
| // 新增平台协议配置 | |||
| export function addAppPlatformAgreementConfig(data) { | |||
| return request({ | |||
| url: '/model/AppPlatformAgreementConfig', | |||
| method: 'post', | |||
| data: data | |||
| }) | |||
| } | |||
| // 修改平台协议配置 | |||
| export function updateAppPlatformAgreementConfig(data) { | |||
| return request({ | |||
| url: '/model/AppPlatformAgreementConfig', | |||
| method: 'put', | |||
| data: data | |||
| }) | |||
| } | |||
| // 删除平台协议配置 | |||
| export function delAppPlatformAgreementConfig(id) { | |||
| return request({ | |||
| url: '/model/AppPlatformAgreementConfig/' + id, | |||
| method: 'delete' | |||
| }) | |||
| } | |||
| @ -0,0 +1,44 @@ | |||
| import request from '@/utils/request' | |||
| // 查询交易明细记录列表 | |||
| export function listAppTransactionDetails(query) { | |||
| return request({ | |||
| url: '/model/AppTransactionDetails/list', | |||
| method: 'get', | |||
| params: query | |||
| }) | |||
| } | |||
| // 查询交易明细记录详细 | |||
| export function getAppTransactionDetails(id) { | |||
| return request({ | |||
| url: '/model/AppTransactionDetails/' + id, | |||
| method: 'get' | |||
| }) | |||
| } | |||
| // 新增交易明细记录 | |||
| export function addAppTransactionDetails(data) { | |||
| return request({ | |||
| url: '/model/AppTransactionDetails', | |||
| method: 'post', | |||
| data: data | |||
| }) | |||
| } | |||
| // 修改交易明细记录 | |||
| export function updateAppTransactionDetails(data) { | |||
| return request({ | |||
| url: '/model/AppTransactionDetails', | |||
| method: 'put', | |||
| data: data | |||
| }) | |||
| } | |||
| // 删除交易明细记录 | |||
| export function delAppTransactionDetails(id) { | |||
| return request({ | |||
| url: '/model/AppTransactionDetails/' + id, | |||
| method: 'delete' | |||
| }) | |||
| } | |||
| @ -0,0 +1,44 @@ | |||
| import request from '@/utils/request' | |||
| // 查询用户列表 | |||
| export function listAppUsers(query) { | |||
| return request({ | |||
| url: '/model/AppUsers/list', | |||
| method: 'get', | |||
| params: query | |||
| }) | |||
| } | |||
| // 查询用户详细 | |||
| export function getAppUsers(userId) { | |||
| return request({ | |||
| url: '/model/AppUsers/' + userId, | |||
| method: 'get' | |||
| }) | |||
| } | |||
| // 新增用户 | |||
| export function addAppUsers(data) { | |||
| return request({ | |||
| url: '/model/AppUsers', | |||
| method: 'post', | |||
| data: data | |||
| }) | |||
| } | |||
| // 修改用户 | |||
| export function updateAppUsers(data) { | |||
| return request({ | |||
| url: '/model/AppUsers', | |||
| method: 'put', | |||
| data: data | |||
| }) | |||
| } | |||
| // 删除用户 | |||
| export function delAppUsers(userId) { | |||
| return request({ | |||
| url: '/model/AppUsers/' + userId, | |||
| method: 'delete' | |||
| }) | |||
| } | |||
| @ -0,0 +1,44 @@ | |||
| import request from '@/utils/request' | |||
| // 查询钱包列表 | |||
| export function listAppWallet(query) { | |||
| return request({ | |||
| url: '/model/AppWallet/list', | |||
| method: 'get', | |||
| params: query | |||
| }) | |||
| } | |||
| // 查询钱包详细 | |||
| export function getAppWallet(id) { | |||
| return request({ | |||
| url: '/model/AppWallet/' + id, | |||
| method: 'get' | |||
| }) | |||
| } | |||
| // 新增钱包 | |||
| export function addAppWallet(data) { | |||
| return request({ | |||
| url: '/model/AppWallet', | |||
| method: 'post', | |||
| data: data | |||
| }) | |||
| } | |||
| // 修改钱包 | |||
| export function updateAppWallet(data) { | |||
| return request({ | |||
| url: '/model/AppWallet', | |||
| method: 'put', | |||
| data: data | |||
| }) | |||
| } | |||
| // 删除钱包 | |||
| export function delAppWallet(id) { | |||
| return request({ | |||
| url: '/model/AppWallet/' + id, | |||
| method: 'delete' | |||
| }) | |||
| } | |||
| @ -0,0 +1,44 @@ | |||
| import request from '@/utils/request' | |||
| // 查询钱包提现配置列表 | |||
| export function listAppWithdrawalConfig(query) { | |||
| return request({ | |||
| url: '/model/AppWithdrawalConfig/list', | |||
| method: 'get', | |||
| params: query | |||
| }) | |||
| } | |||
| // 查询钱包提现配置详细 | |||
| export function getAppWithdrawalConfig(id) { | |||
| return request({ | |||
| url: '/model/AppWithdrawalConfig/' + id, | |||
| method: 'get' | |||
| }) | |||
| } | |||
| // 新增钱包提现配置 | |||
| export function addAppWithdrawalConfig(data) { | |||
| return request({ | |||
| url: '/model/AppWithdrawalConfig', | |||
| method: 'post', | |||
| data: data | |||
| }) | |||
| } | |||
| // 修改钱包提现配置 | |||
| export function updateAppWithdrawalConfig(data) { | |||
| return request({ | |||
| url: '/model/AppWithdrawalConfig', | |||
| method: 'put', | |||
| data: data | |||
| }) | |||
| } | |||
| // 删除钱包提现配置 | |||
| export function delAppWithdrawalConfig(id) { | |||
| return request({ | |||
| url: '/model/AppWithdrawalConfig/' + id, | |||
| method: 'delete' | |||
| }) | |||
| } | |||
| @ -0,0 +1,316 @@ | |||
| <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="bondTitle"> | |||
| <el-input | |||
| v-model="queryParams.bondTitle" | |||
| placeholder="请输入保证金标题" | |||
| clearable | |||
| size="small" | |||
| @keyup.enter.native="handleQuery" | |||
| /> | |||
| </el-form-item> | |||
| <el-form-item label="保证金说明" prop="bondText"> | |||
| <el-input | |||
| v-model="queryParams.bondText" | |||
| placeholder="请输入保证金说明" | |||
| clearable | |||
| size="small" | |||
| @keyup.enter.native="handleQuery" | |||
| /> | |||
| </el-form-item> | |||
| <el-form-item label="保证金协议" prop="bondUrl"> | |||
| <el-input | |||
| v-model="queryParams.bondUrl" | |||
| 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:AppBondConfig: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:AppBondConfig: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:AppBondConfig: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:AppBondConfig:export']" | |||
| >导出</el-button> | |||
| </el-col> | |||
| <right-toolbar :showSearch.sync="showSearch" @queryTable="getList" :columns="columns"></right-toolbar> | |||
| </el-row> | |||
| <el-table v-loading="loading" :data="AppBondConfigList" @selection-change="handleSelectionChange"> | |||
| <el-table-column type="selection" width="55" align="center" /> | |||
| <el-table-column label="主键" align="center" prop="id" /> | |||
| <el-table-column label="保证金标题" align="center" prop="bondTitle" v-if="columns[0].visible"/> | |||
| <el-table-column label="保证金说明" align="center" prop="bondText" v-if="columns[1].visible"/> | |||
| <el-table-column label="保证金协议" align="center" prop="bondUrl" v-if="columns[2].visible"/> | |||
| <el-table-column label="备注" align="center" prop="remark" 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:AppBondConfig:edit']" | |||
| >修改</el-button> | |||
| <el-button | |||
| size="mini" | |||
| type="text" | |||
| icon="el-icon-delete" | |||
| @click="handleDelete(scope.row)" | |||
| v-hasPermi="['model:AppBondConfig: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="bondTitle"> | |||
| <el-input v-model="form.bondTitle" placeholder="请输入保证金标题" /> | |||
| </el-form-item> | |||
| <el-form-item label="保证金说明" prop="bondText"> | |||
| <el-input v-model="form.bondText" placeholder="请输入保证金说明" /> | |||
| </el-form-item> | |||
| <el-form-item label="保证金协议" prop="bondUrl"> | |||
| <el-input v-model="form.bondUrl" placeholder="请输入保证金协议" /> | |||
| </el-form-item> | |||
| <el-form-item label="备注" prop="remark"> | |||
| <el-input v-model="form.remark" placeholder="请输入备注" /> | |||
| </el-form-item> | |||
| <el-form-item label="删除标志" prop="delFlag"> | |||
| <el-input v-model="form.delFlag" 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 { listAppBondConfig, getAppBondConfig, delAppBondConfig, addAppBondConfig, updateAppBondConfig, exportAppBondConfig } from "@/api/model/AppBondConfig"; | |||
| export default { | |||
| name: "AppBondConfig", | |||
| data() { | |||
| return { | |||
| // 遮罩层 | |||
| loading: true, | |||
| // 导出遮罩层 | |||
| exportLoading: false, | |||
| // 选中数组 | |||
| ids: [], | |||
| // 非单个禁用 | |||
| single: true, | |||
| // 非多个禁用 | |||
| multiple: true, | |||
| // 显示搜索条件 | |||
| showSearch: true, | |||
| // 总条数 | |||
| total: 0, | |||
| // 保证金配置表格数据 | |||
| AppBondConfigList: [], | |||
| // 弹出层标题 | |||
| title: "", | |||
| // 是否显示弹出层 | |||
| open: false, | |||
| // 查询参数 | |||
| queryParams: { | |||
| pageNum: 1, | |||
| pageSize: 10, | |||
| bondTitle: null, | |||
| bondText: null, | |||
| bondUrl: null, | |||
| }, | |||
| // 表单参数 | |||
| form: {}, | |||
| // 表单校验 | |||
| rules: { | |||
| }, | |||
| columns: [ | |||
| { key: 1, label: "保证金标题", visible: true }, | |||
| { key: 2, label: "保证金说明", visible: true }, | |||
| { key: 3, label: "保证金协议", visible: true }, | |||
| { key: 4, label: "备注", visible: true }, | |||
| ], | |||
| }; | |||
| }, | |||
| created() { | |||
| this.getList(); | |||
| }, | |||
| methods: { | |||
| /** 查询保证金配置列表 */ | |||
| getList() { | |||
| this.loading = true; | |||
| listAppBondConfig(this.queryParams).then(response => { | |||
| this.AppBondConfigList = response.rows; | |||
| this.total = response.total; | |||
| this.loading = false; | |||
| }); | |||
| }, | |||
| // 取消按钮 | |||
| cancel() { | |||
| this.open = false; | |||
| this.reset(); | |||
| }, | |||
| // 表单重置 | |||
| reset() { | |||
| this.form = { | |||
| id: null, | |||
| bondTitle: null, | |||
| bondText: null, | |||
| bondUrl: null, | |||
| remark: null, | |||
| createTime: null, | |||
| createBy: null, | |||
| updateTime: null, | |||
| updateBy: null, | |||
| delFlag: 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.id) | |||
| this.single = selection.length!==1 | |||
| this.multiple = !selection.length | |||
| }, | |||
| /** 新增按钮操作 */ | |||
| handleAdd() { | |||
| this.reset(); | |||
| this.open = true; | |||
| this.title = "添加保证金配置"; | |||
| }, | |||
| /** 修改按钮操作 */ | |||
| handleUpdate(row) { | |||
| this.reset(); | |||
| const id = row.id || this.ids | |||
| getAppBondConfig(id).then(response => { | |||
| this.form = response.data; | |||
| this.open = true; | |||
| this.title = "修改保证金配置"; | |||
| }); | |||
| }, | |||
| /** 提交按钮 */ | |||
| submitForm() { | |||
| this.$refs["form"].validate(valid => { | |||
| if (valid) { | |||
| if (this.form.id != null) { | |||
| updateAppBondConfig(this.form).then(response => { | |||
| this.$modal.msgSuccess("修改成功"); | |||
| this.open = false; | |||
| this.getList(); | |||
| }); | |||
| } else { | |||
| addAppBondConfig(this.form).then(response => { | |||
| this.$modal.msgSuccess("新增成功"); | |||
| this.open = false; | |||
| this.getList(); | |||
| }); | |||
| } | |||
| } | |||
| }); | |||
| }, | |||
| /** 删除按钮操作 */ | |||
| handleDelete(row) { | |||
| const ids = row.id || this.ids; | |||
| this.$modal.confirm('是否确认删除保证金配置编号为"' + ids + '"的数据项?').then(function() { | |||
| return delAppBondConfig(ids); | |||
| }).then(() => { | |||
| this.getList(); | |||
| this.$modal.msgSuccess("删除成功"); | |||
| }).catch(() => {}); | |||
| }, | |||
| /** 导出按钮操作 */ | |||
| handleExport() { | |||
| const queryParams = this.queryParams; | |||
| this.$modal.confirm('是否确认导出所有保证金配置数据项?').then(() => { | |||
| this.exportLoading = true; | |||
| return exportAppBondConfig(queryParams); | |||
| }).then(response => { | |||
| this.download(response.msg); | |||
| this.exportLoading = false; | |||
| }).catch(() => {}); | |||
| } | |||
| } | |||
| }; | |||
| </script> | |||
| @ -0,0 +1,326 @@ | |||
| <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="detailsName"> | |||
| <el-input | |||
| v-model="queryParams.detailsName" | |||
| placeholder="请输入明细名称" | |||
| clearable | |||
| size="small" | |||
| @keyup.enter.native="handleQuery" | |||
| /> | |||
| </el-form-item> | |||
| <el-form-item label="交易金额" prop="detailsPrice"> | |||
| <el-input | |||
| v-model="queryParams.detailsPrice" | |||
| placeholder="请输入交易金额" | |||
| clearable | |||
| size="small" | |||
| @keyup.enter.native="handleQuery" | |||
| /> | |||
| </el-form-item> | |||
| <el-form-item label="交易类型: 1为收入明细,2为支出明细" prop="transactionType"> | |||
| <el-select v-model="queryParams.transactionType" placeholder="请选择交易类型: 1为收入明细,2为支出明细" clearable size="small"> | |||
| </el-select> | |||
| </el-form-item> | |||
| <el-form-item label="伴宠师ID" prop="usersId"> | |||
| <el-input | |||
| v-model="queryParams.usersId" | |||
| 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:AppDeposit: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:AppDeposit: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:AppDeposit: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:AppDeposit:export']" | |||
| >导出</el-button> | |||
| </el-col> | |||
| <right-toolbar :showSearch.sync="showSearch" @queryTable="getList" :columns="columns"></right-toolbar> | |||
| </el-row> | |||
| <el-table v-loading="loading" :data="AppDepositList" @selection-change="handleSelectionChange"> | |||
| <el-table-column type="selection" width="55" align="center" /> | |||
| <el-table-column label="保证金编号" align="center" prop="id" /> | |||
| <el-table-column label="明细名称" align="center" prop="detailsName" v-if="columns[0].visible"/> | |||
| <el-table-column label="交易金额" align="center" prop="detailsPrice" v-if="columns[1].visible"/> | |||
| <el-table-column label="交易类型: 1为收入明细,2为支出明细" align="center" prop="transactionType" v-if="columns[2].visible"/> | |||
| <el-table-column label="伴宠师ID" align="center" prop="usersId" v-if="columns[3].visible"/> | |||
| <el-table-column label="备注" align="center" prop="remark" v-if="columns[4].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:AppDeposit:edit']" | |||
| >修改</el-button> | |||
| <el-button | |||
| size="mini" | |||
| type="text" | |||
| icon="el-icon-delete" | |||
| @click="handleDelete(scope.row)" | |||
| v-hasPermi="['model:AppDeposit: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="detailsName"> | |||
| <el-input v-model="form.detailsName" placeholder="请输入明细名称" /> | |||
| </el-form-item> | |||
| <el-form-item label="交易金额" prop="detailsPrice"> | |||
| <el-input v-model="form.detailsPrice" placeholder="请输入交易金额" /> | |||
| </el-form-item> | |||
| <el-form-item label="伴宠师ID" prop="usersId"> | |||
| <el-input v-model="form.usersId" placeholder="请输入伴宠师ID" /> | |||
| </el-form-item> | |||
| <el-form-item label="备注" prop="remark"> | |||
| <el-input v-model="form.remark" placeholder="请输入备注" /> | |||
| </el-form-item> | |||
| <el-form-item label="删除标志" prop="delFlag"> | |||
| <el-input v-model="form.delFlag" 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 { listAppDeposit, getAppDeposit, delAppDeposit, addAppDeposit, updateAppDeposit, exportAppDeposit } from "@/api/model/AppDeposit"; | |||
| export default { | |||
| name: "AppDeposit", | |||
| data() { | |||
| return { | |||
| // 遮罩层 | |||
| loading: true, | |||
| // 导出遮罩层 | |||
| exportLoading: false, | |||
| // 选中数组 | |||
| ids: [], | |||
| // 非单个禁用 | |||
| single: true, | |||
| // 非多个禁用 | |||
| multiple: true, | |||
| // 显示搜索条件 | |||
| showSearch: true, | |||
| // 总条数 | |||
| total: 0, | |||
| // 保证金记录表格数据 | |||
| AppDepositList: [], | |||
| // 弹出层标题 | |||
| title: "", | |||
| // 是否显示弹出层 | |||
| open: false, | |||
| // 查询参数 | |||
| queryParams: { | |||
| pageNum: 1, | |||
| pageSize: 10, | |||
| detailsName: null, | |||
| detailsPrice: null, | |||
| transactionType: null, | |||
| usersId: null, | |||
| }, | |||
| // 表单参数 | |||
| form: {}, | |||
| // 表单校验 | |||
| rules: { | |||
| }, | |||
| columns: [ | |||
| { key: 1, label: "明细名称", visible: true }, | |||
| { key: 2, label: "交易金额", visible: true }, | |||
| { key: 3, label: "交易类型: 1为收入明细,2为支出明细", visible: true }, | |||
| { key: 4, label: "伴宠师ID", visible: true }, | |||
| { key: 5, label: "备注", visible: true }, | |||
| ], | |||
| }; | |||
| }, | |||
| created() { | |||
| this.getList(); | |||
| }, | |||
| methods: { | |||
| /** 查询保证金记录列表 */ | |||
| getList() { | |||
| this.loading = true; | |||
| listAppDeposit(this.queryParams).then(response => { | |||
| this.AppDepositList = response.rows; | |||
| this.total = response.total; | |||
| this.loading = false; | |||
| }); | |||
| }, | |||
| // 取消按钮 | |||
| cancel() { | |||
| this.open = false; | |||
| this.reset(); | |||
| }, | |||
| // 表单重置 | |||
| reset() { | |||
| this.form = { | |||
| id: null, | |||
| detailsName: null, | |||
| detailsPrice: null, | |||
| transactionType: null, | |||
| usersId: null, | |||
| remark: null, | |||
| createTime: null, | |||
| createBy: null, | |||
| updateTime: null, | |||
| updateBy: null, | |||
| delFlag: 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.id) | |||
| this.single = selection.length!==1 | |||
| this.multiple = !selection.length | |||
| }, | |||
| /** 新增按钮操作 */ | |||
| handleAdd() { | |||
| this.reset(); | |||
| this.open = true; | |||
| this.title = "添加保证金记录"; | |||
| }, | |||
| /** 修改按钮操作 */ | |||
| handleUpdate(row) { | |||
| this.reset(); | |||
| const id = row.id || this.ids | |||
| getAppDeposit(id).then(response => { | |||
| this.form = response.data; | |||
| this.open = true; | |||
| this.title = "修改保证金记录"; | |||
| }); | |||
| }, | |||
| /** 提交按钮 */ | |||
| submitForm() { | |||
| this.$refs["form"].validate(valid => { | |||
| if (valid) { | |||
| if (this.form.id != null) { | |||
| updateAppDeposit(this.form).then(response => { | |||
| this.$modal.msgSuccess("修改成功"); | |||
| this.open = false; | |||
| this.getList(); | |||
| }); | |||
| } else { | |||
| addAppDeposit(this.form).then(response => { | |||
| this.$modal.msgSuccess("新增成功"); | |||
| this.open = false; | |||
| this.getList(); | |||
| }); | |||
| } | |||
| } | |||
| }); | |||
| }, | |||
| /** 删除按钮操作 */ | |||
| handleDelete(row) { | |||
| const ids = row.id || this.ids; | |||
| this.$modal.confirm('是否确认删除保证金记录编号为"' + ids + '"的数据项?').then(function() { | |||
| return delAppDeposit(ids); | |||
| }).then(() => { | |||
| this.getList(); | |||
| this.$modal.msgSuccess("删除成功"); | |||
| }).catch(() => {}); | |||
| }, | |||
| /** 导出按钮操作 */ | |||
| handleExport() { | |||
| const queryParams = this.queryParams; | |||
| this.$modal.confirm('是否确认导出所有保证金记录数据项?').then(() => { | |||
| this.exportLoading = true; | |||
| return exportAppDeposit(queryParams); | |||
| }).then(response => { | |||
| this.download(response.msg); | |||
| this.exportLoading = false; | |||
| }).catch(() => {}); | |||
| } | |||
| } | |||
| }; | |||
| </script> | |||
| @ -0,0 +1,344 @@ | |||
| <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="评价人ID" prop="uid"> | |||
| <el-input | |||
| v-model="queryParams.uid" | |||
| placeholder="请输入评价人ID" | |||
| clearable | |||
| size="small" | |||
| @keyup.enter.native="handleQuery" | |||
| /> | |||
| </el-form-item> | |||
| <el-form-item label="被评价人ID" prop="petId"> | |||
| <el-input | |||
| v-model="queryParams.petId" | |||
| placeholder="请输入被评价人ID" | |||
| clearable | |||
| size="small" | |||
| @keyup.enter.native="handleQuery" | |||
| /> | |||
| </el-form-item> | |||
| <el-form-item label="评价内容" prop="evaluateText"> | |||
| <el-input | |||
| v-model="queryParams.evaluateText" | |||
| placeholder="请输入评价内容" | |||
| clearable | |||
| size="small" | |||
| @keyup.enter.native="handleQuery" | |||
| /> | |||
| </el-form-item> | |||
| <el-form-item label="评价时间" prop="evaluateTime"> | |||
| <el-date-picker | |||
| clearable | |||
| size="small" | |||
| v-model="queryParams.evaluateTime" | |||
| type="datetime" | |||
| value-format="yyyy-MM-dd HH:mm:ss" | |||
| placeholder="选择评价时间"> | |||
| </el-date-picker> | |||
| </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:AppMyEvaluate: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:AppMyEvaluate: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:AppMyEvaluate: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:AppMyEvaluate:export']" | |||
| >导出</el-button> | |||
| </el-col> | |||
| <right-toolbar :showSearch.sync="showSearch" @queryTable="getList" :columns="columns"></right-toolbar> | |||
| </el-row> | |||
| <el-table v-loading="loading" :data="AppMyEvaluateList" @selection-change="handleSelectionChange"> | |||
| <el-table-column type="selection" width="55" align="center" /> | |||
| <el-table-column label="${comment}" align="center" prop="id" /> | |||
| <el-table-column label="评价人ID" align="center" prop="uid" v-if="columns[0].visible"/> | |||
| <el-table-column label="被评价人ID" align="center" prop="petId" v-if="columns[1].visible"/> | |||
| <el-table-column label="评价内容" align="center" prop="evaluateText" v-if="columns[2].visible"/> | |||
| <el-table-column label="评价时间" align="center" prop="evaluateTime" width="180" v-if="columns[3].visible"> | |||
| <template slot-scope="scope"> | |||
| <span>{{ parseTime(scope.row.evaluateTime, '')}}</span> | |||
| </template> | |||
| </el-table-column> | |||
| <el-table-column label="备注" align="center" prop="remark" v-if="columns[4].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:AppMyEvaluate:edit']" | |||
| >修改</el-button> | |||
| <el-button | |||
| size="mini" | |||
| type="text" | |||
| icon="el-icon-delete" | |||
| @click="handleDelete(scope.row)" | |||
| v-hasPermi="['model:AppMyEvaluate: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="评价人ID" prop="uid"> | |||
| <el-input v-model="form.uid" placeholder="请输入评价人ID" /> | |||
| </el-form-item> | |||
| <el-form-item label="被评价人ID" prop="petId"> | |||
| <el-input v-model="form.petId" placeholder="请输入被评价人ID" /> | |||
| </el-form-item> | |||
| <el-form-item label="评价内容" prop="evaluateText"> | |||
| <el-input v-model="form.evaluateText" placeholder="请输入评价内容" /> | |||
| </el-form-item> | |||
| <el-form-item label="评价时间" prop="evaluateTime"> | |||
| <el-date-picker clearable size="small" | |||
| v-model="form.evaluateTime" | |||
| type="datetime" | |||
| value-format="yyyy-MM-dd HH:mm:ss" | |||
| placeholder="选择评价时间"> | |||
| </el-date-picker> | |||
| </el-form-item> | |||
| <el-form-item label="备注" prop="remark"> | |||
| <el-input v-model="form.remark" placeholder="请输入备注" /> | |||
| </el-form-item> | |||
| <el-form-item label="删除标志" prop="delFlag"> | |||
| <el-input v-model="form.delFlag" 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 { listAppMyEvaluate, getAppMyEvaluate, delAppMyEvaluate, addAppMyEvaluate, updateAppMyEvaluate, exportAppMyEvaluate } from "@/api/model/AppMyEvaluate"; | |||
| export default { | |||
| name: "AppMyEvaluate", | |||
| data() { | |||
| return { | |||
| // 遮罩层 | |||
| loading: true, | |||
| // 导出遮罩层 | |||
| exportLoading: false, | |||
| // 选中数组 | |||
| ids: [], | |||
| // 非单个禁用 | |||
| single: true, | |||
| // 非多个禁用 | |||
| multiple: true, | |||
| // 显示搜索条件 | |||
| showSearch: true, | |||
| // 总条数 | |||
| total: 0, | |||
| // 我的评价表格数据 | |||
| AppMyEvaluateList: [], | |||
| // 弹出层标题 | |||
| title: "", | |||
| // 是否显示弹出层 | |||
| open: false, | |||
| // 查询参数 | |||
| queryParams: { | |||
| pageNum: 1, | |||
| pageSize: 10, | |||
| uid: null, | |||
| petId: null, | |||
| evaluateText: null, | |||
| evaluateTime: null, | |||
| }, | |||
| // 表单参数 | |||
| form: {}, | |||
| // 表单校验 | |||
| rules: { | |||
| }, | |||
| columns: [ | |||
| { key: 1, label: "评价人ID", visible: true }, | |||
| { key: 2, label: "被评价人ID", visible: true }, | |||
| { key: 3, label: "评价内容", visible: true }, | |||
| { key: 4, label: "评价时间", visible: true }, | |||
| { key: 5, label: "备注", visible: true }, | |||
| ], | |||
| }; | |||
| }, | |||
| created() { | |||
| this.getList(); | |||
| }, | |||
| methods: { | |||
| /** 查询我的评价列表 */ | |||
| getList() { | |||
| this.loading = true; | |||
| listAppMyEvaluate(this.queryParams).then(response => { | |||
| this.AppMyEvaluateList = response.rows; | |||
| this.total = response.total; | |||
| this.loading = false; | |||
| }); | |||
| }, | |||
| // 取消按钮 | |||
| cancel() { | |||
| this.open = false; | |||
| this.reset(); | |||
| }, | |||
| // 表单重置 | |||
| reset() { | |||
| this.form = { | |||
| id: null, | |||
| uid: null, | |||
| petId: null, | |||
| evaluateText: null, | |||
| evaluateTime: null, | |||
| remark: null, | |||
| createTime: null, | |||
| createBy: null, | |||
| updateTime: null, | |||
| updateBy: null, | |||
| delFlag: 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.id) | |||
| this.single = selection.length!==1 | |||
| this.multiple = !selection.length | |||
| }, | |||
| /** 新增按钮操作 */ | |||
| handleAdd() { | |||
| this.reset(); | |||
| this.open = true; | |||
| this.title = "添加我的评价"; | |||
| }, | |||
| /** 修改按钮操作 */ | |||
| handleUpdate(row) { | |||
| this.reset(); | |||
| const id = row.id || this.ids | |||
| getAppMyEvaluate(id).then(response => { | |||
| this.form = response.data; | |||
| this.open = true; | |||
| this.title = "修改我的评价"; | |||
| }); | |||
| }, | |||
| /** 提交按钮 */ | |||
| submitForm() { | |||
| this.$refs["form"].validate(valid => { | |||
| if (valid) { | |||
| if (this.form.id != null) { | |||
| updateAppMyEvaluate(this.form).then(response => { | |||
| this.$modal.msgSuccess("修改成功"); | |||
| this.open = false; | |||
| this.getList(); | |||
| }); | |||
| } else { | |||
| addAppMyEvaluate(this.form).then(response => { | |||
| this.$modal.msgSuccess("新增成功"); | |||
| this.open = false; | |||
| this.getList(); | |||
| }); | |||
| } | |||
| } | |||
| }); | |||
| }, | |||
| /** 删除按钮操作 */ | |||
| handleDelete(row) { | |||
| const ids = row.id || this.ids; | |||
| this.$modal.confirm('是否确认删除我的评价编号为"' + ids + '"的数据项?').then(function() { | |||
| return delAppMyEvaluate(ids); | |||
| }).then(() => { | |||
| this.getList(); | |||
| this.$modal.msgSuccess("删除成功"); | |||
| }).catch(() => {}); | |||
| }, | |||
| /** 导出按钮操作 */ | |||
| handleExport() { | |||
| const queryParams = this.queryParams; | |||
| this.$modal.confirm('是否确认导出所有我的评价数据项?').then(() => { | |||
| this.exportLoading = true; | |||
| return exportAppMyEvaluate(queryParams); | |||
| }).then(response => { | |||
| this.download(response.msg); | |||
| this.exportLoading = false; | |||
| }).catch(() => {}); | |||
| } | |||
| } | |||
| }; | |||
| </script> | |||
| @ -0,0 +1,280 @@ | |||
| <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="platformAgreementText"> | |||
| <el-input | |||
| v-model="queryParams.platformAgreementText" | |||
| 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:AppPlatformAgreementConfig: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:AppPlatformAgreementConfig: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:AppPlatformAgreementConfig: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:AppPlatformAgreementConfig:export']" | |||
| >导出</el-button> | |||
| </el-col> | |||
| <right-toolbar :showSearch.sync="showSearch" @queryTable="getList" :columns="columns"></right-toolbar> | |||
| </el-row> | |||
| <el-table v-loading="loading" :data="AppPlatformAgreementConfigList" @selection-change="handleSelectionChange"> | |||
| <el-table-column type="selection" width="55" align="center" /> | |||
| <el-table-column label="主键" align="center" prop="id" /> | |||
| <el-table-column label="平台协议" align="center" prop="platformAgreementText" v-if="columns[0].visible"/> | |||
| <el-table-column label="备注" align="center" prop="remark" 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:AppPlatformAgreementConfig:edit']" | |||
| >修改</el-button> | |||
| <el-button | |||
| size="mini" | |||
| type="text" | |||
| icon="el-icon-delete" | |||
| @click="handleDelete(scope.row)" | |||
| v-hasPermi="['model:AppPlatformAgreementConfig: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="platformAgreementText"> | |||
| <el-input v-model="form.platformAgreementText" placeholder="请输入平台协议" /> | |||
| </el-form-item> | |||
| <el-form-item label="备注" prop="remark"> | |||
| <el-input v-model="form.remark" placeholder="请输入备注" /> | |||
| </el-form-item> | |||
| <el-form-item label="删除标志" prop="delFlag"> | |||
| <el-input v-model="form.delFlag" 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 { listAppPlatformAgreementConfig, getAppPlatformAgreementConfig, delAppPlatformAgreementConfig, addAppPlatformAgreementConfig, updateAppPlatformAgreementConfig, exportAppPlatformAgreementConfig } from "@/api/model/AppPlatformAgreementConfig"; | |||
| export default { | |||
| name: "AppPlatformAgreementConfig", | |||
| data() { | |||
| return { | |||
| // 遮罩层 | |||
| loading: true, | |||
| // 导出遮罩层 | |||
| exportLoading: false, | |||
| // 选中数组 | |||
| ids: [], | |||
| // 非单个禁用 | |||
| single: true, | |||
| // 非多个禁用 | |||
| multiple: true, | |||
| // 显示搜索条件 | |||
| showSearch: true, | |||
| // 总条数 | |||
| total: 0, | |||
| // 平台协议配置表格数据 | |||
| AppPlatformAgreementConfigList: [], | |||
| // 弹出层标题 | |||
| title: "", | |||
| // 是否显示弹出层 | |||
| open: false, | |||
| // 查询参数 | |||
| queryParams: { | |||
| pageNum: 1, | |||
| pageSize: 10, | |||
| platformAgreementText: null, | |||
| }, | |||
| // 表单参数 | |||
| form: {}, | |||
| // 表单校验 | |||
| rules: { | |||
| }, | |||
| columns: [ | |||
| { key: 1, label: "平台协议", visible: true }, | |||
| { key: 2, label: "备注", visible: true }, | |||
| ], | |||
| }; | |||
| }, | |||
| created() { | |||
| this.getList(); | |||
| }, | |||
| methods: { | |||
| /** 查询平台协议配置列表 */ | |||
| getList() { | |||
| this.loading = true; | |||
| listAppPlatformAgreementConfig(this.queryParams).then(response => { | |||
| this.AppPlatformAgreementConfigList = response.rows; | |||
| this.total = response.total; | |||
| this.loading = false; | |||
| }); | |||
| }, | |||
| // 取消按钮 | |||
| cancel() { | |||
| this.open = false; | |||
| this.reset(); | |||
| }, | |||
| // 表单重置 | |||
| reset() { | |||
| this.form = { | |||
| id: null, | |||
| platformAgreementText: null, | |||
| remark: null, | |||
| createTime: null, | |||
| createBy: null, | |||
| updateTime: null, | |||
| updateBy: null, | |||
| delFlag: 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.id) | |||
| this.single = selection.length!==1 | |||
| this.multiple = !selection.length | |||
| }, | |||
| /** 新增按钮操作 */ | |||
| handleAdd() { | |||
| this.reset(); | |||
| this.open = true; | |||
| this.title = "添加平台协议配置"; | |||
| }, | |||
| /** 修改按钮操作 */ | |||
| handleUpdate(row) { | |||
| this.reset(); | |||
| const id = row.id || this.ids | |||
| getAppPlatformAgreementConfig(id).then(response => { | |||
| this.form = response.data; | |||
| this.open = true; | |||
| this.title = "修改平台协议配置"; | |||
| }); | |||
| }, | |||
| /** 提交按钮 */ | |||
| submitForm() { | |||
| this.$refs["form"].validate(valid => { | |||
| if (valid) { | |||
| if (this.form.id != null) { | |||
| updateAppPlatformAgreementConfig(this.form).then(response => { | |||
| this.$modal.msgSuccess("修改成功"); | |||
| this.open = false; | |||
| this.getList(); | |||
| }); | |||
| } else { | |||
| addAppPlatformAgreementConfig(this.form).then(response => { | |||
| this.$modal.msgSuccess("新增成功"); | |||
| this.open = false; | |||
| this.getList(); | |||
| }); | |||
| } | |||
| } | |||
| }); | |||
| }, | |||
| /** 删除按钮操作 */ | |||
| handleDelete(row) { | |||
| const ids = row.id || this.ids; | |||
| this.$modal.confirm('是否确认删除平台协议配置编号为"' + ids + '"的数据项?').then(function() { | |||
| return delAppPlatformAgreementConfig(ids); | |||
| }).then(() => { | |||
| this.getList(); | |||
| this.$modal.msgSuccess("删除成功"); | |||
| }).catch(() => {}); | |||
| }, | |||
| /** 导出按钮操作 */ | |||
| handleExport() { | |||
| const queryParams = this.queryParams; | |||
| this.$modal.confirm('是否确认导出所有平台协议配置数据项?').then(() => { | |||
| this.exportLoading = true; | |||
| return exportAppPlatformAgreementConfig(queryParams); | |||
| }).then(response => { | |||
| this.download(response.msg); | |||
| this.exportLoading = false; | |||
| }).catch(() => {}); | |||
| } | |||
| } | |||
| }; | |||
| </script> | |||
| @ -0,0 +1,326 @@ | |||
| <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="钱包ID" prop="wid"> | |||
| <el-input | |||
| v-model="queryParams.wid" | |||
| placeholder="请输入钱包ID" | |||
| clearable | |||
| size="small" | |||
| @keyup.enter.native="handleQuery" | |||
| /> | |||
| </el-form-item> | |||
| <el-form-item label="明细名称" prop="detailsName"> | |||
| <el-input | |||
| v-model="queryParams.detailsName" | |||
| placeholder="请输入明细名称" | |||
| clearable | |||
| size="small" | |||
| @keyup.enter.native="handleQuery" | |||
| /> | |||
| </el-form-item> | |||
| <el-form-item label="金额" prop="detailsPrice"> | |||
| <el-input | |||
| v-model="queryParams.detailsPrice" | |||
| placeholder="请输入金额" | |||
| clearable | |||
| size="small" | |||
| @keyup.enter.native="handleQuery" | |||
| /> | |||
| </el-form-item> | |||
| <el-form-item label="交易类型: 1为收入明细,2为支出明细" prop="transactionType"> | |||
| <el-select v-model="queryParams.transactionType" placeholder="请选择交易类型: 1为收入明细,2为支出明细" clearable size="small"> | |||
| </el-select> | |||
| </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:AppTransactionDetails: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:AppTransactionDetails: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:AppTransactionDetails: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:AppTransactionDetails:export']" | |||
| >导出</el-button> | |||
| </el-col> | |||
| <right-toolbar :showSearch.sync="showSearch" @queryTable="getList" :columns="columns"></right-toolbar> | |||
| </el-row> | |||
| <el-table v-loading="loading" :data="AppTransactionDetailsList" @selection-change="handleSelectionChange"> | |||
| <el-table-column type="selection" width="55" align="center" /> | |||
| <el-table-column label="交易明细编号" align="center" prop="id" /> | |||
| <el-table-column label="钱包ID" align="center" prop="wid" v-if="columns[0].visible"/> | |||
| <el-table-column label="明细名称" align="center" prop="detailsName" v-if="columns[1].visible"/> | |||
| <el-table-column label="金额" align="center" prop="detailsPrice" v-if="columns[2].visible"/> | |||
| <el-table-column label="交易类型: 1为收入明细,2为支出明细" align="center" prop="transactionType" v-if="columns[3].visible"/> | |||
| <el-table-column label="备注" align="center" prop="remark" v-if="columns[4].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:AppTransactionDetails:edit']" | |||
| >修改</el-button> | |||
| <el-button | |||
| size="mini" | |||
| type="text" | |||
| icon="el-icon-delete" | |||
| @click="handleDelete(scope.row)" | |||
| v-hasPermi="['model:AppTransactionDetails: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="钱包ID" prop="wid"> | |||
| <el-input v-model="form.wid" placeholder="请输入钱包ID" /> | |||
| </el-form-item> | |||
| <el-form-item label="明细名称" prop="detailsName"> | |||
| <el-input v-model="form.detailsName" placeholder="请输入明细名称" /> | |||
| </el-form-item> | |||
| <el-form-item label="金额" prop="detailsPrice"> | |||
| <el-input v-model="form.detailsPrice" placeholder="请输入金额" /> | |||
| </el-form-item> | |||
| <el-form-item label="备注" prop="remark"> | |||
| <el-input v-model="form.remark" placeholder="请输入备注" /> | |||
| </el-form-item> | |||
| <el-form-item label="删除标志" prop="delFlag"> | |||
| <el-input v-model="form.delFlag" 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 { listAppTransactionDetails, getAppTransactionDetails, delAppTransactionDetails, addAppTransactionDetails, updateAppTransactionDetails, exportAppTransactionDetails } from "@/api/model/AppTransactionDetails"; | |||
| export default { | |||
| name: "AppTransactionDetails", | |||
| data() { | |||
| return { | |||
| // 遮罩层 | |||
| loading: true, | |||
| // 导出遮罩层 | |||
| exportLoading: false, | |||
| // 选中数组 | |||
| ids: [], | |||
| // 非单个禁用 | |||
| single: true, | |||
| // 非多个禁用 | |||
| multiple: true, | |||
| // 显示搜索条件 | |||
| showSearch: true, | |||
| // 总条数 | |||
| total: 0, | |||
| // 交易明细记录表格数据 | |||
| AppTransactionDetailsList: [], | |||
| // 弹出层标题 | |||
| title: "", | |||
| // 是否显示弹出层 | |||
| open: false, | |||
| // 查询参数 | |||
| queryParams: { | |||
| pageNum: 1, | |||
| pageSize: 10, | |||
| wid: null, | |||
| detailsName: null, | |||
| detailsPrice: null, | |||
| transactionType: null, | |||
| }, | |||
| // 表单参数 | |||
| form: {}, | |||
| // 表单校验 | |||
| rules: { | |||
| }, | |||
| columns: [ | |||
| { key: 1, label: "钱包ID", visible: true }, | |||
| { key: 2, label: "明细名称", visible: true }, | |||
| { key: 3, label: "金额", visible: true }, | |||
| { key: 4, label: "交易类型: 1为收入明细,2为支出明细", visible: true }, | |||
| { key: 5, label: "备注", visible: true }, | |||
| ], | |||
| }; | |||
| }, | |||
| created() { | |||
| this.getList(); | |||
| }, | |||
| methods: { | |||
| /** 查询交易明细记录列表 */ | |||
| getList() { | |||
| this.loading = true; | |||
| listAppTransactionDetails(this.queryParams).then(response => { | |||
| this.AppTransactionDetailsList = response.rows; | |||
| this.total = response.total; | |||
| this.loading = false; | |||
| }); | |||
| }, | |||
| // 取消按钮 | |||
| cancel() { | |||
| this.open = false; | |||
| this.reset(); | |||
| }, | |||
| // 表单重置 | |||
| reset() { | |||
| this.form = { | |||
| id: null, | |||
| wid: null, | |||
| detailsName: null, | |||
| detailsPrice: null, | |||
| transactionType: null, | |||
| remark: null, | |||
| createTime: null, | |||
| createBy: null, | |||
| updateTime: null, | |||
| updateBy: null, | |||
| delFlag: 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.id) | |||
| this.single = selection.length!==1 | |||
| this.multiple = !selection.length | |||
| }, | |||
| /** 新增按钮操作 */ | |||
| handleAdd() { | |||
| this.reset(); | |||
| this.open = true; | |||
| this.title = "添加交易明细记录"; | |||
| }, | |||
| /** 修改按钮操作 */ | |||
| handleUpdate(row) { | |||
| this.reset(); | |||
| const id = row.id || this.ids | |||
| getAppTransactionDetails(id).then(response => { | |||
| this.form = response.data; | |||
| this.open = true; | |||
| this.title = "修改交易明细记录"; | |||
| }); | |||
| }, | |||
| /** 提交按钮 */ | |||
| submitForm() { | |||
| this.$refs["form"].validate(valid => { | |||
| if (valid) { | |||
| if (this.form.id != null) { | |||
| updateAppTransactionDetails(this.form).then(response => { | |||
| this.$modal.msgSuccess("修改成功"); | |||
| this.open = false; | |||
| this.getList(); | |||
| }); | |||
| } else { | |||
| addAppTransactionDetails(this.form).then(response => { | |||
| this.$modal.msgSuccess("新增成功"); | |||
| this.open = false; | |||
| this.getList(); | |||
| }); | |||
| } | |||
| } | |||
| }); | |||
| }, | |||
| /** 删除按钮操作 */ | |||
| handleDelete(row) { | |||
| const ids = row.id || this.ids; | |||
| this.$modal.confirm('是否确认删除交易明细记录编号为"' + ids + '"的数据项?').then(function() { | |||
| return delAppTransactionDetails(ids); | |||
| }).then(() => { | |||
| this.getList(); | |||
| this.$modal.msgSuccess("删除成功"); | |||
| }).catch(() => {}); | |||
| }, | |||
| /** 导出按钮操作 */ | |||
| handleExport() { | |||
| const queryParams = this.queryParams; | |||
| this.$modal.confirm('是否确认导出所有交易明细记录数据项?').then(() => { | |||
| this.exportLoading = true; | |||
| return exportAppTransactionDetails(queryParams); | |||
| }).then(response => { | |||
| this.download(response.msg); | |||
| this.exportLoading = false; | |||
| }).catch(() => {}); | |||
| } | |||
| } | |||
| }; | |||
| </script> | |||
| @ -0,0 +1,449 @@ | |||
| <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="updatorBy"> | |||
| <el-input | |||
| v-model="queryParams.updatorBy" | |||
| placeholder="请输入修改人" | |||
| clearable | |||
| size="small" | |||
| @keyup.enter.native="handleQuery" | |||
| /> | |||
| </el-form-item> | |||
| <el-form-item label="用户名称" prop="userName"> | |||
| <el-input | |||
| v-model="queryParams.userName" | |||
| placeholder="请输入用户名称" | |||
| clearable | |||
| size="small" | |||
| @keyup.enter.native="handleQuery" | |||
| /> | |||
| </el-form-item> | |||
| <el-form-item label="用户状态, 0==为注册, 1==已注册为认证" prop="userState"> | |||
| <el-input | |||
| v-model="queryParams.userState" | |||
| placeholder="请输入用户状态, 0==为注册, 1==已注册为认证" | |||
| clearable | |||
| size="small" | |||
| @keyup.enter.native="handleQuery" | |||
| /> | |||
| </el-form-item> | |||
| <el-form-item label="用户电话" prop="userTelephone"> | |||
| <el-input | |||
| v-model="queryParams.userTelephone" | |||
| placeholder="请输入用户电话" | |||
| clearable | |||
| size="small" | |||
| @keyup.enter.native="handleQuery" | |||
| /> | |||
| </el-form-item> | |||
| <el-form-item label="只有在用户将公众号绑定到微信开放平台帐号后,才会出现该字段" prop="unionid"> | |||
| <el-input | |||
| v-model="queryParams.unionid" | |||
| placeholder="请输入只有在用户将公众号绑定到微信开放平台帐号后,才会出现该字段" | |||
| clearable | |||
| size="small" | |||
| @keyup.enter.native="handleQuery" | |||
| /> | |||
| </el-form-item> | |||
| <el-form-item label="用户的标识,对当前公众号唯一" prop="openid"> | |||
| <el-input | |||
| v-model="queryParams.openid" | |||
| placeholder="请输入用户的标识,对当前公众号唯一" | |||
| clearable | |||
| size="small" | |||
| @keyup.enter.native="handleQuery" | |||
| /> | |||
| </el-form-item> | |||
| <template v-if="showMoreCondition"> | |||
| <el-form-item label="过期时间" prop="expiresIn"> | |||
| <el-input | |||
| v-model="queryParams.expiresIn" | |||
| placeholder="请输入过期时间" | |||
| clearable | |||
| size="small" | |||
| @keyup.enter.native="handleQuery" | |||
| /> | |||
| </el-form-item> | |||
| <el-form-item label="过期时间" prop="expireTime"> | |||
| <el-date-picker | |||
| clearable | |||
| size="small" | |||
| v-model="queryParams.expireTime" | |||
| type="datetime" | |||
| value-format="yyyy-MM-dd HH:mm:ss" | |||
| placeholder="选择过期时间"> | |||
| </el-date-picker> | |||
| </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> | |||
| </template> | |||
| </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:AppUsers: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:AppUsers: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:AppUsers: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:AppUsers:export']" | |||
| >导出</el-button> | |||
| </el-col> | |||
| <right-toolbar :showSearch.sync="showSearch" @queryTable="getList" :columns="columns"></right-toolbar> | |||
| </el-row> | |||
| <el-table v-loading="loading" :data="AppUsersList" @selection-change="handleSelectionChange"> | |||
| <el-table-column type="selection" width="55" align="center" /> | |||
| <el-table-column label="用户编号" align="center" prop="userId" /> | |||
| <el-table-column label="备注" align="center" prop="remark" v-if="columns[0].visible"/> | |||
| <el-table-column label="修改人" align="center" prop="updatorBy" v-if="columns[1].visible"/> | |||
| <el-table-column label="用户头像" align="center" prop="userImage" v-if="columns[2].visible"/> | |||
| <el-table-column label="用户名称" align="center" prop="userName" v-if="columns[3].visible"/> | |||
| <el-table-column label="用户状态, 0==为注册, 1==已注册为认证" align="center" prop="userState" v-if="columns[4].visible"/> | |||
| <el-table-column label="用户电话" align="center" prop="userTelephone" v-if="columns[5].visible"/> | |||
| <el-table-column label="只有在用户将公众号绑定到微信开放平台帐号后,才会出现该字段" align="center" prop="unionid" v-if="columns[6].visible"/> | |||
| <el-table-column label="用户的标识,对当前公众号唯一" align="center" prop="openid" v-if="columns[7].visible"/> | |||
| <el-table-column label="token" align="center" prop="accessToken" v-if="columns[8].visible"/> | |||
| <el-table-column label="过期时间" align="center" prop="expiresIn" v-if="columns[9].visible"/> | |||
| <el-table-column label="刷新token" align="center" prop="refreshToken" v-if="columns[10].visible"/> | |||
| <el-table-column label="过期时间" align="center" prop="expireTime" width="180" v-if="columns[11].visible"> | |||
| <template slot-scope="scope"> | |||
| <span>{{ parseTime(scope.row.expireTime, '')}}</span> | |||
| </template> | |||
| </el-table-column> | |||
| <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:AppUsers:edit']" | |||
| >修改</el-button> | |||
| <el-button | |||
| size="mini" | |||
| type="text" | |||
| icon="el-icon-delete" | |||
| @click="handleDelete(scope.row)" | |||
| v-hasPermi="['model:AppUsers: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="delFlag"> | |||
| <el-input v-model="form.delFlag" placeholder="请输入逻辑删除" /> | |||
| </el-form-item> | |||
| <el-form-item label="备注" prop="remark"> | |||
| <el-input v-model="form.remark" placeholder="请输入备注" /> | |||
| </el-form-item> | |||
| <el-form-item label="修改人" prop="updatorBy"> | |||
| <el-input v-model="form.updatorBy" placeholder="请输入修改人" /> | |||
| </el-form-item> | |||
| <el-form-item label="用户头像"> | |||
| <imageUpload v-model="form.userImage"/> | |||
| </el-form-item> | |||
| <el-form-item label="用户名称" prop="userName"> | |||
| <el-input v-model="form.userName" placeholder="请输入用户名称" /> | |||
| </el-form-item> | |||
| <el-form-item label="用户状态, 0==为注册, 1==已注册为认证" prop="userState"> | |||
| <el-input v-model="form.userState" placeholder="请输入用户状态, 0==为注册, 1==已注册为认证" /> | |||
| </el-form-item> | |||
| <el-form-item label="用户电话" prop="userTelephone"> | |||
| <el-input v-model="form.userTelephone" placeholder="请输入用户电话" /> | |||
| </el-form-item> | |||
| <el-form-item label="只有在用户将公众号绑定到微信开放平台帐号后,才会出现该字段" prop="unionid"> | |||
| <el-input v-model="form.unionid" placeholder="请输入只有在用户将公众号绑定到微信开放平台帐号后,才会出现该字段" /> | |||
| </el-form-item> | |||
| <el-form-item label="用户的标识,对当前公众号唯一" prop="openid"> | |||
| <el-input v-model="form.openid" placeholder="请输入用户的标识,对当前公众号唯一" /> | |||
| </el-form-item> | |||
| <el-form-item label="token" prop="accessToken"> | |||
| <el-input v-model="form.accessToken" type="textarea" placeholder="请输入内容" /> | |||
| </el-form-item> | |||
| <el-form-item label="过期时间" prop="expiresIn"> | |||
| <el-input v-model="form.expiresIn" placeholder="请输入过期时间" /> | |||
| </el-form-item> | |||
| <el-form-item label="刷新token" prop="refreshToken"> | |||
| <el-input v-model="form.refreshToken" type="textarea" placeholder="请输入内容" /> | |||
| </el-form-item> | |||
| <el-form-item label="过期时间" prop="expireTime"> | |||
| <el-date-picker clearable size="small" | |||
| v-model="form.expireTime" | |||
| type="datetime" | |||
| value-format="yyyy-MM-dd HH:mm:ss" | |||
| placeholder="选择过期时间"> | |||
| </el-date-picker> | |||
| </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 { listAppUsers, getAppUsers, delAppUsers, addAppUsers, updateAppUsers, exportAppUsers } from "@/api/model/AppUsers"; | |||
| import {parseTime} from "../../../utils/ruoyi"; | |||
| export default { | |||
| name: "AppUsers", | |||
| data() { | |||
| return { | |||
| // 遮罩层 | |||
| loading: true, | |||
| // 导出遮罩层 | |||
| exportLoading: false, | |||
| // 选中数组 | |||
| ids: [], | |||
| // 非单个禁用 | |||
| single: true, | |||
| // 非多个禁用 | |||
| multiple: true, | |||
| // 显示搜索条件 | |||
| showSearch: true, | |||
| // 总条数 | |||
| total: 0, | |||
| // 用户表格数据 | |||
| AppUsersList: [], | |||
| // 弹出层标题 | |||
| title: "", | |||
| // 是否显示弹出层 | |||
| open: false, | |||
| // 查询参数 | |||
| queryParams: { | |||
| pageNum: 1, | |||
| pageSize: 10, | |||
| updatorBy: null, | |||
| userImage: null, | |||
| userName: null, | |||
| userState: null, | |||
| userTelephone: null, | |||
| unionid: null, | |||
| openid: null, | |||
| accessToken: null, | |||
| expiresIn: null, | |||
| refreshToken: null, | |||
| expireTime: null, | |||
| }, | |||
| // 表单参数 | |||
| form: {}, | |||
| // 表单校验 | |||
| rules: { | |||
| userName: [ | |||
| { required: true, message: "用户名称不能为空", trigger: "blur" } | |||
| ], | |||
| }, | |||
| columns: [ | |||
| { key: 4, label: "备注", visible: true }, | |||
| { key: 6, label: "修改人", visible: true }, | |||
| { key: 7, label: "用户头像", visible: false }, | |||
| { key: 8, label: "用户名称", visible: true }, | |||
| { key: 9, label: "用户状态, 0==为注册, 1==已注册为认证", visible: true }, | |||
| { key: 10, label: "用户电话", visible: false }, | |||
| { key: 11, label: "只有在用户将公众号绑定到微信开放平台帐号后,才会出现该字段", visible: false }, | |||
| { key: 12, label: "用户的标识,对当前公众号唯一", visible: false }, | |||
| { key: 13, label: "token", visible: false }, | |||
| { key: 14, label: "过期时间", visible: false }, | |||
| { key: 15, label: "刷新token", visible: false }, | |||
| { key: 16, label: "过期时间", visible: false }, | |||
| ], | |||
| }; | |||
| }, | |||
| created() { | |||
| this.getList(); | |||
| }, | |||
| methods: { | |||
| parseTime, | |||
| /** 查询用户列表 */ | |||
| getList() { | |||
| this.loading = true; | |||
| listAppUsers(this.queryParams).then(response => { | |||
| this.AppUsersList = response.rows; | |||
| this.total = response.total; | |||
| this.loading = false; | |||
| }); | |||
| }, | |||
| // 取消按钮 | |||
| cancel() { | |||
| this.open = false; | |||
| this.reset(); | |||
| }, | |||
| // 表单重置 | |||
| reset() { | |||
| this.form = { | |||
| userId: null, | |||
| createBy: null, | |||
| createTime: null, | |||
| delFlag: null, | |||
| remark: null, | |||
| updateTime: null, | |||
| updatorBy: null, | |||
| userImage: null, | |||
| userName: null, | |||
| userState: null, | |||
| userTelephone: null, | |||
| unionid: null, | |||
| openid: null, | |||
| accessToken: null, | |||
| expiresIn: null, | |||
| refreshToken: null, | |||
| expireTime: 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.userId) | |||
| this.single = selection.length!==1 | |||
| this.multiple = !selection.length | |||
| }, | |||
| /** 新增按钮操作 */ | |||
| handleAdd() { | |||
| this.reset(); | |||
| this.open = true; | |||
| this.title = "添加用户"; | |||
| }, | |||
| /** 修改按钮操作 */ | |||
| handleUpdate(row) { | |||
| this.reset(); | |||
| const userId = row.userId || this.ids | |||
| getAppUsers(userId).then(response => { | |||
| this.form = response.data; | |||
| this.open = true; | |||
| this.title = "修改用户"; | |||
| }); | |||
| }, | |||
| /** 提交按钮 */ | |||
| submitForm() { | |||
| this.$refs["form"].validate(valid => { | |||
| if (valid) { | |||
| if (this.form.userId != null) { | |||
| updateAppUsers(this.form).then(response => { | |||
| this.$modal.msgSuccess("修改成功"); | |||
| this.open = false; | |||
| this.getList(); | |||
| }); | |||
| } else { | |||
| addAppUsers(this.form).then(response => { | |||
| this.$modal.msgSuccess("新增成功"); | |||
| this.open = false; | |||
| this.getList(); | |||
| }); | |||
| } | |||
| } | |||
| }); | |||
| }, | |||
| /** 删除按钮操作 */ | |||
| handleDelete(row) { | |||
| const userIds = row.userId || this.ids; | |||
| this.$modal.confirm('是否确认删除用户编号为"' + userIds + '"的数据项?').then(function() { | |||
| return delAppUsers(userIds); | |||
| }).then(() => { | |||
| this.getList(); | |||
| this.$modal.msgSuccess("删除成功"); | |||
| }).catch(() => {}); | |||
| }, | |||
| /** 导出按钮操作 */ | |||
| handleExport() { | |||
| const queryParams = this.queryParams; | |||
| this.$modal.confirm('是否确认导出所有用户数据项?').then(() => { | |||
| this.exportLoading = true; | |||
| return exportAppUsers(queryParams); | |||
| }).then(response => { | |||
| this.download(response.msg); | |||
| this.exportLoading = false; | |||
| }).catch(() => {}); | |||
| } | |||
| } | |||
| }; | |||
| </script> | |||
| @ -0,0 +1,280 @@ | |||
| <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="price"> | |||
| <el-input | |||
| v-model="queryParams.price" | |||
| 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:AppWallet: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:AppWallet: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:AppWallet: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:AppWallet:export']" | |||
| >导出</el-button> | |||
| </el-col> | |||
| <right-toolbar :showSearch.sync="showSearch" @queryTable="getList" :columns="columns"></right-toolbar> | |||
| </el-row> | |||
| <el-table v-loading="loading" :data="AppWalletList" @selection-change="handleSelectionChange"> | |||
| <el-table-column type="selection" width="55" align="center" /> | |||
| <el-table-column label="钱包编号" align="center" prop="id" /> | |||
| <el-table-column label="钱包金额" align="center" prop="price" v-if="columns[0].visible"/> | |||
| <el-table-column label="备注" align="center" prop="remark" 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:AppWallet:edit']" | |||
| >修改</el-button> | |||
| <el-button | |||
| size="mini" | |||
| type="text" | |||
| icon="el-icon-delete" | |||
| @click="handleDelete(scope.row)" | |||
| v-hasPermi="['model:AppWallet: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="price"> | |||
| <el-input v-model="form.price" placeholder="请输入钱包金额" /> | |||
| </el-form-item> | |||
| <el-form-item label="备注" prop="remark"> | |||
| <el-input v-model="form.remark" placeholder="请输入备注" /> | |||
| </el-form-item> | |||
| <el-form-item label="删除标志" prop="delFlag"> | |||
| <el-input v-model="form.delFlag" 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 { listAppWallet, getAppWallet, delAppWallet, addAppWallet, updateAppWallet, exportAppWallet } from "@/api/model/AppWallet"; | |||
| export default { | |||
| name: "AppWallet", | |||
| data() { | |||
| return { | |||
| // 遮罩层 | |||
| loading: true, | |||
| // 导出遮罩层 | |||
| exportLoading: false, | |||
| // 选中数组 | |||
| ids: [], | |||
| // 非单个禁用 | |||
| single: true, | |||
| // 非多个禁用 | |||
| multiple: true, | |||
| // 显示搜索条件 | |||
| showSearch: true, | |||
| // 总条数 | |||
| total: 0, | |||
| // 钱包表格数据 | |||
| AppWalletList: [], | |||
| // 弹出层标题 | |||
| title: "", | |||
| // 是否显示弹出层 | |||
| open: false, | |||
| // 查询参数 | |||
| queryParams: { | |||
| pageNum: 1, | |||
| pageSize: 10, | |||
| price: null, | |||
| }, | |||
| // 表单参数 | |||
| form: {}, | |||
| // 表单校验 | |||
| rules: { | |||
| }, | |||
| columns: [ | |||
| { key: 1, label: "钱包金额", visible: true }, | |||
| { key: 2, label: "备注", visible: true }, | |||
| ], | |||
| }; | |||
| }, | |||
| created() { | |||
| this.getList(); | |||
| }, | |||
| methods: { | |||
| /** 查询钱包列表 */ | |||
| getList() { | |||
| this.loading = true; | |||
| listAppWallet(this.queryParams).then(response => { | |||
| this.AppWalletList = response.rows; | |||
| this.total = response.total; | |||
| this.loading = false; | |||
| }); | |||
| }, | |||
| // 取消按钮 | |||
| cancel() { | |||
| this.open = false; | |||
| this.reset(); | |||
| }, | |||
| // 表单重置 | |||
| reset() { | |||
| this.form = { | |||
| id: null, | |||
| price: null, | |||
| remark: null, | |||
| createTime: null, | |||
| createBy: null, | |||
| updateTime: null, | |||
| updateBy: null, | |||
| delFlag: 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.id) | |||
| this.single = selection.length!==1 | |||
| this.multiple = !selection.length | |||
| }, | |||
| /** 新增按钮操作 */ | |||
| handleAdd() { | |||
| this.reset(); | |||
| this.open = true; | |||
| this.title = "添加钱包"; | |||
| }, | |||
| /** 修改按钮操作 */ | |||
| handleUpdate(row) { | |||
| this.reset(); | |||
| const id = row.id || this.ids | |||
| getAppWallet(id).then(response => { | |||
| this.form = response.data; | |||
| this.open = true; | |||
| this.title = "修改钱包"; | |||
| }); | |||
| }, | |||
| /** 提交按钮 */ | |||
| submitForm() { | |||
| this.$refs["form"].validate(valid => { | |||
| if (valid) { | |||
| if (this.form.id != null) { | |||
| updateAppWallet(this.form).then(response => { | |||
| this.$modal.msgSuccess("修改成功"); | |||
| this.open = false; | |||
| this.getList(); | |||
| }); | |||
| } else { | |||
| addAppWallet(this.form).then(response => { | |||
| this.$modal.msgSuccess("新增成功"); | |||
| this.open = false; | |||
| this.getList(); | |||
| }); | |||
| } | |||
| } | |||
| }); | |||
| }, | |||
| /** 删除按钮操作 */ | |||
| handleDelete(row) { | |||
| const ids = row.id || this.ids; | |||
| this.$modal.confirm('是否确认删除钱包编号为"' + ids + '"的数据项?').then(function() { | |||
| return delAppWallet(ids); | |||
| }).then(() => { | |||
| this.getList(); | |||
| this.$modal.msgSuccess("删除成功"); | |||
| }).catch(() => {}); | |||
| }, | |||
| /** 导出按钮操作 */ | |||
| handleExport() { | |||
| const queryParams = this.queryParams; | |||
| this.$modal.confirm('是否确认导出所有钱包数据项?').then(() => { | |||
| this.exportLoading = true; | |||
| return exportAppWallet(queryParams); | |||
| }).then(response => { | |||
| this.download(response.msg); | |||
| this.exportLoading = false; | |||
| }).catch(() => {}); | |||
| } | |||
| } | |||
| }; | |||
| </script> | |||
| @ -0,0 +1,298 @@ | |||
| <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="withdrawalTitle"> | |||
| <el-input | |||
| v-model="queryParams.withdrawalTitle" | |||
| placeholder="请输入提现标题" | |||
| clearable | |||
| size="small" | |||
| @keyup.enter.native="handleQuery" | |||
| /> | |||
| </el-form-item> | |||
| <el-form-item label="提现文本" prop="withdrawalText"> | |||
| <el-input | |||
| v-model="queryParams.withdrawalText" | |||
| 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:AppWithdrawalConfig: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:AppWithdrawalConfig: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:AppWithdrawalConfig: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:AppWithdrawalConfig:export']" | |||
| >导出</el-button> | |||
| </el-col> | |||
| <right-toolbar :showSearch.sync="showSearch" @queryTable="getList" :columns="columns"></right-toolbar> | |||
| </el-row> | |||
| <el-table v-loading="loading" :data="AppWithdrawalConfigList" @selection-change="handleSelectionChange"> | |||
| <el-table-column type="selection" width="55" align="center" /> | |||
| <el-table-column label="主键" align="center" prop="id" /> | |||
| <el-table-column label="提现标题" align="center" prop="withdrawalTitle" v-if="columns[0].visible"/> | |||
| <el-table-column label="提现文本" align="center" prop="withdrawalText" v-if="columns[1].visible"/> | |||
| <el-table-column label="备注" align="center" prop="remark" v-if="columns[2].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:AppWithdrawalConfig:edit']" | |||
| >修改</el-button> | |||
| <el-button | |||
| size="mini" | |||
| type="text" | |||
| icon="el-icon-delete" | |||
| @click="handleDelete(scope.row)" | |||
| v-hasPermi="['model:AppWithdrawalConfig: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="withdrawalTitle"> | |||
| <el-input v-model="form.withdrawalTitle" placeholder="请输入提现标题" /> | |||
| </el-form-item> | |||
| <el-form-item label="提现文本" prop="withdrawalText"> | |||
| <el-input v-model="form.withdrawalText" placeholder="请输入提现文本" /> | |||
| </el-form-item> | |||
| <el-form-item label="备注" prop="remark"> | |||
| <el-input v-model="form.remark" placeholder="请输入备注" /> | |||
| </el-form-item> | |||
| <el-form-item label="删除标志" prop="delFlag"> | |||
| <el-input v-model="form.delFlag" 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 { listAppWithdrawalConfig, getAppWithdrawalConfig, delAppWithdrawalConfig, addAppWithdrawalConfig, updateAppWithdrawalConfig, exportAppWithdrawalConfig } from "@/api/model/AppWithdrawalConfig"; | |||
| export default { | |||
| name: "AppWithdrawalConfig", | |||
| data() { | |||
| return { | |||
| // 遮罩层 | |||
| loading: true, | |||
| // 导出遮罩层 | |||
| exportLoading: false, | |||
| // 选中数组 | |||
| ids: [], | |||
| // 非单个禁用 | |||
| single: true, | |||
| // 非多个禁用 | |||
| multiple: true, | |||
| // 显示搜索条件 | |||
| showSearch: true, | |||
| // 总条数 | |||
| total: 0, | |||
| // 钱包提现配置表格数据 | |||
| AppWithdrawalConfigList: [], | |||
| // 弹出层标题 | |||
| title: "", | |||
| // 是否显示弹出层 | |||
| open: false, | |||
| // 查询参数 | |||
| queryParams: { | |||
| pageNum: 1, | |||
| pageSize: 10, | |||
| withdrawalTitle: null, | |||
| withdrawalText: null, | |||
| }, | |||
| // 表单参数 | |||
| form: {}, | |||
| // 表单校验 | |||
| rules: { | |||
| }, | |||
| columns: [ | |||
| { key: 1, label: "提现标题", visible: true }, | |||
| { key: 2, label: "提现文本", visible: true }, | |||
| { key: 3, label: "备注", visible: true }, | |||
| ], | |||
| }; | |||
| }, | |||
| created() { | |||
| this.getList(); | |||
| }, | |||
| methods: { | |||
| /** 查询钱包提现配置列表 */ | |||
| getList() { | |||
| this.loading = true; | |||
| listAppWithdrawalConfig(this.queryParams).then(response => { | |||
| this.AppWithdrawalConfigList = response.rows; | |||
| this.total = response.total; | |||
| this.loading = false; | |||
| }); | |||
| }, | |||
| // 取消按钮 | |||
| cancel() { | |||
| this.open = false; | |||
| this.reset(); | |||
| }, | |||
| // 表单重置 | |||
| reset() { | |||
| this.form = { | |||
| id: null, | |||
| withdrawalTitle: null, | |||
| withdrawalText: null, | |||
| remark: null, | |||
| createTime: null, | |||
| createBy: null, | |||
| updateTime: null, | |||
| updateBy: null, | |||
| delFlag: 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.id) | |||
| this.single = selection.length!==1 | |||
| this.multiple = !selection.length | |||
| }, | |||
| /** 新增按钮操作 */ | |||
| handleAdd() { | |||
| this.reset(); | |||
| this.open = true; | |||
| this.title = "添加钱包提现配置"; | |||
| }, | |||
| /** 修改按钮操作 */ | |||
| handleUpdate(row) { | |||
| this.reset(); | |||
| const id = row.id || this.ids | |||
| getAppWithdrawalConfig(id).then(response => { | |||
| this.form = response.data; | |||
| this.open = true; | |||
| this.title = "修改钱包提现配置"; | |||
| }); | |||
| }, | |||
| /** 提交按钮 */ | |||
| submitForm() { | |||
| this.$refs["form"].validate(valid => { | |||
| if (valid) { | |||
| if (this.form.id != null) { | |||
| updateAppWithdrawalConfig(this.form).then(response => { | |||
| this.$modal.msgSuccess("修改成功"); | |||
| this.open = false; | |||
| this.getList(); | |||
| }); | |||
| } else { | |||
| addAppWithdrawalConfig(this.form).then(response => { | |||
| this.$modal.msgSuccess("新增成功"); | |||
| this.open = false; | |||
| this.getList(); | |||
| }); | |||
| } | |||
| } | |||
| }); | |||
| }, | |||
| /** 删除按钮操作 */ | |||
| handleDelete(row) { | |||
| const ids = row.id || this.ids; | |||
| this.$modal.confirm('是否确认删除钱包提现配置编号为"' + ids + '"的数据项?').then(function() { | |||
| return delAppWithdrawalConfig(ids); | |||
| }).then(() => { | |||
| this.getList(); | |||
| this.$modal.msgSuccess("删除成功"); | |||
| }).catch(() => {}); | |||
| }, | |||
| /** 导出按钮操作 */ | |||
| handleExport() { | |||
| const queryParams = this.queryParams; | |||
| this.$modal.confirm('是否确认导出所有钱包提现配置数据项?').then(() => { | |||
| this.exportLoading = true; | |||
| return exportAppWithdrawalConfig(queryParams); | |||
| }).then(response => { | |||
| this.download(response.msg); | |||
| this.exportLoading = false; | |||
| }).catch(() => {}); | |||
| } | |||
| } | |||
| }; | |||
| </script> | |||
| @ -0,0 +1,30 @@ | |||
| package com.ruoyi.applet.contoller; | |||
| import com.ruoyi.common.core.controller.BaseController; | |||
| import com.ruoyi.common.core.domain.AjaxResult; | |||
| import com.ruoyi.model.service.IAppPlatformAgreementConfigService; | |||
| import io.swagger.annotations.Api; | |||
| import io.swagger.annotations.ApiOperation; | |||
| import org.springframework.beans.factory.annotation.Autowired; | |||
| import org.springframework.web.bind.annotation.GetMapping; | |||
| import org.springframework.web.bind.annotation.PathVariable; | |||
| import org.springframework.web.bind.annotation.RequestMapping; | |||
| import org.springframework.web.bind.annotation.RestController; | |||
| /** | |||
| * 协议规则配置 | |||
| */ | |||
| @Api(description = "协议&规则") | |||
| @RestController | |||
| @RequestMapping("/applet/agreement") | |||
| public class AppletAgreementController extends BaseController { | |||
| @Autowired | |||
| private IAppPlatformAgreementConfigService appPlatformAgreementConfigService; | |||
| @ApiOperation("平台协议") | |||
| @GetMapping("/getPlatformAgreement") | |||
| public AjaxResult getUserById(){ | |||
| return AjaxResult.success(appPlatformAgreementConfigService.getAppPlatformAgreementConfig()); | |||
| } | |||
| } | |||
| @ -0,0 +1,40 @@ | |||
| package com.ruoyi.applet.contoller; | |||
| import com.ruoyi.common.core.controller.BaseController; | |||
| import com.ruoyi.common.core.domain.AjaxResult; | |||
| import com.ruoyi.common.core.page.TableDataInfo; | |||
| import com.ruoyi.model.service.IAppBondConfigService; | |||
| import com.ruoyi.model.service.IAppDepositService; | |||
| import io.swagger.annotations.Api; | |||
| import io.swagger.annotations.ApiOperation; | |||
| import org.springframework.beans.factory.annotation.Autowired; | |||
| import org.springframework.web.bind.annotation.GetMapping; | |||
| import org.springframework.web.bind.annotation.PathVariable; | |||
| import org.springframework.web.bind.annotation.RequestMapping; | |||
| import org.springframework.web.bind.annotation.RestController; | |||
| @Api(description = "保证金") | |||
| @RestController | |||
| @RequestMapping("/applet/bond") | |||
| public class AppletBondController extends BaseController { | |||
| @Autowired | |||
| private IAppBondConfigService appBondConfigService; | |||
| @Autowired | |||
| private IAppDepositService appDepositService; | |||
| @ApiOperation("保证金规则") | |||
| @GetMapping("/bondConfig") | |||
| public AjaxResult getAppBondConfig(){ | |||
| return AjaxResult.success(appBondConfigService.getAppBondConfig()); | |||
| } | |||
| @ApiOperation("保证金记录") | |||
| @GetMapping("/getDeposit{userId}") | |||
| public TableDataInfo getDepositByUserId(@PathVariable Long userId){ | |||
| return getDataTable(appDepositService.getAppDepositListByUserId(userId)); | |||
| } | |||
| } | |||
| @ -0,0 +1,30 @@ | |||
| package com.ruoyi.applet.contoller; | |||
| import com.ruoyi.common.core.controller.BaseController; | |||
| import com.ruoyi.common.core.page.TableDataInfo; | |||
| import com.ruoyi.model.service.IAppMyEvaluateService; | |||
| import io.swagger.annotations.Api; | |||
| import io.swagger.annotations.ApiOperation; | |||
| import org.springframework.beans.factory.annotation.Autowired; | |||
| import org.springframework.web.bind.annotation.*; | |||
| @Api(description = "评价") | |||
| @RestController | |||
| @RequestMapping("/applet/evaluate") | |||
| public class AppletEvaluateController extends BaseController { | |||
| @Autowired | |||
| private IAppMyEvaluateService appMyEvaluateService; | |||
| /** | |||
| * 根据被评价人的id查询所有评价信息 | |||
| * @param petId | |||
| * @return | |||
| */ | |||
| @ApiOperation("我的评价") | |||
| @GetMapping("/myEvaluate/{petId}") | |||
| public TableDataInfo getAppMyEvaluateByPetId(@PathVariable Long petId){ | |||
| return getDataTable(appMyEvaluateService.getAppMyEvaluateByPetId(petId)); | |||
| } | |||
| } | |||
| @ -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.AppBondConfig; | |||
| import com.ruoyi.model.service.IAppBondConfigService; | |||
| import com.ruoyi.common.utils.poi.ExcelUtil; | |||
| import com.ruoyi.common.core.page.TableDataInfo; | |||
| /** | |||
| * 保证金配置Controller | |||
| * | |||
| * @author ruoyi | |||
| * @date 2025-03-08 | |||
| */ | |||
| @RestController | |||
| @RequestMapping("/model/AppBondConfig") | |||
| public class AppBondConfigController extends BaseController | |||
| { | |||
| @Autowired | |||
| private IAppBondConfigService appBondConfigService; | |||
| /** | |||
| * 查询保证金配置列表 | |||
| */ | |||
| @PreAuthorize("@ss.hasPermi('model:AppBondConfig:list')") | |||
| @GetMapping("/list") | |||
| public TableDataInfo list(AppBondConfig appBondConfig) | |||
| { | |||
| startPage(); | |||
| List<AppBondConfig> list = appBondConfigService.selectAppBondConfigList(appBondConfig); | |||
| return getDataTable(list); | |||
| } | |||
| /** | |||
| * 导出保证金配置列表 | |||
| */ | |||
| @PreAuthorize("@ss.hasPermi('model:AppBondConfig:export')") | |||
| @Log(title = "保证金配置", businessType = BusinessType.EXPORT) | |||
| @PostMapping("/export") | |||
| public void export(HttpServletResponse response, AppBondConfig appBondConfig) throws IOException { | |||
| List<AppBondConfig> list = appBondConfigService.selectAppBondConfigList(appBondConfig); | |||
| ExcelUtil<AppBondConfig> util = new ExcelUtil<AppBondConfig>(AppBondConfig.class); | |||
| util.exportExcel(response, list, "保证金配置数据"); | |||
| } | |||
| /** | |||
| * 获取保证金配置详细信息 | |||
| */ | |||
| @PreAuthorize("@ss.hasPermi('model:AppBondConfig:query')") | |||
| @GetMapping(value = "/{id}") | |||
| public AjaxResult getInfo(@PathVariable("id") Long id) | |||
| { | |||
| return success(appBondConfigService.selectAppBondConfigById(id)); | |||
| } | |||
| /** | |||
| * 新增保证金配置 | |||
| */ | |||
| @PreAuthorize("@ss.hasPermi('model:AppBondConfig:add')") | |||
| @Log(title = "保证金配置", businessType = BusinessType.INSERT) | |||
| @PostMapping | |||
| public AjaxResult add(@RequestBody AppBondConfig appBondConfig) | |||
| { | |||
| return toAjax(appBondConfigService.insertAppBondConfig(appBondConfig)); | |||
| } | |||
| /** | |||
| * 修改保证金配置 | |||
| */ | |||
| @PreAuthorize("@ss.hasPermi('model:AppBondConfig:edit')") | |||
| @Log(title = "保证金配置", businessType = BusinessType.UPDATE) | |||
| @PutMapping | |||
| public AjaxResult edit(@RequestBody AppBondConfig appBondConfig) | |||
| { | |||
| return toAjax(appBondConfigService.updateAppBondConfig(appBondConfig)); | |||
| } | |||
| /** | |||
| * 删除保证金配置 | |||
| */ | |||
| @PreAuthorize("@ss.hasPermi('model:AppBondConfig:remove')") | |||
| @Log(title = "保证金配置", businessType = BusinessType.DELETE) | |||
| @DeleteMapping("/{ids}") | |||
| public AjaxResult remove(@PathVariable Long[] ids) | |||
| { | |||
| return toAjax(appBondConfigService.deleteAppBondConfigByIds(ids)); | |||
| } | |||
| } | |||
| @ -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.AppDeposit; | |||
| import com.ruoyi.model.service.IAppDepositService; | |||
| import com.ruoyi.common.utils.poi.ExcelUtil; | |||
| import com.ruoyi.common.core.page.TableDataInfo; | |||
| /** | |||
| * 保证金记录Controller | |||
| * | |||
| * @author ruoyi | |||
| * @date 2025-03-08 | |||
| */ | |||
| @RestController | |||
| @RequestMapping("/model/AppDeposit") | |||
| public class AppDepositController extends BaseController | |||
| { | |||
| @Autowired | |||
| private IAppDepositService appDepositService; | |||
| /** | |||
| * 查询保证金记录列表 | |||
| */ | |||
| @PreAuthorize("@ss.hasPermi('model:AppDeposit:list')") | |||
| @GetMapping("/list") | |||
| public TableDataInfo list(AppDeposit appDeposit) | |||
| { | |||
| startPage(); | |||
| List<AppDeposit> list = appDepositService.selectAppDepositList(appDeposit); | |||
| return getDataTable(list); | |||
| } | |||
| /** | |||
| * 导出保证金记录列表 | |||
| */ | |||
| @PreAuthorize("@ss.hasPermi('model:AppDeposit:export')") | |||
| @Log(title = "保证金记录", businessType = BusinessType.EXPORT) | |||
| @PostMapping("/export") | |||
| public void export(HttpServletResponse response, AppDeposit appDeposit) throws IOException { | |||
| List<AppDeposit> list = appDepositService.selectAppDepositList(appDeposit); | |||
| ExcelUtil<AppDeposit> util = new ExcelUtil<AppDeposit>(AppDeposit.class); | |||
| util.exportExcel(response, list, "保证金记录数据"); | |||
| } | |||
| /** | |||
| * 获取保证金记录详细信息 | |||
| */ | |||
| @PreAuthorize("@ss.hasPermi('model:AppDeposit:query')") | |||
| @GetMapping(value = "/{id}") | |||
| public AjaxResult getInfo(@PathVariable("id") Long id) | |||
| { | |||
| return success(appDepositService.selectAppDepositById(id)); | |||
| } | |||
| /** | |||
| * 新增保证金记录 | |||
| */ | |||
| @PreAuthorize("@ss.hasPermi('model:AppDeposit:add')") | |||
| @Log(title = "保证金记录", businessType = BusinessType.INSERT) | |||
| @PostMapping | |||
| public AjaxResult add(@RequestBody AppDeposit appDeposit) | |||
| { | |||
| return toAjax(appDepositService.insertAppDeposit(appDeposit)); | |||
| } | |||
| /** | |||
| * 修改保证金记录 | |||
| */ | |||
| @PreAuthorize("@ss.hasPermi('model:AppDeposit:edit')") | |||
| @Log(title = "保证金记录", businessType = BusinessType.UPDATE) | |||
| @PutMapping | |||
| public AjaxResult edit(@RequestBody AppDeposit appDeposit) | |||
| { | |||
| return toAjax(appDepositService.updateAppDeposit(appDeposit)); | |||
| } | |||
| /** | |||
| * 删除保证金记录 | |||
| */ | |||
| @PreAuthorize("@ss.hasPermi('model:AppDeposit:remove')") | |||
| @Log(title = "保证金记录", businessType = BusinessType.DELETE) | |||
| @DeleteMapping("/{ids}") | |||
| public AjaxResult remove(@PathVariable Long[] ids) | |||
| { | |||
| return toAjax(appDepositService.deleteAppDepositByIds(ids)); | |||
| } | |||
| } | |||
| @ -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.AppMyEvaluate; | |||
| import com.ruoyi.model.service.IAppMyEvaluateService; | |||
| import com.ruoyi.common.utils.poi.ExcelUtil; | |||
| import com.ruoyi.common.core.page.TableDataInfo; | |||
| /** | |||
| * 我的评价Controller | |||
| * | |||
| * @author ruoyi | |||
| * @date 2025-03-08 | |||
| */ | |||
| @RestController | |||
| @RequestMapping("/model/AppMyEvaluate") | |||
| public class AppMyEvaluateController extends BaseController | |||
| { | |||
| @Autowired | |||
| private IAppMyEvaluateService appMyEvaluateService; | |||
| /** | |||
| * 查询我的评价列表 | |||
| */ | |||
| @PreAuthorize("@ss.hasPermi('model:AppMyEvaluate:list')") | |||
| @GetMapping("/list") | |||
| public TableDataInfo list(AppMyEvaluate appMyEvaluate) | |||
| { | |||
| startPage(); | |||
| List<AppMyEvaluate> list = appMyEvaluateService.selectAppMyEvaluateList(appMyEvaluate); | |||
| return getDataTable(list); | |||
| } | |||
| /** | |||
| * 导出我的评价列表 | |||
| */ | |||
| @PreAuthorize("@ss.hasPermi('model:AppMyEvaluate:export')") | |||
| @Log(title = "我的评价", businessType = BusinessType.EXPORT) | |||
| @PostMapping("/export") | |||
| public void export(HttpServletResponse response, AppMyEvaluate appMyEvaluate) throws IOException { | |||
| List<AppMyEvaluate> list = appMyEvaluateService.selectAppMyEvaluateList(appMyEvaluate); | |||
| ExcelUtil<AppMyEvaluate> util = new ExcelUtil<AppMyEvaluate>(AppMyEvaluate.class); | |||
| util.exportExcel(response, list, "我的评价数据"); | |||
| } | |||
| /** | |||
| * 获取我的评价详细信息 | |||
| */ | |||
| @PreAuthorize("@ss.hasPermi('model:AppMyEvaluate:query')") | |||
| @GetMapping(value = "/{id}") | |||
| public AjaxResult getInfo(@PathVariable("id") Long id) | |||
| { | |||
| return success(appMyEvaluateService.selectAppMyEvaluateById(id)); | |||
| } | |||
| /** | |||
| * 新增我的评价 | |||
| */ | |||
| @PreAuthorize("@ss.hasPermi('model:AppMyEvaluate:add')") | |||
| @Log(title = "我的评价", businessType = BusinessType.INSERT) | |||
| @PostMapping | |||
| public AjaxResult add(@RequestBody AppMyEvaluate appMyEvaluate) | |||
| { | |||
| return toAjax(appMyEvaluateService.insertAppMyEvaluate(appMyEvaluate)); | |||
| } | |||
| /** | |||
| * 修改我的评价 | |||
| */ | |||
| @PreAuthorize("@ss.hasPermi('model:AppMyEvaluate:edit')") | |||
| @Log(title = "我的评价", businessType = BusinessType.UPDATE) | |||
| @PutMapping | |||
| public AjaxResult edit(@RequestBody AppMyEvaluate appMyEvaluate) | |||
| { | |||
| return toAjax(appMyEvaluateService.updateAppMyEvaluate(appMyEvaluate)); | |||
| } | |||
| /** | |||
| * 删除我的评价 | |||
| */ | |||
| @PreAuthorize("@ss.hasPermi('model:AppMyEvaluate:remove')") | |||
| @Log(title = "我的评价", businessType = BusinessType.DELETE) | |||
| @DeleteMapping("/{ids}") | |||
| public AjaxResult remove(@PathVariable Long[] ids) | |||
| { | |||
| return toAjax(appMyEvaluateService.deleteAppMyEvaluateByIds(ids)); | |||
| } | |||
| } | |||
| @ -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.AppPlatformAgreementConfig; | |||
| import com.ruoyi.model.service.IAppPlatformAgreementConfigService; | |||
| import com.ruoyi.common.utils.poi.ExcelUtil; | |||
| import com.ruoyi.common.core.page.TableDataInfo; | |||
| /** | |||
| * 平台协议配置Controller | |||
| * | |||
| * @author ruoyi | |||
| * @date 2025-03-08 | |||
| */ | |||
| @RestController | |||
| @RequestMapping("/model/AppPlatformAgreementConfig") | |||
| public class AppPlatformAgreementConfigController extends BaseController | |||
| { | |||
| @Autowired | |||
| private IAppPlatformAgreementConfigService appPlatformAgreementConfigService; | |||
| /** | |||
| * 查询平台协议配置列表 | |||
| */ | |||
| @PreAuthorize("@ss.hasPermi('model:AppPlatformAgreementConfig:list')") | |||
| @GetMapping("/list") | |||
| public TableDataInfo list(AppPlatformAgreementConfig appPlatformAgreementConfig) | |||
| { | |||
| startPage(); | |||
| List<AppPlatformAgreementConfig> list = appPlatformAgreementConfigService.selectAppPlatformAgreementConfigList(appPlatformAgreementConfig); | |||
| return getDataTable(list); | |||
| } | |||
| /** | |||
| * 导出平台协议配置列表 | |||
| */ | |||
| @PreAuthorize("@ss.hasPermi('model:AppPlatformAgreementConfig:export')") | |||
| @Log(title = "平台协议配置", businessType = BusinessType.EXPORT) | |||
| @PostMapping("/export") | |||
| public void export(HttpServletResponse response, AppPlatformAgreementConfig appPlatformAgreementConfig) throws IOException { | |||
| List<AppPlatformAgreementConfig> list = appPlatformAgreementConfigService.selectAppPlatformAgreementConfigList(appPlatformAgreementConfig); | |||
| ExcelUtil<AppPlatformAgreementConfig> util = new ExcelUtil<AppPlatformAgreementConfig>(AppPlatformAgreementConfig.class); | |||
| util.exportExcel(response, list, "平台协议配置数据"); | |||
| } | |||
| /** | |||
| * 获取平台协议配置详细信息 | |||
| */ | |||
| @PreAuthorize("@ss.hasPermi('model:AppPlatformAgreementConfig:query')") | |||
| @GetMapping(value = "/{id}") | |||
| public AjaxResult getInfo(@PathVariable("id") Long id) | |||
| { | |||
| return success(appPlatformAgreementConfigService.selectAppPlatformAgreementConfigById(id)); | |||
| } | |||
| /** | |||
| * 新增平台协议配置 | |||
| */ | |||
| @PreAuthorize("@ss.hasPermi('model:AppPlatformAgreementConfig:add')") | |||
| @Log(title = "平台协议配置", businessType = BusinessType.INSERT) | |||
| @PostMapping | |||
| public AjaxResult add(@RequestBody AppPlatformAgreementConfig appPlatformAgreementConfig) | |||
| { | |||
| return toAjax(appPlatformAgreementConfigService.insertAppPlatformAgreementConfig(appPlatformAgreementConfig)); | |||
| } | |||
| /** | |||
| * 修改平台协议配置 | |||
| */ | |||
| @PreAuthorize("@ss.hasPermi('model:AppPlatformAgreementConfig:edit')") | |||
| @Log(title = "平台协议配置", businessType = BusinessType.UPDATE) | |||
| @PutMapping | |||
| public AjaxResult edit(@RequestBody AppPlatformAgreementConfig appPlatformAgreementConfig) | |||
| { | |||
| return toAjax(appPlatformAgreementConfigService.updateAppPlatformAgreementConfig(appPlatformAgreementConfig)); | |||
| } | |||
| /** | |||
| * 删除平台协议配置 | |||
| */ | |||
| @PreAuthorize("@ss.hasPermi('model:AppPlatformAgreementConfig:remove')") | |||
| @Log(title = "平台协议配置", businessType = BusinessType.DELETE) | |||
| @DeleteMapping("/{ids}") | |||
| public AjaxResult remove(@PathVariable Long[] ids) | |||
| { | |||
| return toAjax(appPlatformAgreementConfigService.deleteAppPlatformAgreementConfigByIds(ids)); | |||
| } | |||
| } | |||
| @ -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.AppTransactionDetails; | |||
| import com.ruoyi.model.service.IAppTransactionDetailsService; | |||
| import com.ruoyi.common.utils.poi.ExcelUtil; | |||
| import com.ruoyi.common.core.page.TableDataInfo; | |||
| /** | |||
| * 交易明细记录Controller | |||
| * | |||
| * @author ruoyi | |||
| * @date 2025-03-08 | |||
| */ | |||
| @RestController | |||
| @RequestMapping("/model/AppTransactionDetails") | |||
| public class AppTransactionDetailsController extends BaseController | |||
| { | |||
| @Autowired | |||
| private IAppTransactionDetailsService appTransactionDetailsService; | |||
| /** | |||
| * 查询交易明细记录列表 | |||
| */ | |||
| @PreAuthorize("@ss.hasPermi('model:AppTransactionDetails:list')") | |||
| @GetMapping("/list") | |||
| public TableDataInfo list(AppTransactionDetails appTransactionDetails) | |||
| { | |||
| startPage(); | |||
| List<AppTransactionDetails> list = appTransactionDetailsService.selectAppTransactionDetailsList(appTransactionDetails); | |||
| return getDataTable(list); | |||
| } | |||
| /** | |||
| * 导出交易明细记录列表 | |||
| */ | |||
| @PreAuthorize("@ss.hasPermi('model:AppTransactionDetails:export')") | |||
| @Log(title = "交易明细记录", businessType = BusinessType.EXPORT) | |||
| @PostMapping("/export") | |||
| public void export(HttpServletResponse response, AppTransactionDetails appTransactionDetails) throws IOException { | |||
| List<AppTransactionDetails> list = appTransactionDetailsService.selectAppTransactionDetailsList(appTransactionDetails); | |||
| ExcelUtil<AppTransactionDetails> util = new ExcelUtil<AppTransactionDetails>(AppTransactionDetails.class); | |||
| util.exportExcel(response, list, "交易明细记录数据"); | |||
| } | |||
| /** | |||
| * 获取交易明细记录详细信息 | |||
| */ | |||
| @PreAuthorize("@ss.hasPermi('model:AppTransactionDetails:query')") | |||
| @GetMapping(value = "/{id}") | |||
| public AjaxResult getInfo(@PathVariable("id") Long id) | |||
| { | |||
| return success(appTransactionDetailsService.selectAppTransactionDetailsById(id)); | |||
| } | |||
| /** | |||
| * 新增交易明细记录 | |||
| */ | |||
| @PreAuthorize("@ss.hasPermi('model:AppTransactionDetails:add')") | |||
| @Log(title = "交易明细记录", businessType = BusinessType.INSERT) | |||
| @PostMapping | |||
| public AjaxResult add(@RequestBody AppTransactionDetails appTransactionDetails) | |||
| { | |||
| return toAjax(appTransactionDetailsService.insertAppTransactionDetails(appTransactionDetails)); | |||
| } | |||
| /** | |||
| * 修改交易明细记录 | |||
| */ | |||
| @PreAuthorize("@ss.hasPermi('model:AppTransactionDetails:edit')") | |||
| @Log(title = "交易明细记录", businessType = BusinessType.UPDATE) | |||
| @PutMapping | |||
| public AjaxResult edit(@RequestBody AppTransactionDetails appTransactionDetails) | |||
| { | |||
| return toAjax(appTransactionDetailsService.updateAppTransactionDetails(appTransactionDetails)); | |||
| } | |||
| /** | |||
| * 删除交易明细记录 | |||
| */ | |||
| @PreAuthorize("@ss.hasPermi('model:AppTransactionDetails:remove')") | |||
| @Log(title = "交易明细记录", businessType = BusinessType.DELETE) | |||
| @DeleteMapping("/{ids}") | |||
| public AjaxResult remove(@PathVariable Long[] ids) | |||
| { | |||
| return toAjax(appTransactionDetailsService.deleteAppTransactionDetailsByIds(ids)); | |||
| } | |||
| } | |||
| @ -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.AppUsers; | |||
| import com.ruoyi.model.service.IAppUsersService; | |||
| import com.ruoyi.common.utils.poi.ExcelUtil; | |||
| import com.ruoyi.common.core.page.TableDataInfo; | |||
| /** | |||
| * 用户Controller | |||
| * | |||
| * @author ruoyi | |||
| * @date 2025-03-08 | |||
| */ | |||
| @RestController | |||
| @RequestMapping("/model/AppUsers") | |||
| public class AppUsersController extends BaseController | |||
| { | |||
| @Autowired | |||
| private IAppUsersService appUsersService; | |||
| /** | |||
| * 查询用户列表 | |||
| */ | |||
| @PreAuthorize("@ss.hasPermi('model:AppUsers:list')") | |||
| @GetMapping("/list") | |||
| public TableDataInfo list(AppUsers appUsers) | |||
| { | |||
| startPage(); | |||
| List<AppUsers> list = appUsersService.selectAppUsersList(appUsers); | |||
| return getDataTable(list); | |||
| } | |||
| /** | |||
| * 导出用户列表 | |||
| */ | |||
| @PreAuthorize("@ss.hasPermi('model:AppUsers:export')") | |||
| @Log(title = "用户", businessType = BusinessType.EXPORT) | |||
| @PostMapping("/export") | |||
| public void export(HttpServletResponse response, AppUsers appUsers) throws IOException { | |||
| List<AppUsers> list = appUsersService.selectAppUsersList(appUsers); | |||
| ExcelUtil<AppUsers> util = new ExcelUtil<AppUsers>(AppUsers.class); | |||
| util.exportExcel(response, list, "用户数据"); | |||
| } | |||
| /** | |||
| * 获取用户详细信息 | |||
| */ | |||
| @PreAuthorize("@ss.hasPermi('model:AppUsers:query')") | |||
| @GetMapping(value = "/{userId}") | |||
| public AjaxResult getInfo(@PathVariable("userId") Long userId) | |||
| { | |||
| return success(appUsersService.selectAppUsersByUserId(userId)); | |||
| } | |||
| /** | |||
| * 新增用户 | |||
| */ | |||
| @PreAuthorize("@ss.hasPermi('model:AppUsers:add')") | |||
| @Log(title = "用户", businessType = BusinessType.INSERT) | |||
| @PostMapping | |||
| public AjaxResult add(@RequestBody AppUsers appUsers) | |||
| { | |||
| return toAjax(appUsersService.insertAppUsers(appUsers)); | |||
| } | |||
| /** | |||
| * 修改用户 | |||
| */ | |||
| @PreAuthorize("@ss.hasPermi('model:AppUsers:edit')") | |||
| @Log(title = "用户", businessType = BusinessType.UPDATE) | |||
| @PutMapping | |||
| public AjaxResult edit(@RequestBody AppUsers appUsers) | |||
| { | |||
| return toAjax(appUsersService.updateAppUsers(appUsers)); | |||
| } | |||
| /** | |||
| * 删除用户 | |||
| */ | |||
| @PreAuthorize("@ss.hasPermi('model:AppUsers:remove')") | |||
| @Log(title = "用户", businessType = BusinessType.DELETE) | |||
| @DeleteMapping("/{userIds}") | |||
| public AjaxResult remove(@PathVariable Long[] userIds) | |||
| { | |||
| return toAjax(appUsersService.deleteAppUsersByUserIds(userIds)); | |||
| } | |||
| } | |||
| @ -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.AppWallet; | |||
| import com.ruoyi.model.service.IAppWalletService; | |||
| import com.ruoyi.common.utils.poi.ExcelUtil; | |||
| import com.ruoyi.common.core.page.TableDataInfo; | |||
| /** | |||
| * 钱包Controller | |||
| * | |||
| * @author ruoyi | |||
| * @date 2025-03-08 | |||
| */ | |||
| @RestController | |||
| @RequestMapping("/model/AppWallet") | |||
| public class AppWalletController extends BaseController | |||
| { | |||
| @Autowired | |||
| private IAppWalletService appWalletService; | |||
| /** | |||
| * 查询钱包列表 | |||
| */ | |||
| @PreAuthorize("@ss.hasPermi('model:AppWallet:list')") | |||
| @GetMapping("/list") | |||
| public TableDataInfo list(AppWallet appWallet) | |||
| { | |||
| startPage(); | |||
| List<AppWallet> list = appWalletService.selectAppWalletList(appWallet); | |||
| return getDataTable(list); | |||
| } | |||
| /** | |||
| * 导出钱包列表 | |||
| */ | |||
| @PreAuthorize("@ss.hasPermi('model:AppWallet:export')") | |||
| @Log(title = "钱包", businessType = BusinessType.EXPORT) | |||
| @PostMapping("/export") | |||
| public void export(HttpServletResponse response, AppWallet appWallet) throws IOException { | |||
| List<AppWallet> list = appWalletService.selectAppWalletList(appWallet); | |||
| ExcelUtil<AppWallet> util = new ExcelUtil<AppWallet>(AppWallet.class); | |||
| util.exportExcel(response, list, "钱包数据"); | |||
| } | |||
| /** | |||
| * 获取钱包详细信息 | |||
| */ | |||
| @PreAuthorize("@ss.hasPermi('model:AppWallet:query')") | |||
| @GetMapping(value = "/{id}") | |||
| public AjaxResult getInfo(@PathVariable("id") Long id) | |||
| { | |||
| return success(appWalletService.selectAppWalletById(id)); | |||
| } | |||
| /** | |||
| * 新增钱包 | |||
| */ | |||
| @PreAuthorize("@ss.hasPermi('model:AppWallet:add')") | |||
| @Log(title = "钱包", businessType = BusinessType.INSERT) | |||
| @PostMapping | |||
| public AjaxResult add(@RequestBody AppWallet appWallet) | |||
| { | |||
| return toAjax(appWalletService.insertAppWallet(appWallet)); | |||
| } | |||
| /** | |||
| * 修改钱包 | |||
| */ | |||
| @PreAuthorize("@ss.hasPermi('model:AppWallet:edit')") | |||
| @Log(title = "钱包", businessType = BusinessType.UPDATE) | |||
| @PutMapping | |||
| public AjaxResult edit(@RequestBody AppWallet appWallet) | |||
| { | |||
| return toAjax(appWalletService.updateAppWallet(appWallet)); | |||
| } | |||
| /** | |||
| * 删除钱包 | |||
| */ | |||
| @PreAuthorize("@ss.hasPermi('model:AppWallet:remove')") | |||
| @Log(title = "钱包", businessType = BusinessType.DELETE) | |||
| @DeleteMapping("/{ids}") | |||
| public AjaxResult remove(@PathVariable Long[] ids) | |||
| { | |||
| return toAjax(appWalletService.deleteAppWalletByIds(ids)); | |||
| } | |||
| } | |||
| @ -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.AppWithdrawalConfig; | |||
| import com.ruoyi.model.service.IAppWithdrawalConfigService; | |||
| import com.ruoyi.common.utils.poi.ExcelUtil; | |||
| import com.ruoyi.common.core.page.TableDataInfo; | |||
| /** | |||
| * 钱包提现配置Controller | |||
| * | |||
| * @author ruoyi | |||
| * @date 2025-03-08 | |||
| */ | |||
| @RestController | |||
| @RequestMapping("/model/AppWithdrawalConfig") | |||
| public class AppWithdrawalConfigController extends BaseController | |||
| { | |||
| @Autowired | |||
| private IAppWithdrawalConfigService appWithdrawalConfigService; | |||
| /** | |||
| * 查询钱包提现配置列表 | |||
| */ | |||
| @PreAuthorize("@ss.hasPermi('model:AppWithdrawalConfig:list')") | |||
| @GetMapping("/list") | |||
| public TableDataInfo list(AppWithdrawalConfig appWithdrawalConfig) | |||
| { | |||
| startPage(); | |||
| List<AppWithdrawalConfig> list = appWithdrawalConfigService.selectAppWithdrawalConfigList(appWithdrawalConfig); | |||
| return getDataTable(list); | |||
| } | |||
| /** | |||
| * 导出钱包提现配置列表 | |||
| */ | |||
| @PreAuthorize("@ss.hasPermi('model:AppWithdrawalConfig:export')") | |||
| @Log(title = "钱包提现配置", businessType = BusinessType.EXPORT) | |||
| @PostMapping("/export") | |||
| public void export(HttpServletResponse response, AppWithdrawalConfig appWithdrawalConfig) throws IOException { | |||
| List<AppWithdrawalConfig> list = appWithdrawalConfigService.selectAppWithdrawalConfigList(appWithdrawalConfig); | |||
| ExcelUtil<AppWithdrawalConfig> util = new ExcelUtil<AppWithdrawalConfig>(AppWithdrawalConfig.class); | |||
| util.exportExcel(response, list, "钱包提现配置数据"); | |||
| } | |||
| /** | |||
| * 获取钱包提现配置详细信息 | |||
| */ | |||
| @PreAuthorize("@ss.hasPermi('model:AppWithdrawalConfig:query')") | |||
| @GetMapping(value = "/{id}") | |||
| public AjaxResult getInfo(@PathVariable("id") Long id) | |||
| { | |||
| return success(appWithdrawalConfigService.selectAppWithdrawalConfigById(id)); | |||
| } | |||
| /** | |||
| * 新增钱包提现配置 | |||
| */ | |||
| @PreAuthorize("@ss.hasPermi('model:AppWithdrawalConfig:add')") | |||
| @Log(title = "钱包提现配置", businessType = BusinessType.INSERT) | |||
| @PostMapping | |||
| public AjaxResult add(@RequestBody AppWithdrawalConfig appWithdrawalConfig) | |||
| { | |||
| return toAjax(appWithdrawalConfigService.insertAppWithdrawalConfig(appWithdrawalConfig)); | |||
| } | |||
| /** | |||
| * 修改钱包提现配置 | |||
| */ | |||
| @PreAuthorize("@ss.hasPermi('model:AppWithdrawalConfig:edit')") | |||
| @Log(title = "钱包提现配置", businessType = BusinessType.UPDATE) | |||
| @PutMapping | |||
| public AjaxResult edit(@RequestBody AppWithdrawalConfig appWithdrawalConfig) | |||
| { | |||
| return toAjax(appWithdrawalConfigService.updateAppWithdrawalConfig(appWithdrawalConfig)); | |||
| } | |||
| /** | |||
| * 删除钱包提现配置 | |||
| */ | |||
| @PreAuthorize("@ss.hasPermi('model:AppWithdrawalConfig:remove')") | |||
| @Log(title = "钱包提现配置", businessType = BusinessType.DELETE) | |||
| @DeleteMapping("/{ids}") | |||
| public AjaxResult remove(@PathVariable Long[] ids) | |||
| { | |||
| return toAjax(appWithdrawalConfigService.deleteAppWithdrawalConfigByIds(ids)); | |||
| } | |||
| } | |||
| @ -0,0 +1,97 @@ | |||
| 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; | |||
| /** | |||
| * 保证金配置对象 app_bond_config | |||
| * | |||
| * @author ruoyi | |||
| * @date 2025-03-08 | |||
| */ | |||
| public class AppBondConfig extends BaseEntity | |||
| { | |||
| private static final long serialVersionUID = 1L; | |||
| /** 主键 */ | |||
| private Long id; | |||
| /** 保证金标题 */ | |||
| @Excel(name = "保证金标题") | |||
| private String bondTitle; | |||
| /** 保证金说明 */ | |||
| @Excel(name = "保证金说明") | |||
| private String bondText; | |||
| /** 保证金协议 */ | |||
| @Excel(name = "保证金协议") | |||
| private String bondUrl; | |||
| /** 删除标志 */ | |||
| private Integer delFlag; | |||
| public void setId(Long id) | |||
| { | |||
| this.id = id; | |||
| } | |||
| public Long getId() | |||
| { | |||
| return id; | |||
| } | |||
| public void setBondTitle(String bondTitle) | |||
| { | |||
| this.bondTitle = bondTitle; | |||
| } | |||
| public String getBondTitle() | |||
| { | |||
| return bondTitle; | |||
| } | |||
| public void setBondText(String bondText) | |||
| { | |||
| this.bondText = bondText; | |||
| } | |||
| public String getBondText() | |||
| { | |||
| return bondText; | |||
| } | |||
| public void setBondUrl(String bondUrl) | |||
| { | |||
| this.bondUrl = bondUrl; | |||
| } | |||
| public String getBondUrl() | |||
| { | |||
| return bondUrl; | |||
| } | |||
| public void setDelFlag(Integer delFlag) | |||
| { | |||
| this.delFlag = delFlag; | |||
| } | |||
| public Integer getDelFlag() | |||
| { | |||
| return delFlag; | |||
| } | |||
| @Override | |||
| public String toString() { | |||
| return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) | |||
| .append("id", getId()) | |||
| .append("bondTitle", getBondTitle()) | |||
| .append("bondText", getBondText()) | |||
| .append("bondUrl", getBondUrl()) | |||
| .append("remark", getRemark()) | |||
| .append("createTime", getCreateTime()) | |||
| .append("createBy", getCreateBy()) | |||
| .append("updateTime", getUpdateTime()) | |||
| .append("updateBy", getUpdateBy()) | |||
| .append("delFlag", getDelFlag()) | |||
| .toString(); | |||
| } | |||
| } | |||
| @ -0,0 +1,112 @@ | |||
| package com.ruoyi.model.domain; | |||
| import java.math.BigDecimal; | |||
| 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; | |||
| /** | |||
| * 保证金记录对象 app_deposit | |||
| * | |||
| * @author ruoyi | |||
| * @date 2025-03-08 | |||
| */ | |||
| public class AppDeposit extends BaseEntity | |||
| { | |||
| private static final long serialVersionUID = 1L; | |||
| /** 保证金编号 */ | |||
| private Long id; | |||
| /** 明细名称 */ | |||
| @Excel(name = "明细名称") | |||
| private String detailsName; | |||
| /** 交易金额 */ | |||
| @Excel(name = "交易金额") | |||
| private BigDecimal detailsPrice; | |||
| /** 交易类型: 1为收入明细,2为支出明细 */ | |||
| @Excel(name = "交易类型: 1为收入明细,2为支出明细") | |||
| private Long transactionType; | |||
| /** 伴宠师ID */ | |||
| @Excel(name = "伴宠师ID") | |||
| private Long usersId; | |||
| /** 删除标志 */ | |||
| private Integer delFlag; | |||
| public void setId(Long id) | |||
| { | |||
| this.id = id; | |||
| } | |||
| public Long getId() | |||
| { | |||
| return id; | |||
| } | |||
| public void setDetailsName(String detailsName) | |||
| { | |||
| this.detailsName = detailsName; | |||
| } | |||
| public String getDetailsName() | |||
| { | |||
| return detailsName; | |||
| } | |||
| public void setDetailsPrice(BigDecimal detailsPrice) | |||
| { | |||
| this.detailsPrice = detailsPrice; | |||
| } | |||
| public BigDecimal getDetailsPrice() | |||
| { | |||
| return detailsPrice; | |||
| } | |||
| public void setTransactionType(Long transactionType) | |||
| { | |||
| this.transactionType = transactionType; | |||
| } | |||
| public Long getTransactionType() | |||
| { | |||
| return transactionType; | |||
| } | |||
| public void setUsersId(Long usersId) | |||
| { | |||
| this.usersId = usersId; | |||
| } | |||
| public Long getUsersId() | |||
| { | |||
| return usersId; | |||
| } | |||
| public void setDelFlag(Integer delFlag) | |||
| { | |||
| this.delFlag = delFlag; | |||
| } | |||
| public Integer getDelFlag() | |||
| { | |||
| return delFlag; | |||
| } | |||
| @Override | |||
| public String toString() { | |||
| return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) | |||
| .append("id", getId()) | |||
| .append("detailsName", getDetailsName()) | |||
| .append("detailsPrice", getDetailsPrice()) | |||
| .append("transactionType", getTransactionType()) | |||
| .append("usersId", getUsersId()) | |||
| .append("remark", getRemark()) | |||
| .append("createTime", getCreateTime()) | |||
| .append("createBy", getCreateBy()) | |||
| .append("updateTime", getUpdateTime()) | |||
| .append("updateBy", getUpdateBy()) | |||
| .append("delFlag", getDelFlag()) | |||
| .toString(); | |||
| } | |||
| } | |||
| @ -0,0 +1,114 @@ | |||
| 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; | |||
| /** | |||
| * 我的评价对象 app_my_evaluate | |||
| * | |||
| * @author ruoyi | |||
| * @date 2025-03-08 | |||
| */ | |||
| public class AppMyEvaluate extends BaseEntity | |||
| { | |||
| private static final long serialVersionUID = 1L; | |||
| /** $column.columnComment */ | |||
| private Long id; | |||
| /** 评价人ID */ | |||
| @Excel(name = "评价人ID") | |||
| private Long uid; | |||
| /** 被评价人ID */ | |||
| @Excel(name = "被评价人ID") | |||
| private Long petId; | |||
| /** 评价内容 */ | |||
| @Excel(name = "评价内容") | |||
| private String evaluateText; | |||
| /** 评价时间 */ | |||
| @JsonFormat(pattern = "yyyy-MM-dd") | |||
| @Excel(name = "评价时间", width = 30, dateFormat = "yyyy-MM-dd") | |||
| private Date evaluateTime; | |||
| /** 删除标志 */ | |||
| private Long delFlag; | |||
| public void setId(Long id) | |||
| { | |||
| this.id = id; | |||
| } | |||
| public Long getId() | |||
| { | |||
| return id; | |||
| } | |||
| public void setUid(Long uid) | |||
| { | |||
| this.uid = uid; | |||
| } | |||
| public Long getUid() | |||
| { | |||
| return uid; | |||
| } | |||
| public void setPetId(Long petId) | |||
| { | |||
| this.petId = petId; | |||
| } | |||
| public Long getPetId() | |||
| { | |||
| return petId; | |||
| } | |||
| public void setEvaluateText(String evaluateText) | |||
| { | |||
| this.evaluateText = evaluateText; | |||
| } | |||
| public String getEvaluateText() | |||
| { | |||
| return evaluateText; | |||
| } | |||
| public void setEvaluateTime(Date evaluateTime) | |||
| { | |||
| this.evaluateTime = evaluateTime; | |||
| } | |||
| public Date getEvaluateTime() | |||
| { | |||
| return evaluateTime; | |||
| } | |||
| public void setDelFlag(Long delFlag) | |||
| { | |||
| this.delFlag = delFlag; | |||
| } | |||
| public Long getDelFlag() | |||
| { | |||
| return delFlag; | |||
| } | |||
| @Override | |||
| public String toString() { | |||
| return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) | |||
| .append("id", getId()) | |||
| .append("uid", getUid()) | |||
| .append("petId", getPetId()) | |||
| .append("evaluateText", getEvaluateText()) | |||
| .append("evaluateTime", getEvaluateTime()) | |||
| .append("remark", getRemark()) | |||
| .append("createTime", getCreateTime()) | |||
| .append("createBy", getCreateBy()) | |||
| .append("updateTime", getUpdateTime()) | |||
| .append("updateBy", getUpdateBy()) | |||
| .append("delFlag", getDelFlag()) | |||
| .toString(); | |||
| } | |||
| } | |||
| @ -0,0 +1,69 @@ | |||
| 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; | |||
| /** | |||
| * 平台协议配置对象 app_platform_agreement_config | |||
| * | |||
| * @author ruoyi | |||
| * @date 2025-03-08 | |||
| */ | |||
| public class AppPlatformAgreementConfig extends BaseEntity | |||
| { | |||
| private static final long serialVersionUID = 1L; | |||
| /** 主键 */ | |||
| private Long id; | |||
| /** 平台协议 */ | |||
| @Excel(name = "平台协议") | |||
| private String platformAgreementText; | |||
| /** 删除标志 */ | |||
| private Long delFlag; | |||
| public void setId(Long id) | |||
| { | |||
| this.id = id; | |||
| } | |||
| public Long getId() | |||
| { | |||
| return id; | |||
| } | |||
| public void setPlatformAgreementText(String platformAgreementText) | |||
| { | |||
| this.platformAgreementText = platformAgreementText; | |||
| } | |||
| public String getPlatformAgreementText() | |||
| { | |||
| return platformAgreementText; | |||
| } | |||
| public void setDelFlag(Long delFlag) | |||
| { | |||
| this.delFlag = delFlag; | |||
| } | |||
| public Long getDelFlag() | |||
| { | |||
| return delFlag; | |||
| } | |||
| @Override | |||
| public String toString() { | |||
| return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) | |||
| .append("id", getId()) | |||
| .append("platformAgreementText", getPlatformAgreementText()) | |||
| .append("remark", getRemark()) | |||
| .append("createTime", getCreateTime()) | |||
| .append("createBy", getCreateBy()) | |||
| .append("updateTime", getUpdateTime()) | |||
| .append("updateBy", getUpdateBy()) | |||
| .append("delFlag", getDelFlag()) | |||
| .toString(); | |||
| } | |||
| } | |||
| @ -0,0 +1,111 @@ | |||
| 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; | |||
| /** | |||
| * 交易明细记录对象 app_transaction_details | |||
| * | |||
| * @author ruoyi | |||
| * @date 2025-03-08 | |||
| */ | |||
| public class AppTransactionDetails extends BaseEntity | |||
| { | |||
| private static final long serialVersionUID = 1L; | |||
| /** 交易明细编号 */ | |||
| private Long id; | |||
| /** 钱包ID */ | |||
| @Excel(name = "钱包ID") | |||
| private Long wid; | |||
| /** 明细名称 */ | |||
| @Excel(name = "明细名称") | |||
| private String detailsName; | |||
| /** 金额 */ | |||
| @Excel(name = "金额") | |||
| private Long detailsPrice; | |||
| /** 交易类型: 1为收入明细,2为支出明细 */ | |||
| @Excel(name = "交易类型: 1为收入明细,2为支出明细") | |||
| private Long transactionType; | |||
| /** 删除标志 */ | |||
| private Long delFlag; | |||
| public void setId(Long id) | |||
| { | |||
| this.id = id; | |||
| } | |||
| public Long getId() | |||
| { | |||
| return id; | |||
| } | |||
| public void setWid(Long wid) | |||
| { | |||
| this.wid = wid; | |||
| } | |||
| public Long getWid() | |||
| { | |||
| return wid; | |||
| } | |||
| public void setDetailsName(String detailsName) | |||
| { | |||
| this.detailsName = detailsName; | |||
| } | |||
| public String getDetailsName() | |||
| { | |||
| return detailsName; | |||
| } | |||
| public void setDetailsPrice(Long detailsPrice) | |||
| { | |||
| this.detailsPrice = detailsPrice; | |||
| } | |||
| public Long getDetailsPrice() | |||
| { | |||
| return detailsPrice; | |||
| } | |||
| public void setTransactionType(Long transactionType) | |||
| { | |||
| this.transactionType = transactionType; | |||
| } | |||
| public Long getTransactionType() | |||
| { | |||
| return transactionType; | |||
| } | |||
| public void setDelFlag(Long delFlag) | |||
| { | |||
| this.delFlag = delFlag; | |||
| } | |||
| public Long getDelFlag() | |||
| { | |||
| return delFlag; | |||
| } | |||
| @Override | |||
| public String toString() { | |||
| return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) | |||
| .append("id", getId()) | |||
| .append("wid", getWid()) | |||
| .append("detailsName", getDetailsName()) | |||
| .append("detailsPrice", getDetailsPrice()) | |||
| .append("transactionType", getTransactionType()) | |||
| .append("remark", getRemark()) | |||
| .append("createTime", getCreateTime()) | |||
| .append("createBy", getCreateBy()) | |||
| .append("updateTime", getUpdateTime()) | |||
| .append("updateBy", getUpdateBy()) | |||
| .append("delFlag", getDelFlag()) | |||
| .toString(); | |||
| } | |||
| } | |||
| @ -0,0 +1,211 @@ | |||
| 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; | |||
| /** | |||
| * 用户对象 app_users | |||
| * | |||
| * @author ruoyi | |||
| * @date 2025-03-08 | |||
| */ | |||
| public class AppUsers extends BaseEntity | |||
| { | |||
| private static final long serialVersionUID = 1L; | |||
| /** 用户编号 */ | |||
| private Long userId; | |||
| /** 逻辑删除 */ | |||
| private Integer delFlag; | |||
| /** 修改人 */ | |||
| @Excel(name = "修改人") | |||
| private String updatorBy; | |||
| /** 用户头像 */ | |||
| @Excel(name = "用户头像") | |||
| private String userImage; | |||
| /** 用户名称 */ | |||
| @Excel(name = "用户名称") | |||
| private String userName; | |||
| /** 用户状态, 0==为注册, 1==已注册为认证 */ | |||
| @Excel(name = "用户状态, 0==为注册, 1==已注册为认证") | |||
| private Long userState; | |||
| /** 用户电话 */ | |||
| @Excel(name = "用户电话") | |||
| private String userTelephone; | |||
| /** 只有在用户将公众号绑定到微信开放平台帐号后,才会出现该字段 */ | |||
| @Excel(name = "只有在用户将公众号绑定到微信开放平台帐号后,才会出现该字段") | |||
| private String unionid; | |||
| /** 用户的标识,对当前公众号唯一 */ | |||
| @Excel(name = "用户的标识,对当前公众号唯一") | |||
| private String openid; | |||
| /** token */ | |||
| @Excel(name = "token") | |||
| private String accessToken; | |||
| /** 过期时间 */ | |||
| @Excel(name = "过期时间") | |||
| private Long expiresIn; | |||
| /** 刷新token */ | |||
| @Excel(name = "刷新token") | |||
| private String refreshToken; | |||
| /** 过期时间 */ | |||
| @JsonFormat(pattern = "yyyy-MM-dd") | |||
| @Excel(name = "过期时间", width = 30, dateFormat = "yyyy-MM-dd") | |||
| private Date expireTime; | |||
| public void setUserId(Long userId) | |||
| { | |||
| this.userId = userId; | |||
| } | |||
| public Long getUserId() | |||
| { | |||
| return userId; | |||
| } | |||
| public void setDelFlag(Integer delFlag) | |||
| { | |||
| this.delFlag = delFlag; | |||
| } | |||
| public Integer getDelFlag() | |||
| { | |||
| return delFlag; | |||
| } | |||
| public void setUpdatorBy(String updatorBy) | |||
| { | |||
| this.updatorBy = updatorBy; | |||
| } | |||
| public String getUpdatorBy() | |||
| { | |||
| return updatorBy; | |||
| } | |||
| public void setUserImage(String userImage) | |||
| { | |||
| this.userImage = userImage; | |||
| } | |||
| public String getUserImage() | |||
| { | |||
| return userImage; | |||
| } | |||
| public void setUserName(String userName) | |||
| { | |||
| this.userName = userName; | |||
| } | |||
| public String getUserName() | |||
| { | |||
| return userName; | |||
| } | |||
| public void setUserState(Long userState) | |||
| { | |||
| this.userState = userState; | |||
| } | |||
| public Long getUserState() | |||
| { | |||
| return userState; | |||
| } | |||
| public void setUserTelephone(String userTelephone) | |||
| { | |||
| this.userTelephone = userTelephone; | |||
| } | |||
| public String getUserTelephone() | |||
| { | |||
| return userTelephone; | |||
| } | |||
| public void setUnionid(String unionid) | |||
| { | |||
| this.unionid = unionid; | |||
| } | |||
| public String getUnionid() | |||
| { | |||
| return unionid; | |||
| } | |||
| public void setOpenid(String openid) | |||
| { | |||
| this.openid = openid; | |||
| } | |||
| public String getOpenid() | |||
| { | |||
| return openid; | |||
| } | |||
| public void setAccessToken(String accessToken) | |||
| { | |||
| this.accessToken = accessToken; | |||
| } | |||
| public String getAccessToken() | |||
| { | |||
| return accessToken; | |||
| } | |||
| public void setExpiresIn(Long expiresIn) | |||
| { | |||
| this.expiresIn = expiresIn; | |||
| } | |||
| public Long getExpiresIn() | |||
| { | |||
| return expiresIn; | |||
| } | |||
| public void setRefreshToken(String refreshToken) | |||
| { | |||
| this.refreshToken = refreshToken; | |||
| } | |||
| public String getRefreshToken() | |||
| { | |||
| return refreshToken; | |||
| } | |||
| public void setExpireTime(Date expireTime) | |||
| { | |||
| this.expireTime = expireTime; | |||
| } | |||
| public Date getExpireTime() | |||
| { | |||
| return expireTime; | |||
| } | |||
| @Override | |||
| public String toString() { | |||
| return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) | |||
| .append("userId", getUserId()) | |||
| .append("createBy", getCreateBy()) | |||
| .append("createTime", getCreateTime()) | |||
| .append("delFlag", getDelFlag()) | |||
| .append("remark", getRemark()) | |||
| .append("updateTime", getUpdateTime()) | |||
| .append("updatorBy", getUpdatorBy()) | |||
| .append("userImage", getUserImage()) | |||
| .append("userName", getUserName()) | |||
| .append("userState", getUserState()) | |||
| .append("userTelephone", getUserTelephone()) | |||
| .append("unionid", getUnionid()) | |||
| .append("openid", getOpenid()) | |||
| .append("accessToken", getAccessToken()) | |||
| .append("expiresIn", getExpiresIn()) | |||
| .append("refreshToken", getRefreshToken()) | |||
| .append("expireTime", getExpireTime()) | |||
| .toString(); | |||
| } | |||
| } | |||
| @ -0,0 +1,69 @@ | |||
| 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; | |||
| /** | |||
| * 钱包对象 app_wallet | |||
| * | |||
| * @author ruoyi | |||
| * @date 2025-03-08 | |||
| */ | |||
| public class AppWallet extends BaseEntity | |||
| { | |||
| private static final long serialVersionUID = 1L; | |||
| /** 钱包编号 */ | |||
| private Long id; | |||
| /** 钱包金额 */ | |||
| @Excel(name = "钱包金额") | |||
| private Long price; | |||
| /** 删除标志 */ | |||
| private Integer delFlag; | |||
| public void setId(Long id) | |||
| { | |||
| this.id = id; | |||
| } | |||
| public Long getId() | |||
| { | |||
| return id; | |||
| } | |||
| public void setPrice(Long price) | |||
| { | |||
| this.price = price; | |||
| } | |||
| public Long getPrice() | |||
| { | |||
| return price; | |||
| } | |||
| public void setDelFlag(Integer delFlag) | |||
| { | |||
| this.delFlag = delFlag; | |||
| } | |||
| public Integer getDelFlag() | |||
| { | |||
| return delFlag; | |||
| } | |||
| @Override | |||
| public String toString() { | |||
| return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) | |||
| .append("id", getId()) | |||
| .append("price", getPrice()) | |||
| .append("remark", getRemark()) | |||
| .append("createTime", getCreateTime()) | |||
| .append("createBy", getCreateBy()) | |||
| .append("updateTime", getUpdateTime()) | |||
| .append("updateBy", getUpdateBy()) | |||
| .append("delFlag", getDelFlag()) | |||
| .toString(); | |||
| } | |||
| } | |||
| @ -0,0 +1,83 @@ | |||
| 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; | |||
| /** | |||
| * 钱包提现配置对象 app_withdrawal_config | |||
| * | |||
| * @author ruoyi | |||
| * @date 2025-03-08 | |||
| */ | |||
| public class AppWithdrawalConfig extends BaseEntity | |||
| { | |||
| private static final long serialVersionUID = 1L; | |||
| /** 主键 */ | |||
| private Long id; | |||
| /** 提现标题 */ | |||
| @Excel(name = "提现标题") | |||
| private String withdrawalTitle; | |||
| /** 提现文本 */ | |||
| @Excel(name = "提现文本") | |||
| private String withdrawalText; | |||
| /** 删除标志 */ | |||
| private Long delFlag; | |||
| public void setId(Long id) | |||
| { | |||
| this.id = id; | |||
| } | |||
| public Long getId() | |||
| { | |||
| return id; | |||
| } | |||
| public void setWithdrawalTitle(String withdrawalTitle) | |||
| { | |||
| this.withdrawalTitle = withdrawalTitle; | |||
| } | |||
| public String getWithdrawalTitle() | |||
| { | |||
| return withdrawalTitle; | |||
| } | |||
| public void setWithdrawalText(String withdrawalText) | |||
| { | |||
| this.withdrawalText = withdrawalText; | |||
| } | |||
| public String getWithdrawalText() | |||
| { | |||
| return withdrawalText; | |||
| } | |||
| public void setDelFlag(Long delFlag) | |||
| { | |||
| this.delFlag = delFlag; | |||
| } | |||
| public Long getDelFlag() | |||
| { | |||
| return delFlag; | |||
| } | |||
| @Override | |||
| public String toString() { | |||
| return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) | |||
| .append("id", getId()) | |||
| .append("withdrawalTitle", getWithdrawalTitle()) | |||
| .append("withdrawalText", getWithdrawalText()) | |||
| .append("remark", getRemark()) | |||
| .append("createTime", getCreateTime()) | |||
| .append("createBy", getCreateBy()) | |||
| .append("updateTime", getUpdateTime()) | |||
| .append("updateBy", getUpdateBy()) | |||
| .append("delFlag", getDelFlag()) | |||
| .toString(); | |||
| } | |||
| } | |||
| @ -0,0 +1,63 @@ | |||
| package com.ruoyi.model.mapper; | |||
| import java.util.List; | |||
| import com.ruoyi.model.domain.AppBondConfig; | |||
| /** | |||
| * 保证金配置Mapper接口 | |||
| * | |||
| * @author ruoyi | |||
| * @date 2025-03-08 | |||
| */ | |||
| public interface AppBondConfigMapper | |||
| { | |||
| /** | |||
| * 查询保证金配置 | |||
| * | |||
| * @param id 保证金配置主键 | |||
| * @return 保证金配置 | |||
| */ | |||
| public AppBondConfig selectAppBondConfigById(Long id); | |||
| /** | |||
| * 查询保证金配置列表 | |||
| * | |||
| * @param appBondConfig 保证金配置 | |||
| * @return 保证金配置集合 | |||
| */ | |||
| public List<AppBondConfig> selectAppBondConfigList(AppBondConfig appBondConfig); | |||
| /** | |||
| * 新增保证金配置 | |||
| * | |||
| * @param appBondConfig 保证金配置 | |||
| * @return 结果 | |||
| */ | |||
| public int insertAppBondConfig(AppBondConfig appBondConfig); | |||
| /** | |||
| * 修改保证金配置 | |||
| * | |||
| * @param appBondConfig 保证金配置 | |||
| * @return 结果 | |||
| */ | |||
| public int updateAppBondConfig(AppBondConfig appBondConfig); | |||
| /** | |||
| * 删除保证金配置 | |||
| * | |||
| * @param id 保证金配置主键 | |||
| * @return 结果 | |||
| */ | |||
| public int deleteAppBondConfigById(Long id); | |||
| /** | |||
| * 批量删除保证金配置 | |||
| * | |||
| * @param ids 需要删除的数据主键集合 | |||
| * @return 结果 | |||
| */ | |||
| public int deleteAppBondConfigByIds(Long[] ids); | |||
| AppBondConfig getAppBondConfig(); | |||
| } | |||
| @ -0,0 +1,63 @@ | |||
| package com.ruoyi.model.mapper; | |||
| import java.util.List; | |||
| import com.ruoyi.model.domain.AppDeposit; | |||
| /** | |||
| * 保证金记录Mapper接口 | |||
| * | |||
| * @author ruoyi | |||
| * @date 2025-03-08 | |||
| */ | |||
| public interface AppDepositMapper | |||
| { | |||
| /** | |||
| * 查询保证金记录 | |||
| * | |||
| * @param id 保证金记录主键 | |||
| * @return 保证金记录 | |||
| */ | |||
| public AppDeposit selectAppDepositById(Long id); | |||
| /** | |||
| * 查询保证金记录列表 | |||
| * | |||
| * @param appDeposit 保证金记录 | |||
| * @return 保证金记录集合 | |||
| */ | |||
| public List<AppDeposit> selectAppDepositList(AppDeposit appDeposit); | |||
| /** | |||
| * 新增保证金记录 | |||
| * | |||
| * @param appDeposit 保证金记录 | |||
| * @return 结果 | |||
| */ | |||
| public int insertAppDeposit(AppDeposit appDeposit); | |||
| /** | |||
| * 修改保证金记录 | |||
| * | |||
| * @param appDeposit 保证金记录 | |||
| * @return 结果 | |||
| */ | |||
| public int updateAppDeposit(AppDeposit appDeposit); | |||
| /** | |||
| * 删除保证金记录 | |||
| * | |||
| * @param id 保证金记录主键 | |||
| * @return 结果 | |||
| */ | |||
| public int deleteAppDepositById(Long id); | |||
| /** | |||
| * 批量删除保证金记录 | |||
| * | |||
| * @param ids 需要删除的数据主键集合 | |||
| * @return 结果 | |||
| */ | |||
| public int deleteAppDepositByIds(Long[] ids); | |||
| List<AppDeposit> getAppDepositListByUserId(Long userId); | |||
| } | |||
| @ -0,0 +1,63 @@ | |||
| package com.ruoyi.model.mapper; | |||
| import java.util.List; | |||
| import com.ruoyi.model.domain.AppMyEvaluate; | |||
| /** | |||
| * 我的评价Mapper接口 | |||
| * | |||
| * @author ruoyi | |||
| * @date 2025-03-08 | |||
| */ | |||
| public interface AppMyEvaluateMapper | |||
| { | |||
| /** | |||
| * 查询我的评价 | |||
| * | |||
| * @param id 我的评价主键 | |||
| * @return 我的评价 | |||
| */ | |||
| public AppMyEvaluate selectAppMyEvaluateById(Long id); | |||
| /** | |||
| * 查询我的评价列表 | |||
| * | |||
| * @param appMyEvaluate 我的评价 | |||
| * @return 我的评价集合 | |||
| */ | |||
| public List<AppMyEvaluate> selectAppMyEvaluateList(AppMyEvaluate appMyEvaluate); | |||
| /** | |||
| * 新增我的评价 | |||
| * | |||
| * @param appMyEvaluate 我的评价 | |||
| * @return 结果 | |||
| */ | |||
| public int insertAppMyEvaluate(AppMyEvaluate appMyEvaluate); | |||
| /** | |||
| * 修改我的评价 | |||
| * | |||
| * @param appMyEvaluate 我的评价 | |||
| * @return 结果 | |||
| */ | |||
| public int updateAppMyEvaluate(AppMyEvaluate appMyEvaluate); | |||
| /** | |||
| * 删除我的评价 | |||
| * | |||
| * @param id 我的评价主键 | |||
| * @return 结果 | |||
| */ | |||
| public int deleteAppMyEvaluateById(Long id); | |||
| /** | |||
| * 批量删除我的评价 | |||
| * | |||
| * @param ids 需要删除的数据主键集合 | |||
| * @return 结果 | |||
| */ | |||
| public int deleteAppMyEvaluateByIds(Long[] ids); | |||
| List<AppMyEvaluate> getAppMyEvaluateByPetId(Long petId); | |||
| } | |||
| @ -0,0 +1,63 @@ | |||
| package com.ruoyi.model.mapper; | |||
| import java.util.List; | |||
| import com.ruoyi.model.domain.AppPlatformAgreementConfig; | |||
| /** | |||
| * 平台协议配置Mapper接口 | |||
| * | |||
| * @author ruoyi | |||
| * @date 2025-03-08 | |||
| */ | |||
| public interface AppPlatformAgreementConfigMapper | |||
| { | |||
| /** | |||
| * 查询平台协议配置 | |||
| * | |||
| * @param id 平台协议配置主键 | |||
| * @return 平台协议配置 | |||
| */ | |||
| public AppPlatformAgreementConfig selectAppPlatformAgreementConfigById(Long id); | |||
| /** | |||
| * 查询平台协议配置列表 | |||
| * | |||
| * @param appPlatformAgreementConfig 平台协议配置 | |||
| * @return 平台协议配置集合 | |||
| */ | |||
| public List<AppPlatformAgreementConfig> selectAppPlatformAgreementConfigList(AppPlatformAgreementConfig appPlatformAgreementConfig); | |||
| /** | |||
| * 新增平台协议配置 | |||
| * | |||
| * @param appPlatformAgreementConfig 平台协议配置 | |||
| * @return 结果 | |||
| */ | |||
| public int insertAppPlatformAgreementConfig(AppPlatformAgreementConfig appPlatformAgreementConfig); | |||
| /** | |||
| * 修改平台协议配置 | |||
| * | |||
| * @param appPlatformAgreementConfig 平台协议配置 | |||
| * @return 结果 | |||
| */ | |||
| public int updateAppPlatformAgreementConfig(AppPlatformAgreementConfig appPlatformAgreementConfig); | |||
| /** | |||
| * 删除平台协议配置 | |||
| * | |||
| * @param id 平台协议配置主键 | |||
| * @return 结果 | |||
| */ | |||
| public int deleteAppPlatformAgreementConfigById(Long id); | |||
| /** | |||
| * 批量删除平台协议配置 | |||
| * | |||
| * @param ids 需要删除的数据主键集合 | |||
| * @return 结果 | |||
| */ | |||
| public int deleteAppPlatformAgreementConfigByIds(Long[] ids); | |||
| AppPlatformAgreementConfig getAppPlatformAgreementConfig(); | |||
| } | |||
| @ -0,0 +1,63 @@ | |||
| package com.ruoyi.model.mapper; | |||
| import java.util.List; | |||
| import com.ruoyi.model.domain.AppTransactionDetails; | |||
| /** | |||
| * 交易明细记录Mapper接口 | |||
| * | |||
| * @author ruoyi | |||
| * @date 2025-03-08 | |||
| */ | |||
| public interface AppTransactionDetailsMapper | |||
| { | |||
| /** | |||
| * 查询交易明细记录 | |||
| * | |||
| * @param id 交易明细记录主键 | |||
| * @return 交易明细记录 | |||
| */ | |||
| public AppTransactionDetails selectAppTransactionDetailsById(Long id); | |||
| /** | |||
| * 查询交易明细记录列表 | |||
| * | |||
| * @param appTransactionDetails 交易明细记录 | |||
| * @return 交易明细记录集合 | |||
| */ | |||
| public List<AppTransactionDetails> selectAppTransactionDetailsList(AppTransactionDetails appTransactionDetails); | |||
| /** | |||
| * 新增交易明细记录 | |||
| * | |||
| * @param appTransactionDetails 交易明细记录 | |||
| * @return 结果 | |||
| */ | |||
| public int insertAppTransactionDetails(AppTransactionDetails appTransactionDetails); | |||
| /** | |||
| * 修改交易明细记录 | |||
| * | |||
| * @param appTransactionDetails 交易明细记录 | |||
| * @return 结果 | |||
| */ | |||
| public int updateAppTransactionDetails(AppTransactionDetails appTransactionDetails); | |||
| /** | |||
| * 删除交易明细记录 | |||
| * | |||
| * @param id 交易明细记录主键 | |||
| * @return 结果 | |||
| */ | |||
| public int deleteAppTransactionDetailsById(Long id); | |||
| /** | |||
| * 批量删除交易明细记录 | |||
| * | |||
| * @param ids 需要删除的数据主键集合 | |||
| * @return 结果 | |||
| */ | |||
| public int deleteAppTransactionDetailsByIds(Long[] ids); | |||
| List<AppTransactionDetails> getAppTransactionDetailsByWid(Long wid); | |||
| } | |||
| @ -0,0 +1,61 @@ | |||
| package com.ruoyi.model.mapper; | |||
| import java.util.List; | |||
| import com.ruoyi.model.domain.AppUsers; | |||
| /** | |||
| * 用户Mapper接口 | |||
| * | |||
| * @author ruoyi | |||
| * @date 2025-03-08 | |||
| */ | |||
| public interface AppUsersMapper | |||
| { | |||
| /** | |||
| * 查询用户 | |||
| * | |||
| * @param userId 用户主键 | |||
| * @return 用户 | |||
| */ | |||
| public AppUsers selectAppUsersByUserId(Long userId); | |||
| /** | |||
| * 查询用户列表 | |||
| * | |||
| * @param appUsers 用户 | |||
| * @return 用户集合 | |||
| */ | |||
| public List<AppUsers> selectAppUsersList(AppUsers appUsers); | |||
| /** | |||
| * 新增用户 | |||
| * | |||
| * @param appUsers 用户 | |||
| * @return 结果 | |||
| */ | |||
| public int insertAppUsers(AppUsers appUsers); | |||
| /** | |||
| * 修改用户 | |||
| * | |||
| * @param appUsers 用户 | |||
| * @return 结果 | |||
| */ | |||
| public int updateAppUsers(AppUsers appUsers); | |||
| /** | |||
| * 删除用户 | |||
| * | |||
| * @param userId 用户主键 | |||
| * @return 结果 | |||
| */ | |||
| public int deleteAppUsersByUserId(Long userId); | |||
| /** | |||
| * 批量删除用户 | |||
| * | |||
| * @param userIds 需要删除的数据主键集合 | |||
| * @return 结果 | |||
| */ | |||
| public int deleteAppUsersByUserIds(Long[] userIds); | |||
| } | |||
| @ -0,0 +1,63 @@ | |||
| package com.ruoyi.model.mapper; | |||
| import java.util.List; | |||
| import com.ruoyi.model.domain.AppWallet; | |||
| /** | |||
| * 钱包Mapper接口 | |||
| * | |||
| * @author ruoyi | |||
| * @date 2025-03-08 | |||
| */ | |||
| public interface AppWalletMapper | |||
| { | |||
| /** | |||
| * 查询钱包 | |||
| * | |||
| * @param id 钱包主键 | |||
| * @return 钱包 | |||
| */ | |||
| public AppWallet selectAppWalletById(Long id); | |||
| /** | |||
| * 查询钱包列表 | |||
| * | |||
| * @param appWallet 钱包 | |||
| * @return 钱包集合 | |||
| */ | |||
| public List<AppWallet> selectAppWalletList(AppWallet appWallet); | |||
| /** | |||
| * 新增钱包 | |||
| * | |||
| * @param appWallet 钱包 | |||
| * @return 结果 | |||
| */ | |||
| public int insertAppWallet(AppWallet appWallet); | |||
| /** | |||
| * 修改钱包 | |||
| * | |||
| * @param appWallet 钱包 | |||
| * @return 结果 | |||
| */ | |||
| public int updateAppWallet(AppWallet appWallet); | |||
| /** | |||
| * 删除钱包 | |||
| * | |||
| * @param id 钱包主键 | |||
| * @return 结果 | |||
| */ | |||
| public int deleteAppWalletById(Long id); | |||
| /** | |||
| * 批量删除钱包 | |||
| * | |||
| * @param ids 需要删除的数据主键集合 | |||
| * @return 结果 | |||
| */ | |||
| public int deleteAppWalletByIds(Long[] ids); | |||
| List<AppWallet> getAppWalletByUserId(Long userId); | |||
| } | |||
| @ -0,0 +1,63 @@ | |||
| package com.ruoyi.model.mapper; | |||
| import java.util.List; | |||
| import com.ruoyi.model.domain.AppWithdrawalConfig; | |||
| /** | |||
| * 钱包提现配置Mapper接口 | |||
| * | |||
| * @author ruoyi | |||
| * @date 2025-03-08 | |||
| */ | |||
| public interface AppWithdrawalConfigMapper | |||
| { | |||
| /** | |||
| * 查询钱包提现配置 | |||
| * | |||
| * @param id 钱包提现配置主键 | |||
| * @return 钱包提现配置 | |||
| */ | |||
| public AppWithdrawalConfig selectAppWithdrawalConfigById(Long id); | |||
| /** | |||
| * 查询钱包提现配置列表 | |||
| * | |||
| * @param appWithdrawalConfig 钱包提现配置 | |||
| * @return 钱包提现配置集合 | |||
| */ | |||
| public List<AppWithdrawalConfig> selectAppWithdrawalConfigList(AppWithdrawalConfig appWithdrawalConfig); | |||
| /** | |||
| * 新增钱包提现配置 | |||
| * | |||
| * @param appWithdrawalConfig 钱包提现配置 | |||
| * @return 结果 | |||
| */ | |||
| public int insertAppWithdrawalConfig(AppWithdrawalConfig appWithdrawalConfig); | |||
| /** | |||
| * 修改钱包提现配置 | |||
| * | |||
| * @param appWithdrawalConfig 钱包提现配置 | |||
| * @return 结果 | |||
| */ | |||
| public int updateAppWithdrawalConfig(AppWithdrawalConfig appWithdrawalConfig); | |||
| /** | |||
| * 删除钱包提现配置 | |||
| * | |||
| * @param id 钱包提现配置主键 | |||
| * @return 结果 | |||
| */ | |||
| public int deleteAppWithdrawalConfigById(Long id); | |||
| /** | |||
| * 批量删除钱包提现配置 | |||
| * | |||
| * @param ids 需要删除的数据主键集合 | |||
| * @return 结果 | |||
| */ | |||
| public int deleteAppWithdrawalConfigByIds(Long[] ids); | |||
| AppWithdrawalConfig getAppWithdrawalConfig(); | |||
| } | |||
| @ -0,0 +1,68 @@ | |||
| package com.ruoyi.model.service; | |||
| import java.util.List; | |||
| import com.ruoyi.model.domain.AppBondConfig; | |||
| /** | |||
| * 保证金配置Service接口 | |||
| * | |||
| * @author ruoyi | |||
| * @date 2025-03-08 | |||
| */ | |||
| public interface IAppBondConfigService | |||
| { | |||
| /** | |||
| * 查询保证金配置 | |||
| * | |||
| * @param id 保证金配置主键 | |||
| * @return 保证金配置 | |||
| */ | |||
| public AppBondConfig selectAppBondConfigById(Long id); | |||
| /** | |||
| * 查询保证金配置列表 | |||
| * | |||
| * @param appBondConfig 保证金配置 | |||
| * @return 保证金配置集合 | |||
| */ | |||
| public List<AppBondConfig> selectAppBondConfigList(AppBondConfig appBondConfig); | |||
| /** | |||
| * 新增保证金配置 | |||
| * | |||
| * @param appBondConfig 保证金配置 | |||
| * @return 结果 | |||
| */ | |||
| public int insertAppBondConfig(AppBondConfig appBondConfig); | |||
| /** | |||
| * 修改保证金配置 | |||
| * | |||
| * @param appBondConfig 保证金配置 | |||
| * @return 结果 | |||
| */ | |||
| public int updateAppBondConfig(AppBondConfig appBondConfig); | |||
| /** | |||
| * 批量删除保证金配置 | |||
| * | |||
| * @param ids 需要删除的保证金配置主键集合 | |||
| * @return 结果 | |||
| */ | |||
| public int deleteAppBondConfigByIds(Long[] ids); | |||
| /** | |||
| * 删除保证金配置信息 | |||
| * | |||
| * @param id 保证金配置主键 | |||
| * @return 结果 | |||
| */ | |||
| public int deleteAppBondConfigById(Long id); | |||
| /** | |||
| * 查询保证金配置 | |||
| * | |||
| * @return 保证金配置 | |||
| */ | |||
| public AppBondConfig getAppBondConfig(); | |||
| } | |||
| @ -0,0 +1,69 @@ | |||
| package com.ruoyi.model.service; | |||
| import java.util.List; | |||
| import com.ruoyi.model.domain.AppDeposit; | |||
| /** | |||
| * 保证金记录Service接口 | |||
| * | |||
| * @author ruoyi | |||
| * @date 2025-03-08 | |||
| */ | |||
| public interface IAppDepositService | |||
| { | |||
| /** | |||
| * 查询保证金记录 | |||
| * | |||
| * @param id 保证金记录主键 | |||
| * @return 保证金记录 | |||
| */ | |||
| public AppDeposit selectAppDepositById(Long id); | |||
| /** | |||
| * 查询保证金记录列表 | |||
| * | |||
| * @param appDeposit 保证金记录 | |||
| * @return 保证金记录集合 | |||
| */ | |||
| public List<AppDeposit> selectAppDepositList(AppDeposit appDeposit); | |||
| /** | |||
| * 新增保证金记录 | |||
| * | |||
| * @param appDeposit 保证金记录 | |||
| * @return 结果 | |||
| */ | |||
| public int insertAppDeposit(AppDeposit appDeposit); | |||
| /** | |||
| * 修改保证金记录 | |||
| * | |||
| * @param appDeposit 保证金记录 | |||
| * @return 结果 | |||
| */ | |||
| public int updateAppDeposit(AppDeposit appDeposit); | |||
| /** | |||
| * 批量删除保证金记录 | |||
| * | |||
| * @param ids 需要删除的保证金记录主键集合 | |||
| * @return 结果 | |||
| */ | |||
| public int deleteAppDepositByIds(Long[] ids); | |||
| /** | |||
| * 删除保证金记录信息 | |||
| * | |||
| * @param id 保证金记录主键 | |||
| * @return 结果 | |||
| */ | |||
| public int deleteAppDepositById(Long id); | |||
| /** | |||
| * 查询保证金记录列表 | |||
| * | |||
| * @param userId 伴宠师编号 | |||
| * @return 保证金记录 | |||
| */ | |||
| public List<AppDeposit> getAppDepositListByUserId(Long userId); | |||
| } | |||
| @ -0,0 +1,69 @@ | |||
| package com.ruoyi.model.service; | |||
| import java.util.List; | |||
| import com.ruoyi.model.domain.AppMyEvaluate; | |||
| /** | |||
| * 我的评价Service接口 | |||
| * | |||
| * @author ruoyi | |||
| * @date 2025-03-08 | |||
| */ | |||
| public interface IAppMyEvaluateService | |||
| { | |||
| /** | |||
| * 查询我的评价 | |||
| * | |||
| * @param id 我的评价主键 | |||
| * @return 我的评价 | |||
| */ | |||
| public AppMyEvaluate selectAppMyEvaluateById(Long id); | |||
| /** | |||
| * 查询我的评价列表 | |||
| * | |||
| * @param appMyEvaluate 我的评价 | |||
| * @return 我的评价集合 | |||
| */ | |||
| public List<AppMyEvaluate> selectAppMyEvaluateList(AppMyEvaluate appMyEvaluate); | |||
| /** | |||
| * 新增我的评价 | |||
| * | |||
| * @param appMyEvaluate 我的评价 | |||
| * @return 结果 | |||
| */ | |||
| public int insertAppMyEvaluate(AppMyEvaluate appMyEvaluate); | |||
| /** | |||
| * 修改我的评价 | |||
| * | |||
| * @param appMyEvaluate 我的评价 | |||
| * @return 结果 | |||
| */ | |||
| public int updateAppMyEvaluate(AppMyEvaluate appMyEvaluate); | |||
| /** | |||
| * 批量删除我的评价 | |||
| * | |||
| * @param ids 需要删除的我的评价主键集合 | |||
| * @return 结果 | |||
| */ | |||
| public int deleteAppMyEvaluateByIds(Long[] ids); | |||
| /** | |||
| * 删除我的评价信息 | |||
| * | |||
| * @param id 我的评价主键 | |||
| * @return 结果 | |||
| */ | |||
| public int deleteAppMyEvaluateById(Long id); | |||
| /** | |||
| * 查询我的评价 | |||
| * | |||
| * @param id 我的评价主键 | |||
| * @return 我的评价 | |||
| */ | |||
| public List<AppMyEvaluate> getAppMyEvaluateByPetId(Long petId); | |||
| } | |||
| @ -0,0 +1,68 @@ | |||
| package com.ruoyi.model.service; | |||
| import java.util.List; | |||
| import com.ruoyi.model.domain.AppPlatformAgreementConfig; | |||
| /** | |||
| * 平台协议配置Service接口 | |||
| * | |||
| * @author ruoyi | |||
| * @date 2025-03-08 | |||
| */ | |||
| public interface IAppPlatformAgreementConfigService | |||
| { | |||
| /** | |||
| * 查询平台协议配置 | |||
| * | |||
| * @param id 平台协议配置主键 | |||
| * @return 平台协议配置 | |||
| */ | |||
| public AppPlatformAgreementConfig selectAppPlatformAgreementConfigById(Long id); | |||
| /** | |||
| * 查询平台协议配置列表 | |||
| * | |||
| * @param appPlatformAgreementConfig 平台协议配置 | |||
| * @return 平台协议配置集合 | |||
| */ | |||
| public List<AppPlatformAgreementConfig> selectAppPlatformAgreementConfigList(AppPlatformAgreementConfig appPlatformAgreementConfig); | |||
| /** | |||
| * 新增平台协议配置 | |||
| * | |||
| * @param appPlatformAgreementConfig 平台协议配置 | |||
| * @return 结果 | |||
| */ | |||
| public int insertAppPlatformAgreementConfig(AppPlatformAgreementConfig appPlatformAgreementConfig); | |||
| /** | |||
| * 修改平台协议配置 | |||
| * | |||
| * @param appPlatformAgreementConfig 平台协议配置 | |||
| * @return 结果 | |||
| */ | |||
| public int updateAppPlatformAgreementConfig(AppPlatformAgreementConfig appPlatformAgreementConfig); | |||
| /** | |||
| * 批量删除平台协议配置 | |||
| * | |||
| * @param ids 需要删除的平台协议配置主键集合 | |||
| * @return 结果 | |||
| */ | |||
| public int deleteAppPlatformAgreementConfigByIds(Long[] ids); | |||
| /** | |||
| * 删除平台协议配置信息 | |||
| * | |||
| * @param id 平台协议配置主键 | |||
| * @return 结果 | |||
| */ | |||
| public int deleteAppPlatformAgreementConfigById(Long id); | |||
| /** | |||
| * 查询平台协议配置 | |||
| * | |||
| * @return 平台协议配置 | |||
| */ | |||
| public AppPlatformAgreementConfig getAppPlatformAgreementConfig(); | |||
| } | |||
| @ -0,0 +1,69 @@ | |||
| package com.ruoyi.model.service; | |||
| import java.util.List; | |||
| import com.ruoyi.model.domain.AppTransactionDetails; | |||
| /** | |||
| * 交易明细记录Service接口 | |||
| * | |||
| * @author ruoyi | |||
| * @date 2025-03-08 | |||
| */ | |||
| public interface IAppTransactionDetailsService | |||
| { | |||
| /** | |||
| * 查询交易明细记录 | |||
| * | |||
| * @param id 交易明细记录主键 | |||
| * @return 交易明细记录 | |||
| */ | |||
| public AppTransactionDetails selectAppTransactionDetailsById(Long id); | |||
| /** | |||
| * 查询交易明细记录列表 | |||
| * | |||
| * @param appTransactionDetails 交易明细记录 | |||
| * @return 交易明细记录集合 | |||
| */ | |||
| public List<AppTransactionDetails> selectAppTransactionDetailsList(AppTransactionDetails appTransactionDetails); | |||
| /** | |||
| * 新增交易明细记录 | |||
| * | |||
| * @param appTransactionDetails 交易明细记录 | |||
| * @return 结果 | |||
| */ | |||
| public int insertAppTransactionDetails(AppTransactionDetails appTransactionDetails); | |||
| /** | |||
| * 修改交易明细记录 | |||
| * | |||
| * @param appTransactionDetails 交易明细记录 | |||
| * @return 结果 | |||
| */ | |||
| public int updateAppTransactionDetails(AppTransactionDetails appTransactionDetails); | |||
| /** | |||
| * 批量删除交易明细记录 | |||
| * | |||
| * @param ids 需要删除的交易明细记录主键集合 | |||
| * @return 结果 | |||
| */ | |||
| public int deleteAppTransactionDetailsByIds(Long[] ids); | |||
| /** | |||
| * 删除交易明细记录信息 | |||
| * | |||
| * @param id 交易明细记录主键 | |||
| * @return 结果 | |||
| */ | |||
| public int deleteAppTransactionDetailsById(Long id); | |||
| /** | |||
| * 查询交易明细记录列表 | |||
| * | |||
| * @param wid 钱包编号 | |||
| * @return 交易明细记录集合 | |||
| */ | |||
| public List<AppTransactionDetails> getAppTransactionDetailsByWid(Long wid); | |||
| } | |||
| @ -0,0 +1,61 @@ | |||
| package com.ruoyi.model.service; | |||
| import java.util.List; | |||
| import com.ruoyi.model.domain.AppUsers; | |||
| /** | |||
| * 用户Service接口 | |||
| * | |||
| * @author ruoyi | |||
| * @date 2025-03-08 | |||
| */ | |||
| public interface IAppUsersService | |||
| { | |||
| /** | |||
| * 查询用户 | |||
| * | |||
| * @param userId 用户主键 | |||
| * @return 用户 | |||
| */ | |||
| public AppUsers selectAppUsersByUserId(Long userId); | |||
| /** | |||
| * 查询用户列表 | |||
| * | |||
| * @param appUsers 用户 | |||
| * @return 用户集合 | |||
| */ | |||
| public List<AppUsers> selectAppUsersList(AppUsers appUsers); | |||
| /** | |||
| * 新增用户 | |||
| * | |||
| * @param appUsers 用户 | |||
| * @return 结果 | |||
| */ | |||
| public int insertAppUsers(AppUsers appUsers); | |||
| /** | |||
| * 修改用户 | |||
| * | |||
| * @param appUsers 用户 | |||
| * @return 结果 | |||
| */ | |||
| public int updateAppUsers(AppUsers appUsers); | |||
| /** | |||
| * 批量删除用户 | |||
| * | |||
| * @param userIds 需要删除的用户主键集合 | |||
| * @return 结果 | |||
| */ | |||
| public int deleteAppUsersByUserIds(Long[] userIds); | |||
| /** | |||
| * 删除用户信息 | |||
| * | |||
| * @param userId 用户主键 | |||
| * @return 结果 | |||
| */ | |||
| public int deleteAppUsersByUserId(Long userId); | |||
| } | |||
| @ -0,0 +1,69 @@ | |||
| package com.ruoyi.model.service; | |||
| import java.util.List; | |||
| import com.ruoyi.model.domain.AppWallet; | |||
| /** | |||
| * 钱包Service接口 | |||
| * | |||
| * @author ruoyi | |||
| * @date 2025-03-08 | |||
| */ | |||
| public interface IAppWalletService | |||
| { | |||
| /** | |||
| * 查询钱包 | |||
| * | |||
| * @param id 钱包主键 | |||
| * @return 钱包 | |||
| */ | |||
| public AppWallet selectAppWalletById(Long id); | |||
| /** | |||
| * 查询钱包列表 | |||
| * | |||
| * @param appWallet 钱包 | |||
| * @return 钱包集合 | |||
| */ | |||
| public List<AppWallet> selectAppWalletList(AppWallet appWallet); | |||
| /** | |||
| * 新增钱包 | |||
| * | |||
| * @param appWallet 钱包 | |||
| * @return 结果 | |||
| */ | |||
| public int insertAppWallet(AppWallet appWallet); | |||
| /** | |||
| * 修改钱包 | |||
| * | |||
| * @param appWallet 钱包 | |||
| * @return 结果 | |||
| */ | |||
| public int updateAppWallet(AppWallet appWallet); | |||
| /** | |||
| * 批量删除钱包 | |||
| * | |||
| * @param ids 需要删除的钱包主键集合 | |||
| * @return 结果 | |||
| */ | |||
| public int deleteAppWalletByIds(Long[] ids); | |||
| /** | |||
| * 删除钱包信息 | |||
| * | |||
| * @param id 钱包主键 | |||
| * @return 结果 | |||
| */ | |||
| public int deleteAppWalletById(Long id); | |||
| /** | |||
| * 查询钱包 | |||
| * | |||
| * @param userId 用户编号 | |||
| * @return 钱包 | |||
| */ | |||
| public List<AppWallet> getAppWalletByUserId(Long userId); | |||
| } | |||
| @ -0,0 +1,68 @@ | |||
| package com.ruoyi.model.service; | |||
| import java.util.List; | |||
| import com.ruoyi.model.domain.AppWithdrawalConfig; | |||
| /** | |||
| * 钱包提现配置Service接口 | |||
| * | |||
| * @author ruoyi | |||
| * @date 2025-03-08 | |||
| */ | |||
| public interface IAppWithdrawalConfigService | |||
| { | |||
| /** | |||
| * 查询钱包提现配置 | |||
| * | |||
| * @param id 钱包提现配置主键 | |||
| * @return 钱包提现配置 | |||
| */ | |||
| public AppWithdrawalConfig selectAppWithdrawalConfigById(Long id); | |||
| /** | |||
| * 查询钱包提现配置列表 | |||
| * | |||
| * @param appWithdrawalConfig 钱包提现配置 | |||
| * @return 钱包提现配置集合 | |||
| */ | |||
| public List<AppWithdrawalConfig> selectAppWithdrawalConfigList(AppWithdrawalConfig appWithdrawalConfig); | |||
| /** | |||
| * 新增钱包提现配置 | |||
| * | |||
| * @param appWithdrawalConfig 钱包提现配置 | |||
| * @return 结果 | |||
| */ | |||
| public int insertAppWithdrawalConfig(AppWithdrawalConfig appWithdrawalConfig); | |||
| /** | |||
| * 修改钱包提现配置 | |||
| * | |||
| * @param appWithdrawalConfig 钱包提现配置 | |||
| * @return 结果 | |||
| */ | |||
| public int updateAppWithdrawalConfig(AppWithdrawalConfig appWithdrawalConfig); | |||
| /** | |||
| * 批量删除钱包提现配置 | |||
| * | |||
| * @param ids 需要删除的钱包提现配置主键集合 | |||
| * @return 结果 | |||
| */ | |||
| public int deleteAppWithdrawalConfigByIds(Long[] ids); | |||
| /** | |||
| * 删除钱包提现配置信息 | |||
| * | |||
| * @param id 钱包提现配置主键 | |||
| * @return 结果 | |||
| */ | |||
| public int deleteAppWithdrawalConfigById(Long id); | |||
| /** | |||
| * 查询钱包提现配置 | |||
| * | |||
| * @return 钱包提现配置 | |||
| */ | |||
| public AppWithdrawalConfig getAppWithdrawalConfig(); | |||
| } | |||
| @ -0,0 +1,101 @@ | |||
| package com.ruoyi.model.service.impl; | |||
| import java.util.List; | |||
| import com.ruoyi.common.utils.DateUtils; | |||
| import org.springframework.beans.factory.annotation.Autowired; | |||
| import org.springframework.stereotype.Service; | |||
| import com.ruoyi.model.mapper.AppBondConfigMapper; | |||
| import com.ruoyi.model.domain.AppBondConfig; | |||
| import com.ruoyi.model.service.IAppBondConfigService; | |||
| /** | |||
| * 保证金配置Service业务层处理 | |||
| * | |||
| * @author ruoyi | |||
| * @date 2025-03-08 | |||
| */ | |||
| @Service | |||
| public class AppBondConfigServiceImpl implements IAppBondConfigService | |||
| { | |||
| @Autowired | |||
| private AppBondConfigMapper appBondConfigMapper; | |||
| /** | |||
| * 查询保证金配置 | |||
| * | |||
| * @param id 保证金配置主键 | |||
| * @return 保证金配置 | |||
| */ | |||
| @Override | |||
| public AppBondConfig selectAppBondConfigById(Long id) | |||
| { | |||
| return appBondConfigMapper.selectAppBondConfigById(id); | |||
| } | |||
| /** | |||
| * 查询保证金配置列表 | |||
| * | |||
| * @param appBondConfig 保证金配置 | |||
| * @return 保证金配置 | |||
| */ | |||
| @Override | |||
| public List<AppBondConfig> selectAppBondConfigList(AppBondConfig appBondConfig) | |||
| { | |||
| return appBondConfigMapper.selectAppBondConfigList(appBondConfig); | |||
| } | |||
| /** | |||
| * 新增保证金配置 | |||
| * | |||
| * @param appBondConfig 保证金配置 | |||
| * @return 结果 | |||
| */ | |||
| @Override | |||
| public int insertAppBondConfig(AppBondConfig appBondConfig) | |||
| { | |||
| appBondConfig.setCreateTime(DateUtils.getNowDate()); | |||
| return appBondConfigMapper.insertAppBondConfig(appBondConfig); | |||
| } | |||
| /** | |||
| * 修改保证金配置 | |||
| * | |||
| * @param appBondConfig 保证金配置 | |||
| * @return 结果 | |||
| */ | |||
| @Override | |||
| public int updateAppBondConfig(AppBondConfig appBondConfig) | |||
| { | |||
| appBondConfig.setUpdateTime(DateUtils.getNowDate()); | |||
| return appBondConfigMapper.updateAppBondConfig(appBondConfig); | |||
| } | |||
| /** | |||
| * 批量删除保证金配置 | |||
| * | |||
| * @param ids 需要删除的保证金配置主键 | |||
| * @return 结果 | |||
| */ | |||
| @Override | |||
| public int deleteAppBondConfigByIds(Long[] ids) | |||
| { | |||
| return appBondConfigMapper.deleteAppBondConfigByIds(ids); | |||
| } | |||
| /** | |||
| * 删除保证金配置信息 | |||
| * | |||
| * @param id 保证金配置主键 | |||
| * @return 结果 | |||
| */ | |||
| @Override | |||
| public int deleteAppBondConfigById(Long id) | |||
| { | |||
| return appBondConfigMapper.deleteAppBondConfigById(id); | |||
| } | |||
| @Override | |||
| public AppBondConfig getAppBondConfig() { | |||
| return appBondConfigMapper.getAppBondConfig(); | |||
| } | |||
| } | |||
| @ -0,0 +1,108 @@ | |||
| package com.ruoyi.model.service.impl; | |||
| import java.util.List; | |||
| import com.ruoyi.common.utils.DateUtils; | |||
| import org.springframework.beans.factory.annotation.Autowired; | |||
| import org.springframework.stereotype.Service; | |||
| import com.ruoyi.model.mapper.AppDepositMapper; | |||
| import com.ruoyi.model.domain.AppDeposit; | |||
| import com.ruoyi.model.service.IAppDepositService; | |||
| /** | |||
| * 保证金记录Service业务层处理 | |||
| * | |||
| * @author ruoyi | |||
| * @date 2025-03-08 | |||
| */ | |||
| @Service | |||
| public class AppDepositServiceImpl implements IAppDepositService | |||
| { | |||
| @Autowired | |||
| private AppDepositMapper appDepositMapper; | |||
| /** | |||
| * 查询保证金记录 | |||
| * | |||
| * @param id 保证金记录主键 | |||
| * @return 保证金记录 | |||
| */ | |||
| @Override | |||
| public AppDeposit selectAppDepositById(Long id) | |||
| { | |||
| return appDepositMapper.selectAppDepositById(id); | |||
| } | |||
| /** | |||
| * 查询保证金记录列表 | |||
| * | |||
| * @param appDeposit 保证金记录 | |||
| * @return 保证金记录 | |||
| */ | |||
| @Override | |||
| public List<AppDeposit> selectAppDepositList(AppDeposit appDeposit) | |||
| { | |||
| return appDepositMapper.selectAppDepositList(appDeposit); | |||
| } | |||
| /** | |||
| * 新增保证金记录 | |||
| * | |||
| * @param appDeposit 保证金记录 | |||
| * @return 结果 | |||
| */ | |||
| @Override | |||
| public int insertAppDeposit(AppDeposit appDeposit) | |||
| { | |||
| appDeposit.setCreateTime(DateUtils.getNowDate()); | |||
| return appDepositMapper.insertAppDeposit(appDeposit); | |||
| } | |||
| /** | |||
| * 修改保证金记录 | |||
| * | |||
| * @param appDeposit 保证金记录 | |||
| * @return 结果 | |||
| */ | |||
| @Override | |||
| public int updateAppDeposit(AppDeposit appDeposit) | |||
| { | |||
| appDeposit.setUpdateTime(DateUtils.getNowDate()); | |||
| return appDepositMapper.updateAppDeposit(appDeposit); | |||
| } | |||
| /** | |||
| * 批量删除保证金记录 | |||
| * | |||
| * @param ids 需要删除的保证金记录主键 | |||
| * @return 结果 | |||
| */ | |||
| @Override | |||
| public int deleteAppDepositByIds(Long[] ids) | |||
| { | |||
| return appDepositMapper.deleteAppDepositByIds(ids); | |||
| } | |||
| /** | |||
| * 删除保证金记录信息 | |||
| * | |||
| * @param id 保证金记录主键 | |||
| * @return 结果 | |||
| */ | |||
| @Override | |||
| public int deleteAppDepositById(Long id) | |||
| { | |||
| return appDepositMapper.deleteAppDepositById(id); | |||
| } | |||
| /** | |||
| * 查询保证金记录列表 | |||
| * | |||
| * @param appDeposit 保证金记录 | |||
| * @return 保证金记录 | |||
| */ | |||
| @Override | |||
| public List<AppDeposit> getAppDepositListByUserId(Long userId) | |||
| { | |||
| return appDepositMapper.getAppDepositListByUserId(userId); | |||
| } | |||
| } | |||
| @ -0,0 +1,101 @@ | |||
| package com.ruoyi.model.service.impl; | |||
| import java.util.List; | |||
| import com.ruoyi.common.utils.DateUtils; | |||
| import org.springframework.beans.factory.annotation.Autowired; | |||
| import org.springframework.stereotype.Service; | |||
| import com.ruoyi.model.mapper.AppMyEvaluateMapper; | |||
| import com.ruoyi.model.domain.AppMyEvaluate; | |||
| import com.ruoyi.model.service.IAppMyEvaluateService; | |||
| /** | |||
| * 我的评价Service业务层处理 | |||
| * | |||
| * @author ruoyi | |||
| * @date 2025-03-08 | |||
| */ | |||
| @Service | |||
| public class AppMyEvaluateServiceImpl implements IAppMyEvaluateService | |||
| { | |||
| @Autowired | |||
| private AppMyEvaluateMapper appMyEvaluateMapper; | |||
| /** | |||
| * 查询我的评价 | |||
| * | |||
| * @param id 我的评价主键 | |||
| * @return 我的评价 | |||
| */ | |||
| @Override | |||
| public AppMyEvaluate selectAppMyEvaluateById(Long id) | |||
| { | |||
| return appMyEvaluateMapper.selectAppMyEvaluateById(id); | |||
| } | |||
| /** | |||
| * 查询我的评价列表 | |||
| * | |||
| * @param appMyEvaluate 我的评价 | |||
| * @return 我的评价 | |||
| */ | |||
| @Override | |||
| public List<AppMyEvaluate> selectAppMyEvaluateList(AppMyEvaluate appMyEvaluate) | |||
| { | |||
| return appMyEvaluateMapper.selectAppMyEvaluateList(appMyEvaluate); | |||
| } | |||
| /** | |||
| * 新增我的评价 | |||
| * | |||
| * @param appMyEvaluate 我的评价 | |||
| * @return 结果 | |||
| */ | |||
| @Override | |||
| public int insertAppMyEvaluate(AppMyEvaluate appMyEvaluate) | |||
| { | |||
| appMyEvaluate.setCreateTime(DateUtils.getNowDate()); | |||
| return appMyEvaluateMapper.insertAppMyEvaluate(appMyEvaluate); | |||
| } | |||
| /** | |||
| * 修改我的评价 | |||
| * | |||
| * @param appMyEvaluate 我的评价 | |||
| * @return 结果 | |||
| */ | |||
| @Override | |||
| public int updateAppMyEvaluate(AppMyEvaluate appMyEvaluate) | |||
| { | |||
| appMyEvaluate.setUpdateTime(DateUtils.getNowDate()); | |||
| return appMyEvaluateMapper.updateAppMyEvaluate(appMyEvaluate); | |||
| } | |||
| /** | |||
| * 批量删除我的评价 | |||
| * | |||
| * @param ids 需要删除的我的评价主键 | |||
| * @return 结果 | |||
| */ | |||
| @Override | |||
| public int deleteAppMyEvaluateByIds(Long[] ids) | |||
| { | |||
| return appMyEvaluateMapper.deleteAppMyEvaluateByIds(ids); | |||
| } | |||
| /** | |||
| * 删除我的评价信息 | |||
| * | |||
| * @param id 我的评价主键 | |||
| * @return 结果 | |||
| */ | |||
| @Override | |||
| public int deleteAppMyEvaluateById(Long id) | |||
| { | |||
| return appMyEvaluateMapper.deleteAppMyEvaluateById(id); | |||
| } | |||
| @Override | |||
| public List<AppMyEvaluate> getAppMyEvaluateByPetId(Long petId) { | |||
| return appMyEvaluateMapper.getAppMyEvaluateByPetId(petId); | |||
| } | |||
| } | |||
| @ -0,0 +1,101 @@ | |||
| package com.ruoyi.model.service.impl; | |||
| import java.util.List; | |||
| import com.ruoyi.common.utils.DateUtils; | |||
| import org.springframework.beans.factory.annotation.Autowired; | |||
| import org.springframework.stereotype.Service; | |||
| import com.ruoyi.model.mapper.AppPlatformAgreementConfigMapper; | |||
| import com.ruoyi.model.domain.AppPlatformAgreementConfig; | |||
| import com.ruoyi.model.service.IAppPlatformAgreementConfigService; | |||
| /** | |||
| * 平台协议配置Service业务层处理 | |||
| * | |||
| * @author ruoyi | |||
| * @date 2025-03-08 | |||
| */ | |||
| @Service | |||
| public class AppPlatformAgreementConfigServiceImpl implements IAppPlatformAgreementConfigService | |||
| { | |||
| @Autowired | |||
| private AppPlatformAgreementConfigMapper appPlatformAgreementConfigMapper; | |||
| /** | |||
| * 查询平台协议配置 | |||
| * | |||
| * @param id 平台协议配置主键 | |||
| * @return 平台协议配置 | |||
| */ | |||
| @Override | |||
| public AppPlatformAgreementConfig selectAppPlatformAgreementConfigById(Long id) | |||
| { | |||
| return appPlatformAgreementConfigMapper.selectAppPlatformAgreementConfigById(id); | |||
| } | |||
| /** | |||
| * 查询平台协议配置列表 | |||
| * | |||
| * @param appPlatformAgreementConfig 平台协议配置 | |||
| * @return 平台协议配置 | |||
| */ | |||
| @Override | |||
| public List<AppPlatformAgreementConfig> selectAppPlatformAgreementConfigList(AppPlatformAgreementConfig appPlatformAgreementConfig) | |||
| { | |||
| return appPlatformAgreementConfigMapper.selectAppPlatformAgreementConfigList(appPlatformAgreementConfig); | |||
| } | |||
| /** | |||
| * 新增平台协议配置 | |||
| * | |||
| * @param appPlatformAgreementConfig 平台协议配置 | |||
| * @return 结果 | |||
| */ | |||
| @Override | |||
| public int insertAppPlatformAgreementConfig(AppPlatformAgreementConfig appPlatformAgreementConfig) | |||
| { | |||
| appPlatformAgreementConfig.setCreateTime(DateUtils.getNowDate()); | |||
| return appPlatformAgreementConfigMapper.insertAppPlatformAgreementConfig(appPlatformAgreementConfig); | |||
| } | |||
| /** | |||
| * 修改平台协议配置 | |||
| * | |||
| * @param appPlatformAgreementConfig 平台协议配置 | |||
| * @return 结果 | |||
| */ | |||
| @Override | |||
| public int updateAppPlatformAgreementConfig(AppPlatformAgreementConfig appPlatformAgreementConfig) | |||
| { | |||
| appPlatformAgreementConfig.setUpdateTime(DateUtils.getNowDate()); | |||
| return appPlatformAgreementConfigMapper.updateAppPlatformAgreementConfig(appPlatformAgreementConfig); | |||
| } | |||
| /** | |||
| * 批量删除平台协议配置 | |||
| * | |||
| * @param ids 需要删除的平台协议配置主键 | |||
| * @return 结果 | |||
| */ | |||
| @Override | |||
| public int deleteAppPlatformAgreementConfigByIds(Long[] ids) | |||
| { | |||
| return appPlatformAgreementConfigMapper.deleteAppPlatformAgreementConfigByIds(ids); | |||
| } | |||
| /** | |||
| * 删除平台协议配置信息 | |||
| * | |||
| * @param id 平台协议配置主键 | |||
| * @return 结果 | |||
| */ | |||
| @Override | |||
| public int deleteAppPlatformAgreementConfigById(Long id) | |||
| { | |||
| return appPlatformAgreementConfigMapper.deleteAppPlatformAgreementConfigById(id); | |||
| } | |||
| @Override | |||
| public AppPlatformAgreementConfig getAppPlatformAgreementConfig() { | |||
| return appPlatformAgreementConfigMapper.getAppPlatformAgreementConfig(); | |||
| } | |||
| } | |||
| @ -0,0 +1,101 @@ | |||
| package com.ruoyi.model.service.impl; | |||
| import java.util.List; | |||
| import com.ruoyi.common.utils.DateUtils; | |||
| import org.springframework.beans.factory.annotation.Autowired; | |||
| import org.springframework.stereotype.Service; | |||
| import com.ruoyi.model.mapper.AppTransactionDetailsMapper; | |||
| import com.ruoyi.model.domain.AppTransactionDetails; | |||
| import com.ruoyi.model.service.IAppTransactionDetailsService; | |||
| /** | |||
| * 交易明细记录Service业务层处理 | |||
| * | |||
| * @author ruoyi | |||
| * @date 2025-03-08 | |||
| */ | |||
| @Service | |||
| public class AppTransactionDetailsServiceImpl implements IAppTransactionDetailsService | |||
| { | |||
| @Autowired | |||
| private AppTransactionDetailsMapper appTransactionDetailsMapper; | |||
| /** | |||
| * 查询交易明细记录 | |||
| * | |||
| * @param id 交易明细记录主键 | |||
| * @return 交易明细记录 | |||
| */ | |||
| @Override | |||
| public AppTransactionDetails selectAppTransactionDetailsById(Long id) | |||
| { | |||
| return appTransactionDetailsMapper.selectAppTransactionDetailsById(id); | |||
| } | |||
| /** | |||
| * 查询交易明细记录列表 | |||
| * | |||
| * @param appTransactionDetails 交易明细记录 | |||
| * @return 交易明细记录 | |||
| */ | |||
| @Override | |||
| public List<AppTransactionDetails> selectAppTransactionDetailsList(AppTransactionDetails appTransactionDetails) | |||
| { | |||
| return appTransactionDetailsMapper.selectAppTransactionDetailsList(appTransactionDetails); | |||
| } | |||
| /** | |||
| * 新增交易明细记录 | |||
| * | |||
| * @param appTransactionDetails 交易明细记录 | |||
| * @return 结果 | |||
| */ | |||
| @Override | |||
| public int insertAppTransactionDetails(AppTransactionDetails appTransactionDetails) | |||
| { | |||
| appTransactionDetails.setCreateTime(DateUtils.getNowDate()); | |||
| return appTransactionDetailsMapper.insertAppTransactionDetails(appTransactionDetails); | |||
| } | |||
| /** | |||
| * 修改交易明细记录 | |||
| * | |||
| * @param appTransactionDetails 交易明细记录 | |||
| * @return 结果 | |||
| */ | |||
| @Override | |||
| public int updateAppTransactionDetails(AppTransactionDetails appTransactionDetails) | |||
| { | |||
| appTransactionDetails.setUpdateTime(DateUtils.getNowDate()); | |||
| return appTransactionDetailsMapper.updateAppTransactionDetails(appTransactionDetails); | |||
| } | |||
| /** | |||
| * 批量删除交易明细记录 | |||
| * | |||
| * @param ids 需要删除的交易明细记录主键 | |||
| * @return 结果 | |||
| */ | |||
| @Override | |||
| public int deleteAppTransactionDetailsByIds(Long[] ids) | |||
| { | |||
| return appTransactionDetailsMapper.deleteAppTransactionDetailsByIds(ids); | |||
| } | |||
| /** | |||
| * 删除交易明细记录信息 | |||
| * | |||
| * @param id 交易明细记录主键 | |||
| * @return 结果 | |||
| */ | |||
| @Override | |||
| public int deleteAppTransactionDetailsById(Long id) | |||
| { | |||
| return appTransactionDetailsMapper.deleteAppTransactionDetailsById(id); | |||
| } | |||
| @Override | |||
| public List<AppTransactionDetails> getAppTransactionDetailsByWid(Long wid) { | |||
| return appTransactionDetailsMapper.getAppTransactionDetailsByWid(wid); | |||
| } | |||
| } | |||
| @ -0,0 +1,96 @@ | |||
| package com.ruoyi.model.service.impl; | |||
| import java.util.List; | |||
| import com.ruoyi.common.utils.DateUtils; | |||
| import org.springframework.beans.factory.annotation.Autowired; | |||
| import org.springframework.stereotype.Service; | |||
| import com.ruoyi.model.mapper.AppUsersMapper; | |||
| import com.ruoyi.model.domain.AppUsers; | |||
| import com.ruoyi.model.service.IAppUsersService; | |||
| /** | |||
| * 用户Service业务层处理 | |||
| * | |||
| * @author ruoyi | |||
| * @date 2025-03-08 | |||
| */ | |||
| @Service | |||
| public class AppUsersServiceImpl implements IAppUsersService | |||
| { | |||
| @Autowired | |||
| private AppUsersMapper appUsersMapper; | |||
| /** | |||
| * 查询用户 | |||
| * | |||
| * @param userId 用户主键 | |||
| * @return 用户 | |||
| */ | |||
| @Override | |||
| public AppUsers selectAppUsersByUserId(Long userId) | |||
| { | |||
| return appUsersMapper.selectAppUsersByUserId(userId); | |||
| } | |||
| /** | |||
| * 查询用户列表 | |||
| * | |||
| * @param appUsers 用户 | |||
| * @return 用户 | |||
| */ | |||
| @Override | |||
| public List<AppUsers> selectAppUsersList(AppUsers appUsers) | |||
| { | |||
| return appUsersMapper.selectAppUsersList(appUsers); | |||
| } | |||
| /** | |||
| * 新增用户 | |||
| * | |||
| * @param appUsers 用户 | |||
| * @return 结果 | |||
| */ | |||
| @Override | |||
| public int insertAppUsers(AppUsers appUsers) | |||
| { | |||
| appUsers.setCreateTime(DateUtils.getNowDate()); | |||
| return appUsersMapper.insertAppUsers(appUsers); | |||
| } | |||
| /** | |||
| * 修改用户 | |||
| * | |||
| * @param appUsers 用户 | |||
| * @return 结果 | |||
| */ | |||
| @Override | |||
| public int updateAppUsers(AppUsers appUsers) | |||
| { | |||
| appUsers.setUpdateTime(DateUtils.getNowDate()); | |||
| return appUsersMapper.updateAppUsers(appUsers); | |||
| } | |||
| /** | |||
| * 批量删除用户 | |||
| * | |||
| * @param userIds 需要删除的用户主键 | |||
| * @return 结果 | |||
| */ | |||
| @Override | |||
| public int deleteAppUsersByUserIds(Long[] userIds) | |||
| { | |||
| return appUsersMapper.deleteAppUsersByUserIds(userIds); | |||
| } | |||
| /** | |||
| * 删除用户信息 | |||
| * | |||
| * @param userId 用户主键 | |||
| * @return 结果 | |||
| */ | |||
| @Override | |||
| public int deleteAppUsersByUserId(Long userId) | |||
| { | |||
| return appUsersMapper.deleteAppUsersByUserId(userId); | |||
| } | |||
| } | |||
| @ -0,0 +1,101 @@ | |||
| package com.ruoyi.model.service.impl; | |||
| import java.util.List; | |||
| import com.ruoyi.common.utils.DateUtils; | |||
| import org.springframework.beans.factory.annotation.Autowired; | |||
| import org.springframework.stereotype.Service; | |||
| import com.ruoyi.model.mapper.AppWalletMapper; | |||
| import com.ruoyi.model.domain.AppWallet; | |||
| import com.ruoyi.model.service.IAppWalletService; | |||
| /** | |||
| * 钱包Service业务层处理 | |||
| * | |||
| * @author ruoyi | |||
| * @date 2025-03-08 | |||
| */ | |||
| @Service | |||
| public class AppWalletServiceImpl implements IAppWalletService | |||
| { | |||
| @Autowired | |||
| private AppWalletMapper appWalletMapper; | |||
| /** | |||
| * 查询钱包 | |||
| * | |||
| * @param id 钱包主键 | |||
| * @return 钱包 | |||
| */ | |||
| @Override | |||
| public AppWallet selectAppWalletById(Long id) | |||
| { | |||
| return appWalletMapper.selectAppWalletById(id); | |||
| } | |||
| /** | |||
| * 查询钱包列表 | |||
| * | |||
| * @param appWallet 钱包 | |||
| * @return 钱包 | |||
| */ | |||
| @Override | |||
| public List<AppWallet> selectAppWalletList(AppWallet appWallet) | |||
| { | |||
| return appWalletMapper.selectAppWalletList(appWallet); | |||
| } | |||
| /** | |||
| * 新增钱包 | |||
| * | |||
| * @param appWallet 钱包 | |||
| * @return 结果 | |||
| */ | |||
| @Override | |||
| public int insertAppWallet(AppWallet appWallet) | |||
| { | |||
| appWallet.setCreateTime(DateUtils.getNowDate()); | |||
| return appWalletMapper.insertAppWallet(appWallet); | |||
| } | |||
| /** | |||
| * 修改钱包 | |||
| * | |||
| * @param appWallet 钱包 | |||
| * @return 结果 | |||
| */ | |||
| @Override | |||
| public int updateAppWallet(AppWallet appWallet) | |||
| { | |||
| appWallet.setUpdateTime(DateUtils.getNowDate()); | |||
| return appWalletMapper.updateAppWallet(appWallet); | |||
| } | |||
| /** | |||
| * 批量删除钱包 | |||
| * | |||
| * @param ids 需要删除的钱包主键 | |||
| * @return 结果 | |||
| */ | |||
| @Override | |||
| public int deleteAppWalletByIds(Long[] ids) | |||
| { | |||
| return appWalletMapper.deleteAppWalletByIds(ids); | |||
| } | |||
| /** | |||
| * 删除钱包信息 | |||
| * | |||
| * @param id 钱包主键 | |||
| * @return 结果 | |||
| */ | |||
| @Override | |||
| public int deleteAppWalletById(Long id) | |||
| { | |||
| return appWalletMapper.deleteAppWalletById(id); | |||
| } | |||
| @Override | |||
| public List<AppWallet> getAppWalletByUserId(Long userId) { | |||
| return appWalletMapper.getAppWalletByUserId(userId); | |||
| } | |||
| } | |||
| @ -0,0 +1,101 @@ | |||
| package com.ruoyi.model.service.impl; | |||
| import java.util.List; | |||
| import com.ruoyi.common.utils.DateUtils; | |||
| import org.springframework.beans.factory.annotation.Autowired; | |||
| import org.springframework.stereotype.Service; | |||
| import com.ruoyi.model.mapper.AppWithdrawalConfigMapper; | |||
| import com.ruoyi.model.domain.AppWithdrawalConfig; | |||
| import com.ruoyi.model.service.IAppWithdrawalConfigService; | |||
| /** | |||
| * 钱包提现配置Service业务层处理 | |||
| * | |||
| * @author ruoyi | |||
| * @date 2025-03-08 | |||
| */ | |||
| @Service | |||
| public class AppWithdrawalConfigServiceImpl implements IAppWithdrawalConfigService | |||
| { | |||
| @Autowired | |||
| private AppWithdrawalConfigMapper appWithdrawalConfigMapper; | |||
| /** | |||
| * 查询钱包提现配置 | |||
| * | |||
| * @param id 钱包提现配置主键 | |||
| * @return 钱包提现配置 | |||
| */ | |||
| @Override | |||
| public AppWithdrawalConfig selectAppWithdrawalConfigById(Long id) | |||
| { | |||
| return appWithdrawalConfigMapper.selectAppWithdrawalConfigById(id); | |||
| } | |||
| /** | |||
| * 查询钱包提现配置列表 | |||
| * | |||
| * @param appWithdrawalConfig 钱包提现配置 | |||
| * @return 钱包提现配置 | |||
| */ | |||
| @Override | |||
| public List<AppWithdrawalConfig> selectAppWithdrawalConfigList(AppWithdrawalConfig appWithdrawalConfig) | |||
| { | |||
| return appWithdrawalConfigMapper.selectAppWithdrawalConfigList(appWithdrawalConfig); | |||
| } | |||
| /** | |||
| * 新增钱包提现配置 | |||
| * | |||
| * @param appWithdrawalConfig 钱包提现配置 | |||
| * @return 结果 | |||
| */ | |||
| @Override | |||
| public int insertAppWithdrawalConfig(AppWithdrawalConfig appWithdrawalConfig) | |||
| { | |||
| appWithdrawalConfig.setCreateTime(DateUtils.getNowDate()); | |||
| return appWithdrawalConfigMapper.insertAppWithdrawalConfig(appWithdrawalConfig); | |||
| } | |||
| /** | |||
| * 修改钱包提现配置 | |||
| * | |||
| * @param appWithdrawalConfig 钱包提现配置 | |||
| * @return 结果 | |||
| */ | |||
| @Override | |||
| public int updateAppWithdrawalConfig(AppWithdrawalConfig appWithdrawalConfig) | |||
| { | |||
| appWithdrawalConfig.setUpdateTime(DateUtils.getNowDate()); | |||
| return appWithdrawalConfigMapper.updateAppWithdrawalConfig(appWithdrawalConfig); | |||
| } | |||
| /** | |||
| * 批量删除钱包提现配置 | |||
| * | |||
| * @param ids 需要删除的钱包提现配置主键 | |||
| * @return 结果 | |||
| */ | |||
| @Override | |||
| public int deleteAppWithdrawalConfigByIds(Long[] ids) | |||
| { | |||
| return appWithdrawalConfigMapper.deleteAppWithdrawalConfigByIds(ids); | |||
| } | |||
| /** | |||
| * 删除钱包提现配置信息 | |||
| * | |||
| * @param id 钱包提现配置主键 | |||
| * @return 结果 | |||
| */ | |||
| @Override | |||
| public int deleteAppWithdrawalConfigById(Long id) | |||
| { | |||
| return appWithdrawalConfigMapper.deleteAppWithdrawalConfigById(id); | |||
| } | |||
| @Override | |||
| public AppWithdrawalConfig getAppWithdrawalConfig() { | |||
| return appWithdrawalConfigMapper.getAppWithdrawalConfig(); | |||
| } | |||
| } | |||
| @ -0,0 +1,95 @@ | |||
| <?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.AppBondConfigMapper"> | |||
| <resultMap type="AppBondConfig" id="AppBondConfigResult"> | |||
| <result property="id" column="id" /> | |||
| <result property="bondTitle" column="bond_title" /> | |||
| <result property="bondText" column="bond_text" /> | |||
| <result property="bondUrl" column="bond_url" /> | |||
| <result property="remark" column="remark" /> | |||
| <result property="createTime" column="create_time" /> | |||
| <result property="createBy" column="create_by" /> | |||
| <result property="updateTime" column="update_time" /> | |||
| <result property="updateBy" column="update_by" /> | |||
| <result property="delFlag" column="del_flag" /> | |||
| </resultMap> | |||
| <sql id="selectAppBondConfigVo"> | |||
| select id, bond_title, bond_text, bond_url, remark, create_time, create_by, update_time, update_by, del_flag from app_bond_config | |||
| </sql> | |||
| <select id="selectAppBondConfigList" parameterType="AppBondConfig" resultMap="AppBondConfigResult"> | |||
| <include refid="selectAppBondConfigVo"/> | |||
| <where> | |||
| <if test="bondTitle != null and bondTitle != ''"> and bond_title = #{bondTitle}</if> | |||
| <if test="bondText != null and bondText != ''"> and bond_text = #{bondText}</if> | |||
| <if test="bondUrl != null and bondUrl != ''"> and bond_url = #{bondUrl}</if> | |||
| </where> | |||
| </select> | |||
| <select id="selectAppBondConfigById" parameterType="Long" resultMap="AppBondConfigResult"> | |||
| <include refid="selectAppBondConfigVo"/> | |||
| where id = #{id} | |||
| </select> | |||
| <select id="getAppBondConfig" resultType="com.ruoyi.model.domain.AppBondConfig"> | |||
| <include refid="selectAppBondConfigVo"/> where del_flag = 0; | |||
| </select> | |||
| <insert id="insertAppBondConfig" parameterType="AppBondConfig"> | |||
| insert into app_bond_config | |||
| <trim prefix="(" suffix=")" suffixOverrides=","> | |||
| <if test="id != null">id,</if> | |||
| <if test="bondTitle != null">bond_title,</if> | |||
| <if test="bondText != null">bond_text,</if> | |||
| <if test="bondUrl != null">bond_url,</if> | |||
| <if test="remark != null">remark,</if> | |||
| <if test="createTime != null">create_time,</if> | |||
| <if test="createBy != null">create_by,</if> | |||
| <if test="updateTime != null">update_time,</if> | |||
| <if test="updateBy != null">update_by,</if> | |||
| <if test="delFlag != null">del_flag,</if> | |||
| </trim> | |||
| <trim prefix="values (" suffix=")" suffixOverrides=","> | |||
| <if test="id != null">#{id},</if> | |||
| <if test="bondTitle != null">#{bondTitle},</if> | |||
| <if test="bondText != null">#{bondText},</if> | |||
| <if test="bondUrl != null">#{bondUrl},</if> | |||
| <if test="remark != null">#{remark},</if> | |||
| <if test="createTime != null">#{createTime},</if> | |||
| <if test="createBy != null">#{createBy},</if> | |||
| <if test="updateTime != null">#{updateTime},</if> | |||
| <if test="updateBy != null">#{updateBy},</if> | |||
| <if test="delFlag != null">#{delFlag},</if> | |||
| </trim> | |||
| </insert> | |||
| <update id="updateAppBondConfig" parameterType="AppBondConfig"> | |||
| update app_bond_config | |||
| <trim prefix="SET" suffixOverrides=","> | |||
| <if test="bondTitle != null">bond_title = #{bondTitle},</if> | |||
| <if test="bondText != null">bond_text = #{bondText},</if> | |||
| <if test="bondUrl != null">bond_url = #{bondUrl},</if> | |||
| <if test="remark != null">remark = #{remark},</if> | |||
| <if test="createTime != null">create_time = #{createTime},</if> | |||
| <if test="createBy != null">create_by = #{createBy},</if> | |||
| <if test="updateTime != null">update_time = #{updateTime},</if> | |||
| <if test="updateBy != null">update_by = #{updateBy},</if> | |||
| <if test="delFlag != null">del_flag = #{delFlag},</if> | |||
| </trim> | |||
| where id = #{id} | |||
| </update> | |||
| <delete id="deleteAppBondConfigById" parameterType="Long"> | |||
| delete from app_bond_config where id = #{id} | |||
| </delete> | |||
| <delete id="deleteAppBondConfigByIds" parameterType="String"> | |||
| delete from app_bond_config where id in | |||
| <foreach item="id" collection="array" open="(" separator="," close=")"> | |||
| #{id} | |||
| </foreach> | |||
| </delete> | |||
| </mapper> | |||
| @ -0,0 +1,100 @@ | |||
| <?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.AppDepositMapper"> | |||
| <resultMap type="AppDeposit" id="AppDepositResult"> | |||
| <result property="id" column="id" /> | |||
| <result property="detailsName" column="details_name" /> | |||
| <result property="detailsPrice" column="details_price" /> | |||
| <result property="transactionType" column="transaction_type" /> | |||
| <result property="usersId" column="users_id" /> | |||
| <result property="remark" column="remark" /> | |||
| <result property="createTime" column="create_time" /> | |||
| <result property="createBy" column="create_by" /> | |||
| <result property="updateTime" column="update_time" /> | |||
| <result property="updateBy" column="update_by" /> | |||
| <result property="delFlag" column="del_flag" /> | |||
| </resultMap> | |||
| <sql id="selectAppDepositVo"> | |||
| select id, details_name, details_price, transaction_type, users_id, remark, create_time, create_by, update_time, update_by, del_flag from app_deposit | |||
| </sql> | |||
| <select id="selectAppDepositList" parameterType="AppDeposit" resultMap="AppDepositResult"> | |||
| <include refid="selectAppDepositVo"/> | |||
| <where> | |||
| <if test="detailsName != null and detailsName != ''"> and details_name like concat('%', #{detailsName}, '%')</if> | |||
| <if test="detailsPrice != null "> and details_price = #{detailsPrice}</if> | |||
| <if test="transactionType != null "> and transaction_type = #{transactionType}</if> | |||
| <if test="usersId != null "> and users_id = #{usersId}</if> | |||
| </where> | |||
| </select> | |||
| <select id="selectAppDepositById" parameterType="Long" resultMap="AppDepositResult"> | |||
| <include refid="selectAppDepositVo"/> | |||
| where id = #{id} | |||
| </select> | |||
| <select id="getAppDepositListByUserId" resultType="com.ruoyi.model.domain.AppDeposit"> | |||
| <include refid="selectAppDepositVo"/> where users_id = #{users_id} and del_flag = 0; | |||
| </select> | |||
| <insert id="insertAppDeposit" parameterType="AppDeposit"> | |||
| insert into app_deposit | |||
| <trim prefix="(" suffix=")" suffixOverrides=","> | |||
| <if test="id != null">id,</if> | |||
| <if test="detailsName != null">details_name,</if> | |||
| <if test="detailsPrice != null">details_price,</if> | |||
| <if test="transactionType != null">transaction_type,</if> | |||
| <if test="usersId != null">users_id,</if> | |||
| <if test="remark != null">remark,</if> | |||
| <if test="createTime != null">create_time,</if> | |||
| <if test="createBy != null">create_by,</if> | |||
| <if test="updateTime != null">update_time,</if> | |||
| <if test="updateBy != null">update_by,</if> | |||
| <if test="delFlag != null">del_flag,</if> | |||
| </trim> | |||
| <trim prefix="values (" suffix=")" suffixOverrides=","> | |||
| <if test="id != null">#{id},</if> | |||
| <if test="detailsName != null">#{detailsName},</if> | |||
| <if test="detailsPrice != null">#{detailsPrice},</if> | |||
| <if test="transactionType != null">#{transactionType},</if> | |||
| <if test="usersId != null">#{usersId},</if> | |||
| <if test="remark != null">#{remark},</if> | |||
| <if test="createTime != null">#{createTime},</if> | |||
| <if test="createBy != null">#{createBy},</if> | |||
| <if test="updateTime != null">#{updateTime},</if> | |||
| <if test="updateBy != null">#{updateBy},</if> | |||
| <if test="delFlag != null">#{delFlag},</if> | |||
| </trim> | |||
| </insert> | |||
| <update id="updateAppDeposit" parameterType="AppDeposit"> | |||
| update app_deposit | |||
| <trim prefix="SET" suffixOverrides=","> | |||
| <if test="detailsName != null">details_name = #{detailsName},</if> | |||
| <if test="detailsPrice != null">details_price = #{detailsPrice},</if> | |||
| <if test="transactionType != null">transaction_type = #{transactionType},</if> | |||
| <if test="usersId != null">users_id = #{usersId},</if> | |||
| <if test="remark != null">remark = #{remark},</if> | |||
| <if test="createTime != null">create_time = #{createTime},</if> | |||
| <if test="createBy != null">create_by = #{createBy},</if> | |||
| <if test="updateTime != null">update_time = #{updateTime},</if> | |||
| <if test="updateBy != null">update_by = #{updateBy},</if> | |||
| <if test="delFlag != null">del_flag = #{delFlag},</if> | |||
| </trim> | |||
| where id = #{id} | |||
| </update> | |||
| <delete id="deleteAppDepositById" parameterType="Long"> | |||
| delete from app_deposit where id = #{id} | |||
| </delete> | |||
| <delete id="deleteAppDepositByIds" parameterType="String"> | |||
| delete from app_deposit where id in | |||
| <foreach item="id" collection="array" open="(" separator="," close=")"> | |||
| #{id} | |||
| </foreach> | |||
| </delete> | |||
| </mapper> | |||
| @ -0,0 +1,100 @@ | |||
| <?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.AppMyEvaluateMapper"> | |||
| <resultMap type="AppMyEvaluate" id="AppMyEvaluateResult"> | |||
| <result property="id" column="id" /> | |||
| <result property="uid" column="uid" /> | |||
| <result property="petId" column="pet_id" /> | |||
| <result property="evaluateText" column="evaluate_text" /> | |||
| <result property="evaluateTime" column="evaluate_time" /> | |||
| <result property="remark" column="remark" /> | |||
| <result property="createTime" column="create_time" /> | |||
| <result property="createBy" column="create_by" /> | |||
| <result property="updateTime" column="update_time" /> | |||
| <result property="updateBy" column="update_by" /> | |||
| <result property="delFlag" column="del_flag" /> | |||
| </resultMap> | |||
| <sql id="selectAppMyEvaluateVo"> | |||
| select id, uid, pet_id, evaluate_text, evaluate_time, remark, create_time, create_by, update_time, update_by, del_flag from app_my_evaluate | |||
| </sql> | |||
| <select id="selectAppMyEvaluateList" parameterType="AppMyEvaluate" resultMap="AppMyEvaluateResult"> | |||
| <include refid="selectAppMyEvaluateVo"/> | |||
| <where> | |||
| <if test="uid != null "> and uid = #{uid}</if> | |||
| <if test="petId != null "> and pet_id = #{petId}</if> | |||
| <if test="evaluateText != null and evaluateText != ''"> and evaluate_text = #{evaluateText}</if> | |||
| <if test="evaluateTime != null "> and evaluate_time = #{evaluateTime}</if> | |||
| </where> | |||
| </select> | |||
| <select id="selectAppMyEvaluateById" parameterType="Long" resultMap="AppMyEvaluateResult"> | |||
| <include refid="selectAppMyEvaluateVo"/> | |||
| where id = #{id} | |||
| </select> | |||
| <select id="getAppMyEvaluateByPetId" resultType="com.ruoyi.model.domain.AppMyEvaluate"> | |||
| <include refid="selectAppMyEvaluateVo"/> where pet_id = #{petId} and del_flag = 0; | |||
| </select> | |||
| <insert id="insertAppMyEvaluate" parameterType="AppMyEvaluate"> | |||
| insert into app_my_evaluate | |||
| <trim prefix="(" suffix=")" suffixOverrides=","> | |||
| <if test="id != null">id,</if> | |||
| <if test="uid != null">uid,</if> | |||
| <if test="petId != null">pet_id,</if> | |||
| <if test="evaluateText != null">evaluate_text,</if> | |||
| <if test="evaluateTime != null">evaluate_time,</if> | |||
| <if test="remark != null">remark,</if> | |||
| <if test="createTime != null">create_time,</if> | |||
| <if test="createBy != null">create_by,</if> | |||
| <if test="updateTime != null">update_time,</if> | |||
| <if test="updateBy != null">update_by,</if> | |||
| <if test="delFlag != null">del_flag,</if> | |||
| </trim> | |||
| <trim prefix="values (" suffix=")" suffixOverrides=","> | |||
| <if test="id != null">#{id},</if> | |||
| <if test="uid != null">#{uid},</if> | |||
| <if test="petId != null">#{petId},</if> | |||
| <if test="evaluateText != null">#{evaluateText},</if> | |||
| <if test="evaluateTime != null">#{evaluateTime},</if> | |||
| <if test="remark != null">#{remark},</if> | |||
| <if test="createTime != null">#{createTime},</if> | |||
| <if test="createBy != null">#{createBy},</if> | |||
| <if test="updateTime != null">#{updateTime},</if> | |||
| <if test="updateBy != null">#{updateBy},</if> | |||
| <if test="delFlag != null">#{delFlag},</if> | |||
| </trim> | |||
| </insert> | |||
| <update id="updateAppMyEvaluate" parameterType="AppMyEvaluate"> | |||
| update app_my_evaluate | |||
| <trim prefix="SET" suffixOverrides=","> | |||
| <if test="uid != null">uid = #{uid},</if> | |||
| <if test="petId != null">pet_id = #{petId},</if> | |||
| <if test="evaluateText != null">evaluate_text = #{evaluateText},</if> | |||
| <if test="evaluateTime != null">evaluate_time = #{evaluateTime},</if> | |||
| <if test="remark != null">remark = #{remark},</if> | |||
| <if test="createTime != null">create_time = #{createTime},</if> | |||
| <if test="createBy != null">create_by = #{createBy},</if> | |||
| <if test="updateTime != null">update_time = #{updateTime},</if> | |||
| <if test="updateBy != null">update_by = #{updateBy},</if> | |||
| <if test="delFlag != null">del_flag = #{delFlag},</if> | |||
| </trim> | |||
| where id = #{id} | |||
| </update> | |||
| <delete id="deleteAppMyEvaluateById" parameterType="Long"> | |||
| delete from app_my_evaluate where id = #{id} | |||
| </delete> | |||
| <delete id="deleteAppMyEvaluateByIds" parameterType="String"> | |||
| delete from app_my_evaluate where id in | |||
| <foreach item="id" collection="array" open="(" separator="," close=")"> | |||
| #{id} | |||
| </foreach> | |||
| </delete> | |||
| </mapper> | |||
| @ -0,0 +1,85 @@ | |||
| <?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.AppPlatformAgreementConfigMapper"> | |||
| <resultMap type="AppPlatformAgreementConfig" id="AppPlatformAgreementConfigResult"> | |||
| <result property="id" column="id" /> | |||
| <result property="platformAgreementText" column="platform_agreement_text" /> | |||
| <result property="remark" column="remark" /> | |||
| <result property="createTime" column="create_time" /> | |||
| <result property="createBy" column="create_by" /> | |||
| <result property="updateTime" column="update_time" /> | |||
| <result property="updateBy" column="update_by" /> | |||
| <result property="delFlag" column="del_flag" /> | |||
| </resultMap> | |||
| <sql id="selectAppPlatformAgreementConfigVo"> | |||
| select id, platform_agreement_text, remark, create_time, create_by, update_time, update_by, del_flag from app_platform_agreement_config | |||
| </sql> | |||
| <select id="selectAppPlatformAgreementConfigList" parameterType="AppPlatformAgreementConfig" resultMap="AppPlatformAgreementConfigResult"> | |||
| <include refid="selectAppPlatformAgreementConfigVo"/> | |||
| <where> | |||
| <if test="platformAgreementText != null and platformAgreementText != ''"> and platform_agreement_text = #{platformAgreementText}</if> | |||
| </where> | |||
| </select> | |||
| <select id="selectAppPlatformAgreementConfigById" parameterType="Long" resultMap="AppPlatformAgreementConfigResult"> | |||
| <include refid="selectAppPlatformAgreementConfigVo"/> | |||
| where id = #{id} | |||
| </select> | |||
| <select id="getAppPlatformAgreementConfig" resultType="com.ruoyi.model.domain.AppPlatformAgreementConfig"> | |||
| <include refid="selectAppPlatformAgreementConfigVo"/> where del_flag = 0; | |||
| </select> | |||
| <insert id="insertAppPlatformAgreementConfig" parameterType="AppPlatformAgreementConfig"> | |||
| insert into app_platform_agreement_config | |||
| <trim prefix="(" suffix=")" suffixOverrides=","> | |||
| <if test="id != null">id,</if> | |||
| <if test="platformAgreementText != null">platform_agreement_text,</if> | |||
| <if test="remark != null">remark,</if> | |||
| <if test="createTime != null">create_time,</if> | |||
| <if test="createBy != null">create_by,</if> | |||
| <if test="updateTime != null">update_time,</if> | |||
| <if test="updateBy != null">update_by,</if> | |||
| <if test="delFlag != null">del_flag,</if> | |||
| </trim> | |||
| <trim prefix="values (" suffix=")" suffixOverrides=","> | |||
| <if test="id != null">#{id},</if> | |||
| <if test="platformAgreementText != null">#{platformAgreementText},</if> | |||
| <if test="remark != null">#{remark},</if> | |||
| <if test="createTime != null">#{createTime},</if> | |||
| <if test="createBy != null">#{createBy},</if> | |||
| <if test="updateTime != null">#{updateTime},</if> | |||
| <if test="updateBy != null">#{updateBy},</if> | |||
| <if test="delFlag != null">#{delFlag},</if> | |||
| </trim> | |||
| </insert> | |||
| <update id="updateAppPlatformAgreementConfig" parameterType="AppPlatformAgreementConfig"> | |||
| update app_platform_agreement_config | |||
| <trim prefix="SET" suffixOverrides=","> | |||
| <if test="platformAgreementText != null">platform_agreement_text = #{platformAgreementText},</if> | |||
| <if test="remark != null">remark = #{remark},</if> | |||
| <if test="createTime != null">create_time = #{createTime},</if> | |||
| <if test="createBy != null">create_by = #{createBy},</if> | |||
| <if test="updateTime != null">update_time = #{updateTime},</if> | |||
| <if test="updateBy != null">update_by = #{updateBy},</if> | |||
| <if test="delFlag != null">del_flag = #{delFlag},</if> | |||
| </trim> | |||
| where id = #{id} | |||
| </update> | |||
| <delete id="deleteAppPlatformAgreementConfigById" parameterType="Long"> | |||
| delete from app_platform_agreement_config where id = #{id} | |||
| </delete> | |||
| <delete id="deleteAppPlatformAgreementConfigByIds" parameterType="String"> | |||
| delete from app_platform_agreement_config where id in | |||
| <foreach item="id" collection="array" open="(" separator="," close=")"> | |||
| #{id} | |||
| </foreach> | |||
| </delete> | |||
| </mapper> | |||
| @ -0,0 +1,101 @@ | |||
| <?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.AppTransactionDetailsMapper"> | |||
| <resultMap type="AppTransactionDetails" id="AppTransactionDetailsResult"> | |||
| <result property="id" column="id" /> | |||
| <result property="wid" column="wid" /> | |||
| <result property="detailsName" column="details_name" /> | |||
| <result property="detailsPrice" column="details_price" /> | |||
| <result property="transactionType" column="transaction_type" /> | |||
| <result property="remark" column="remark" /> | |||
| <result property="createTime" column="create_time" /> | |||
| <result property="createBy" column="create_by" /> | |||
| <result property="updateTime" column="update_time" /> | |||
| <result property="updateBy" column="update_by" /> | |||
| <result property="delFlag" column="del_flag" /> | |||
| </resultMap> | |||
| <sql id="selectAppTransactionDetailsVo"> | |||
| select id, wid, details_name, details_price, transaction_type, remark, create_time, create_by, update_time, update_by, del_flag from app_transaction_details | |||
| </sql> | |||
| <select id="selectAppTransactionDetailsList" parameterType="AppTransactionDetails" resultMap="AppTransactionDetailsResult"> | |||
| <include refid="selectAppTransactionDetailsVo"/> | |||
| <where> | |||
| <if test="wid != null "> and wid = #{wid}</if> | |||
| <if test="detailsName != null and detailsName != ''"> and details_name like concat('%', #{detailsName}, '%')</if> | |||
| <if test="detailsPrice != null "> and details_price = #{detailsPrice}</if> | |||
| <if test="transactionType != null "> and transaction_type = #{transactionType}</if> | |||
| </where> | |||
| </select> | |||
| <select id="selectAppTransactionDetailsById" parameterType="Long" resultMap="AppTransactionDetailsResult"> | |||
| <include refid="selectAppTransactionDetailsVo"/> | |||
| where id = #{id} | |||
| </select> | |||
| <select id="getAppTransactionDetailsByWid" resultType="com.ruoyi.model.domain.AppTransactionDetails"> | |||
| <include refid="selectAppTransactionDetailsVo"/> | |||
| where wid = #{wid} and del_flag = 0; | |||
| </select> | |||
| <insert id="insertAppTransactionDetails" parameterType="AppTransactionDetails"> | |||
| insert into app_transaction_details | |||
| <trim prefix="(" suffix=")" suffixOverrides=","> | |||
| <if test="id != null">id,</if> | |||
| <if test="wid != null">wid,</if> | |||
| <if test="detailsName != null">details_name,</if> | |||
| <if test="detailsPrice != null">details_price,</if> | |||
| <if test="transactionType != null">transaction_type,</if> | |||
| <if test="remark != null">remark,</if> | |||
| <if test="createTime != null">create_time,</if> | |||
| <if test="createBy != null">create_by,</if> | |||
| <if test="updateTime != null">update_time,</if> | |||
| <if test="updateBy != null">update_by,</if> | |||
| <if test="delFlag != null">del_flag,</if> | |||
| </trim> | |||
| <trim prefix="values (" suffix=")" suffixOverrides=","> | |||
| <if test="id != null">#{id},</if> | |||
| <if test="wid != null">#{wid},</if> | |||
| <if test="detailsName != null">#{detailsName},</if> | |||
| <if test="detailsPrice != null">#{detailsPrice},</if> | |||
| <if test="transactionType != null">#{transactionType},</if> | |||
| <if test="remark != null">#{remark},</if> | |||
| <if test="createTime != null">#{createTime},</if> | |||
| <if test="createBy != null">#{createBy},</if> | |||
| <if test="updateTime != null">#{updateTime},</if> | |||
| <if test="updateBy != null">#{updateBy},</if> | |||
| <if test="delFlag != null">#{delFlag},</if> | |||
| </trim> | |||
| </insert> | |||
| <update id="updateAppTransactionDetails" parameterType="AppTransactionDetails"> | |||
| update app_transaction_details | |||
| <trim prefix="SET" suffixOverrides=","> | |||
| <if test="wid != null">wid = #{wid},</if> | |||
| <if test="detailsName != null">details_name = #{detailsName},</if> | |||
| <if test="detailsPrice != null">details_price = #{detailsPrice},</if> | |||
| <if test="transactionType != null">transaction_type = #{transactionType},</if> | |||
| <if test="remark != null">remark = #{remark},</if> | |||
| <if test="createTime != null">create_time = #{createTime},</if> | |||
| <if test="createBy != null">create_by = #{createBy},</if> | |||
| <if test="updateTime != null">update_time = #{updateTime},</if> | |||
| <if test="updateBy != null">update_by = #{updateBy},</if> | |||
| <if test="delFlag != null">del_flag = #{delFlag},</if> | |||
| </trim> | |||
| where id = #{id} | |||
| </update> | |||
| <delete id="deleteAppTransactionDetailsById" parameterType="Long"> | |||
| delete from app_transaction_details where id = #{id} | |||
| </delete> | |||
| <delete id="deleteAppTransactionDetailsByIds" parameterType="String"> | |||
| delete from app_transaction_details where id in | |||
| <foreach item="id" collection="array" open="(" separator="," close=")"> | |||
| #{id} | |||
| </foreach> | |||
| </delete> | |||
| </mapper> | |||
| @ -0,0 +1,128 @@ | |||
| <?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.AppUsersMapper"> | |||
| <resultMap type="AppUsers" id="AppUsersResult"> | |||
| <result property="userId" column="user_id" /> | |||
| <result property="createBy" column="create_by" /> | |||
| <result property="createTime" column="create_time" /> | |||
| <result property="delFlag" column="del_flag" /> | |||
| <result property="remark" column="remark" /> | |||
| <result property="updateTime" column="update_time" /> | |||
| <result property="updatorBy" column="updator_by" /> | |||
| <result property="userImage" column="user_image" /> | |||
| <result property="userName" column="user_name" /> | |||
| <result property="userState" column="user_state" /> | |||
| <result property="userTelephone" column="user_telephone" /> | |||
| <result property="unionid" column="unionid" /> | |||
| <result property="openid" column="openid" /> | |||
| <result property="accessToken" column="access_token" /> | |||
| <result property="expiresIn" column="expires_in" /> | |||
| <result property="refreshToken" column="refresh_token" /> | |||
| <result property="expireTime" column="expire_time" /> | |||
| </resultMap> | |||
| <sql id="selectAppUsersVo"> | |||
| select user_id, create_by, create_time, del_flag, remark, update_time, updator_by, user_image, user_name, user_state, user_telephone, unionid, openid, access_token, expires_in, refresh_token, expire_time from app_users | |||
| </sql> | |||
| <select id="selectAppUsersList" parameterType="AppUsers" resultMap="AppUsersResult"> | |||
| <include refid="selectAppUsersVo"/> | |||
| <where> | |||
| <if test="updatorBy != null and updatorBy != ''"> and updator_by = #{updatorBy}</if> | |||
| <if test="userImage != null and userImage != ''"> and user_image = #{userImage}</if> | |||
| <if test="userName != null and userName != ''"> and user_name like concat('%', #{userName}, '%')</if> | |||
| <if test="userState != null "> and user_state = #{userState}</if> | |||
| <if test="userTelephone != null and userTelephone != ''"> and user_telephone = #{userTelephone}</if> | |||
| <if test="unionid != null and unionid != ''"> and unionid = #{unionid}</if> | |||
| <if test="openid != null and openid != ''"> and openid = #{openid}</if> | |||
| <if test="accessToken != null and accessToken != ''"> and access_token = #{accessToken}</if> | |||
| <if test="expiresIn != null "> and expires_in = #{expiresIn}</if> | |||
| <if test="refreshToken != null and refreshToken != ''"> and refresh_token = #{refreshToken}</if> | |||
| <if test="expireTime != null "> and expire_time = #{expireTime}</if> | |||
| </where> | |||
| </select> | |||
| <select id="selectAppUsersByUserId" parameterType="Long" resultMap="AppUsersResult"> | |||
| <include refid="selectAppUsersVo"/> | |||
| where user_id = #{userId} | |||
| </select> | |||
| <insert id="insertAppUsers" parameterType="AppUsers"> | |||
| insert into app_users | |||
| <trim prefix="(" suffix=")" suffixOverrides=","> | |||
| <if test="userId != null">user_id,</if> | |||
| <if test="createBy != null">create_by,</if> | |||
| <if test="createTime != null">create_time,</if> | |||
| <if test="delFlag != null">del_flag,</if> | |||
| <if test="remark != null">remark,</if> | |||
| <if test="updateTime != null">update_time,</if> | |||
| <if test="updatorBy != null">updator_by,</if> | |||
| <if test="userImage != null">user_image,</if> | |||
| <if test="userName != null and userName != ''">user_name,</if> | |||
| <if test="userState != null">user_state,</if> | |||
| <if test="userTelephone != null">user_telephone,</if> | |||
| <if test="unionid != null">unionid,</if> | |||
| <if test="openid != null">openid,</if> | |||
| <if test="accessToken != null">access_token,</if> | |||
| <if test="expiresIn != null">expires_in,</if> | |||
| <if test="refreshToken != null">refresh_token,</if> | |||
| <if test="expireTime != null">expire_time,</if> | |||
| </trim> | |||
| <trim prefix="values (" suffix=")" suffixOverrides=","> | |||
| <if test="userId != null">#{userId},</if> | |||
| <if test="createBy != null">#{createBy},</if> | |||
| <if test="createTime != null">#{createTime},</if> | |||
| <if test="delFlag != null">#{delFlag},</if> | |||
| <if test="remark != null">#{remark},</if> | |||
| <if test="updateTime != null">#{updateTime},</if> | |||
| <if test="updatorBy != null">#{updatorBy},</if> | |||
| <if test="userImage != null">#{userImage},</if> | |||
| <if test="userName != null and userName != ''">#{userName},</if> | |||
| <if test="userState != null">#{userState},</if> | |||
| <if test="userTelephone != null">#{userTelephone},</if> | |||
| <if test="unionid != null">#{unionid},</if> | |||
| <if test="openid != null">#{openid},</if> | |||
| <if test="accessToken != null">#{accessToken},</if> | |||
| <if test="expiresIn != null">#{expiresIn},</if> | |||
| <if test="refreshToken != null">#{refreshToken},</if> | |||
| <if test="expireTime != null">#{expireTime},</if> | |||
| </trim> | |||
| </insert> | |||
| <update id="updateAppUsers" parameterType="AppUsers"> | |||
| update app_users | |||
| <trim prefix="SET" suffixOverrides=","> | |||
| <if test="createBy != null">create_by = #{createBy},</if> | |||
| <if test="createTime != null">create_time = #{createTime},</if> | |||
| <if test="delFlag != null">del_flag = #{delFlag},</if> | |||
| <if test="remark != null">remark = #{remark},</if> | |||
| <if test="updateTime != null">update_time = #{updateTime},</if> | |||
| <if test="updatorBy != null">updator_by = #{updatorBy},</if> | |||
| <if test="userImage != null">user_image = #{userImage},</if> | |||
| <if test="userName != null and userName != ''">user_name = #{userName},</if> | |||
| <if test="userState != null">user_state = #{userState},</if> | |||
| <if test="userTelephone != null">user_telephone = #{userTelephone},</if> | |||
| <if test="unionid != null">unionid = #{unionid},</if> | |||
| <if test="openid != null">openid = #{openid},</if> | |||
| <if test="accessToken != null">access_token = #{accessToken},</if> | |||
| <if test="expiresIn != null">expires_in = #{expiresIn},</if> | |||
| <if test="refreshToken != null">refresh_token = #{refreshToken},</if> | |||
| <if test="expireTime != null">expire_time = #{expireTime},</if> | |||
| </trim> | |||
| where user_id = #{userId} | |||
| </update> | |||
| <delete id="deleteAppUsersByUserId" parameterType="Long"> | |||
| delete from app_users where user_id = #{userId} | |||
| </delete> | |||
| <delete id="deleteAppUsersByUserIds" parameterType="String"> | |||
| delete from app_users where user_id in | |||
| <foreach item="userId" collection="array" open="(" separator="," close=")"> | |||
| #{userId} | |||
| </foreach> | |||
| </delete> | |||
| </mapper> | |||
| @ -0,0 +1,85 @@ | |||
| <?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.AppWalletMapper"> | |||
| <resultMap type="AppWallet" id="AppWalletResult"> | |||
| <result property="id" column="id" /> | |||
| <result property="price" column="price" /> | |||
| <result property="remark" column="remark" /> | |||
| <result property="createTime" column="create_time" /> | |||
| <result property="createBy" column="create_by" /> | |||
| <result property="updateTime" column="update_time" /> | |||
| <result property="updateBy" column="update_by" /> | |||
| <result property="delFlag" column="del_flag" /> | |||
| </resultMap> | |||
| <sql id="selectAppWalletVo"> | |||
| select id, price, remark, create_time, create_by, update_time, update_by, del_flag from app_wallet | |||
| </sql> | |||
| <select id="selectAppWalletList" parameterType="AppWallet" resultMap="AppWalletResult"> | |||
| <include refid="selectAppWalletVo"/> | |||
| <where> | |||
| <if test="price != null "> and price = #{price}</if> | |||
| </where> | |||
| </select> | |||
| <select id="selectAppWalletById" parameterType="Long" resultMap="AppWalletResult"> | |||
| <include refid="selectAppWalletVo"/> | |||
| where id = #{id} | |||
| </select> | |||
| <select id="getAppWalletByUserId" resultType="com.ruoyi.model.domain.AppWallet"> | |||
| select wallet.* from app_wallet wallet join app_users users where users.user_id = #{usersId} and wallet.del_flag = 0 and users.del_flag = 0; | |||
| </select> | |||
| <insert id="insertAppWallet" parameterType="AppWallet"> | |||
| insert into app_wallet | |||
| <trim prefix="(" suffix=")" suffixOverrides=","> | |||
| <if test="id != null">id,</if> | |||
| <if test="price != null">price,</if> | |||
| <if test="remark != null">remark,</if> | |||
| <if test="createTime != null">create_time,</if> | |||
| <if test="createBy != null">create_by,</if> | |||
| <if test="updateTime != null">update_time,</if> | |||
| <if test="updateBy != null">update_by,</if> | |||
| <if test="delFlag != null">del_flag,</if> | |||
| </trim> | |||
| <trim prefix="values (" suffix=")" suffixOverrides=","> | |||
| <if test="id != null">#{id},</if> | |||
| <if test="price != null">#{price},</if> | |||
| <if test="remark != null">#{remark},</if> | |||
| <if test="createTime != null">#{createTime},</if> | |||
| <if test="createBy != null">#{createBy},</if> | |||
| <if test="updateTime != null">#{updateTime},</if> | |||
| <if test="updateBy != null">#{updateBy},</if> | |||
| <if test="delFlag != null">#{delFlag},</if> | |||
| </trim> | |||
| </insert> | |||
| <update id="updateAppWallet" parameterType="AppWallet"> | |||
| update app_wallet | |||
| <trim prefix="SET" suffixOverrides=","> | |||
| <if test="price != null">price = #{price},</if> | |||
| <if test="remark != null">remark = #{remark},</if> | |||
| <if test="createTime != null">create_time = #{createTime},</if> | |||
| <if test="createBy != null">create_by = #{createBy},</if> | |||
| <if test="updateTime != null">update_time = #{updateTime},</if> | |||
| <if test="updateBy != null">update_by = #{updateBy},</if> | |||
| <if test="delFlag != null">del_flag = #{delFlag},</if> | |||
| </trim> | |||
| where id = #{id} | |||
| </update> | |||
| <delete id="deleteAppWalletById" parameterType="Long"> | |||
| delete from app_wallet where id = #{id} | |||
| </delete> | |||
| <delete id="deleteAppWalletByIds" parameterType="String"> | |||
| delete from app_wallet where id in | |||
| <foreach item="id" collection="array" open="(" separator="," close=")"> | |||
| #{id} | |||
| </foreach> | |||
| </delete> | |||
| </mapper> | |||
| @ -0,0 +1,90 @@ | |||
| <?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.AppWithdrawalConfigMapper"> | |||
| <resultMap type="AppWithdrawalConfig" id="AppWithdrawalConfigResult"> | |||
| <result property="id" column="id" /> | |||
| <result property="withdrawalTitle" column="withdrawal_title" /> | |||
| <result property="withdrawalText" column="withdrawal_text" /> | |||
| <result property="remark" column="remark" /> | |||
| <result property="createTime" column="create_time" /> | |||
| <result property="createBy" column="create_by" /> | |||
| <result property="updateTime" column="update_time" /> | |||
| <result property="updateBy" column="update_by" /> | |||
| <result property="delFlag" column="del_flag" /> | |||
| </resultMap> | |||
| <sql id="selectAppWithdrawalConfigVo"> | |||
| select id, withdrawal_title, withdrawal_text, remark, create_time, create_by, update_time, update_by, del_flag from app_withdrawal_config | |||
| </sql> | |||
| <select id="selectAppWithdrawalConfigList" parameterType="AppWithdrawalConfig" resultMap="AppWithdrawalConfigResult"> | |||
| <include refid="selectAppWithdrawalConfigVo"/> | |||
| <where> | |||
| <if test="withdrawalTitle != null and withdrawalTitle != ''"> and withdrawal_title = #{withdrawalTitle}</if> | |||
| <if test="withdrawalText != null and withdrawalText != ''"> and withdrawal_text = #{withdrawalText}</if> | |||
| </where> | |||
| </select> | |||
| <select id="selectAppWithdrawalConfigById" parameterType="Long" resultMap="AppWithdrawalConfigResult"> | |||
| <include refid="selectAppWithdrawalConfigVo"/> | |||
| where id = #{id} | |||
| </select> | |||
| <select id="getAppWithdrawalConfig" resultType="com.ruoyi.model.domain.AppWithdrawalConfig"> | |||
| <include refid="selectAppWithdrawalConfigVo"/> where del_flag = 0; | |||
| </select> | |||
| <insert id="insertAppWithdrawalConfig" parameterType="AppWithdrawalConfig"> | |||
| insert into app_withdrawal_config | |||
| <trim prefix="(" suffix=")" suffixOverrides=","> | |||
| <if test="id != null">id,</if> | |||
| <if test="withdrawalTitle != null">withdrawal_title,</if> | |||
| <if test="withdrawalText != null">withdrawal_text,</if> | |||
| <if test="remark != null">remark,</if> | |||
| <if test="createTime != null">create_time,</if> | |||
| <if test="createBy != null">create_by,</if> | |||
| <if test="updateTime != null">update_time,</if> | |||
| <if test="updateBy != null">update_by,</if> | |||
| <if test="delFlag != null">del_flag,</if> | |||
| </trim> | |||
| <trim prefix="values (" suffix=")" suffixOverrides=","> | |||
| <if test="id != null">#{id},</if> | |||
| <if test="withdrawalTitle != null">#{withdrawalTitle},</if> | |||
| <if test="withdrawalText != null">#{withdrawalText},</if> | |||
| <if test="remark != null">#{remark},</if> | |||
| <if test="createTime != null">#{createTime},</if> | |||
| <if test="createBy != null">#{createBy},</if> | |||
| <if test="updateTime != null">#{updateTime},</if> | |||
| <if test="updateBy != null">#{updateBy},</if> | |||
| <if test="delFlag != null">#{delFlag},</if> | |||
| </trim> | |||
| </insert> | |||
| <update id="updateAppWithdrawalConfig" parameterType="AppWithdrawalConfig"> | |||
| update app_withdrawal_config | |||
| <trim prefix="SET" suffixOverrides=","> | |||
| <if test="withdrawalTitle != null">withdrawal_title = #{withdrawalTitle},</if> | |||
| <if test="withdrawalText != null">withdrawal_text = #{withdrawalText},</if> | |||
| <if test="remark != null">remark = #{remark},</if> | |||
| <if test="createTime != null">create_time = #{createTime},</if> | |||
| <if test="createBy != null">create_by = #{createBy},</if> | |||
| <if test="updateTime != null">update_time = #{updateTime},</if> | |||
| <if test="updateBy != null">update_by = #{updateBy},</if> | |||
| <if test="delFlag != null">del_flag = #{delFlag},</if> | |||
| </trim> | |||
| where id = #{id} | |||
| </update> | |||
| <delete id="deleteAppWithdrawalConfigById" parameterType="Long"> | |||
| delete from app_withdrawal_config where id = #{id} | |||
| </delete> | |||
| <delete id="deleteAppWithdrawalConfigByIds" parameterType="String"> | |||
| delete from app_withdrawal_config where id in | |||
| <foreach item="id" collection="array" open="(" separator="," close=")"> | |||
| #{id} | |||
| </foreach> | |||
| </delete> | |||
| </mapper> | |||