|
|
|
@ -62,7 +62,7 @@ import org.springframework.transaction.annotation.Transactional; |
|
|
|
import java.util.*; |
|
|
|
|
|
|
|
/** |
|
|
|
* 话题表 |
|
|
|
* 话题表 |
|
|
|
* |
|
|
|
* @author elink elink@elink-cn.com |
|
|
|
* @since v1.0.0 2020-05-29 |
|
|
|
@ -150,11 +150,18 @@ public class PartyTopicServiceImpl extends BaseServiceImpl<PartyTopicDao, PartyT |
|
|
|
|
|
|
|
@Override |
|
|
|
public Result modifyTopicState(GroupTopicCloseFormDTO formDto) { |
|
|
|
PartyTopicEntity entity = new PartyTopicEntity(); |
|
|
|
entity.setId(formDto.getId()); |
|
|
|
entity.setRemark(formDto.getRemark()); |
|
|
|
entity.setState(20); |
|
|
|
updateById(entity); |
|
|
|
if(formDto.getId().size() == 0){ |
|
|
|
return new Result().error("请选择关闭的话题"); |
|
|
|
} |
|
|
|
List<PartyTopicEntity> list = new ArrayList<>(); |
|
|
|
for (String id : formDto.getId()) { |
|
|
|
PartyTopicEntity entity = new PartyTopicEntity(); |
|
|
|
entity.setId(id); |
|
|
|
entity.setRemark(formDto.getRemark()); |
|
|
|
entity.setState(20); |
|
|
|
list.add(entity); |
|
|
|
} |
|
|
|
updateBatchById(list); |
|
|
|
return new Result(); |
|
|
|
} |
|
|
|
|
|
|
|
@ -410,4 +417,4 @@ public class PartyTopicServiceImpl extends BaseServiceImpl<PartyTopicDao, PartyT |
|
|
|
return entities; |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|