|
|
|
@ -77,6 +77,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<select id="getParentId" resultType="java.lang.String">
|
|
|
|
|
select factory_id from sys_factory where factory_code = #{factoryCode}
|
|
|
|
|
</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 into base_bom
|
|
|
|
@ -284,7 +287,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
set
|
|
|
|
|
zh_desc = #{item.name1},
|
|
|
|
|
contact_phone = #{item.telf1},
|
|
|
|
|
address = #{item.stars},
|
|
|
|
|
address = #{item.stras},
|
|
|
|
|
factory_code = #{item.bukrs}
|
|
|
|
|
where
|
|
|
|
|
supplier_code = #{item.lifnr}
|
|
|
|
@ -299,7 +302,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
update_time)
|
|
|
|
|
VALUES
|
|
|
|
|
<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',
|
|
|
|
|
#{item.erdat},
|
|
|
|
|
#{item.erdat})
|
|
|
|
@ -312,7 +315,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
set
|
|
|
|
|
client_name = #{item.name1},
|
|
|
|
|
contact1_tel = #{item.telf1},
|
|
|
|
|
address = #{item.stars},
|
|
|
|
|
address = #{item.stras},
|
|
|
|
|
factory_code = #{item.bukrs}
|
|
|
|
|
where
|
|
|
|
|
client_code = #{item.kunnr}
|
|
|
|
@ -321,13 +324,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<!--批量添加客户建模表-->
|
|
|
|
|
<insert id="addCustomBatchs">
|
|
|
|
|
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_time,
|
|
|
|
|
update_time)
|
|
|
|
|
VALUES
|
|
|
|
|
<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',
|
|
|
|
|
#{item.erdat},
|
|
|
|
|
#{item.erdat})
|
|
|
|
|