|
@@ -28,7 +28,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectTTaskInspectionPlanVo">
|
|
|
- select `plan_quarter`, `plan_year`, `plan_code`,id, plant_id, inspection_plan_no, inspection_plan_name, detection_frequency, start_time, end_time, point_num, remarks, dept_id, del_flag, creater_code, createdate, updater_code, updatedate from t_task_inspection_plan
|
|
|
+ select `plan_quarter`, `plan_year`, `plan_code`,id, plant_id, inspection_plan_no, inspection_plan_name, detection_frequency, start_time, end_time, point_num, remarks, dept_id, del_flag, creater_code, createdate, updater_code, updatedate from t_task_inspection_plan d
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectTTaskInspectionPlanList" parameterType="TTaskInspectionPlan" resultMap="TTaskInspectionPlanResult">
|
|
@@ -61,6 +61,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
|
<select id="selectAllPlan" resultMap="TTaskInspectionPlanResult">
|
|
|
<include refid="selectTTaskInspectionPlanVo"/> where del_flag = 0
|
|
|
+ <!-- 数据范围过滤 -->
|
|
|
+ ${params.dataScopePlant}
|
|
|
+ order by createdate desc
|
|
|
</select>
|
|
|
|
|
|
<select id="selectTTaskInspectionPlanById" parameterType="Long" resultMap="TTaskInspectionPlanResult">
|