Ver código fonte

ias - core 释放车牌审核协议

master
chenchaod 3 semanas atrás
pai
commit
3e818c8c6d

+ 1
- 0
gly-base-core/src/main/java/cn/com/taiji/core/model/comm/protocol/ias/ass/AssServiceCmd.java Ver arquivo

@@ -17,6 +17,7 @@ public enum AssServiceCmd implements SignServiceCommand {
RESIGN("恢复签约", ResignRequest.class),
PLATEOCCUPYQUERY("车牌占用查询",PlateOccupyQueryRequest.class),
RELEASEPLATEAPPLY("解除车牌占用申请",ReleasePlateApplyRequest.class),
RELEASEPLATEREVIEW("解除车牌占用审批",ReleasePlateReviewRequest.class),
;

private final String value;

+ 37
- 0
gly-base-core/src/main/java/cn/com/taiji/core/model/comm/protocol/ias/ass/ReleasePlateReviewRequest.java Ver arquivo

@@ -0,0 +1,37 @@
package cn.com.taiji.core.model.comm.protocol.ias.ass;

import cn.com.taiji.core.model.comm.protocol.AbstractSignTypeRequest;
import cn.com.taiji.core.model.comm.protocol.valid.ErrorMsgBuilder;
import lombok.Getter;
import lombok.Setter;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
* @Author:ChenChao
* @Date:2025/8/9 20:23
* @Filename:ReleasePlateReviewRequest
* @description: 解除车牌占用审核请求
*/
@Getter
@Setter
public class ReleasePlateReviewRequest extends AbstractSignTypeRequest<ReleasePlateReviewResponse> {

protected ReleasePlateReviewRequest() {
super(AssServiceCmd.RELEASEPLATEREVIEW);
}

@NotBlank
private String orderNo;//售后订单编号

@NotNull
private Integer pass;//是否通过 0否1是

private String failReason;//审核不通过原因

public void relatedValid(ErrorMsgBuilder builder) {
if (pass == 0) {
builder.validFieldTrue("failReason", hasText(failReason), "审核不通过时,审核不通过原因不能为空");
}
}
}

+ 23
- 0
gly-base-core/src/main/java/cn/com/taiji/core/model/comm/protocol/ias/ass/ReleasePlateReviewResponse.java Ver arquivo

@@ -0,0 +1,23 @@
package cn.com.taiji.core.model.comm.protocol.ias.ass;

import cn.com.taiji.core.model.comm.protocol.AbstractSignTypeResponse;
import lombok.Getter;
import lombok.Setter;

import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;

/**
* @Author:ChenChao
* @Date:2025/8/9 20:24
* @Filename:ReleasePlateReviewResponse
* @description: 解除车牌占用审批响应
*/
@Getter
@Setter
public class ReleasePlateReviewResponse extends AbstractSignTypeResponse {
private String id;//售后表id(返给调用者记录日志)

private String info = "成功.";
private String receiveTime = LocalDateTime.now().format(DateTimeFormatter.ofPattern("yyyy-MM-dd'T'HH:mm:ss")); // 接受时间
}

+ 1
- 0
zhywpt-service-ias/src/main/java/cn/com/taiji/ias/dict/DataType.java Ver arquivo

@@ -34,6 +34,7 @@ public enum DataType {

PLATE_OCCUPY_QUERY("plateOccupyQuery", IasServiceType.ASS, AssServiceCmd.PLATEOCCUPYQUERY),
RELEASE_PLATE_APPLY("releasePlateApply", IasServiceType.ASS, AssServiceCmd.RELEASEPLATEAPPLY),
RELEASE_PLATE_REVIEW("releasePlateReview", IasServiceType.ASS, AssServiceCmd.RELEASEPLATEREVIEW),


;

zhywpt-service-ias/src/main/java/cn/com/taiji/ias/manager/device/DeviceLossManager.java → zhywpt-service-ias/src/main/java/cn/com/taiji/ias/manager/ass/device/DeviceLossManager.java Ver arquivo

@@ -1,4 +1,4 @@
package cn.com.taiji.ias.manager.device;
package cn.com.taiji.ias.manager.ass.device;

import cn.com.taiji.common.manager.net.http.ServiceHandleException;
import cn.com.taiji.core.entity.ass.AssDeviceLoss;

+ 0
- 2
zhywpt-service-ias/src/main/java/cn/com/taiji/ias/manager/ass/releasePlate/ReleasePlateApplyManager.java Ver arquivo

@@ -12,13 +12,11 @@ import cn.com.taiji.core.entity.dict.ass.RelieveStatus;
import cn.com.taiji.core.entity.dict.basic.*;
import cn.com.taiji.core.model.comm.protocol.ias.ass.ReleasePlateApplyRequest;
import cn.com.taiji.core.model.comm.protocol.ias.ass.ReleasePlateApplyResponse;
import cn.com.taiji.core.model.comm.protocol.ias.vaild.VehiclePlateCheckRequest;
import cn.com.taiji.core.model.comm.protocol.ias.vaild.VehiclePlateCheckResponse;
import cn.com.taiji.core.model.comm.protocol.valid.ErrorMsgBuilder;
import cn.com.taiji.core.repo.jpa.ass.AssVehicleRelieveRepo;
import cn.com.taiji.ias.dict.DataType;
import cn.com.taiji.ias.manager.ass.AbstractAssManager;
import cn.com.taiji.ias.manager.valid.VehiclePlateCheckManager;
import cn.com.taiji.ias.model.ServiceLogEvent;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

+ 45
- 0
zhywpt-service-ias/src/main/java/cn/com/taiji/ias/manager/ass/releasePlate/ReleasePlateReviewManager.java Ver arquivo

@@ -0,0 +1,45 @@
package cn.com.taiji.ias.manager.ass.releasePlate;

import cn.com.taiji.common.manager.net.http.ServiceHandleException;
import cn.com.taiji.core.model.comm.protocol.AbstractSignTypeResponse;
import cn.com.taiji.core.model.comm.protocol.ias.ass.ReleasePlateReviewRequest;
import cn.com.taiji.core.model.comm.protocol.valid.ErrorMsgBuilder;
import cn.com.taiji.ias.dict.DataType;
import cn.com.taiji.ias.manager.ass.AbstractAssManager;
import cn.com.taiji.ias.model.ServiceLogEvent;
import org.springframework.stereotype.Service;
import java.io.IOException;
import java.util.Map;

/**
* @Author:ChenChao
* @Date:2025/8/9 20:32
* @Filename:ReleasePlateReviewManager
* @description: 释放车牌审批
*/
@Service
public class ReleasePlateReviewManager extends AbstractAssManager<ReleasePlateReviewRequest> {

public ReleasePlateReviewManager() {
super(DataType.RELEASE_PLATE_REVIEW);
}
@Override
protected String getDataId(ReleasePlateReviewRequest req) {
return "";
}

@Override
protected void formatValidateInternal(ErrorMsgBuilder builder, ReleasePlateReviewRequest req, ServiceLogEvent event, Map<String, Object> dataStream) throws ServiceHandleException {

}

@Override
protected void businessValidateInternal(ErrorMsgBuilder builder, ReleasePlateReviewRequest req, ServiceLogEvent event, Map<String, Object> dataStream) throws ServiceHandleException {

}

@Override
protected AbstractSignTypeResponse getRes(ReleasePlateReviewRequest req, ServiceLogEvent event, Map<String, Object> dataStream) throws ServiceHandleException, IOException {
return null;
}
}

+ 3
- 3
zhywpt-service-ias/src/main/java/cn/com/taiji/ias/manager/handler/AssServiceHandler.java Ver arquivo

@@ -6,7 +6,7 @@ import cn.com.taiji.core.model.comm.protocol.ias.ass.vehicleInfoChange.VehicleCh
import cn.com.taiji.ias.manager.ass.releasePlate.PlateOccupyQueryManager;
import cn.com.taiji.ias.manager.ass.releasePlate.ReleasePlateApplyManager;
import cn.com.taiji.ias.manager.ass.resign.ResignManager;
import cn.com.taiji.ias.manager.device.DeviceLossManager;
import cn.com.taiji.ias.manager.ass.device.DeviceLossManager;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.zgglyun.common.model.AbstractHttpRequestInfo;
@@ -54,8 +54,8 @@ public class AssServiceHandler extends AbstractIasServiceHandler<AssServiceCmd>
switch (cmd) {
case RESIGN:
return resignManager.serviceHandle((ResignRequest) request);
// case PLATEOCCUPYQUERY:
// return plateOccupyQueryManager.serviceHandle((PlateOccupyQueryRequest) request, jsonReq.getIfCode(), jsonReq.getReqId(), reqInfo);
case PLATEOCCUPYQUERY:
return plateOccupyQueryManager.serviceHandle((PlateOccupyQueryRequest) request, jsonReq.getIfCode(), jsonReq.getReqId(), reqInfo);
case RELEASEPLATEAPPLY:
return releasePlateApplyManager.serviceHandle((ReleasePlateApplyRequest) request, jsonReq.getIfCode(), jsonReq.getReqId(), reqInfo);
case LOSS:

Carregando…
Cancelar
Salvar