Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
open-source
/
rpc-openplatform
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 9caa06f4
authored
Dec 18, 2020
by
tyfanchz
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改mapper
1 parent
e61c6ba0
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
5 deletions
rpc-openplatform-api/src/main/java/cn/com/glsx/openplatform/enums/ResultCodeEnum.java
rpc-openplatform-container/src/main/resources/META-INF/orm/PlatformAppDownloadMapper.xml
rpc-openplatform-container/src/main/resources/META-INF/orm/PlatformDeviceMapper.xml
rpc-openplatform-container/src/main/resources/META-INF/orm/PlatformUserMapper.xml
rpc-openplatform-api/src/main/java/cn/com/glsx/openplatform/enums/ResultCodeEnum.java
View file @
9caa06f
...
@@ -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
,
"系统异常"
),
;
;
...
...
rpc-openplatform-container/src/main/resources/META-INF/orm/PlatformAppDownloadMapper.xml
View file @
9caa06f
...
@@ -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"
>
...
...
rpc-openplatform-container/src/main/resources/META-INF/orm/PlatformDeviceMapper.xml
View file @
9caa06f
...
@@ -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"
>
...
@@ -106,4 +110,4 @@
...
@@ -106,4 +110,4 @@
group by time
group by time
</select>
</select>
</mapper>
\ No newline at end of file
\ No newline at end of file
</mapper>
rpc-openplatform-container/src/main/resources/META-INF/orm/PlatformUserMapper.xml
View file @
9caa06f
...
@@ -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"
>
...
@@ -86,4 +90,4 @@
...
@@ -86,4 +90,4 @@
</select>
</select>
</mapper>
\ No newline at end of file
\ No newline at end of file
</mapper>
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment