ShopCooperationCouponServiceImpl implements
		ShopCooperationCouponService { @Override public int batchInsertCoupon(final List<ShopCooperationCoupon> list,final boolean isClean,final Long productId,final String operatorId) { Map<String,Object> parameters = new HashMap<String,Object>(); parameters.put("productId", productId); int oldData = 0; if(isClean){ oldData = shopCooperationCouponDAO.batchDeleteCoupon(parameters); } int result =shopCooperationCouponDAO.batchInsertCoupon(list); updateProductStock(parameters,productId); shopLogService.insert(getLog(list,isClean,oldData), productId, "SHOP_PRODUCT", "PRODUCT_UPDATE", operatorId); return result; }  @Override int batchInsertCoupon(final List<ShopCooperationCoupon> list,final boolean isClean,final Long productId,final String operatorId); @Override int batchDeleteCoupon(final Map<String, Object> parameters); @Override List<ShopCooperationCoupon> query(final Map<String, Object> parameters); @Override Long count(final Map<String, Object> parameters); @Override ShopCooperationCoupon queryByParameters(
			final Map<String, Object> parameters); @Override ShopCooperationCoupon queryCouponByKey(final Long key); @Override List<String> subtractStock(final Long productId,final int quantity); ShopCooperationCouponDAO getShopCooperationCouponDAO(); void setShopCooperationCouponDAO(
			ShopCooperationCouponDAO shopCooperationCouponDAO); ShopProductDAO getShopProductDAO(); void setShopProductDAO(ShopProductDAO shopProductDAO); ShopLogService getShopLogService(); void setShopLogService(ShopLogService shopLogService);  }
@Test public void testBatchInsertCoupon() { fail("Not yet implemented"); }