规范表名

dhzzyy
luoxingjian 6 months ago
parent c7b0781973
commit 40870958d2
  1. 2
      PEIS/Entity/BaseDictionaryDetails.cs
  2. 2
      PEIS/Entity/BaseDictionaryType.cs
  3. 2
      PEIS/Entity/BaseSymptom.cs
  4. 2
      PEIS/Model/Exam/CareerHisInqModel.cs
  5. 6
      PEIS/Model/Setting/DictionaryModel.cs

@ -11,7 +11,7 @@ namespace PEIS.Entity
/// </summary> /// </summary>
public class BaseDictionaryDetails : ObjectData public class BaseDictionaryDetails : ObjectData
{ {
public override String TableName => "Base_Dictionary_Details"; public override String TableName => "Dict_Dictionary_Details";
/// <summary> /// <summary>
/// 字典类型ID /// 字典类型ID
/// </summary> /// </summary>

@ -11,7 +11,7 @@ namespace PEIS.Entity
/// </summary> /// </summary>
public class BaseDictionaryType : ObjectData public class BaseDictionaryType : ObjectData
{ {
public override String TableName => "Base_Dictionary_Type"; public override String TableName => "Dict_Dictionary_Type";
/// <summary> /// <summary>
/// 分类编码 /// 分类编码
/// </summary> /// </summary>

@ -11,7 +11,7 @@ namespace PEIS.Entity
/// </summary> /// </summary>
public class BaseSymptom : ObjectData public class BaseSymptom : ObjectData
{ {
public override string TableName => "Base_Symptom"; public override string TableName => "Dict_Symptom";
/// <summary> /// <summary>
/// 名字 /// 名字
/// </summary> /// </summary>

@ -26,7 +26,7 @@ namespace PEIS.Model.Exam
} }
public List<BaseSymptom> GetBaseSymptom() public List<BaseSymptom> GetBaseSymptom()
{ {
var list = DAOHelp.GetDataBySQL<BaseSymptom>($@"Select * From Base_Symptom a where a.Enable=1 "); var list = DAOHelp.GetDataBySQL<BaseSymptom>($@"Select * From Dict_Symptom a where a.Enable=1 ");
return list; return list;
} }
public List<ExamCareerHisInqSymptom> GetCareerHisInqSymptom(Int64 eID) public List<ExamCareerHisInqSymptom> GetCareerHisInqSymptom(Int64 eID)

@ -11,7 +11,7 @@ namespace PEIS.Model.Setting
{ {
public List<BaseDictionaryType> GetItems() public List<BaseDictionaryType> GetItems()
{ {
var result= DAOHelp.GetDataBySQL<BaseDictionaryType>("Select * From Base_Dictionary_Type ORDER BY DictOrder"); var result= DAOHelp.GetDataBySQL<BaseDictionaryType>("Select * From Dict_Dictionary_Type ORDER BY DictOrder");
return result == null ? new List<BaseDictionaryType>() : result; return result == null ? new List<BaseDictionaryType>() : result;
} }
} }
@ -20,12 +20,12 @@ namespace PEIS.Model.Setting
{ {
public List<BaseDictionaryDetails> GetItems() public List<BaseDictionaryDetails> GetItems()
{ {
var result = DAOHelp.GetDataBySQL<BaseDictionaryDetails>("Select * From Base_Dictionary_Details ORDER BY DetailOrder"); var result = DAOHelp.GetDataBySQL<BaseDictionaryDetails>("Select * From Dict_Dictionary_Details ORDER BY DetailOrder");
return result == null ? new List<BaseDictionaryDetails>() : result; return result == null ? new List<BaseDictionaryDetails>() : result;
} }
public List<BaseDictionaryDetails> GetItemByTDictId(Int64 tId) public List<BaseDictionaryDetails> GetItemByTDictId(Int64 tId)
{ {
var result = DAOHelp.GetDataBySQL<BaseDictionaryDetails>($"Select * From Base_Dictionary_Details D WHERE D.TID={tId} ORDER BY D.DetailOrder"); var result = DAOHelp.GetDataBySQL<BaseDictionaryDetails>($"Select * From Dict_Dictionary_Details D WHERE D.TID={tId} ORDER BY D.DetailOrder");
return result == null ? new List<BaseDictionaryDetails>() : result; return result == null ? new List<BaseDictionaryDetails>() : result;
} }
} }

Loading…
Cancel
Save