|
|
|
@ -88,7 +88,12 @@ public class I2syncServiceImpl implements I2syncService {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public void addConfig(I2syncConfig item) {
|
|
|
|
|
public void addConfig(I2syncConfig item) throws Exception {
|
|
|
|
|
ModevType modevType = modevTypeService.detail(item.getModevtypeId());
|
|
|
|
|
List<I2syncField> fieldList = syncFieldRepository.findByTableName(modevType.getTablename());
|
|
|
|
|
if (CollectionUtils.isEmpty(fieldList)) {
|
|
|
|
|
throw new BusinessException("还未配置该类型的字段映射");
|
|
|
|
|
}
|
|
|
|
|
item.setId(null);
|
|
|
|
|
item.setCreateTime(new Date());
|
|
|
|
|
configRepository.save(item);
|
|
|
|
|