Skip to content

POST /dm-store/storeMain/queryStorePermission

Content-Type: application/json

触发按钮:无

入参

实际入参

json
{
    "storeCodeOrName": "sto"
}

出参

传递对象:ResultData

json
{
    "code": 200,
    "msg": "success",
    "data": [
        {
            "id": 63,
            "createTime": "2024-08-29 22:08:49",
            "createUser": "jflores6",
            "updateTime": "2024-08-29 22:09:30",
            "updateUser": "jflores6",
            "factoryNo": "000027",
            "isDelete": 0,
            "mainId": null,
            "areaId": null,
            "binId": null,
            "storeNo": "000073",
            "storeCode": "STORE-01",
            "storeName": "TOOL ROOM B1",
            "deptName": null,
            "deptNo": "000025",
            "storeType": 1,
            "adminAccount": "mrodriguez20",
            "validFlag": 1,
            "location": "MANUFACTURE",
            "adminName": "Mauricio",
            "storeAreaNo": null,
            "storeAreaCode": null,
            "storeAreaName": null,
            "storeAreaType": null,
            "storeBinNo": null,
            "storeBinCode": null,
            "storeBinName": null,
            "storeBinType": null,
            "children": null,
            "childrenBin": null,
            "storeCodeOrName": null
        },
        {
            "id": 64,
            "createTime": "2024-08-29 22:10:12",
            "createUser": "jflores6",
            "updateTime": "2026-05-25 21:32:58",
            "updateUser": "zhongmg2",
            "factoryNo": "000027",
            "isDelete": 0,
            "mainId": null,
            "areaId": null,
            "binId": null,
            "storeNo": "000074",
            "storeCode": "STORE-02",
            "storeName": "TOOL ROOM B2",
            "deptName": null,
            "deptNo": "000025",
            "storeType": 1,
            "adminAccount": "mrodriguez20",
            "validFlag": 1,
            "location": "MANUFACTURE",
            "adminName": "Mauricio",
            "storeAreaNo": null,
            "storeAreaCode": null,
            "storeAreaName": null,
            "storeAreaType": null,
            "storeBinNo": null,
            "storeBinCode": null,
            "storeBinName": null,
            "storeBinType": null,
            "children": null,
            "childrenBin": null,
            "storeCodeOrName": null
        }
    ]
}

前端校验规则

text
前端校验
├── 权限校验
│   └── 新增按钮权限
│       └── v-auth: 'inventory:storePermission:add:popup'
└── 条件校验
    └── storeCodeOrName
        ├── 仅在 query !== '' 时才调用 queryStorePermission
        └── query === '' 时不发请求,并清空 storeOptions

后端逻辑

text
业务流程:按仓库编码或名称组装条件后查询仓库列表
└── 查询仓库主数据:StoreMainServiceImpl.findStoreMainByParams :396-404
    ├── 按仓库编码或名称组装查询条件 :398-402
    └── 查询仓库列表:list :403

后端校验规则

text

涉及数据库表