@@ -182,6 +182,8 @@ public class GoodsServiceImpl implements GoodsService {
...
@@ -182,6 +182,8 @@ public class GoodsServiceImpl implements GoodsService {
}catch(EmptyResultDataAccessExceptione){
}catch(EmptyResultDataAccessExceptione){
thrownewXException("商品已下架");
thrownewXException("商品已下架");
}
}
List<Map<String,Object>>specList=jdbcTemplate.queryForList("select t.* from tGoodsSubCode t, tGoodsSubCode p where t.nParentID = p.nParentID and p.nGoodsID = ? and t.nTag&1 = 0",goodsId);