|
|
|
@ -16,10 +16,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<result property="updateBy" column="update_by" />
|
|
|
|
|
<result property="updateTime" column="update_time" />
|
|
|
|
|
<result property="auditDate" column="audit_date" />
|
|
|
|
|
<result property="erpModifyDate" column="erp_modify_date" />
|
|
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
|
|
<sql id="selectMesBaseSupplierInfoVo">
|
|
|
|
|
select supplier_id, supplier_code, supplier_name, erp_id, supplier_status, remark, create_by, create_time, update_by, update_time, audit_date from mes_base_supplier_info
|
|
|
|
|
select supplier_id, supplier_code, supplier_name, erp_id, supplier_status, remark, create_by, create_time, update_by, update_time, audit_date,erp_modify_date from mes_base_supplier_info
|
|
|
|
|
</sql>
|
|
|
|
|
|
|
|
|
|
<select id="selectMesBaseSupplierInfoList" parameterType="MesBaseSupplierInfo" resultMap="MesBaseSupplierInfoResult">
|
|
|
|
@ -51,6 +52,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<if test="updateBy != null">update_by,</if>
|
|
|
|
|
<if test="updateTime != null">update_time,</if>
|
|
|
|
|
<if test="auditDate != null">audit_date,</if>
|
|
|
|
|
<if test="erpModifyDate != null">erp_modify_date,</if>
|
|
|
|
|
</trim>
|
|
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
|
<if test="supplierCode != null">#{supplierCode},</if>
|
|
|
|
@ -63,6 +65,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<if test="updateBy != null">#{updateBy},</if>
|
|
|
|
|
<if test="updateTime != null">#{updateTime},</if>
|
|
|
|
|
<if test="auditDate != null">#{auditDate},</if>
|
|
|
|
|
<if test="erpModifyDate != null">#{erpModifyDate},</if>
|
|
|
|
|
</trim>
|
|
|
|
|
</insert>
|
|
|
|
|
|
|
|
|
@ -79,6 +82,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<if test="updateBy != null">update_by = #{updateBy},</if>
|
|
|
|
|
<if test="updateTime != null">update_time = #{updateTime},</if>
|
|
|
|
|
<if test="auditDate != null">audit_date = #{auditDate},</if>
|
|
|
|
|
<if test="erpModifyDate != null">erp_modify_date = #{erpModifyDate},</if>
|
|
|
|
|
</trim>
|
|
|
|
|
where supplier_id = #{supplierId}
|
|
|
|
|
</update>
|
|
|
|
@ -93,4 +97,24 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
#{supplierId}
|
|
|
|
|
</foreach>
|
|
|
|
|
</delete>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<select id="selectMaxErpModifyDate" resultType="String">
|
|
|
|
|
SELECT max(erp_modify_date) FROM mes_base_supplier_info order by erp_id
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<select id="selectMesBaseSupplierInfoByErpId" parameterType="Long"
|
|
|
|
|
resultMap="MesBaseSupplierInfoResult">
|
|
|
|
|
select supplier_id from mes_base_supplier_info where erp_id = #{erpId} limit 1
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<insert id="batchMesBaseSupplierInfo">
|
|
|
|
|
INSERT INTO mes_base_supplier_info (supplier_code, supplier_name, erp_id, supplier_status, remark, create_by, create_time, update_by, update_time, audit_date, erp_modify_date) VALUES
|
|
|
|
|
<foreach item="item" index="index" collection="list" separator=",">
|
|
|
|
|
(#{item.supplierCode}, #{item.supplierName},#{item.erpId}, #{item.supplierStatus}, #{item.remark}, #{item.createBy}, #{item.createTime}, #{item.updateBy}, #{item.updateTime}, #{item.auditDate}, #{item.erpModifyDate})
|
|
|
|
|
</foreach>
|
|
|
|
|
</insert>
|
|
|
|
|
|
|
|
|
|
</mapper>
|
|
|
|
|