Browse Source

update tt

master
xhxu 2 years ago
parent
commit
a8e3c899bc
3 changed files with 10 additions and 10 deletions
  1. +2
    -1
      mallinkService/src/main/java/com/iformall/service/TtMerchantPoiService.java
  2. +6
    -3
      mallinkService/src/main/java/com/iformall/service/impl/TtMerchantPoiServiceImpl.java
  3. +2
    -6
      mlToutiaoOpen/src/main/java/com/iformall/controller/TtMerchantPoiController.java

+ 2
- 1
mallinkService/src/main/java/com/iformall/service/TtMerchantPoiService.java View File

@@ -1,6 +1,7 @@
package com.iformall.service;

import com.github.pagehelper.PageInfo;
import com.iformall.common.ResultData;
import com.iformall.domain.po.TtMerchantPoi;
import com.iformall.domain.po.WxAppinfo;

@@ -21,6 +22,6 @@ public interface TtMerchantPoiService {

TtMerchantPoi getById(Long id);

boolean addShopMaterial(WxAppinfo appinfo, TtMerchantPoi merchantPoi);
ResultData addShopMaterial(WxAppinfo appinfo, TtMerchantPoi merchantPoi);

}

+ 6
- 3
mallinkService/src/main/java/com/iformall/service/impl/TtMerchantPoiServiceImpl.java View File

@@ -3,6 +3,8 @@ package com.iformall.service.impl;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.iformall.common.ErrorCode;
import com.iformall.common.ResultData;
import com.iformall.domain.po.TtMerchantPoi;
import com.iformall.domain.po.WxAppinfo;
import com.iformall.enums.EnumAppPlat;
@@ -51,7 +53,7 @@ public class TtMerchantPoiServiceImpl implements TtMerchantPoiService {
}

@Override
public boolean addShopMaterial(WxAppinfo appinfo, TtMerchantPoi merchantPoi) {
public ResultData addShopMaterial(WxAppinfo appinfo, TtMerchantPoi merchantPoi) {

WxAppinfo appinfoQ = new WxAppinfo();
appinfoQ.setTenantId(appinfo.getTenantId());
@@ -76,13 +78,14 @@ public class TtMerchantPoiServiceImpl implements TtMerchantPoiService {
if(res.isSuccess()){
merchantPoi.setUpdateDate(new Date());
ttMerchantPoiMapper.updateById(merchantPoi);
return true;
return new ResultData();
}
logger.error("提交商铺资质材料error"+ res.getMessage());
return new ResultData(ErrorCode.SYS_PARAMETER_ERROR.getCode(),res.getMessage());
}catch(Exception e){
logger.error("提交商铺资质材料error"+ e.getMessage());
return new ResultData(ErrorCode.SYS_PARAMETER_ERROR.getCode(),e.getMessage());
}
return false;
}




+ 2
- 6
mlToutiaoOpen/src/main/java/com/iformall/controller/TtMerchantPoiController.java View File

@@ -209,9 +209,7 @@ public class TtMerchantPoiController extends BaseController {
}
}

boolean b = ttMerchantPoiService.addShopMaterial(appinfo,merchantPoi);

return new ResultData(b);
return ttMerchantPoiService.addShopMaterial(appinfo,merchantPoi);
}

/**
@@ -273,9 +271,7 @@ public class TtMerchantPoiController extends BaseController {
}
}

boolean b = ttMerchantPoiService.addShopMaterial(appinfo,merchantPoi);

return new ResultData(b);
return ttMerchantPoiService.addShopMaterial(appinfo,merchantPoi);
}




Loading…
Cancel
Save