+" FROM tAgentGoodsPic agp LEFT JOIN tAgentContractGoods g ON g.nGoodsID = agp.nGoodsID AND g.nAgentID = agp.nAgentID and agp.nTag&1=0 and g.nTag&1=0 "
+" WHERE g.sAgentContractNO= '"+agentContractNO+"' AND g.nGoodsID = "+goodsID+" ";
//图片库中商品图片
StringpicSql="SELECT ID=t.nItem,picTypeID=t.sPicTypeID,picType=t.sPicType,picDesc=t.sPicDesc,url=t.sURL FROM tGoodsPic t WHERE t.nGoodsID = "+goodsID+" and t.nTag&1=0 ";
Stringsql1="select agp.* from tAgentGoodsPic agp, tAgentContractGoods acg where agp.nAgentID = acg.nAgentID and agp.nGoodsID = acg.nGoodsID and acg.sAgentContractNO = ? and acg.nGoodsID = ?";
Stringsql2="select gp.* from tGoodsPic gp where gp.nGoodsID = ?";