|
|
@ -1,9 +1,12 @@ |
|
|
|
package com.ruoyi.applet.contoller; |
|
|
|
|
|
|
|
|
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
|
|
|
import com.cyl.manager.staff.domain.vo.StaffVO; |
|
|
|
import com.cyl.manager.ums.mapper.MemberMapper; |
|
|
|
import com.ruoyi.applet.mallpojo.TeacherListRequest; |
|
|
|
import com.ruoyi.common.core.controller.BaseController; |
|
|
|
import com.ruoyi.common.core.domain.AjaxResult; |
|
|
|
import com.ruoyi.common.core.page.TableDataInfo; |
|
|
|
import com.ruoyi.model.domain.*; |
|
|
|
import com.ruoyi.model.service.*; |
|
|
@ -11,10 +14,7 @@ import io.swagger.annotations.Api; |
|
|
|
import io.swagger.annotations.ApiOperation; |
|
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.web.bind.annotation.GetMapping; |
|
|
|
import org.springframework.web.bind.annotation.PathVariable; |
|
|
|
import org.springframework.web.bind.annotation.RequestMapping; |
|
|
|
import org.springframework.web.bind.annotation.RestController; |
|
|
|
import org.springframework.web.bind.annotation.*; |
|
|
|
|
|
|
|
import java.text.SimpleDateFormat; |
|
|
|
import java.util.ArrayList; |
|
|
@ -37,6 +37,10 @@ public class ApiMallUserTeacherController extends BaseController { |
|
|
|
private IAppletAddressService appletAddressService; |
|
|
|
@Autowired |
|
|
|
private IAppletOutDateService appletOutDateService; |
|
|
|
@Autowired |
|
|
|
private IOmsOrderEvaluationService omsOrderEvaluationService; |
|
|
|
@Autowired |
|
|
|
private MemberMapper memberMapper; |
|
|
|
|
|
|
|
//mall-首页周边伴宠师 |
|
|
|
@ApiOperation("mall-首页周边伴宠师接口") |
|
|
@ -294,6 +298,21 @@ public class ApiMallUserTeacherController extends BaseController { |
|
|
|
return appUsers; |
|
|
|
} |
|
|
|
|
|
|
|
//mall端-查询指定伴宠师近期评价 |
|
|
|
@ApiOperation("mall端-查询指定伴宠师近期评价") |
|
|
|
@GetMapping("/getTeacherEvaluate") |
|
|
|
public AjaxResult getTeacherEvaluate(@RequestParam String id) { |
|
|
|
|
|
|
|
Page<OmsOrderEvaluation> page = omsOrderEvaluationService.lambdaQuery() |
|
|
|
.eq(OmsOrderEvaluation::getTechnicianId, id) |
|
|
|
.page(new Page<>(1, 10)); |
|
|
|
|
|
|
|
for (OmsOrderEvaluation record : page.getRecords()) { |
|
|
|
record.setMember(memberMapper.selectById(record.getMemberId())); |
|
|
|
} |
|
|
|
|
|
|
|
return AjaxResult.success(page); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|