https://www.programmersought.com/article/8279329502/
<insert id="" parameterType="">
<selectKey keyProperty="approvalId" resultType="java.lang.String" order="BEFORE">
select replace(uuid(),'-','') AS APPROVAL_ID
</selectKey>
Insert into table name (APPROVAL_ID,....) values(#{approvalId,jdbcType=VARCHAR},...)
</insert>