|
|
@ -17,6 +17,7 @@ import com.zc.business.service.IDcBoardService; |
|
|
|
import org.checkerframework.checker.units.qual.A; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.stereotype.Service; |
|
|
|
import org.springframework.util.ObjectUtils; |
|
|
|
|
|
|
|
import java.util.HashMap; |
|
|
|
import java.util.List; |
|
|
@ -65,6 +66,35 @@ public class DcBoardServiceImpl implements IDcBoardService { |
|
|
|
} |
|
|
|
|
|
|
|
List<Map<String,Object>> contentList = dcBoardPublish.getContent(); |
|
|
|
for (Map<String, Object> content : contentList) { |
|
|
|
if (!content.containsKey("ACTION") || ObjectUtils.isEmpty(content.get("ACTION"))){ |
|
|
|
return AjaxResult.error("请选择入屏方式!"); |
|
|
|
} |
|
|
|
if (!content.containsKey("STAY") || ObjectUtils.isEmpty(content.get("STAY"))){ |
|
|
|
return AjaxResult.error("请输入停留时长!"); |
|
|
|
} |
|
|
|
if (!content.containsKey("COLOR") || ObjectUtils.isEmpty(content.get("COLOR"))){ |
|
|
|
return AjaxResult.error("请选择字体颜色!"); |
|
|
|
} |
|
|
|
if (!content.containsKey("CONTENT") || ObjectUtils.isEmpty(content.get("CONTENT"))){ |
|
|
|
return AjaxResult.error("请输入内容!"); |
|
|
|
} |
|
|
|
if (!content.containsKey("FONT") || ObjectUtils.isEmpty(content.get("FONT"))){ |
|
|
|
return AjaxResult.error("请选择字体类型!"); |
|
|
|
} |
|
|
|
if (!content.containsKey("FONT_SIZE") || ObjectUtils.isEmpty(content.get("FONT_SIZE"))){ |
|
|
|
return AjaxResult.error("请选择字体大小!"); |
|
|
|
} |
|
|
|
if (!content.containsKey("formatStyle") || ObjectUtils.isEmpty(content.get("formatStyle"))){ |
|
|
|
return AjaxResult.error("请选择对齐方式!"); |
|
|
|
} |
|
|
|
if (!content.containsKey("height") || ObjectUtils.isEmpty(content.get("height"))){ |
|
|
|
return AjaxResult.error("请选择屏幕尺寸!"); |
|
|
|
} |
|
|
|
if (!content.containsKey("width") || ObjectUtils.isEmpty(content.get("width"))){ |
|
|
|
return AjaxResult.error("请选择屏幕尺寸!"); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
AjaxResult ajaxResult = new AjaxResult(); |
|
|
|
String status = "1"; |
|
|
|