Browse Source

qad接口修修改

master
lvzb 4 years ago
parent
commit
7997aee7b9
  1. 10
      UniApiGroup/Controller/OdbcApiQadController.cs

10
UniApiGroup/Controller/OdbcApiQadController.cs

@ -34,11 +34,19 @@ namespace CK.SCP.GrupUniApi.Controller
{ {
public static void GetNewCtrlList() public static void GetNewCtrlList()
{ {
List<string> _lst = new List<string>();
_lst.Add("xxqad_pt_mstr");
_lst.Add("xxqad_vd_mstr");
_lst.Add("xxqad_vp_mstr");
_lst.Add("xxqad_pod_det");
_lst.Add("xxqad_prh_det");
_lst.Add("xxqad_pprice_det");
_lst.Add("xxqad_ppod_det");
UniApiEntities idb = EntitiesFactory.CreateUniApiInstance(); UniApiEntities idb = EntitiesFactory.CreateUniApiInstance();
idb.Database.CommandTimeout = 60 * 20; idb.Database.CommandTimeout = 60 * 20;
var tableNameList = EnumHelper.EnumToList<QadTableName>(); var tableNameList = EnumHelper.EnumToList<QadTableName>();
// var qadCtrlList = idb.xxqad_ctrl.Where(p => p.xxqad_domain == ScpCache.Config.QADÓò && p.xxqad_scm == "0").ToList(); // var qadCtrlList = idb.xxqad_ctrl.Where(p => p.xxqad_domain == ScpCache.Config.QADÓò && p.xxqad_scm == "0").ToList();
var qadCtrlList = idb.xxqad_ctrl.Where(p => p.xxqad_scm == "0" ).ToList(); var qadCtrlList = idb.xxqad_ctrl.Where(p => p.xxqad_scm == "0" && _lst.Contains(p.xxqad_table)).ToList();
foreach (var qadCtrl in qadCtrlList) foreach (var qadCtrl in qadCtrlList)
{ {
if (tableNameList.All(p => p.Name != qadCtrl.xxqad_table)) continue; if (tableNameList.All(p => p.Name != qadCtrl.xxqad_table)) continue;

Loading…
Cancel
Save