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
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.bailuntec.mapper.DcConfigForecastSalesMapper">
<resultMap id="BaseResultMap" type="com.bailuntec.domain.entity.DcConfigForecastSales">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
<id column="id" jdbcType="INTEGER" property="id" />
<result column="sales" jdbcType="DECIMAL" property="sales" />
<result column="start_date" jdbcType="TIMESTAMP" property="startDate" />
<result column="end_date" jdbcType="TIMESTAMP" property="endDate" />
<result column="create_user" jdbcType="VARCHAR" property="createUser" />
<result column="bailun_sku" jdbcType="VARCHAR" property="bailunSku" />
<result column="warehouse_code" jdbcType="VARCHAR" property="warehouseCode" />
<result column="warehouse_name" jdbcType="VARCHAR" property="warehouseName" />
</resultMap>
<sql id="Example_Where_Clause">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
<where>
<foreach collection="oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
id, sales, start_date, end_date, create_user, bailun_sku, warehouse_code, warehouse_name
</sql>
<select id="selectByExample" parameterType="com.bailuntec.domain.example.DcConfigForecastSalesExample" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from dc_config_forecast_sales
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
<if test="rows != null">
<if test="offset != null">
limit ${offset}, ${rows}
</if>
<if test="offset == null">
limit ${rows}
</if>
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
select
<include refid="Base_Column_List" />
from dc_config_forecast_sales
where id = #{id,jdbcType=INTEGER}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
delete from dc_config_forecast_sales
where id = #{id,jdbcType=INTEGER}
</delete>
<delete id="deleteByExample" parameterType="com.bailuntec.domain.example.DcConfigForecastSalesExample">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
delete from dc_config_forecast_sales
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.bailuntec.domain.entity.DcConfigForecastSales">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
insert into dc_config_forecast_sales (id, sales, start_date,
end_date, create_user, bailun_sku,
warehouse_code, warehouse_name)
values (#{id,jdbcType=INTEGER}, #{sales,jdbcType=DECIMAL}, #{startDate,jdbcType=TIMESTAMP},
#{endDate,jdbcType=TIMESTAMP}, #{createUser,jdbcType=VARCHAR}, #{bailunSku,jdbcType=VARCHAR},
#{warehouseCode,jdbcType=VARCHAR}, #{warehouseName,jdbcType=VARCHAR})
</insert>
<insert id="insertSelective" parameterType="com.bailuntec.domain.entity.DcConfigForecastSales">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
insert into dc_config_forecast_sales
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="sales != null">
sales,
</if>
<if test="startDate != null">
start_date,
</if>
<if test="endDate != null">
end_date,
</if>
<if test="createUser != null">
create_user,
</if>
<if test="bailunSku != null">
bailun_sku,
</if>
<if test="warehouseCode != null">
warehouse_code,
</if>
<if test="warehouseName != null">
warehouse_name,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=INTEGER},
</if>
<if test="sales != null">
#{sales,jdbcType=DECIMAL},
</if>
<if test="startDate != null">
#{startDate,jdbcType=TIMESTAMP},
</if>
<if test="endDate != null">
#{endDate,jdbcType=TIMESTAMP},
</if>
<if test="createUser != null">
#{createUser,jdbcType=VARCHAR},
</if>
<if test="bailunSku != null">
#{bailunSku,jdbcType=VARCHAR},
</if>
<if test="warehouseCode != null">
#{warehouseCode,jdbcType=VARCHAR},
</if>
<if test="warehouseName != null">
#{warehouseName,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.bailuntec.domain.example.DcConfigForecastSalesExample" resultType="java.lang.Long">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
select count(*) from dc_config_forecast_sales
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
update dc_config_forecast_sales
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=INTEGER},
</if>
<if test="record.sales != null">
sales = #{record.sales,jdbcType=DECIMAL},
</if>
<if test="record.startDate != null">
start_date = #{record.startDate,jdbcType=TIMESTAMP},
</if>
<if test="record.endDate != null">
end_date = #{record.endDate,jdbcType=TIMESTAMP},
</if>
<if test="record.createUser != null">
create_user = #{record.createUser,jdbcType=VARCHAR},
</if>
<if test="record.bailunSku != null">
bailun_sku = #{record.bailunSku,jdbcType=VARCHAR},
</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>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
update dc_config_forecast_sales
set id = #{record.id,jdbcType=INTEGER},
sales = #{record.sales,jdbcType=DECIMAL},
start_date = #{record.startDate,jdbcType=TIMESTAMP},
end_date = #{record.endDate,jdbcType=TIMESTAMP},
create_user = #{record.createUser,jdbcType=VARCHAR},
bailun_sku = #{record.bailunSku,jdbcType=VARCHAR},
warehouse_code = #{record.warehouseCode,jdbcType=VARCHAR},
warehouse_name = #{record.warehouseName,jdbcType=VARCHAR}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.bailuntec.domain.entity.DcConfigForecastSales">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
update dc_config_forecast_sales
<set>
<if test="sales != null">
sales = #{sales,jdbcType=DECIMAL},
</if>
<if test="startDate != null">
start_date = #{startDate,jdbcType=TIMESTAMP},
</if>
<if test="endDate != null">
end_date = #{endDate,jdbcType=TIMESTAMP},
</if>
<if test="createUser != null">
create_user = #{createUser,jdbcType=VARCHAR},
</if>
<if test="bailunSku != null">
bailun_sku = #{bailunSku,jdbcType=VARCHAR},
</if>
<if test="warehouseCode != null">
warehouse_code = #{warehouseCode,jdbcType=VARCHAR},
</if>
<if test="warehouseName != null">
warehouse_name = #{warehouseName,jdbcType=VARCHAR},
</if>
</set>
where id = #{id,jdbcType=INTEGER}
</update>
<update id="updateByPrimaryKey" parameterType="com.bailuntec.domain.entity.DcConfigForecastSales">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
update dc_config_forecast_sales
set sales = #{sales,jdbcType=DECIMAL},
start_date = #{startDate,jdbcType=TIMESTAMP},
end_date = #{endDate,jdbcType=TIMESTAMP},
create_user = #{createUser,jdbcType=VARCHAR},
bailun_sku = #{bailunSku,jdbcType=VARCHAR},
warehouse_code = #{warehouseCode,jdbcType=VARCHAR},
warehouse_name = #{warehouseName,jdbcType=VARCHAR}
where id = #{id,jdbcType=INTEGER}
</update>
<insert id="upsertSelective" parameterType="com.bailuntec.domain.entity.DcConfigForecastSales">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
@project https://github.com/itfsw/mybatis-generator-plugin
-->
insert into dc_config_forecast_sales
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="sales != null">
sales,
</if>
<if test="startDate != null">
start_date,
</if>
<if test="endDate != null">
end_date,
</if>
<if test="createUser != null">
create_user,
</if>
<if test="bailunSku != null">
bailun_sku,
</if>
<if test="warehouseCode != null">
warehouse_code,
</if>
<if test="warehouseName != null">
warehouse_name,
</if>
</trim>
values
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=INTEGER},
</if>
<if test="sales != null">
#{sales,jdbcType=DECIMAL},
</if>
<if test="startDate != null">
#{startDate,jdbcType=TIMESTAMP},
</if>
<if test="endDate != null">
#{endDate,jdbcType=TIMESTAMP},
</if>
<if test="createUser != null">
#{createUser,jdbcType=VARCHAR},
</if>
<if test="bailunSku != null">
#{bailunSku,jdbcType=VARCHAR},
</if>
<if test="warehouseCode != null">
#{warehouseCode,jdbcType=VARCHAR},
</if>
<if test="warehouseName != null">
#{warehouseName,jdbcType=VARCHAR},
</if>
</trim>
on duplicate key update
<trim suffixOverrides=",">
<if test="id != null">
id = #{id,jdbcType=INTEGER},
</if>
<if test="sales != null">
sales = #{sales,jdbcType=DECIMAL},
</if>
<if test="startDate != null">
start_date = #{startDate,jdbcType=TIMESTAMP},
</if>
<if test="endDate != null">
end_date = #{endDate,jdbcType=TIMESTAMP},
</if>
<if test="createUser != null">
create_user = #{createUser,jdbcType=VARCHAR},
</if>
<if test="bailunSku != null">
bailun_sku = #{bailunSku,jdbcType=VARCHAR},
</if>
<if test="warehouseCode != null">
warehouse_code = #{warehouseCode,jdbcType=VARCHAR},
</if>
<if test="warehouseName != null">
warehouse_name = #{warehouseName,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<insert id="upsert" parameterType="com.bailuntec.domain.entity.DcConfigForecastSales">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
@project https://github.com/itfsw/mybatis-generator-plugin
-->
insert into dc_config_forecast_sales
(id, sales, start_date, end_date, create_user, bailun_sku, warehouse_code, warehouse_name
)
values
(#{id,jdbcType=INTEGER}, #{sales,jdbcType=DECIMAL}, #{startDate,jdbcType=TIMESTAMP},
#{endDate,jdbcType=TIMESTAMP}, #{createUser,jdbcType=VARCHAR}, #{bailunSku,jdbcType=VARCHAR},
#{warehouseCode,jdbcType=VARCHAR}, #{warehouseName,jdbcType=VARCHAR})
on duplicate key update
id = #{id,jdbcType=INTEGER},
sales = #{sales,jdbcType=DECIMAL},
start_date = #{startDate,jdbcType=TIMESTAMP},
end_date = #{endDate,jdbcType=TIMESTAMP},
create_user = #{createUser,jdbcType=VARCHAR},
bailun_sku = #{bailunSku,jdbcType=VARCHAR},
warehouse_code = #{warehouseCode,jdbcType=VARCHAR},
warehouse_name = #{warehouseName,jdbcType=VARCHAR}
</insert>
<select id="selectOneByExample" parameterType="com.bailuntec.domain.example.DcConfigForecastSalesExample" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
@project https://github.com/itfsw/mybatis-generator-plugin
-->
select
<include refid="Base_Column_List" />
from dc_config_forecast_sales
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
limit 1
</select>
</mapper>
\ 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