|
|
|
@ -45,9 +45,16 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<result property="updateTime" column="sub_update_time" />
|
|
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
|
|
<!-- <select id="selectDmsPlanLubeJoinByPlanLubeCode" parameterType="String" resultMap="DmsPlanLubeDmsPlanLubeDetailResult">-->
|
|
|
|
|
<!-- select a.plan_lube_id, a.plan_lube_code, a.lube_level, a.lube_group, a.lube_supervisor, a.lube_time, a.time_limit, a.job_id, a.cycle_period, a.create_method, a.active_flag, a.remark, a.create_by, a.create_time, a.update_by,-->
|
|
|
|
|
<!-- a.update_time-->
|
|
|
|
|
<!-- from dms_plan_lube a-->
|
|
|
|
|
<!-- where a.plan_lube_code = #{planLubeCode}-->
|
|
|
|
|
<!-- </select>-->
|
|
|
|
|
|
|
|
|
|
<select id="selectDmsPlanLubeJoinByPlanLubeCode" parameterType="String" resultMap="DmsPlanLubeDmsPlanLubeDetailResult">
|
|
|
|
|
select a.plan_lube_id, a.plan_lube_code, a.lube_level, a.lube_group, a.lube_supervisor, a.lube_time, a.time_limit, a.job_id, a.cycle_period, a.create_method, a.active_flag, a.remark, a.create_by, a.create_time, a.update_by, a.update_time,
|
|
|
|
|
/* b.plan_lube_detail_id as sub_plan_lube_detail_id,
|
|
|
|
|
b.plan_lube_detail_id as sub_plan_lube_detail_id,
|
|
|
|
|
b.plan_lube_id as sub_plan_lube_id,
|
|
|
|
|
b.device_id as sub_machine_id,
|
|
|
|
|
b.lube_station_id as sub_lube_station_id,
|
|
|
|
@ -58,9 +65,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
b.create_by as sub_create_by,
|
|
|
|
|
b.create_time as sub_create_time,
|
|
|
|
|
b.update_by as sub_update_by,
|
|
|
|
|
b.update_time as sub_update_time*/
|
|
|
|
|
b.update_time as sub_update_time
|
|
|
|
|
from dms_plan_lube a
|
|
|
|
|
/* left join dms_plan_lube_detail b on b.plan_lube_id = a.plan_lube_id*/
|
|
|
|
|
left join dms_plan_lube_detail b on b.plan_lube_id = a.plan_lube_id
|
|
|
|
|
where a.plan_lube_code = #{planLubeCode}
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|