forked from integrated_whb/integrated_whb
				
			BUS_EIGHTWORK_TASK_FLOW的mapper创建
							parent
							
								
									2d56101774
								
							
						
					
					
						commit
						da1dfc7f22
					
				|  | @ -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 EightWorkTaskFlowMapper { | ||||||
|  |     /**新增 | ||||||
|  |      * @param pd | ||||||
|  |      * @throws Exception | ||||||
|  |      */ | ||||||
|  |     void save(PageData pd); | ||||||
|  | } | ||||||
|  | @ -0,0 +1,56 @@ | ||||||
|  | <?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.EightWorkTaskFlowMapper"> | ||||||
|  | 
 | ||||||
|  | 	<!--表名 --> | ||||||
|  | 	<sql id="tableName"> | ||||||
|  | 		BUS_EIGHTWORK_TASK_FLOW | ||||||
|  | 	</sql> | ||||||
|  | 
 | ||||||
|  | 	<!--数据字典表名 --> | ||||||
|  | 	<sql id="dicTableName"> | ||||||
|  | 		SYS_DICTIONARIES | ||||||
|  | 	</sql> | ||||||
|  | 
 | ||||||
|  | 	<!-- 字段 --> | ||||||
|  | 	<sql id="Field"> | ||||||
|  | 		f.FLOW_ID, | ||||||
|  | 		f.TASK_ID, | ||||||
|  | 		f.STEP_ID, | ||||||
|  | 		f.NEXT_STEP_ID, | ||||||
|  | 		f.ACTOR_FIELD, | ||||||
|  | 		f.ORDER_BY | ||||||
|  | 	</sql> | ||||||
|  | 
 | ||||||
|  | 	<!-- 字段用于新增 --> | ||||||
|  | 	<sql id="Field2"> | ||||||
|  | 		FLOW_ID, | ||||||
|  | 		TASK_ID, | ||||||
|  | 		STEP_ID, | ||||||
|  | 		NEXT_STEP_ID, | ||||||
|  | 		ACTOR_FIELD, | ||||||
|  | 		ORDER_BY | ||||||
|  | 	</sql> | ||||||
|  | 
 | ||||||
|  | 	<!-- 字段值 --> | ||||||
|  | 	<sql id="FieldValue"> | ||||||
|  | 		#{FLOW_ID}, | ||||||
|  | 		#{TASK_ID}, | ||||||
|  | 		#{STEP_ID}, | ||||||
|  | 		#{NEXT_STEP_ID}, | ||||||
|  | 		#{ACTOR_FIELD}, | ||||||
|  | 		#{ORDER_BY} | ||||||
|  | 	</sql> | ||||||
|  | 
 | ||||||
|  | 	<!-- 新增--> | ||||||
|  | 	<insert id="save" parameterType="pd"> | ||||||
|  | 		insert into | ||||||
|  | 	<include refid="tableName"></include> | ||||||
|  | 		( | ||||||
|  | 	<include refid="Field2"></include> | ||||||
|  | 		) values ( | ||||||
|  | 	<include refid="FieldValue"></include> | ||||||
|  | 		) | ||||||
|  | 	</insert> | ||||||
|  | 
 | ||||||
|  | </mapper> | ||||||
		Loading…
	
		Reference in New Issue