Commit d41ace62 by 章家宝

feat:修复车牌号为空字符的判断

1 parent 381d83f3
...@@ -361,8 +361,6 @@ public class VrAuditService { ...@@ -361,8 +361,6 @@ public class VrAuditService {
entity.setSubmitTime(LocalDateTime.now()); entity.setSubmitTime(LocalDateTime.now());
entity.setDraftStep(4); entity.setDraftStep(4);
} else { } else {
// 保存草稿:更新草稿步骤(取当前已到达的最大步骤)
entity.setStatus(VrAudit.PublishStatus.DRAFT.getValue());
if (entity.getDraftStep() == null || req.getStep() > entity.getDraftStep()) { if (entity.getDraftStep() == null || req.getStep() > entity.getDraftStep()) {
entity.setDraftStep(req.getStep()); entity.setDraftStep(req.getStep());
} }
......
...@@ -36,7 +36,6 @@ public class VrAuditSaveReqVO { ...@@ -36,7 +36,6 @@ public class VrAuditSaveReqVO {
@Schema(description = "VIN车架号(17位字母数字)") @Schema(description = "VIN车架号(17位字母数字)")
private String vin; private String vin;
@Pattern(regexp = "^[\\u4e00-\\u9fa5A-Z][A-Z0-9\\u4e00-\\u9fa5]{6,7}$", message = "车牌号格式不正确")
@Schema(description = "车牌号(7-8位,非必填)") @Schema(description = "车牌号(7-8位,非必填)")
private String licensePlate; private String licensePlate;
......
...@@ -2,6 +2,7 @@ package com.glsx.usedcar.controller; ...@@ -2,6 +2,7 @@ package com.glsx.usedcar.controller;
import com.glsx.usedcar.module.business.entity.Agreement; import com.glsx.usedcar.module.business.entity.Agreement;
import com.glsx.usedcar.module.business.service.AgreementService; import com.glsx.usedcar.module.business.service.AgreementService;
import com.glsx.usedcar.resp.BaseResp;
import jakarta.annotation.Resource; import jakarta.annotation.Resource;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.GetMapping;
...@@ -34,8 +35,8 @@ public class AgreementController { ...@@ -34,8 +35,8 @@ public class AgreementController {
* @return * @return
*/ */
@GetMapping("getAgreementByKey") @GetMapping("getAgreementByKey")
public Agreement getAgreementByKey(@RequestParam Agreement.AgreementKey agreementKey) { public BaseResp<Agreement> getAgreementByKey(@RequestParam Agreement.AgreementKey agreementKey) {
return agreementService.getAgreementByKey(agreementKey); return BaseResp.success(agreementService.getAgreementByKey(agreementKey));
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!