线上超市

This commit is contained in:
zjf committed 2025-06-05 12:07:17 +08:00
1 parent 7bb990690b
commit 0131947c7c
2 files changed
+6 -6

No files matched your search

@@ -93,11 +93,11 @@ 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());
return R.ok(smSpuService.save(smSpu));
@@ -23,7 +23,7 @@
<select id="selectSmErpPageScopeVo" resultType="com.bsd.pjcloud.supermarket.vo.sm.smspu.SmSpuPageVo">
select esp.id as erp_spu_id,esp.product_code,esp.barcode,esp.product_name,esp.category_id,
esp.pic_url,esp.sort,esp.status,esp.merchant_id,esp.dept_id,
sp.create_time,sp.id,
sp.create_time,sp.id,sp.slider_pic_urls,
eca.name as category_name
from sm_spu sp
left join sm_erp_spu esp