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

📄 xs3203serviceimpl.java

📁 一个完整的物流系统
💻 JAVA
字号:
package jp.com.cost.xs.service.impl;

import jp.com.cost.common.ComTool;
import jp.com.cost.dao.ShipDao;
import jp.com.cost.pojo.Ship;
import jp.com.cost.xs.service.XS3203Service;
import jp.com.cost.xs.web.form.XS3203Form;

/**
 * Service类,通过调用ShipDao中的方法实现对船期信息的修改功能
 * 
 * @author 彭启刚
 * @version 1.0
 */
public class XS3203ServiceImpl implements XS3203Service {
	private ShipDao shipDao;

	public ShipDao getShipDao() {
		return shipDao;
	}

	public void setShipDao(ShipDao shipDao) {
		this.shipDao = shipDao;
	}

	/**
	 * 保存修改后的船期信息
	 * 
	 * @param XS3203Form
	 *            xs3203Form--封装了船期信息的ActionForm类
	 * @return boolean --返回操作结果 成功或失败
	 */
	public boolean update(XS3203Form xs3203Form) {
		// TODO Auto-generated method stub
		Ship ship = new Ship();
		ship.setOid(xs3203Form.getOid());
		ship.setAimport(xs3203Form.getAimport());
		ship.setArrive(xs3203Form.getArrive());
		ship.setBoxcount(xs3203Form.getBoxcount());
		ship.setBoxid(xs3203Form.getBoxid());
		ship.setBoxweight(xs3203Form.getBoxweight());
		ship.setHavenstop(xs3203Form.getHavenstop());
		ship.setLine(xs3203Form.getLine());
		ship.setMytel(xs3203Form.getMytel());
		ship.setShipcno(xs3203Form.getShipcno());
		ship.setShipname(xs3203Form.getShipname());
		ship.setShipnumber(xs3203Form.getShipnumber());
		ship.setShipoener(xs3203Form.getShipoener());
		ship.setStartport(xs3203Form.getStartport());
		ship.setStop(xs3203Form.getStop());
		ship.setTel(xs3203Form.getTel());
		ship.setVoyno(xs3203Form.getVoyno());
		ship.setVoytime(xs3203Form.getVoytime());
		boolean bln = shipDao.update(ship);
		return bln;
	}
}

⌨️ 快捷键说明

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