insert into work_task(staff_name, start_time, state, end_time, community_id, store_id, task_id, work_id, staff_id, org_staff_id, org_staff_name) values (#{staffName}, #{startTime}, #{state}, #{endTime}, #{communityId}, #{storeId}, #{taskId}, #{workId}, #{staffId}, #{orgStaffId}, #{orgStaffName}) update work_task t set t.status_cd = #{statusCd} ,t.b_id = #{newBId} , t.staff_name= #{staffName} , t.start_time= #{startTime} , t.state= #{state} , t.end_time= #{endTime} , t.finish_time = #{finishTime} , t.task_timeout= #{taskTimeout} , t.staff_id= #{staffId} where 1=1 and t.task_id= #{taskId} and t.community_id= #{communityId} and t.store_id= #{storeId} and t.work_id= #{workId}