|
|
|
@ -1,6 +1,7 @@
|
|
|
|
|
package com.glxp.api.service.auth.impl;
|
|
|
|
|
|
|
|
|
|
import cn.hutool.core.collection.CollUtil;
|
|
|
|
|
import cn.hutool.core.util.IdUtil;
|
|
|
|
|
import com.github.pagehelper.PageHelper;
|
|
|
|
|
import com.glxp.api.dao.auth.WarehouseUserDao;
|
|
|
|
|
import com.glxp.api.entity.auth.AuthAdmin;
|
|
|
|
@ -27,7 +28,7 @@ public class WarehouseUserServiceImpl implements WarehouseUserService {
|
|
|
|
|
private WarehouseUserDao warehouseUserDao;
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public WarehouseUserEntity selectById(Integer id) {
|
|
|
|
|
public WarehouseUserEntity selectById(Long id) {
|
|
|
|
|
FilterInvUserRequest filterInvUserRequest = new FilterInvUserRequest();
|
|
|
|
|
filterInvUserRequest.setId(id);
|
|
|
|
|
List<WarehouseUserEntity> warehouseUserEntities = warehouseUserDao.filterList(filterInvUserRequest);
|
|
|
|
@ -74,9 +75,10 @@ public class WarehouseUserServiceImpl implements WarehouseUserService {
|
|
|
|
|
warehouseUserEntity.setCode(code);
|
|
|
|
|
warehouseUserEntity.setUsername(user.getUserName());
|
|
|
|
|
warehouseUserEntity.setUserid(user.getId());
|
|
|
|
|
warehouseUserEntity.setId(IdUtil.getSnowflakeNextId());
|
|
|
|
|
warehouseUserEntities.add(warehouseUserEntity);
|
|
|
|
|
});
|
|
|
|
|
warehouseUserDao.batchInsert(warehouseUserEntities);
|
|
|
|
|
warehouseUserDao.insertBatch(warehouseUserEntities);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -99,9 +101,9 @@ public class WarehouseUserServiceImpl implements WarehouseUserService {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public void deleteWarehouseUser(Integer id) {
|
|
|
|
|
public void deleteWarehouseUser(Long id) {
|
|
|
|
|
if (null != id) {
|
|
|
|
|
warehouseUserDao.deleteByPrimaryKey(id);
|
|
|
|
|
warehouseUserDao.deleteById(id);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -141,6 +143,6 @@ public class WarehouseUserServiceImpl implements WarehouseUserService {
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public boolean insert(WarehouseUserEntity warehouseUserEntity) {
|
|
|
|
|
return warehouseUserDao.insertEntity(warehouseUserEntity)>0;
|
|
|
|
|
return warehouseUserDao.insertEntity(warehouseUserEntity) > 0;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|