|
|
|
@ -33,6 +33,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
<result property="bkhdxName" column="bkhdx_name" />
|
|
|
|
<result property="bkhdxName" column="bkhdx_name" />
|
|
|
|
<result property="deptId" column="dept_id" />
|
|
|
|
<result property="deptId" column="dept_id" />
|
|
|
|
<result property="deptName" column="dept_name" />
|
|
|
|
<result property="deptName" column="dept_name" />
|
|
|
|
|
|
|
|
<result property="wordId" column="word_id" />
|
|
|
|
|
|
|
|
<result property="position" column="position" />
|
|
|
|
</resultMap>
|
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
|
|
|
|
<sql id="selectKhPingceVo">
|
|
|
|
<sql id="selectKhPingceVo">
|
|
|
|
@ -52,9 +54,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
<select id="getBkhdxs" resultMap="BkhdxsResult">
|
|
|
|
<select id="getBkhdxs" resultMap="BkhdxsResult">
|
|
|
|
select bkhdx_id,bkhdx_name,dept_id,dept_name from kh_pc_emp pe
|
|
|
|
select pe.bkhdx_id,pe.bkhdx_name,pe.dept_id,pe.dept_name,emp.word_id,emp.`position` from kh_pc_emp pe,kh_employee emp
|
|
|
|
<where>
|
|
|
|
<where>
|
|
|
|
<if test="id != null "> pe.pc_id = #{id}</if>
|
|
|
|
<if test="id != null "> pe.pc_id = #{id}</if>
|
|
|
|
|
|
|
|
and pe.bkhdx_id = emp.id
|
|
|
|
</where>
|
|
|
|
</where>
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
|