1109-gaofei

This commit is contained in:
gaofei
2021-11-09 10:29:14 +08:00
parent 97904d080f
commit d9ca7b3bf7
3 changed files with 28 additions and 7 deletions
+6 -1
View File
@@ -21,11 +21,16 @@ namespace BLL
string message = string.Empty;
if (list.Count > 0)
{
var project = db.Base_Project.FirstOrDefault(x => x.HJProjectCode == list[0].ProjectId);
if (project != null)
{
string projectId = project.ProjectId;
var oldList = db.HJGL_FinishRate.Where(x => x.ProjectId == projectId);
if (oldList.Count() > 0)
{
db.HJGL_FinishRate.DeleteAllOnSubmit(oldList);
db.SubmitChanges();
}
foreach (var item in list)
{
Model.HJGL_FinishRate newFinishRate = new Model.HJGL_FinishRate