Commit 4ca007b4 authored by 王琮's avatar 王琮

修改接口

parent ad96c28d
...@@ -79,8 +79,10 @@ public class QuestionnaireCtrl { ...@@ -79,8 +79,10 @@ public class QuestionnaireCtrl {
} }
//5.根据类型判断是否修改上报状态 //5.根据类型判断是否修改上报状态
if(questionnaire.getType()==1) {//上报 if(questionnaire.getType()==1) {//上报
//修改数据上报状态
Record r = new Record(); Record r = new Record();
r.setWritePeople(questionnaire.getWritePeople());
r.setPhoneNumber(questionnaire.getPhoneNumber());
//修改数据上报状态
r.setId(recordId); r.setId(recordId);
r.setProcessStatus(1); r.setProcessStatus(1);
result=this.questionnaireService.updateRecord(r); result=this.questionnaireService.updateRecord(r);
......
...@@ -47,6 +47,8 @@ ...@@ -47,6 +47,8 @@
<trim prefix="SET" suffixOverrides=","> <trim prefix="SET" suffixOverrides=",">
<if test="processStatus != null and processStatus != ''">process_status = #{processStatus},</if> <if test="processStatus != null and processStatus != ''">process_status = #{processStatus},</if>
<if test="reason != null and reason != ''">reason = #{reason},</if> <if test="reason != null and reason != ''">reason = #{reason},</if>
<if test="writePeople != null and writePeople != ''">write_people = #{writePeople},</if>
<if test="phoneNumber != null and phoneNumber != ''">phone_number = #{phoneNumber},</if>
</trim> </trim>
WHERE id = #{id} WHERE id = #{id}
</update> </update>
...@@ -110,6 +112,7 @@ ...@@ -110,6 +112,7 @@
<if test="processStatus != null and processStatus != ''"><!-- 问卷状态 --> <if test="processStatus != null and processStatus != ''"><!-- 问卷状态 -->
AND process_status = #{processStatus} AND process_status = #{processStatus}
</if> </if>
ORDER BY create_time DESC
</select> </select>
<select id="selectFileId" resultType="java.lang.String"> <select id="selectFileId" resultType="java.lang.String">
......
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