| | |
| | | package com.ycl.jxkg.service.impl; |
| | | |
| | | import com.ycl.jxkg.domain.TextContent; |
| | | import com.ycl.jxkg.repository.TextContentMapper; |
| | | import com.ycl.jxkg.mapper.TextContentMapper; |
| | | import com.ycl.jxkg.service.TextContentService; |
| | | import com.ycl.jxkg.utility.JsonUtil; |
| | | import com.ycl.jxkg.utils.JsonUtil; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | |
| | | List<R> mapList = list.stream().map(mapper).collect(Collectors.toList()); |
| | | frameTextContent = JsonUtil.toJsonStr(mapList); |
| | | } |
| | | TextContent textContent = new TextContent(frameTextContent, now); |
| | | TextContent textContent = new TextContent(); |
| | | textContent.setContent(frameTextContent); |
| | | textContent.setCreateTime(now); |
| | | return textContent; |
| | | } |
| | | |