|
@@ -3,10 +3,11 @@ package model
|
|
|
import (
|
|
import (
|
|
|
"database/sql"
|
|
"database/sql"
|
|
|
"fmt"
|
|
"fmt"
|
|
|
- "github.com/xormplus/xorm"
|
|
|
|
|
"strings"
|
|
"strings"
|
|
|
"time"
|
|
"time"
|
|
|
|
|
|
|
|
|
|
+ "github.com/xormplus/xorm"
|
|
|
|
|
+
|
|
|
"git.i2edu.net/i2/go-zero/core/stores/sqlc"
|
|
"git.i2edu.net/i2/go-zero/core/stores/sqlc"
|
|
|
"git.i2edu.net/i2/go-zero/core/stores/sqlx"
|
|
"git.i2edu.net/i2/go-zero/core/stores/sqlx"
|
|
|
"git.i2edu.net/i2/go-zero/core/stringx"
|
|
"git.i2edu.net/i2/go-zero/core/stringx"
|
|
@@ -115,6 +116,7 @@ func (m *defaultI2billMktPartTimeUserModel) Delete(id int64) error {
|
|
|
func GetPartTimeXormByUserId(userId int64, engine *xorm.Engine) (*I2billMktPartTimeXorm, error) {
|
|
func GetPartTimeXormByUserId(userId int64, engine *xorm.Engine) (*I2billMktPartTimeXorm, error) {
|
|
|
partUser := new(I2billMktPartTimeXorm)
|
|
partUser := new(I2billMktPartTimeXorm)
|
|
|
_, err := engine.SQL("select * from i2bill_mkt_part_time_user where del_flag = 0 and check_state = 57 and user_id = ?", userId).Get(partUser)
|
|
_, err := engine.SQL("select * from i2bill_mkt_part_time_user where del_flag = 0 and check_state = 57 and user_id = ?", userId).Get(partUser)
|
|
|
|
|
+ fmt.Println("----------", err)
|
|
|
if err != nil {
|
|
if err != nil {
|
|
|
return nil, err
|
|
return nil, err
|
|
|
}
|
|
}
|