Compare commits

..

No commits in common. "e8f98246f04b4a2e9a2dae52883017b7e1d8c594" and "09e177ee79d008605f6943deec977c8325916665" have entirely different histories.

1 changed files with 6 additions and 10 deletions

View File

@ -15,23 +15,23 @@ import com.bonus.canteen.core.allocation.advise.model.AllocPageDecorationModel;
import com.bonus.canteen.core.allocation.advise.service.AllocPageDecorationService; import com.bonus.canteen.core.allocation.advise.service.AllocPageDecorationService;
import com.bonus.canteen.core.allocation.advise.service.BasicsCanteenEvaluateService; import com.bonus.canteen.core.allocation.advise.service.BasicsCanteenEvaluateService;
import com.bonus.canteen.core.allocation.constants.CanteenConstants; import com.bonus.canteen.core.allocation.constants.CanteenConstants;
import com.bonus.common.core.exception.ServiceException;
import com.bonus.common.core.web.domain.AjaxResult; import com.bonus.common.core.web.domain.AjaxResult;
import com.bonus.common.houqin.utils.BRequest;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Lazy; import org.springframework.context.annotation.Lazy;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpServletResponse;
import javax.validation.Valid; import javax.validation.Valid;
import java.io.IOException; import java.io.IOException;
import java.util.Collections; import java.util.Collections;
import java.util.List; import java.util.List;
import java.util.Objects;
@RestController @RestController
@RequestMapping({"/api/v1/canteen/evaluate"}) @RequestMapping({"/api/v1/canteen/evaluate"})
@ -64,12 +64,8 @@ public class BasicsCanteenEvaluateController {
@ApiOperation("查询单条食堂评价详情") @ApiOperation("查询单条食堂评价详情")
@PostMapping({"/get-evaluate-detail"}) @PostMapping({"/get-evaluate-detail"})
public CanteenEvaluateDetailModel getEvaluateDetail(@RequestBody BRequest<String> request) { public CanteenEvaluateDetailModel getEvaluateDetail(@RequestBody Long evaluateId) {
String evaluateId = request.getContent(); return this.basicsCanteenEvaluateService.getEvaluateDetail(evaluateId);
if(Objects.isNull(evaluateId)) {
throw new ServiceException("评价编号不能为空");
}
return this.basicsCanteenEvaluateService.getEvaluateDetail(Long.valueOf(evaluateId));
} }
@ApiOperation("分页查询食堂评价统计") @ApiOperation("分页查询食堂评价统计")