Commit f29929eb by zhiwj

咨询建议

parent bcc3edaa
......@@ -16,6 +16,8 @@ import com.gic.evaluate.service.ProblemService;
import com.gic.member.api.dto.MemberUserDTO;
import com.gic.member.api.service.MemberUserApiService;
import org.apache.commons.collections.CollectionUtils;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
......@@ -34,6 +36,8 @@ import java.util.stream.Collectors;
@Service("problemOutApiService")
public class ProblemOutApiServiceImpl implements ProblemOutApiService {
private Logger logger = LogManager.getLogger(ProblemOutApiServiceImpl.class);
@Autowired
private ProblemService problemService;
@Autowired
......@@ -46,6 +50,7 @@ public class ProblemOutApiServiceImpl implements ProblemOutApiService {
@Override
@Transactional(rollbackFor = Exception.class)
public ServiceResponse<Void> saveProblem(ProblemDTO problemDTO) {
logger.info("保存problem:{}", problemDTO);
List<String> imgList = problemDTO.getImgList();
if (CollectionUtils.isNotEmpty(imgList)) {
problemDTO.setImageUrl(imgList.get(0));
......
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