物料加一个产品下拉框查询字段
This commit is contained in:
parent
a1e291fd88
commit
f15e1c9ed8
|
|
@ -28,10 +28,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
select aaa.id, aaa.name, aaa.type_id, aaa.type_name, aaa.image, aaa.version, aaa.description, su.user_name as create_user, aaa.create_time, aaa.update_user, aaa.update_time, aaa.product_name
|
||||
from tb_promotion_material aaa
|
||||
left join sys_user su on su.user_id = aaa.create_user
|
||||
left join tb_promotion_material_product ccc on ccc.material_id = aaa.id
|
||||
where aaa.del_flag = 0
|
||||
<if test="name != null and name != ''"> and aaa.name like concat('%', #{name}, '%')</if>
|
||||
<if test="typeId != null "> and aaa.type_id = #{typeId}</if>
|
||||
<if test="typeName != null and typeName != ''"> and aaa.type_name like concat('%', #{typeName}, '%')</if>
|
||||
<if test="productId != null and productId != ''"> and ccc.product_id = #{productId} </if>
|
||||
</select>
|
||||
|
||||
<select id="selectTbPromotionMaterialById" parameterType="Long" resultMap="TbPromotionMaterialResult">
|
||||
|
|
|
|||
Loading…
Reference in New Issue