|
|
|
@ -8,10 +8,10 @@
|
|
|
|
|
SELECT * FROM basic_bustype_local
|
|
|
|
|
<where>
|
|
|
|
|
<if test="name != ''and name != null">
|
|
|
|
|
AND name LIKE concat(#{name},'%')
|
|
|
|
|
AND basic_bustype_local.name LIKE concat('%',#{name},'%')
|
|
|
|
|
</if>
|
|
|
|
|
<if test="action != ''and action != null">
|
|
|
|
|
AND action LIKE concat(#{action},'%')
|
|
|
|
|
AND action LIKE concat('%',#{action},'%')
|
|
|
|
|
</if>
|
|
|
|
|
<if test="originAction != ''and originAction != null">
|
|
|
|
|
AND originAction =#{originAction}
|
|
|
|
@ -27,10 +27,10 @@
|
|
|
|
|
<where>
|
|
|
|
|
localAction is NULL
|
|
|
|
|
<if test="name != ''and name != null">
|
|
|
|
|
AND name LIKE concat(#{name},'%')
|
|
|
|
|
AND basic_bustype_local.name LIKE concat('%',#{name},'%')
|
|
|
|
|
</if>
|
|
|
|
|
<if test="action != ''and action != null">
|
|
|
|
|
AND action LIKE concat(#{action},'%')
|
|
|
|
|
AND action LIKE concat('%',#{action},'%')
|
|
|
|
|
</if>
|
|
|
|
|
<if test="originAction != ''and originAction != null">
|
|
|
|
|
AND originAction =#{originAction}
|
|
|
|
@ -51,10 +51,10 @@
|
|
|
|
|
on basic_bustype_local.action = basic_bussiness_type.localAction
|
|
|
|
|
<where>
|
|
|
|
|
<if test="name != ''and name != null">
|
|
|
|
|
AND basic_bustype_local.name LIKE concat(#{name},'%')
|
|
|
|
|
AND basic_bustype_local.name LIKE concat('%',#{name},'%')
|
|
|
|
|
</if>
|
|
|
|
|
<if test="action != ''and action != null">
|
|
|
|
|
AND basic_bustype_local.action LIKE concat(#{action},'%')
|
|
|
|
|
AND basic_bustype_local.action LIKE concat('%',#{action},'%')
|
|
|
|
|
</if>
|
|
|
|
|
<if test="enabled != ''and enabled != null">
|
|
|
|
|
AND basic_bussiness_type.enable =#{enabled}
|
|
|
|
@ -104,10 +104,10 @@
|
|
|
|
|
INNER JOIN inv_warehouse_user on inv_warehouse.`code` =inv_warehouse_user.`code`
|
|
|
|
|
<where>
|
|
|
|
|
<if test="name != ''and name != null">
|
|
|
|
|
AND basic_bustype_local.name LIKE concat(#{name},'%')
|
|
|
|
|
AND basic_bustype_local.name LIKE concat('%',#{name},'%')
|
|
|
|
|
</if>
|
|
|
|
|
<if test="action != ''and action != null">
|
|
|
|
|
AND basic_bustype_local.action LIKE concat(#{action},'%')
|
|
|
|
|
AND basic_bustype_local.action LIKE concat('%',#{action},'%')
|
|
|
|
|
</if>
|
|
|
|
|
<if test="enabled != ''and enabled != null">
|
|
|
|
|
AND basic_bussiness_type.enable =#{enabled}
|
|
|
|
@ -134,10 +134,10 @@
|
|
|
|
|
LEFT JOIN basic_bussiness_type on basic_bussiness_type.localAction = basic_bustype_local.action
|
|
|
|
|
<where>
|
|
|
|
|
<if test="name != ''and name != null">
|
|
|
|
|
AND basic_bustype_local.name LIKE concat(#{name},'%')
|
|
|
|
|
AND basic_bustype_local.name LIKE concat('%',#{name},'%')
|
|
|
|
|
</if>
|
|
|
|
|
<if test="action != ''and action != null">
|
|
|
|
|
AND basic_bustype_local.action LIKE concat(#{action},'%')
|
|
|
|
|
AND basic_bustype_local.action LIKE concat('%',#{action},'%')
|
|
|
|
|
</if>
|
|
|
|
|
<if test="spUse != ''and spUse != null">
|
|
|
|
|
AND spUse =#{spUse}
|
|
|
|
|