|
|
|
@ -1,6 +1,7 @@
|
|
|
|
|
package com.glxp.udi.admin.service.auth;
|
|
|
|
|
|
|
|
|
|
import cn.hutool.core.collection.CollUtil;
|
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
|
|
import com.glxp.udi.admin.dao.auth.AuthAdminDao;
|
|
|
|
@ -66,4 +67,17 @@ public class CustomerInfoService {
|
|
|
|
|
return customerInfoDao.selectById(customerId);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 查询公司名称
|
|
|
|
|
* @param customerId
|
|
|
|
|
*/
|
|
|
|
|
public String selectCompanyName(long customerId) {
|
|
|
|
|
if (110 == customerId) {
|
|
|
|
|
return "超级用户";
|
|
|
|
|
}
|
|
|
|
|
QueryWrapper<CustomerInfoEntity> wrapper = new QueryWrapper<>();
|
|
|
|
|
wrapper.select("companyName")
|
|
|
|
|
.eq("customerId", customerId);
|
|
|
|
|
return customerInfoDao.selectOne(wrapper).getCompanyName();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|