@@ -160,6 +160,7 @@ public class CommonController {
...
@@ -160,6 +160,7 @@ public class CommonController {
Map<String,Object>fmap=jdbcTemplate.queryForMap("select sDesc,sValue1,sValue2,sValue3,sValue4,sValue5,sMemo from tSystemCtrl where sCode = 'IsAppShowStockQty'");
Map<String,Object>fmap=jdbcTemplate.queryForMap("select sDesc,sValue1,sValue2,sValue3,sValue4,sValue5,sMemo from tSystemCtrl where sCode = 'IsAppShowStockQty'");
Map<String,Object>gmap=jdbcTemplate.queryForMap("select sDesc,sValue1,sValue2,sValue3,sValue4,sValue5,sMemo from tSystemCtrl where sCode = 'IsShowSwitch'");
Map<String,Object>gmap=jdbcTemplate.queryForMap("select sDesc,sValue1,sValue2,sValue3,sValue4,sValue5,sMemo from tSystemCtrl where sCode = 'IsShowSwitch'");
Map<String,Object>hmap=jdbcTemplate.queryForMap("select sDesc, sSysTypeID, sSysType, sValue1, sValue2, sValue3, sMemo, sValue4, sValue5 from tAgentSystemCtrl where sCode ='MinOrderAmountType' and nAgentID = "+agentID+" and nTag&1 = 0 ");
Map<String,Object>hmap=jdbcTemplate.queryForMap("select sDesc, sSysTypeID, sSysType, sValue1, sValue2, sValue3, sMemo, sValue4, sValue5 from tAgentSystemCtrl where sCode ='MinOrderAmountType' and nAgentID = "+agentID+" and nTag&1 = 0 ");
Map<String,Object>lmap=jdbcTemplate.queryForMap("select sDesc, sSysTypeID, sSysType, sValue1, sValue2, sValue3, sMemo, sValue4, sValue5 from tAgentSystemCtrl where sCode ='AppSolrSortRule' and nAgentID = "+agentID+" and nTag&1 = 0 ");//排序字段
List<Map<String,Object>>payTypes=jdbcTemplate.queryForList("select sSalesOrderPayTypeID, sSalesOrderPayType from tOrgPayType where sOrgNO = ? and nTag&1=0 order by nSort desc",sOrgNO);
List<Map<String,Object>>payTypes=jdbcTemplate.queryForList("select sSalesOrderPayTypeID, sSalesOrderPayType from tOrgPayType where sOrgNO = ? and nTag&1=0 order by nSort desc",sOrgNO);
List<Map<String,Object>>goodsTags=jdbcTemplate.queryForList("select sGoodsTagID, sGoodsTag from tOrgGoodsTag where sOrgNO = ? and nTag&1 = 0",sOrgNO);
List<Map<String,Object>>goodsTags=jdbcTemplate.queryForList("select sGoodsTagID, sGoodsTag from tOrgGoodsTag where sOrgNO = ? and nTag&1 = 0",sOrgNO);
+ " where pd.sAgentContractNO = ac.sAgentContractNO and ac.nTag&3 = 2 and pm.sPromoPaperNO = bw.sPromoPaperNO and bw.sShopNO = ? and pm.sPromoActionTypeID != '3' and pm.sOrgNO = ? and pm.sPromoPaperNO = pd.sPromoPaperNO and pm.nTag&3 = 2 and (pd.sAgentContractNO = ?) and (pd.nGoodsID = ?) ";
+ " where pd.sAgentContractNO = ac.sAgentContractNO and ac.nTag&3 = 2 and pm.sPromoPaperNO = bw.sPromoPaperNO and bw.sShopNO = ? and pm.sPromoActionTypeID != '3' and pm.sOrgNO = ? and pm.sPromoPaperNO = pd.sPromoPaperNO and pm.nTag&3 = 2 and (pd.sAgentContractNO = ?) and (pd.nGoodsID = ?) ";
*/
*/
StringpromoSql="select pm.* from tYWPromoMain pm, tYWPromoDtl pd, tPromoCustBWList bw, tAgentContract ac "+
StringpromoSql="select pm.* from tYWPromoMain pm, tYWPromoDtl pd, tPromoCustBWList bw, tAgentContract ac "+