insert into printer_rule_repair(prr_id, repair_type, rule_id, community_id, repair_type_name)
values (#{prrId}, #{repairType}, #{ruleId}, #{communityId}, #{repairTypeName})
update printer_rule_repair t set t.status_cd = #{statusCd}
,t.b_id = #{newBId}
, t.repair_type= #{repairType}
, t.repair_type_name= #{repairTypeName}
, t.rule_id= #{ruleId}
where 1=1
and t.prr_id= #{prrId}
and t.community_id= #{communityId}