|
@@ -23,7 +23,7 @@ type UserReadRecordController struct {
|
|
|
|
|
|
|
|
|
|
|
|
-
|
|
|
+
|
|
|
|
|
|
|
|
|
|
|
@@ -45,7 +45,7 @@ func (this *UserReadRecordController) List() {
|
|
|
pageSize, _ := this.GetInt("PageSize")
|
|
|
currentIndex, _ := this.GetInt("CurrentIndex")
|
|
|
sellerIdStr := this.GetString("SellerId")
|
|
|
- status := this.GetString("Status")
|
|
|
+ status, _ := this.GetInt("Status")
|
|
|
keyWord := this.GetString("KeyWord")
|
|
|
IsRegistered := this.GetString("IsRegisterd")
|
|
|
IsSubscribed := this.GetString("IsSubscribed")
|
|
@@ -113,16 +113,13 @@ func (this *UserReadRecordController) List() {
|
|
|
}
|
|
|
|
|
|
switch status {
|
|
|
- case "禁用":
|
|
|
+ case utils.UserStatusNo:
|
|
|
condition += " AND u.status=? "
|
|
|
pars = append(pars, 0)
|
|
|
- case "潜在":
|
|
|
- condition += " AND u.status=? "
|
|
|
- pars = append(pars, 1)
|
|
|
- case "正式":
|
|
|
+ case utils.UserStatusFormal:
|
|
|
condition += " AND u.status=? "
|
|
|
pars = append(pars, 2)
|
|
|
- case "":
|
|
|
+ default:
|
|
|
condition += " AND (u.status=? OR u.status=?) "
|
|
|
pars = append(pars, 0, 2)
|
|
|
}
|