Browse Source

修改生命周期跨库查询库名

zhongwei
tanghaihao 1 year ago
parent
commit
cf455b8a7e
  1. 8
      hzims-service/equipment/src/main/java/com/hnac/hzims/equipment/mapper/EmInfoMapper.xml
  2. 2
      hzims-service/operational/src/main/java/com/hnac/hzims/operational/access/mapper/OperAccessTaskMapper.xml
  3. 2
      hzims-service/ticket/src/main/java/com/hnac/hzims/ticket/workTicket/mapper/xml/WorkTicketInfoMapper.xml

8
hzims-service/equipment/src/main/java/com/hnac/hzims/equipment/mapper/EmInfoMapper.xml

@ -126,10 +126,10 @@
from hzims_em_info info
LEFT JOIN hzims_em_tree tree ON info.tree_id = tree.id
LEFT JOIN hzims_em_tree_basic etb ON tree.id = etb.tree_id
LEFT JOIN dev_hzims_assets.wt_sp_basic basic ON etb.basic_id = basic.id
LEFT JOIN dev_hzims_assets.wt_sp_total total ON basic.id = total.SP_BASIC_ID
LEFT JOIN dev_hzims_assets.wt_sp_warehouse house ON total.WAREHOUSE_ID = house.id
LEFT JOIN dev_hzims_operation.hzims_oper_access_material mat ON basic.id = mat.SP_BASIC_ID
LEFT JOIN hzims_assets.wt_sp_basic basic ON etb.basic_id = basic.id
LEFT JOIN hzims_assets.wt_sp_total total ON basic.id = total.SP_BASIC_ID
LEFT JOIN hzims_assets.wt_sp_warehouse house ON total.WAREHOUSE_ID = house.id
LEFT JOIN hzims_operation.hzims_oper_access_material mat ON basic.id = mat.SP_BASIC_ID
<where>
<if test="path != null">
info.path like CONCAT(#{path},'%')

2
hzims-service/operational/src/main/java/com/hnac/hzims/operational/access/mapper/OperAccessTaskMapper.xml

@ -212,7 +212,7 @@
FROM hzims_oper_access_task t
LEFT JOIN hzims_oper_access_plan p ON t.PLAN_ID = p.ID
LEFT JOIN hzims_oper_access_material m ON t.ID = m.TASK_ID
LEFT JOIN dev_equipment.hzims_em_info e ON t.EM_CODE = e.NUMBER
LEFT JOIN equipment.hzims_em_info e ON t.EM_CODE = e.NUMBER
<where>
<if test="path != null">
e.path like CONCAT(#{path},'%')

2
hzims-service/ticket/src/main/java/com/hnac/hzims/ticket/workTicket/mapper/xml/WorkTicketInfoMapper.xml

@ -92,7 +92,7 @@
(select count(*) from hzims_ticket_info_evaluate e where evaluate = '合格!' and e.id = eval.id) as qualified
from hzims_work_ticket_info info
LEFT JOIN hzims_ticket_info_evaluate eval ON info.id = eval.ticket_id
LEFT JOIN dev_equipment.hzims_em_info em ON info.em_code = em.NUMBER
LEFT JOIN equipment.hzims_em_info em ON info.em_code = em.NUMBER
<where>
<if test="path != null">
em.path like CONCAT(#{path},'%')

Loading…
Cancel
Save