|
@@ -134,7 +134,7 @@ func (u *User) UpdateInfo(mail string, phone string, name string, userId, deptId
|
|
ok := Mysql.ExecTx("修改员工", func(tx *sql.Tx) bool {
|
|
ok := Mysql.ExecTx("修改员工", func(tx *sql.Tx) bool {
|
|
ok_1 := Mysql.UpdateOrDeleteBySqlByTx(tx, `update entniche_user set mail=?,phone=?,name=?,timestamp=? where id=? and ent_id=?`, mail, phone, name, qutil.NowFormat(qutil.Date_Full_Layout), userId, entId)
|
|
ok_1 := Mysql.UpdateOrDeleteBySqlByTx(tx, `update entniche_user set mail=?,phone=?,name=?,timestamp=? where id=? and ent_id=?`, mail, phone, name, qutil.NowFormat(qutil.Date_Full_Layout), userId, entId)
|
|
- ok_2 := Mysql.UpdateOrDeleteBySqlByTx(tx,"update entniche_info set admin=?,phone=? where id=?",name,entPhone,entId)
|
|
|
|
|
|
+ ok_2 := Mysql.UpdateOrDeleteBySqlByTx(tx,"update entniche_info set admin=?,phone=? where id=?",name,phone,entId)
|
|
ok_3 := VarUser.Move(tx, entId, deptId, fmt.Sprint(userId))
|
|
ok_3 := VarUser.Move(tx, entId, deptId, fmt.Sprint(userId))
|