doomiwork 3.3.0 → 3.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/core/database/daoBase.js +3 -3
- package/package.json +1 -1
package/core/database/daoBase.js
CHANGED
|
@@ -226,7 +226,7 @@ class mysqlDao extends dao{
|
|
|
226
226
|
pObject.roletext.push(element.allowname)
|
|
227
227
|
}
|
|
228
228
|
break;
|
|
229
|
-
case
|
|
229
|
+
case 4: ///用户
|
|
230
230
|
pObject.userid.push(element.allowid)
|
|
231
231
|
if (pObject.userid.length < 4) {
|
|
232
232
|
pObject.usernames.push(element.allowname)
|
|
@@ -327,7 +327,7 @@ class mysqlDao extends dao{
|
|
|
327
327
|
update framework_permission op
|
|
328
328
|
inner join vm_org_user od on op.allow_id=od.user_id
|
|
329
329
|
set op.allow_name = od.user_name
|
|
330
|
-
where data_id=? and data_type=? and allow_type=
|
|
330
|
+
where data_id=? and data_type=? and allow_type=4;
|
|
331
331
|
|
|
332
332
|
`
|
|
333
333
|
let subItem = [];
|
|
@@ -345,7 +345,7 @@ class mysqlDao extends dao{
|
|
|
345
345
|
}
|
|
346
346
|
const userids = mItem.user ? mItem.user.split(',') : []
|
|
347
347
|
for (const uid of userids) {
|
|
348
|
-
subItem.push([id, this.tableoption.permissiondatatype,
|
|
348
|
+
subItem.push([id, this.tableoption.permissiondatatype, 4, uid])
|
|
349
349
|
}
|
|
350
350
|
}
|
|
351
351
|
return this.executeSql(sqlCommand, [
|