报损管理

This commit is contained in:
19173159168
2025-07-18 23:35:55 +08:00
parent cdde61b848
commit 7700722989
4 changed files with 63 additions and 17 deletions

View File

@ -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>

View File

@ -10,6 +10,17 @@
<form id="formId">
<div class="select-list">
<ul>
<li>
<label>所属运营商:</label>
<select name="operatorId" id="operatorId" >
<option value="">请选择所属运营商</option>
<option th:each="company : ${companyList}" th:value="${company.id}" th:text="${company.companyName}"></option>
</select>
</li>
<li>
<label>所属门店:</label>
<input type="text" name="storeName"/>
</li>
<li>
<label>报损类型:</label>
<select name="damageType" th:with="type=${@dict.getType('key_car_damage_type')}">