fix-详情

This commit is contained in:
xl
2024-06-28 22:28:40 +08:00
parent 3252a325d6
commit 04911e2d42
4 changed files with 30 additions and 3 deletions

View File

@@ -4,6 +4,8 @@ import com.zbkj.common.page.CommonPage;
import com.zbkj.common.request.PageParamRequest;
import com.zbkj.common.request.brokerage.CommPlatOrderReturnRequest;
import com.zbkj.common.response.brokerage.CommPlatOrderReturnResponse;
import com.zbkj.common.result.CommonResult;
import com.zbkj.common.utils.CommonUtil;
import com.zbkj.service.service.CommPlatOrderReturnService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
@@ -11,6 +13,7 @@ import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
@@ -30,4 +33,11 @@ public class CommPlatOrderReturnController {
public CommonPage<CommPlatOrderReturnResponse> findPageList(@Validated CommPlatOrderReturnRequest request, @Validated PageParamRequest pageParamRequest) {
return CommonPage.restPage(commPlatOrderReturnService.findPageList(request, pageParamRequest));
}
@ApiOperation(value = "流水明细")
@RequestMapping(value = "/detail/{id}", method = RequestMethod.GET)
public CommonResult<CommPlatOrderReturnResponse> detail(@PathVariable(value = "id") String id) {
return CommonResult.success(commPlatOrderReturnService.detail(id));
}
}