超市
This commit is contained in:
1 parent
9c3b73af59
commit
f2382b3f70
1 file changed
+6
-6
+6
-6
@@ -93,13 +93,13 @@ public class SmSpuController {
|
||||
public R save(@RequestBody SmSpuEntity smSpu) {
|
||||
Long deptId = SecurityUtils.getUser().getDeptId();
|
||||
//查询商户,设置商户id
|
||||
R<MchManageVo> byDeptId = remoteMchService.getByDeptId(deptId, MerchantTypeEnum.SELF_SUPERMARKET);
|
||||
MchManageVo data = byDeptId.getData();
|
||||
if (Objects.isNull(data) || !data.getTypes().contains("2")){
|
||||
return R.failed("当前用户未绑定超市商户");
|
||||
}
|
||||
// R<MchManageVo> byDeptId = remoteMchService.getByDeptId(deptId, MerchantTypeEnum.SELF_SUPERMARKET);
|
||||
// MchManageVo data = byDeptId.getData();
|
||||
// if (Objects.isNull(data) || !data.getTypes().contains("2")){
|
||||
// return R.failed("当前用户未绑定超市商户");
|
||||
// }
|
||||
smSpu.setDeptId(deptId);
|
||||
smSpu.setMerchantId(data.getId());
|
||||
// smSpu.setMerchantId(data.getId());
|
||||
return R.ok(smSpuService.save(smSpu));
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user