浏览代码

!235 修复online sessionId大小写bug;修复代码生成: 生成主子表代码, 子表新增数据报错
Merge pull request !235 from dawn9117/N/A

若依 4 年之前
父节点
当前提交
ed91f217d2

+ 1 - 1
ruoyi-generator/src/main/resources/vm/java/serviceImpl.java.vm

@@ -185,7 +185,7 @@ public class ${ClassName}ServiceImpl implements I${ClassName}Service
             List<${subClassName}> list = new ArrayList<${subClassName}>();
             for (${subClassName} ${subclassName} : ${subclassName}List)
             {
-                ${subclassName}.set${pkColumn.capJavaField}(${pkColumn.javaField});
+                ${subclassName}.set${pkColumn.subTableFkClassName}(${pkColumn.javaField});
                 list.add(${subclassName});
             }
             if (list.size() > 0)

+ 1 - 1
ruoyi-system/src/main/resources/mapper/system/SysUserOnlineMapper.xml

@@ -25,7 +25,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
     
 	<select id="selectOnlineById" parameterType="String" resultMap="SysUserOnlineResult">
 		<include refid="selectOnlineVo"/>
-		where sessionid = #{sessionid}
+		where sessionId = #{sessionId}
 	</select>
 
 	<insert id="saveOnline" parameterType="SysUserOnline">