Commit 9caa06f4 by tyfanchz

修改mapper

1 parent e61c6ba0
...@@ -12,6 +12,7 @@ import cn.com.glsx.openplatform.exception.BusinessException; ...@@ -12,6 +12,7 @@ import cn.com.glsx.openplatform.exception.BusinessException;
*/ */
public enum ResultCodeEnum { public enum ResultCodeEnum {
SUCCESS(200, "成功"), SUCCESS(200, "成功"),
PARAM_ERROR(401, "参数错误"),
SERVER_ERROR(500, "系统异常"), SERVER_ERROR(500, "系统异常"),
; ;
......
...@@ -21,7 +21,11 @@ ...@@ -21,7 +21,11 @@
from t_platform_app_download a from t_platform_app_download a
left join t_platform_customer b left join t_platform_customer b
on a.customer_id = b.id on a.customer_id = b.id
where b.customer_name = #{customerName,jdbcType=VARCHAR} <where>
<if test="customerName != null and customerName != ''">
and b.customer_name = #{customerName,jdbcType=VARCHAR}
</if>
</where>
</select> </select>
<select id="getAppDownloadStatistic" resultType="map"> <select id="getAppDownloadStatistic" resultType="map">
......
...@@ -78,7 +78,11 @@ ...@@ -78,7 +78,11 @@
from t_platform_device a from t_platform_device a
left join t_platform_customer b left join t_platform_customer b
on a.customer_id = b.id on a.customer_id = b.id
where b.customer_name = #{customerName,jdbcType=VARCHAR} <where>
<if test="customerName != null and customerName != ''">
and b.customer_name = #{customerName,jdbcType=VARCHAR}
</if>
</where>
</select> </select>
<select id="getDeviceAccessTrendList" resultType="java.util.Map"> <select id="getDeviceAccessTrendList" resultType="java.util.Map">
......
...@@ -67,7 +67,11 @@ ...@@ -67,7 +67,11 @@
from t_platform_user a from t_platform_user a
left join t_platform_customer b left join t_platform_customer b
on a.customer_id = b.id on a.customer_id = b.id
where b.customer_name = #{customerName,jdbcType=VARCHAR} <where>
<if test="customerName != null and customerName != ''">
and b.customer_name = #{customerName,jdbcType=VARCHAR}
</if>
</where>
</select> </select>
<select id="getUserActivityStatistic" resultType="map"> <select id="getUserActivityStatistic" resultType="map">
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!