|
|
@ -32,10 +32,17 @@ |
|
|
|
cvcd.modelName, |
|
|
|
cvcd.modelSid, |
|
|
|
cvcd.comonConfigSid, |
|
|
|
cvcd.saleReferencePrice AS guidancePrice, |
|
|
|
cvcd.createTime, |
|
|
|
cvcd.purchaseMethodValue AS purchaseType |
|
|
|
cvcd.saleReferencePrice AS guidancePrice, |
|
|
|
DATE_FORMAT(cvcd.createTime, '%Y-%m-%d') as createTime, |
|
|
|
cvcd.purchaseMethodValue AS purchaseType, |
|
|
|
cvcd.purchaseMethod as purchaseKey, |
|
|
|
cvcd.financePlan as payTypeUpKey, |
|
|
|
cvcd.financePlanValue as payTypeUpValue, |
|
|
|
cct.sid as customerSid, |
|
|
|
cct.name as customerName, |
|
|
|
cct.mobile as customerMobile |
|
|
|
FROM crm_vehicledemand cvcd |
|
|
|
left join crm_customer_temp cct on cvcd.customerSid = cct.sid |
|
|
|
WHERE cvcd.customerSid = #{customerSid} |
|
|
|
AND cvcd.states = 1 |
|
|
|
</select> |
|
|
@ -99,7 +106,9 @@ |
|
|
|
cv.number, |
|
|
|
cv.estimatedPickupDate AS `date`, |
|
|
|
cv.otherConfig, |
|
|
|
cv.sketChconfiguration as configName |
|
|
|
cv.sketChconfiguration as configName, |
|
|
|
cv.financePlan, |
|
|
|
cv.financePlanValue |
|
|
|
FROM crm_vehicledemand cv |
|
|
|
WHERE cv.sid = #{intentionSid} |
|
|
|
</select> |
|
|
@ -152,4 +161,11 @@ |
|
|
|
set vehicleModelOffer = NULL |
|
|
|
where sid = #{sid} |
|
|
|
</update> |
|
|
|
|
|
|
|
<select id="selectOneBySid" resultType="com.yxt.anrui.crm.api.crmvehicledemand.CrmVehicledemand"> |
|
|
|
select * |
|
|
|
from crm_vehicledemand |
|
|
|
where sid = #{vehicSid} |
|
|
|
and length(financePlan) > 0 |
|
|
|
</select> |
|
|
|
</mapper> |