Commit c0fd2deb authored by 张大伟's avatar 张大伟

bug修复

parent 4896972a
...@@ -45,7 +45,7 @@ public class DeviceController extends BaseController<Device> { ...@@ -45,7 +45,7 @@ public class DeviceController extends BaseController<Device> {
} }
} }
@GetMapping("/ ") @GetMapping("/getListByPhoneNumber")
public ResponseEntity<List<Device>> getListByPhoneNumber(String phoneNumber) { public ResponseEntity<List<Device>> getListByPhoneNumber(String phoneNumber) {
List<Device> list = deviceService.listByPhoneNumber(phoneNumber); List<Device> list = deviceService.listByPhoneNumber(phoneNumber);
return GenResponse.success("1", "查询成功", list); return GenResponse.success("1", "查询成功", list);
......
...@@ -75,4 +75,12 @@ public class AppPushUtils { ...@@ -75,4 +75,12 @@ public class AppPushUtils {
return template; return template;
} }
public static void main(String[] args) {
try {
push("提示", "测试推送", "59f02635c46d1b6d047fa051ad5db9fc");
} catch (IOException e) {
e.printStackTrace();
}
}
} }
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
<result column="user_password" property="userPassword"/> <result column="user_password" property="userPassword"/>
<result column="uid" property="uid"/> <result column="uid" property="uid"/>
</resultMap> </resultMap>
<select id="listByPhoneNumber" resultType="com.adc.da.znks.entity.Device"> <select id="listByPhoneNumber" resultMap="BaseResultMap">
select * from tb_device,tb_user select * from tb_device,tb_user
where tb_device.user_id = tb_user.id where tb_device.user_id = tb_user.id
and tb_user.temphone = #{phoneNumber} and tb_user.temphone = #{phoneNumber}
...@@ -28,6 +28,7 @@ ...@@ -28,6 +28,7 @@
<if test="userName != null">user_name,</if> <if test="userName != null">user_name,</if>
<if test="userPassword != null">user_password,</if> <if test="userPassword != null">user_password,</if>
<if test="uid != null">uid,</if> <if test="uid != null">uid,</if>
<if test="userId != null">user_id,</if>
</trim> </trim>
<trim prefix="values (" suffix=")" suffixOverrides=","> <trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">#{id, jdbcType=VARCHAR},</if> <if test="id != null">#{id, jdbcType=VARCHAR},</if>
...@@ -37,6 +38,7 @@ ...@@ -37,6 +38,7 @@
<if test="userName != null">#{userName, jdbcType=VARCHAR},</if> <if test="userName != null">#{userName, jdbcType=VARCHAR},</if>
<if test="userPassword != null">#{userPassword, jdbcType=VARCHAR},</if> <if test="userPassword != null">#{userPassword, jdbcType=VARCHAR},</if>
<if test="uid != null">#{uid, jdbcType=VARCHAR},</if> <if test="uid != null">#{uid, jdbcType=VARCHAR},</if>
<if test="userId != null">#{userId, jdbcType=VARCHAR},</if>
</trim> </trim>
</insert> </insert>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment