|
@@ -7,7 +7,11 @@
|
|
|
<id column="id" jdbcType="BIGINT" property="id"/>
|
|
|
<collection property="details" select="getEmployees" column="id" />
|
|
|
</resultMap>
|
|
|
-
|
|
|
+ <resultMap id="BaseResultMap2"
|
|
|
+ type="cn.ezhizao.project.business.socialSecurity.domain.BizSocialSecurityConfirmDetail">
|
|
|
+ <id column="id" jdbcType="BIGINT" property="id"/>
|
|
|
+ <collection property="details" select="getEmployees" column="id" />
|
|
|
+ </resultMap>
|
|
|
<resultMap id="EmployeeResult" type="cn.ezhizao.project.business.socialSecurity.domain.BizSocialSecurityConfirmDetailEmployee">
|
|
|
<id column="id" jdbcType="INTEGER" property="id"/>
|
|
|
</resultMap>
|
|
@@ -21,7 +25,9 @@
|
|
|
<select id="getList" resultMap="BaseResultMap">
|
|
|
<include refid="getListSql"/>
|
|
|
</select>
|
|
|
-
|
|
|
+ <select id="getList2" resultMap="BaseResultMap2">
|
|
|
+ <include refid="getListSql"/>
|
|
|
+ </select>
|
|
|
<!--带条件的List查询 数据总条数-->
|
|
|
<select id="getTotal" resultType="java.lang.Integer">
|
|
|
SELECT COUNT(1) FROM (<include refid="getListSql"/>) AS C
|