insert into junk_requirement(
reference_price,type_cd,publish_user_name,publish_user_link,context,publish_user_id,junk_requirement_id,state,classification,community_id
) values (
#{referencePrice},#{typeCd},#{publishUserName},#{publishUserLink},#{context},#{publishUserId},#{junkRequirementId},#{state},#{classification},#{communityId}
)
update junk_requirement t set t.status_cd = #{statusCd}
,t.b_id = #{newBId}
, t.reference_price= #{referencePrice}
, t.type_cd= #{typeCd}
, t.publish_user_name= #{publishUserName}
, t.publish_user_link= #{publishUserLink}
, t.context= #{context}
, t.publish_user_id= #{publishUserId}
, t.state= #{state}
, t.classification= #{classification}
, t.community_id= #{communityId}
where 1=1
and t.junk_requirement_id= #{junkRequirementId}