|
|
@ -24,17 +24,17 @@ |
|
|
|
<select id="getCarInventoryList" |
|
|
|
resultType="com.yxt.anrui.scm.api.scmvehiclepatrolinspection.AppScmVehiclePatrolinspectionPageVo"> |
|
|
|
SELECT sid, |
|
|
|
mainSid as vin, |
|
|
|
location as warehouse, |
|
|
|
patrolInspectionDate as newInspectionDate, |
|
|
|
patrolInspectionName as newInspectionName |
|
|
|
mainSid as vin, |
|
|
|
location as warehouse, |
|
|
|
patrolInspectionDate as newInspectionDate, |
|
|
|
patrolInspectionName as newInspectionName |
|
|
|
FROM scm_vehicle_patrolinspection svp |
|
|
|
<where> |
|
|
|
${ew.sqlSegment} |
|
|
|
<if test="name != '' and name != null"> |
|
|
|
and concat(svp.mainSid) LIKE concat('%' |
|
|
|
, #{name} |
|
|
|
, '%') |
|
|
|
, #{name} |
|
|
|
, '%') |
|
|
|
</if> |
|
|
|
</where> |
|
|
|
ORDER BY id DESC |
|
|
@ -51,6 +51,6 @@ |
|
|
|
svss.sid |
|
|
|
from scm_vehicle_patrolinspection svp |
|
|
|
left join scm_vehicle_patrolinspectionsheet svss on svss.patrolInspectionSid = svp.sid |
|
|
|
where sid = #{recordSid} |
|
|
|
where svp.sid = #{recordSid} |
|
|
|
</select> |
|
|
|
</mapper> |