|
@@ -17,6 +17,7 @@ import com.huaxu.model.ProgramItem;
|
|
|
import com.huaxu.util.ByteArrayUtils;
|
|
|
import com.huaxu.util.RedisUtil;
|
|
|
import com.huaxu.util.UserUtil;
|
|
|
+import org.apache.ibatis.annotations.Param;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
import org.springframework.http.HttpEntity;
|
|
@@ -460,7 +461,7 @@ public class UserService extends ServiceImpl<UserMapper,UserEntity> {
|
|
|
return userIds;
|
|
|
}
|
|
|
|
|
|
- public List<UserEntity> findUserListBytype(int type) {
|
|
|
+ public List<UserEntity> findUserListBytype(Integer type) {
|
|
|
List<UserListDto> userListDtos = new ArrayList<>();
|
|
|
LoginUser currentUser = UserUtil.getCurrentUser();
|
|
|
UserEntity userEntity = new UserEntity();
|
|
@@ -472,6 +473,22 @@ public class UserService extends ServiceImpl<UserMapper,UserEntity> {
|
|
|
List<UserEntity> userEntities = userMapper.findUserListByType(userEntity);
|
|
|
return userEntities;
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 按类型租户及公司查询用户信息
|
|
|
+ * @param companyOrgId
|
|
|
+ * @param tenantId
|
|
|
+ * @param type
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ public List<UserEntity> findAllUserList(Integer companyOrgId, String tenantId,int type) {
|
|
|
+ UserEntity userEntity = new UserEntity();
|
|
|
+ userEntity.setUserType(String.valueOf(type));
|
|
|
+ userEntity.setTenantId(tenantId);
|
|
|
+ userEntity.setCompanyOrgId(Long.valueOf(companyOrgId));
|
|
|
+ List<UserEntity> userEntities = userMapper.findAllUserListByType(userEntity);
|
|
|
+ return userEntities;
|
|
|
+ }
|
|
|
public MaintainerCountDto findMaintainer(String startDate, String endDate, Integer statsType){
|
|
|
MaintainerCountDto result=new MaintainerCountDto();
|
|
|
try {
|