修改bug

This commit is contained in:
zpc 2025-12-28 20:05:50 +08:00
parent 914a257e4e
commit a40b0fcc6e
2 changed files with 5 additions and 4 deletions

View File

@ -60,8 +60,8 @@ namespace ZR.Service.Business
{
if (list == null || list.Count == 0)
return 0;
return Insertable(list).ExecuteCommand();
return Insert(list);
}
/// <summary>
@ -69,8 +69,9 @@ namespace ZR.Service.Business
/// </summary>
/// <param name="workrecordId"></param>
/// <returns></returns>
public int DeleteByWorkrecordId(int workrecordId)
public bool DeleteByWorkrecordId(int workrecordId)
{
return Delete(x => x.WorkrecordId == workrecordId);
}

View File

@ -40,7 +40,7 @@ namespace ZR.Service.Business.IBusinessService
/// </summary>
/// <param name="workrecordId"></param>
/// <returns></returns>
int DeleteByWorkrecordId(int workrecordId);
bool DeleteByWorkrecordId(int workrecordId);
/// <summary>
/// 获取工作记录的图片数量