Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
ADC-uniformity
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
凡昌松
ADC-uniformity
Commits
3489cdb3
Commit
3489cdb3
authored
May 09, 2022
by
qk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update:有底盘ID去RETRIEVAL.CHPDPK_ZK查找数据
parent
001c61f3
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
35 additions
and
21 deletions
+35
-21
CheckCertificateInfoDetailDao.java
.../com/adc/da/system/dao/CheckCertificateInfoDetailDao.java
+2
-0
CheckCertificateMainInfoServiceImpl.java
...tem/service/impl/CheckCertificateMainInfoServiceImpl.java
+27
-21
CheckCertificateInfoDetailDao.xml
...s/mybatis/mapper/system/CheckCertificateInfoDetailDao.xml
+6
-0
No files found.
adcbs-check/src/main/java/com/adc/da/system/dao/CheckCertificateInfoDetailDao.java
View file @
3489cdb3
...
@@ -15,5 +15,7 @@ public interface CheckCertificateInfoDetailDao extends BaseMapper<CheckCertifica
...
@@ -15,5 +15,7 @@ public interface CheckCertificateInfoDetailDao extends BaseMapper<CheckCertifica
List
<
CdVehicles
>
getClcpZk
(
@Param
(
"carTypeCode"
)
String
carTypeCode
,
@Param
(
"group"
)
String
group
);
List
<
CdVehicles
>
getClcpZk
(
@Param
(
"carTypeCode"
)
String
carTypeCode
,
@Param
(
"group"
)
String
group
);
String
getRetrievalChpdpkZk
(
@Param
(
"id"
)
String
id
,
@Param
(
"value"
)
String
value
);
}
}
adcbs-check/src/main/java/com/adc/da/system/service/impl/CheckCertificateMainInfoServiceImpl.java
View file @
3489cdb3
...
@@ -212,27 +212,29 @@ public class CheckCertificateMainInfoServiceImpl
...
@@ -212,27 +212,29 @@ public class CheckCertificateMainInfoServiceImpl
fdjxh
=
certificateEO
.
getEngineModel
().
toUpperCase
().
replaceAll
(
"O"
,
"0"
);
fdjxh
=
certificateEO
.
getEngineModel
().
toUpperCase
().
replaceAll
(
"O"
,
"0"
);
}
}
if
(
StringUtils
.
isNotEmpty
(
cdVehicles
.
getFdjxh
()))
{
if
(
StringUtils
.
isNotEmpty
(
cdVehicles
.
getFdjxh
()))
{
fdjxhData
=
cdVehicles
.
getFdjxh
().
toUpperCase
().
replaceAll
(
"O"
,
"0"
);
fdjxhData
=
getValue
(
certificateEO
,
"M发动机"
)
!=
null
?
getValue
(
certificateEO
,
"M发动机"
).
toUpperCase
().
replaceAll
(
"O"
,
"0"
):
cdVehicles
.
getFdjxh
().
toUpperCase
().
replaceAll
(
"O"
,
"0"
);
}
}
dataCheck
(
"发动机型号"
,
type
,
fdjxh
,
dataCheck
(
"发动机型号"
,
type
,
fdjxh
,
fdjxhData
,
checkResults
,
id
,
dataCheckDTOS
);
fdjxhData
,
checkResults
,
id
,
dataCheckDTOS
);
dataCheck
(
"燃料种类"
,
type
,
certificateEO
.
getFuelType
(),
dataCheck
(
"燃料种类"
,
type
,
certificateEO
.
getFuelType
(),
cdVehicles
.
getFuelType
(),
checkResults
,
id
,
dataCheckDTOS
);
getValue
(
certificateEO
,
"燃料种类"
)
!=
null
?
getValue
(
certificateEO
,
"燃料种类"
):
cdVehicles
.
getFuelType
(),
checkResults
,
id
,
dataCheckDTOS
);
dataCheck
(
"排量"
,
type
,
certificateEO
.
getExhaustVolume
(),
dataCheck
(
"排量"
,
type
,
certificateEO
.
getExhaustVolume
(),
cdVehicles
.
getFdjpl
(),
checkResults
,
id
,
dataCheckDTOS
);
getValue
(
certificateEO
,
"M排量"
)
!=
null
?
getValue
(
certificateEO
,
"M排量"
):
cdVehicles
.
getFdjpl
(),
checkResults
,
id
,
dataCheckDTOS
);
dataCheck
(
"功率"
,
type
,
certificateEO
.
getPower
(),
dataCheck
(
"功率"
,
type
,
certificateEO
.
getPower
(),
cdVehicles
.
getFdjgl
(),
checkResults
,
id
,
dataCheckDTOS
);
getValue
(
certificateEO
,
"M功率"
)
!=
null
?
getValue
(
certificateEO
,
"M功率"
):
cdVehicles
.
getFdjgl
(),
checkResults
,
id
,
dataCheckDTOS
);
if
(
StringUtils
.
isNotEmpty
(
certificateEO
.
getEmissionStandards
()))
{
if
(
StringUtils
.
isNotEmpty
(
certificateEO
.
getEmissionStandards
()))
{
dataCheck
(
"排放标准"
,
type
,
certificateEO
.
getEmissionStandards
(),
dataCheck
(
"排放标准"
,
type
,
certificateEO
.
getEmissionStandards
(),
cdVehicles
.
getEmissionStandard
(),
checkResults
,
id
,
dataCheckDTOS
);
getValue
(
certificateEO
,
"依据标准"
)
!=
null
?
getValue
(
certificateEO
,
"依据标准"
):
cdVehicles
.
getEmissionStandard
(),
checkResults
,
id
,
dataCheckDTOS
);
}
else
{
}
else
{
dataCheck
(
"排放标准"
,
type
,
""
,
dataCheck
(
"排放标准"
,
type
,
""
,
cdVehicles
.
getEmissionStandard
(),
checkResults
,
id
,
dataCheckDTOS
);
getValue
(
certificateEO
,
"依据标准"
)
!=
null
?
getValue
(
certificateEO
,
"依据标准"
):
cdVehicles
.
getEmissionStandard
(),
checkResults
,
id
,
dataCheckDTOS
);
}
}
dataCheck
(
"油耗"
,
type
,
certificateEO
.
getFuelConsumption
(),
dataCheck
(
"油耗"
,
type
,
certificateEO
.
getFuelConsumption
(),
...
@@ -334,40 +336,41 @@ public class CheckCertificateMainInfoServiceImpl
...
@@ -334,40 +336,41 @@ public class CheckCertificateMainInfoServiceImpl
if
(
"-/-"
.
equalsIgnoreCase
(
cdVehicles
.
getSpringLeafCount
())
&&
""
.
if
(
"-/-"
.
equalsIgnoreCase
(
cdVehicles
.
getSpringLeafCount
())
&&
""
.
equalsIgnoreCase
(
numberOfLeafSprings
))
{
equalsIgnoreCase
(
numberOfLeafSprings
))
{
checkResults
.
add
(
new
CheckDataCheckResult
(
UUID
.
randomUUID
(),
id
,
"钢板弹簧片数"
,
checkResults
.
add
(
new
CheckDataCheckResult
(
UUID
.
randomUUID
(),
id
,
"钢板弹簧片数"
,
"0"
,
type
,
certificateEO
.
getNumberOfLeafSprings
(),
cdVehicles
.
getSpringLeafCount
()));
"0"
,
type
,
certificateEO
.
getNumberOfLeafSprings
(),
getValue
(
certificateEO
,
"弹簧片数"
)
!=
null
?
getValue
(
certificateEO
,
"弹簧片数"
):
cdVehicles
.
getSpringLeafCount
()));
dataCheckDTOS
.
add
(
new
DataCheckDTO
(
UUID
.
randomUUID
(),
id
,
"钢板弹簧片数"
,
dataCheckDTOS
.
add
(
new
DataCheckDTO
(
UUID
.
randomUUID
(),
id
,
"钢板弹簧片数"
,
"0"
,
type
,
certificateEO
.
getNumberOfLeafSprings
(),
cdVehicles
.
getSpringLeafCount
()));
"0"
,
type
,
certificateEO
.
getNumberOfLeafSprings
(),
getValue
(
certificateEO
,
"弹簧片数"
)
!=
null
?
getValue
(
certificateEO
,
"弹簧片数"
):
cdVehicles
.
getSpringLeafCount
()));
}
else
{
}
else
{
dataCheck
(
"钢板弹簧片数"
,
type
,
certificateEO
.
getNumberOfLeafSprings
(),
dataCheck
(
"钢板弹簧片数"
,
type
,
certificateEO
.
getNumberOfLeafSprings
(),
cdVehicles
.
getSpringLeafCount
(),
checkResults
,
id
,
dataCheckDTOS
);
getValue
(
certificateEO
,
"弹簧片数"
)
!=
null
?
getValue
(
certificateEO
,
"弹簧片数"
):
cdVehicles
.
getSpringLeafCount
(),
checkResults
,
id
,
dataCheckDTOS
);
}
}
dataCheck
(
"轮胎数"
,
type
,
certificateEO
.
getTireNumber
(),
dataCheck
(
"轮胎数"
,
type
,
certificateEO
.
getTireNumber
(),
cdVehicles
.
getTyreCount
(),
checkResults
,
id
,
dataCheckDTOS
);
getValue
(
certificateEO
,
"轮胎数"
)
!=
null
?
getValue
(
certificateEO
,
"轮胎数"
):
cdVehicles
.
getTyreCount
(),
checkResults
,
id
,
dataCheckDTOS
);
String
tyreSize
=
""
;
String
tyreSize
=
""
;
if
(
StringUtils
.
isNotEmpty
(
cdVehicles
.
getTyreSize
()))
{
if
(
StringUtils
.
isNotEmpty
(
cdVehicles
.
getTyreSize
()))
{
tyreSize
=
cdVehicles
.
getTyreSize
();
tyreSize
=
getValue
(
certificateEO
,
"轮胎规格"
)
!=
null
?
getValue
(
certificateEO
,
"轮胎规格"
):
cdVehicles
.
getTyreSize
();
}
}
if
(
tyreSize
.
contains
(
certificateEO
.
getTireSpecification
()))
{
if
(
tyreSize
.
contains
(
certificateEO
.
getTireSpecification
()))
{
checkResults
.
add
(
new
CheckDataCheckResult
(
UUID
.
randomUUID
(),
id
,
checkResults
.
add
(
new
CheckDataCheckResult
(
UUID
.
randomUUID
(),
id
,
"轮胎规格"
,
"轮胎规格"
,
"0"
,
type
,
certificateEO
.
getTireSpecification
(),
"0"
,
type
,
certificateEO
.
getTireSpecification
(),
cdVehicles
.
getTyreSize
()));
getValue
(
certificateEO
,
"轮胎规格"
)
!=
null
?
getValue
(
certificateEO
,
"轮胎规格"
):
cdVehicles
.
getTyreSize
()));
dataCheckDTOS
.
add
(
new
DataCheckDTO
(
UUID
.
randomUUID
(),
id
,
dataCheckDTOS
.
add
(
new
DataCheckDTO
(
UUID
.
randomUUID
(),
id
,
"轮胎规格"
,
"轮胎规格"
,
"0"
,
type
,
certificateEO
.
getTireSpecification
(),
"0"
,
type
,
certificateEO
.
getTireSpecification
(),
cdVehicles
.
getTyreSize
()));
getValue
(
certificateEO
,
"轮胎规格"
)
!=
null
?
getValue
(
certificateEO
,
"轮胎规格"
):
cdVehicles
.
getTyreSize
()));
}
else
{
}
else
{
checkResults
.
add
(
new
CheckDataCheckResult
(
UUID
.
randomUUID
(),
id
,
checkResults
.
add
(
new
CheckDataCheckResult
(
UUID
.
randomUUID
(),
id
,
"轮胎规格"
,
"轮胎规格"
,
"1"
,
type
,
certificateEO
.
getTireSpecification
(),
"1"
,
type
,
certificateEO
.
getTireSpecification
(),
cdVehicles
.
getTyreSize
()));
getValue
(
certificateEO
,
"轮胎规格"
)
!=
null
?
getValue
(
certificateEO
,
"轮胎规格"
):
cdVehicles
.
getTyreSize
()));
dataCheckDTOS
.
add
(
new
DataCheckDTO
(
UUID
.
randomUUID
(),
id
,
dataCheckDTOS
.
add
(
new
DataCheckDTO
(
UUID
.
randomUUID
(),
id
,
"轮胎规格"
,
"轮胎规格"
,
"1"
,
type
,
certificateEO
.
getTireSpecification
(),
"1"
,
type
,
certificateEO
.
getTireSpecification
(),
cdVehicles
.
getTyreSize
()));
getValue
(
certificateEO
,
"轮胎规格"
)
!=
null
?
getValue
(
certificateEO
,
"轮胎规格"
):
cdVehicles
.
getTyreSize
()));
}
}
// dataCheck("轮胎规格", type, certificateEO.getTireSpecification(),
// dataCheck("轮胎规格", type, certificateEO.getTireSpecification(),
...
@@ -375,22 +378,22 @@ public class CheckCertificateMainInfoServiceImpl
...
@@ -375,22 +378,22 @@ public class CheckCertificateMainInfoServiceImpl
dataCheck
(
"轮距前"
,
type
,
certificateEO
.
getFrontTireDistance
(),
dataCheck
(
"轮距前"
,
type
,
certificateEO
.
getFrontTireDistance
(),
cdVehicles
.
getFrontTrack
(),
checkResults
,
id
,
dataCheckDTOS
);
getValue
(
certificateEO
,
"前轮距"
)
!=
null
?
getValue
(
certificateEO
,
"前轮距"
):
cdVehicles
.
getFrontTrack
(),
checkResults
,
id
,
dataCheckDTOS
);
dataCheck
(
"轮距后"
,
type
,
certificateEO
.
getRearTireDistance
(),
dataCheck
(
"轮距后"
,
type
,
certificateEO
.
getRearTireDistance
(),
cdVehicles
.
getRearTrack
(),
checkResults
,
id
,
dataCheckDTOS
);
getValue
(
certificateEO
,
"后轮距"
)
!=
null
?
getValue
(
certificateEO
,
"后轮距"
):
cdVehicles
.
getRearTrack
(),
checkResults
,
id
,
dataCheckDTOS
);
dataCheck
(
"轴距"
,
type
,
certificateEO
.
getWheelbase
(),
dataCheck
(
"轴距"
,
type
,
certificateEO
.
getWheelbase
(),
cdVehicles
.
getWheelSpace
(),
checkResults
,
id
,
dataCheckDTOS
);
getValue
(
certificateEO
,
"轴距"
)
!=
null
?
getValue
(
certificateEO
,
"轴距"
):
cdVehicles
.
getWheelSpace
(),
checkResults
,
id
,
dataCheckDTOS
);
dataCheck
(
"轴荷"
,
type
,
certificateEO
.
getAxleLoad
(),
dataCheck
(
"轴荷"
,
type
,
certificateEO
.
getAxleLoad
(),
cdVehicles
.
getAxleLoad
(),
checkResults
,
id
,
dataCheckDTOS
);
cdVehicles
.
getAxleLoad
(),
checkResults
,
id
,
dataCheckDTOS
);
dataCheck
(
"轴数"
,
type
,
certificateEO
.
getAxisNumber
(),
dataCheck
(
"轴数"
,
type
,
certificateEO
.
getAxisNumber
(),
cdVehicles
.
getAxleCount
(),
checkResults
,
id
,
dataCheckDTOS
);
getValue
(
certificateEO
,
"轴数"
)
!=
null
?
getValue
(
certificateEO
,
"轴数"
):
cdVehicles
.
getAxleCount
(),
checkResults
,
id
,
dataCheckDTOS
);
dataCheck
(
"转向形式"
,
type
,
certificateEO
.
getSteeringType
(),
dataCheck
(
"转向形式"
,
type
,
certificateEO
.
getSteeringType
(),
cdVehicles
.
getSteeringType
(),
checkResults
,
id
,
dataCheckDTOS
);
getValue
(
certificateEO
,
"转向形式"
)
!=
null
?
getValue
(
certificateEO
,
"转向形式"
):
cdVehicles
.
getSteeringType
(),
checkResults
,
id
,
dataCheckDTOS
);
dataCheck
(
"总质量"
,
type
,
certificateEO
.
getTotalWeight
(),
dataCheck
(
"总质量"
,
type
,
certificateEO
.
getTotalWeight
(),
cdVehicles
.
getTotalMass
(),
checkResults
,
id
,
dataCheckDTOS
);
cdVehicles
.
getTotalMass
(),
checkResults
,
id
,
dataCheckDTOS
);
...
@@ -480,7 +483,7 @@ public class CheckCertificateMainInfoServiceImpl
...
@@ -480,7 +483,7 @@ public class CheckCertificateMainInfoServiceImpl
dataCheck
(
"最高设计车速"
,
type
,
certificateEO
.
getHighestDesignSpeed
(),
dataCheck
(
"最高设计车速"
,
type
,
certificateEO
.
getHighestDesignSpeed
(),
cdVehicles
.
getMaxSpeed
(),
checkResults
,
id
,
dataCheckDTOS
);
cdVehicles
.
getMaxSpeed
(),
checkResults
,
id
,
dataCheckDTOS
);
String
other
=
certificateEO
.
getOther
();
String
other
=
certificateEO
.
getOther
();
String
vehicleOther
=
cdVehicles
.
getVehicleOther
();
String
vehicleOther
=
getValue
(
certificateEO
,
"其它"
)
!=
null
?
getValue
(
certificateEO
,
"其它"
):
cdVehicles
.
getVehicleOther
();
List
<
String
>
otherList
=
new
ArrayList
<>();
List
<
String
>
otherList
=
new
ArrayList
<>();
boolean
flag
=
true
;
boolean
flag
=
true
;
if
(
StringUtils
.
isEmpty
(
other
))
{
if
(
StringUtils
.
isEmpty
(
other
))
{
...
@@ -3774,4 +3777,7 @@ public class CheckCertificateMainInfoServiceImpl
...
@@ -3774,4 +3777,7 @@ public class CheckCertificateMainInfoServiceImpl
}
}
return
Result
.
success
(
"200"
,
"同步成功"
);
return
Result
.
success
(
"200"
,
"同步成功"
);
}
}
public
String
getValue
(
CertificateEO
certificateEO
,
String
value
){
return
checkCertificateInfoDetailDao
.
getRetrievalChpdpkZk
(
certificateEO
.
getChassisID
(),
value
);
}
}
}
adcbs-check/src/main/resources/mybatis/mapper/system/CheckCertificateInfoDetailDao.xml
View file @
3489cdb3
...
@@ -61,4 +61,10 @@
...
@@ -61,4 +61,10 @@
AND cz."车辆型号" = #{carTypeCode}
AND cz."车辆型号" = #{carTypeCode}
</select>
</select>
<select
id=
"getRetrievalChpdpkZk"
resultType=
"java.lang.String"
>
SELECT ${value}
FROM RETRIEVAL.CHPDPK_ZK
WHERE DPID = #{id}
</select>
</mapper>
</mapper>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment