Browse Source

修复online sessionId大小写bug;

修复代码生成: 生成主子表代码, 子表新增数据报错
pull/235/head
dawn9117 4 years ago committed by Gitee
parent
commit
edfaa1210a
  1. 2
      ruoyi-generator/src/main/resources/vm/java/serviceImpl.java.vm
  2. 2
      ruoyi-system/src/main/resources/mapper/system/SysUserOnlineMapper.xml

2
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)

2
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">

Loading…
Cancel
Save