...
|
...
|
@@ -231,7 +231,10 @@ func (d *StaffAssessDao) SearchUserAssessContent(param SearchConditin1) ([]UserA |
|
|
//limit int, 分页条数
|
|
|
//offset int 分页偏移
|
|
|
func (d *StaffAssessDao) CountUserAssess(param SearchConditin1) (int, error) {
|
|
|
sqlStr := ` select count(*) from t_staff_assess_1 where 1=1 `
|
|
|
sqlStr := ` select
|
|
|
count( distinct t_staff_assess_1.target_user_id) cnt
|
|
|
from t_staff_assess_1
|
|
|
where 1=1 `
|
|
|
condition := []interface{}{}
|
|
|
if len(param.TargetUserName) > 0 {
|
|
|
sqlStr += ` and t_staff_assess_1.target_user_name like ? `
|
...
|
...
|
|