| | |
| | | <?xml version="1.0" encoding="UTF-8" ?> |
| | | <!DOCTYPE mapper |
| | | PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
| | | "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="repairServiceDaoImpl"> |
| | | |
| | |
| | | t.repair_obj_type,t.repair_obj_id,t.repair_obj_name,t.repair_obj_type repairObjType,t.repair_obj_id repairObjId, |
| | | t.repair_obj_name repairObjName,rrv.visit_type visitType,rrv.context visitContext,a.appraise_score |
| | | appraiseScore, a.door_speed_score doorSpeedScore,a.repairman_service_score repairmanServiceScore, |
| | | t.pay_type,t.pay_type payType,rs.repair_setting_type repairSettingType,d1.name repairSettingTypeName |
| | | t.pay_type,t.pay_type payType,rs.repair_setting_type repairSettingType,d1.name repairSettingTypeName,t.create_time createTime |
| | | <if test="staffId != null and staffId != ''"> |
| | | ,rru.state repairDispatchState,rru.context repairDispatchContext,td.name repairDispatchStateName |
| | | </if> |
| | |
| | | </if> |
| | | <if test="repairName !=null and repairName != ''"> |
| | | and t.repair_name like '%${repairName}%' |
| | | </if> |
| | | <if test="repairNameLike !=null and repairNameLike != ''"> |
| | | and t.repair_name like concat('%',#{repairNameLike},'%') |
| | | </if> |
| | | <if test="appointmentTime !=null "> |
| | | and t.appointment_time= #{appointmentTime} |
| | |
| | | <if test="repairName !=null and repairName != ''"> |
| | | and t.repair_name like '%${repairName}%' |
| | | </if> |
| | | <if test="repairNameLike !=null and repairNameLike != ''"> |
| | | and t.repair_name like concat('%',#{repairNameLike},'%') |
| | | </if> |
| | | <if test="appointmentTime !=null "> |
| | | and t.appointment_time= #{appointmentTime} |
| | | </if> |
| | |
| | | <if test="repairObjId !=null and repairObjId != ''"> |
| | | and t.repair_obj_id= #{repairObjId} |
| | | </if> |
| | | <if test="maintenanceType !=null and maintenanceType != ''"> |
| | | and t.maintenance_type= #{maintenanceType} |
| | | </if> |
| | | <if test="repairChannels !=null"> |
| | | and t.repair_channel in |
| | | <foreach collection="repairChannels" item="item" open="(" close=")" separator=","> |
| | |
| | | </select> |
| | | |
| | | <!-- 查询报修信息信息 add by wuxw 2018-07-03 |
| | | 将状态先调整 and ru.state in ('10001','10002') |
| | | --> |
| | | 将状态先调整 and ru.state in ('10001','10002')--> |
| | | <select id="getStaffRepairInfo" parameterType="Map" resultType="Map"> |
| | | select distinct t.repair_name,t.repair_name repairName,t.appointment_time,t.appointment_time |
| | | appointmentTime,t.repair_type,t.repair_type repairType,t.context,t.repair_id,t.repair_id |
| | |
| | | <if test="repairObjId !=null and repairObjId != ''"> |
| | | and t.repair_obj_id= #{repairObjId} |
| | | </if> |
| | | <if test="maintenanceType !=null and maintenanceType != ''"> |
| | | and t.maintenance_type= #{maintenanceType} |
| | | </if> |
| | | <if test="payType !=null and payType != ''"> |
| | | and t.pay_type= #{payType} |
| | | </if> |
| | |
| | | <if test="repairObjId !=null and repairObjId != ''"> |
| | | and t.repair_obj_id= #{repairObjId} |
| | | </if> |
| | | <if test="maintenanceType !=null and maintenanceType != ''"> |
| | | and t.maintenance_type= #{maintenanceType} |
| | | </if> |
| | | <if test="payType !=null and payType != ''"> |
| | | and t.pay_type= #{payType} |
| | | </if> |