int insertBrandBusinessByExcel(List
insert into tb_label (ecp,pid,ehco)
values
(#{label.ecp,jdbcType=VARCHAR},#{label.pid,jdbcType=INTEGER},#{label.ehco,jdbcType=VARCHAR})
/**
* 批量入库
* @param list
* @param pid
* @return
*/
@PostMapping("/insertAll")//@RequestParam 不写会报List错误
public Object insertLabel(@RequestParam("list")List
int batchUpdateLabelDTO(List
update tb_label
state = #{label.state,jdbcType=INTEGER},
hid = #{label.hid,jdbcType=INTEGER},
frequency = #{label.frequency,jdbcType=INTEGER}
id = #{label.id,jdbcType=INTEGER}
/**
* 批量更新
* @param list
* @param
* @return
*/
@PostMapping("/CascadeUpdate")
public Object batchUpdateLabelDTO(@RequestBody List
List selectLabelDTO(List list);