|
@@ -22,6 +22,7 @@ type UserAdminShareHistoryController struct {
|
|
|
// @Param EndDate query string false "结束时间,列如2021-03-06 "
|
|
|
// @Param AdminId query string false "销售ID "
|
|
|
// @Param KeyWord query string false "搜索关键词"
|
|
|
+// @Param Action query string false "用户行为"
|
|
|
// @Success Ret=200 {object} cygx.GetCygxUserAdminShareHistoryListResp
|
|
|
// @router /mfyx/admin/share/list [get]
|
|
|
func (this *UserAdminShareHistoryController) OrderList() {
|
|
@@ -44,6 +45,7 @@ func (this *UserAdminShareHistoryController) OrderList() {
|
|
|
endDate := this.GetString("EndDate")
|
|
|
adminId := this.GetString("AdminId")
|
|
|
keyWord := this.GetString("KeyWord")
|
|
|
+ action := this.GetString("Action")
|
|
|
|
|
|
var startSize int
|
|
|
if pageSize <= 0 {
|
|
@@ -67,6 +69,12 @@ func (this *UserAdminShareHistoryController) OrderList() {
|
|
|
condition += ` AND share_id IN (` + adminId + `) `
|
|
|
}
|
|
|
|
|
|
+ //用户行为搜索
|
|
|
+ if action == "查看专栏" || action == "查看报告" || action == "查看活动" || action == "注册" {
|
|
|
+ condition += " AND action = ? "
|
|
|
+ pars = append(pars, action)
|
|
|
+ }
|
|
|
+
|
|
|
//如果不是权益管理员和admin,就做可见权限限制
|
|
|
if sysUser.RoleTypeCode != utils.ROLE_TYPE_CODE_RAI_ADMIN && sysUser.RoleTypeCode != utils.ROLE_TYPE_CODE_ADMIN {
|
|
|
condition += ` AND share_id IN (` + strconv.Itoa(sysUser.AdminId) + `) `
|