src/main/java/com/xcong/excoin/modules/otc/controller/OtcMarketBussinessController.java
@@ -100,7 +100,7 @@ member = new MemberEntity(); member.setId(memberId); // member.setName(mbAddDto.getNickname()); member.setName(mbAddDto.getNickname()); memberDao.updateById(member); return Result.ok("修改成功"); src/main/java/com/xcong/excoin/modules/otc/dto/MbAddDto.java
@@ -14,8 +14,8 @@ @ApiModelProperty(value = "id - 编辑时传") private Long id; // @NotBlank(message = "昵称不能为空") // @ApiModelProperty(value = "昵称", example = "123") // private String nickname; @NotBlank(message = "昵称不能为空") @ApiModelProperty(value = "昵称", example = "123") private String nickname; } src/main/java/com/xcong/excoin/rabbit/consumer/ChatConsumer.java
@@ -54,7 +54,7 @@ OtcMsgUserListEntity from = new OtcMsgUserListEntity(); from.setMemberId(fromId); from.setTargetId(toId); from.setIsRead(OtcMsgUserListEntity.ISREAD_ONE); from.setIsRead(OtcMsgUserListEntity.ISREAD_TWO); from.setLastMsgTime(new Date()); otcMsgUserListDao.insert(from); } @@ -65,7 +65,7 @@ OtcMsgUserListEntity from = new OtcMsgUserListEntity(); from.setMemberId(toId); from.setTargetId(fromId); from.setIsRead(OtcMsgUserListEntity.ISREAD_TWO); from.setIsRead(OtcMsgUserListEntity.ISREAD_ONE); from.setLastMsgTime(new Date()); otcMsgUserListDao.insert(from); } else { src/main/resources/application.yml
@@ -7,12 +7,12 @@ profiles: active: dev datasource: # url: jdbc:mysql://154.91.195.170:3306/db_otc?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=GMT%2b8 # username: yd_otc # password: yd_otc123!@# url: jdbc:mysql://120.27.238.55:3306/db_otc?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=GMT%2b8 username: ct_test password: 123456 url: jdbc:mysql://154.91.195.170:3306/db_otc?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=GMT%2b8 username: yd_otc password: yd_otc123!@# # url: jdbc:mysql://120.27.238.55:3306/db_otc?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=GMT%2b8 # username: ct_test # password: 123456 driver-class-name: com.mysql.jdbc.Driver type: com.alibaba.druid.pool.DruidDataSource druid: