Skip to content

POST /dm-store/storePermission/queryStore

Content-Type: application/json

触发按钮:storePermissionPageAjax

入参

实际入参:

json
{
    "userAccount": "zhongmg2"
}

出参

传递对象:ResultData

json
{
    "code": 200,
    "msg": "success",
    "data": [
        {
            "id": 254,
            "createTime": "2026-05-12 00:35:46",
            "createUser": "zhongmg2",
            "updateTime": null,
            "updateUser": null,
            "factoryNo": null,
            "isDelete": null,
            "userNo": "zhongmg2",
            "userAccount": "zhongmg2",
            "userName": "zhongmg2",
            "storeNo": "000073",
            "storeNoList": null,
            "storeCode": "STORE-01",
            "storeName": "TOOL ROOM B1"
        },
        {
            "id": 255,
            "createTime": "2026-05-12 00:35:46",
            "createUser": "zhongmg2",
            "updateTime": null,
            "updateUser": null,
            "factoryNo": null,
            "isDelete": null,
            "userNo": null,
            "userAccount": "zhongmg2",
            "userName": "zhongmg2",
            "storeNo": "000074",
            "storeNoList": null,
            "storeCode": "STORE-02",
            "storeName": "TOOL ROOM B2"
        }
    ]
}

前端校验规则

后端逻辑

业务流程:绑定当前用户 -> 查询仓库权限 -> 补充用户编号 -> 返回可访问仓库列表

├── 绑定当前用户账号 :57

├── 查询当前用户仓库权限:StorePermissionService.queryByUser :58
│   └── StorePermissionMapper.searchList :173

├── 补充权限用户编号
│   ├── UserClient.getUserByNoOrAccount :181
│   ├── UserServiceImpl.getUserByNoOrAccount :310-318
│   └── UserMapper.getRpcUserInfo :314

后端校验规则

后端校验
├── 数据存在性校验
│   └── 校验当前用户存在仓库权限数据:queryByUser :173-176
│       └── ExceptionCode.EX90143
└── 前置条件校验
    └── 校验用户中心返回的用户数据有效:queryByUser :181-184
        └── ExceptionCode.EX100007

涉及数据库表