|
|
|
@@ -7,6 +7,8 @@ import com.iformall.common.ResultData; |
|
|
|
import com.iformall.domain.po.WxMall; |
|
|
|
import com.iformall.domain.po.WxMerchant; |
|
|
|
import com.iformall.domain.po.WxMerchantBUser; |
|
|
|
import com.iformall.domain.po.WxScoreRules; |
|
|
|
import com.iformall.enums.EnumCreditLockedStatus; |
|
|
|
import com.iformall.enums.EnumMerchantBUserStatus; |
|
|
|
import com.iformall.enums.EnumMerchantStatus; |
|
|
|
import com.iformall.service.*; |
|
|
|
@@ -50,6 +52,8 @@ public class WxMerchantBUserController extends BaseController { |
|
|
|
@Autowired |
|
|
|
private WxCUserBasicInfoService wxCUserBasicInfoService; |
|
|
|
|
|
|
|
@Autowired |
|
|
|
private WxScoreRulesService wxScoreRulesService; |
|
|
|
|
|
|
|
@ApiOperation("查寻当bUser详情接口") |
|
|
|
@GetMapping("/detail") |
|
|
|
@@ -72,6 +76,11 @@ public class WxMerchantBUserController extends BaseController { |
|
|
|
return new ResultData(ErrorCode.MALL_INFO_NOT_FOUND); |
|
|
|
} |
|
|
|
|
|
|
|
resultMap.put("creditLocked", merchant.getCreditLocked()); |
|
|
|
WxScoreRules scoreRules = wxScoreRulesService.getScoreRules(user.getTenantId()); |
|
|
|
if (scoreRules.getCreditLocked().equals(EnumCreditLockedStatus.CLOSE.getCode())) { |
|
|
|
resultMap.put("creditLocked", EnumCreditLockedStatus.CLOSE.getCode()); |
|
|
|
} |
|
|
|
resultMap.put("phone", user.getPhone()); |
|
|
|
resultMap.put("name", user.getName()); |
|
|
|
resultMap.put("merchant_name", merchant.getName()); |
|
|
|
@@ -81,7 +90,6 @@ public class WxMerchantBUserController extends BaseController { |
|
|
|
resultMap.put("tenant_id",merchant.getTenantId()); |
|
|
|
resultMap.put("merchant_id",merchant.getId()); |
|
|
|
resultMap.put("is_admin",merchant.getIsAdmin()); |
|
|
|
resultMap.put("creditLocked", merchant.getCreditLocked()); |
|
|
|
resultMap.put("businessId", merchant.getBusinessId()); |
|
|
|
|
|
|
|
String mid = null; |
|
|
|
|