Преглед на файлове

fix 修改疫苗更新问题

Administrator преди 3 години
родител
ревизия
e90872da66

+ 1 - 1
boman-modules/boman-system/src/main/resources/mapper/system/SysDeptMapper.xml

@@ -31,7 +31,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
 	<select id="selectDeptList" parameterType="com.boman.domain.SysDept" resultMap="SysDeptResult">
         <include refid="selectDeptVo"/>
         where d.del_flag = '0'
-		<if test="id != null">
+		<if test="id != null and parentId == null">
 			AND id = #{id}
 		</if>
         <if test="parentId != null and parentId != 0">

+ 2 - 2
boman-web-core/src/main/resources/mapper/VaccineInfoMapper.xml

@@ -295,7 +295,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="suspendUrl != null and suspendUrl != ''">suspend_url = #{suspendUrl},</if>
             <if test="otherUrl != null and otherUrl != ''">other_url = #{otherUrl},</if>
             <if test="age != null and age != ''">age = #{age},</if>
-            <if test="deptId != null">deptId = #{deptId},</if>
+            <if test="deptId != null">dept_id = #{deptId},</if>
         </trim>
         where id = #{id}
     </update>
@@ -313,7 +313,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
 
 
     <select id="findHjInfo" parameterType="VaccineInfoOperation" resultMap="VaccineInfoResult">
-        select id, user_name ,gender, birthday,age from vaccine_info
+        select id, user_name ,gender, birthday,age,code from vaccine_info
         <where>
             is_del = 'N'
          <if test="idCard != null and idCard != '' "> and id_card = #{idCard}</if>