insert into inspection_task(
plan_user_id,act_ins_time,plan_ins_time,original_plan_user_name,ip_staff_id,transfer_desc,act_user_name,original_plan_user_id,
task_type,sign_type,plan_end_time,inspection_plan_id,plan_user_name,community_id,act_user_id,task_id
) values (
#{planUserId},#{actInsTime},#{planInsTime},#{originalPlanUserName},#{ipStaffId},#{transferDesc},#{actUserName},#{originalPlanUserId},
#{taskType},#{signType},#{planEndTime},#{inspectionPlanId},#{planUserName},#{communityId},#{actUserId},#{taskId}
)
update inspection_task t set t.status_cd = #{statusCd}
,t.b_id = #{newBId}
, t.plan_user_id= #{planUserId}
, t.act_ins_time= #{actInsTime}
, t.plan_ins_time= #{planInsTime}
, t.original_plan_user_name= #{originalPlanUserName}
, t.ip_staff_id= #{ipStaffId}
, t.transfer_desc= #{transferDesc}
, t.act_user_name= #{actUserName}
, t.original_plan_user_id= #{originalPlanUserId}
, t.task_type= #{taskType}
, t.sign_type= #{signType}
, t.plan_end_time= #{planEndTime}
, t.inspection_plan_id= #{inspectionPlanId}
, t.plan_user_name= #{planUserName}
, t.act_user_id= #{actUserId}
, t.state= #{state}
where 1=1
and t.task_id= #{taskId}
and t.community_id= #{communityId}