|
|
@ -175,6 +175,7 @@ public class IcFormServiceImpl extends BaseServiceImpl<IcFormDao, IcFormEntity> |
|
|
|
if (CollectionUtils.isEmpty(itemList)) { |
|
|
|
return "默认配置错误"; |
|
|
|
} |
|
|
|
String defaultBaseInfoGroupId = "default_0"; |
|
|
|
//设置ic_form_item
|
|
|
|
itemList.forEach(item -> { |
|
|
|
item.setId(newPrefixed + item.getId()); |
|
|
@ -183,7 +184,10 @@ public class IcFormServiceImpl extends BaseServiceImpl<IcFormDao, IcFormEntity> |
|
|
|
item.setAreaCode(areaCode); |
|
|
|
item.setParentItemId(newPrefixed + item.getParentItemId()); |
|
|
|
//分组Id 为0 说明不村子分组 则直接不设置 仍然为0
|
|
|
|
if (!NumConstant.ZERO_STR.equals(item.getItemGroupId())){ |
|
|
|
//基础信息分组id:default_0;默认是客户id_0
|
|
|
|
if (defaultBaseInfoGroupId.equals(item.getItemGroupId())) { |
|
|
|
item.setItemGroupId(customerId.concat("_0")); |
|
|
|
} else { |
|
|
|
item.setItemGroupId(newPrefixed + item.getItemGroupId()); |
|
|
|
} |
|
|
|
String optionSourceValue = item.getOptionSourceValue(); |
|
|
@ -227,7 +231,12 @@ public class IcFormServiceImpl extends BaseServiceImpl<IcFormDao, IcFormEntity> |
|
|
|
wrapperGroup.eq(IcFormItemGroupEntity::getFormCode, formCode); |
|
|
|
List<IcFormItemGroupEntity> groupList = icFormItemGroupDao.selectList(wrapperGroup); |
|
|
|
groupList.forEach(item -> { |
|
|
|
item.setId(newPrefixed + item.getId()); |
|
|
|
if (defaultBaseInfoGroupId.equals(item.getId())) { |
|
|
|
//基础信息分组id默认客户id_0
|
|
|
|
item.setId(customerId.concat("_0")); |
|
|
|
} else { |
|
|
|
item.setId(newPrefixed + item.getId()); |
|
|
|
} |
|
|
|
item.setCustomerId(customerId); |
|
|
|
item.setFormId(newFormId); |
|
|
|
item.setCreatedBy("init_user"); |
|
|
|