|
@@ -96,10 +96,14 @@ version_id, rkey, rvalue, json_str, cell_code, calculation_formula, unit, create
|
|
|
<if test="surveyTemplateId != null">
|
|
<if test="surveyTemplateId != null">
|
|
|
cvti.survey_template_id = #{surveyTemplateId}
|
|
cvti.survey_template_id = #{surveyTemplateId}
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="taskId != null">
|
|
|
|
|
|
|
+ <if test="taskId != null and surveyTemplateId == null ">
|
|
|
cvt.task_id = #{taskId}
|
|
cvt.task_id = #{taskId}
|
|
|
</if>
|
|
</if>
|
|
|
|
|
|
|
|
|
|
+ <if test="taskId != null and surveyTemplateId !=null ">
|
|
|
|
|
+ and cvt.task_id = #{taskId}
|
|
|
|
|
+ </if>
|
|
|
|
|
+
|
|
|
ORDER BY order_num ASC
|
|
ORDER BY order_num ASC
|
|
|
</select>
|
|
</select>
|
|
|
<select id="selectBySurveyTemplateIdAndVersion" resultType="com.hotent.surveyinfo.model.CostVerifyTemplateItems">
|
|
<select id="selectBySurveyTemplateIdAndVersion" resultType="com.hotent.surveyinfo.model.CostVerifyTemplateItems">
|