@ -146,9 +146,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</select>
<insert id="insertWxNursingLog" parameterType="WxNursingLog" useGeneratedKeys="true" keyProperty="id">
<selectKey keyProperty="id" resultType="Long" order="AFTER">
SELECT LAST_INSERT_ID()
</selectKey>
insert into wx_nursing_log
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="userId != null">user_id,</if>
@ -500,7 +500,8 @@ public class WxNursingLogServiceImpl implements IWxNursingLogService {
wxNursingLog.setNursingDaysMonth(1);
wxNursingLog.setNursingDaysWeek(1);
}
return Long.valueOf(wxNursingLogMapper.insertWxNursingLog(wxNursingLog));
wxNursingLogMapper.insertWxNursingLog(wxNursingLog);
return wxNursingLog.getId();