报损管理
This commit is contained in:
@ -44,25 +44,27 @@
|
||||
select a.id, a.car_id, a.damage_type, a.damage_reason, a.submitter_name, a.submit_time, a.damage_status, a.auditor_name, a.audit_time, a.audit_comment, a.status, a.del_flag, a.create_by, a.create_time, a.update_by, a.update_time, a.remark, a.extend1, a.extend2, a.extend3,
|
||||
c.vin, c.license_plate, c.brand_name, c.model_name, c.purchase_price, c.belong_type, c.operator_name, c.store_name
|
||||
from zc_car_damage a
|
||||
left join zc_car c on a.car_id = c.id
|
||||
left join zc_car c on a.car_id = c.id
|
||||
</sql>
|
||||
|
||||
<select id="selectZcCarDamageList" parameterType="ZcCarDamage" resultMap="ZcCarDamageResult">
|
||||
<include refid="selectZcCarDamageVo"/>
|
||||
<where>
|
||||
<if test="carId != null "> and car_id = #{carId}</if>
|
||||
<if test="damageType != null and damageType != ''"> and damage_type = #{damageType}</if>
|
||||
<if test="damageReason != null and damageReason != ''"> and damage_reason = #{damageReason}</if>
|
||||
<if test="submitterName != null and submitterName != ''"> and submitter_name like concat('%', #{submitterName}, '%')</if>
|
||||
<if test="submitTime != null "> and submit_time = #{submitTime}</if>
|
||||
<if test="damageStatus != null "> and damage_status = #{damageStatus}</if>
|
||||
<if test="auditorName != null and auditorName != ''"> and auditor_name like concat('%', #{auditorName}, '%')</if>
|
||||
<if test="auditTime != null "> and audit_time = #{auditTime}</if>
|
||||
<if test="auditComment != null and auditComment != ''"> and audit_comment = #{auditComment}</if>
|
||||
<if test="status != null and status != ''"> and status = #{status}</if>
|
||||
<if test="extend1 != null and extend1 != ''"> and extend1 = #{extend1}</if>
|
||||
<if test="extend2 != null and extend2 != ''"> and extend2 = #{extend2}</if>
|
||||
<if test="extend3 != null and extend3 != ''"> and extend3 = #{extend3}</if>
|
||||
<if test="carId != null "> and a.car_id = #{carId}</if>
|
||||
<if test="damageType != null and damageType != ''"> and a.damage_type = #{damageType}</if>
|
||||
<if test="damageReason != null and damageReason != ''"> and a.damage_reason = #{damageReason}</if>
|
||||
<if test="submitterName != null and submitterName != ''"> and a.submitter_name like concat('%', #{submitterName}, '%')</if>
|
||||
<if test="submitTime != null "> and a.submit_time = #{submitTime}</if>
|
||||
<if test="damageStatus != null "> and a.damage_status = #{damageStatus}</if>
|
||||
<if test="auditorName != null and auditorName != ''"> and a.auditor_name like concat('%', #{auditorName}, '%')</if>
|
||||
<if test="auditTime != null "> and a.audit_time = #{auditTime}</if>
|
||||
<if test="auditComment != null and auditComment != ''"> and a.audit_comment = #{auditComment}</if>
|
||||
<if test="status != null and status != ''"> and a.status = #{status}</if>
|
||||
<if test="extend1 != null and extend1 != ''"> and a.extend1 = #{extend1}</if>
|
||||
<if test="extend2 != null and extend2 != ''"> and a.extend2 = #{extend2}</if>
|
||||
<if test="extend3 != null and extend3 != ''"> and a.extend3 = #{extend3}</if>
|
||||
<if test="operatorId != null "> and c.operator_id = #{operatorId}</if>
|
||||
<if test="storeName != null "> and c.store_name = #{storeName}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user