Commit 0c841bf4 by fudahua

素材列表

parent 83cf115b
......@@ -202,16 +202,26 @@ public class LoginController extends WebBaseController{
JSONObject jsonObject = JSONObject.parseObject(o);
String gicEnterpriseId = jsonObject.getString("enterpriseId");
String loginPhoneNumber = jsonObject.getString("phoneNumber");
// String wxEnterpriseId = jsonObject.getString("wxEnterpriseId");
String wxEnterpriseId = jsonObject.getString("wxEnterpriseId");
List<WxEnterpriseDTO> enterpriseDTOList = wxEnterpriseRelatedApiService.listWxEnterpriseByEid(gicEnterpriseId);
if (CollectionUtils.isEmpty(enterpriseDTOList)) {
logger.info("登录失败,不存在对应企业:{}",o);
ModelAndView model = new ModelAndView(new RedirectView("/haoban-3/#/gic-error", false,false));
return model;
}
WxEnterpriseDTO detailDTO = null;
if (!StringUtils.isBlank(wxEnterpriseId)) {
//todo 销售线索页面
} else {
detailDTO = enterpriseDTOList.stream().filter(dto -> dto.getWxEnterpriseId().equals(wxEnterpriseId)).findFirst().orElse(null);
}
if (null == detailDTO) {
logger.info("登录失败,不存在对应企业:{}", o);
ModelAndView model = new ModelAndView(new RedirectView("/haoban-3/#/gic-error", false, false));
return model;
}
enterpriseDTOList.stream().filter(dto -> dto.getWxEnterpriseId().equals(wxEnterpriseId))
//TODO 销售线索 多个选择
WxEnterpriseDTO detailDTO = enterpriseDTOList.get(0);
StaffDTO staff = staffApiService.selectByNationcodeAndPhoneNumber(detailDTO.getWxEnterpriseId(), "86", loginPhoneNumber);
if (null == staff) {
......
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