Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mall.oytour.com
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
黄奎
mall.oytour.com
Commits
479b6b5f
Commit
479b6b5f
authored
Apr 22, 2022
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
a645b3c9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
23 deletions
+16
-23
SurveyModule.cs
Mall.Module.MarketingCenter/SurveyModule.cs
+6
-19
AppletEducationController.cs
...WebApi/Controllers/Education/AppletEducationController.cs
+10
-4
No files found.
Mall.Module.MarketingCenter/SurveyModule.cs
View file @
479b6b5f
...
@@ -568,30 +568,17 @@ namespace Mall.Module.MarketingCenter
...
@@ -568,30 +568,17 @@ namespace Mall.Module.MarketingCenter
#
region
活动参与人员
#
region
活动参与人员
/// <summary>
/// <summary>
///
新增修改活动参与人员
///
修改活动参与人员为已完成
/// </summary>
/// </summary>
/// <param name="model"></param>
/// <param name="model"></param>
/// <returns></returns>
/// <returns></returns>
public
bool
SetActivitySurveyGuestModule
(
RB_ActivitySurvey_Guest_Extend
model
)
public
bool
SetActivitySurveyGuestModule
(
int
Id
)
{
{
bool
flag
=
false
;
Dictionary
<
string
,
object
>
fileds
=
new
Dictionary
<
string
,
object
>()
if
(
model
.
Id
>
0
)
{
Dictionary
<
string
,
object
>
fileds
=
new
Dictionary
<
string
,
object
>()
{
{
nameof
(
RB_ActivitySurvey_Guest_Extend
.
GuestType
),
model
.
GuestType
},
{
nameof
(
RB_ActivitySurvey_Guest_Extend
.
GuestId
),
model
.
GuestId
},
{
nameof
(
RB_ActivitySurvey_Guest_Extend
.
StartTime
),
model
.
StartTime
},
{
nameof
(
RB_ActivitySurvey_Guest_Extend
.
EndTime
),
model
.
EndTime
},
};
flag
=
activitySurvey_GuestRepository
.
Update
(
fileds
,
new
WhereHelper
(
nameof
(
RB_ActivitySurvey_Guest_Extend
.
Id
),
model
.
Id
));
}
else
{
{
var
newId
=
activitySurvey_GuestRepository
.
Insert
(
model
);
{
nameof
(
RB_ActivitySurvey_Guest_Extend
.
IsFinish
),
1
},
model
.
Id
=
newId
;
};
flag
=
newId
>
0
;
bool
flag
=
activitySurvey_GuestRepository
.
Update
(
fileds
,
new
WhereHelper
(
nameof
(
RB_ActivitySurvey_Guest_Extend
.
Id
),
Id
));
}
return
flag
;
return
flag
;
}
}
...
...
Mall.WebApi/Controllers/Education/AppletEducationController.cs
View file @
479b6b5f
...
@@ -1244,10 +1244,10 @@ namespace Mall.WebApi.Controllers.Education
...
@@ -1244,10 +1244,10 @@ namespace Mall.WebApi.Controllers.Education
}
}
else
else
{
{
if
(
GuestSurvey
.
Where
(
x
=>
x
.
UserId
==
userInfo
.
EduStudentId
&&
x
.
UserType
==
2
).
Count
()
>
0
)
//
if (GuestSurvey.Where(x => x.UserId == userInfo.EduStudentId && x.UserType == 2).Count() > 0)
{
//
{
return
ApiResult
.
Failed
(
"请勿重复参与问卷调查"
);
//
return ApiResult.Failed("请勿重复参与问卷调查");
}
//
}
model
.
UserId
=
userInfo
.
EduStudentId
;
model
.
UserId
=
userInfo
.
EduStudentId
;
}
}
model
.
TenantId
=
userInfo
.
TenantId
;
model
.
TenantId
=
userInfo
.
TenantId
;
...
@@ -1316,7 +1316,13 @@ namespace Mall.WebApi.Controllers.Education
...
@@ -1316,7 +1316,13 @@ namespace Mall.WebApi.Controllers.Education
}
}
model
.
SurveyOptionsList
.
Add
(
modelSurveyOptions
);
model
.
SurveyOptionsList
.
Add
(
modelSurveyOptions
);
}
}
int
ActivitySurveyGuestId
=
jObj
.
GetInt
(
"ActivitySurveyGuestId"
);
int
flag
=
surveyModule
.
SetGuestSurvey
(
model
);
int
flag
=
surveyModule
.
SetGuestSurvey
(
model
);
if
(
flag
>
0
&&
model
.
UserType
==
2
)
{
surveyModule
.
SetActivitySurveyGuestModule
(
ActivitySurveyGuestId
);
}
return
flag
>
0
?
ApiResult
.
Success
()
:
ApiResult
.
Failed
(
"问卷调查提交失败"
);
return
flag
>
0
?
ApiResult
.
Success
()
:
ApiResult
.
Failed
(
"问卷调查提交失败"
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment