|
@@ -67,6 +67,7 @@
|
|
<result column="equipmentNo" property="equipmentNo"/>
|
|
<result column="equipmentNo" property="equipmentNo"/>
|
|
<result column="stage" property="stage"/>
|
|
<result column="stage" property="stage"/>
|
|
<result column="endTime" property="endTime"/>
|
|
<result column="endTime" property="endTime"/>
|
|
|
|
+ <result column="lastopentime" property="lastOpenTime"/>
|
|
<result column="hillNumber" property="hillNumber"/>
|
|
<result column="hillNumber" property="hillNumber"/>
|
|
<result column="ownerCompanyName" property="ownerCompanyName"/>
|
|
<result column="ownerCompanyName" property="ownerCompanyName"/>
|
|
<result column="companyName" property="companyName"/>
|
|
<result column="companyName" property="companyName"/>
|
|
@@ -87,7 +88,7 @@
|
|
tbmp.end_time endTime,tbm.state state,tbp.project_name projectName,tbc.company_name companyName,tbco.company_name produceCompany,tbm.pre_update_id,
|
|
tbmp.end_time endTime,tbm.state state,tbp.project_name projectName,tbc.company_name companyName,tbco.company_name produceCompany,tbm.pre_update_id,
|
|
tbp.manager mangerName,tbco.company_address area,tbmp.hill_number hillNumber,tbm.oc_cycle oc_cycle,tbp.manager_id managerId,
|
|
tbp.manager mangerName,tbco.company_address area,tbmp.hill_number hillNumber,tbm.oc_cycle oc_cycle,tbp.manager_id managerId,
|
|
tbmp.equipment_no equipmentNo,tbm.setting_life setting_life,tbp.owner_company_name ownerCompanyName,tbm.run_times run_times,
|
|
tbmp.equipment_no equipmentNo,tbm.setting_life setting_life,tbp.owner_company_name ownerCompanyName,tbm.run_times run_times,
|
|
- tbmp.lng,tbmp.lat,tbmp.stage
|
|
|
|
|
|
+ tbmp.lng,tbmp.lat,tbmp.stage,(SELECT open_time FROM `mould_history_time` WHERE equipment_no=equipmentNo ORDER BY indate DESC LIMIT 1) lastopentime
|
|
from
|
|
from
|
|
tb_mould tbm
|
|
tb_mould tbm
|
|
left join
|
|
left join
|
|
@@ -133,7 +134,7 @@
|
|
tbmp.end_time endTime,tbm.state state,tbp.project_name projectName,tbc.company_name companyName,tbm.holes,tbm.pre_update_id,tbco.company_name produceCompany,
|
|
tbmp.end_time endTime,tbm.state state,tbp.project_name projectName,tbc.company_name companyName,tbm.holes,tbm.pre_update_id,tbco.company_name produceCompany,
|
|
tbp.manager mangerName,tbco.company_address area,tbmp.hill_number hillNumber,tbm.oc_cycle oc_cycle,tbm.creator_id creator_id,
|
|
tbp.manager mangerName,tbco.company_address area,tbmp.hill_number hillNumber,tbm.oc_cycle oc_cycle,tbm.creator_id creator_id,
|
|
tbmp.equipment_no equipmentNo,tbm.setting_life setting_life,tbp.owner_company_name ownerCompanyName,tbm.run_times run_times,
|
|
tbmp.equipment_no equipmentNo,tbm.setting_life setting_life,tbp.owner_company_name ownerCompanyName,tbm.run_times run_times,
|
|
- tbmp.lng,tbmp.lat,tbmp.stage
|
|
|
|
|
|
+ tbmp.lng,tbmp.lat,tbmp.stage,(SELECT open_time FROM `mould_history_time` WHERE equipment_no=equipmentNo ORDER BY indate DESC LIMIT 1) lastopentime
|
|
from
|
|
from
|
|
tb_mould tbm
|
|
tb_mould tbm
|
|
left join
|
|
left join
|