|
@@ -45,7 +45,7 @@ public class ClientService extends ServiceImpl<ClientMapper, Client> {
|
|
* @description 分页获得客户列表
|
|
* @description 分页获得客户列表
|
|
*/
|
|
*/
|
|
public IPage<Client> getPageList(ClientDTO params) {
|
|
public IPage<Client> getPageList(ClientDTO params) {
|
|
-
|
|
|
|
|
|
+ //获取登陆人信息,获得租户id
|
|
if (params.getTenantId() == null) {
|
|
if (params.getTenantId() == null) {
|
|
PersonnelVO personnel = cacheUtils.getLoginUser(loginUtils.getId());
|
|
PersonnelVO personnel = cacheUtils.getLoginUser(loginUtils.getId());
|
|
params.setTenantId(personnel.getTenantId());
|
|
params.setTenantId(personnel.getTenantId());
|
|
@@ -98,6 +98,9 @@ public class ClientService extends ServiceImpl<ClientMapper, Client> {
|
|
*/
|
|
*/
|
|
@Transactional(rollbackFor = Exception.class)
|
|
@Transactional(rollbackFor = Exception.class)
|
|
public String add(Client client) {
|
|
public String add(Client client) {
|
|
|
|
+ //对客户名称进行判空处理,不允许空名称
|
|
|
|
+
|
|
|
|
+
|
|
PersonnelVO personnel = cacheUtils.getLoginUser(loginUtils.getId());
|
|
PersonnelVO personnel = cacheUtils.getLoginUser(loginUtils.getId());
|
|
//判断客户是否新增过
|
|
//判断客户是否新增过
|
|
LambdaQueryWrapper<Client> wrapper = new LambdaQueryWrapper<>();
|
|
LambdaQueryWrapper<Client> wrapper = new LambdaQueryWrapper<>();
|