insert into maintainance_task_detail( send_flag,point_end_time,inspection_time,sort_number,machine_name,act_user_name,task_detail_id,machine_id,point_start_time,state,community_id,act_user_id,task_id ) values ( #{sendFlag},#{pointEndTime},#{inspectionTime},#{sortNumber},#{machineName},#{actUserName},#{taskDetailId},#{machineId},#{pointStartTime},#{state},#{communityId},#{actUserId},#{taskId} ) update maintainance_task_detail t set t.status_cd = #{statusCd} ,t.b_id = #{newBId} , t.send_flag= #{sendFlag} , t.point_end_time= #{pointEndTime} , t.inspection_time= #{inspectionTime} , t.sort_number= #{sortNumber} , t.machine_name= #{machineName} , t.act_user_name= #{actUserName} , t.machine_id= #{machineId} , t.point_start_time= #{pointStartTime} , t.state= #{state} , t.community_id= #{communityId} , t.act_user_id= #{actUserId} , t.task_id= #{taskId} where 1=1 and t.task_detail_id= #{taskDetailId}