班前会

This commit is contained in:
2026-02-28 16:09:10 +08:00
parent 470aac50f3
commit bcb1adf1c0
14 changed files with 293 additions and 177 deletions
@@ -4,6 +4,7 @@ using Newtonsoft.Json.Linq;
using System;
using System.Collections;
using System.Linq;
using System.Runtime.InteropServices.ComTypes;
namespace BLL
{
@@ -160,6 +161,8 @@ namespace BLL
string result = string.Empty;
if (data.Items.Count() > 0)
{
var jsonData = JsonConvert.SerializeObject(data);
ErrLogInfo.WriteLog($"【班前会接收数据】{jsonData}");
//1、判断分包单位是否存在
var unit = UnitService.getUnitByCollCropCodeUnitName(data.CollCropCode, data.UnitName);
if (unit == null)
@@ -243,6 +246,8 @@ namespace BLL
db.SubmitChanges();
}
succ++;
//ErrLogInfo.WriteLog($"【班前会接收数据——内容附件】UnitDomain{data.UnitDomain}AttachFileId{item.AttachFileId}ToKeyId{item.ToKeyId}AttachSource{item.AttachSource}AttachUrl{item.AttachUrl}");
//附件处理:内容附件
BLL.FileInsertService.SaveAttachFileRecords(data.UnitDomain, item.AttachFileId, item.ToKeyId, item.AttachSource, item.AttachUrl);
//附件处理:签到表