From e8b892dfed1afd907b7d257e42bbd15bb40db5c6 Mon Sep 17 00:00:00 2001 From: 侯瑞军 <411269194@kidgrow.com> Date: Fri, 03 Apr 2020 15:32:29 +0800 Subject: [PATCH] 1.为所有的生成的*Mapper.xml文件中的findbyobject增加 limit 1代码 2.为所有的*Mapper.java文件中的 findbyobject方法的参数增加前缀 @Param("p") 3.调整了organization 以及userorg的实体引用(从common中的model中引用) --- kidgrow-business/kidgrow-opration-center/kidgrow-opration-center-biz/src/main/resources/mapper/SysFeedbackMapper.xml | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/kidgrow-business/kidgrow-opration-center/kidgrow-opration-center-biz/src/main/resources/mapper/SysFeedbackMapper.xml b/kidgrow-business/kidgrow-opration-center/kidgrow-opration-center-biz/src/main/resources/mapper/SysFeedbackMapper.xml index 3931088..de5684f 100644 --- a/kidgrow-business/kidgrow-opration-center/kidgrow-opration-center-biz/src/main/resources/mapper/SysFeedbackMapper.xml +++ b/kidgrow-business/kidgrow-opration-center/kidgrow-opration-center-biz/src/main/resources/mapper/SysFeedbackMapper.xml @@ -11,7 +11,7 @@ <sql id="where"> <where> <!--查询条件自行添加--> - p.is_del=0 + is_del=0 <if test="p.id != null and p.id !=''"> and id = #{p.id} </if> @@ -73,6 +73,7 @@ from sys_feedback <include refid="where"/> order by id desc + limit 1 </select> <!--定义根据-SysFeedback当作查询条件返回对象集合--> -- Gitblit v1.8.0