insert into work_task(
staff_name,start_time,state,end_time,community_id,store_id,task_id,work_id,staff_id
) values (
#{staffName},#{startTime},#{state},#{endTime},#{communityId},#{storeId},#{taskId},#{workId},#{staffId}
)
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.work_id= #{workId}
, t.staff_id= #{staffId}
where 1=1
and t.task_id= #{taskId}
and t.community_id= #{communityId}
and t.store_id= #{storeId}