Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation
This project
Loading...
Sign in
platform
/
finance_serv
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 7df5ccfd
authored
Aug 01, 2018
by
王军业
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
[更新]
1 parent
816f7966
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
19 deletions
code/finance_serv/src/main/java/com/vion/financial/mapping/PersonMapper.xml
code/finance_serv/src/main/java/com/vion/financial/mapping/PersonMapper.xml
deleted
100644 → 0
View file @
816f796
<?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.vion.financial.mapper.PersonMapper"
>
<!--设置domain类和数据库中表的字段一一对应,注意数据库字段和domain类中的字段名称不致,此处一定要! -->
<select
id=
"query"
parameterType=
"int"
resultType=
"com.vion.financial.model.Person"
>
select * from person where id = #{id}
</select>
<select
id=
"getAll"
resultType=
"com.vion.financial.model.Person"
>
select * from person
</select>
<select
id=
"addPerson"
parameterType=
"com.vion.financial.model.Person"
>
insert into person(id,name,age) values (#{id},#{name},#{age})
</select>
<select
id=
"update"
parameterType=
"com.vion.financial.model.Person"
>
update person set name=#{name},age=#{age} where id=#{id}
</select>
<select
id=
"delete"
parameterType=
"int"
>
delete from person where id=#{id}
</select>
</mapper>
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment