插入:
dao :
int addAllSkuPassList(@Param("skuPassList") ListskuPassList);
Mapper:
查询
dao:
Mapper:
更新:
dao:
mapper:
另:
用mybatic 批量更新必须加上参数&allowMultiQueries=true,如下
jdbc:mysql://192.168.68.23:3306/smi_am?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull&allowMultiQueries=true;
这参数意思是允许多个查询。