Commit 6014a4ed by zhouhaibao

[+]优秀案例审核

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