Commit 48b6e762 by wnb0128

车家智能V1.0.0开发 获取图片url方法sql修改--think.wang

1 parent 77613fc9
package com.glsx.smart.dao.mapper; package com.glsx.smart.dao.mapper;
import java.util.List;
import com.glsx.smart.dao.entity.SmartSysFile; import com.glsx.smart.dao.entity.SmartSysFile;
import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Param;
import java.util.List;
/** /**
* <p>Description: * <p>Description:
* <p>Project: chejia-smart * <p>Project: chejia-smart
...@@ -25,5 +26,5 @@ public interface SmartSysFileMapper extends tk.mybatis.mapper.common.Mapper<Smar ...@@ -25,5 +26,5 @@ public interface SmartSysFileMapper extends tk.mybatis.mapper.common.Mapper<Smar
int batchInsert(@Param("list") List<SmartSysFile> list); int batchInsert(@Param("list") List<SmartSysFile> list);
List<SmartSysFile> findByType(String type); List<SmartSysFile> findByType(@Param("type") Byte type);
} }
...@@ -88,9 +88,9 @@ ...@@ -88,9 +88,9 @@
</foreach> </foreach>
</update> </update>
<select id="findByType" resultType="com.glsx.smart.dao.entity.SmartSysFile"> <select id="findByType" resultType="com.glsx.smart.dao.entity.SmartSysFile">
SELECT * FROM smart_sys_file select * from smart_sys_file
<if test="type != null"> <if test="type != null">
WHERE TYPE=#{TYPE} where `type` = #{type,jdbcType=TINYINT}
</if> </if>
</select> </select>
<insert id="batchInsert" keyColumn="id" keyProperty="id" parameterType="map" <insert id="batchInsert" keyColumn="id" keyProperty="id" parameterType="map"
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!