|
@@ -126,7 +126,7 @@ func (u *User) Del(entId int, ids string) bool {
|
|
if Mysql.ExecTx("员工删除", func(tx *sql.Tx) bool {
|
|
if Mysql.ExecTx("员工删除", func(tx *sql.Tx) bool {
|
|
ok1 := Mysql.UpdateOrDeleteBySqlByTx(tx, `delete a,b,c from entniche_user a left join entniche_user_role b on (a.id=b.user_id)
|
|
ok1 := Mysql.UpdateOrDeleteBySqlByTx(tx, `delete a,b,c from entniche_user a left join entniche_user_role b on (a.id=b.user_id)
|
|
left join entniche_department_user c on (a.id=c.user_id)
|
|
left join entniche_department_user c on (a.id=c.user_id)
|
|
- where a.id IN (`+ws+`) AND IFNULL(b.role_id,0)<>1 AND a.ent_id=?`, args...) > 0
|
|
|
|
|
|
+ where a.id IN (`+ws+`) AND IFNULL(b.role_id,0)<>? AND a.ent_id=?`, args...) > 0
|
|
return ok1 && u.AfterDel(tx, ids)
|
|
return ok1 && u.AfterDel(tx, ids)
|
|
}) {
|
|
}) {
|
|
go func() {
|
|
go func() {
|