Procházet zdrojové kódy

id统一修改为string类型

lixing před 4 roky
rodič
revize
8c97ea6bb7

+ 1 - 0
fm-common/src/main/java/com/persagy/fm/common/config/CommonWebConfigurer.java

@@ -26,4 +26,5 @@ public class CommonWebConfigurer implements WebMvcConfigurer {
         // 设置拦截的路径、不拦截的路径、优先级等等
         registry.addInterceptor(appContextHandler()).addPathPatterns("/**");
     }
+
 }

+ 1 - 1
fm-common/src/main/java/com/persagy/fm/common/model/entity/BaseEntity.java

@@ -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;

+ 2 - 2
fm-common/src/main/java/com/persagy/fm/common/model/entity/IBaseEntity.java

@@ -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);
 
 	/**
 	 * 取得时间戳

+ 1 - 1
fm-common/src/main/java/com/persagy/fm/common/response/FmResponseUpsertVO.java

@@ -20,5 +20,5 @@ public class FmResponseUpsertVO {
     /**
      * 响应码
      */
-    private Long id;
+    private String id;
 }

+ 1 - 1
fm-translate/src/main/resources/mapper/adder/translate/ITranslateDao.xml

@@ -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>

+ 1 - 0
pom.xml

@@ -17,5 +17,6 @@
         <module>fm-server</module>
         <module>fm-common</module>
         <module>fm-translate</module>
+        <module>fm-mybatis</module>
     </modules>
 </project>