1.登录
![](https://img.kancloud.cn/8b/c6/8bc667d83db6c350123a07d6b563b230_1280x647.png)
2.商户入驻
![](https://img.kancloud.cn/8f/f8/8ff8f0ab596a4a23998e892ee69c80f7_1215x623.png)
创建商户的时候会创建一个有所有权限的账号,
账号为店铺名,此账号不能删除,
SELECT * from sys_user ;
SELECT * from sys_store;
然后登录时候的会把登录账store_id注入到MybatisPlusConfig,
此后所有的sql查询都会带上参数
- FROM sys_user WHERE sys_user.store_id = 13 AND id = 28
- store_id) VALUES (?, ?, ?, ?, ?, ?, ?, 13)