diff --git a/bonus-modules/bonus-material/src/main/resources/mapper/material/ma/MachineMapper.xml b/bonus-modules/bonus-material/src/main/resources/mapper/material/ma/MachineMapper.xml index 74c29da0..80794510 100644 --- a/bonus-modules/bonus-material/src/main/resources/mapper/material/ma/MachineMapper.xml +++ b/bonus-modules/bonus-material/src/main/resources/mapper/material/ma/MachineMapper.xml @@ -823,8 +823,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ( SELECT wmi.id as maId, - mt2.type_name as maName, - mt.type_name as maModel, + wmi.ma_name as maName, + wmi.ma_model as maModel, wmi.ma_code as maCode, wmi.qr_code as qrCode, wmi.model_id as typeId, @@ -837,12 +837,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" wmi.this_check_time as thisCheckTime, wmi.next_check_time as nextCheckTime, '' as inOutNum, - mt.jiju_type as jiJuType, - mt.is_check as isCheck, + '1' as jiJuType, + '' as isCheck, '1' as devType FROM ws_ma_info wmi - LEFT JOIN ma_type mt ON mt.type_id = wmi.model_id - LEFT JOIN ma_type mt2 ON mt.parent_id = mt2.type_id WHERE 1=1 and wmi.ma_code LIKE CONCAT('%',#{maCode}, '%') @@ -854,8 +852,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" SELECT wmi.id as maId, - mt2.type_name as maName, - mt.type_name as maModel, + wmi.ma_name as maName, + wmi.ma_model as maModel, wmi.ma_code as maCode, wmi.qr_code as qrCode, wmi.model_id as typeId, @@ -893,12 +889,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" wmi.this_check_time as thisCheckTime, wmi.next_check_time as nextCheckTime, '' as inOutNum, - mt.jiju_type as jiJuType, - mt.is_check as isCheck, + '1' as jiJuType, '1' as devType FROM ws_ma_info wmi - LEFT JOIN ma_type mt ON mt.type_id = wmi.model_id - LEFT JOIN ma_type mt2 ON mt.parent_id = mt2.type_id WHERE 1=1 and wmi.ma_code LIKE CONCAT('%',#{maCode}, '%')