问题如题,代码如下:
这个commerceId就是一个"49f74af0-50bd-49ba-b382-03d538505396"这样一个值,传进去之后这个commerceId值就变成49了,这是为什么啊
public DataTable GetCommercePhoto(string commerceId)
        {
            DataSet ds = new DataSet();
            StringBuilder strSql = new StringBuilder();  //Cate_CommerceThumPhoto_Add
            strSql.Append("select Cate_CommercePhoto_Add,Cate_CommercePhoto_Tim,Cate_CommerceThumPhoto_Add ");
            strSql.Append(" from Tb_Cate_CommercePhoto ");
            strSql.Append(" where Cate_Commerce_ID='"+commerceId+"'");
            try
            {
                ds = SQLHelper.Query(strSql.ToString());
                return ds.Tables[0];
            }
            catch
            {
                return null;
            }
        }