|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | <!--  根据id更新 部分更新   --> | 
|---|
|  |  |  | <update id="updateOrderTime"> | 
|---|
|  |  |  | UPDATE sys_proj_services set CREATE_TIME=#{createTime} WHERE id=#{id} | 
|---|
|  |  |  | UPDATE sys_proj_services set consume_time=#{consumeTime} WHERE id=#{id} | 
|---|
|  |  |  | </update> | 
|---|
|  |  |  |  | 
|---|
|  |  |  | <!-- 设置服务单为已通知 --> | 
|---|
|  |  |  | 
|---|
|  |  |  | <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> | 
|---|