updateconsigneeservice.java

来自「基于j2ee的物流软件」· Java 代码 · 共 36 行

JAVA
36
字号
package com.wuliu.doservlet;

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

import com.wuliu.dao.ConsigneeTableDAO;
import com.wuliu.entity.Consignee;

public class UpdateConsigneeService implements Service
{

	/**
	 * @author 崔斌 - 修改收货人详细信息
	 * */
	public String doService(HttpServletRequest request,
			HttpServletResponse response)
	{
		String consigneeId = request.getParameter("consigneeId");
		String consigneeName = request.getParameter("consigneeName");
		String consigneeCharge = request.getParameter("consigneeCharge");
		String consigneeAddr = request.getParameter("consigneeAddr");
		String consigneePhone = request.getParameter("consigneePhone");
		String consigneeMobile = request.getParameter("consigneeMobile");
		String consigneeFax = request.getParameter("consigneeFax");
		String consigneeEmail = request.getParameter("consigneeEmail");
		String consigneeIdCard = request.getParameter("consigneeIdCard");
		ConsigneeTableDAO ctdao = new ConsigneeTableDAO();
		Consignee consignee = new Consignee(consigneeId,consigneeName,
				consigneeCharge,consigneeAddr,consigneePhone,consigneeMobile,
				consigneeFax,consigneeEmail,consigneeIdCard);
		ctdao.updateConsignee(consignee);
		return "consigneeshow.do?page=0";
	}

}

⌨️ 快捷键说明

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