Commit 79a473a1 authored by 张宇杰's avatar 张宇杰

查询数组

parent 02d93533
......@@ -579,6 +579,15 @@ public class QuestionnaireCtrl {
return questionnaireService.AboutViewListCopy(record);
}
/**
* 查询数组
* @param options
*/
@RequestMapping(value = {"/queryArray"})
@ResponseBody
public void queryArray (@RequestBody Options options){
questionnaireService.queryArray(options);
}
/**
* 根据年份查询当前年份所有问题id
......
......@@ -122,6 +122,7 @@ public interface QuestionnaireDao {
List<Record> AboutViewListCopy(Record record);
Integer queryArray (Options options);
List<SiteCondition> selectSiteConditionListTemp(
@Param("recordId") String recordId,
......
......@@ -6,6 +6,16 @@ public class Options {//选项表
private int status;//选项状态 1:启用(默认值);0:停用'
private String optionValue;//选项内容
public String getQnYear() {
return qnYear;
}
public void setQnYear(String qnYear) {
this.qnYear = qnYear;
}
private String qnYear;
public Long getId() {
return id;
}
......
......@@ -140,6 +140,8 @@ public interface QuestionnaireService {
List<Record> AboutViewListCopy(Record record);
void queryArray(Options options);
void exportFullTimeWorkPersonNew(HttpServletRequest request, HttpServletResponse response, String index, String recordId,Integer qnYear,String createId,
Integer id1, Integer id2, Integer id3,
Integer id9, Integer id10, Integer id11, Integer id12, Integer id13, Integer id14,
......
......@@ -1424,6 +1424,11 @@ public class QuestionnaireServiceImpl implements QuestionnaireService {
return questionnaireDao.AboutViewListCopy(record);
}
@Override
public void queryArray(Options options){
questionnaireDao.queryArray(options);
}
/**
* 2023年修改导出问卷管理-审批页面根据基础指标、引导指标和奖励指标导出所有空间的数据
*
......
......@@ -106,6 +106,7 @@
SELECT id
FROM t_record
WHERE create_id = #{createId}
AND qn_year = YEAR(NOW())
</select>
<select id="selectAnswerByRecordId" resultType="com.tiptimes.model.Answer">
......@@ -1130,6 +1131,9 @@
</where>
ORDER BY create_time DESC
</select>
<!-- 问卷管理-导出基础指标1 众创空间场地情况、是否租赁场地(新)-->
<select id="selectSiteConditionListTemp" resultType="com.tiptimes.model.exportDTO.SiteCondition">
SELECT *
......@@ -1716,4 +1720,13 @@
ORDER BY spaceName;
</select>
<select id="queryArray" resultType="java.lang.Integer">
SELECT MIN(t_options.id) FROM t_options
WHERE t_options.question_id IN
(SELECT t_questions.id FROM t_questions
WHERE t_questions.questionnaire_uuid = (
SELECT t_questionnaire.id FROM t_questionnaire
WHERE t_questionnaire.qn_year = #{qnYear}))
</select>
</mapper>
\ No newline at end of file
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