瀏覽代碼

修改生成Uid方法

suntianwu 3 年之前
父節點
當前提交
33e3665192

+ 0 - 1
src/main/java/com/iden/common/facetool/FaceIdenTool.java

@@ -6,7 +6,6 @@ import com.face.monitor.model.FaceModel;
 import com.face.monitor.model.FaceRecogRetrieveResult;
 import com.face.monitor.model.FaceRecogRetrieveResult;
 import com.iden.common.cache.FaceMoniterCache;
 import com.iden.common.cache.FaceMoniterCache;
 import com.iden.common.constant.Constants;
 import com.iden.common.constant.Constants;
-
 import com.iden.common.facetool.pool.MyFaceMonitor;
 import com.iden.common.facetool.pool.MyFaceMonitor;
 import com.iden.common.facetool.pool.ResourcePoolableObjectFactory;
 import com.iden.common.facetool.pool.ResourcePoolableObjectFactory;
 import com.iden.common.util.ByteUtil;
 import com.iden.common.util.ByteUtil;

+ 1 - 1
src/main/resources/mybatis/IdenAutoincrKeyMapper.xml

@@ -6,6 +6,6 @@
         <selectKey resultType="java.lang.Long" keyProperty="maxValue" order="AFTER">
         <selectKey resultType="java.lang.Long" keyProperty="maxValue" order="AFTER">
             select max_value FROM iden_autoincr_key where key = #{key}
             select max_value FROM iden_autoincr_key where key = #{key}
         </selectKey>
         </selectKey>
-        update iden_autoincr_key set max_value = #{maxValue} where key = #{key}
+        update iden_autoincr_key set max_value = max_value + 1 where key = #{key}
     </update>
     </update>
 </mapper>
 </mapper>