|
|
@ -15,6 +15,7 @@ import com.digiwin.athena.app.infra.service.CpsQuestionInfoService; |
|
|
|
import com.digiwin.athena.opt.common.eai.EAIRequest; |
|
|
|
import com.digiwin.athena.opt.common.eai.EAIUtil; |
|
|
|
import com.digiwin.athena.opt.common.eai.service.AbsEAIService; |
|
|
|
import com.digiwin.athena.opt.common.security.SecurityUtil; |
|
|
|
|
|
|
|
import javax.annotation.Resource; |
|
|
|
import java.util.List; |
|
|
@ -43,8 +44,15 @@ public class CpsQuestionCreateService extends AbsEAIService { |
|
|
|
List<CpsQuestionInfo> questionInfo = request.getObject("question_info", new TypeReference<List<CpsQuestionInfo>>() { |
|
|
|
}); |
|
|
|
|
|
|
|
questionInfo.forEach(o->{ |
|
|
|
o.setResponsiblePerson(SecurityUtil.getUserProfile().getUserId()); |
|
|
|
o.setResponsiblePersonName(SecurityUtil.getUserProfile().getUserName()); |
|
|
|
}); |
|
|
|
|
|
|
|
cpsQuestionInfoService.saveBatch(questionInfo); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return buildOK("question_info", questionInfo); |
|
|
|
} |
|
|
|
} |