!235 修复online sessionId大小写bug;修复代码生成: 生成主子表代码, 子表新增数据报错

Merge pull request !235 from dawn9117/N/A
pull/235/MERGE
若依 4 years ago committed by Gitee
commit ed91f217d2

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

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