修改文件访问路径
This commit is contained in:
parent
4c761da60a
commit
303ca65532
|
|
@ -16,6 +16,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
<if test="typeId!=null and typeId!=''">
|
||||
and tpt.type_id=#{typeId}
|
||||
</if>
|
||||
order by tpt.create_time DESC
|
||||
</select>
|
||||
<select id="getProductDetails" resultType="com.bonus.business.domain.TbProduct">
|
||||
select tpt.id, tpt.name, tpt.type_id typeId, sdd.dict_label typeName,
|
||||
|
|
|
|||
|
|
@ -19,6 +19,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
<if test="isLink != null and isLink != ''"> and tpt.is_access = #{isAccess}</if>
|
||||
<if test="introduction != null and introduction != ''"> and tpt.introduction like concat('%', #{typeName},'%')</if>
|
||||
<if test="createUser != null "> and su.nick_name like concat('%', #{typeName},'%')</if>
|
||||
order by tpt.create_time DESC
|
||||
</select>
|
||||
<!--查询案例图片集合-->
|
||||
<select id="getCaseImage" resultType="com.bonus.business.domain.ProductCaseImage">
|
||||
|
|
@ -46,6 +47,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
from tb_product tpt
|
||||
left join sys_dict_data sdd on sdd.dict_value=tpt.type_id and sdd.dict_type='tb_product_type'
|
||||
where tpt.id=#{id}
|
||||
|
||||
</select>
|
||||
<select id="getCaseImageByTable" resultType="com.bonus.business.domain.ProductCaseImage">
|
||||
SELECT id,file_path filePath,file_size fileSize,original_name originalName,file_type fileType,create_time createTime,file_suffix fileSuffix,
|
||||
|
|
@ -60,12 +62,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
where product_id=#{id} and del_flag=0
|
||||
</select>
|
||||
<select id="getProductByName" resultType="java.lang.Integer">
|
||||
select count(1)
|
||||
from tb_product
|
||||
where name=#{name} and del_flag=0
|
||||
<if test="id!=null and id!=''">
|
||||
and id!=#{id}
|
||||
</if>
|
||||
select count(1)
|
||||
from tb_product
|
||||
where name=#{name} and del_flag=0
|
||||
<if test="id!=null and id!=''">
|
||||
and id!=#{id}
|
||||
</if>
|
||||
|
||||
</select>
|
||||
<select id="getProductOnCz" resultType="java.lang.Integer">
|
||||
|
|
|
|||
Loading…
Reference in New Issue