| | |
| | | import com.ruoyi.common.core.utils.StringUtils; |
| | | import com.ruoyi.common.core.utils.bean.BeanUtils; |
| | | import com.ruoyi.common.core.utils.uuid.IdUtils; |
| | | import com.ruoyi.common.security.utils.CodeFactoryUtil; |
| | | import com.ruoyi.shop.domain.dto.*; |
| | | import com.ruoyi.shop.domain.pojo.shop.*; |
| | | import com.ruoyi.shop.domain.pojo.task.ShopFile; |
| | |
| | | shop.setShopDetail(shopDetail); |
| | | } |
| | | //商户编号 |
| | | if(mgtEditShopDto.getShopId()==null){ |
| | | /*if(mgtEditShopDto.getShopId()==null){ |
| | | String shopNo = CodeFactoryUtil.getShopNo(); |
| | | shop.setShopNumber(shopNo); |
| | | } |
| | | }*/ |
| | | this.saveOrUpdate(shop); |
| | | //商户标签 |
| | | String shopTagIds = mgtEditShopDto.getShopTagIds(); |
| | |
| | | public void transferMgtShop(MgtTransferShopDto mgtTransferShopDto){ |
| | | Shop shop = this.getByShopId(mgtTransferShopDto.getShopId()); |
| | | if(shop.getBelongUserId()!=null){ |
| | | if(shop.getBelongUserId().equals(mgtTransferShopDto.getUserId())){ |
| | | throw new ServiceException(AppErrorConstant.TRANS_NOT_MYSELF); |
| | | } |
| | | ShopTransferRecord shopTransferRecord = new ShopTransferRecord(); |
| | | shopTransferRecord.setDelFlag(0); |
| | | shopTransferRecord.setShopId(shop.getShopId()); |