public ActionResult SaveData(string orgId, string officeId, string tableIds) { if (officeId.IsEmpty()) { return(Error("请选择科室")); } var entities = new List <BpcSp008Entity>(); var tbIds = tableIds.Split(','); foreach (var id in tbIds) { if (id.Length <= 3) { continue; } var entity = new BpcSp008Entity { CJBBM = id, DWCSBM = officeId, OrgId = orgId, DWSCLX = "3" }; entities.Add(entity); } _bpcSp008Bll.AddOrUpdateRecords(orgId, officeId, entities); return(Success("操作成功")); }
public void AddOrUpdateRecord(BpcSp008Entity entity) { _bpcSp008Service.AddOrUpdateRecord(entity); }