|  |  |  | 
|---|
|  |  |  | <if test="record.vipId != null and record.vipId !='' "> | 
|---|
|  |  |  | and a.VIP_ID   = #{record.vipId} | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="record.isOverTime != null  and record.serviceNo !=''   "> | 
|---|
|  |  |  | and a.IS_OVERTIME  > #{record.isOverTime} | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  |  | 
|---|
|  |  |  | <if test="record.serviceNo != null and record.serviceNo !='' "> | 
|---|
|  |  |  | and a.SERVICE_NO  like CONCAT('%',#{record.serviceNo},'%') | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | 
|---|
|  |  |  | </select> | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | <select id="selectProjServicesByOrderItemId" resultMap="SysProjServicesMap"> | 
|---|
|  |  |  | select a.* from sys_proj_services a | 
|---|
|  |  |  | inner join sys_beautician_state b on a.id=b.SERVICES_ID | 
|---|
|  |  |  | inner join sys_proj_use c on c.id=b.puse_id | 
|---|
|  |  |  | where ORDER_ITEM_ID=#{itemId} and a.STATE!='预约取消' | 
|---|
|  |  |  | </select> | 
|---|
|  |  |  | </mapper> | 
|---|