|
@@ -53,11 +53,15 @@
|
|
|
|
|
|
<select id="detailsList" resultType="com.ims.eval.entity.EvaluationDeptBusinessContent">
|
|
|
<include refid="selectEvaluationDeptBusinessContentVo"/>
|
|
|
- where
|
|
|
- <if test="deptId != null and deptId != ''">
|
|
|
- dept_id = #{deptId} AND
|
|
|
- </if>
|
|
|
- business_plan_id = #{businessPlanId} order by dept_name asc, serial_number asc
|
|
|
+ <where>
|
|
|
+ <if test="deptId != null and deptId != ''">
|
|
|
+ AND dept_id = #{deptId}
|
|
|
+ </if>
|
|
|
+ <if test="businessPlanId != null and businessPlanId != ''">
|
|
|
+ AND business_plan_id = #{businessPlanId}
|
|
|
+ </if>
|
|
|
+ </where>
|
|
|
+ order by dept_name asc, serial_number asc
|
|
|
</select>
|
|
|
|
|
|
<select id="selectEvaluationDeptBusinessContentListByBusinessPlanId" resultType="com.ims.eval.entity.EvaluationDeptBusinessContent">
|