Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Z
znks
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
王夏晖
znks
Commits
c0fd2deb
Commit
c0fd2deb
authored
Sep 09, 2018
by
张大伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug修复
parent
4896972a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
2 deletions
+12
-2
DeviceController.java
...ain/java/com/adc/da/znks/controller/DeviceController.java
+1
-1
AppPushUtils.java
...main/src/main/java/com/adc/da/znks/util/AppPushUtils.java
+8
-0
DeviceMapper.xml
...n/src/main/resources/mybatis/mapper/znks/DeviceMapper.xml
+3
-1
No files found.
adc-da-main/src/main/java/com/adc/da/znks/controller/DeviceController.java
View file @
c0fd2deb
...
...
@@ -45,7 +45,7 @@ public class DeviceController extends BaseController<Device> {
}
}
@GetMapping
(
"/
"
)
@GetMapping
(
"/
getListByPhoneNumber
"
)
public
ResponseEntity
<
List
<
Device
>>
getListByPhoneNumber
(
String
phoneNumber
)
{
List
<
Device
>
list
=
deviceService
.
listByPhoneNumber
(
phoneNumber
);
return
GenResponse
.
success
(
"1"
,
"查询成功"
,
list
);
...
...
adc-da-main/src/main/java/com/adc/da/znks/util/AppPushUtils.java
View file @
c0fd2deb
...
...
@@ -75,4 +75,12 @@ public class AppPushUtils {
return
template
;
}
public
static
void
main
(
String
[]
args
)
{
try
{
push
(
"提示"
,
"测试推送"
,
"59f02635c46d1b6d047fa051ad5db9fc"
);
}
catch
(
IOException
e
)
{
e
.
printStackTrace
();
}
}
}
adc-da-main/src/main/resources/mybatis/mapper/znks/DeviceMapper.xml
View file @
c0fd2deb
...
...
@@ -11,7 +11,7 @@
<result
column=
"user_password"
property=
"userPassword"
/>
<result
column=
"uid"
property=
"uid"
/>
</resultMap>
<select
id=
"listByPhoneNumber"
result
Type=
"com.adc.da.znks.entity.Device
"
>
<select
id=
"listByPhoneNumber"
result
Map=
"BaseResultMap
"
>
select * from tb_device,tb_user
where tb_device.user_id = tb_user.id
and tb_user.temphone = #{phoneNumber}
...
...
@@ -28,6 +28,7 @@
<if
test=
"userName != null"
>
user_name,
</if>
<if
test=
"userPassword != null"
>
user_password,
</if>
<if
test=
"uid != null"
>
uid,
</if>
<if
test=
"userId != null"
>
user_id,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"id != null"
>
#{id, jdbcType=VARCHAR},
</if>
...
...
@@ -37,6 +38,7 @@
<if
test=
"userName != null"
>
#{userName, jdbcType=VARCHAR},
</if>
<if
test=
"userPassword != null"
>
#{userPassword, jdbcType=VARCHAR},
</if>
<if
test=
"uid != null"
>
#{uid, jdbcType=VARCHAR},
</if>
<if
test=
"userId != null"
>
#{userId, jdbcType=VARCHAR},
</if>
</trim>
</insert>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment