lin 2 лет назад
Родитель
Сommit
bd9cbb2979
2 измененных файлов: 5 добавлений и 8 удалений
  1. +4
    -8
      mallinkAdmin/src/main/java/com/iformall/controller/basic/TtMerchantPoiController.java
  2. +1
    -0
      mallinkService/src/main/java/com/iformall/service/impl/WxMerchantServiceImpl.java

+ 4
- 8
mallinkAdmin/src/main/java/com/iformall/controller/basic/TtMerchantPoiController.java Просмотреть файл

@@ -245,14 +245,14 @@ public class TtMerchantPoiController extends DouyinBaseController {
logger.error("poi import error.",e);
throw new MallinkException(ErrorCode.MEM_IMPORT_ERR.getCode(), "模板上传失败");
} finally {
if (isSetCacheLock) {
stringRedisTemplate.expire(importKey,3,TimeUnit.SECONDS);
stringRedisTemplate.opsForHash().putIfAbsent(importKey, "allCount", "1");
}
if (fos != null) {
try {
fos.close();
} catch (IOException e) {
if (isSetCacheLock) {
stringRedisTemplate.expire(importKey,3,TimeUnit.SECONDS);
stringRedisTemplate.opsForHash().putIfAbsent(importKey, "allCount", "1");
}
logger.error("poi import error.",e);
throw new MallinkException(ErrorCode.MEM_IMPORT_ERR.getCode(), "模板上传失败");
}
@@ -261,10 +261,6 @@ public class TtMerchantPoiController extends DouyinBaseController {
try {
fs.close();
} catch (IOException e) {
if (isSetCacheLock) {
stringRedisTemplate.expire(importKey,3,TimeUnit.SECONDS);
stringRedisTemplate.opsForHash().putIfAbsent(importKey, "allCount", "1");
}
logger.error("poi import error.",e);
throw new MallinkException(ErrorCode.MEM_IMPORT_ERR.getCode(), "模板上传失败");
}


+ 1
- 0
mallinkService/src/main/java/com/iformall/service/impl/WxMerchantServiceImpl.java Просмотреть файл

@@ -2223,6 +2223,7 @@ public class WxMerchantServiceImpl implements WxMerchantService {
}
if (null == merchant) {
merchant = new WxMerchant();
merchant.updateTenantInfo(shop);
merchant.setIsAdmin(EnumMerchantAdmin.PUBLIC_COMMON.getCode());
merchant.setCarVendorType(0);
merchant.setImgUrl("https://formall.oss-accelerate.aliyuncs.com/234/WechatIMG5071.png");


Загрузка…
Отмена
Сохранить