@Override
	public synchronized ResultMessage addGoods(GoodsPO goodsPO) {
		if(goodsPO.getName().equals("") || goodsPO.getModel().equals("")) return ResultMessage.add_failure;
		gIter = goodsList.iterator();
		GoodsPO g = null;
		while(gIter.hasNext()) {
			g = gIter.next();
			if(g.getName().equals(goodsPO.getName()) && g.getModel().equals(goodsPO.getModel()))
				return ResultMessage.add_failure;
		}
		if(goodsList.size() != 0) {
			goodsPO.setSerialNumber(Long.toString(Long.parseLong(
					goodsList.get(goodsList.size() - 1).getSerialNumber()) + 1));
		}
		else {
			goodsPO.setSerialNumber("1000000000");
		}
		goodsList.add(goodsPO);
		writeFile();
		return ResultMessage.add_success;
		
	}