- <?xml version="1.0" encoding="UTF-8" ?>
- <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
- <mapper namespace="com.zhyc.xps.common.mapper.UIDSequenceMapper">
- <insert id="generateUID" parameterType="com.zhyc.xps.common.entity.UID">
- <selectKey resultType="java.lang.Long" keyProperty="uid" order="AFTER" >
- SELECT LAST_INSERT_ID() AS uid
- </selectKey>
- replace into uid_sequence(stub) values('a')
- </insert>
- </mapper>
|