Skip to content

Commit

Permalink
修改错误注释
Browse files Browse the repository at this point in the history
  • Loading branch information
suvvm committed Nov 15, 2019
1 parent 387bd14 commit 814f47f
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
package qdu.suvvm.onlinesurvey.mapper;

import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.SelectProvider;
import org.apache.ibatis.annotations.UpdateProvider;
import org.apache.ibatis.annotations.*;
import org.apache.ibatis.jdbc.SQL;
import qdu.suvvm.onlinesurvey.pojo.Company;

Expand All @@ -23,6 +20,7 @@ public interface CmpMapper {
@Delete("delete from companies where id=#{id}")
public int deleteCmpById(Integer id);
// 插入user并获取自增id
@Options(useGeneratedKeys = true, keyProperty = "id")
@Insert("insert into companies(name,decription,forms,domain,ownerid) values(#{name},#{decription},#{froms},#{domain})")
public int insertCmp(Company cmp);
// 根据id更新company
Expand Down Expand Up @@ -63,7 +61,7 @@ public String findCmp(Company cmp) {
* @FunctionName: updateCmp
* @Description: 用于生成更新company动态sql
* @Parameter:
* cmp 查询数据封装的公司类
* cmp 更新数据封装的公司类
* @Return: 返回对应sql语句
*/
public String updateCmp(Company cmp) {
Expand Down

0 comments on commit 814f47f

Please sign in to comment.