Commit 0818e0fb authored by Quxl's avatar Quxl

x

parent 8a9c8d01
......@@ -86,6 +86,7 @@ public class BrandServiceImpl implements BrandService {
+ "WHERE "
+ "acg.sBrandID = b.sBrandID "
+ "and acg.sOrgNO = ? "
+ "and b.nTag&1 = 0 "
+ "group by "
+ "b.sPinyinCode, "
+ "acg.sBrandID, "
......@@ -99,6 +100,33 @@ public class BrandServiceImpl implements BrandService {
}
public static void main(String[] args) {
String sql="SELECT "
+ "b.sPinyinCode,"
+ "acg.sBrandID, "
+ "b.sBrandName,"
+ "b.sLogoUrl "
+ "FROM "
+ "tAgentContractGoods acg, "
+ "tBrand b "
+ "WHERE "
+ "acg.sBrandID = b.sBrandID "
+ "and acg.sOrgNO = ? "
+ "group by "
+ "b.sPinyinCode, "
+ "acg.sBrandID, "
+ "b.sBrandName, "
+ "b.sLogoUrl, "
+ "b.nSort "
+ "ORDER BY "
+ "b.nSort desc, "
+ "b.sPinyinCode ";
System.out.println(sql);
}
/**
* 热门IP列表
* <p>Title: </p>
......
......@@ -201,7 +201,7 @@ public class GoodsServiceImpl implements GoodsService {
* @throws
*/
public Map<String, List<Map<String, Object>>> goodsPicList(String goodsID,String agentContractNO ){
String sql1 = "select agp.sURL, agp.nLength, agp.sPicTypeID from tAgentGoodsPic agp, tAgentContractGoods acg where agp.nAgentID = acg.nAgentID and agp.nGoodsID = acg.nGoodsID and acg.sAgentContractNO = ? and acg.nGoodsID = ? and agp.nTag&1 = 0";
String sql1 = "select agp.sURL, agp.nLength, agp.sPicTypeID from tAgentGoodsPic agp, tAgentContractGoods acg where agp.nAgentID = acg.nAgentID and agp.nGoodsID = acg.nGoodsID and acg.sAgentContractNO = ? and acg.nGoodsID = ? and agp.nTag&1 = 0 order by agp.nSort";
List<Map<String, Object>> picList1 = jdbcTemplate.queryForList(sql1, agentContractNO, goodsID);
Map<String, List<Map<String,Object>>> picML1 = Util.listToML(picList1, "sPicTypeID");
Map<String, List<Map<String, Object>>> pics = new HashMap<String, List<Map<String, Object>>>();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment