增加动态表单自动排版配置界面的保存回显逻辑

This commit is contained in:
cuibaocheng 2021-08-14 19:33:15 +08:00
parent 04e89af0ab
commit 7ebf1115cd

View File

@ -523,10 +523,14 @@ public class PicturesTemplateServiceImpl extends DefaultBaseService implements I
if(base64 != null ) {
result.setData(base64);
/**
* 更新预览图
* 更新预览图 , 将旧的预览图删除掉
*/
String picturesTemplatePictureUrl = iPicturesTemplateBuildingService.saveBase64ToFile(base64);
PicturesTemplateDTO dto = picturesTemplateDao.getPicturesTemplateByCode(picturesTemplateCode);
// 因为使用快照的原因, 旧的预览图片不能删除 2021年8月14日19:32:57
/*if(!StringUtils.isEmpty(dto.getPicturesTemplatePictureUrl())) {
iFileService.delete(dto.getPicturesTemplatePictureUrl());
}*/
String picturesTemplatePictureUrl = iPicturesTemplateBuildingService.saveBase64ToFile(base64);
Map<String, Object> map = new HashMap<String, Object>();
map.put("picturesTemplatePicture", base64);
map.put("picturesTemplatePictureUrl", picturesTemplatePictureUrl);