return ApiResponse.of((resDTO)); | return ApiResponse.of((resDTO)); | ||||
} | } | ||||
/** | |||||
* 此接口插件调用,后续插件需要订单信息可通过此接口扩展 | |||||
* @param reqDto | |||||
* @return | |||||
* @throws ManagerException | |||||
*/ | |||||
@ApiOperation(value = "插件检测是否需要安装照") | |||||
@PostMapping(value = "/upInPhotoCheck") | |||||
public ApiResponse<UpInPhotoCheckResDTO> upInPhotoCheck(@Valid @RequestBody UpInPhotoCheckReqDTO reqDto) throws ManagerException { | |||||
UpInPhotoCheckResDTO resDTO = issueOrderManage.upInPhotoCheck(reqDto); | |||||
return ApiResponse.of(resDTO); | |||||
} | |||||
@ApiOperation(value = "上传安装照") | @ApiOperation(value = "上传安装照") | ||||
@PostMapping(value = "/uploadInstallPhoto") | @PostMapping(value = "/uploadInstallPhoto") | ||||
public ApiResponse<?> uploadInstallPhoto(@Valid @RequestBody UploadInstallPhotoReqDTO reqDto) throws ManagerException { | public ApiResponse<?> uploadInstallPhoto(@Valid @RequestBody UploadInstallPhotoReqDTO reqDto) throws ManagerException { |
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 UpInPhotoCheckReqDTO { | |||||
@ApiModelProperty(value = "订单编号") | |||||
@NotBlank | |||||
private String orderNo; | |||||
} |
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 UpInPhotoCheckResDTO { | |||||
@ApiModelProperty(value = "是否需要上传 true是,false否") | |||||
private Boolean upInFlag; | |||||
} |
GetCarSignResponseDTO getCarsign(GetCarSignRequest reqDto) throws ManagerException; | GetCarSignResponseDTO getCarsign(GetCarSignRequest reqDto) throws ManagerException; | ||||
void uploadInstallPhoto(UploadInstallPhotoReqDTO reqDto) throws ManagerException; | void uploadInstallPhoto(UploadInstallPhotoReqDTO reqDto) throws ManagerException; | ||||
UpInPhotoCheckResDTO upInPhotoCheck(UpInPhotoCheckReqDTO reqDto) throws ManagerException; | |||||
} | } |
issueOrderinfoExtRepo.merge(ext); | issueOrderinfoExtRepo.merge(ext); | ||||
} | } | ||||
@Override | |||||
public UpInPhotoCheckResDTO upInPhotoCheck(UpInPhotoCheckReqDTO reqDto) throws ManagerException { | |||||
IssueOrderinfo orderinfo = checkOrder(reqDto.getOrderNo()); | |||||
UpInPhotoCheckResDTO resDTO = new UpInPhotoCheckResDTO(); | |||||
//线上需要上传安装照片 | |||||
resDTO.setUpInFlag(orderinfo.getPromotionModes() == 1); | |||||
return resDTO; | |||||
} | |||||
//校验发行订单是否存在 | //校验发行订单是否存在 |