|
|
@ -128,6 +128,12 @@ public class ActPhraseServiceImpl extends BaseServiceImpl<ActPhraseDao, ActPhras |
|
|
|
@Override |
|
|
|
@Transactional(rollbackFor = Exception.class) |
|
|
|
public void update(ActPhraseDTO dto) { |
|
|
|
String categoryCode = dto.getCode(); |
|
|
|
if (StringUtils.isNotBlank(categoryCode)) { |
|
|
|
if (getCodeCount(dto) > 0) { |
|
|
|
throw new RenException("您输入的编码已存在"); |
|
|
|
} |
|
|
|
} |
|
|
|
ActPhraseEntity entity = ConvertUtils.sourceToTarget(dto, ActPhraseEntity.class); |
|
|
|
updateById(entity); |
|
|
|
|
|
|
|