first version of aida_back
This commit is contained in:
21
src/main/resources/mapper/CollectionMapper.xml
Normal file
21
src/main/resources/mapper/CollectionMapper.xml
Normal file
@@ -0,0 +1,21 @@
|
||||
<?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.ai.da.mapper.CollectionMapper">
|
||||
|
||||
<!-- 通用查询映射结果 -->
|
||||
<resultMap id="BaseResultMap" type="com.ai.da.mapper.entity.Collection">
|
||||
<id column="id" property="id" />
|
||||
<result column="account_id" property="accountId" />
|
||||
<result column="create_date" property="createDate" />
|
||||
<result column="update_date" property="updateDate" />
|
||||
</resultMap>
|
||||
|
||||
<insert id="insertCollection" parameterType="com.ai.da.mapper.entity.Collection" useGeneratedKeys="true" keyProperty="id" keyColumn="id">
|
||||
insert into t_collection
|
||||
(account_id,create_date)
|
||||
values(
|
||||
#{accountId},
|
||||
#{createDate});
|
||||
</insert>
|
||||
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user