@ -40,43 +40,20 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<sql id= "selectAftersalesComplaintNoticeDetailVo" >
<sql id= "selectAftersalesComplaintNoticeDetailVo" >
select complaint_notice_detail_id, complaint_notice_code, make_no, user_id, delivery_goods_num, emergency_degree, complaint_problem, closing_procedures, adverse_report_url, customer_id, customer_name, device_model_code, device_model_name, sn_code, device_running_number, material_no, material_name, material_type, material_photoUrl, material_brand, material_unit, material_describe, material_process_method, shipped_goods_sum, material_sum, enterprise_sum, create_by, create_time, update_by, update_time, remark from aftersales_complaint_notice_detail
select complaint_notice_detail_id, complaint_notice_code, make_no, user_id, delivery_goods_num, emergency_degree, complaint_problem, closing_procedures, adverse_report_url, customer_id, customer_name, device_model_code, device_model_name, sn_code, device_running_number, material_no, material_name, material_type, material_photoUrl, material_brand, material_unit, material_describe, material_process_method, shipped_goods_sum, material_sum, enterprise_sum, create_by, create_time, update_by, update_time, remark from aftersales_complaint_notice_detail
<where >
<if test= "complaintNoticeCode != null and complaintNoticeCode != ''" > and complaint_notice_code = #{complaintNoticeCode}</if>
<if test= "makeNo != null and makeNo != ''" > and make_no = #{makeNo}</if>
<if test= "emergencyDegree != null and emergencyDegree != ''" > and emergency_degree = #{emergencyDegree}</if>
<if test= "closingProcedures != null and closingProcedures != ''" > and closing_procedures = #{closingProcedures}</if>
<if test= "materialNo != null and materialNo != ''" > and material_no = #{materialNo}</if>
<if test= "materialName != null and materialName != ''" > and material_name like concat('%', #{materialName}, '%')</if>
<if test= "params.beginCreateTime != null and params.beginCreateTime != '' and params.endCreateTime != null and params.endCreateTime != ''" > and create_time between #{params.beginCreateTime} and #{params.endCreateTime}</if>
</where>
</sql>
</sql>
<select id= "selectAftersalesComplaintNoticeDetailList" parameterType= "AftersalesComplaintNoticeDetail"
<select id= "selectAftersalesComplaintNoticeDetailList" parameterType= "AftersalesComplaintNoticeDetail"
resultMap="AftersalesComplaintNoticeDetailResult">
resultMap="AftersalesComplaintNoticeDetailResult">
select acnd.complaint_notice_detail_id,
<include refid= "selectAftersalesComplaintNoticeDetailVo" />
acnd.complaint_notice_code,
acnd.make_no,
acnd.user_id,
acnd.delivery_goods_num,
acnd.emergency_degree,
acnd.complaint_problem,
acnd.closing_procedures,
acnd.adverse_report_url,
acnd.customer_id,
acnd.customer_name,
acnd.device_model_code,
acnd.device_model_name,
acnd.sn_code,
acnd.device_running_number,
acnd.material_no,
acnd.material_name,
acnd.material_type,
acnd.material_photoUrl,
acnd.material_brand,
acnd.material_unit,
acnd.material_describe,
acnd.material_process_method,
acnd.shipped_goods_sum,
acnd.material_sum,
acnd.enterprise_sum,
acnd.create_by,
acnd.create_time,
acnd.update_by,
acnd.update_time,
acnd.remark
from aftersales_complaint_notice_detail acnd
left join sys_makeorder_bom smb on smb.make_no = acnd.make_no
</select>
</select>
<select id= "selectAftersalesComplaintNoticeDetailById" parameterType= "Long" resultMap= "AftersalesComplaintNoticeDetailResult" >
<select id= "selectAftersalesComplaintNoticeDetailById" parameterType= "Long" resultMap= "AftersalesComplaintNoticeDetailResult" >