Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gxpt_ht
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
pseer
gxpt_ht
Commits
c490ed73
Commit
c490ed73
authored
Nov 28, 2024
by
YG8429
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
用户管理添加分配客服功能
parent
1bd2829f
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
115 additions
and
3 deletions
+115
-3
SCleanConsumerController.java
...share/web/controller/system/SCleanConsumerController.java
+15
-0
SConsumerController.java
...java/share/web/controller/system/SConsumerController.java
+25
-2
SConsumer.java
...e-system/src/main/java/share/system/domain/SConsumer.java
+11
-0
SConsumerMapper.java
...em/src/main/java/share/system/mapper/SConsumerMapper.java
+2
-0
SConsumerService.java
.../src/main/java/share/system/service/SConsumerService.java
+4
-0
SConsumerServiceImpl.java
.../java/share/system/service/impl/SConsumerServiceImpl.java
+16
-1
SConsumerMapper.xml
...stem/src/main/resources/mapper/system/SConsumerMapper.xml
+42
-0
No files found.
share-admin/src/main/java/share/web/controller/system/SCleanConsumerController.java
View file @
c490ed73
...
...
@@ -99,4 +99,19 @@ public class SCleanConsumerController extends BaseController
{
return
toAjax
(
sConsumerService
.
deleteCleanConsumerByIds
(
ids
));
}
/**
* 查询店员用户列表
*/
// @PreAuthorize("@ss.hasPermi('system:cleanConsumer:list')")
@GetMapping
(
"/query"
)
public
TableDataInfo
query
(
SConsumer
sConsumer
)
{
// sConsumer.setRoleType(RoleTypeEnum.CLEANER.getCode());
startPage
();
List
<
SConsumer
>
list
=
sConsumerService
.
selectSConsumerList
(
sConsumer
);
return
getDataTable
(
list
);
}
}
share-admin/src/main/java/share/web/controller/system/SConsumerController.java
View file @
c490ed73
...
...
@@ -8,6 +8,7 @@ import share.common.core.controller.BaseController;
import
share.common.core.domain.AjaxResult
;
import
share.common.core.page.TableDataInfo
;
import
share.common.enums.BusinessType
;
import
share.common.enums.RoleTypeEnum
;
import
share.common.utils.poi.ExcelUtil
;
import
share.system.domain.SConsumer
;
import
share.system.domain.vo.SConsumerVo
;
...
...
@@ -49,9 +50,11 @@ public class SConsumerController extends BaseController
*/
// @PreAuthorize("@ss.hasPermi('system:consumer:list')")
@GetMapping
(
"/selectConsumernotById"
)
public
TableDataInfo
selectConsumernotById
(
SConsumer
Vo
sConsumer
)
public
TableDataInfo
selectConsumernotById
(
SConsumer
sConsumer
)
{
return
sConsumerService
.
selectConsumernotById
(
sConsumer
);
sConsumer
.
setRoleType
(
RoleTypeEnum
.
CLEANER
.
getCode
());
List
<
SConsumer
>
list
=
sConsumerService
.
selectConsumerList
(
sConsumer
);
return
getDataTable
(
list
);
}
...
...
@@ -123,4 +126,24 @@ public class SConsumerController extends BaseController
public
AjaxResult
giveNumber
(
@RequestBody
SConsumer
sConsumer
)
{
return
toAjax
(
sConsumerService
.
giveNumber
(
sConsumer
));
}
/*
查询用户列表
*/
@GetMapping
(
"/selectConsumerList"
)
public
TableDataInfo
selectConsumerList
(
SConsumer
sConsumer
)
{
sConsumer
.
setRoleType
(
RoleTypeEnum
.
CLEANER
.
getCode
());
List
<
SConsumer
>
list
=
sConsumerService
.
selectConsumerList
(
sConsumer
);
return
getDataTable
(
list
);
}
/**
* 分配客服
*/
@PostMapping
(
"/updateCustomerId"
)
public
AjaxResult
updateCustomerId
(
@RequestBody
SConsumer
sConsumer
)
{
return
toAjax
(
sConsumerService
.
updateCustomerId
(
sConsumer
));
}
}
share-system/src/main/java/share/system/domain/SConsumer.java
View file @
c490ed73
...
...
@@ -117,4 +117,15 @@ public class SConsumer implements Serializable
@TableField
(
exist
=
false
)
private
Integer
officialAccount
;
private
String
newNickName
;
private
Long
customerId
;
private
Integer
isRecharge
;
private
Integer
isRights
;
}
share-system/src/main/java/share/system/mapper/SConsumerMapper.java
View file @
c490ed73
...
...
@@ -69,4 +69,6 @@ public interface SConsumerMapper extends BaseMapper<SConsumer>
List
<
SConsumer
>
selectListByStoreId
(
Long
storeId
);
boolean
unbind
(
SConsumer
request
);
List
<
SConsumer
>
selectConsumerList
(
SConsumer
sConsumer
);
}
share-system/src/main/java/share/system/service/SConsumerService.java
View file @
c490ed73
...
...
@@ -133,4 +133,8 @@ public interface SConsumerService extends IService<SConsumer>
TableDataInfo
selectConsumernotById
(
SConsumerVo
sConsumer
);
int
giveNumber
(
SConsumer
sConsumer
);
int
updateCustomerId
(
SConsumer
sConsumer
);
List
<
SConsumer
>
selectConsumerList
(
SConsumer
sConsumer
);
}
share-system/src/main/java/share/system/service/impl/SConsumerServiceImpl.java
View file @
c490ed73
...
...
@@ -390,7 +390,7 @@ public class SConsumerServiceImpl extends ServiceImpl<SConsumerMapper, SConsumer
@Override
public
int
giveNumber
(
SConsumer
sConsumer
)
{
SConsumer
byId
=
sConsumerService
.
get
ById
(
sConsumer
.
getId
());
SConsumer
byId
=
sConsumerService
.
selectSConsumer
ById
(
sConsumer
.
getId
());
byId
.
setPrizeDrawNumbr
(
byId
.
getPrizeDrawNumbr
()
+
sConsumer
.
getPrizeDrawNumbr
());
if
(
sConsumerService
.
updateById
(
byId
))
{
return
1
;
...
...
@@ -398,6 +398,21 @@ public class SConsumerServiceImpl extends ServiceImpl<SConsumerMapper, SConsumer
return
0
;
}
@Override
public
List
<
SConsumer
>
selectConsumerList
(
SConsumer
sConsumer
)
{
return
baseMapper
.
selectConsumerList
(
sConsumer
);
}
@Override
public
int
updateCustomerId
(
SConsumer
sConsumer
)
{
SConsumer
byId
=
sConsumerService
.
selectSConsumerById
(
sConsumer
.
getId
());
byId
.
setCustomerId
(
sConsumer
.
getCustomerId
());
if
(
sConsumerService
.
updateById
(
byId
))
{
return
1
;
}
return
0
;
}
@Override
public
int
addCleanConsumer
(
SConsumer
sConsumer
)
{
...
...
share-system/src/main/resources/mapper/system/SConsumerMapper.xml
View file @
c490ed73
...
...
@@ -29,6 +29,11 @@
<result
property=
"position"
column=
"position"
/>
<result
property=
"textMessage"
column=
"text_message"
/>
<result
property=
"officialAccount"
column=
"official_account"
/>
<result
property=
"newNickName"
column=
"new_nick_name"
/>
<result
property=
"isRecharge"
column=
"is_recharge"
/>
<result
property=
"isRights"
column=
"is_rights"
/>
<result
property=
"customerId"
column=
"customer_id"
/>
</resultMap>
<sql
id=
"selectSConsumerVo"
>
...
...
@@ -225,4 +230,40 @@
#{id}
</foreach>
</delete>
<select
id=
"selectConsumerList"
parameterType=
"SConsumer"
resultMap=
"SConsumerResult"
>
select t1.id,
t1.account,
t1.nick_name,
t1.avatar,
t1.phone,
t1.level,
t1.role_type,
t1.sex,
t1.prize_draw_numbr,
t1.addres,
t1.amount,
t1.free_amount,
t1.total_times,
t1.duration,
t1.status,
t1.pwd,
t1.create_time,
t1.last_login_time,
t1.numberplate,
t2.nick_name as new_nick_name,
t3.is_recharge,
t3.is_rights
from sharedb.s_consumer t1
left join sharedb.s_consumer t2 on t1.customer_id = t2.id
left join sharedb.s_consumer_member t3 on t1.id = t3.consumer_id
<where>
<if
test=
"roleType != null "
>
and t1.role_type = #{roleType}
</if>
<if
test=
"nickName != null and nickName != ''"
>
and t1.nick_name like concat('%', #{nickName}, '%')
</if>
<if
test=
"phone != null "
>
and t1.phone = #{phone}
</if>
<if
test=
"sex != null "
>
and t1.sex = #{sex}
</if>
<if
test=
"isRecharge != null "
>
and t3.is_recharge = #{isRecharge}
</if>
<if
test=
"isRights != null "
>
and t3.is_rights = #{isRights}
</if>
</where>
</select>
</mapper>
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment