insert into small_wechat(
mch_id,store_Id,wechat_type,cert_path,appId,appSecret,name,obj_id,wechat_id,pay_password,obj_type,remarks,mch_name
) values (
#{mchId},#{storeId},#{wechatType},#{certPath},#{appId},#{appSecret},#{name},#{objId},#{wechatId},#{payPassword},#{objType},#{remarks},#{mchName}
)
update small_wechat t set t.status_cd = #{statusCd}
,t.b_id = #{newBId}
, t.mch_id= #{mchId}
, t.mch_name= #{mchName}
, t.store_Id= #{storeId}
, t.wechat_type= #{wechatType}
, t.cert_path= #{certPath}
, t.appId= #{appId}
, t.appSecret= #{appSecret}
, t.name= #{name}
, t.obj_id= #{objId}
, t.pay_password= #{payPassword}
, t.obj_type= #{objType}
, t.remarks= #{remarks}
where 1=1
and t.wechat_id= #{wechatId}