|
|
@ -77,8 +77,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
<select id="getParentId" resultType="java.lang.String">
|
|
|
|
<select id="getParentId" resultType="java.lang.String">
|
|
|
|
select factory_id from sys_factory where factory_code = #{factoryCode}
|
|
|
|
select factory_id from sys_factory where factory_code = #{factoryCode}
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
|
|
|
|
<select id="getProductMaxTime" resultType="java.util.Date">
|
|
|
|
|
|
|
|
select max(create_time) from sys_factory where create_by = 'job'
|
|
|
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
<insert id="insertBaseBom" parameterType="com.op.system.api.domain.sap.SapBom">
|
|
|
|
<insert id="insertBaseBom" parameterType="com.op.system.api.domain.sap.SapBom">
|
|
|
|
insert into base_bom
|
|
|
|
insert into base_bom
|
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
|
<if test="bomBo != null">bom_bo,</if>
|
|
|
|
<if test="bomBo != null">bom_bo,</if>
|
|
|
@ -284,7 +287,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
set
|
|
|
|
set
|
|
|
|
zh_desc = #{item.name1},
|
|
|
|
zh_desc = #{item.name1},
|
|
|
|
contact_phone = #{item.telf1},
|
|
|
|
contact_phone = #{item.telf1},
|
|
|
|
address = #{item.stars},
|
|
|
|
address = #{item.stras},
|
|
|
|
factory_code = #{item.bukrs}
|
|
|
|
factory_code = #{item.bukrs}
|
|
|
|
where
|
|
|
|
where
|
|
|
|
supplier_code = #{item.lifnr}
|
|
|
|
supplier_code = #{item.lifnr}
|
|
|
@ -299,7 +302,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
update_time)
|
|
|
|
update_time)
|
|
|
|
VALUES
|
|
|
|
VALUES
|
|
|
|
<foreach collection="list" index="index" item="item" separator=",">
|
|
|
|
<foreach collection="list" index="index" item="item" separator=",">
|
|
|
|
(#{item.lifnr},#{item.name1},#{item.telf1},#{item.stars},#{item.bukrs}
|
|
|
|
(#{item.lifnr},#{item.name1},#{item.telf1},#{item.stras},#{item.bukrs},
|
|
|
|
'job',
|
|
|
|
'job',
|
|
|
|
#{item.erdat},
|
|
|
|
#{item.erdat},
|
|
|
|
#{item.erdat})
|
|
|
|
#{item.erdat})
|
|
|
@ -312,7 +315,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
set
|
|
|
|
set
|
|
|
|
client_name = #{item.name1},
|
|
|
|
client_name = #{item.name1},
|
|
|
|
contact1_tel = #{item.telf1},
|
|
|
|
contact1_tel = #{item.telf1},
|
|
|
|
address = #{item.stars},
|
|
|
|
address = #{item.stras},
|
|
|
|
factory_code = #{item.bukrs}
|
|
|
|
factory_code = #{item.bukrs}
|
|
|
|
where
|
|
|
|
where
|
|
|
|
client_code = #{item.kunnr}
|
|
|
|
client_code = #{item.kunnr}
|
|
|
@ -321,13 +324,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
<!--批量添加客户建模表-->
|
|
|
|
<!--批量添加客户建模表-->
|
|
|
|
<insert id="addCustomBatchs">
|
|
|
|
<insert id="addCustomBatchs">
|
|
|
|
insert into sys_customer
|
|
|
|
insert into sys_customer
|
|
|
|
(client_code,client_name,contact1_tel,address,factory_code,
|
|
|
|
(client_id,client_code,client_name,contact1_tel,address,factory_code,
|
|
|
|
create_by,
|
|
|
|
create_by,
|
|
|
|
create_time,
|
|
|
|
create_time,
|
|
|
|
update_time)
|
|
|
|
update_time)
|
|
|
|
VALUES
|
|
|
|
VALUES
|
|
|
|
<foreach collection="list" index="index" item="item" separator=",">
|
|
|
|
<foreach collection="list" index="index" item="item" separator=",">
|
|
|
|
(#{item.kunnr},#{item.name1},#{item.telf1},#{item.stars},#{item.bukrs},
|
|
|
|
(#{item.kunnr},#{item.kunnr},#{item.name1},#{item.telf1},#{item.stras},#{item.bukrs},
|
|
|
|
'job',
|
|
|
|
'job',
|
|
|
|
#{item.erdat},
|
|
|
|
#{item.erdat},
|
|
|
|
#{item.erdat})
|
|
|
|
#{item.erdat})
|
|
|
|