Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
Education
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
黄奎
Education
Commits
0cd41e26
Commit
0cd41e26
authored
Apr 22, 2022
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
dfa05204
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
24 additions
and
12 deletions
+24
-12
UserReidsCache.cs
Edu.Cache/User/UserReidsCache.cs
+4
-2
RB_ActivitySurvey.cs
Edu.Model/Entity/Mall/RB_ActivitySurvey.cs
+5
-0
RB_ActivitySurveyRepository.cs
Edu.Repository/Mall/RB_ActivitySurveyRepository.cs
+5
-4
AppletIndexController.cs
Edu.WebApi/Controllers/Applet/AppletIndexController.cs
+4
-1
SurveyController.cs
Edu.WebApi/Controllers/Goods/SurveyController.cs
+6
-5
No files found.
Edu.Cache/User/UserReidsCache.cs
View file @
0cd41e26
...
...
@@ -148,6 +148,8 @@ namespace Edu.Cache.User
Group_Id
=
model
.
Group_Id
,
ManagerIds
=
model
.
Id
.
ToString
()
});
string
JHTenantId
=
Config
.
JHTenantId
;
string
JHMallBaseId
=
Config
.
JHMallBaseId
;
userInfo
=
new
UserInfo
{
Id
=
model
.
Id
,
...
...
@@ -165,8 +167,8 @@ namespace Edu.Cache.User
UserMobile
=
model
.
Account
,
ErpToken
=
""
,
MallToken
=
""
,
JHMallBaseId
=
""
,
JHTenantId
=
""
,
JHMallBaseId
=
JHMallBaseId
,
JHTenantId
=
JHTenantId
,
GroupLogo
=
model
.
GroupLogo
,
UserIcon
=
model
.
UserIcon
,
DeptName
=
model
.
DeptName
,
...
...
Edu.Model/Entity/Mall/RB_ActivitySurvey.cs
View file @
0cd41e26
...
...
@@ -92,5 +92,10 @@ namespace Edu.Model.Entity.Mall
get
;
set
;
}
/// <summary>
/// 选择参与人员编号
/// </summary>
public
int
ActivitySurveyGuestId
{
get
;
set
;
}
}
}
Edu.Repository/Mall/RB_ActivitySurveyRepository.cs
View file @
0cd41e26
...
...
@@ -24,12 +24,13 @@ namespace Edu.Repository.Mall
/// <returns></returns>
public
List
<
RB_ActivitySurvey
>
GetActivitySurveyListRepository
(
RB_ActivitySurvey
where
,
string
StuAccountId
)
{
string
dateStr
=
Common
.
ConvertHelper
.
FormatDate
(
DateTime
.
Now
);
StringBuilder
sb
=
new
StringBuilder
();
sb
.
AppendFormat
(
$
@"
SELECT A.*
sb
.
AppendFormat
(
@"
SELECT A.*
,(SELECT Id FROM RB_ActivitySurvey_Guest WHERE GuestType=2 AND IsFinish=0 AND SurveyId=A.ID AND StartTime<'{0}' AND EndTime>'{0}' AND GuestId={1} LIMIT 1) AS ActivitySurveyGuestId
FROM RB_ActivitySurvey AS A
WHERE A.State=0 "
);
string
dateStr
=
Common
.
ConvertHelper
.
FormatDate
(
DateTime
.
Now
);
WHERE A.State=0 "
,
dateStr
,
StuAccountId
);
sb
.
AppendFormat
(
" AND A.StartDate<'{0}' AND A.EndDate>'{0}' "
,
dateStr
);
if
(!
string
.
IsNullOrEmpty
(
StuAccountId
))
{
...
...
Edu.WebApi/Controllers/Applet/AppletIndexController.cs
View file @
0cd41e26
...
...
@@ -378,9 +378,11 @@ namespace Edu.WebApi.Controllers.Applet
MallBaseId
=
JHMallBaseId
,
},
appletUserInfo
.
Id
.
ToString
());
var
ActivitySurveyId
=
0
;
var
ActivitySurveyGuestId
=
0
;
if
(
surveyList
!=
null
&&
surveyList
.
Count
>
0
)
{
ActivitySurveyId
=
surveyList
.
FirstOrDefault
().
ID
;
ActivitySurveyGuestId
=
surveyList
.
FirstOrDefault
().
ActivitySurveyGuestId
;
}
return
ApiResult
.
Success
(
""
,
new
{
...
...
@@ -397,7 +399,8 @@ namespace Edu.WebApi.Controllers.Applet
LearningGardenList
,
Words
,
BankTypeList
,
ActivitySurveyId
ActivitySurveyId
,
ActivitySurveyGuestId
,
});
}
...
...
Edu.WebApi/Controllers/Goods/SurveyController.cs
View file @
0cd41e26
...
...
@@ -36,13 +36,14 @@ namespace Edu.WebApi.Controllers.Goods
{
SurveyId
=
base
.
ParmJObj
.
GetInt
(
"SurveyId"
)
};
query
.
TenantId
=
Convert
.
ToInt32
(
base
.
UserInfo
.
JHTenantId
);
query
.
MallBaseId
=
Convert
.
ToInt32
(
base
.
UserInfo
.
JHMallBaseId
);
Int32
.
TryParse
(
base
.
UserInfo
.
JHTenantId
,
out
int
JHTenantId
);
query
.
TenantId
=
JHTenantId
;
Int32
.
TryParse
(
base
.
UserInfo
.
JHMallBaseId
,
out
int
JHMallBaseId
);
query
.
MallBaseId
=
JHMallBaseId
;
var
list
=
activitySurveyModule
.
GetActivitySurveyGuestPageModule
(
pageModel
.
PageIndex
,
pageModel
.
PageSize
,
out
long
rowsCount
,
query
);
List
<
object
>
result
=
new
List
<
object
>();
foreach
(
var
item
in
list
)
{
result
.
Add
(
new
{
item
.
Id
,
...
...
@@ -79,8 +80,8 @@ namespace Edu.WebApi.Controllers.Goods
extModel
.
Status
=
0
;
extModel
.
CreateBy
=
base
.
UserInfo
.
Id
;
extModel
.
CreateDate
=
DateTime
.
Now
;
extModel
.
TenantId
=
Convert
.
ToInt32
(
base
.
UserInfo
.
JHTenantId
);
extModel
.
MallBaseId
=
Convert
.
ToInt32
(
base
.
UserInfo
.
JHMallBaseId
);
extModel
.
TenantId
=
Convert
.
ToInt32
(
Common
.
Config
.
JHTenantId
);
extModel
.
MallBaseId
=
Convert
.
ToInt32
(
Common
.
Config
.
JHMallBaseId
);
bool
flag
=
activitySurveyModule
.
SetActivitySurveyGuestModule
(
extModel
);
return
flag
?
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