diff --git a/ruoyi-system/src/main/resources/mapper/system/CooperateMapper.xml b/ruoyi-system/src/main/resources/mapper/system/CooperateMapper.xml index c37bb29..c1b9539 100644 --- a/ruoyi-system/src/main/resources/mapper/system/CooperateMapper.xml +++ b/ruoyi-system/src/main/resources/mapper/system/CooperateMapper.xml @@ -25,10 +25,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" and uid = #{uid} - and company = #{company} + and company like concat('%', #{company}, '%') and name like concat('%', #{name}, '%') and phone = #{phone} - and address = #{address} + and address like concat('%', #{address}, '%') and info = #{info} and status = #{status} and created_at = #{createdAt} diff --git a/ruoyi-system/src/main/resources/mapper/system/MobileMiddleMapper.xml b/ruoyi-system/src/main/resources/mapper/system/MobileMiddleMapper.xml index 4339ba3..01e338a 100644 --- a/ruoyi-system/src/main/resources/mapper/system/MobileMiddleMapper.xml +++ b/ruoyi-system/src/main/resources/mapper/system/MobileMiddleMapper.xml @@ -20,9 +20,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" - and phone = #{phone} - and province_id = #{provinceId} - and city_id = #{cityId} + and phone like concat('%', #{phone}, '%') + and province_id like concat('%', #{provinceId}, '%') + and city_id like concat('%', #{cityId}, '%') and created_at = #{createdAt} and updated_at = #{updatedAt} diff --git a/ruoyi-system/src/main/resources/mapper/system/ServiceGoodsMapper.xml b/ruoyi-system/src/main/resources/mapper/system/ServiceGoodsMapper.xml index c08b929..d1cf22c 100644 --- a/ruoyi-system/src/main/resources/mapper/system/ServiceGoodsMapper.xml +++ b/ruoyi-system/src/main/resources/mapper/system/ServiceGoodsMapper.xml @@ -49,7 +49,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" and price BETWEEN #{maxPrice} AND #{maxPrice} - and createdAt BETWEEN #{createdStart} AND #{createdEnd} + and created_at BETWEEN #{createdStart} AND #{createdEnd} and cate_id = #{cateId} and type = #{type} diff --git a/ruoyi-system/src/main/resources/mapper/system/WorkerApplyMapper.xml b/ruoyi-system/src/main/resources/mapper/system/WorkerApplyMapper.xml index 8569638..83ba179 100644 --- a/ruoyi-system/src/main/resources/mapper/system/WorkerApplyMapper.xml +++ b/ruoyi-system/src/main/resources/mapper/system/WorkerApplyMapper.xml @@ -38,8 +38,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" and uid = #{uid} and name like concat('%', #{name}, '%') - and phone = #{phone} - and address = #{address} + and phone like concat('%', #{phone}, '%') + and address like concat('%', #{address}, '%') and card_no = #{cardNo} and skill_id = #{skillId} and card_avatar = #{cardAvatar} diff --git a/ruoyi-ui/src/api/system/Cooperate.js b/ruoyi-ui/src/api/system/Cooperate.js index 043a963..c2d6856 100644 --- a/ruoyi-ui/src/api/system/Cooperate.js +++ b/ruoyi-ui/src/api/system/Cooperate.js @@ -20,6 +20,13 @@ export function changetypeStatus(id, status) { data: data }) } +// 获取接单记录列表 +export function getUserDataList(type) { + return request({ + url: '/system/transfer/getUsersDataList/'+type, + method: 'get' + }) +} // 查询企业合作详细 export function getCooperate(id) { return request({ diff --git a/ruoyi-ui/src/api/system/UserAddress.js b/ruoyi-ui/src/api/system/UserAddress.js index 7ae1ca2..7e0d810 100644 --- a/ruoyi-ui/src/api/system/UserAddress.js +++ b/ruoyi-ui/src/api/system/UserAddress.js @@ -25,7 +25,14 @@ export function addUserAddress(data) { data: data }) } - +// 获取接单记录列表 +export function getUserDataList(type) { + return request({ + url: '/system/transfer/getUsersDataList/'+type, + method: 'get' + }) +} +// 查询企业合 // 修改用户收货地址 export function updateUserAddress(data) { return request({ diff --git a/ruoyi-ui/src/api/system/WorkerApply.js b/ruoyi-ui/src/api/system/WorkerApply.js index 7e68648..e19e784 100644 --- a/ruoyi-ui/src/api/system/WorkerApply.js +++ b/ruoyi-ui/src/api/system/WorkerApply.js @@ -25,7 +25,13 @@ export function addWorkerApply(data) { data: data }) } - +// 获取接单记录列表 +export function getUserDataList(type) { + return request({ + url: '/system/transfer/getUsersDataList/'+type, + method: 'get' + }) +} // 修改师傅申请记录 export function updateWorkerApply(data) { return request({ diff --git a/ruoyi-ui/src/api/system/users.js b/ruoyi-ui/src/api/system/users.js new file mode 100644 index 0000000..4c1b29e --- /dev/null +++ b/ruoyi-ui/src/api/system/users.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询用户列表列表 +export function listUsers(query) { + return request({ + url: '/system/users/list', + method: 'get', + params: query + }) +} + +// 查询用户列表详细 +export function getUsers(id) { + return request({ + url: '/system/users/' + id, + method: 'get' + }) +} + +// 新增用户列表 +export function addUsers(data) { + return request({ + url: '/system/users', + method: 'post', + data: data + }) +} + +// 修改用户列表 +export function updateUsers(data) { + return request({ + url: '/system/users', + method: 'put', + data: data + }) +} + +// 删除用户列表 +export function delUsers(id) { + return request({ + url: '/system/users/' + id, + method: 'delete' + }) +} diff --git a/ruoyi-ui/src/views/system/Cooperate/index.vue b/ruoyi-ui/src/views/system/Cooperate/index.vue index 384e72a..84bc4cd 100644 --- a/ruoyi-ui/src/views/system/Cooperate/index.vue +++ b/ruoyi-ui/src/views/system/Cooperate/index.vue @@ -2,12 +2,9 @@
- + + + + + diff --git a/ruoyi-ui/src/views/system/UserAddress/index.vue b/ruoyi-ui/src/views/system/UserAddress/index.vue index 196d8a3..ce0dd15 100644 --- a/ruoyi-ui/src/views/system/UserAddress/index.vue +++ b/ruoyi-ui/src/views/system/UserAddress/index.vue @@ -2,12 +2,9 @@
- + + + - - - - - - - + + + + + 搜索 重置 @@ -103,18 +95,22 @@ - + - - + + + + - + @@ -174,6 +170,15 @@ + + + {{dict.label}} + + diff --git a/ruoyi-ui/src/views/system/WorkerApply/index.vue b/ruoyi-ui/src/views/system/WorkerApply/index.vue index 2bb884d..313fb2e 100644 --- a/ruoyi-ui/src/views/system/WorkerApply/index.vue +++ b/ruoyi-ui/src/views/system/WorkerApply/index.vue @@ -1,6 +1,12 @@