Authored by zhengyouwei

增加修改密码

... ... @@ -71,7 +71,7 @@
<update id="updatePwd" parameterType="com.model.User" >
update user
set pwd = #{pwd,jdbcType=VARCHAR},
set pwd = #{pwd,jdbcType=VARCHAR}
where id = #{id,jdbcType=INTEGER}
</update>
... ...
... ... @@ -82,7 +82,7 @@ public class UserCtrl {
@RequestMapping("/update")
@ResponseBody
public BaseResponse updatePwd(@RequestBody User user) {
public BaseResponse update(@RequestBody User user) {
try{
int result = userMapper.update(user);
return new BaseResponse<Integer>(result);
... ... @@ -92,6 +92,18 @@ public class UserCtrl {
}
}
@RequestMapping("/updatePwd")
@ResponseBody
public BaseResponse updatePwd(@RequestBody User user) {
try{
int result = userMapper.updatePwd(user);
return new BaseResponse<Integer>(result);
}catch (Exception e){
log.error("getUserById error",e);
return null;
}
}
@RequestMapping("/deleteByName")
@ResponseBody
public BaseResponse deleteByName(String name) {
... ...
# ******************** influxdb common configs ********************
influxdb.num=3
influxdb.name=aws;qcloud;alarm
influxdb.ip=http://127.0.0.1:8086;http://10.66.4.25:8086;http://172.31.31.170:8086
influxdb.ip=http://172.31.50.75:8086;http://10.66.4.25:8086;http://172.31.31.170:8086
influxdb.user=root;root;root
influxdb.pwd=root;root;root
influxdb.connect.timeout=15;15;15
influxdb.read.timeout=40;40;40
influxdb.write.timeout=20;20;20
aws.influxdb.url=http://127.0.0.1:8086
aws.influxdb.url=http://172.31.50.75:8086
aws.influxdb.user=root
aws.influxdb.pwd=root
... ...
#---------jdbc config----------
local.jdbc.url=jdbc:mysql://localhost:3306/yh_ops?characterEncoding=utf-8&autoReconnect=true&zeroDateTimeBehavior=convertToNull
local.jdbc.url=jdbc:mysql://172.31.50.75:3306/yh_ops?characterEncoding=utf-8&autoReconnect=true&zeroDateTimeBehavior=convertToNull
local.jdbc.user=ops
local.jdbc.password=123456
#---------jdbc config----------
\ No newline at end of file
... ...