|
@@ -54,9 +54,15 @@ |
|
@@ -54,9 +54,15 @@ |
|
54
|
<if test="vo.orderingUnit != null and vo.orderingUnit != ''">
|
54
|
<if test="vo.orderingUnit != null and vo.orderingUnit != ''">
|
|
55
|
AND tb.ordering_unit = #{vo.orderingUnit}
|
55
|
AND tb.ordering_unit = #{vo.orderingUnit}
|
|
56
|
</if>
|
56
|
</if>
|
|
|
|
57
|
+ <if test="vo.orderingUnitName != null and vo.orderingUnitName != ''">
|
|
|
|
58
|
+ AND cu.name LIKE CONCAT('%', #{vo.orderingUnitName}, '%')
|
|
|
|
59
|
+ </if>
|
|
57
|
<if test="vo.deptId != null and vo.deptId != ''">
|
60
|
<if test="vo.deptId != null and vo.deptId != ''">
|
|
58
|
AND tb.dept_id = #{vo.deptId}
|
61
|
AND tb.dept_id = #{vo.deptId}
|
|
59
|
</if>
|
62
|
</if>
|
|
|
|
63
|
+ <if test="vo.deptName != null and vo.deptName != ''">
|
|
|
|
64
|
+ AND d.name LIKE CONCAT('%', #{vo.deptName}, '%')
|
|
|
|
65
|
+ </if>
|
|
60
|
<if test="vo.factoryType != null and vo.factoryType != ''">
|
66
|
<if test="vo.factoryType != null and vo.factoryType != ''">
|
|
61
|
AND tb.factory_type = #{vo.factoryType}
|
67
|
AND tb.factory_type = #{vo.factoryType}
|
|
62
|
</if>
|
68
|
</if>
|