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
5442dbfb
Commit
5442dbfb
authored
Jan 18, 2018
by
curryft
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
解决冲突
parent
92ca92ee
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
15 deletions
+2
-15
TQuestionController.java
...ft/business/tquestion/controller/TQuestionController.java
+0
-10
TQuestionRepository.java
...g/rcisoft/business/tquestion/dao/TQuestionRepository.java
+2
-5
No files found.
src/main/java/org/rcisoft/business/tquestion/controller/TQuestionController.java
View file @
5442dbfb
...
@@ -42,18 +42,8 @@ public class TQuestionController extends PaginationController<TQuestion> {
...
@@ -42,18 +42,8 @@ public class TQuestionController extends PaginationController<TQuestion> {
//@ApiImplicitParams({@ApiImplicitParam(name = "businessId", value = "businessId", required = false, dataType = "varchar")})
//@ApiImplicitParams({@ApiImplicitParam(name = "businessId", value = "businessId", required = false, dataType = "varchar")})
@PostMapping
@PostMapping
@PreAuthorize
(
"hasRole('ROLE_1002')"
)
@PreAuthorize
(
"hasRole('ROLE_1002')"
)
<<<<<<<
.
merge_file_oAfXkc
public
Result
add
(
@Valid
TQuestion
tQuestion
,
BindingResult
bindingResult
)
{
if
(
bindingResult
.
hasErrors
())
{
throw
new
ServiceException
(
ResultServiceEnums
.
PARAMETER_ERROR
.
getCode
(),
bindingResult
.
getFieldError
().
getDefaultMessage
());
}
tQuestion
.
setToken
(
getToken
());
PersistModel
data
=
tQuestionServiceImpl
.
save
(
tQuestion
);
=======
public
Result
add
(
@Valid
TQuestion
tQuestion
,
String
[]
questionOptions
)
{
public
Result
add
(
@Valid
TQuestion
tQuestion
,
String
[]
questionOptions
)
{
PersistModel
data
=
tQuestionServiceImpl
.
save
(
tQuestion
,
questionOptions
);
PersistModel
data
=
tQuestionServiceImpl
.
save
(
tQuestion
,
questionOptions
);
>>>>>>>
.
merge_file_cs5OSX
return
Result
.
builder
(
data
,
return
Result
.
builder
(
data
,
MessageConstant
.
MESSAGE_ALERT_SUCCESS
,
MessageConstant
.
MESSAGE_ALERT_SUCCESS
,
MessageConstant
.
MESSAGE_ALERT_ERROR
,
MessageConstant
.
MESSAGE_ALERT_ERROR
,
...
...
src/main/java/org/rcisoft/business/tquestion/dao/TQuestionRepository.java
View file @
5442dbfb
...
@@ -42,14 +42,11 @@ public interface TQuestionRepository extends BaseMapper<TQuestion> {
...
@@ -42,14 +42,11 @@ public interface TQuestionRepository extends BaseMapper<TQuestion> {
+
"where 1=1"
+
"where 1=1"
+
"<if test=\"delFlag !=null and delFlag != '' \">and del_flag = #{delFlag} </if> "
+
"<if test=\"delFlag !=null and delFlag != '' \">and del_flag = #{delFlag} </if> "
+
"<if test=\"flag !=null and flag != '' \">and flag = #{flag} </if> "
+
"<if test=\"flag !=null and flag != '' \">and flag = #{flag} </if> "
<<<<<<<
.
merge_file_ontliA
+
"<if test=\"business_id != null and business_id != ''\">and business_id = #{business_id}</if><script>"
)
=======
+
"<if test=\"business_id != null and business_id != ''\">and business_id = #{business_id}</if></script>"
)
+
"<if test=\"business_id != null and business_id != ''\">and business_id = #{business_id}</if></script>"
)
>>>>>>>
.
merge_file_LlwUcr
List
<
TQuestion
>
queryTQuestions
(
TQuestion
tQuestion
);
List
<
TQuestion
>
queryTQuestions
(
TQuestion
tQuestion
);
@Update
(
"<script> update t_question set del_flag = 1 and flag = 0 where FIND_IN_SET(business_id,idInfoList)<script>"
)
@Update
(
"<script> update t_question set del_flag = 1 and flag = 0 where FIND_IN_SET(business_id,idInfoList)<
/
script>"
)
int
deleteByIds
(
String
idInfoList
);
int
deleteByIds
(
String
idInfoList
);
}
}
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