Commit 13409d41 authored by qk's avatar qk

Update:定时任务查询添加去重,添加ID增加企业ID

parent 1b5c98d1
......@@ -3764,7 +3764,8 @@ public class CheckCertificateMainInfoServiceImpl
List<CheckCertificateMainInfo> clcpZk = this.baseMapper.getClcpZk(vehicleGroup);
if (clcpZk.size() > 0) {
for (CheckCertificateMainInfo certificate : clcpZk) {
certificate.setId(certificate.getVehicleModel() + certificate.getVehicleGroup());
certificate.setId(certificate.getBaseId()+certificate.getVehicleModel() +
certificate.getVehicleGroup());
certificate.setCheckState("0");
certificate.setVersion("1");
}
......
......@@ -171,7 +171,9 @@
</select>
<select id="getClcpZk" resultType="com.adc.da.system.entity.CheckCertificateMainInfo">
SELECT cz."车辆型号" AS vehicleModel,cz."批次"AS vehicleGroup,cz."企业ID" AS baseId
SELECT
DISTINCT
cz."车辆型号" AS vehicleModel,cz."批次"AS vehicleGroup,cz."企业ID" AS baseId
FROM RETRIEVAL.CLCP_ZK cz
WHERE to_number(cz."批次") >= to_number(#{vehicleGroup})
</select>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment