Commit 6014a4ed by zhouhaibao

[+]优秀案例审核

1 parent c7824532
......@@ -47,6 +47,9 @@ public class ExcellentCaseDetailDTO implements Serializable {
@ApiModelProperty(notes = "接待结束时间")
private Date receptionEndTime;
@ApiModelProperty(notes = "接待时间")
private String receptionTime;
@ApiModelProperty(notes = "接待状态")
private Integer receptionStatus;
......
......@@ -7,7 +7,6 @@ import cn.com.glsx.dj.supervisor.dto.ExcellentCaseSubmitDTO;
import cn.com.glsx.framework.core.annotation.*;
import cn.com.glsx.framework.core.beans.rpc.RpcPagination;
import cn.com.glsx.framework.core.beans.rpc.RpcResponse;
import com.github.pagehelper.Page;
import java.util.List;
......@@ -50,7 +49,7 @@ public interface ExcellentCaseReviewRemote {
@ApiMethod("查询优秀案例列表")
@ApiParams({@ApiParam(name = "request", notes = "查询参数", dataType = ApiParam.DataTypeEnum.OBJECT, required = true)})
@ApiResponse("优秀案例列表")
RpcResponse<Page<ExcellentCaseDetailDTO>> queryExcellentCaseList(RpcPagination<ExcellentCaseReviewQueryDTO> request);
RpcResponse<RpcPagination<ExcellentCaseDetailDTO>> queryExcellentCaseList(RpcPagination<ExcellentCaseReviewQueryDTO> request);
/**
* 查询优秀案例详情
......
......@@ -69,10 +69,10 @@ public class ExcellentCaseReviewRemoteImpl implements ExcellentCaseReviewRemote
* @return RPC响应,包含分页的案例列表
*/
@Override
public RpcResponse<Page<ExcellentCaseDetailDTO>> queryExcellentCaseList(RpcPagination<ExcellentCaseReviewQueryDTO> request) {
public RpcResponse<RpcPagination<ExcellentCaseDetailDTO>> queryExcellentCaseList(RpcPagination<ExcellentCaseReviewQueryDTO> request) {
try {
Page result = excellentCaseReviewService.queryExcellentCaseList(request);
return RpcResponse.success(result);
Page<ExcellentCaseDetailDTO> result = excellentCaseReviewService.queryExcellentCaseList(request);
return RpcResponse.success(RpcPagination.copyPage(result));
} catch (RpcServiceException e) {
log.error("cn.com.glsx.dj.supervisor.remote.ExcellentCaseReviewRemoteImpl.queryExcellentCaseList error {}", e);
return RpcResponse.error(e.getError(), e.getMessage());
......
......@@ -75,7 +75,8 @@
t1.car_brand,
t1.car_model,
t1.reception_start_time,
t1.reception_end_time,
t1.reception_end_time,
date(t1.reception_start_time) as reception_date,
t1.reception_status,
t1.staff_uuid,
t2.recording_url,
......
......@@ -38,6 +38,12 @@ public class ExcellentCaseReviewRemoteImplTest extends BaseServiceTest {
public void testQueryExcellentCaseList() {
RpcPagination<ExcellentCaseReviewQueryDTO> request = new RpcPagination<>();
ExcellentCaseReviewQueryDTO condition = new ExcellentCaseReviewQueryDTO();
condition.setStaffName("谢海旭");
condition.setMerchantId(1);
condition.setMerchantName("商户1");
condition.setCustomerType("普通");
condition.setSubmitterName("谢海旭");
condition.setReviewStatus(0);
request.setCondition( condition);
RpcResponse response = excellentCaseReviewRemote.queryExcellentCaseList(request);
System.out.println(JSON.toJSONString(response));
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!