Commit 75ef6219 authored by jichao's avatar jichao

改bug

parent 51e33a97
package org.rcisoft.business.mainte.paramlibrary.dao;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.ResultType;
import org.apache.ibatis.annotations.Select;
import org.rcisoft.business.mainte.paramlibrary.entity.BusParamLibrary;
......@@ -83,8 +84,8 @@ public interface ParamLibraryRepository extends BaseMapper<BusParamLibrary>{
@Insert("<script><foreach collection=\"resultList\" item=\"item\" separator=\";\">" +
"insert into bus_param_library(DEV_NUM,P1,P1_V,P2,P2_V,P3,P3_V,POWER,GAS_SPEED,YEAR) " +
"values(#{devNum},#{p1},#{p1V},#{p2},#{p2V},#{p3},#{p3V},#{power},#{gasSpeed},#{year})" +
"values(#{item.devNum},#{item.p1},#{item.p1V},#{item.p2},#{item.p2V},#{item.p3},#{item.p3V},#{item.power},#{item.gasSpeed},#{item.year})" +
"</foreach></script>")
@ResultType(value = Integer.class)
int saveBusParamLibraryList(List<BusParamLibrary> resultList);
int saveBusParamLibraryList(@Param(value = "resultList") List<BusParamLibrary> resultList);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment