Commit 2492ad69ece8798564de398df043d358e9fb040c
1 parent
ac9a610f
频道修改
Showing
1 changed file
with
3 additions
and
1 deletions
src/main/java/com/cnlive/shenhe/serviceImpl/ChannelServiceImpl.java
| @@ -180,10 +180,12 @@ public class ChannelServiceImpl { | @@ -180,10 +180,12 @@ public class ChannelServiceImpl { | ||
| 180 | channel.setShenhe_msg(msg); | 180 | channel.setShenhe_msg(msg); |
| 181 | if(CommonUtils.isEmpty(userId)){ | 181 | if(CommonUtils.isEmpty(userId)){ |
| 182 | channel.setUpdater(updater); | 182 | channel.setUpdater(updater); |
| 183 | + channel.setAuditor(null); | ||
| 183 | }else{ | 184 | }else{ |
| 184 | channel.setAuditor(userId); | 185 | channel.setAuditor(userId); |
| 186 | + channel.setUpdater(null); | ||
| 185 | } | 187 | } |
| 186 | - int i = shyChannelMapper.updateByPrimaryKeySelective(channel); | 188 | + int i = shyChannelMapper.updateByPrimaryKey(channel); |
| 187 | if (i != 1) { | 189 | if (i != 1) { |
| 188 | success = false; | 190 | success = false; |
| 189 | } | 191 | } |