|
@@ -23,8 +23,13 @@ public interface MixLabelPrintDao {
|
|
|
"exec sp_addextendedproperty 'MS_Description', '重复打印操作时间', 'SCHEMA', 'dbo', 'TABLE', '${table}', 'COLUMN', 'reprint_datetime';")
|
|
|
void createTable(@Param("table") String table);
|
|
|
|
|
|
- @Insert("insert into ${table} (label,status,reprint) values (#{label},0,0)")
|
|
|
- void insertNewLabel(@Param("table") String table, @Param("label") String label);
|
|
|
+ @Insert("<script>" +
|
|
|
+ "insert into ${table} (label,status,reprint) values " +
|
|
|
+ "<foreach collection='list' item='label' open='' separator=',' close=''>" +
|
|
|
+ "(#{label}, 0, 0)" +
|
|
|
+ "</foreach>" +
|
|
|
+ "</script>")
|
|
|
+ void insertNewLabels(@Param("table") String table, @Param("list") List<String> list);
|
|
|
|
|
|
@Insert("insert into t_mix_label_ranges(table_name, min_label, max_label, prefix, slice_index, end_number) values " +
|
|
|
"(#{tableName},#{minLabel},#{maxLabel},#{prefix},#{sliceIndex},#{endNumber})")
|