salesmanNO1=jdbcTemplate.queryForString("SELECT SalesmanNO = sValue1 FROM tSystemCtrl WHERE sCode = 'DefSalesman'");
salesman=jdbcTemplate.queryForMap("select * from tSalesman where sSalesmanNO = ?",salesmanNO1);
}catch(EmptyResultDataAccessExceptione){
e.printStackTrace();
}
}
Map<String,Object>salesman=null;
if(salesman==null){
try{
salesmanNO1=jdbcTemplate.queryForString("SELECT SalesmanNO = sValue1 FROM tSystemCtrl WHERE sCode = 'DefSalesman'");
try{
salesman=jdbcTemplate.queryForMap("select * from tSalesman where sSalesmanNO = ?",salesmanNO1);
}catch(EmptyResultDataAccessExceptione){
e.printStackTrace();
}
}catch(EmptyResultDataAccessExceptione){
e.printStackTrace();
}
}
List<Map<String,Object>>addrNameList=jdbcTemplate.queryForList("select sRegionNO, sRegionDesc from tRegion where sRegionNO = ? or sRegionNO = ? or sRegionNO = ?",provinceId,cityId,districtId);
List<Map<String,Object>>list=jdbcTemplate.queryForList("select nID, sSMS from tSMS where sSendType = '2' and sChannelID = 'qywx' and sSendGroup = '6'");
List<Map<String,Object>>subOrderList=jdbcTemplate.queryForList("select * from tSalesOrderSub where sSubOrderID in ("+StringUtil.join("', '","'","'","''",ids)+")");
jdbcTemplate.update("update tSMS set sSendErrorLog = ?, nRetry = isnull(nRetry,0) + 1 where nID = ?",ThrowableUtil.stackTraceToString(e),msgId.intValue());