diff --git a/src_tenwa/com/tenwa/gps/GpsCommon.java b/src_tenwa/com/tenwa/gps/GpsCommon.java index 4c681d0cd..8d10fd503 100644 --- a/src_tenwa/com/tenwa/gps/GpsCommon.java +++ b/src_tenwa/com/tenwa/gps/GpsCommon.java @@ -233,9 +233,7 @@ public class GpsCommon { * @return */ private static String getProductId(Integer period, String wireNum, String wirelessNum, Transaction Sqlca) throws Exception { - if (period > 5 || period < 1) - throw new BusinessException("gps安装年限不合法!"); - SqlObject sqlObject = new SqlObject("select product_id from gps_product_info where year=:year and wire_num = wireNum and wireless_num =:wirelessNum") + SqlObject sqlObject = new SqlObject("select gps_product_id from gps_product_info where year=:year and wire_num = :wireNum and wireless_num =:wirelessNum") .setParameter("year", period).setParameter("wireNum", wireNum).setParameter("wirelessNum", wirelessNum); String productId = Sqlca.getString(sqlObject); if (productId == null)