|
@@ -25,7 +25,7 @@ import (
|
|
|
// QueryUserESignRecord 查询用户电子签记录表
|
|
// QueryUserESignRecord 查询用户电子签记录表
|
|
|
func QueryUserESignRecord(userId int) (rsp []account.Useresignrecord, err error) {
|
|
func QueryUserESignRecord(userId int) (rsp []account.Useresignrecord, err error) {
|
|
|
rsp = make([]account.Useresignrecord, 0)
|
|
rsp = make([]account.Useresignrecord, 0)
|
|
|
- if err = global.M2A_DB.Where("USERID = ?", userId).Find(&rsp); err != nil {
|
|
|
|
|
|
|
+ if err = global.M2A_DB.Where("USERID = ?", userId).OrderBy("ORDERINDEX").Find(&rsp); err != nil {
|
|
|
return
|
|
return
|
|
|
}
|
|
}
|
|
|
for i := range rsp {
|
|
for i := range rsp {
|