修改sql
This commit is contained in:
parent
a8ee3258af
commit
6d38d75ae2
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user