package com.mingsoft.servlet.admin.article;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.mingsoft.biz.IArticleBiz;
import com.mingsoft.biz.impl.ArticleBizImpl;
import com.mingsoft.entity.ArticleEntity;
import com.mingsoft.servlet.BaseServlet;
import com.mingsoft.util.StringUtil;
/**
 * 进行删除操作
 * @author Administrator
 *				荣繁奎
 * QQ:1096199590
 * 技术支持：铭飞科技
 * 官网：www.ming-soft.com
 */
public class ArticleDeleteServlet extends BaseServlet{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@Override
	protected void doGet(HttpServletRequest request,
			HttpServletResponse response) throws ServletException, IOException {
		// TODO Auto-generated method stub
		super.doGet(request, response);
	}

	@Override
	protected void doPost(HttpServletRequest request,
			HttpServletResponse response) throws ServletException, IOException {
		// TODO Auto-generated method stub
		super.doPost(request, response);

		String articleId= request.getParameter("articleId");
		if(!StringUtil.strNull(articleId)){
			int articleBizId = Integer.parseInt(articleId); 
			IArticleBiz articleBiz = new ArticleBizImpl();
			ArticleEntity article = new ArticleEntity();
			article.setArticleId(articleBizId);
			articleBiz.delEntity(article);
		}
	}

	
}

