insert into purchase_apply( create_user_id,res_order_type,end_user_name,description,apply_order_id,create_user_name,store_id,user_name,user_id,warehousing_way,state,community_id,end_user_tel ) values ( #{createUserId},#{resOrderType},#{endUserName},#{description},#{applyOrderId},#{createUserName},#{storeId},#{userName},#{userId},#{warehousingWay},#{state},#{communityId},#{endUserTel} ) update purchase_apply t set t.status_cd = #{statusCd} ,t.b_id = #{newBId} , t.create_user_id= #{createUserId} , t.res_order_type= #{resOrderType} , t.end_user_name= #{endUserName} , t.description= #{description} , t.create_user_name= #{createUserName} , t.store_id= #{storeId} , t.user_name= #{userName} , t.user_id= #{userId} , t.warehousing_way= #{warehousingWay} , t.state= #{state} , t.community_id= #{communityId} , t.end_user_tel= #{endUserTel} where 1=1 and t.apply_order_id= #{applyOrderId}