作者 tangxvhui

Merge branch 'test'

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