Commit db352f67 by guojuxing

微盟商品配置接口重载

parent 47fa5007
...@@ -98,6 +98,16 @@ public interface WmStoreApiService { ...@@ -98,6 +98,16 @@ public interface WmStoreApiService {
ServiceResponse<WmGoodsConfigDTO> getGoodsConfig(Integer wmMallStoreId); ServiceResponse<WmGoodsConfigDTO> getGoodsConfig(Integer wmMallStoreId);
/** /**
* 商品品牌配置信息
* @Title: getGoodsConfig

* @Description:

* @author guojuxing
* @param wmStoreId

* @return com.gic.api.base.commons.ServiceResponse<com.gic.enterprise.dto.wm.WmGoodsConfigDTO>


*/
ServiceResponse<WmGoodsConfigDTO> getGoodsConfig(String wmStoreId);
/**
* 会员卡域ID和企业查询的微盟店铺信息 * 会员卡域ID和企业查询的微盟店铺信息
* @Title: getWmListByAppId
 * @Title: getWmListByAppId

* @Description: * @Description:
......
...@@ -38,6 +38,8 @@ public interface TabWmStoreMapper { ...@@ -38,6 +38,8 @@ public interface TabWmStoreMapper {
*/ */
TabWmStore selectByPrimaryKey(Integer wmMallStoreId); TabWmStore selectByPrimaryKey(Integer wmMallStoreId);
TabWmStore getByWmStoreId(String wmStoreId);
/** /**
* 根据主键动态更新记录 * 根据主键动态更新记录
* *
......
...@@ -50,6 +50,8 @@ public interface WmStoreService { ...@@ -50,6 +50,8 @@ public interface WmStoreService {
TabWmStore getByWmMallStoreId(Integer wmMallStoreId); TabWmStore getByWmMallStoreId(Integer wmMallStoreId);
TabWmStore getByWmStoreId(String wmStoreId);
/** /**
* 微盟主账号查询记录,因为主账号平台唯一 * 微盟主账号查询记录,因为主账号平台唯一
* @Title: getByWmMainAccount
 * @Title: getByWmMainAccount

......
...@@ -59,6 +59,11 @@ public class WmStoreServiceImpl implements WmStoreService{ ...@@ -59,6 +59,11 @@ public class WmStoreServiceImpl implements WmStoreService{
} }
@Override @Override
public TabWmStore getByWmStoreId(String wmStoreId) {
return tabWmStoreMapper.getByWmStoreId(wmStoreId);
}
@Override
public TabWmStore getByWmMainAccount(String wmMainAccount) { public TabWmStore getByWmMainAccount(String wmMainAccount) {
return tabWmStoreMapper.getByWmMainAccount(wmMainAccount); return tabWmStoreMapper.getByWmMainAccount(wmMainAccount);
} }
......
...@@ -151,6 +151,18 @@ public class WmStoreApiServiceImpl implements WmStoreApiService { ...@@ -151,6 +151,18 @@ public class WmStoreApiServiceImpl implements WmStoreApiService {
} }
@Override @Override
public ServiceResponse<WmGoodsConfigDTO> getGoodsConfig(String wmStoreId) {
if (StringUtil.isBlank(wmStoreId)) {
return ServiceResponse.failure(ErrorCode.PARAMETER_ERROR.getCode(), "参数错误");
}
TabWmStore record = wmStoreService.getByWmStoreId(wmStoreId);
if (record == null) {
return ServiceResponse.failure(ErrorCode.PARAMETER_ERROR.getCode(), "参数错误,查无数据");
}
return getGoodsConfig(record.getWmMallStoreId());
}
@Override
public ServiceResponse<List<WmCouponPackageDTO>> getWmListByMemberCardAreaId(Integer enterpriseId, List<Long> memberCardAreaIdList) { public ServiceResponse<List<WmCouponPackageDTO>> getWmListByMemberCardAreaId(Integer enterpriseId, List<Long> memberCardAreaIdList) {
if (CollectionUtils.isEmpty(memberCardAreaIdList)) { if (CollectionUtils.isEmpty(memberCardAreaIdList)) {
return ServiceResponse.failure(ErrorCode.PARAMETER_ERROR.getCode(), "会员卡域ID为空"); return ServiceResponse.failure(ErrorCode.PARAMETER_ERROR.getCode(), "会员卡域ID为空");
......
...@@ -254,4 +254,13 @@ ...@@ -254,4 +254,13 @@
where wm_main_account = #{wmMainAccount} where wm_main_account = #{wmMainAccount}
and status = 1 and status = 1
</select> </select>
<select id="getByWmStoreId" resultMap="BaseResultMap">
select
<include refid="Base_Column_List"></include>
from tab_wm_store
where wm_store_id = #{wmStoreId}
and status = 1
limit 1
</select>
</mapper> </mapper>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment