Browse Source

CYF

master
CYF 2 months ago
parent
commit
8ae41337f8
32 changed files with 2939 additions and 404 deletions
  1. +44
    -0
      CatmDogd-Mall-Front-test/src/api/model/AppletAddress.js
  2. +44
    -0
      CatmDogd-Mall-Front-test/src/api/model/AppletConfig.js
  3. +44
    -0
      CatmDogd-Mall-Front-test/src/api/model/AppletOutDate.js
  4. +231
    -197
      CatmDogd-Mall-Front-test/src/views/model/AppUsers/index.vue
  5. +349
    -0
      CatmDogd-Mall-Front-test/src/views/model/AppletAddress/index.vue
  6. +302
    -0
      CatmDogd-Mall-Front-test/src/views/model/AppletConfig/index.vue
  7. +285
    -0
      CatmDogd-Mall-Front-test/src/views/model/AppletOutDate/index.vue
  8. +2
    -2
      ruoyi-catdog/src/main/java/com/ruoyi/applet/contoller/ApiAppletHhrWorkInController.java
  9. +1
    -1
      ruoyi-catdog/src/main/java/com/ruoyi/model/controller/AppUsersController.java
  10. +104
    -0
      ruoyi-catdog/src/main/java/com/ruoyi/model/controller/AppletAddressController.java
  11. +104
    -0
      ruoyi-catdog/src/main/java/com/ruoyi/model/controller/AppletConfigController.java
  12. +105
    -0
      ruoyi-catdog/src/main/java/com/ruoyi/model/controller/AppletOutDateController.java
  13. +197
    -163
      ruoyi-catdog/src/main/java/com/ruoyi/model/domain/AppUsers.java
  14. +110
    -0
      ruoyi-catdog/src/main/java/com/ruoyi/model/domain/AppletAddress.java
  15. +80
    -0
      ruoyi-catdog/src/main/java/com/ruoyi/model/domain/AppletConfig.java
  16. +55
    -0
      ruoyi-catdog/src/main/java/com/ruoyi/model/domain/AppletOutDate.java
  17. +1
    -10
      ruoyi-catdog/src/main/java/com/ruoyi/model/mapper/AppUsersMapper.java
  18. +61
    -0
      ruoyi-catdog/src/main/java/com/ruoyi/model/mapper/AppletAddressMapper.java
  19. +61
    -0
      ruoyi-catdog/src/main/java/com/ruoyi/model/mapper/AppletConfigMapper.java
  20. +62
    -0
      ruoyi-catdog/src/main/java/com/ruoyi/model/mapper/AppletOutDateMapper.java
  21. +2
    -13
      ruoyi-catdog/src/main/java/com/ruoyi/model/service/IAppUsersService.java
  22. +61
    -0
      ruoyi-catdog/src/main/java/com/ruoyi/model/service/IAppletAddressService.java
  23. +61
    -0
      ruoyi-catdog/src/main/java/com/ruoyi/model/service/IAppletConfigService.java
  24. +62
    -0
      ruoyi-catdog/src/main/java/com/ruoyi/model/service/IAppletOutDateService.java
  25. +3
    -10
      ruoyi-catdog/src/main/java/com/ruoyi/model/service/impl/AppUsersServiceImpl.java
  26. +93
    -0
      ruoyi-catdog/src/main/java/com/ruoyi/model/service/impl/AppletAddressServiceImpl.java
  27. +93
    -0
      ruoyi-catdog/src/main/java/com/ruoyi/model/service/impl/AppletConfigServiceImpl.java
  28. +94
    -0
      ruoyi-catdog/src/main/java/com/ruoyi/model/service/impl/AppletOutDateServiceImpl.java
  29. +21
    -8
      ruoyi-catdog/src/main/resources/mapper/model/AppUsersMapper.xml
  30. +79
    -0
      ruoyi-catdog/src/main/resources/mapper/model/AppletAddressMapper.xml
  31. +69
    -0
      ruoyi-catdog/src/main/resources/mapper/model/AppletConfigMapper.xml
  32. +59
    -0
      ruoyi-catdog/src/main/resources/mapper/model/AppletOutDateMapper.xml

+ 44
- 0
CatmDogd-Mall-Front-test/src/api/model/AppletAddress.js View File

@ -0,0 +1,44 @@
import request from '@/utils/request'
// 查询地址信息列表
export function listAppletAddress(query) {
return request({
url: '/model/AppletAddress/list',
method: 'get',
params: query
})
}
// 查询地址信息详细
export function getAppletAddress(area) {
return request({
url: '/model/AppletAddress/' + area,
method: 'get'
})
}
// 新增地址信息
export function addAppletAddress(data) {
return request({
url: '/model/AppletAddress',
method: 'post',
data: data
})
}
// 修改地址信息
export function updateAppletAddress(data) {
return request({
url: '/model/AppletAddress',
method: 'put',
data: data
})
}
// 删除地址信息
export function delAppletAddress(area) {
return request({
url: '/model/AppletAddress/' + area,
method: 'delete'
})
}

+ 44
- 0
CatmDogd-Mall-Front-test/src/api/model/AppletConfig.js View File

@ -0,0 +1,44 @@
import request from '@/utils/request'
// 查询配置信息列表
export function listAppletConfig(query) {
return request({
url: '/model/AppletConfig/list',
method: 'get',
params: query
})
}
// 查询配置信息详细
export function getAppletConfig(paramCode) {
return request({
url: '/model/AppletConfig/' + paramCode,
method: 'get'
})
}
// 新增配置信息
export function addAppletConfig(data) {
return request({
url: '/model/AppletConfig',
method: 'post',
data: data
})
}
// 修改配置信息
export function updateAppletConfig(data) {
return request({
url: '/model/AppletConfig',
method: 'put',
data: data
})
}
// 删除配置信息
export function delAppletConfig(paramCode) {
return request({
url: '/model/AppletConfig/' + paramCode,
method: 'delete'
})
}

+ 44
- 0
CatmDogd-Mall-Front-test/src/api/model/AppletOutDate.js View File

@ -0,0 +1,44 @@
import request from '@/utils/request'
// 查询不接单日期列表
export function listAppletOutDate(query) {
return request({
url: '/model/AppletOutDate/list',
method: 'get',
params: query
})
}
// 查询不接单日期详细
export function getAppletOutDate(date) {
return request({
url: '/model/AppletOutDate/' + date,
method: 'get'
})
}
// 新增不接单日期
export function addAppletOutDate(data) {
return request({
url: '/model/AppletOutDate',
method: 'post',
data: data
})
}
// 修改不接单日期
export function updateAppletOutDate(data) {
return request({
url: '/model/AppletOutDate',
method: 'put',
data: data
})
}
// 删除不接单日期
export function delAppletOutDate(date) {
return request({
url: '/model/AppletOutDate/' + date,
method: 'delete'
})
}

+ 231
- 197
CatmDogd-Mall-Front-test/src/views/model/AppUsers/index.vue View File

@ -1,33 +1,33 @@
<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="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="请输入用户用户昵称"
placeholder="请输入用户昵称"
clearable
size="small"
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="用户状态" prop="userState">
<el-input
v-model="queryParams.userState"
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"
@ -36,69 +36,83 @@
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 label="是否合伙人" prop="userHh">
<el-input
v-model="queryParams.userHh"
placeholder="请输入是否合伙人"
clearable
size="small"
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="是否伴宠师" prop="userBcs">
<el-input
v-model="queryParams.userBcs"
placeholder="请输入是否伴宠师"
<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>
<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"
@keyup.enter.native="handleQuery"
/>
</el-form-item>
</template>
v-model="queryParams.expireTime"
type="datetime"
value-format="yyyy-MM-dd HH:mm:ss"
placeholder="选择过期时间">
</el-date-picker>
</el-form-item>
<el-form-item label="是否合伙人" prop="userHh">
<el-input
v-model="queryParams.userHh"
placeholder="请输入是否合伙人"
clearable
size="small"
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="是否伴宠师" prop="userBcs">
<el-input
v-model="queryParams.userBcs"
placeholder="请输入是否伴宠师"
clearable
size="small"
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<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 label="邀请码" prop="invitationCode">
<el-input
v-model="queryParams.invitationCode"
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-button :icon="showMoreCondition ? 'el-icon-arrow-up' : 'el-icon-arrow-down'" size="mini" @click="showMoreCondition = !showMoreCondition">{{showMoreCondition ? '收起条件' : '展开条件'}}</el-button>
</el-form-item>
</el-form>
@ -110,7 +124,7 @@
icon="el-icon-plus"
size="mini"
@click="handleAdd"
v-hasPermi="['model:appUsers:add']"
v-hasPermi="['model:AppUsers:add']"
>新增</el-button>
</el-col>
<el-col :span="1.5">
@ -121,7 +135,7 @@
size="mini"
:disabled="single"
@click="handleUpdate"
v-hasPermi="['model:appUsers:edit']"
v-hasPermi="['model:AppUsers:edit']"
>修改</el-button>
</el-col>
<el-col :span="1.5">
@ -132,7 +146,7 @@
size="mini"
:disabled="multiple"
@click="handleDelete"
v-hasPermi="['model:appUsers:remove']"
v-hasPermi="['model:AppUsers:remove']"
>删除</el-button>
</el-col>
<el-col :span="1.5">
@ -143,52 +157,35 @@
size="mini"
:loading="exportLoading"
@click="handleExport"
v-hasPermi="['model:appUsers:export']"
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 v-loading="loading" :data="AppUsersList" @selection-change="handleSelectionChange">
<el-table-column type="selection" width="55" align="center" />
<el-table-column label="注册时间" align="center" prop="createTime" />
<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"/>-->
<el-table-column label="用户头像" align="center" prop="c">
<template slot-scope="{ row }">
<el-image v-if="row.userImage" :src="row.userImage" :preview-src-list="[row.userImage]" class="small-img circle-img"/>
<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="用户状态" 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" prop="userName" />
<!-- <el-table-column label="用户状态, 0==为注册, 1==已注册为认证" align="center" prop="userState" v-if="columns[4].visible"/>-->
<el-table-column label="用户电话" align="center" prop="userTelephone"/>
<!-- <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" prop="userHh" />
<!-- <el-row>-->
<!-- <el-col :span="12">-->
<!-- <el-form-item label="是否合伙人">-->
<!-- <el-select v-model="form.userHh" placeholder="请选择性别">-->
<!-- <el-option-->
<!-- v-for="dict in dict.type.sys_user_sex"-->
<!-- :key="dict.value"-->
<!-- :label="dict.label"-->
<!-- :value="dict.value"-->
<!-- ></el-option>-->
<!-- </el-select>-->
<!-- </el-form-item>-->
<!-- </el-col>-->
<el-table-column label="是否伴宠师" align="center" prop="userBcs"/>
<el-table-column label="是否合伙人" align="center" prop="userHh" v-if="columns[12].visible"/>
<el-table-column label="是否伴宠师" align="center" prop="userBcs" v-if="columns[13].visible"/>
<el-table-column label="钱包金额" align="center" prop="price" v-if="columns[14].visible"/>
<el-table-column label="邀请码" align="center" prop="invitationCode" v-if="columns[15].visible"/>
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
<template slot-scope="scope">
<el-button
@ -196,14 +193,14 @@
type="text"
icon="el-icon-edit"
@click="handleUpdate(scope.row)"
v-hasPermi="['model:appUsers:edit']"
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']"
v-hasPermi="['model:AppUsers:remove']"
>删除</el-button>
</template>
</el-table-column>
@ -217,60 +214,65 @@
@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="逻辑删除" 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"/>-->
<oss-image-upload v-model="form.userImage" :limit="1"></oss-image-upload>
<imageUpload v-model="form.userImage"/>
</el-form-item>
<el-form-item label="用户昵称" prop="userName">
<el-input v-model="form.userName" placeholder="请输入用户名称" />
<el-input v-model="form.userName" placeholder="请输入用户昵称" />
</el-form-item>
<el-form-item label="用户状态" prop="userState">
<el-input v-model="form.userState" 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 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-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-item label="是否合伙人" prop="userHh">
<el-input v-model="form.userHh" placeholder="请输入是否合伙人" />
</el-form-item>
<el-form-item label="是否伴宠师" prop="userBcs">
<el-input v-model="form.userBcs" placeholder="请输入是否伴宠师" />
</el-form-item>
<el-form-item label="钱包金额" prop="price">
<el-input v-model="form.price" placeholder="请输入钱包金额" />
</el-form-item>
<el-form-item label="邀请码" prop="invitationCode">
<el-input v-model="form.invitationCode" placeholder="请输入邀请码" />
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button type="primary" @click="submitForm"> </el-button>
@ -281,18 +283,10 @@
</template>
<script>
import {
listAppUsers,
getAppUsers,
delAppUsers,
addAppUsers,
updateAppUsers,
exportAppUsers
} from "@/api/model/AppUsers";
import { listAppUsers, getAppUsers, delAppUsers, addAppUsers, updateAppUsers, exportAppUsers } from "@/api/model/AppUsers";
export default {
name: "AppUsers",
dicts: ['sys_user_sex'],
data() {
return {
//
@ -309,8 +303,8 @@ export default {
showSearch: true,
//
total: 0,
//
appUsersList: [],
//
AppUsersList: [],
//
title: "",
//
@ -320,55 +314,74 @@ export default {
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,
userHh: null,
userBcs: null
userBcs: null,
price: null,
invitationCode: null,
},
//
form: {},
//
rules: {
userName: [
{required: true, message: "用户称不能为空", trigger: "blur"}
{ 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},
{key: 17, label: "是否合伙人", visible: false},
{key: 18, label: "是否伴宠师", visible: false},
],
showMoreCondition: false
{ key: 4, label: "备注", visible: true },
{ key: 6, label: "修改人", visible: true },
{ key: 7, label: "用户头像", visible: false },
{ key: 8, label: "用户昵称", visible: true },
{ key: 9, label: "用户状态", 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 },
{ key: 17, label: "是否合伙人", visible: false },
{ key: 18, label: "是否伴宠师", visible: false },
{ key: 19, label: "钱包金额", visible: false },
{ key: 20, label: "邀请码", visible: false },
],
};
},
created() {
this.getList();
},
methods: {
/** 查询用户列表 */
/** 查询用户列表 */
getList() {
this.loading = true;
listAppUsers(this.queryParams).then(response => {
this.appUsersList = response.rows;
this.AppUsersList = response.rows;
this.total = response.total;
this.loading = false;
});
@ -382,24 +395,47 @@ export default {
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,
userHh: null,
userBcs: null
userBcs: null,
price: null,
invitationCode: null,
};
this.resetForm("form");
},
@ -416,14 +452,14 @@ export default {
//
handleSelectionChange(selection) {
this.ids = selection.map(item => item.userId)
this.single = selection.length !== 1
this.single = selection.length!==1
this.multiple = !selection.length
},
/** 新增按钮操作 */
handleAdd() {
this.reset();
this.open = true;
this.title = "添加用户";
this.title = "添加用户";
},
/** 修改按钮操作 */
handleUpdate(row) {
@ -432,7 +468,7 @@ export default {
getAppUsers(userId).then(response => {
this.form = response.data;
this.open = true;
this.title = "修改用户";
this.title = "修改用户";
});
},
/** 提交按钮 */
@ -458,25 +494,23 @@ export default {
/** 删除按钮操作 */
handleDelete(row) {
const userIds = row.userId || this.ids;
this.$modal.confirm('是否确认删除用户编号为"' + userIds + '"的数据项?').then(function () {
this.$modal.confirm('是否确认删除用户编号为"' + userIds + '"的数据项?').then(function() {
return delAppUsers(userIds);
}).then(() => {
this.getList();
this.$modal.msgSuccess("删除成功");
}).catch(() => {
});
}).catch(() => {});
},
/** 导出按钮操作 */
handleExport() {
const queryParams = this.queryParams;
this.$modal.confirm('是否确认导出所有用户数据项?').then(() => {
this.$modal.confirm('是否确认导出所有用户数据项?').then(() => {
this.exportLoading = true;
return exportAppUsers(queryParams);
}).then(response => {
this.download(response.msg);
this.exportLoading = false;
}).catch(() => {
});
}).catch(() => {});
}
}
};


+ 349
- 0
CatmDogd-Mall-Front-test/src/views/model/AppletAddress/index.vue View File

@ -0,0 +1,349 @@
<template>
<div class="app-container">
<el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="100px" size="medium" class="ry_form">
<el-form-item label="接单地址" prop="area">
<el-input
v-model="queryParams.area"
placeholder="请输入接单地址"
clearable
size="small"
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="详细地址" prop="address">
<el-input
v-model="queryParams.address"
placeholder="请输入详细地址"
clearable
size="small"
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="接单状态" prop="status">
<el-select v-model="queryParams.status" placeholder="请选择接单状态" clearable size="small">
</el-select>
</el-form-item>
<el-form-item label="接单范围" prop="range">
<el-input
v-model="queryParams.range"
placeholder="请输入接单范围"
clearable
size="small"
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="${comment}" prop="outDate">
<el-date-picker
clearable
size="small"
v-model="queryParams.outDate"
type="datetime"
value-format="yyyy-MM-dd HH:mm:ss"
placeholder="选择${comment}">
</el-date-picker>
</el-form-item>
<el-form-item label="关联用户id" prop="userId">
<el-input
v-model="queryParams.userId"
placeholder="请输入关联用户id"
clearable
size="small"
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item class="flex_one tr">
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
</el-form-item>
</el-form>
<el-row :gutter="10" class="mb8">
<el-col :span="1.5">
<el-button
type="primary"
plain
icon="el-icon-plus"
size="mini"
@click="handleAdd"
v-hasPermi="['model:AppletAddress:add']"
>新增</el-button>
</el-col>
<el-col :span="1.5">
<el-button
type="success"
plain
icon="el-icon-edit"
size="mini"
:disabled="single"
@click="handleUpdate"
v-hasPermi="['model:AppletAddress:edit']"
>修改</el-button>
</el-col>
<el-col :span="1.5">
<el-button
type="danger"
plain
icon="el-icon-delete"
size="mini"
:disabled="multiple"
@click="handleDelete"
v-hasPermi="['model:AppletAddress:remove']"
>删除</el-button>
</el-col>
<el-col :span="1.5">
<el-button
type="warning"
plain
icon="el-icon-download"
size="mini"
:loading="exportLoading"
@click="handleExport"
v-hasPermi="['model:AppletAddress:export']"
>导出</el-button>
</el-col>
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList" :columns="columns"></right-toolbar>
</el-row>
<el-table v-loading="loading" :data="AppletAddressList" @selection-change="handleSelectionChange">
<el-table-column type="selection" width="55" align="center" />
<el-table-column label="接单地址" align="center" prop="area" v-if="columns[0].visible"/>
<el-table-column label="详细地址" align="center" prop="address" v-if="columns[1].visible"/>
<el-table-column label="接单状态" align="center" prop="status" v-if="columns[2].visible"/>
<el-table-column label="接单范围" align="center" prop="range" v-if="columns[3].visible"/>
<el-table-column label="${comment}" align="center" prop="outDate" width="180" v-if="columns[4].visible">
<template slot-scope="scope">
<span>{{ parseTime(scope.row.outDate, '')}}</span>
</template>
</el-table-column>
<el-table-column label="关联用户id" align="center" prop="userId" v-if="columns[5].visible"/>
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
<template slot-scope="scope">
<el-button
size="mini"
type="text"
icon="el-icon-edit"
@click="handleUpdate(scope.row)"
v-hasPermi="['model:AppletAddress:edit']"
>修改</el-button>
<el-button
size="mini"
type="text"
icon="el-icon-delete"
@click="handleDelete(scope.row)"
v-hasPermi="['model:AppletAddress:remove']"
>删除</el-button>
</template>
</el-table-column>
</el-table>
<pagination
v-show="total>0"
:total="total"
:page.sync="queryParams.pageNum"
:limit.sync="queryParams.pageSize"
@pagination="getList"
/>
<!-- 添加或修改地址信息对话框 -->
<el-dialog :title="title" :visible.sync="open" width="50%" append-to-body>
<el-form ref="form" :model="form" :rules="rules" label-width="108px" inline class="dialog-form-two">
<el-form-item label="接单地址" prop="area">
<el-input v-model="form.area" placeholder="请输入接单地址" />
</el-form-item>
<el-form-item label="详细地址" prop="address">
<el-input v-model="form.address" placeholder="请输入详细地址" />
</el-form-item>
<el-form-item label="接单范围" prop="range">
<el-input v-model="form.range" placeholder="请输入接单范围" />
</el-form-item>
<el-form-item label="${comment}" prop="outDate">
<el-date-picker clearable size="small"
v-model="form.outDate"
type="datetime"
value-format="yyyy-MM-dd HH:mm:ss"
placeholder="选择${comment}">
</el-date-picker>
</el-form-item>
<el-form-item label="关联用户id" prop="userId">
<el-input v-model="form.userId" placeholder="请输入关联用户id" />
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button type="primary" @click="submitForm"> </el-button>
<el-button @click="cancel"> </el-button>
</div>
</el-dialog>
</div>
</template>
<script>
import { listAppletAddress, getAppletAddress, delAppletAddress, addAppletAddress, updateAppletAddress, exportAppletAddress } from "@/api/model/AppletAddress";
export default {
name: "AppletAddress",
data() {
return {
//
loading: true,
//
exportLoading: false,
//
ids: [],
//
single: true,
//
multiple: true,
//
showSearch: true,
//
total: 0,
//
AppletAddressList: [],
//
title: "",
//
open: false,
//
queryParams: {
pageNum: 1,
pageSize: 10,
area: null,
address: null,
status: null,
range: null,
outDate: null,
userId: null,
},
//
form: {},
//
rules: {
},
columns: [
{ key: 0, label: "接单地址", visible: true },
{ key: 1, label: "详细地址", visible: true },
{ key: 2, label: "接单状态", visible: true },
{ key: 3, label: "接单范围", visible: true },
{ key: 4, label: "$column.columnComment", visible: true },
{ key: 5, label: "关联用户id", visible: true },
],
};
},
created() {
this.getList();
},
methods: {
/** 查询地址信息列表 */
getList() {
this.loading = true;
listAppletAddress(this.queryParams).then(response => {
this.AppletAddressList = response.rows;
this.total = response.total;
this.loading = false;
});
},
//
cancel() {
this.open = false;
this.reset();
},
//
reset() {
this.form = {
area: null,
address: null,
status: "0",
range: null,
outDate: null,
userId: null,
};
this.resetForm("form");
},
/** 搜索按钮操作 */
handleQuery() {
this.queryParams.pageNum = 1;
this.getList();
},
/** 重置按钮操作 */
resetQuery() {
this.resetForm("queryForm");
this.handleQuery();
},
//
handleSelectionChange(selection) {
this.ids = selection.map(item => item.area)
this.single = selection.length!==1
this.multiple = !selection.length
},
/** 新增按钮操作 */
handleAdd() {
this.reset();
this.open = true;
this.title = "添加地址信息";
},
/** 修改按钮操作 */
handleUpdate(row) {
this.reset();
const area = row.area || this.ids
getAppletAddress(area).then(response => {
this.form = response.data;
this.open = true;
this.title = "修改地址信息";
});
},
/** 提交按钮 */
submitForm() {
this.$refs["form"].validate(valid => {
if (valid) {
if (this.form.area != null) {
updateAppletAddress(this.form).then(response => {
this.$modal.msgSuccess("修改成功");
this.open = false;
this.getList();
});
} else {
addAppletAddress(this.form).then(response => {
this.$modal.msgSuccess("新增成功");
this.open = false;
this.getList();
});
}
}
});
},
/** 删除按钮操作 */
handleDelete(row) {
const areas = row.area || this.ids;
this.$modal.confirm('是否确认删除地址信息编号为"' + areas + '"的数据项?').then(function() {
return delAppletAddress(areas);
}).then(() => {
this.getList();
this.$modal.msgSuccess("删除成功");
}).catch(() => {});
},
/** 导出按钮操作 */
handleExport() {
const queryParams = this.queryParams;
this.$modal.confirm('是否确认导出所有地址信息数据项?').then(() => {
this.exportLoading = true;
return exportAppletAddress(queryParams);
}).then(response => {
this.download(response.msg);
this.exportLoading = false;
}).catch(() => {});
}
}
};
</script>

+ 302
- 0
CatmDogd-Mall-Front-test/src/views/model/AppletConfig/index.vue View File

@ -0,0 +1,302 @@
<template>
<div class="app-container">
<el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="100px" size="medium" class="ry_form">
<el-form-item label="参数编码" prop="paramCode">
<el-input
v-model="queryParams.paramCode"
placeholder="请输入参数编码"
clearable
size="small"
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="参数值-普通文本" prop="paramValueText">
<el-input
v-model="queryParams.paramValueText"
placeholder="请输入参数值-普通文本"
clearable
size="small"
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="参数值-富文本" prop="paramValueArea">
<el-input
v-model="queryParams.paramValueArea"
placeholder="请输入参数值-富文本"
clearable
size="small"
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item class="flex_one tr">
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
</el-form-item>
</el-form>
<el-row :gutter="10" class="mb8">
<el-col :span="1.5">
<el-button
type="primary"
plain
icon="el-icon-plus"
size="mini"
@click="handleAdd"
v-hasPermi="['model:AppletConfig:add']"
>新增</el-button>
</el-col>
<el-col :span="1.5">
<el-button
type="success"
plain
icon="el-icon-edit"
size="mini"
:disabled="single"
@click="handleUpdate"
v-hasPermi="['model:AppletConfig:edit']"
>修改</el-button>
</el-col>
<el-col :span="1.5">
<el-button
type="danger"
plain
icon="el-icon-delete"
size="mini"
:disabled="multiple"
@click="handleDelete"
v-hasPermi="['model:AppletConfig:remove']"
>删除</el-button>
</el-col>
<el-col :span="1.5">
<el-button
type="warning"
plain
icon="el-icon-download"
size="mini"
:loading="exportLoading"
@click="handleExport"
v-hasPermi="['model:AppletConfig:export']"
>导出</el-button>
</el-col>
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList" :columns="columns"></right-toolbar>
</el-row>
<el-table v-loading="loading" :data="AppletConfigList" @selection-change="handleSelectionChange">
<el-table-column type="selection" width="55" align="center" />
<el-table-column label="参数编码" align="center" prop="paramCode" v-if="columns[0].visible"/>
<el-table-column label="参数值-普通文本" align="center" prop="paramValueText" v-if="columns[1].visible"/>
<el-table-column label="参数值-图片" align="center" prop="paramValueImage" v-if="columns[2].visible"/>
<el-table-column label="参数值-富文本" align="center" prop="paramValueArea" v-if="columns[3].visible"/>
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
<template slot-scope="scope">
<el-button
size="mini"
type="text"
icon="el-icon-edit"
@click="handleUpdate(scope.row)"
v-hasPermi="['model:AppletConfig:edit']"
>修改</el-button>
<el-button
size="mini"
type="text"
icon="el-icon-delete"
@click="handleDelete(scope.row)"
v-hasPermi="['model:AppletConfig:remove']"
>删除</el-button>
</template>
</el-table-column>
</el-table>
<pagination
v-show="total>0"
:total="total"
:page.sync="queryParams.pageNum"
:limit.sync="queryParams.pageSize"
@pagination="getList"
/>
<!-- 添加或修改配置信息对话框 -->
<el-dialog :title="title" :visible.sync="open" width="50%" append-to-body>
<el-form ref="form" :model="form" :rules="rules" label-width="108px" inline class="dialog-form-two">
<el-form-item label="参数编码" prop="paramCode">
<el-input v-model="form.paramCode" placeholder="请输入参数编码" />
</el-form-item>
<el-form-item label="参数值-普通文本" prop="paramValueText">
<el-input v-model="form.paramValueText" placeholder="请输入参数值-普通文本" />
</el-form-item>
<el-form-item label="参数值-图片">
<imageUpload v-model="form.paramValueImage"/>
</el-form-item>
<el-form-item label="参数值-富文本" prop="paramValueArea">
<el-input v-model="form.paramValueArea" placeholder="请输入参数值-富文本" />
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button type="primary" @click="submitForm"> </el-button>
<el-button @click="cancel"> </el-button>
</div>
</el-dialog>
</div>
</template>
<script>
import { listAppletConfig, getAppletConfig, delAppletConfig, addAppletConfig, updateAppletConfig, exportAppletConfig } from "@/api/model/AppletConfig";
export default {
name: "AppletConfig",
data() {
return {
//
loading: true,
//
exportLoading: false,
//
ids: [],
//
single: true,
//
multiple: true,
//
showSearch: true,
//
total: 0,
//
AppletConfigList: [],
//
title: "",
//
open: false,
//
queryParams: {
pageNum: 1,
pageSize: 10,
paramCode: null,
paramValueText: null,
paramValueImage: null,
paramValueArea: null,
},
//
form: {},
//
rules: {
},
columns: [
{ key: 0, label: "参数编码", visible: true },
{ key: 1, label: "参数值-普通文本", visible: true },
{ key: 2, label: "参数值-图片", visible: false },
{ key: 3, label: "参数值-富文本", visible: true },
],
};
},
created() {
this.getList();
},
methods: {
/** 查询配置信息列表 */
getList() {
this.loading = true;
listAppletConfig(this.queryParams).then(response => {
this.AppletConfigList = response.rows;
this.total = response.total;
this.loading = false;
});
},
//
cancel() {
this.open = false;
this.reset();
},
//
reset() {
this.form = {
paramCode: null,
paramValueText: null,
paramValueImage: null,
paramValueArea: null,
};
this.resetForm("form");
},
/** 搜索按钮操作 */
handleQuery() {
this.queryParams.pageNum = 1;
this.getList();
},
/** 重置按钮操作 */
resetQuery() {
this.resetForm("queryForm");
this.handleQuery();
},
//
handleSelectionChange(selection) {
this.ids = selection.map(item => item.paramCode)
this.single = selection.length!==1
this.multiple = !selection.length
},
/** 新增按钮操作 */
handleAdd() {
this.reset();
this.open = true;
this.title = "添加配置信息";
},
/** 修改按钮操作 */
handleUpdate(row) {
this.reset();
const paramCode = row.paramCode || this.ids
getAppletConfig(paramCode).then(response => {
this.form = response.data;
this.open = true;
this.title = "修改配置信息";
});
},
/** 提交按钮 */
submitForm() {
this.$refs["form"].validate(valid => {
if (valid) {
if (this.form.paramCode != null) {
updateAppletConfig(this.form).then(response => {
this.$modal.msgSuccess("修改成功");
this.open = false;
this.getList();
});
} else {
addAppletConfig(this.form).then(response => {
this.$modal.msgSuccess("新增成功");
this.open = false;
this.getList();
});
}
}
});
},
/** 删除按钮操作 */
handleDelete(row) {
const paramCodes = row.paramCode || this.ids;
this.$modal.confirm('是否确认删除配置信息编号为"' + paramCodes + '"的数据项?').then(function() {
return delAppletConfig(paramCodes);
}).then(() => {
this.getList();
this.$modal.msgSuccess("删除成功");
}).catch(() => {});
},
/** 导出按钮操作 */
handleExport() {
const queryParams = this.queryParams;
this.$modal.confirm('是否确认导出所有配置信息数据项?').then(() => {
this.exportLoading = true;
return exportAppletConfig(queryParams);
}).then(response => {
this.download(response.msg);
this.exportLoading = false;
}).catch(() => {});
}
}
};
</script>

+ 285
- 0
CatmDogd-Mall-Front-test/src/views/model/AppletOutDate/index.vue View File

@ -0,0 +1,285 @@
<template>
<div class="app-container">
<el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="100px" size="medium" class="ry_form">
<el-form-item label="日期" prop="date">
<el-date-picker
clearable
size="small"
v-model="queryParams.date"
type="datetime"
value-format="yyyy-MM-dd HH:mm:ss"
placeholder="选择日期">
</el-date-picker>
</el-form-item>
<el-form-item label="关联接单地址" prop="addressId">
<el-input
v-model="queryParams.addressId"
placeholder="请输入关联接单地址"
clearable
size="small"
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item class="flex_one tr">
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
</el-form-item>
</el-form>
<el-row :gutter="10" class="mb8">
<el-col :span="1.5">
<el-button
type="primary"
plain
icon="el-icon-plus"
size="mini"
@click="handleAdd"
v-hasPermi="['model:AppletOutDate:add']"
>新增</el-button>
</el-col>
<el-col :span="1.5">
<el-button
type="success"
plain
icon="el-icon-edit"
size="mini"
:disabled="single"
@click="handleUpdate"
v-hasPermi="['model:AppletOutDate:edit']"
>修改</el-button>
</el-col>
<el-col :span="1.5">
<el-button
type="danger"
plain
icon="el-icon-delete"
size="mini"
:disabled="multiple"
@click="handleDelete"
v-hasPermi="['model:AppletOutDate:remove']"
>删除</el-button>
</el-col>
<el-col :span="1.5">
<el-button
type="warning"
plain
icon="el-icon-download"
size="mini"
:loading="exportLoading"
@click="handleExport"
v-hasPermi="['model:AppletOutDate:export']"
>导出</el-button>
</el-col>
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList" :columns="columns"></right-toolbar>
</el-row>
<el-table v-loading="loading" :data="AppletOutDateList" @selection-change="handleSelectionChange">
<el-table-column type="selection" width="55" align="center" />
<el-table-column label="日期" align="center" prop="date" width="180" v-if="columns[0].visible">
<template slot-scope="scope">
<span>{{ parseTime(scope.row.date, '')}}</span>
</template>
</el-table-column>
<el-table-column label="关联接单地址" align="center" prop="addressId" v-if="columns[1].visible"/>
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
<template slot-scope="scope">
<el-button
size="mini"
type="text"
icon="el-icon-edit"
@click="handleUpdate(scope.row)"
v-hasPermi="['model:AppletOutDate:edit']"
>修改</el-button>
<el-button
size="mini"
type="text"
icon="el-icon-delete"
@click="handleDelete(scope.row)"
v-hasPermi="['model:AppletOutDate:remove']"
>删除</el-button>
</template>
</el-table-column>
</el-table>
<pagination
v-show="total>0"
:total="total"
:page.sync="queryParams.pageNum"
:limit.sync="queryParams.pageSize"
@pagination="getList"
/>
<!-- 添加或修改不接单日期对话框 -->
<el-dialog :title="title" :visible.sync="open" width="50%" append-to-body>
<el-form ref="form" :model="form" :rules="rules" label-width="108px" inline class="dialog-form-two">
<el-form-item label="日期" prop="date">
<el-date-picker clearable size="small"
v-model="form.date"
type="datetime"
value-format="yyyy-MM-dd HH:mm:ss"
placeholder="选择日期">
</el-date-picker>
</el-form-item>
<el-form-item label="关联接单地址" prop="addressId">
<el-input v-model="form.addressId" placeholder="请输入关联接单地址" />
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button type="primary" @click="submitForm"> </el-button>
<el-button @click="cancel"> </el-button>
</div>
</el-dialog>
</div>
</template>
<script>
import { listAppletOutDate, getAppletOutDate, delAppletOutDate, addAppletOutDate, updateAppletOutDate, exportAppletOutDate } from "@/api/model/AppletOutDate";
export default {
name: "AppletOutDate",
data() {
return {
//
loading: true,
//
exportLoading: false,
//
ids: [],
//
single: true,
//
multiple: true,
//
showSearch: true,
//
total: 0,
//
AppletOutDateList: [],
//
title: "",
//
open: false,
//
queryParams: {
pageNum: 1,
pageSize: 10,
date: null,
addressId: null,
},
//
form: {},
//
rules: {
},
columns: [
{ key: 0, label: "日期", visible: true },
{ key: 1, label: "关联接单地址", visible: true },
],
};
},
created() {
this.getList();
},
methods: {
/** 查询不接单日期列表 */
getList() {
this.loading = true;
listAppletOutDate(this.queryParams).then(response => {
this.AppletOutDateList = response.rows;
this.total = response.total;
this.loading = false;
});
},
//
cancel() {
this.open = false;
this.reset();
},
//
reset() {
this.form = {
date: null,
addressId: null,
};
this.resetForm("form");
},
/** 搜索按钮操作 */
handleQuery() {
this.queryParams.pageNum = 1;
this.getList();
},
/** 重置按钮操作 */
resetQuery() {
this.resetForm("queryForm");
this.handleQuery();
},
//
handleSelectionChange(selection) {
this.ids = selection.map(item => item.date)
this.single = selection.length!==1
this.multiple = !selection.length
},
/** 新增按钮操作 */
handleAdd() {
this.reset();
this.open = true;
this.title = "添加不接单日期";
},
/** 修改按钮操作 */
handleUpdate(row) {
this.reset();
const date = row.date || this.ids
getAppletOutDate(date).then(response => {
this.form = response.data;
this.open = true;
this.title = "修改不接单日期";
});
},
/** 提交按钮 */
submitForm() {
this.$refs["form"].validate(valid => {
if (valid) {
if (this.form.date != null) {
updateAppletOutDate(this.form).then(response => {
this.$modal.msgSuccess("修改成功");
this.open = false;
this.getList();
});
} else {
addAppletOutDate(this.form).then(response => {
this.$modal.msgSuccess("新增成功");
this.open = false;
this.getList();
});
}
}
});
},
/** 删除按钮操作 */
handleDelete(row) {
const dates = row.date || this.ids;
this.$modal.confirm('是否确认删除不接单日期编号为"' + dates + '"的数据项?').then(function() {
return delAppletOutDate(dates);
}).then(() => {
this.getList();
this.$modal.msgSuccess("删除成功");
}).catch(() => {});
},
/** 导出按钮操作 */
handleExport() {
const queryParams = this.queryParams;
this.$modal.confirm('是否确认导出所有不接单日期数据项?').then(() => {
this.exportLoading = true;
return exportAppletOutDate(queryParams);
}).then(response => {
this.download(response.msg);
this.exportLoading = false;
}).catch(() => {});
}
}
};
</script>

+ 2
- 2
ruoyi-catdog/src/main/java/com/ruoyi/applet/contoller/ApiAppletHhrWorkInController.java View File

@ -71,7 +71,7 @@ public class ApiAppletHhrWorkInController extends BaseController {
// AppUsers localAppletUser = AppletUtil.getLocalAppletUser();
AppUsers localAppletUser = new AppUsers();
localAppletUser.setUserId(dto.getAppUserId());
localAppletUser.setUserHh(1);
localAppletUser.setUserHh(1L);
appUsersService.updateAppUsers(localAppletUser);
return AjaxResult.success("申请成功合伙人");
}
@ -82,7 +82,7 @@ public class ApiAppletHhrWorkInController extends BaseController {
// AppUsers localAppletUser = AppletUtil.getLocalAppletUser();
AppUsers localAppletUser = new AppUsers();
localAppletUser.setUserId(dto.getAppUserId());
localAppletUser.setUserBcs(1);
localAppletUser.setUserBcs(1L);
appUsersService.updateAppUsers(localAppletUser);
return AjaxResult.success("申请成功伴宠师");
}


+ 1
- 1
ruoyi-catdog/src/main/java/com/ruoyi/model/controller/AppUsersController.java View File

@ -26,7 +26,7 @@ import com.ruoyi.common.core.page.TableDataInfo;
* 用户Controller
*
* @author ruoyi
* @date 2025-03-08
* @date 2025-03-27
*/
@RestController
@RequestMapping("/model/AppUsers")


+ 104
- 0
ruoyi-catdog/src/main/java/com/ruoyi/model/controller/AppletAddressController.java View File

@ -0,0 +1,104 @@
package com.ruoyi.model.controller;
import java.io.IOException;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.model.domain.AppletAddress;
import com.ruoyi.model.service.IAppletAddressService;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* 地址信息Controller
*
* @author ruoyi
* @date 2025-03-27
*/
@RestController
@RequestMapping("/model/AppletAddress")
public class AppletAddressController extends BaseController
{
@Autowired
private IAppletAddressService appletAddressService;
/**
* 查询地址信息列表
*/
@PreAuthorize("@ss.hasPermi('model:AppletAddress:list')")
@GetMapping("/list")
public TableDataInfo list(AppletAddress appletAddress)
{
startPage();
List<AppletAddress> list = appletAddressService.selectAppletAddressList(appletAddress);
return getDataTable(list);
}
/**
* 导出地址信息列表
*/
@PreAuthorize("@ss.hasPermi('model:AppletAddress:export')")
@Log(title = "地址信息", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, AppletAddress appletAddress) throws IOException {
List<AppletAddress> list = appletAddressService.selectAppletAddressList(appletAddress);
ExcelUtil<AppletAddress> util = new ExcelUtil<AppletAddress>(AppletAddress.class);
util.exportExcel(response, list, "地址信息数据");
}
/**
* 获取地址信息详细信息
*/
@PreAuthorize("@ss.hasPermi('model:AppletAddress:query')")
@GetMapping(value = "/{area}")
public AjaxResult getInfo(@PathVariable("area") String area)
{
return success(appletAddressService.selectAppletAddressByArea(area));
}
/**
* 新增地址信息
*/
@PreAuthorize("@ss.hasPermi('model:AppletAddress:add')")
@Log(title = "地址信息", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody AppletAddress appletAddress)
{
return toAjax(appletAddressService.insertAppletAddress(appletAddress));
}
/**
* 修改地址信息
*/
@PreAuthorize("@ss.hasPermi('model:AppletAddress:edit')")
@Log(title = "地址信息", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody AppletAddress appletAddress)
{
return toAjax(appletAddressService.updateAppletAddress(appletAddress));
}
/**
* 删除地址信息
*/
@PreAuthorize("@ss.hasPermi('model:AppletAddress:remove')")
@Log(title = "地址信息", businessType = BusinessType.DELETE)
@DeleteMapping("/{areas}")
public AjaxResult remove(@PathVariable String[] areas)
{
return toAjax(appletAddressService.deleteAppletAddressByAreas(areas));
}
}

+ 104
- 0
ruoyi-catdog/src/main/java/com/ruoyi/model/controller/AppletConfigController.java View File

@ -0,0 +1,104 @@
package com.ruoyi.model.controller;
import java.io.IOException;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.model.domain.AppletConfig;
import com.ruoyi.model.service.IAppletConfigService;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* 配置信息Controller
*
* @author ruoyi
* @date 2025-03-27
*/
@RestController
@RequestMapping("/model/AppletConfig")
public class AppletConfigController extends BaseController
{
@Autowired
private IAppletConfigService appletConfigService;
/**
* 查询配置信息列表
*/
@PreAuthorize("@ss.hasPermi('model:AppletConfig:list')")
@GetMapping("/list")
public TableDataInfo list(AppletConfig appletConfig)
{
startPage();
List<AppletConfig> list = appletConfigService.selectAppletConfigList(appletConfig);
return getDataTable(list);
}
/**
* 导出配置信息列表
*/
@PreAuthorize("@ss.hasPermi('model:AppletConfig:export')")
@Log(title = "配置信息", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, AppletConfig appletConfig) throws IOException {
List<AppletConfig> list = appletConfigService.selectAppletConfigList(appletConfig);
ExcelUtil<AppletConfig> util = new ExcelUtil<AppletConfig>(AppletConfig.class);
util.exportExcel(response, list, "配置信息数据");
}
/**
* 获取配置信息详细信息
*/
@PreAuthorize("@ss.hasPermi('model:AppletConfig:query')")
@GetMapping(value = "/{paramCode}")
public AjaxResult getInfo(@PathVariable("paramCode") String paramCode)
{
return success(appletConfigService.selectAppletConfigByParamCode(paramCode));
}
/**
* 新增配置信息
*/
@PreAuthorize("@ss.hasPermi('model:AppletConfig:add')")
@Log(title = "配置信息", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody AppletConfig appletConfig)
{
return toAjax(appletConfigService.insertAppletConfig(appletConfig));
}
/**
* 修改配置信息
*/
@PreAuthorize("@ss.hasPermi('model:AppletConfig:edit')")
@Log(title = "配置信息", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody AppletConfig appletConfig)
{
return toAjax(appletConfigService.updateAppletConfig(appletConfig));
}
/**
* 删除配置信息
*/
@PreAuthorize("@ss.hasPermi('model:AppletConfig:remove')")
@Log(title = "配置信息", businessType = BusinessType.DELETE)
@DeleteMapping("/{paramCodes}")
public AjaxResult remove(@PathVariable String[] paramCodes)
{
return toAjax(appletConfigService.deleteAppletConfigByParamCodes(paramCodes));
}
}

+ 105
- 0
ruoyi-catdog/src/main/java/com/ruoyi/model/controller/AppletOutDateController.java View File

@ -0,0 +1,105 @@
package com.ruoyi.model.controller;
import java.io.IOException;
import java.util.Date;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.model.domain.AppletOutDate;
import com.ruoyi.model.service.IAppletOutDateService;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* 不接单日期Controller
*
* @author ruoyi
* @date 2025-03-27
*/
@RestController
@RequestMapping("/model/AppletOutDate")
public class AppletOutDateController extends BaseController
{
@Autowired
private IAppletOutDateService appletOutDateService;
/**
* 查询不接单日期列表
*/
@PreAuthorize("@ss.hasPermi('model:AppletOutDate:list')")
@GetMapping("/list")
public TableDataInfo list(AppletOutDate appletOutDate)
{
startPage();
List<AppletOutDate> list = appletOutDateService.selectAppletOutDateList(appletOutDate);
return getDataTable(list);
}
/**
* 导出不接单日期列表
*/
@PreAuthorize("@ss.hasPermi('model:AppletOutDate:export')")
@Log(title = "不接单日期", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, AppletOutDate appletOutDate) throws IOException {
List<AppletOutDate> list = appletOutDateService.selectAppletOutDateList(appletOutDate);
ExcelUtil<AppletOutDate> util = new ExcelUtil<AppletOutDate>(AppletOutDate.class);
util.exportExcel(response, list, "不接单日期数据");
}
/**
* 获取不接单日期详细信息
*/
@PreAuthorize("@ss.hasPermi('model:AppletOutDate:query')")
@GetMapping(value = "/{date}")
public AjaxResult getInfo(@PathVariable("date") Date date)
{
return success(appletOutDateService.selectAppletOutDateByDate(date));
}
/**
* 新增不接单日期
*/
@PreAuthorize("@ss.hasPermi('model:AppletOutDate:add')")
@Log(title = "不接单日期", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody AppletOutDate appletOutDate)
{
return toAjax(appletOutDateService.insertAppletOutDate(appletOutDate));
}
/**
* 修改不接单日期
*/
@PreAuthorize("@ss.hasPermi('model:AppletOutDate:edit')")
@Log(title = "不接单日期", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody AppletOutDate appletOutDate)
{
return toAjax(appletOutDateService.updateAppletOutDate(appletOutDate));
}
/**
* 删除不接单日期
*/
@PreAuthorize("@ss.hasPermi('model:AppletOutDate:remove')")
@Log(title = "不接单日期", businessType = BusinessType.DELETE)
@DeleteMapping("/{dates}")
public AjaxResult remove(@PathVariable Date[] dates)
{
return toAjax(appletOutDateService.deleteAppletOutDateByDates(dates));
}
}

+ 197
- 163
ruoyi-catdog/src/main/java/com/ruoyi/model/domain/AppUsers.java View File

@ -2,10 +2,7 @@ package com.ruoyi.model.domain;
import java.math.BigDecimal;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
@ -15,9 +12,8 @@ import com.ruoyi.common.core.domain.BaseEntity;
* 用户对象 app_users
*
* @author ruoyi
* @date 2025-03-08
* @date 2025-03-27
*/
@Data
public class AppUsers extends BaseEntity
{
private static final long serialVersionUID = 1L;
@ -36,12 +32,12 @@ public class AppUsers extends BaseEntity
@Excel(name = "用户头像")
private String userImage;
/** 用户称 */
@Excel(name = "用户称")
/** 用户称 */
@Excel(name = "用户称")
private String userName;
/** 用户状态, 0==为注册, 1==已注册为认证 */
@Excel(name = "用户状态, 0==为注册, 1==已注册为认证")
/** 用户状态 */
@Excel(name = "用户状态")
private Long userState;
/** 用户电话 */
@ -75,160 +71,198 @@ public class AppUsers extends BaseEntity
/** 是否合伙人 */
@Excel(name = "是否合伙人")
private Integer userHh;
private Long userHh;
/** 是否伴宠师 */
@Excel(name = "是否伴宠师")
private Integer userBcs;
@TableField(exist = false)
private Date recentlyPayTime;
@TableField(exist = false)
private BigDecimal accumulate_money = new BigDecimal(100) ;
@TableField(exist = false)
private BigDecimal reward_money = new BigDecimal(99) ;
// 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();
// }
private Long userBcs;
/** 钱包金额 */
@Excel(name = "钱包金额")
private BigDecimal price;
/** 邀请码 */
@Excel(name = "邀请码")
private String invitationCode;
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;
}
public void setUserHh(Long userHh)
{
this.userHh = userHh;
}
public Long getUserHh()
{
return userHh;
}
public void setUserBcs(Long userBcs)
{
this.userBcs = userBcs;
}
public Long getUserBcs()
{
return userBcs;
}
public void setPrice(BigDecimal price)
{
this.price = price;
}
public BigDecimal getPrice()
{
return price;
}
public void setInvitationCode(String invitationCode)
{
this.invitationCode = invitationCode;
}
public String getInvitationCode()
{
return invitationCode;
}
@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())
.append("userHh", getUserHh())
.append("userBcs", getUserBcs())
.append("price", getPrice())
.append("invitationCode", getInvitationCode())
.toString();
}
}

+ 110
- 0
ruoyi-catdog/src/main/java/com/ruoyi/model/domain/AppletAddress.java View File

@ -0,0 +1,110 @@
package com.ruoyi.model.domain;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
/**
* 地址信息对象 applet_address
*
* @author ruoyi
* @date 2025-03-27
*/
public class AppletAddress extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** 接单地址 */
@Excel(name = "接单地址")
private String area;
/** 详细地址 */
@Excel(name = "详细地址")
private String address;
/** 接单状态 */
@Excel(name = "接单状态")
private String status;
/** 接单范围 */
@Excel(name = "接单范围")
private String range;
/** $column.columnComment */
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
private Date outDate;
/** 关联用户id */
@Excel(name = "关联用户id")
private Long userId;
public void setArea(String area)
{
this.area = area;
}
public String getArea()
{
return area;
}
public void setAddress(String address)
{
this.address = address;
}
public String getAddress()
{
return address;
}
public void setStatus(String status)
{
this.status = status;
}
public String getStatus()
{
return status;
}
public void setRange(String range)
{
this.range = range;
}
public String getRange()
{
return range;
}
public void setOutDate(Date outDate)
{
this.outDate = outDate;
}
public Date getOutDate()
{
return outDate;
}
public void setUserId(Long userId)
{
this.userId = userId;
}
public Long getUserId()
{
return userId;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("area", getArea())
.append("address", getAddress())
.append("status", getStatus())
.append("range", getRange())
.append("outDate", getOutDate())
.append("userId", getUserId())
.toString();
}
}

+ 80
- 0
ruoyi-catdog/src/main/java/com/ruoyi/model/domain/AppletConfig.java View File

@ -0,0 +1,80 @@
package com.ruoyi.model.domain;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
/**
* 配置信息对象 applet_config
*
* @author ruoyi
* @date 2025-03-27
*/
public class AppletConfig extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** 参数编码 */
@Excel(name = "参数编码")
private String paramCode;
/** 参数值-普通文本 */
@Excel(name = "参数值-普通文本")
private String paramValueText;
/** 参数值-图片 */
@Excel(name = "参数值-图片")
private String paramValueImage;
/** 参数值-富文本 */
@Excel(name = "参数值-富文本")
private String paramValueArea;
public void setParamCode(String paramCode)
{
this.paramCode = paramCode;
}
public String getParamCode()
{
return paramCode;
}
public void setParamValueText(String paramValueText)
{
this.paramValueText = paramValueText;
}
public String getParamValueText()
{
return paramValueText;
}
public void setParamValueImage(String paramValueImage)
{
this.paramValueImage = paramValueImage;
}
public String getParamValueImage()
{
return paramValueImage;
}
public void setParamValueArea(String paramValueArea)
{
this.paramValueArea = paramValueArea;
}
public String getParamValueArea()
{
return paramValueArea;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("paramCode", getParamCode())
.append("paramValueText", getParamValueText())
.append("paramValueImage", getParamValueImage())
.append("paramValueArea", getParamValueArea())
.toString();
}
}

+ 55
- 0
ruoyi-catdog/src/main/java/com/ruoyi/model/domain/AppletOutDate.java View File

@ -0,0 +1,55 @@
package com.ruoyi.model.domain;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
/**
* 不接单日期对象 applet_out_date
*
* @author ruoyi
* @date 2025-03-27
*/
public class AppletOutDate extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** 日期 */
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "日期", width = 30, dateFormat = "yyyy-MM-dd")
private Date date;
/** 关联接单地址 */
@Excel(name = "关联接单地址")
private Long addressId;
public void setDate(Date date)
{
this.date = date;
}
public Date getDate()
{
return date;
}
public void setAddressId(Long addressId)
{
this.addressId = addressId;
}
public Long getAddressId()
{
return addressId;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("date", getDate())
.append("addressId", getAddressId())
.toString();
}
}

+ 1
- 10
ruoyi-catdog/src/main/java/com/ruoyi/model/mapper/AppUsersMapper.java View File

@ -7,7 +7,7 @@ import com.ruoyi.model.domain.AppUsers;
* 用户Mapper接口
*
* @author ruoyi
* @date 2025-03-08
* @date 2025-03-27
*/
public interface AppUsersMapper
{
@ -59,15 +59,6 @@ public interface AppUsersMapper
*/
public int deleteAppUsersByUserIds(Long[] userIds);
/**
* 根据微信标识查询用户信息
* @param openid


+ 61
- 0
ruoyi-catdog/src/main/java/com/ruoyi/model/mapper/AppletAddressMapper.java View File

@ -0,0 +1,61 @@
package com.ruoyi.model.mapper;
import java.util.List;
import com.ruoyi.model.domain.AppletAddress;
/**
* 地址信息Mapper接口
*
* @author ruoyi
* @date 2025-03-27
*/
public interface AppletAddressMapper
{
/**
* 查询地址信息
*
* @param area 地址信息主键
* @return 地址信息
*/
public AppletAddress selectAppletAddressByArea(String area);
/**
* 查询地址信息列表
*
* @param appletAddress 地址信息
* @return 地址信息集合
*/
public List<AppletAddress> selectAppletAddressList(AppletAddress appletAddress);
/**
* 新增地址信息
*
* @param appletAddress 地址信息
* @return 结果
*/
public int insertAppletAddress(AppletAddress appletAddress);
/**
* 修改地址信息
*
* @param appletAddress 地址信息
* @return 结果
*/
public int updateAppletAddress(AppletAddress appletAddress);
/**
* 删除地址信息
*
* @param area 地址信息主键
* @return 结果
*/
public int deleteAppletAddressByArea(String area);
/**
* 批量删除地址信息
*
* @param areas 需要删除的数据主键集合
* @return 结果
*/
public int deleteAppletAddressByAreas(String[] areas);
}

+ 61
- 0
ruoyi-catdog/src/main/java/com/ruoyi/model/mapper/AppletConfigMapper.java View File

@ -0,0 +1,61 @@
package com.ruoyi.model.mapper;
import java.util.List;
import com.ruoyi.model.domain.AppletConfig;
/**
* 配置信息Mapper接口
*
* @author ruoyi
* @date 2025-03-27
*/
public interface AppletConfigMapper
{
/**
* 查询配置信息
*
* @param paramCode 配置信息主键
* @return 配置信息
*/
public AppletConfig selectAppletConfigByParamCode(String paramCode);
/**
* 查询配置信息列表
*
* @param appletConfig 配置信息
* @return 配置信息集合
*/
public List<AppletConfig> selectAppletConfigList(AppletConfig appletConfig);
/**
* 新增配置信息
*
* @param appletConfig 配置信息
* @return 结果
*/
public int insertAppletConfig(AppletConfig appletConfig);
/**
* 修改配置信息
*
* @param appletConfig 配置信息
* @return 结果
*/
public int updateAppletConfig(AppletConfig appletConfig);
/**
* 删除配置信息
*
* @param paramCode 配置信息主键
* @return 结果
*/
public int deleteAppletConfigByParamCode(String paramCode);
/**
* 批量删除配置信息
*
* @param paramCodes 需要删除的数据主键集合
* @return 结果
*/
public int deleteAppletConfigByParamCodes(String[] paramCodes);
}

+ 62
- 0
ruoyi-catdog/src/main/java/com/ruoyi/model/mapper/AppletOutDateMapper.java View File

@ -0,0 +1,62 @@
package com.ruoyi.model.mapper;
import java.util.Date;
import java.util.List;
import com.ruoyi.model.domain.AppletOutDate;
/**
* 不接单日期Mapper接口
*
* @author ruoyi
* @date 2025-03-27
*/
public interface AppletOutDateMapper
{
/**
* 查询不接单日期
*
* @param date 不接单日期主键
* @return 不接单日期
*/
public AppletOutDate selectAppletOutDateByDate(Date date);
/**
* 查询不接单日期列表
*
* @param appletOutDate 不接单日期
* @return 不接单日期集合
*/
public List<AppletOutDate> selectAppletOutDateList(AppletOutDate appletOutDate);
/**
* 新增不接单日期
*
* @param appletOutDate 不接单日期
* @return 结果
*/
public int insertAppletOutDate(AppletOutDate appletOutDate);
/**
* 修改不接单日期
*
* @param appletOutDate 不接单日期
* @return 结果
*/
public int updateAppletOutDate(AppletOutDate appletOutDate);
/**
* 删除不接单日期
*
* @param date 不接单日期主键
* @return 结果
*/
public int deleteAppletOutDateByDate(Date date);
/**
* 批量删除不接单日期
*
* @param dates 需要删除的数据主键集合
* @return 结果
*/
public int deleteAppletOutDateByDates(Date[] dates);
}

+ 2
- 13
ruoyi-catdog/src/main/java/com/ruoyi/model/service/IAppUsersService.java View File

@ -7,7 +7,7 @@ import com.ruoyi.model.domain.AppUsers;
* 用户Service接口
*
* @author ruoyi
* @date 2025-03-08
* @date 2025-03-27
*/
public interface IAppUsersService
{
@ -59,16 +59,5 @@ public interface IAppUsersService
*/
public int deleteAppUsersByUserId(Long userId);
/**
* 根据微信标识查询用户信息
* @param openid
* @return
*/
public AppUsers selectAppUsersByOpenId(String openid);
// public int updateAppUsersByOpenId(AppUsers appUsers);
AppUsers selectAppUsersByOpenId(String wxOpenid);
}

+ 61
- 0
ruoyi-catdog/src/main/java/com/ruoyi/model/service/IAppletAddressService.java View File

@ -0,0 +1,61 @@
package com.ruoyi.model.service;
import java.util.List;
import com.ruoyi.model.domain.AppletAddress;
/**
* 地址信息Service接口
*
* @author ruoyi
* @date 2025-03-27
*/
public interface IAppletAddressService
{
/**
* 查询地址信息
*
* @param area 地址信息主键
* @return 地址信息
*/
public AppletAddress selectAppletAddressByArea(String area);
/**
* 查询地址信息列表
*
* @param appletAddress 地址信息
* @return 地址信息集合
*/
public List<AppletAddress> selectAppletAddressList(AppletAddress appletAddress);
/**
* 新增地址信息
*
* @param appletAddress 地址信息
* @return 结果
*/
public int insertAppletAddress(AppletAddress appletAddress);
/**
* 修改地址信息
*
* @param appletAddress 地址信息
* @return 结果
*/
public int updateAppletAddress(AppletAddress appletAddress);
/**
* 批量删除地址信息
*
* @param areas 需要删除的地址信息主键集合
* @return 结果
*/
public int deleteAppletAddressByAreas(String[] areas);
/**
* 删除地址信息信息
*
* @param area 地址信息主键
* @return 结果
*/
public int deleteAppletAddressByArea(String area);
}

+ 61
- 0
ruoyi-catdog/src/main/java/com/ruoyi/model/service/IAppletConfigService.java View File

@ -0,0 +1,61 @@
package com.ruoyi.model.service;
import java.util.List;
import com.ruoyi.model.domain.AppletConfig;
/**
* 配置信息Service接口
*
* @author ruoyi
* @date 2025-03-27
*/
public interface IAppletConfigService
{
/**
* 查询配置信息
*
* @param paramCode 配置信息主键
* @return 配置信息
*/
public AppletConfig selectAppletConfigByParamCode(String paramCode);
/**
* 查询配置信息列表
*
* @param appletConfig 配置信息
* @return 配置信息集合
*/
public List<AppletConfig> selectAppletConfigList(AppletConfig appletConfig);
/**
* 新增配置信息
*
* @param appletConfig 配置信息
* @return 结果
*/
public int insertAppletConfig(AppletConfig appletConfig);
/**
* 修改配置信息
*
* @param appletConfig 配置信息
* @return 结果
*/
public int updateAppletConfig(AppletConfig appletConfig);
/**
* 批量删除配置信息
*
* @param paramCodes 需要删除的配置信息主键集合
* @return 结果
*/
public int deleteAppletConfigByParamCodes(String[] paramCodes);
/**
* 删除配置信息信息
*
* @param paramCode 配置信息主键
* @return 结果
*/
public int deleteAppletConfigByParamCode(String paramCode);
}

+ 62
- 0
ruoyi-catdog/src/main/java/com/ruoyi/model/service/IAppletOutDateService.java View File

@ -0,0 +1,62 @@
package com.ruoyi.model.service;
import java.util.Date;
import java.util.List;
import com.ruoyi.model.domain.AppletOutDate;
/**
* 不接单日期Service接口
*
* @author ruoyi
* @date 2025-03-27
*/
public interface IAppletOutDateService
{
/**
* 查询不接单日期
*
* @param date 不接单日期主键
* @return 不接单日期
*/
public AppletOutDate selectAppletOutDateByDate(Date date);
/**
* 查询不接单日期列表
*
* @param appletOutDate 不接单日期
* @return 不接单日期集合
*/
public List<AppletOutDate> selectAppletOutDateList(AppletOutDate appletOutDate);
/**
* 新增不接单日期
*
* @param appletOutDate 不接单日期
* @return 结果
*/
public int insertAppletOutDate(AppletOutDate appletOutDate);
/**
* 修改不接单日期
*
* @param appletOutDate 不接单日期
* @return 结果
*/
public int updateAppletOutDate(AppletOutDate appletOutDate);
/**
* 批量删除不接单日期
*
* @param dates 需要删除的不接单日期主键集合
* @return 结果
*/
public int deleteAppletOutDateByDates(Date[] dates);
/**
* 删除不接单日期信息
*
* @param date 不接单日期主键
* @return 结果
*/
public int deleteAppletOutDateByDate(Date date);
}

+ 3
- 10
ruoyi-catdog/src/main/java/com/ruoyi/model/service/impl/AppUsersServiceImpl.java View File

@ -12,7 +12,7 @@ import com.ruoyi.model.service.IAppUsersService;
* 用户Service业务层处理
*
* @author ruoyi
* @date 2025-03-08
* @date 2025-03-27
*/
@Service
public class AppUsersServiceImpl implements IAppUsersService
@ -94,15 +94,8 @@ public class AppUsersServiceImpl implements IAppUsersService
return appUsersMapper.deleteAppUsersByUserId(userId);
}
/**
* 根据微信标识查询用户信息
* @param openid
* @return
*/
@Override
public AppUsers selectAppUsersByOpenId(String openid){
return appUsersMapper.selectAppUsersByOpenId(openid);
public AppUsers selectAppUsersByOpenId(String wxOpenid) {
return appUsersMapper.selectAppUsersByOpenId(wxOpenid);
}
}

+ 93
- 0
ruoyi-catdog/src/main/java/com/ruoyi/model/service/impl/AppletAddressServiceImpl.java View File

@ -0,0 +1,93 @@
package com.ruoyi.model.service.impl;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.model.mapper.AppletAddressMapper;
import com.ruoyi.model.domain.AppletAddress;
import com.ruoyi.model.service.IAppletAddressService;
/**
* 地址信息Service业务层处理
*
* @author ruoyi
* @date 2025-03-27
*/
@Service
public class AppletAddressServiceImpl implements IAppletAddressService
{
@Autowired
private AppletAddressMapper appletAddressMapper;
/**
* 查询地址信息
*
* @param area 地址信息主键
* @return 地址信息
*/
@Override
public AppletAddress selectAppletAddressByArea(String area)
{
return appletAddressMapper.selectAppletAddressByArea(area);
}
/**
* 查询地址信息列表
*
* @param appletAddress 地址信息
* @return 地址信息
*/
@Override
public List<AppletAddress> selectAppletAddressList(AppletAddress appletAddress)
{
return appletAddressMapper.selectAppletAddressList(appletAddress);
}
/**
* 新增地址信息
*
* @param appletAddress 地址信息
* @return 结果
*/
@Override
public int insertAppletAddress(AppletAddress appletAddress)
{
return appletAddressMapper.insertAppletAddress(appletAddress);
}
/**
* 修改地址信息
*
* @param appletAddress 地址信息
* @return 结果
*/
@Override
public int updateAppletAddress(AppletAddress appletAddress)
{
return appletAddressMapper.updateAppletAddress(appletAddress);
}
/**
* 批量删除地址信息
*
* @param areas 需要删除的地址信息主键
* @return 结果
*/
@Override
public int deleteAppletAddressByAreas(String[] areas)
{
return appletAddressMapper.deleteAppletAddressByAreas(areas);
}
/**
* 删除地址信息信息
*
* @param area 地址信息主键
* @return 结果
*/
@Override
public int deleteAppletAddressByArea(String area)
{
return appletAddressMapper.deleteAppletAddressByArea(area);
}
}

+ 93
- 0
ruoyi-catdog/src/main/java/com/ruoyi/model/service/impl/AppletConfigServiceImpl.java View File

@ -0,0 +1,93 @@
package com.ruoyi.model.service.impl;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.model.mapper.AppletConfigMapper;
import com.ruoyi.model.domain.AppletConfig;
import com.ruoyi.model.service.IAppletConfigService;
/**
* 配置信息Service业务层处理
*
* @author ruoyi
* @date 2025-03-27
*/
@Service
public class AppletConfigServiceImpl implements IAppletConfigService
{
@Autowired
private AppletConfigMapper appletConfigMapper;
/**
* 查询配置信息
*
* @param paramCode 配置信息主键
* @return 配置信息
*/
@Override
public AppletConfig selectAppletConfigByParamCode(String paramCode)
{
return appletConfigMapper.selectAppletConfigByParamCode(paramCode);
}
/**
* 查询配置信息列表
*
* @param appletConfig 配置信息
* @return 配置信息
*/
@Override
public List<AppletConfig> selectAppletConfigList(AppletConfig appletConfig)
{
return appletConfigMapper.selectAppletConfigList(appletConfig);
}
/**
* 新增配置信息
*
* @param appletConfig 配置信息
* @return 结果
*/
@Override
public int insertAppletConfig(AppletConfig appletConfig)
{
return appletConfigMapper.insertAppletConfig(appletConfig);
}
/**
* 修改配置信息
*
* @param appletConfig 配置信息
* @return 结果
*/
@Override
public int updateAppletConfig(AppletConfig appletConfig)
{
return appletConfigMapper.updateAppletConfig(appletConfig);
}
/**
* 批量删除配置信息
*
* @param paramCodes 需要删除的配置信息主键
* @return 结果
*/
@Override
public int deleteAppletConfigByParamCodes(String[] paramCodes)
{
return appletConfigMapper.deleteAppletConfigByParamCodes(paramCodes);
}
/**
* 删除配置信息信息
*
* @param paramCode 配置信息主键
* @return 结果
*/
@Override
public int deleteAppletConfigByParamCode(String paramCode)
{
return appletConfigMapper.deleteAppletConfigByParamCode(paramCode);
}
}

+ 94
- 0
ruoyi-catdog/src/main/java/com/ruoyi/model/service/impl/AppletOutDateServiceImpl.java View File

@ -0,0 +1,94 @@
package com.ruoyi.model.service.impl;
import java.util.Date;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.model.mapper.AppletOutDateMapper;
import com.ruoyi.model.domain.AppletOutDate;
import com.ruoyi.model.service.IAppletOutDateService;
/**
* 不接单日期Service业务层处理
*
* @author ruoyi
* @date 2025-03-27
*/
@Service
public class AppletOutDateServiceImpl implements IAppletOutDateService
{
@Autowired
private AppletOutDateMapper appletOutDateMapper;
/**
* 查询不接单日期
*
* @param date 不接单日期主键
* @return 不接单日期
*/
@Override
public AppletOutDate selectAppletOutDateByDate(Date date)
{
return appletOutDateMapper.selectAppletOutDateByDate(date);
}
/**
* 查询不接单日期列表
*
* @param appletOutDate 不接单日期
* @return 不接单日期
*/
@Override
public List<AppletOutDate> selectAppletOutDateList(AppletOutDate appletOutDate)
{
return appletOutDateMapper.selectAppletOutDateList(appletOutDate);
}
/**
* 新增不接单日期
*
* @param appletOutDate 不接单日期
* @return 结果
*/
@Override
public int insertAppletOutDate(AppletOutDate appletOutDate)
{
return appletOutDateMapper.insertAppletOutDate(appletOutDate);
}
/**
* 修改不接单日期
*
* @param appletOutDate 不接单日期
* @return 结果
*/
@Override
public int updateAppletOutDate(AppletOutDate appletOutDate)
{
return appletOutDateMapper.updateAppletOutDate(appletOutDate);
}
/**
* 批量删除不接单日期
*
* @param dates 需要删除的不接单日期主键
* @return 结果
*/
@Override
public int deleteAppletOutDateByDates(Date[] dates)
{
return appletOutDateMapper.deleteAppletOutDateByDates(dates);
}
/**
* 删除不接单日期信息
*
* @param date 不接单日期主键
* @return 结果
*/
@Override
public int deleteAppletOutDateByDate(Date date)
{
return appletOutDateMapper.deleteAppletOutDateByDate(date);
}
}

+ 21
- 8
ruoyi-catdog/src/main/resources/mapper/model/AppUsersMapper.xml View File

@ -22,10 +22,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result property="expiresIn" column="expires_in" />
<result property="refreshToken" column="refresh_token" />
<result property="expireTime" column="expire_time" />
<result property="userHh" column="user_hh" />
<result property="userBcs" column="user_bcs" />
<result property="price" column="price" />
<result property="invitationCode" column="invitation_code" />
</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
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, user_hh, user_bcs, price, invitation_code from app_users
</sql>
<select id="selectAppUsersList" parameterType="AppUsers" resultMap="AppUsersResult">
@ -42,6 +46,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<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>
<if test="userHh != null "> and user_hh = #{userHh}</if>
<if test="userBcs != null "> and user_bcs = #{userBcs}</if>
<if test="price != null "> and price = #{price}</if>
<if test="invitationCode != null and invitationCode != ''"> and invitation_code = #{invitationCode}</if>
</where>
</select>
@ -49,18 +57,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<include refid="selectAppUsersVo"/>
where user_id = #{userId}
</select>
<select id="selectAppUsersByOpenId" parameterType="String" resultMap="AppUsersResult">
<include refid="selectAppUsersVo"/>
where openid = #{openid}
</select>
<insert id="insertAppUsers" parameterType="AppUsers">
insert into app_users
<trim prefix="(" suffix=")" suffixOverrides=",">
@ -81,6 +82,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="expiresIn != null">expires_in,</if>
<if test="refreshToken != null">refresh_token,</if>
<if test="expireTime != null">expire_time,</if>
<if test="userHh != null">user_hh,</if>
<if test="userBcs != null">user_bcs,</if>
<if test="price != null">price,</if>
<if test="invitationCode != null">invitation_code,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="userId != null">#{userId},</if>
@ -100,6 +105,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="expiresIn != null">#{expiresIn},</if>
<if test="refreshToken != null">#{refreshToken},</if>
<if test="expireTime != null">#{expireTime},</if>
<if test="userHh != null">#{userHh},</if>
<if test="userBcs != null">#{userBcs},</if>
<if test="price != null">#{price},</if>
<if test="invitationCode != null">#{invitationCode},</if>
</trim>
</insert>
@ -122,6 +131,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="expiresIn != null">expires_in = #{expiresIn},</if>
<if test="refreshToken != null">refresh_token = #{refreshToken},</if>
<if test="expireTime != null">expire_time = #{expireTime},</if>
<if test="userHh != null">user_hh = #{userHh},</if>
<if test="userBcs != null">user_bcs = #{userBcs},</if>
<if test="price != null">price = #{price},</if>
<if test="invitationCode != null">invitation_code = #{invitationCode},</if>
</trim>
where user_id = #{userId}
</update>


+ 79
- 0
ruoyi-catdog/src/main/resources/mapper/model/AppletAddressMapper.xml View File

@ -0,0 +1,79 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.model.mapper.AppletAddressMapper">
<resultMap type="AppletAddress" id="AppletAddressResult">
<result property="area" column="area" />
<result property="address" column="address" />
<result property="status" column="status" />
<result property="range" column="range" />
<result property="outDate" column="out_date" />
<result property="userId" column="user_id" />
</resultMap>
<sql id="selectAppletAddressVo">
select area, address, status, range, out_date, user_id from applet_address
</sql>
<select id="selectAppletAddressList" parameterType="AppletAddress" resultMap="AppletAddressResult">
<include refid="selectAppletAddressVo"/>
<where>
<if test="area != null and area != ''"> and area = #{area}</if>
<if test="address != null and address != ''"> and address = #{address}</if>
<if test="status != null and status != ''"> and status = #{status}</if>
<if test="range != null and range != ''"> and range = #{range}</if>
<if test="outDate != null "> and out_date = #{outDate}</if>
<if test="userId != null "> and user_id = #{userId}</if>
</where>
</select>
<select id="selectAppletAddressByArea" parameterType="String" resultMap="AppletAddressResult">
<include refid="selectAppletAddressVo"/>
where area = #{area}
</select>
<insert id="insertAppletAddress" parameterType="AppletAddress">
insert into applet_address
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="area != null">area,</if>
<if test="address != null">address,</if>
<if test="status != null">status,</if>
<if test="range != null">range,</if>
<if test="outDate != null">out_date,</if>
<if test="userId != null">user_id,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="area != null">#{area},</if>
<if test="address != null">#{address},</if>
<if test="status != null">#{status},</if>
<if test="range != null">#{range},</if>
<if test="outDate != null">#{outDate},</if>
<if test="userId != null">#{userId},</if>
</trim>
</insert>
<update id="updateAppletAddress" parameterType="AppletAddress">
update applet_address
<trim prefix="SET" suffixOverrides=",">
<if test="address != null">address = #{address},</if>
<if test="status != null">status = #{status},</if>
<if test="range != null">range = #{range},</if>
<if test="outDate != null">out_date = #{outDate},</if>
<if test="userId != null">user_id = #{userId},</if>
</trim>
where area = #{area}
</update>
<delete id="deleteAppletAddressByArea" parameterType="String">
delete from applet_address where area = #{area}
</delete>
<delete id="deleteAppletAddressByAreas" parameterType="String">
delete from applet_address where area in
<foreach item="area" collection="array" open="(" separator="," close=")">
#{area}
</foreach>
</delete>
</mapper>

+ 69
- 0
ruoyi-catdog/src/main/resources/mapper/model/AppletConfigMapper.xml View File

@ -0,0 +1,69 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.model.mapper.AppletConfigMapper">
<resultMap type="AppletConfig" id="AppletConfigResult">
<result property="paramCode" column="param_code" />
<result property="paramValueText" column="param_value_text" />
<result property="paramValueImage" column="param_value_image" />
<result property="paramValueArea" column="param_value_area" />
</resultMap>
<sql id="selectAppletConfigVo">
select param_code, param_value_text, param_value_image, param_value_area from applet_config
</sql>
<select id="selectAppletConfigList" parameterType="AppletConfig" resultMap="AppletConfigResult">
<include refid="selectAppletConfigVo"/>
<where>
<if test="paramCode != null and paramCode != ''"> and param_code = #{paramCode}</if>
<if test="paramValueText != null and paramValueText != ''"> and param_value_text = #{paramValueText}</if>
<if test="paramValueImage != null and paramValueImage != ''"> and param_value_image = #{paramValueImage}</if>
<if test="paramValueArea != null and paramValueArea != ''"> and param_value_area = #{paramValueArea}</if>
</where>
</select>
<select id="selectAppletConfigByParamCode" parameterType="String" resultMap="AppletConfigResult">
<include refid="selectAppletConfigVo"/>
where param_code = #{paramCode}
</select>
<insert id="insertAppletConfig" parameterType="AppletConfig">
insert into applet_config
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="paramCode != null">param_code,</if>
<if test="paramValueText != null">param_value_text,</if>
<if test="paramValueImage != null">param_value_image,</if>
<if test="paramValueArea != null">param_value_area,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="paramCode != null">#{paramCode},</if>
<if test="paramValueText != null">#{paramValueText},</if>
<if test="paramValueImage != null">#{paramValueImage},</if>
<if test="paramValueArea != null">#{paramValueArea},</if>
</trim>
</insert>
<update id="updateAppletConfig" parameterType="AppletConfig">
update applet_config
<trim prefix="SET" suffixOverrides=",">
<if test="paramValueText != null">param_value_text = #{paramValueText},</if>
<if test="paramValueImage != null">param_value_image = #{paramValueImage},</if>
<if test="paramValueArea != null">param_value_area = #{paramValueArea},</if>
</trim>
where param_code = #{paramCode}
</update>
<delete id="deleteAppletConfigByParamCode" parameterType="String">
delete from applet_config where param_code = #{paramCode}
</delete>
<delete id="deleteAppletConfigByParamCodes" parameterType="String">
delete from applet_config where param_code in
<foreach item="paramCode" collection="array" open="(" separator="," close=")">
#{paramCode}
</foreach>
</delete>
</mapper>

+ 59
- 0
ruoyi-catdog/src/main/resources/mapper/model/AppletOutDateMapper.xml View File

@ -0,0 +1,59 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.model.mapper.AppletOutDateMapper">
<resultMap type="AppletOutDate" id="AppletOutDateResult">
<result property="date" column="date" />
<result property="addressId" column="address_id" />
</resultMap>
<sql id="selectAppletOutDateVo">
select date, address_id from applet_out_date
</sql>
<select id="selectAppletOutDateList" parameterType="AppletOutDate" resultMap="AppletOutDateResult">
<include refid="selectAppletOutDateVo"/>
<where>
<if test="date != null "> and date = #{date}</if>
<if test="addressId != null "> and address_id = #{addressId}</if>
</where>
</select>
<select id="selectAppletOutDateByDate" parameterType="Date" resultMap="AppletOutDateResult">
<include refid="selectAppletOutDateVo"/>
where date = #{date}
</select>
<insert id="insertAppletOutDate" parameterType="AppletOutDate">
insert into applet_out_date
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="date != null">date,</if>
<if test="addressId != null">address_id,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="date != null">#{date},</if>
<if test="addressId != null">#{addressId},</if>
</trim>
</insert>
<update id="updateAppletOutDate" parameterType="AppletOutDate">
update applet_out_date
<trim prefix="SET" suffixOverrides=",">
<if test="addressId != null">address_id = #{addressId},</if>
</trim>
where date = #{date}
</update>
<delete id="deleteAppletOutDateByDate" parameterType="Date">
delete from applet_out_date where date = #{date}
</delete>
<delete id="deleteAppletOutDateByDates" parameterType="String">
delete from applet_out_date where date in
<foreach item="date" collection="array" open="(" separator="," close=")">
#{date}
</foreach>
</delete>
</mapper>

Loading…
Cancel
Save