2024-01-19 16:36:34 +08:00
|
|
|
<?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.primary.DesignMapper">
|
|
|
|
|
|
|
|
|
|
<!-- 通用查询映射结果 -->
|
|
|
|
|
<resultMap id="BaseResultMap" type="com.ai.da.mapper.primary.entity.Design">
|
|
|
|
|
<id column="id" property="id" />
|
|
|
|
|
<result column="account_id" property="accountId" />
|
|
|
|
|
<result column="collection_id" property="collectionId" />
|
|
|
|
|
<result column="system_scale" property="systemScale" />
|
|
|
|
|
<result column="single_overall" property="singleOverall" />
|
|
|
|
|
<result column="switch_category" property="switchCategory" />
|
|
|
|
|
<result column="create_date" property="createDate" />
|
|
|
|
|
<result column="update_date" property="updateDate" />
|
|
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
|
|
<insert id="insertDesign" parameterType="com.ai.da.mapper.primary.entity.Design" useGeneratedKeys="true" keyProperty="id" keyColumn="id">
|
|
|
|
|
insert into t_design
|
|
|
|
|
(account_id,collection_id,system_scale,single_overall,switch_category,create_date)
|
|
|
|
|
values(
|
|
|
|
|
#{accountId},
|
|
|
|
|
#{collectionId},
|
|
|
|
|
#{systemScale},
|
|
|
|
|
#{singleOverall},
|
|
|
|
|
#{switchCategory},
|
|
|
|
|
#{createDate});
|
|
|
|
|
</insert>
|
|
|
|
|
|
|
|
|
|
</mapper>
|