-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
4 changed files
with
144 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
src/main/java/com/xyy/saas/web/schedule/dao/MltTestMapper.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package com.xyy.saas.web.schedule.dao; | ||
|
||
import com.xyy.saas.web.schedule.po.MltTest; | ||
|
||
public interface MltTestMapper { | ||
int deleteByPrimaryKey(Integer id); | ||
|
||
int insert(MltTest record); | ||
|
||
int insertSelective(MltTest record); | ||
|
||
MltTest selectByPrimaryKey(Integer id); | ||
|
||
int updateByPrimaryKeySelective(MltTest record); | ||
|
||
int updateByPrimaryKey(MltTest record); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
package com.xyy.saas.web.schedule.po; | ||
|
||
public class MltTest { | ||
private Integer id; | ||
|
||
private String name; | ||
|
||
private Integer age; | ||
|
||
private String text; | ||
|
||
public Integer getId() { | ||
return id; | ||
} | ||
|
||
public void setId(Integer id) { | ||
this.id = id; | ||
} | ||
|
||
public String getName() { | ||
return name; | ||
} | ||
|
||
public void setName(String name) { | ||
this.name = name == null ? null : name.trim(); | ||
} | ||
|
||
public Integer getAge() { | ||
return age; | ||
} | ||
|
||
public void setAge(Integer age) { | ||
this.age = age; | ||
} | ||
|
||
public String getText() { | ||
return text; | ||
} | ||
|
||
public void setText(String text) { | ||
this.text = text == null ? null : text.trim(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | ||
<mapper namespace="com.xyy.saas.web.schedule.dao.MltTestMapper"> | ||
<resultMap id="BaseResultMap" type="com.xyy.saas.web.schedule.po.MltTest"> | ||
<id column="id" jdbcType="INTEGER" property="id" /> | ||
<result column="name" jdbcType="VARCHAR" property="name" /> | ||
<result column="age" jdbcType="INTEGER" property="age" /> | ||
<result column="text" jdbcType="VARCHAR" property="text" /> | ||
</resultMap> | ||
<sql id="Base_Column_List"> | ||
id, name, age, text | ||
</sql> | ||
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap"> | ||
select | ||
<include refid="Base_Column_List" /> | ||
from mlt_test | ||
where id = #{id,jdbcType=INTEGER} | ||
</select> | ||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer"> | ||
delete from mlt_test | ||
where id = #{id,jdbcType=INTEGER} | ||
</delete> | ||
<insert id="insert" parameterType="com.xyy.saas.web.schedule.po.MltTest"> | ||
insert into mlt_test (id, name, age, | ||
text) | ||
values (#{id,jdbcType=INTEGER}, #{name,jdbcType=VARCHAR}, #{age,jdbcType=INTEGER}, | ||
#{text,jdbcType=VARCHAR}) | ||
</insert> | ||
<insert id="insertSelective" parameterType="com.xyy.saas.web.schedule.po.MltTest"> | ||
insert into mlt_test | ||
<trim prefix="(" suffix=")" suffixOverrides=","> | ||
<if test="id != null"> | ||
id, | ||
</if> | ||
<if test="name != null"> | ||
name, | ||
</if> | ||
<if test="age != null"> | ||
age, | ||
</if> | ||
<if test="text != null"> | ||
text, | ||
</if> | ||
</trim> | ||
<trim prefix="values (" suffix=")" suffixOverrides=","> | ||
<if test="id != null"> | ||
#{id,jdbcType=INTEGER}, | ||
</if> | ||
<if test="name != null"> | ||
#{name,jdbcType=VARCHAR}, | ||
</if> | ||
<if test="age != null"> | ||
#{age,jdbcType=INTEGER}, | ||
</if> | ||
<if test="text != null"> | ||
#{text,jdbcType=VARCHAR}, | ||
</if> | ||
</trim> | ||
</insert> | ||
<update id="updateByPrimaryKeySelective" parameterType="com.xyy.saas.web.schedule.po.MltTest"> | ||
update mlt_test | ||
<set> | ||
<if test="name != null"> | ||
name = #{name,jdbcType=VARCHAR}, | ||
</if> | ||
<if test="age != null"> | ||
age = #{age,jdbcType=INTEGER}, | ||
</if> | ||
<if test="text != null"> | ||
text = #{text,jdbcType=VARCHAR}, | ||
</if> | ||
</set> | ||
where id = #{id,jdbcType=INTEGER} | ||
</update> | ||
<update id="updateByPrimaryKey" parameterType="com.xyy.saas.web.schedule.po.MltTest"> | ||
update mlt_test | ||
set name = #{name,jdbcType=VARCHAR}, | ||
age = #{age,jdbcType=INTEGER}, | ||
text = #{text,jdbcType=VARCHAR} | ||
where id = #{id,jdbcType=INTEGER} | ||
</update> | ||
</mapper> |