标签:批量 sid into syn -- java you ror prope
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near
<!--批量新增--> <insert id="addBatch" useGeneratedKeys="true" keyProperty="id" parameterType="com.pct.dotware.pams.entity.EmpStsDetail"> insert into emp_sts_detail ( `emp_name`, `emp_id`, `item_id`, `item_name`, `price_id`, `emp_sts`, `cus_id`, `cus_name`, `cus_rank`, `start_date`, `end_date`, `update_date`, `remark` ) values <foreach item="item" collection="list" open="(" separator="),(" close=")"> #{item.empName}, #{item.empId}, #{item.itemId}, #{item.itemName}, #{item.priceId}, #{item.empSts}, #{item.cusId}, #{item.cusName}, #{item.cusRank}, #{item.startDate}, #{item.endDate}, #{item.updateDate}, #{item.remark} </foreach> </insert>
@Column(name = "`left`") private Double left;
@TableField
注解,给上别名加上反单引号,比如@TableField("`month`") private String month;
mybatis和mybatisPlus中解决实体类字段与数据库关键字冲突问题
标签:批量 sid into syn -- java you ror prope
原文地址:https://www.cnblogs.com/zhukf/p/12975066.html