@@ -182,7 +182,8 @@ public class GoodsServiceImpl implements GoodsService {
...
@@ -182,7 +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);
Stringsql="select t.nGoodsID, t.sSubCode, t.nParentID, t.sSpecName, t.sSpec, isnull(ap.nRealSalePrice, og.nRealSalePrice) nRealSalePrice, og.nStockQty, og.nLockedQty from tGoodsSubCode t left join V_OrgGoods og on og.sOrgNO = ? and og.sAgentContractNO = ? and og.nGoodsID = t.nGoodsID left join tAgentCustTypePrice ap on ap.sCustTypeID = ? and ap.sAgentContractNO = og.sAgentContractNO and ap.nGoodsID = og.nGoodsID, tGoodsSubCode p where t.nParentID = p.nParentID and p.nGoodsID = ? and t.nTag&1 = 0";