insert into asset_import_log(
log_type,success_count,log_id,remark,community_id,error_count,user_name
) values (
#{logType},#{successCount},#{logId},#{remark},#{communityId},#{errorCount},#{userName}
)
update asset_import_log t set t.status_cd = #{statusCd}
,t.b_id = #{newBId}
, t.log_type= #{logType}
, t.success_count= #{successCount}
, t.remark= #{remark}
, t.error_count= #{errorCount}
, t.state= #{state}
where 1=1
and t.log_id= #{logId}
and t.community_id= #{communityId}