package com.hotent.portal.persistence.manager.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.node.ArrayNode;
import com.fasterxml.jackson.databind.node.ObjectNode;
import com.hotent.base.exception.BaseException;
import com.hotent.base.feign.UCFeignService;
import com.hotent.base.manager.impl.BaseManagerImpl;
import com.hotent.base.model.CommonResult;
import com.hotent.base.util.*;
import com.hotent.portal.model.AppDingModel;
import com.hotent.portal.model.AppModel;
import com.hotent.portal.model.AppModelList;
import com.hotent.portal.params.AppTree;
import com.hotent.portal.persistence.dao.AppDingModelDao;
import com.hotent.portal.persistence.dao.AppModelDao;
import com.hotent.portal.persistence.manager.AppDingModelManager;
import com.hotent.portal.persistence.manager.AppModelManager;
import com.hotent.sys.persistence.dao.SysAuthUserDao;
import com.hotent.sys.persistence.manager.SysAuthUserManager;
import com.hotent.sys.persistence.manager.SysCategoryManager;
import com.hotent.sys.persistence.manager.SysTypeManager;
import com.hotent.sys.persistence.model.SysAuthUser;
import com.hotent.sys.persistence.model.SysCategory;
import com.hotent.sys.persistence.model.SysType;
import com.hotent.uc.api.impl.util.ContextUtil;
import com.hotent.uc.api.model.IUser;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.multipart.MultipartFile;
import org.springframework.web.multipart.MultipartHttpServletRequest;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletResponse;
import java.io.File;
import java.io.IOException;
import java.nio.file.Paths;
import java.time.LocalDateTime;
import java.util.*;
import java.util.stream.Collectors;

/**
 * 
 * <pre> 
 * 描述：移动端应用 处理实现类
 * 构建组：x7
 * 作者:pangq
 * 邮箱:pangq@jee-soft.cn
 * 日期:2020-07-06 15:23:30
 * 版权：广州宏天软件股份有限公司
 * </pre>
 */
@Service("AppDingModelManager")
public class AppDingModelManagerImpl extends BaseManagerImpl<AppDingModelDao, AppDingModel> implements AppDingModelManager {
	@Override
	public List<AppDingModel> getDingApp(String appId,String orgId) {
		LambdaQueryWrapper<AppDingModel> queryWrapper=new LambdaQueryWrapper<>();
		queryWrapper.eq(AppDingModel::getAppId,appId);
		if(StringUtil.isNotEmpty(orgId)){
			queryWrapper.eq(AppDingModel::getOrgId,orgId);
		}
		return this.baseMapper.selectList(queryWrapper);
	}



}
