@@ -137,4 +137,17 @@ public class OrderController extends MyValidController { | |||
String msg = issueOrderManage.returnApply(reqDto); | |||
return ApiResponse.of(msg); | |||
} | |||
// @ApiOperation(value = "17.发行确认收货") | |||
// @PostMapping(value = "/returnApply") | |||
// public ApiResponse<String> returnApply(@Valid @RequestBody returnApplyReqDTO reqDto) throws ManagerException { | |||
// String msg = issueOrderManage.returnApply(reqDto); | |||
// return ApiResponse.of(msg); | |||
// } | |||
@ApiOperation(value = "18.订单详情") | |||
@PostMapping(value = "/orderDetailQuery") | |||
public ApiResponse<OrderDetailResDto> orderDetailQuery(@Valid @RequestBody OrderDetailReqDto reqDto) throws ManagerException { | |||
OrderDetailResDto resDto = issueOrderManage.orderDetailQuery(reqDto); | |||
return ApiResponse.of(resDto); | |||
} | |||
} |
@@ -0,0 +1,20 @@ | |||
package cn.com.taiji.iaw.dto.issue.order; | |||
import cn.com.taiji.core.dto.AbstractBizRequestDTO; | |||
import io.swagger.annotations.ApiModel; | |||
import io.swagger.annotations.ApiModelProperty; | |||
import lombok.Data; | |||
/** | |||
* @Author:ChenChao | |||
* @Date:2025/7/16 16:24 | |||
* @Filename:orderDetailReqDto | |||
* @description: | |||
*/ | |||
@Data | |||
@ApiModel(description = "订单详情") | |||
public class OrderDetailReqDto extends AbstractBizRequestDTO { | |||
@ApiModelProperty(value = "订单编号") | |||
private String orderNo; | |||
} |
@@ -0,0 +1,14 @@ | |||
package cn.com.taiji.iaw.dto.issue.order; | |||
import cn.com.taiji.core.entity.issue.IssueOrderinfo; | |||
import lombok.Data; | |||
/** | |||
* @Author:ChenChao | |||
* @Date:2025/7/16 16:25 | |||
* @Filename:orderDetailResDto | |||
* @description: | |||
*/ | |||
@Data | |||
public class OrderDetailResDto extends IssueOrderinfo { | |||
} |
@@ -48,4 +48,6 @@ public interface IssueOrderManage { | |||
String returnApply(returnApplyReqDTO reqDto) throws ManagerException; | |||
void agreeProtocol(AgreeProtocolReqDTO reqDto) throws ManagerException; | |||
OrderDetailResDto orderDetailQuery(OrderDetailReqDto reqDto) throws ManagerException; | |||
} |
@@ -199,6 +199,8 @@ public class IssueOrderManageImpl extends AbstractIawManager implements IssueOrd | |||
sysPersistOperateLog(OperateType.ORDER_AGREEPROTOCOL, order.getId(), reqDto.getOrderSource(), findOpenIdByToken(reqDto.getAccessToken()), "同意协议"); | |||
} | |||
@Override | |||
public PayQueryResponseDTO payQuery(PayQueryRequestDTO reqDto) throws ManagerException { | |||
reqDto.validate(); | |||
@@ -288,6 +290,12 @@ public class IssueOrderManageImpl extends AbstractIawManager implements IssueOrd | |||
return response.getMsg(); | |||
} | |||
@Override | |||
public OrderDetailResDto orderDetailQuery(OrderDetailReqDto reqDto) throws ManagerException { | |||
IssueOrderinfo orderinfo = checkOrder(reqDto.getOrderNo()); | |||
OrderDetailResDto resDto = copyProperties(orderinfo, new OrderDetailResDto()); | |||
return resDto; | |||
} | |||
//校验发行订单是否存在 | |||
private IssueOrderinfo checkOrder(String orderNo) throws ManagerException { |