org.apache.ibatis.annotations.Insert.<init>()方法的使用及代码示例

x33g5p2x  于2022-01-21 转载在 其他  
字(5.4k)|赞(0)|评价(0)|浏览(431)

本文整理了Java中org.apache.ibatis.annotations.Insert.<init>()方法的一些代码示例,展示了Insert.<init>()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Insert.<init>()方法的具体详情如下:
包路径:org.apache.ibatis.annotations.Insert
类名称:Insert
方法名:<init>

Insert.<init>介绍

暂无

代码示例

代码示例来源:origin: ityouknow/spring-boot-examples

@Insert("INSERT INTO users(userName,passWord,user_sex) VALUES(#{userName}, #{passWord}, #{userSex})")
void insert(UserEntity user);

代码示例来源:origin: ityouknow/spring-boot-examples

@Insert("INSERT INTO users(userName,passWord,user_sex) VALUES(#{userName}, #{passWord}, #{userSex})")
void insert(UserEntity user);

代码示例来源:origin: ityouknow/spring-boot-examples

@Insert("INSERT INTO users(userName,passWord,user_sex) VALUES(#{userName}, #{passWord}, #{userSex})")
void insert(UserEntity user);

代码示例来源:origin: qiurunze123/miaosha

@Insert("insert into miaosha_order (user_id, goods_id, order_id)values(#{userId}, #{goodsId}, #{orderId})")
public int insertMiaoshaOrder(MiaoshaOrder miaoshaOrder);

代码示例来源:origin: qiurunze123/miaosha

@Insert("insert into user (id, name) values(#{id}, #{name})")
public int insert(User user);

代码示例来源:origin: yu199195/hmily

/**
 * 保存订单.
 *
 * @param order 订单对象
 * @return rows
 */
@Insert(" insert into `order` (create_time,number,status,product_id,total_amount,count,user_id) "
    + " values ( #{createTime},#{number},#{status},#{productId},#{totalAmount},#{count},#{userId})")
int save(Order order);

代码示例来源:origin: yu199195/hmily

/**
 * 保存订单
 *
 * @param order 订单对象
 * @return rows
 */
@Insert(" insert into `order` (create_time,number,status,product_id,total_amount,count,user_id) " +
    " values ( #{createTime},#{number},#{status},#{productId},#{totalAmount},#{count},#{userId})")
int save(Order order);

代码示例来源:origin: yu199195/Raincat

/**
 * 保存
 *
 * @param wechat 实体对象
 * @return rows
 */
@Insert("INSERT INTO wechat(name,amount,create_time) VALUES(#{name}, #{amount},#{createTime})")
int save(Wechat wechat);

代码示例来源:origin: yu199195/Raincat

/**
 * 保存支付信息
 *
 * @param pay 实体
 * @return row 条数
 */
@Insert("INSERT INTO pay(name,total_amount,create_time) VALUES(#{name}, #{totalAmount},#{createTime})")
int save(Pay pay);

代码示例来源:origin: yu199195/myth

/**
 * Save int.
 *
 * @param order the order
 * @return the int
 */
@Insert(" insert into `order` (create_time,number,status,product_id,total_amount,count,user_id) " +
    " values ( #{createTime},#{number},#{status},#{productId},#{totalAmount},#{count},#{userId})")
int save(Order order);

代码示例来源:origin: yu199195/myth

/**
 * 保存订单
 *
 * @param order 订单对象
 * @return rows int
 */
@Insert(" insert into `order` (create_time,number,status,product_id,total_amount,count,user_id) " +
    " values ( #{createTime},#{number},#{status},#{productId},#{totalAmount},#{count},#{userId})")
int save(Order order);

代码示例来源:origin: yu199195/Raincat

/**
 * 数据库保存操作
 *
 * @param alipay 实体类
 * @return rows
 */
@Insert("INSERT INTO alipay(name,amount,create_time) VALUES(#{name}, #{amount},#{createTime})")
int save(Alipay alipay);

代码示例来源:origin: yu199195/myth

/**
 * 保存订单
 *
 * @param order 订单对象
 * @return rows int
 */
@Insert(" insert into `order` (create_time,number,status,product_id,total_amount,count,user_id) " +
    " values ( #{createTime},#{number},#{status},#{productId},#{totalAmount},#{count},#{userId})")
int save(Order order);

代码示例来源:origin: qiurunze123/miaosha

@Insert("insert into miaosha_message (id , messageid ,content , create_time ,status,over_time,message_type ,send_type , good_name , price,messageHead)" +
    "value (#{id},#{messageId},#{content},#{createTime},#{status},#{overTime},#{messageType},#{sendType},#{goodName},#{price},#{messageHead}) ")
@Options(useGeneratedKeys = true, keyProperty = "id", keyColumn = "id")
public void insertMiaoShaMessage(MiaoShaMessageInfo miaoShaMessage);

代码示例来源:origin: qiurunze123/miaosha

@Insert("insert into miaosha_message_user (id , userid ,messageid , goodid ,orderid)" +
    "value (#{id},#{userId},#{messageId},#{goodId},#{orderId}) ")
@Options(useGeneratedKeys = true, keyProperty = "id", keyColumn = "id")
public void insertMiaoShaMessageUser(MiaoShaMessageUser miaoShaMessageUser);

代码示例来源:origin: qiurunze123/miaosha

@Insert("insert into order_info(user_id, goods_id, goods_name, goods_count, goods_price, order_channel, status, create_date)values("
    + "#{userId}, #{goodsId}, #{goodsName}, #{goodsCount}, #{goodsPrice}, #{orderChannel},#{status},#{createDate} )")
@SelectKey(keyColumn="id", keyProperty="id", resultType=long.class, before=false, statement="select last_insert_id()")
public long insert(OrderInfo orderInfo);

代码示例来源:origin: baomidou/mybatis-plus

@Insert(
  "insert into h2user(name,version) values( #{name}, #{version})"
)
int myInsertWithoutParam(H2User user1);

代码示例来源:origin: qiurunze123/miaosha

@Insert("insert into miaosha_user (id , nickname ,password , salt ,head,register_date,last_login_date)value (#{id},#{nickname},#{password},#{salt},#{head},#{registerDate},#{lastLoginDate}) ")
@Options(useGeneratedKeys = true, keyProperty = "id", keyColumn = "id")
public void insertMiaoShaUser(MiaoshaUser miaoshaUser);

代码示例来源:origin: baomidou/mybatis-plus

@Insert(
  "insert into h2user(name,version) values( #{user1.name}, #{user1.version})"
)
int myInsertWithParam(@Param("user1") H2User user1);

代码示例来源:origin: baomidou/mybatis-plus

@Insert(
  "insert into h2user(name,version) values(#{name},#{version})"
)
int myInsertWithNameVersion(@Param("name") String name, @Param("version") int version);

相关文章

Insert类方法