DAL/QuestionInfoService.cs
(开头部分) 16KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Data;
using System.Text;
using System.Data.SqlClient;
namespace DAL
{
/// <summary>
/// 数据访问类:QuestionInfoService
/// </summary>
public partial class QuestionInfoService
{
public QuestionInfoService()
{}
#region BasicMethod
/// <summary>
/// 得到一个对象实体
/// </summary>
public static Model.QuestionInfo GetImgTjModel(int num)
{
StringBuilder strSql = new StringBuilder();
if (num == 1)
{
strSql.Append("select top 1 * from QuestionInfo ");
strSql.Append(" where status in(1,3) and otherTypeId = 1 and questionRemark <> '' order by id desc");
}
else if(num == 2)
{
strSql.Append("select top 1 * from QuestionInfo ");
strSql.Append(" where status in(1,3) and infoTypeId = 1 and questionRemark <> '' order by id desc");
}
else if (num == 3)
{
strSql.Append("select top 1 * from QuestionInfo ");
strSql.Append(" where status in(1,3) and remark = '1' and questionRemark <> '' order by id desc");
}else if(num == 4)
{
strSql.Append("select top 1 * from QuestionInfo ");
strSql.Append(" where status in(1,3) and questionRemark <> '' order by id desc");
}
Model.QuestionInfo model = new Model.QuestionInfo();
DataSet ds = DBHelperSQL.Query(strSql.ToString());
if (ds.Tables[0].Rows.Count > 0)
{
return DataRowToModel(ds.Tables[0].Rows[0]);
}
else
{
return null;
}
}
/// <summary>
/// 加图推荐
/// </summary>
/// <param name="id"></param>
后面还有 458 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。