小程序接口修改

This commit is contained in:
2023-07-11 16:32:16 +08:00
parent ca5c3fe9a7
commit 4449a7754f
68 changed files with 4634 additions and 2984 deletions
+38 -6
View File
@@ -162,13 +162,45 @@ namespace BLL
db.Check_IncentiveNotice.InsertOnSubmit(newIncentiveNotice);
db.SubmitChanges();
CodeRecordsService.InsertCodeRecordsByMenuIdProjectIdUnitId(Const.ProjectIncentiveNoticeMenuId, incentiveNotice.ProjectId, null, incentiveNotice.IncentiveNoticeId, incentiveNotice.CompileDate);
}
}
public static void AddIncentiveNoticeForApi(Model.Check_IncentiveNotice incentiveNotice)
{
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
{
Model.Check_IncentiveNotice newIncentiveNotice = new Model.Check_IncentiveNotice
{
IncentiveNoticeId = incentiveNotice.IncentiveNoticeId,
ProjectId = incentiveNotice.ProjectId,
IncentiveNoticeCode = incentiveNotice.IncentiveNoticeCode,
UnitId = incentiveNotice.UnitId,
TeamGroupId = incentiveNotice.TeamGroupId,
IncentiveDate = incentiveNotice.IncentiveDate,
PersonId = incentiveNotice.PersonId,
BasicItem = incentiveNotice.BasicItem,
IncentiveMoney = incentiveNotice.IncentiveMoney,
TitleReward = incentiveNotice.TitleReward,
MattleReward = incentiveNotice.MattleReward,
FileContents = incentiveNotice.FileContents,
AttachUrl = incentiveNotice.AttachUrl,
CompileMan = incentiveNotice.CompileMan,
CompileDate = incentiveNotice.CompileDate,
States = incentiveNotice.States,
SignMan = incentiveNotice.SignMan,
ApproveMan = incentiveNotice.ApproveMan,
RewardType = incentiveNotice.RewardType,
Currency = incentiveNotice.Currency
};
db.Check_IncentiveNotice.InsertOnSubmit(newIncentiveNotice);
db.SubmitChanges();
CodeRecordsService.InsertCodeRecordsByMenuIdProjectIdUnitIdForApi(Const.ProjectIncentiveNoticeMenuId, incentiveNotice.ProjectId, null, incentiveNotice.IncentiveNoticeId, incentiveNotice.CompileDate);
}
}
/// <summary>
/// 修改奖励通知单
/// </summary>
/// <param name="incentiveNotice"></param>
public static void UpdateIncentiveNotice(Model.Check_IncentiveNotice incentiveNotice)
/// <summary>
/// 修改奖励通知单
/// </summary>
/// <param name="incentiveNotice"></param>
public static void UpdateIncentiveNotice(Model.Check_IncentiveNotice incentiveNotice)
{
Model.SGGLDB db = Funs.DB;
Model.Check_IncentiveNotice newIncentiveNotice = db.Check_IncentiveNotice.FirstOrDefault(e => e.IncentiveNoticeId == incentiveNotice.IncentiveNoticeId);