修改了institutionAndUser(String userName)接口,当userName有值事搜索出此用户以及它所在的机构,userName为null时搜索全部
添加getNext(String institutionId)接口,通过机构id返回此部门下的第一级部门和人员 添加getFirstInstitution()接口,返回机构第一级目录
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.adc.da.person.dao.PersonCollectEODao">
|
||||
<!-- Result Map-->
|
||||
<resultMap id="BaseResultMap" type="com.adc.da.person.entity.PersonCollectEO">
|
||||
<resultMap id="BaseResultMap" type="com.adc.da.person.entity.TsPersonCollect">
|
||||
<id column="id" property="id"/>
|
||||
<result column="modify_time" property="modifyTime"/>
|
||||
<result column="creation_time" property="creationTime"/>
|
||||
@@ -153,7 +153,7 @@
|
||||
</sql>
|
||||
|
||||
<!-- 插入记录 -->
|
||||
<insert id="insert" parameterType="com.adc.da.person.entity.PersonCollectEO">
|
||||
<insert id="insert" parameterType="com.adc.da.person.entity.TsPersonCollect">
|
||||
<!-- <selectKey resultType="java.lang.String" order="BEFORE" keyProperty="id">
|
||||
SELECT SEQ_TS_PERSON_COLLECT.NEXTVAL FROM DUAL
|
||||
</selectKey> -->
|
||||
@@ -164,7 +164,7 @@
|
||||
</insert>
|
||||
|
||||
<!-- 动态插入记录 主键是序列 -->
|
||||
<insert id="insertSelective" parameterType="com.adc.da.person.entity.PersonCollectEO">
|
||||
<insert id="insertSelective" parameterType="com.adc.da.person.entity.TsPersonCollect">
|
||||
<!-- <selectKey resultType="java.lang.String" order="BEFORE" keyProperty="id">
|
||||
SELECT SEQ_TS_PERSON_COLLECT.NEXTVAL FROM DUAL
|
||||
</selectKey> -->
|
||||
@@ -194,7 +194,7 @@
|
||||
</insert>
|
||||
|
||||
<!-- 根据pk,修改记录-->
|
||||
<update id="updateByPrimaryKey" parameterType="com.adc.da.person.entity.PersonCollectEO">
|
||||
<update id="updateByPrimaryKey" parameterType="com.adc.da.person.entity.TsPersonCollect">
|
||||
update TS_PERSON_COLLECT
|
||||
set modify_time = #{modifyTime},
|
||||
creation_time = #{creationTime},
|
||||
@@ -208,7 +208,7 @@
|
||||
</update>
|
||||
|
||||
<!-- 修改记录,只修改只不为空的字段 -->
|
||||
<update id="updateByPrimaryKeySelective" parameterType="com.adc.da.person.entity.PersonCollectEO">
|
||||
<update id="updateByPrimaryKeySelective" parameterType="com.adc.da.person.entity.TsPersonCollect">
|
||||
update TS_PERSON_COLLECT
|
||||
<set>
|
||||
<if test="modifyTime != null">
|
||||
@@ -332,7 +332,7 @@
|
||||
${pager.orderCondition}
|
||||
</if>
|
||||
order by TS_PERSON_COLLECT.creation_time desc
|
||||
) tmp_tb where rownum <= ${pager.endIndex})
|
||||
) as tmp_tb where rownum <= ${pager.endIndex})
|
||||
where rn >= ${pager.startIndex}
|
||||
</select>
|
||||
|
||||
@@ -391,4 +391,10 @@
|
||||
</where>
|
||||
</update>
|
||||
|
||||
|
||||
<select id="selectPageCollect" resultMap="BaseResultMap" parameterType="java.util.Map">
|
||||
select *
|
||||
from ts_pserson_collect
|
||||
where collect_type=#{c}
|
||||
</select>
|
||||
</mapper>
|
||||
|
||||
Reference in New Issue
Block a user