ListQrCodeResDTO resDTO = issueOrderManage.listQRcode(reqDto); | ListQrCodeResDTO resDTO = issueOrderManage.listQRcode(reqDto); | ||||
return ApiResponse.of((resDTO)); | return ApiResponse.of((resDTO)); | ||||
} | } | ||||
@ApiOperation(value = "上传安装照") | |||||
@PostMapping(value = "/uploadInstallPhoto") | |||||
public ApiResponse<?> uploadInstallPhoto(@Valid @RequestBody UploadInstallPhotoReqDTO reqDto) throws ManagerException { | |||||
issueOrderManage.uploadInstallPhoto(reqDto); | |||||
return ApiResponse.success(); | |||||
} | |||||
} | } |
package cn.com.taiji.iaw.dto.issue.order; | |||||
import io.swagger.annotations.ApiModel; | |||||
import io.swagger.annotations.ApiModelProperty; | |||||
import lombok.Data; | |||||
import javax.validation.constraints.NotBlank; | |||||
/** | |||||
* @Author:ChenChao | |||||
* @Date:2025/8/21 17:52 | |||||
* @Filename:UploadInstallPhotoReqDTO | |||||
* @description: | |||||
*/ | |||||
@Data | |||||
@ApiModel(description = "上传安装照片参数") | |||||
public class UploadInstallPhotoReqDTO { | |||||
@ApiModelProperty(value = "订单编号") | |||||
@NotBlank | |||||
private String orderNo; | |||||
@NotBlank | |||||
@ApiModelProperty(value = "照片地址") | |||||
private String url; | |||||
} |
QdOrderResponseDTO qdOrderQuery(QdOrderRequestDTO dto); | QdOrderResponseDTO qdOrderQuery(QdOrderRequestDTO dto); | ||||
GetCarSignResponseDTO getCarsign(GetCarSignRequest reqDto) throws ManagerException; | GetCarSignResponseDTO getCarsign(GetCarSignRequest reqDto) throws ManagerException; | ||||
void uploadInstallPhoto(UploadInstallPhotoReqDTO reqDto) throws ManagerException; | |||||
} | } |
} | } | ||||
@Override | @Override | ||||
public SignQueryResponseDTO signQuery(SignQueryRequest request) throws ManagerException { | public SignQueryResponseDTO signQuery(SignQueryRequest request) throws ManagerException { | ||||
IssueOrderinfo orderinfo = checkOrder(request.getOrderNo()); | IssueOrderinfo orderinfo = checkOrder(request.getOrderNo()); | ||||
} | } | ||||
return responseDTO; | return responseDTO; | ||||
} | } | ||||
@Override | |||||
public void uploadInstallPhoto(UploadInstallPhotoReqDTO reqDto) throws ManagerException { | |||||
IssueOrderinfo order = checkOrder(reqDto.getOrderNo()); | |||||
IssueOrderinfoExt ext = issueOrderinfoExtRepo.findByOrderNo(order.getOrderNo()); | |||||
ext.setInstallImgUrl(reqDto.getUrl()); | |||||
issueOrderinfoExtRepo.merge(ext); | |||||
} | |||||