@@ -26,4 +26,5 @@ public class CommonWebConfigurer implements WebMvcConfigurer {
// 设置拦截的路径、不拦截的路径、优先级等等
registry.addInterceptor(appContextHandler()).addPathPatterns("/**");
}
+
@@ -42,7 +42,7 @@ public abstract class BaseEntity<T> extends Model implements IBaseEntity,Seriali
/** 实体类必须有的属性 */
@TableId(type = IdType.ASSIGN_ID)
- protected Long id;
+ protected String id;
/** 时间戳 */
protected Date ts;
@@ -14,13 +14,13 @@ public interface IBaseEntity extends Comparable<IBaseEntity>{
* 取得实体主键
* @return 实体主键
*/
- Long getId();
+ String getId();
/**
* 设置实体主键
* @param id 实体主键
- void setId(Long id);
+ void setId(String id);
* 取得时间戳
@@ -20,5 +20,5 @@ public class FmResponseUpsertVO {
* 响应码
- private Long id;
+ private String id;
@@ -3,7 +3,7 @@
"-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
-<mapper namespace="cn.crcc.ccit.chassis.translate.dao.ITranslateDao">
+<mapper namespace="com.persagy.fm.translate.dao.ITranslateDao">
<select id="findTransBySql" resultType="map">
${sql}
</select>
@@ -17,5 +17,6 @@
<module>fm-server</module>
<module>fm-common</module>
<module>fm-translate</module>
+ <module>fm-mybatis</module>
</modules>
</project>