Commit 9caa06f4 by tyfanchz

修改mapper

1 parent e61c6ba0
......@@ -12,6 +12,7 @@ import cn.com.glsx.openplatform.exception.BusinessException;
*/
public enum ResultCodeEnum {
SUCCESS(200, "成功"),
PARAM_ERROR(401, "参数错误"),
SERVER_ERROR(500, "系统异常"),
;
......
......@@ -21,7 +21,11 @@
from t_platform_app_download a
left join t_platform_customer b
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 id="getAppDownloadStatistic" resultType="map">
......
......@@ -78,7 +78,11 @@
from t_platform_device a
left join t_platform_customer b
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 id="getDeviceAccessTrendList" resultType="java.util.Map">
......@@ -106,4 +110,4 @@
group by time
</select>
</mapper>
\ No newline at end of file
</mapper>
......@@ -67,7 +67,11 @@
from t_platform_user a
left join t_platform_customer b
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 id="getUserActivityStatistic" resultType="map">
......@@ -86,4 +90,4 @@
</select>
</mapper>
\ No newline at end of file
</mapper>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!