Mybatis传入多个参数(String,List等)

Mybatis传入多个参数问题记录:

dao层接口,多个参数使用注解@Param:

/**
 * 更新为待上传的
 */
void createWaitingUploadOrders  (@Param("warehouseType") String warehouseType,@Param("siteEn") List siteEn,@Param("platformEn") List platformEn);

 

xml代码:


   
       update Student as a
inner join Student1  as b on a.warehouse_code=b.warehouse_en
set a.parcel_status=9
       where b.warehouse_company=#{warehouseType}
       
           and a.site_en in
           
               #{item}
           
       
       
           and a.platform_en in
           
               #{platform}
           
       
       limit 1000
   

你可能感兴趣的:(Mybatis传入多个参数(String,List等))