forked from free-lancers/electricity_bill_calc_service
feat(report):完成峰谷用户抄表Excel导出功能。
This commit is contained in:
@@ -38,3 +38,12 @@ func (_EndUserService) SearchEndUserRecord(reportId, keyword string, page int) (
|
||||
Find(&endUsers)
|
||||
return endUsers, total, err
|
||||
}
|
||||
|
||||
func (_EndUserService) AllEndUserRecord(reportId string) ([]model.EndUserDetail, error) {
|
||||
users := make([]model.EndUserDetail, 0)
|
||||
err := global.DBConn.
|
||||
Where(builder.Eq{"report_id": reportId}).
|
||||
Asc("seq").
|
||||
Find(&users)
|
||||
return users, err
|
||||
}
|
||||
|
Reference in New Issue
Block a user