|  |  |  | 
|---|
|  |  |  | where  a.SERVICES_ID =#{serId} | 
|---|
|  |  |  | </select> | 
|---|
|  |  |  |  | 
|---|
|  |  |  | <!-- EXC_TIME =TIMESTAMPDIFF(MINUTE,BEGIN_TIME,now()) --> | 
|---|
|  |  |  | <update id="chengItemState"> | 
|---|
|  |  |  | update sys_beautician_state set  state=#{record.state}, | 
|---|
|  |  |  | EXC_TIME =TIMESTAMPDIFF(MINUTE,BEGIN_TIME,now()) | 
|---|
|  |  |  | where STAFF_ID=#{record.staffId} and SERVICES_ID =#{record.servicesId} | 
|---|
|  |  |  | update sys_beautician_state set  state=#{record.state} | 
|---|
|  |  |  | where 1=1 | 
|---|
|  |  |  | <if test="record.staffId != null"> | 
|---|
|  |  |  | and STAFF_ID=#{record.staffId} | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | and SERVICES_ID =#{record.servicesId} | 
|---|
|  |  |  | </update> | 
|---|
|  |  |  |  | 
|---|
|  |  |  | <!--  根据id更新 部分更新   --> | 
|---|
|  |  |  | 
|---|
|  |  |  | <if test="servicesId != null and servicesId !='' "> | 
|---|
|  |  |  | SERVICES_ID = #{servicesId}, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="servicesId != null and servicesId !='' "> | 
|---|
|  |  |  | <if test="excTime != null and excTime !='' "> | 
|---|
|  |  |  | EXC_TIME = #{excTime}, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  |  | 
|---|