|
@@ -2,6 +2,7 @@
|
|
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
<mapper namespace="com.management.platform.mapper.ErpOrderInfoMapper">
|
|
|
|
|
|
+ <!-- 通用查询映射结果 -->
|
|
|
<resultMap id="BaseResultMap" type="com.management.platform.entity.ErpOrderInfo">
|
|
|
<id column="id" property="id" />
|
|
|
<result column="order_id" property="orderId" />
|
|
@@ -14,16 +15,17 @@
|
|
|
<result column="dept_id" property="deptId" />
|
|
|
</resultMap>
|
|
|
|
|
|
+ <!-- 通用查询结果列 -->
|
|
|
<sql id="Base_Column_List">
|
|
|
id, order_id, project_id, project_name, line, status, moDId, rels_date, dept_id
|
|
|
</sql>
|
|
|
<insert id="batchInsert">
|
|
|
insert into erp_order_info(order_id, project_id, project_name, line, status,rels_date,moDId,dept_id)
|
|
|
VALUES
|
|
|
-
|
|
|
- <foreach collection="resList" separator="," item="res">
|
|
|
- (#{res.orderId},#{res.projectId},#{res.projectName},#{res.line},#{res.status},#{res.relsDate},#{res.moDId},#{res.deptId})
|
|
|
- </foreach>
|
|
|
+
|
|
|
+ <foreach collection="resList" separator="," item="res">
|
|
|
+ (#{res.orderId},#{res.projectId},#{res.projectName},#{res.line},#{res.status},#{res.relsDate},#{res.moDId},#{res.deptId})
|
|
|
+ </foreach>
|
|
|
</insert>
|
|
|
<select id="getExistIds" resultType="java.lang.String">
|
|
|
select moDId
|