String msg = issueOrderManage.returnApply(reqDto); | String msg = issueOrderManage.returnApply(reqDto); | ||||
return ApiResponse.of(msg); | 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); | |||||
} | |||||
} | } |
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; | |||||
} |
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 { | |||||
} |
String returnApply(returnApplyReqDTO reqDto) throws ManagerException; | String returnApply(returnApplyReqDTO reqDto) throws ManagerException; | ||||
void agreeProtocol(AgreeProtocolReqDTO reqDto) throws ManagerException; | void agreeProtocol(AgreeProtocolReqDTO reqDto) throws ManagerException; | ||||
OrderDetailResDto orderDetailQuery(OrderDetailReqDto reqDto) throws ManagerException; | |||||
} | } |
sysPersistOperateLog(OperateType.ORDER_AGREEPROTOCOL, order.getId(), reqDto.getOrderSource(), findOpenIdByToken(reqDto.getAccessToken()), "同意协议"); | sysPersistOperateLog(OperateType.ORDER_AGREEPROTOCOL, order.getId(), reqDto.getOrderSource(), findOpenIdByToken(reqDto.getAccessToken()), "同意协议"); | ||||
} | } | ||||
@Override | @Override | ||||
public PayQueryResponseDTO payQuery(PayQueryRequestDTO reqDto) throws ManagerException { | public PayQueryResponseDTO payQuery(PayQueryRequestDTO reqDto) throws ManagerException { | ||||
reqDto.validate(); | reqDto.validate(); | ||||
return response.getMsg(); | 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 { | private IssueOrderinfo checkOrder(String orderNo) throws ManagerException { |