|
|
@@ -38,15 +38,29 @@
|
|
|
</resultMap>
|
|
|
|
|
|
<select id="findAccountByCondition" parameterType="string" resultMap="BaseResultMap">
|
|
|
- select * from saas_account.ac_account where #{con}
|
|
|
+ select * from saas_account.ac_account <where>
|
|
|
+ <if test="con != null">
|
|
|
+ ${con}
|
|
|
+ </if>
|
|
|
+ </where>
|
|
|
</select>
|
|
|
<select id="getLogin" parameterType="string" resultMap="loginMap">
|
|
|
SELECT * FROM (select account_id ,count(account_id) login_num,max(ac_account.realname) username,max(login_time) lastesttime, max(ac_account.mobile) mobile from au_authorize_log left join saas_account.ac_account on account_id= ac_account.id where login_time > date_sub(now(),interval 3 MONTH) GROUP BY account_id order by lastesttime desc
|
|
|
- )login_info where #{con}
|
|
|
+ )login_info
|
|
|
+ <where>
|
|
|
+ <if test="con != null">
|
|
|
+ ${con}
|
|
|
+ </if>
|
|
|
+ </where>
|
|
|
</select>
|
|
|
|
|
|
<select id="getConpanyAnalyze" parameterType="string" resultMap="companymap">
|
|
|
- select * from company_analyze where #{con} order by ca_createtime desc
|
|
|
+ select * from company_analyze <where>
|
|
|
+ <if test="con != null">
|
|
|
+ ${con}
|
|
|
+ </if>
|
|
|
+ </where>
|
|
|
+ order by ca_createtime desc
|
|
|
</select>
|
|
|
|
|
|
<select id="analyzeCompany" statementType="CALLABLE">
|