个人中心,data挪目录

This commit is contained in:
吕金泽
2022-02-01 18:26:42 +08:00
parent 2c77cd057a
commit d60ef3f8ef
77 changed files with 192 additions and 31 deletions
@@ -0,0 +1,10 @@
{
"properties" : { },
"id" : "42d241c0bb18476f8dabf92c2e4e2324",
"name" : "测试数据",
"type" : "1",
"parentId" : "02df51e4d7184780a98b632f43dc5848",
"path" : "/test",
"paths" : [ ],
"options" : [ ]
}
@@ -0,0 +1,26 @@
{
"properties" : { },
"id" : "d31e3bea5666449d90fa95779adfb61f",
"script" : null,
"groupId" : "42d241c0bb18476f8dabf92c2e4e2324",
"name" : "保存",
"createTime" : null,
"updateTime" : 1642312068428,
"lock" : "0",
"method" : "POST",
"path" : "/save",
"parameters" : [ ],
"option" : "[{\"name\":\"wrap_request_parameter\",\"value\":\"data\",\"description\":\"包装请求参数到一个变量中\"}]",
"requestBody" : "",
"headers" : [ ],
"paths" : [ ],
"responseBody" : null,
"description" : null,
"requestBodyDefinition" : null,
"responseBodyDefinition" : null,
"optionMap" : {
"wrap_request_parameter" : "data"
}
}
================================
return db.table("sys_test_data").primary("id").saveOrUpdate(data)
@@ -0,0 +1,41 @@
{
"properties" : { },
"id" : "6d50d6c8884f4624b2bf8fd537ac34f6",
"script" : null,
"groupId" : "42d241c0bb18476f8dabf92c2e4e2324",
"name" : "列表",
"createTime" : null,
"updateTime" : 1642327645651,
"lock" : "0",
"method" : "GET",
"path" : "/list",
"parameters" : [ ],
"option" : "[]",
"requestBody" : "",
"headers" : [ ],
"paths" : [ ],
"responseBody" : null,
"description" : null,
"requestBodyDefinition" : null,
"responseBodyDefinition" : null,
"optionMap" : { }
}
================================
/**
* db 东北 本级
* nm 内蒙 本级及子级
* mxd2 全部
* mxd 自定义
*/
// import '@/permission/office' as permissionOffice;
// var userIds = permissionOffice()
// return db.page("""
// select id,name from sys_test_data where 1 = 1
// ?{userIds, and create_by in (#{userIds})}
// """)
import '@/permission/office' as permissionOffice;
var userIds = permissionOffice()
return db.table("sys_test_data").where().in("create_by",userIds).page()