Browse Source

修改返回结果类型

hotfix/yujt_opt
zhangyuan 5 years ago
parent
commit
2ccf3820b8
  1. 2
      epdc-cloud-property/src/main/java/com/elink/esua/epdc/modules/psychology/dao/PsychologyQuestionDao.java
  2. 3
      epdc-cloud-property/src/main/java/com/elink/esua/epdc/modules/psychology/service/impl/PsychologistServiceImpl.java
  3. 4
      epdc-cloud-property/src/main/resources/mapper/psychology/PsychologyQuestionDao.xml

2
epdc-cloud-property/src/main/java/com/elink/esua/epdc/modules/psychology/dao/PsychologyQuestionDao.java

@ -65,6 +65,6 @@ public interface PsychologyQuestionDao extends BaseDao<PsychologyQuestionEntity>
* @author zhangyuan
* @since 2020/5/21 14:54
*/
List<PsychologyQuestionEntity> listUnansweredQuestion(PsychologyUnansweredFormDTO dto);
List<PsychologyUnansweredResultDTO> listUnansweredQuestion(PsychologyUnansweredFormDTO dto);
}

3
epdc-cloud-property/src/main/java/com/elink/esua/epdc/modules/psychology/service/impl/PsychologistServiceImpl.java

@ -194,8 +194,7 @@ public class PsychologistServiceImpl extends BaseServiceImpl<PsychologistDao, Ps
public List<PsychologyUnansweredResultDTO> listUnansweredQuestion(PsychologyUnansweredFormDTO dto) {
// sql limit条件转换
dto.setPageIndex((dto.getPageIndex() - 1) * dto.getPageSize());
List<PsychologyQuestionEntity> data = psychologyQuestionDao.listUnansweredQuestion(dto);
return ConvertUtils.sourceToTarget(data, PsychologyUnansweredResultDTO.class);
return psychologyQuestionDao.listUnansweredQuestion(dto);
}
}

4
epdc-cloud-property/src/main/resources/mapper/psychology/PsychologyQuestionDao.xml

@ -51,9 +51,9 @@
LIMIT #{pageIndex}, #{pageSize};
</select>
<select id="listUnansweredQuestion" resultType="com.elink.esua.epdc.modules.psychology.entity.PsychologyQuestionEntity">
<select id="listUnansweredQuestion" resultType="com.elink.esua.epdc.dto.psychology.result.PsychologyUnansweredResultDTO">
SELECT
<include refid="Base_Column_List"/>
ID, QUESTION_CONTENT, CREATED_TIME AS QUESTION_TIME
FROM
epdc_psychology_question
WHERE

Loading…
Cancel
Save