|
|
@ -31,6 +31,19 @@ public class Ghrh_ResumeTemplateServices : BaseServices<Ghrh_ResumeTemplate, Ghr |
|
|
|
#region 是否开启 |
|
|
|
#region 是否开启 |
|
|
|
public async Task<ServiceResult> SwitchPublish(long id, int? isPublish) |
|
|
|
public async Task<ServiceResult> SwitchPublish(long id, int? isPublish) |
|
|
|
{ |
|
|
|
{ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (isPublish == 0) |
|
|
|
|
|
|
|
return ServiceResult.OprateFailed("当前已开启状态 不可以取消!"); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
await Db.Updateable<Ghrh_ResumeTemplate>() |
|
|
|
|
|
|
|
.SetColumns(it => new Ghrh_ResumeTemplate() |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
IsPublish = 0, |
|
|
|
|
|
|
|
UpdateBy = App.User.ID, |
|
|
|
|
|
|
|
UpdateTime = DateTime.Now |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
.Where(it => it.IsPublish == 1) |
|
|
|
|
|
|
|
.ExecuteCommandAsync(); |
|
|
|
await Db.Updateable<Ghrh_ResumeTemplate>() |
|
|
|
await Db.Updateable<Ghrh_ResumeTemplate>() |
|
|
|
.SetColumns(it => new Ghrh_ResumeTemplate() |
|
|
|
.SetColumns(it => new Ghrh_ResumeTemplate() |
|
|
|
{ |
|
|
|
{ |
|
|
@ -2379,7 +2392,7 @@ END"; |
|
|
|
|
|
|
|
|
|
|
|
IF @doType = 'Copy' |
|
|
|
IF @doType = 'Copy' |
|
|
|
BEGIN |
|
|
|
BEGIN |
|
|
|
SET @NewResumeTemplateId = '1846788600784621570' |
|
|
|
SET @NewResumeTemplateId = '{SnowFlakeSingle.Instance.NextId()}' |
|
|
|
|
|
|
|
|
|
|
|
INSERT INTO [dbo].[Ghrh_ResumeTemplate] ( |
|
|
|
INSERT INTO [dbo].[Ghrh_ResumeTemplate] ( |
|
|
|
Id, |
|
|
|
Id, |
|
|
|