Commit 62873ac2 by yinyong

回滚提交

parent 9e7db8ab
......@@ -10,8 +10,6 @@
<result column="bailun_sku" jdbcType="VARCHAR" property="bailunSku" />
<result column="bailun_sku_title" jdbcType="VARCHAR" property="bailunSkuTitle" />
<result column="safe_stock" jdbcType="INTEGER" property="safeStock" />
<result column="warehouse_code" jdbcType="VARCHAR" property="warehouseCode" />
<result column="warehouse_name" jdbcType="VARCHAR" property="warehouseName" />
<result column="status" jdbcType="TINYINT" property="status" />
</resultMap>
<sql id="Example_Where_Clause">
......@@ -85,7 +83,7 @@
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
id, bailun_sku, bailun_sku_title, safe_stock, warehouse_code, warehouse_name, status
id, bailun_sku, bailun_sku_title, safe_stock, status
</sql>
<select id="selectByExample" parameterType="com.bailuntec.domain.example.DcAutoJitInventoryExample" resultMap="BaseResultMap">
<!--
......@@ -147,11 +145,9 @@
This element is automatically generated by MyBatis Generator, do not modify.
-->
insert into dc_auto_jit_inventory (id, bailun_sku, bailun_sku_title,
safe_stock, warehouse_code, warehouse_name,
status)
safe_stock, status)
values (#{id,jdbcType=INTEGER}, #{bailunSku,jdbcType=VARCHAR}, #{bailunSkuTitle,jdbcType=VARCHAR},
#{safeStock,jdbcType=INTEGER}, #{warehouseCode,jdbcType=VARCHAR}, #{warehouseName,jdbcType=VARCHAR},
#{status,jdbcType=TINYINT})
#{safeStock,jdbcType=INTEGER}, #{status,jdbcType=TINYINT})
</insert>
<insert id="insertSelective" parameterType="com.bailuntec.domain.entity.DcAutoJitInventory">
<!--
......@@ -172,12 +168,6 @@
<if test="safeStock != null">
safe_stock,
</if>
<if test="warehouseCode != null">
warehouse_code,
</if>
<if test="warehouseName != null">
warehouse_name,
</if>
<if test="status != null">
status,
</if>
......@@ -195,12 +185,6 @@
<if test="safeStock != null">
#{safeStock,jdbcType=INTEGER},
</if>
<if test="warehouseCode != null">
#{warehouseCode,jdbcType=VARCHAR},
</if>
<if test="warehouseName != null">
#{warehouseName,jdbcType=VARCHAR},
</if>
<if test="status != null">
#{status,jdbcType=TINYINT},
</if>
......@@ -235,12 +219,6 @@
<if test="record.safeStock != null">
safe_stock = #{record.safeStock,jdbcType=INTEGER},
</if>
<if test="record.warehouseCode != null">
warehouse_code = #{record.warehouseCode,jdbcType=VARCHAR},
</if>
<if test="record.warehouseName != null">
warehouse_name = #{record.warehouseName,jdbcType=VARCHAR},
</if>
<if test="record.status != null">
status = #{record.status,jdbcType=TINYINT},
</if>
......@@ -259,8 +237,6 @@
bailun_sku = #{record.bailunSku,jdbcType=VARCHAR},
bailun_sku_title = #{record.bailunSkuTitle,jdbcType=VARCHAR},
safe_stock = #{record.safeStock,jdbcType=INTEGER},
warehouse_code = #{record.warehouseCode,jdbcType=VARCHAR},
warehouse_name = #{record.warehouseName,jdbcType=VARCHAR},
status = #{record.status,jdbcType=TINYINT}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
......@@ -282,12 +258,6 @@
<if test="safeStock != null">
safe_stock = #{safeStock,jdbcType=INTEGER},
</if>
<if test="warehouseCode != null">
warehouse_code = #{warehouseCode,jdbcType=VARCHAR},
</if>
<if test="warehouseName != null">
warehouse_name = #{warehouseName,jdbcType=VARCHAR},
</if>
<if test="status != null">
status = #{status,jdbcType=TINYINT},
</if>
......@@ -303,8 +273,6 @@
set bailun_sku = #{bailunSku,jdbcType=VARCHAR},
bailun_sku_title = #{bailunSkuTitle,jdbcType=VARCHAR},
safe_stock = #{safeStock,jdbcType=INTEGER},
warehouse_code = #{warehouseCode,jdbcType=VARCHAR},
warehouse_name = #{warehouseName,jdbcType=VARCHAR},
status = #{status,jdbcType=TINYINT}
where id = #{id,jdbcType=INTEGER}
</update>
......@@ -328,12 +296,6 @@
<if test="safeStock != null">
safe_stock,
</if>
<if test="warehouseCode != null">
warehouse_code,
</if>
<if test="warehouseName != null">
warehouse_name,
</if>
<if test="status != null">
status,
</if>
......@@ -352,12 +314,6 @@
<if test="safeStock != null">
#{safeStock,jdbcType=INTEGER},
</if>
<if test="warehouseCode != null">
#{warehouseCode,jdbcType=VARCHAR},
</if>
<if test="warehouseName != null">
#{warehouseName,jdbcType=VARCHAR},
</if>
<if test="status != null">
#{status,jdbcType=TINYINT},
</if>
......@@ -376,12 +332,6 @@
<if test="safeStock != null">
safe_stock = #{safeStock,jdbcType=INTEGER},
</if>
<if test="warehouseCode != null">
warehouse_code = #{warehouseCode,jdbcType=VARCHAR},
</if>
<if test="warehouseName != null">
warehouse_name = #{warehouseName,jdbcType=VARCHAR},
</if>
<if test="status != null">
status = #{status,jdbcType=TINYINT},
</if>
......@@ -394,19 +344,15 @@
@project https://github.com/itfsw/mybatis-generator-plugin
-->
insert into dc_auto_jit_inventory
(id, bailun_sku, bailun_sku_title, safe_stock, warehouse_code, warehouse_name, status
)
(id, bailun_sku, bailun_sku_title, safe_stock, status)
values
(#{id,jdbcType=INTEGER}, #{bailunSku,jdbcType=VARCHAR}, #{bailunSkuTitle,jdbcType=VARCHAR},
#{safeStock,jdbcType=INTEGER}, #{warehouseCode,jdbcType=VARCHAR}, #{warehouseName,jdbcType=VARCHAR},
#{status,jdbcType=TINYINT})
#{safeStock,jdbcType=INTEGER}, #{status,jdbcType=TINYINT})
on duplicate key update
id = #{id,jdbcType=INTEGER},
bailun_sku = #{bailunSku,jdbcType=VARCHAR},
bailun_sku_title = #{bailunSkuTitle,jdbcType=VARCHAR},
safe_stock = #{safeStock,jdbcType=INTEGER},
warehouse_code = #{warehouseCode,jdbcType=VARCHAR},
warehouse_name = #{warehouseName,jdbcType=VARCHAR},
status = #{status,jdbcType=TINYINT}
</insert>
<select id="selectOneByExample" parameterType="com.bailuntec.domain.example.DcAutoJitInventoryExample" resultMap="BaseResultMap">
......
......@@ -187,7 +187,7 @@
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
insert into dc_base_finance_ebay3_copy
insert into dc_base_finance_ebay
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
......
package com.bailuntec.mapper;
import com.bailuntec.domain.entity.DcConfigForecastSales;
import com.bailuntec.domain.example.DcConfigForecastSalesExample;
import org.apache.ibatis.annotations.Param;
import java.util.List;
public interface DcConfigForecastSalesMapper {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_config_forecast_sales
*
* @mbg.generated
*/
long countByExample(DcConfigForecastSalesExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_config_forecast_sales
*
* @mbg.generated
*/
int deleteByExample(DcConfigForecastSalesExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_config_forecast_sales
*
* @mbg.generated
*/
int deleteByPrimaryKey(Integer id);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_config_forecast_sales
*
* @mbg.generated
*/
int insert(DcConfigForecastSales record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_config_forecast_sales
*
* @mbg.generated
*/
int insertSelective(DcConfigForecastSales record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_config_forecast_sales
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
DcConfigForecastSales selectOneByExample(DcConfigForecastSalesExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_config_forecast_sales
*
* @mbg.generated
*/
List<DcConfigForecastSales> selectByExample(DcConfigForecastSalesExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_config_forecast_sales
*
* @mbg.generated
*/
DcConfigForecastSales selectByPrimaryKey(Integer id);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_config_forecast_sales
*
* @mbg.generated
*/
int updateByExampleSelective(@Param("record") DcConfigForecastSales record, @Param("example") DcConfigForecastSalesExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_config_forecast_sales
*
* @mbg.generated
*/
int updateByExample(@Param("record") DcConfigForecastSales record, @Param("example") DcConfigForecastSalesExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_config_forecast_sales
*
* @mbg.generated
*/
int updateByPrimaryKeySelective(DcConfigForecastSales record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_config_forecast_sales
*
* @mbg.generated
*/
int updateByPrimaryKey(DcConfigForecastSales record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_config_forecast_sales
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
int upsert(DcConfigForecastSales record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_config_forecast_sales
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
int upsertSelective(DcConfigForecastSales record);
}
\ No newline at end of file
......@@ -616,7 +616,7 @@
<select id="getListByPageEbay" resultType="com.bailuntec.domain.entity.JobAccountLog">
SELECT t2.id,t1.company_id, t1.account_id, t2.job_name,t2.page_index,t2.page_size,t2.type,t2.interval_time,t2.start_time,t2.end_time, t2.task_ids FROM
(SELECT * FROM dc_base_company_account WHERE company_id = 1 and account_name not like '%test%' <if test="platformId != null">and platform_id=#{platformId} </if> order by id) t1 LEFT JOIN job_account_log t2 on t1.account_id = t2.account_id where t1.id &gt;= 423 order by t1.id limit #{pageIndex},#{pageSize}
(SELECT * FROM dc_base_company_account WHERE company_id = 1 and account_name not like '%test%' <if test="platformId != null">and platform_id=#{platformId} </if> order by id) t1 LEFT JOIN job_account_log t2 on t1.account_id = t2.account_id order by t1.id limit #{pageIndex},#{pageSize}
</select>
<select id="getListByPageAmazon" resultType="com.bailuntec.domain.entity.JobAccountLog">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment