问题修改
This commit is contained in:
parent
342f27cfc8
commit
d8e5d565e0
|
|
@ -434,28 +434,30 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
|
||||
<select id="getElectronicLabel" resultType="com.bonus.material.ma.domain.Machine">
|
||||
SELECT
|
||||
mm.ma_id as maId,
|
||||
mt2.type_name as materialName,
|
||||
mt.type_name as materialModel,
|
||||
mm.ma_code as maCode,
|
||||
mm.this_check_time as thisCheckTime,
|
||||
mm.next_check_time as nextCheckTime,
|
||||
mm.check_man as checkMan,
|
||||
mm.inspect_man as inspectMan,
|
||||
mm.phone,
|
||||
'合格' as inspectStatus,
|
||||
mm.ma_vender as maVender,
|
||||
mm.ex_code as exCode,
|
||||
mm.ex_url as exUrl,
|
||||
mm.is_jj as isJj,
|
||||
mm.type_id as typeId
|
||||
mm.ma_id as maId,
|
||||
mt2.type_name as materialName,
|
||||
mt.type_name as materialModel,
|
||||
mm.ma_code as maCode,
|
||||
mm.this_check_time as thisCheckTime,
|
||||
mm.next_check_time as nextCheckTime,
|
||||
mm.check_man as checkMan,
|
||||
mm.inspect_man as inspectMan,
|
||||
mm.phone,
|
||||
'合格' as inspectStatus,
|
||||
mm.ma_vender as maVender,
|
||||
mm.ex_code as exCode,
|
||||
mm.ex_url as exUrl,
|
||||
mm.is_jj as isJj,
|
||||
mm.type_id as typeId
|
||||
FROM
|
||||
ma_machine mm
|
||||
LEFT JOIN ma_type mt on mt.type_id=mm.type_id
|
||||
LEFT JOIN ma_type mt2 on mt2.type_id=mt.parent_id
|
||||
ma_machine mm
|
||||
LEFT JOIN ma_type mt on mt.type_id=mm.type_id
|
||||
LEFT JOIN ma_type mt2 on mt2.type_id=mt.parent_id
|
||||
WHERE
|
||||
mm.ma_status = '2' and
|
||||
mm.ma_code like concat('%', #{maCode}, '%')
|
||||
mm.ma_code like concat('%', #{maCode}, '%')
|
||||
<if test="maId != null">
|
||||
and mm.ma_id = #{maId}
|
||||
</if>
|
||||
</select>
|
||||
|
||||
<select id="selectMaId" resultType="java.lang.Long">
|
||||
|
|
|
|||
Loading…
Reference in New Issue