...
|
...
|
@@ -78,7 +78,7 @@ func DeleteUserPosition(id int) (err error) { |
|
|
func GetUserPositions(id int64, companyId int64, v interface{}) (err error) {
|
|
|
o := orm.NewOrm()
|
|
|
sql := `
|
|
|
select a.position_id,b.name,b.relation,b.create_at
|
|
|
select a.position_id,b.name,b.relation,b.create_at create_time
|
|
|
from user_position a INNER JOIN position b on a.position_id = b.id
|
|
|
where a.user_company_id =? and a.company_id =? and a.enable_status =1 and b.enable_status =1`
|
|
|
if _, err = o.Raw(sql, id, companyId).QueryRows(v); err == nil {
|
...
|
...
|
|