tijian_tieying/web/dccdc.DAL/sqwzbxmxDal.cs

25 lines
642 B
C#
Raw Permalink Normal View History

2025-02-20 12:14:39 +08:00
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using dccdc.Models;
using System.Data;
using Dapper;
namespace dccdc.DAL
{
public class sqwzbxmxDal
{
public List<sqwzbxmxModel> GetListByParent(string id)
{
//throw new NotImplementedException();
using (IDbConnection conn = CommHelper.GetSqlConnection())
{
string sql = "select * from sqwzbxmx where 1=1 and sqdid=@parentid";
return conn.Query<sqwzbxmxModel>(sql, new { parentid = id }).ToList();
}
}
}
}