package com.hzya.frame.sysnew.application.plugin.service.impl;

import com.alibaba.fastjson.JSONObject;
import com.hzya.frame.sysnew.application.entity.SysApplicationEntity;
import com.hzya.frame.sysnew.application.plugin.entity.SysApplicationPluginEntity;
import com.hzya.frame.sysnew.application.plugin.dao.ISysApplicationPluginDao;
import com.hzya.frame.sysnew.application.plugin.service.ISysApplicationPluginService;
import com.hzya.frame.web.entity.BaseResult;
import com.hzya.frame.web.entity.JsonResultEntity;
import org.springframework.stereotype.Service;
import org.springframework.beans.factory.annotation.Autowired;
import javax.annotation.Resource;
import com.hzya.frame.basedao.service.impl.BaseService;

import java.util.List;

/**
 * 插件表(SysApplicationPlugin)表服务实现类
 *
 * @author makejava
 * @since 2023-09-22 16:30:05
 */
@Service(value = "sysApplicationPluginService")
public class SysApplicationPluginServiceImpl extends BaseService<SysApplicationPluginEntity, String> implements ISysApplicationPluginService {
     
    private ISysApplicationPluginDao sysApplicationPluginDao;
    
    @Autowired
	public void setSysApplicationPluginDao(ISysApplicationPluginDao dao) {
		this.sysApplicationPluginDao = dao;
		this.dao = dao;
	}


	/**
	 * @param jsonObject
	 * @return com.hzya.frame.web.entity.JsonResultEntity
	 * @Author lvleigang
	 * @Description 查询应用插件列表
	 * @Date 11:52 上午 2024/3/27
	 **/
	@Override
	public JsonResultEntity queryEntity(JSONObject jsonObject) {
		SysApplicationPluginEntity entity = getData("jsonStr", jsonObject, SysApplicationPluginEntity.class);
		if (entity == null) {
			entity = new SysApplicationPluginEntity();
		}
		List<SysApplicationPluginEntity> list = sysApplicationPluginDao.queryByLike(entity);
		return BaseResult.getSuccessMessageEntity("查询数据成功", list);
	}
}
