Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
gsc
/
gsc-vcp-web-facade
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 20f87916
authored
Nov 27, 2025
by
林冲
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
feat:导入校验
1 parent
4162f3a5
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
1 deletions
src/main/java/com/gsc4cloud/gsc/facade/vpcweb/service/evalorder/EvalElectronicContractService.java
src/main/java/com/gsc4cloud/gsc/facade/vpcweb/service/evalorder/EvalElectronicContractService.java
View file @
20f8791
...
@@ -354,7 +354,7 @@ public class EvalElectronicContractService {
...
@@ -354,7 +354,7 @@ public class EvalElectronicContractService {
return
;
return
;
}
}
if
(
StringUtils
.
isBlank
(
row
.
getMerchantNo
()))
{
if
(
StringUtils
.
isBlank
(
row
.
getMerchantNo
()))
{
errors
.
add
(
"
4s店编
号必填"
);
errors
.
add
(
"
商户
号必填"
);
}
}
if
(
StringUtils
.
isBlank
(
row
.
getPlateNo
()))
{
if
(
StringUtils
.
isBlank
(
row
.
getPlateNo
()))
{
errors
.
add
(
"车牌号必填"
);
errors
.
add
(
"车牌号必填"
);
...
@@ -391,6 +391,9 @@ public class EvalElectronicContractService {
...
@@ -391,6 +391,9 @@ public class EvalElectronicContractService {
if
(!
NumberUtil
.
isAllDigits
(
row
.
getMerchantNo
()))
{
if
(!
NumberUtil
.
isAllDigits
(
row
.
getMerchantNo
()))
{
errors
.
add
(
"商户号必须都是数字"
);
errors
.
add
(
"商户号必须都是数字"
);
}
}
if
(
row
.
getMerchantNo
().
length
()
>
8
)
{
errors
.
add
(
"商户号不能超过8位数字"
);
}
// 车牌号不能超过10位,否则提示“车牌号不能超过10位”
// 车牌号不能超过10位,否则提示“车牌号不能超过10位”
if
(
row
.
getPlateNo
().
length
()
>
10
)
{
if
(
row
.
getPlateNo
().
length
()
>
10
)
{
...
@@ -400,6 +403,16 @@ public class EvalElectronicContractService {
...
@@ -400,6 +403,16 @@ public class EvalElectronicContractService {
if
(
row
.
getVin
().
length
()
!=
17
)
{
if
(
row
.
getVin
().
length
()
!=
17
)
{
errors
.
add
(
"车架号必须是17位"
);
errors
.
add
(
"车架号必须是17位"
);
}
}
if
(
row
.
getBrand
().
length
()
>
20
)
{
errors
.
add
(
"品牌不能超过20个字符"
);
}
if
(
row
.
getCarCategory
().
length
()
>
20
)
{
errors
.
add
(
"车辆类别不能超过20个字符"
);
}
if
(
row
.
getPayType
().
length
()
>
20
)
{
errors
.
add
(
"支付方式不能超过20个字符"
);
}
}
}
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment