From 924242a73d62d247f7055ffd0dd86a2700757f5b Mon Sep 17 00:00:00 2001 From: jiangqs <jiangqs> Date: 星期一, 12 六月 2023 18:06:51 +0800 Subject: [PATCH] 基础配置 管理台联调bug --- ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/shop/service/impl/shop/ShopServiceImpl.java | 19 +++++++++++++++++-- 1 files changed, 17 insertions(+), 2 deletions(-) diff --git a/ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/shop/service/impl/shop/ShopServiceImpl.java b/ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/shop/service/impl/shop/ShopServiceImpl.java index a6c8ce1..0533a2f 100644 --- a/ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/shop/service/impl/shop/ShopServiceImpl.java +++ b/ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/shop/service/impl/shop/ShopServiceImpl.java @@ -156,6 +156,7 @@ if(shopSame!=null){ throw new ServiceException(AppErrorConstant.SHOP_DOUBLE); } + shop.setDelFlag(0); shop.setShopStatus(3); shop.setCreateTime(new Date()); shop.setCreateUserId(mgtEditShopDto.getUserId()); @@ -192,8 +193,10 @@ this.saveOrUpdate(shop); } //商户归属员工 - SysUser belongSysUser = sysUserService.getSysUser(shop.getBelongUserId()).getData(); - handleShopStaff(shop.getShopId(),belongSysUser); + if(shop.getBelongUserId()!=null){ + SysUser belongSysUser = sysUserService.getSysUser(shop.getBelongUserId()).getData(); + handleShopStaff(shop.getShopId(),belongSysUser); + } //商户关联人员 String relUserIds = mgtEditShopDto.getRelUserIds(); if(StringUtils.isNotBlank(relUserIds)){ @@ -540,4 +543,16 @@ } return mgtShopIdByCodeVo; } + + /** + * @description 获取商户list + * @author jqs + * @date 2023/6/12 14:37 + * @param mgtShopListDto + * @return List<MgtShopListSimpleVo> + */ + @Override + public List<MgtShopListSimpleVo> listMgtShopSimpleVo(MgtShopListDto mgtShopListDto){ + return shopMapper.listMgtShopSimpleVo(mgtShopListDto); + } } -- Gitblit v1.7.1