| | |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.math.BigDecimal; |
| | | import java.nio.charset.StandardCharsets; |
| | | import java.text.ParseException; |
| | | import java.util.*; |
| | | import java.util.function.Function; |
| | |
| | | newShop = true; |
| | | } |
| | | BeanUtils.copyProperties(mgtEditShopDto,shop); |
| | | String shopDetail = shop.getShopDetail(); |
| | | if(StringUtils.isNotBlank(shopDetail)){ |
| | | byte[] decodedBytes = Base64.getDecoder().decode(shopDetail); |
| | | shopDetail = new String(decodedBytes, StandardCharsets.UTF_8); |
| | | shop.setShopDetail(shopDetail); |
| | | } |
| | | //商户编号 |
| | | if(mgtEditShopDto.getShopId()==null){ |
| | | String shopNo = CodeFactoryUtil.getShopNo(); |
| | |
| | | Shop shop = this.getById(shopId); |
| | | //基本信息拷贝 |
| | | BeanUtils.copyProperties(shop,mgtShopInfoVo); |
| | | String shopDetail = mgtShopInfoVo.getShopDetail(); |
| | | if(StringUtils.isNotBlank(shopDetail)){ |
| | | byte[] encodedBytes = Base64.getEncoder().encode(shopDetail.getBytes(StandardCharsets.UTF_8)); |
| | | shopDetail = new String(encodedBytes, StandardCharsets.UTF_8); |
| | | mgtShopInfoVo.setShopDetail(shopDetail); |
| | | } |
| | | //商户标签 |
| | | List<ShopRelTag> shopRelTagList = shopRelTagService.listShopRelTagByShopId(shopId); |
| | | if(shopRelTagList!=null&&!shopRelTagList.isEmpty()){ |