Authored by Zhang

<SRS> fix DAO bugs.

... ... @@ -2,6 +2,7 @@ package com.yoho.unions.dal;
import com.yoho.unions.dal.model.AppActive;
import org.apache.ibatis.annotations.Param;
import java.util.List;
import java.util.Map;
... ... @@ -19,5 +20,5 @@ public interface IAppActiveDAO {
int updateByPrimaryKey(AppActive record);
List<AppActive> selectActivationAndActualCostByDateId(Map<String, Integer> timeParam);
List<AppActive> selectActivationAndActualCostByDateId(@Param("params") Map<String, Integer> params);
}
\ No newline at end of file
... ...
... ... @@ -2,6 +2,7 @@ package com.yoho.unions.dal;
import com.yoho.unions.dal.model.MktReportForm;
import org.apache.ibatis.annotations.Param;
import java.util.List;
import java.util.Map;
... ... @@ -19,5 +20,5 @@ public interface IMktReportFormDAO {
int updateByPrimaryKey(MktReportForm record);
List<MktReportForm> selectMktReportFormByDateId(Map<String, Integer> param);
List<MktReportForm> selectMktReportFormByDateId(@Param("params") Map<String, Integer> params);
}
\ No newline at end of file
... ...
... ... @@ -165,12 +165,13 @@
<select id="selectMktReportFormByDateId" parameterType="java.util.Map" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from APP_ACTIVE
from mkt_report_form
<include refid="WHERE_CONDITION"/>
</select>
<sql id="WHERE_CONDITION">
<trim prefix="where" prefixOverrides="and | or">
<if test="params.channelCode != null and params.channelCode != ''">and channel_code=#{params.channelCode}</if>
<if test="params.beginTime != null and params.beginTime != ''"><![CDATA[ and date_id>=#{params.beginTime}]]></if>
<if test="params.endTime != null and params.endTime != ''"><![CDATA[ and date_id<=#{params.endTime}]]></if>
</trim>
... ...