⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 favbizimpl.java

📁 一个简单的标签搜索.通过标签可以模糊查询数据.
💻 JAVA
字号:
package com.fxe.dcl1.biz.impl;

import java.util.List;

import com.fxe.dcl1.biz.FavBiz;
import com.fxe.dcl1.biz.TagBiz;
import com.fxe.dcl1.dao.FavoriteDAO;
import com.fxe.dcl1.dao.impl.FavoriteDAOImpl;
import com.fxe.dlc1.entity.Fav;

public class FavBizImpl  implements FavBiz{

	FavoriteDAO favDao=new FavoriteDAOImpl();
	TagBiz tagBiz=new TagBizImpl();
	public List getFav(String type) {
		// TODO Auto-generated method stub
		List list=favDao.serch(type);
		return list;
	}
	public void addFav(Fav item) {
		// TODO Auto-generated method stub
		//添加到favorite数据表
		favDao.add(item);
		String tags=item.getTags();
		if(tags!=null&&!tags.trim().equals(""))
		{
			String[] arrTags=tags.split(",");
			if(arrTags!=null&&arrTags.length>0)
			{
				for(int i=0;i<arrTags.length;++i)
				{
				String tag=arrTags[i];
				tagBiz.dealWithTag(tag);
				}
			}
		}
	}

}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -