This commit is contained in:
parent
a897062d74
commit
6a733f4bb0
|
|
@ -86,7 +86,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
|
|
||||||
<update id="updateToolInfo">
|
<update id="updateToolInfo">
|
||||||
UPDATE tool_ledger
|
UPDATE tool_ledger
|
||||||
set tool_status = #{maStatus},
|
set status = #{maStatus},
|
||||||
in_num = IFNULL(in_num, 0) - 1,
|
in_num = IFNULL(in_num, 0) - 1,
|
||||||
available_num = IFNULL(available_num, 0) + 1
|
available_num = IFNULL(available_num, 0) + 1
|
||||||
WHERE code = #{devCode}
|
WHERE code = #{devCode}
|
||||||
|
|
@ -102,7 +102,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
|
|
||||||
<update id="updateToolInfoRepair">
|
<update id="updateToolInfoRepair">
|
||||||
UPDATE tool_ledger
|
UPDATE tool_ledger
|
||||||
set tool_status = #{maStatus},
|
set status = #{maStatus},
|
||||||
in_num = IFNULL(in_num, 0) - 1,
|
in_num = IFNULL(in_num, 0) - 1,
|
||||||
repair_num = IFNULL(repair_num, 0) + 1
|
repair_num = IFNULL(repair_num, 0) + 1
|
||||||
WHERE code = #{devCode}
|
WHERE code = #{devCode}
|
||||||
|
|
@ -157,7 +157,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
LEFT JOIN ma_type mt4 ON mt3.parent_id = mt4.type_id
|
LEFT JOIN ma_type mt4 ON mt3.parent_id = mt4.type_id
|
||||||
LEFT JOIN ma_type mt5 ON mt4.parent_id = mt5.type_id
|
LEFT JOIN ma_type mt5 ON mt4.parent_id = mt5.type_id
|
||||||
<where>
|
<where>
|
||||||
mdi.is_active = '1' and mdi.ma_status = 2
|
mdi.is_active = '1' and mdi.ma_status = 2 AND cdc.del_flag = '0'
|
||||||
<if test="typeName!=null and typeName!=''">
|
<if test="typeName!=null and typeName!=''">
|
||||||
AND mdi.device_name like concat('%',#{typeName},'%')
|
AND mdi.device_name like concat('%',#{typeName},'%')
|
||||||
</if>
|
</if>
|
||||||
|
|
@ -198,7 +198,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
LEFT JOIN tool_type tt3 ON tt2.parent_id = tt3.type_id
|
LEFT JOIN tool_type tt3 ON tt2.parent_id = tt3.type_id
|
||||||
LEFT JOIN tool_type tt4 ON tt3.parent_id = tt4.type_id
|
LEFT JOIN tool_type tt4 ON tt3.parent_id = tt4.type_id
|
||||||
<where>
|
<where>
|
||||||
tl.manage_mode = '0'
|
tl.manage_mode = '0' AND cdc.del_flag = '0'
|
||||||
<if test="typeName!=null and typeName!=''">
|
<if test="typeName!=null and typeName!=''">
|
||||||
AND tt1.type_name like concat('%',#{typeName},'%')
|
AND tt1.type_name like concat('%',#{typeName},'%')
|
||||||
</if>
|
</if>
|
||||||
|
|
@ -236,7 +236,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
LEFT JOIN tool_type tt3 ON tt2.parent_id = tt3.type_id
|
LEFT JOIN tool_type tt3 ON tt2.parent_id = tt3.type_id
|
||||||
LEFT JOIN tool_type tt4 ON tt3.parent_id = tt4.type_id
|
LEFT JOIN tool_type tt4 ON tt3.parent_id = tt4.type_id
|
||||||
<where>
|
<where>
|
||||||
tl.manage_mode = '1'
|
tl.manage_mode = '1' AND cdc.del_flag = '0'
|
||||||
<if test="typeName!=null and typeName!=''">
|
<if test="typeName!=null and typeName!=''">
|
||||||
AND tt1.type_name like concat('%',#{typeName},'%')
|
AND tt1.type_name like concat('%',#{typeName},'%')
|
||||||
</if>
|
</if>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue