Commit a2c7f99b by zhiwj

修改sql

parent c0ad3076
......@@ -18,6 +18,7 @@ import com.gic.member.config.api.dto.AppletCardRelationDTO;
import com.gic.member.config.api.dto.AppletsConfigSimpleOutputDTO;
import com.gic.member.config.api.service.AppletsConfigApiService;
import com.gic.member.config.api.service.ServiceConfigApiService;
import org.apache.commons.collections.CollectionUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
......@@ -91,11 +92,13 @@ public class LinkController {
if (serviceResponse.isSuccess()) {
List<MallActivityThemeDTO> themeDTOList = serviceResponse.getResult().getResult();
List<ActivityThemeVO> resultList = new ArrayList<>();
for (MallActivityThemeDTO mallActivityThemeDTO : themeDTOList) {
ActivityThemeVO themeVO = new ActivityThemeVO();
themeVO.setId(mallActivityThemeDTO.getId());
themeVO.setActivityName(mallActivityThemeDTO.getThemeName());
resultList.add(themeVO);
if (CollectionUtils.isNotEmpty(themeDTOList)) {
for (MallActivityThemeDTO mallActivityThemeDTO : themeDTOList) {
ActivityThemeVO themeVO = new ActivityThemeVO();
themeVO.setId(mallActivityThemeDTO.getId());
themeVO.setActivityName(mallActivityThemeDTO.getThemeName());
resultList.add(themeVO);
}
}
return RestResponse.success(resultList);
} else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment