|
|
@@ -14,6 +14,7 @@
|
|
|
<result column="create_time" jdbcType="TIMESTAMP" property="createTime"/>
|
|
|
<result column="updater_id" jdbcType="BIGINT" property="updaterId"/>
|
|
|
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime"/>
|
|
|
+ <result column="bind" jdbcType="INTEGER" property="bind"/>
|
|
|
</resultMap>
|
|
|
|
|
|
<resultMap id="loginMap" type="com.usoftchina.saas.operation.dto.LoginDTO">
|
|
|
@@ -38,7 +39,8 @@
|
|
|
</resultMap>
|
|
|
|
|
|
<select id="findAccountByCondition" parameterType="string" resultMap="BaseResultMap">
|
|
|
- select * from saas_account.ac_account <where>
|
|
|
+ select * from (select count(account_id) bind ,ac_account.*
|
|
|
+ from saas_account.ac_account left join saas_account.ac_account_company on ac_account.id=account_id GROUP BY id)account <where>
|
|
|
<if test="con != null">
|
|
|
${con}
|
|
|
</if>
|