Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
H
huatu_API
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
liudong1993
huatu_API
Commits
48d6c633
Commit
48d6c633
authored
Aug 20, 2025
by
liudong1993
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.oytour.com/liudong1993/huatu_api
parents
51c95722
fc855d3e
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
28 additions
and
13 deletions
+28
-13
Rb_Travel_GuestSurvey.cs
REBORN.Model/Entity/Dmc/Rb_Travel_GuestSurvey.cs
+9
-0
Rb_Travel_GuestSurveyRepository.cs
REBORN.Repository/Dmc/Rb_Travel_GuestSurveyRepository.cs
+4
-0
SurveyService.cs
REBORN.Services.DMCService/SurveyService.cs
+14
-13
MiniProgramService.cs
REBORN.Services.SellService/MiniProgramService.cs
+1
-0
No files found.
REBORN.Model/Entity/Dmc/Rb_Travel_GuestSurvey.cs
View file @
48d6c633
...
...
@@ -81,5 +81,14 @@ namespace REBORN.Model.Entity.Dmc
set
;
}
/// <summary>
/// 集团编号
/// </summary>
public
int
?
RB_Group_Id
{
get
;
set
;
}
}
}
REBORN.Repository/Dmc/Rb_Travel_GuestSurveyRepository.cs
View file @
48d6c633
...
...
@@ -193,6 +193,10 @@ WHERE 1=1 AND A.TCState IN(3) AND A.Status IN(1,2,5)
{
sb
.
AppendFormat
(
" AND A.TCID={0}"
,
where
.
TCID
);
}
if
((
where
?.
RB_Group_Id
??
0
)
>
0
)
{
sb
.
AppendFormat
(
" AND A.RB_Group_Id={0}"
,
where
.
RB_Group_Id
);
}
if
(!
string
.
IsNullOrEmpty
(
where
.
TCNUM
))
{
sb
.
AppendFormat
(
" AND A.TCNUM LIKE @TCNUM "
);
...
...
REBORN.Services.DMCService/SurveyService.cs
View file @
48d6c633
...
...
@@ -77,9 +77,9 @@ namespace REBORN.Services.DMCService
JObject
parm
=
JObject
.
Parse
(
request
.
msg
.
ToString
());
RB_Travel_SurveyMain_Extend
model
=
new
RB_Travel_SurveyMain_Extend
()
{
MainId
=
parm
.
GetInt
(
"MainId"
),
Title
=
parm
.
GetStringValue
(
"Title"
),
SubTitle
=
parm
.
GetStringValue
(
"SubTitle"
),
MainId
=
parm
.
GetInt
(
"MainId"
),
Title
=
parm
.
GetStringValue
(
"Title"
),
SubTitle
=
parm
.
GetStringValue
(
"SubTitle"
),
};
if
(
model
.
MainId
>
0
)
{
...
...
@@ -151,7 +151,7 @@ namespace REBORN.Services.DMCService
Title
=
parm
.
GetStringValue
(
"Title"
),
};
var
data
=
module
.
GetSurveyPageModule
(
pmodel
.
pageIndex
,
pmodel
.
pageSize
,
out
long
count
,
model
);
var
list
=
data
.
Select
(
x
=>
new
{
x
.
ID
,
x
.
MainTitle
,
x
.
MainId
,
x
.
SurveyType
,
x
.
Title
,
x
.
IsShow
,
x
.
Sort
,
SurveyTypeStr
=
REBORN
.
Common
.
Plugin
.
EnumHelper
.
GetEnumName
(
x
.
SurveyType
)
}).
ToList
();
var
list
=
data
.
Select
(
x
=>
new
{
x
.
ID
,
x
.
MainTitle
,
x
.
MainId
,
x
.
SurveyType
,
x
.
Title
,
x
.
IsShow
,
x
.
Sort
,
SurveyTypeStr
=
REBORN
.
Common
.
Plugin
.
EnumHelper
.
GetEnumName
(
x
.
SurveyType
)
}).
ToList
();
pmodel
.
count
=
int
.
Parse
(
count
.
ToString
());
pmodel
.
pageData
=
list
;
return
ApiResult
.
Success
(
""
,
pmodel
);
...
...
@@ -180,6 +180,7 @@ namespace REBORN.Services.DMCService
QStartDate
=
parm
.
GetStringValue
(
"reStartDate"
),
QEndDate
=
parm
.
GetStringValue
(
"reEndDate"
),
IsScore
=
parm
.
GetInt
(
"isScore"
),
RB_Group_Id
=
userInfo
.
RB_Group_id
,
};
var
data
=
module
.
GetTravelSurveyPageModule
(
pmodel
.
pageIndex
,
pmodel
.
pageSize
,
out
long
count
,
model
);
List
<
object
>
dataList
=
new
List
<
object
>();
...
...
@@ -305,16 +306,16 @@ namespace REBORN.Services.DMCService
{
ID
=
parm
.
GetInt
(
"ID"
),
MainId
=
parm
.
GetInt
(
"MainId"
),
SurveyType
=
(
SurveyTypeEnum
)
parm
.
GetInt
(
"SurveyType"
),
Title
=
parm
.
GetStringValue
(
"Title"
),
Sort
=
parm
.
GetInt
(
"Sort"
),
IsShow
=
parm
.
GetInt
(
"IsShow"
),
SurveyOptionsList
=
new
List
<
Rb_Travel_SurveyOptions_Extend
>
(),
SurveyType
=
(
SurveyTypeEnum
)
parm
.
GetInt
(
"SurveyType"
),
Title
=
parm
.
GetStringValue
(
"Title"
),
Sort
=
parm
.
GetInt
(
"Sort"
),
IsShow
=
parm
.
GetInt
(
"IsShow"
),
SurveyOptionsList
=
new
List
<
Rb_Travel_SurveyOptions_Extend
>
(),
};
string
surveyOptionsListStr
=
parm
.
GetStringValue
(
"SurveyOptionsList"
);
if
(!
string
.
IsNullOrEmpty
(
surveyOptionsListStr
))
{
JArray
optionArray
=
JArray
.
Parse
(
surveyOptionsListStr
);
{
JArray
optionArray
=
JArray
.
Parse
(
surveyOptionsListStr
);
foreach
(
var
jItem
in
optionArray
)
{
JObject
jobj
=
JObject
.
Parse
(
Common
.
Plugin
.
JsonHelper
.
Serialize
(
jItem
));
...
...
@@ -496,7 +497,7 @@ namespace REBORN.Services.DMCService
if
(
model
!=
null
)
{
int
MainId
=
Common
.
Config
.
BusOptionId
;
var
questionList
=
module
.
GetSurveyQuestionListModule
(
new
Rb_Travel_Survey
()
{
MainId
=
MainId
});
var
questionList
=
module
.
GetSurveyQuestionListModule
(
new
Rb_Travel_Survey
()
{
MainId
=
MainId
});
foreach
(
var
item
in
questionList
)
{
int
ScoreNum
=
0
;
...
...
@@ -504,7 +505,7 @@ namespace REBORN.Services.DMCService
var
tempAnswer
=
model
.
BusSurveyDetailsList
.
Where
(
qitem
=>
qitem
.
SurveyId
==
item
.
ID
).
FirstOrDefault
();
if
(
tempAnswer
!=
null
)
{
ScoreNum
=
tempAnswer
?.
ScoreNum
??
0
;
ScoreNum
=
tempAnswer
?.
ScoreNum
??
0
;
TextContent
=
tempAnswer
?.
TextContent
??
""
;
}
if
(
item
.
SurveyType
==
SurveyTypeEnum
.
MultiSelect
||
item
.
SurveyType
==
SurveyTypeEnum
.
TheRadio
)
...
...
REBORN.Services.SellService/MiniProgramService.cs
View file @
48d6c633
...
...
@@ -1132,6 +1132,7 @@ namespace REBORN.Services.SellService
model
.
OrderID
=
modelSurvey
.
FirstOrDefault
().
OrderID
;
model
.
TCID
=
modelSurvey
.
FirstOrDefault
().
TCID
;
model
.
State
=
DateStateEnum
.
Normal
;
model
.
RB_Group_Id
=
priceModel
.
RB_Group_Id
;
var
scoreList
=
modelSurvey
.
Where
(
x
=>
x
.
SurveyType
==
Common
.
Enum
.
Dmc
.
SurveyTypeEnum
.
Score
);
if
(
scoreList
!=
null
&&
scoreList
.
Any
())
{
...
...
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