BUS_EIGHTWORK_TASK的mapper创建

pull/4/head
chenxinying 2024-01-17 14:19:50 +08:00
parent da1dfc7f22
commit ebf1d6d6a0
2 changed files with 59 additions and 0 deletions

View File

@ -0,0 +1,15 @@
package com.zcloud.mapper.datasource.eightwork;
import com.zcloud.entity.PageData;
/**
* @author fangjiakai
* @date 2024/01/17 11:31
*/
public interface EightWorkTaskMapper {
/**
* @param pd
* @throws Exception
*/
void save(PageData pd);
}

View File

@ -0,0 +1,44 @@
<?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.zcloud.mapper.datasource.eightwork.EightWorkTaskMapper">
<!--表名 -->
<sql id="tableName">
BUS_EIGHTWORK_TASK
</sql>
<!--数据字典表名 -->
<sql id="dicTableName">
SYS_DICTIONARIES
</sql>
<!-- 字段 -->
<sql id="Field">
f.TASK_ID,
f.TASK_NAME
</sql>
<!-- 字段用于新增 -->
<sql id="Field2">
TASK_ID,
TASK_NAME
</sql>
<!-- 字段值 -->
<sql id="FieldValue">
#{TASK_ID},
#{TASK_NAME}
</sql>
<!-- 新增-->
<insert id="save" parameterType="pd">
insert into
<include refid="tableName"></include>
(
<include refid="Field2"></include>
) values (
<include refid="FieldValue"></include>
)
</insert>
</mapper>