Commit b4deae21 by 徐高华

品牌名称不从门店获取

parent 2172b45d
......@@ -1598,7 +1598,12 @@ public class WxStaffController extends WebBaseController {
List<String> list = staffApiService.getNotEmptyHaobanStoreIdsRolesByClerkIdAndStoreStatus(clerkId, wxEnterpriseId,
StoreStatusFilterUtils.getStoreStatusList(storeStatusFilter), null);
storeRoleVO.setStoreCount(list.contains("no_store") ? 0 : list.size());
storeRoleVO.setStoreDTO(list.contains("no_store") ? null : storeService.getStore(list.get(0)));
StoreDTO dto = list.contains("no_store") ? null : storeService.getStore(list.get(0)) ;
if(null != dto) {
EnterpriseDTO en = this.enterpriseService.getEnterpriseById(dto.getEnterpriseId()) ;
dto.setBrandName(en.getBrandName());
}
storeRoleVO.setStoreDTO(dto);
return RestResponse.successResult(storeRoleVO);
}
......
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