Commit 5442dbfb authored by curryft's avatar curryft

解决冲突

parent 92ca92ee
...@@ -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,
......
...@@ -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);
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment