RESIGN("恢复签约", ResignRequest.class), | RESIGN("恢复签约", ResignRequest.class), | ||||
PLATEOCCUPYQUERY("车牌占用查询",PlateOccupyQueryRequest.class), | PLATEOCCUPYQUERY("车牌占用查询",PlateOccupyQueryRequest.class), | ||||
RELEASEPLATEAPPLY("解除车牌占用申请",ReleasePlateApplyRequest.class), | RELEASEPLATEAPPLY("解除车牌占用申请",ReleasePlateApplyRequest.class), | ||||
RELEASEPLATEREVIEW("解除车牌占用审批",ReleasePlateReviewRequest.class), | |||||
; | ; | ||||
private final String value; | private final String value; |
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), "审核不通过时,审核不通过原因不能为空"); | |||||
} | |||||
} | |||||
} |
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")); // 接受时间 | |||||
} |
PLATE_OCCUPY_QUERY("plateOccupyQuery", IasServiceType.ASS, AssServiceCmd.PLATEOCCUPYQUERY), | PLATE_OCCUPY_QUERY("plateOccupyQuery", IasServiceType.ASS, AssServiceCmd.PLATEOCCUPYQUERY), | ||||
RELEASE_PLATE_APPLY("releasePlateApply", IasServiceType.ASS, AssServiceCmd.RELEASEPLATEAPPLY), | RELEASE_PLATE_APPLY("releasePlateApply", IasServiceType.ASS, AssServiceCmd.RELEASEPLATEAPPLY), | ||||
RELEASE_PLATE_REVIEW("releasePlateReview", IasServiceType.ASS, AssServiceCmd.RELEASEPLATEREVIEW), | |||||
; | ; |
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.common.manager.net.http.ServiceHandleException; | ||||
import cn.com.taiji.core.entity.ass.AssDeviceLoss; | import cn.com.taiji.core.entity.ass.AssDeviceLoss; |
import cn.com.taiji.core.entity.dict.basic.*; | 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.ReleasePlateApplyRequest; | ||||
import cn.com.taiji.core.model.comm.protocol.ias.ass.ReleasePlateApplyResponse; | 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.ias.vaild.VehiclePlateCheckResponse; | ||||
import cn.com.taiji.core.model.comm.protocol.valid.ErrorMsgBuilder; | import cn.com.taiji.core.model.comm.protocol.valid.ErrorMsgBuilder; | ||||
import cn.com.taiji.core.repo.jpa.ass.AssVehicleRelieveRepo; | import cn.com.taiji.core.repo.jpa.ass.AssVehicleRelieveRepo; | ||||
import cn.com.taiji.ias.dict.DataType; | import cn.com.taiji.ias.dict.DataType; | ||||
import cn.com.taiji.ias.manager.ass.AbstractAssManager; | import cn.com.taiji.ias.manager.ass.AbstractAssManager; | ||||
import cn.com.taiji.ias.manager.valid.VehiclePlateCheckManager; | |||||
import cn.com.taiji.ias.model.ServiceLogEvent; | import cn.com.taiji.ias.model.ServiceLogEvent; | ||||
import org.springframework.beans.factory.annotation.Autowired; | import org.springframework.beans.factory.annotation.Autowired; | ||||
import org.springframework.stereotype.Service; | import org.springframework.stereotype.Service; |
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; | |||||
} | |||||
} |
import cn.com.taiji.ias.manager.ass.releasePlate.PlateOccupyQueryManager; | 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.releasePlate.ReleasePlateApplyManager; | ||||
import cn.com.taiji.ias.manager.ass.resign.ResignManager; | 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.beans.factory.annotation.Autowired; | ||||
import org.springframework.stereotype.Service; | import org.springframework.stereotype.Service; | ||||
import com.zgglyun.common.model.AbstractHttpRequestInfo; | import com.zgglyun.common.model.AbstractHttpRequestInfo; | ||||
switch (cmd) { | switch (cmd) { | ||||
case RESIGN: | case RESIGN: | ||||
return resignManager.serviceHandle((ResignRequest) request); | 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: | case RELEASEPLATEAPPLY: | ||||
return releasePlateApplyManager.serviceHandle((ReleasePlateApplyRequest) request, jsonReq.getIfCode(), jsonReq.getReqId(), reqInfo); | return releasePlateApplyManager.serviceHandle((ReleasePlateApplyRequest) request, jsonReq.getIfCode(), jsonReq.getReqId(), reqInfo); | ||||
case LOSS: | case LOSS: |