diff --git a/hw-modules/hw-dms/src/main/java/com/hw/dms/mapper/DmsPlanMaintDetailMapper.java b/hw-modules/hw-dms/src/main/java/com/hw/dms/mapper/DmsPlanMaintDetailMapper.java index 0db79c2..c82ac4c 100644 --- a/hw-modules/hw-dms/src/main/java/com/hw/dms/mapper/DmsPlanMaintDetailMapper.java +++ b/hw-modules/hw-dms/src/main/java/com/hw/dms/mapper/DmsPlanMaintDetailMapper.java @@ -2,6 +2,7 @@ package com.hw.dms.mapper; import java.util.List; import com.hw.dms.domain.DmsPlanMaintDetail; +import org.apache.ibatis.annotations.Param; /** * 保养计划明细Mapper接口 @@ -74,4 +75,5 @@ public interface DmsPlanMaintDetailMapper List selectDmsPlanMaintDetailListByPlanMaintId(Long planMaintId); + Long selectStandardId(@Param("stationId") Long stationId); } diff --git a/hw-modules/hw-dms/src/main/java/com/hw/dms/service/impl/DmsInspectInstanceDetailProjectServiceImpl.java b/hw-modules/hw-dms/src/main/java/com/hw/dms/service/impl/DmsInspectInstanceDetailProjectServiceImpl.java index 8f325cc..44c933e 100644 --- a/hw-modules/hw-dms/src/main/java/com/hw/dms/service/impl/DmsInspectInstanceDetailProjectServiceImpl.java +++ b/hw-modules/hw-dms/src/main/java/com/hw/dms/service/impl/DmsInspectInstanceDetailProjectServiceImpl.java @@ -96,6 +96,10 @@ public class DmsInspectInstanceDetailProjectServiceImpl implements IDmsInspectIn @Override public List selectDmsInspectInstanceDetailProjectByInspectInstanceId(Long inspectInstanceId, Long lineStep) { - return dmsInspectInstanceDetailProjectMapper.selectDmsInspectInstanceDetailProjectByInspectInstanceId(inspectInstanceId,lineStep); + List detailProjects = dmsInspectInstanceDetailProjectMapper.selectDmsInspectInstanceDetailProjectByInspectInstanceId(inspectInstanceId, lineStep); + for (DmsInspectInstanceDetailProject detailProject : detailProjects) { + detailProject.setProjectStepOrder(lineStep); + } + return detailProjects; } } diff --git a/hw-modules/hw-dms/src/main/resources/mapper/dms/DmsBillsInspectInstanceMapper.xml b/hw-modules/hw-dms/src/main/resources/mapper/dms/DmsBillsInspectInstanceMapper.xml index 36dc725..435e4bd 100644 --- a/hw-modules/hw-dms/src/main/resources/mapper/dms/DmsBillsInspectInstanceMapper.xml +++ b/hw-modules/hw-dms/src/main/resources/mapper/dms/DmsBillsInspectInstanceMapper.xml @@ -26,32 +26,52 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" - select inspect_instance_id, plan_inspect_id, wf_process_id, inspect_type, bills_inspect_code, plan_begin_time,plan_end_time, real_begin_time, real_end_time, inspect_status, is_flag, remark, create_by, create_time, update_by, update_time from dms_bills_inspect_instance + select + a.inspect_instance_id, + a.plan_inspect_id, + a.wf_process_id, + a.inspect_type, + a.bills_inspect_code, + a.plan_begin_time, + a.plan_end_time, + a.real_begin_time, + a.real_end_time, + a.inspect_status, + a.is_flag, + b.remark, + a.create_by, + a.create_time, + a.update_by, + a.update_time, + b.plan_inspect_code, + b.performer + from + dms_bills_inspect_instance a left join dms_plan_inspect b on a.plan_inspect_id = b.plan_inspect_id - select dbii.inspect_instance_id, dbii.plan_inspect_id, dbii.wf_process_id, dbii.inspect_type, dbii.bills_inspect_code, - dbii.plan_begin_time,dbii.plan_end_time, dbii.real_begin_time, dbii.real_end_time, dbii.inspect_status,dbii.create_time, - dbir.route_name - from dms_bills_inspect_instance dbii left join dms_base_inspect_route dbir on dbii.inspect_route_id=dbir.inspect_route_id + select + dbii.inspect_instance_id, + dbii.plan_inspect_id, + dbii.wf_process_id, + dbii.inspect_type, + dbii.bills_inspect_code, + dbii.plan_begin_time, + dbii.plan_end_time, + dbii.real_begin_time, + dbii.real_end_time, + dbii.inspect_status, + dbii.create_time, + dbir.route_name,a.plan_inspect_code + from + dms_bills_inspect_instance dbii + left join dms_base_inspect_route dbir on + dbii.inspect_route_id = dbir.inspect_route_id left join dms_plan_inspect a on dbii.plan_inspect_id = a.plan_inspect_id and dbii.inspect_route_id = #{inspectRouteId} diff --git a/hw-modules/hw-dms/src/main/resources/mapper/dms/DmsBillsMaintInstanceMapper.xml b/hw-modules/hw-dms/src/main/resources/mapper/dms/DmsBillsMaintInstanceMapper.xml index c6d2999..47064eb 100644 --- a/hw-modules/hw-dms/src/main/resources/mapper/dms/DmsBillsMaintInstanceMapper.xml +++ b/hw-modules/hw-dms/src/main/resources/mapper/dms/DmsBillsMaintInstanceMapper.xml @@ -29,23 +29,42 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" - select maint_instance_id, plan_maint_id, wf_process_id, bills_maint_code, plan_begin_time, real_begin_time, plan_end_time, real_end_time, maint_status, maint_comp_rate, is_flag, remark, create_by, create_time, update_by, update_time from dms_bills_maint_instance + select + a.maint_instance_id, + a.plan_maint_id, + a.wf_process_id, + a.bills_maint_code, + a.plan_begin_time, + a.real_begin_time, + a.plan_end_time, + a.real_end_time, + a.maint_status, + a.maint_comp_rate, + a.is_flag, + a.create_by, + a.create_time, + a.update_by, + a.update_time, + b.maint_supervisor, + b.remark + from + dms_bills_maint_instance a left join dms_plan_maint b on a.plan_maint_id = b.plan_maint_id diff --git a/hw-modules/hw-dms/src/main/resources/mapper/dms/DmsPlanMaintDetailMapper.xml b/hw-modules/hw-dms/src/main/resources/mapper/dms/DmsPlanMaintDetailMapper.xml index 7b86ae4..5592a54 100644 --- a/hw-modules/hw-dms/src/main/resources/mapper/dms/DmsPlanMaintDetailMapper.xml +++ b/hw-modules/hw-dms/src/main/resources/mapper/dms/DmsPlanMaintDetailMapper.xml @@ -138,13 +138,26 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"