Commit a13f26c6 by wutong

解决FBA共享库存的问题, 在解析订单的时候判断销量指向的仓库

parent be2632fd
package com.bailuntec.mapper;
import com.bailuntec.domain.entity.DcBaseStockConfigFba;
import com.bailuntec.domain.example.DcBaseStockConfigFbaExample;
import org.apache.ibatis.annotations.Param;
import java.util.List;
public interface DcBaseStockConfigFbaMapper {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_base_stock_config_fba
*
* @mbg.generated
*/
long countByExample(DcBaseStockConfigFbaExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_base_stock_config_fba
*
* @mbg.generated
*/
int deleteByExample(DcBaseStockConfigFbaExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_base_stock_config_fba
*
* @mbg.generated
*/
int deleteByPrimaryKey(Integer id);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_base_stock_config_fba
*
* @mbg.generated
*/
int insert(DcBaseStockConfigFba record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_base_stock_config_fba
*
* @mbg.generated
*/
int insertSelective(DcBaseStockConfigFba record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_base_stock_config_fba
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
DcBaseStockConfigFba selectOneByExample(DcBaseStockConfigFbaExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_base_stock_config_fba
*
* @mbg.generated
*/
List<DcBaseStockConfigFba> selectByExample(DcBaseStockConfigFbaExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_base_stock_config_fba
*
* @mbg.generated
*/
DcBaseStockConfigFba selectByPrimaryKey(Integer id);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_base_stock_config_fba
*
* @mbg.generated
*/
int updateByExampleSelective(@Param("record") DcBaseStockConfigFba record, @Param("example") DcBaseStockConfigFbaExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_base_stock_config_fba
*
* @mbg.generated
*/
int updateByExample(@Param("record") DcBaseStockConfigFba record, @Param("example") DcBaseStockConfigFbaExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_base_stock_config_fba
*
* @mbg.generated
*/
int updateByPrimaryKeySelective(DcBaseStockConfigFba record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_base_stock_config_fba
*
* @mbg.generated
*/
int updateByPrimaryKey(DcBaseStockConfigFba record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_base_stock_config_fba
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
int upsert(DcBaseStockConfigFba record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_base_stock_config_fba
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
int upsertSelective(DcBaseStockConfigFba record);
}
\ No newline at end of file
package com.bailuntec.mapper;
import com.bailuntec.domain.entity.DcBaseStockFbaShare;
import com.bailuntec.domain.example.DcBaseStockFbaShareExample;
import org.apache.ibatis.annotations.Param;
import java.util.List;
public interface DcBaseStockFbaShareMapper {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_base_stock_fba_share
*
* @mbg.generated
*/
long countByExample(DcBaseStockFbaShareExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_base_stock_fba_share
*
* @mbg.generated
*/
int deleteByExample(DcBaseStockFbaShareExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_base_stock_fba_share
*
* @mbg.generated
*/
int deleteByPrimaryKey(Integer id);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_base_stock_fba_share
*
* @mbg.generated
*/
int insert(DcBaseStockFbaShare record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_base_stock_fba_share
*
* @mbg.generated
*/
int insertSelective(DcBaseStockFbaShare record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_base_stock_fba_share
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
DcBaseStockFbaShare selectOneByExample(DcBaseStockFbaShareExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_base_stock_fba_share
*
* @mbg.generated
*/
List<DcBaseStockFbaShare> selectByExample(DcBaseStockFbaShareExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_base_stock_fba_share
*
* @mbg.generated
*/
DcBaseStockFbaShare selectByPrimaryKey(Integer id);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_base_stock_fba_share
*
* @mbg.generated
*/
int updateByExampleSelective(@Param("record") DcBaseStockFbaShare record, @Param("example") DcBaseStockFbaShareExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_base_stock_fba_share
*
* @mbg.generated
*/
int updateByExample(@Param("record") DcBaseStockFbaShare record, @Param("example") DcBaseStockFbaShareExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_base_stock_fba_share
*
* @mbg.generated
*/
int updateByPrimaryKeySelective(DcBaseStockFbaShare record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_base_stock_fba_share
*
* @mbg.generated
*/
int updateByPrimaryKey(DcBaseStockFbaShare record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_base_stock_fba_share
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
int upsert(DcBaseStockFbaShare record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_base_stock_fba_share
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
int upsertSelective(DcBaseStockFbaShare record);
}
\ No newline at end of file
......@@ -78,7 +78,7 @@ public class OmsOrderTest {
LinkedHashMap<String, String> map = new LinkedHashMap<>(4);
map.put("pageIndex", "1");
map.put("pageCount", "100");
map.put("OriginOrderNo", "190413111223FT5");
map.put("OriginOrderNo", "171-0246982-9581102");
Request request = new Request.Builder()
.get()
.url(OkHttpUtil.attachHttpGetParams("http://oms.bailuntec.com/apiV2/bailunOrder/getBailunOrders", map))
......
package com.bailuntec.domain.pojo;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import java.time.LocalDateTime;
@Data
@ToString
@EqualsAndHashCode
public class DcBaseStockFbaDto {
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column dc_base_stock_fba.id
*
* @mbg.generated
*/
private Integer id;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column dc_base_stock_fba.gmt_create
*
* @mbg.generated
*/
private LocalDateTime gmtCreate;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column dc_base_stock_fba.gmt_modified
*
* @mbg.generated
*/
private LocalDateTime gmtModified;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column dc_base_stock_fba.bailun_sku
*
* @mbg.generated
*/
private String bailunSku;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column dc_base_stock_fba.platform_sku
*
* @mbg.generated
*/
private String platformSku;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column dc_base_stock_fba.warehouse_code
*
* @mbg.generated
*/
private String warehouseCode;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column dc_base_stock_fba.usable_stock
*
* @mbg.generated
*/
private Integer usableStock;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column dc_base_stock_fba.in_warehouse
*
* @mbg.generated
*/
private Integer inWarehouse;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column dc_base_stock_fba.asin
*
* @mbg.generated
*/
private String asin;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column dc_base_stock_fba.asin
*
* @mbg.generated
*/
private String bailunAccount;
}
\ No newline at end of file
package com.bailuntec.mapper;
import com.bailuntec.domain.entity.DcBaseStockConfigFbaLose;
import com.bailuntec.domain.example.DcBaseStockConfigFbaLoseExample;
import org.apache.ibatis.annotations.Param;
import java.util.List;
public interface DcBaseStockConfigFbaLoseMapper {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_base_stock_config_fba_lose
*
* @mbg.generated
*/
long countByExample(DcBaseStockConfigFbaLoseExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_base_stock_config_fba_lose
*
* @mbg.generated
*/
int deleteByExample(DcBaseStockConfigFbaLoseExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_base_stock_config_fba_lose
*
* @mbg.generated
*/
int deleteByPrimaryKey(Integer id);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_base_stock_config_fba_lose
*
* @mbg.generated
*/
int insert(DcBaseStockConfigFbaLose record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_base_stock_config_fba_lose
*
* @mbg.generated
*/
int insertSelective(DcBaseStockConfigFbaLose record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_base_stock_config_fba_lose
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
DcBaseStockConfigFbaLose selectOneByExample(DcBaseStockConfigFbaLoseExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_base_stock_config_fba_lose
*
* @mbg.generated
*/
List<DcBaseStockConfigFbaLose> selectByExample(DcBaseStockConfigFbaLoseExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_base_stock_config_fba_lose
*
* @mbg.generated
*/
DcBaseStockConfigFbaLose selectByPrimaryKey(Integer id);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_base_stock_config_fba_lose
*
* @mbg.generated
*/
int updateByExampleSelective(@Param("record") DcBaseStockConfigFbaLose record, @Param("example") DcBaseStockConfigFbaLoseExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_base_stock_config_fba_lose
*
* @mbg.generated
*/
int updateByExample(@Param("record") DcBaseStockConfigFbaLose record, @Param("example") DcBaseStockConfigFbaLoseExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_base_stock_config_fba_lose
*
* @mbg.generated
*/
int updateByPrimaryKeySelective(DcBaseStockConfigFbaLose record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_base_stock_config_fba_lose
*
* @mbg.generated
*/
int updateByPrimaryKey(DcBaseStockConfigFbaLose record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_base_stock_config_fba_lose
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
int upsert(DcBaseStockConfigFbaLose record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_base_stock_config_fba_lose
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
int upsertSelective(DcBaseStockConfigFbaLose record);
}
\ No newline at end of file
......@@ -8,6 +8,7 @@
-->
<id column="id" jdbcType="INTEGER" property="id" />
<result column="platform_sku" jdbcType="VARCHAR" property="platformSku" />
<result column="bailun_sku" jdbcType="VARCHAR" property="bailunSku" />
<result column="warehouse_code" jdbcType="VARCHAR" property="warehouseCode" />
<result column="warehouse_name" jdbcType="VARCHAR" property="warehouseName" />
<result column="gmt_create" jdbcType="TIMESTAMP" property="gmtCreate" />
......@@ -85,7 +86,8 @@
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
id, platform_sku, warehouse_code, warehouse_name, gmt_create, gmt_modified, bl_operator
id, platform_sku, bailun_sku, warehouse_code, warehouse_name, gmt_create, gmt_modified,
bl_operator
</sql>
<select id="selectByExample" parameterType="com.bailuntec.domain.example.DcBaseStockConfigFbaExample" resultMap="BaseResultMap">
<!--
......@@ -146,12 +148,12 @@
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
insert into dc_base_stock_config_fba (id, platform_sku, warehouse_code,
warehouse_name, gmt_create, gmt_modified,
bl_operator)
values (#{id,jdbcType=INTEGER}, #{platformSku,jdbcType=VARCHAR}, #{warehouseCode,jdbcType=VARCHAR},
#{warehouseName,jdbcType=VARCHAR}, #{gmtCreate,jdbcType=TIMESTAMP}, #{gmtModified,jdbcType=TIMESTAMP},
#{blOperator,jdbcType=VARCHAR})
insert into dc_base_stock_config_fba (id, platform_sku, bailun_sku,
warehouse_code, warehouse_name, gmt_create,
gmt_modified, bl_operator)
values (#{id,jdbcType=INTEGER}, #{platformSku,jdbcType=VARCHAR}, #{bailunSku,jdbcType=VARCHAR},
#{warehouseCode,jdbcType=VARCHAR}, #{warehouseName,jdbcType=VARCHAR}, #{gmtCreate,jdbcType=TIMESTAMP},
#{gmtModified,jdbcType=TIMESTAMP}, #{blOperator,jdbcType=VARCHAR})
</insert>
<insert id="insertSelective" parameterType="com.bailuntec.domain.entity.DcBaseStockConfigFba">
<!--
......@@ -166,6 +168,9 @@
<if test="platformSku != null">
platform_sku,
</if>
<if test="bailunSku != null">
bailun_sku,
</if>
<if test="warehouseCode != null">
warehouse_code,
</if>
......@@ -189,6 +194,9 @@
<if test="platformSku != null">
#{platformSku,jdbcType=VARCHAR},
</if>
<if test="bailunSku != null">
#{bailunSku,jdbcType=VARCHAR},
</if>
<if test="warehouseCode != null">
#{warehouseCode,jdbcType=VARCHAR},
</if>
......@@ -229,6 +237,9 @@
<if test="record.platformSku != null">
platform_sku = #{record.platformSku,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>
......@@ -257,6 +268,7 @@
update dc_base_stock_config_fba
set id = #{record.id,jdbcType=INTEGER},
platform_sku = #{record.platformSku,jdbcType=VARCHAR},
bailun_sku = #{record.bailunSku,jdbcType=VARCHAR},
warehouse_code = #{record.warehouseCode,jdbcType=VARCHAR},
warehouse_name = #{record.warehouseName,jdbcType=VARCHAR},
gmt_create = #{record.gmtCreate,jdbcType=TIMESTAMP},
......@@ -276,6 +288,9 @@
<if test="platformSku != null">
platform_sku = #{platformSku,jdbcType=VARCHAR},
</if>
<if test="bailunSku != null">
bailun_sku = #{bailunSku,jdbcType=VARCHAR},
</if>
<if test="warehouseCode != null">
warehouse_code = #{warehouseCode,jdbcType=VARCHAR},
</if>
......@@ -301,6 +316,7 @@
-->
update dc_base_stock_config_fba
set platform_sku = #{platformSku,jdbcType=VARCHAR},
bailun_sku = #{bailunSku,jdbcType=VARCHAR},
warehouse_code = #{warehouseCode,jdbcType=VARCHAR},
warehouse_name = #{warehouseName,jdbcType=VARCHAR},
gmt_create = #{gmtCreate,jdbcType=TIMESTAMP},
......@@ -322,6 +338,9 @@
<if test="platformSku != null">
platform_sku,
</if>
<if test="bailunSku != null">
bailun_sku,
</if>
<if test="warehouseCode != null">
warehouse_code,
</if>
......@@ -346,6 +365,9 @@
<if test="platformSku != null">
#{platformSku,jdbcType=VARCHAR},
</if>
<if test="bailunSku != null">
#{bailunSku,jdbcType=VARCHAR},
</if>
<if test="warehouseCode != null">
#{warehouseCode,jdbcType=VARCHAR},
</if>
......@@ -370,6 +392,9 @@
<if test="platformSku != null">
platform_sku = #{platformSku,jdbcType=VARCHAR},
</if>
<if test="bailunSku != null">
bailun_sku = #{bailunSku,jdbcType=VARCHAR},
</if>
<if test="warehouseCode != null">
warehouse_code = #{warehouseCode,jdbcType=VARCHAR},
</if>
......@@ -394,15 +419,16 @@
@project https://github.com/itfsw/mybatis-generator-plugin
-->
insert into dc_base_stock_config_fba
(id, platform_sku, warehouse_code, warehouse_name, gmt_create, gmt_modified, bl_operator
)
(id, platform_sku, bailun_sku, warehouse_code, warehouse_name, gmt_create, gmt_modified,
bl_operator)
values
(#{id,jdbcType=INTEGER}, #{platformSku,jdbcType=VARCHAR}, #{warehouseCode,jdbcType=VARCHAR},
#{warehouseName,jdbcType=VARCHAR}, #{gmtCreate,jdbcType=TIMESTAMP}, #{gmtModified,jdbcType=TIMESTAMP},
#{blOperator,jdbcType=VARCHAR})
(#{id,jdbcType=INTEGER}, #{platformSku,jdbcType=VARCHAR}, #{bailunSku,jdbcType=VARCHAR},
#{warehouseCode,jdbcType=VARCHAR}, #{warehouseName,jdbcType=VARCHAR}, #{gmtCreate,jdbcType=TIMESTAMP},
#{gmtModified,jdbcType=TIMESTAMP}, #{blOperator,jdbcType=VARCHAR})
on duplicate key update
id = #{id,jdbcType=INTEGER},
platform_sku = #{platformSku,jdbcType=VARCHAR},
bailun_sku = #{bailunSku,jdbcType=VARCHAR},
warehouse_code = #{warehouseCode,jdbcType=VARCHAR},
warehouse_name = #{warehouseName,jdbcType=VARCHAR},
gmt_create = #{gmtCreate,jdbcType=TIMESTAMP},
......
......@@ -121,4 +121,13 @@ public interface DcBaseStockFbaMapper {
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
int upsertSelective(DcBaseStockFba record);
List<DcBaseStockFba> listEuropeFbaStockShare(String fbaStockSharePlatformSku);
List<String> listEuropeFbaStockSharePlatformSku();
List<DcBaseStockFba> listOtherFbaStock();
void insertDcBaseStockFbaShare();
}
\ No newline at end of file
......@@ -480,4 +480,24 @@
</if>
limit 1
</select>
<select id="listEuropeFbaStockSharePlatformSku" resultType="string">
SELECT platform_sku FROM (SELECT tb1.platform_sku FROM dc_base_stock_fba tb1 left JOIN (SELECT warehouse_code,bailun_account FROM dc_base_warehouse WHERE system_flag='FBA' and area_id in ('6','8','10','11','12')) tb2 on tb1.warehouse_code=tb2.warehouse_code and tb1.bailun_sku !='' WHERE tb2.warehouse_code is not null ) tb GROUP BY platform_sku HAVING count(*) > 1
</select>
<select id="listEuropeFbaStockShare" resultType="com.bailuntec.domain.entity.DcBaseStockFba">
SELECT * FROM (SELECT tb1.*,tb2.bailun_account FROM dc_base_stock_fba tb1 left JOIN (SELECT warehouse_code,bailun_account FROM dc_base_warehouse WHERE system_flag='FBA' and area_id in ('6','8','10','11','12')) tb2 on tb1.warehouse_code=tb2.warehouse_code and tb1.bailun_sku !='' WHERE tb2.warehouse_code is not null and platform_sku=#{fbaStockSharePlatformSku}) tb
</select>
<select id="listOtherFbaStock" resultType="com.bailuntec.domain.entity.DcBaseStockFba">
SELECT * FROM (SELECT tb1.*,tb2.bailun_account FROM dc_base_stock_fba tb1 left JOIN (SELECT warehouse_code,bailun_account FROM dc_base_warehouse WHERE system_flag='FBA' and area_id in ('6','8','10','11','12')) tb2 on tb1.warehouse_code=tb2.warehouse_code and tb1.bailun_sku !='' WHERE tb2.warehouse_code is not null ) tb GROUP BY platform_sku HAVING count(*) =1
union
SELECT * FROM (SELECT tb1.*,tb2.bailun_account FROM dc_base_stock_fba tb1 left JOIN (SELECT warehouse_code,bailun_account FROM dc_base_warehouse WHERE system_flag='FBA' and area_id not in ('6','8','10','11','12')) tb2 on tb1.warehouse_code=tb2.warehouse_code and tb1.bailun_sku !='' WHERE tb2.warehouse_code is not null ) tb
</select>
<insert id="insertDcBaseStockFbaShare">
replace into dc_base_stock_fba_share(`bailun_sku`, `platform_sku`)
SELECT bailun_sku,platform_sku FROM (SELECT tb1.bailun_sku,tb1.platform_sku FROM dc_base_stock_fba tb1 left JOIN (SELECT warehouse_code,bailun_account FROM dc_base_warehouse WHERE system_flag='FBA' and area_id in ('6','8','10','11','12')) tb2 on tb1.warehouse_code=tb2.warehouse_code and tb1.bailun_sku !='' WHERE tb2.warehouse_code is not null ) tb GROUP BY platform_sku HAVING count(*) > 1
</insert>
</mapper>
\ No newline at end of file
package com.bailuntec.mapper;
import com.bailuntec.domain.entity.DcBaseStockFbaShare;
import com.bailuntec.domain.example.DcBaseStockFbaShareExample;
import org.apache.ibatis.annotations.Param;
import java.util.List;
public interface DcBaseStockFbaShareMapper {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_base_stock_fba_share
*
* @mbg.generated
*/
long countByExample(DcBaseStockFbaShareExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_base_stock_fba_share
*
* @mbg.generated
*/
int deleteByExample(DcBaseStockFbaShareExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_base_stock_fba_share
*
* @mbg.generated
*/
int deleteByPrimaryKey(Integer id);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_base_stock_fba_share
*
* @mbg.generated
*/
int insert(DcBaseStockFbaShare record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_base_stock_fba_share
*
* @mbg.generated
*/
int insertSelective(DcBaseStockFbaShare record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_base_stock_fba_share
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
DcBaseStockFbaShare selectOneByExample(DcBaseStockFbaShareExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_base_stock_fba_share
*
* @mbg.generated
*/
List<DcBaseStockFbaShare> selectByExample(DcBaseStockFbaShareExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_base_stock_fba_share
*
* @mbg.generated
*/
DcBaseStockFbaShare selectByPrimaryKey(Integer id);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_base_stock_fba_share
*
* @mbg.generated
*/
int updateByExampleSelective(@Param("record") DcBaseStockFbaShare record, @Param("example") DcBaseStockFbaShareExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_base_stock_fba_share
*
* @mbg.generated
*/
int updateByExample(@Param("record") DcBaseStockFbaShare record, @Param("example") DcBaseStockFbaShareExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_base_stock_fba_share
*
* @mbg.generated
*/
int updateByPrimaryKeySelective(DcBaseStockFbaShare record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_base_stock_fba_share
*
* @mbg.generated
*/
int updateByPrimaryKey(DcBaseStockFbaShare record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_base_stock_fba_share
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
int upsert(DcBaseStockFbaShare record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_base_stock_fba_share
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
int upsertSelective(DcBaseStockFbaShare record);
}
\ No newline at end of file
......@@ -415,6 +415,15 @@ public class DcBaseOmsSku {
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column dc_base_oms_sku.warehouse_code_fba
*
* @mbg.generated
*/
private String warehouseCodeFba;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column dc_base_oms_sku.warehouse_code
*
* @mbg.generated
......@@ -973,6 +982,7 @@ public class DcBaseOmsSku {
sb.append(", bailunSkuQuantityRefund=").append(bailunSkuQuantityRefund);
sb.append(", bailunSkuQuantityPicked=").append(bailunSkuQuantityPicked);
sb.append(", warehouseName=").append(warehouseName);
sb.append(", warehouseCodeFba=").append(warehouseCodeFba);
sb.append(", warehouseCode=").append(warehouseCode);
sb.append(", bailunSkuUnitPrice=").append(bailunSkuUnitPrice);
sb.append(", bailunSkuWeight=").append(bailunSkuWeight);
......@@ -1096,6 +1106,7 @@ public class DcBaseOmsSku {
&& (this.getBailunSkuQuantityRefund() == null ? other.getBailunSkuQuantityRefund() == null : this.getBailunSkuQuantityRefund().equals(other.getBailunSkuQuantityRefund()))
&& (this.getBailunSkuQuantityPicked() == null ? other.getBailunSkuQuantityPicked() == null : this.getBailunSkuQuantityPicked().equals(other.getBailunSkuQuantityPicked()))
&& (this.getWarehouseName() == null ? other.getWarehouseName() == null : this.getWarehouseName().equals(other.getWarehouseName()))
&& (this.getWarehouseCodeFba() == null ? other.getWarehouseCodeFba() == null : this.getWarehouseCodeFba().equals(other.getWarehouseCodeFba()))
&& (this.getWarehouseCode() == null ? other.getWarehouseCode() == null : this.getWarehouseCode().equals(other.getWarehouseCode()))
&& (this.getBailunSkuUnitPrice() == null ? other.getBailunSkuUnitPrice() == null : this.getBailunSkuUnitPrice().equals(other.getBailunSkuUnitPrice()))
&& (this.getBailunSkuWeight() == null ? other.getBailunSkuWeight() == null : this.getBailunSkuWeight().equals(other.getBailunSkuWeight()))
......@@ -1209,6 +1220,7 @@ public class DcBaseOmsSku {
result = prime * result + ((getBailunSkuQuantityRefund() == null) ? 0 : getBailunSkuQuantityRefund().hashCode());
result = prime * result + ((getBailunSkuQuantityPicked() == null) ? 0 : getBailunSkuQuantityPicked().hashCode());
result = prime * result + ((getWarehouseName() == null) ? 0 : getWarehouseName().hashCode());
result = prime * result + ((getWarehouseCodeFba() == null) ? 0 : getWarehouseCodeFba().hashCode());
result = prime * result + ((getWarehouseCode() == null) ? 0 : getWarehouseCode().hashCode());
result = prime * result + ((getBailunSkuUnitPrice() == null) ? 0 : getBailunSkuUnitPrice().hashCode());
result = prime * result + ((getBailunSkuWeight() == null) ? 0 : getBailunSkuWeight().hashCode());
......
......@@ -27,6 +27,15 @@ public class DcBaseStockConfigFba {
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column dc_base_stock_config_fba.bailun_sku
*
* @mbg.generated
*/
private String bailunSku;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column dc_base_stock_config_fba.warehouse_code
*
* @mbg.generated
......@@ -83,6 +92,7 @@ public class DcBaseStockConfigFba {
sb.append("Hash = ").append(hashCode());
sb.append(", id=").append(id);
sb.append(", platformSku=").append(platformSku);
sb.append(", bailunSku=").append(bailunSku);
sb.append(", warehouseCode=").append(warehouseCode);
sb.append(", warehouseName=").append(warehouseName);
sb.append(", gmtCreate=").append(gmtCreate);
......@@ -112,6 +122,7 @@ public class DcBaseStockConfigFba {
DcBaseStockConfigFba other = (DcBaseStockConfigFba) that;
return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
&& (this.getPlatformSku() == null ? other.getPlatformSku() == null : this.getPlatformSku().equals(other.getPlatformSku()))
&& (this.getBailunSku() == null ? other.getBailunSku() == null : this.getBailunSku().equals(other.getBailunSku()))
&& (this.getWarehouseCode() == null ? other.getWarehouseCode() == null : this.getWarehouseCode().equals(other.getWarehouseCode()))
&& (this.getWarehouseName() == null ? other.getWarehouseName() == null : this.getWarehouseName().equals(other.getWarehouseName()))
&& (this.getGmtCreate() == null ? other.getGmtCreate() == null : this.getGmtCreate().equals(other.getGmtCreate()))
......@@ -131,6 +142,7 @@ public class DcBaseStockConfigFba {
int result = 1;
result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
result = prime * result + ((getPlatformSku() == null) ? 0 : getPlatformSku().hashCode());
result = prime * result + ((getBailunSku() == null) ? 0 : getBailunSku().hashCode());
result = prime * result + ((getWarehouseCode() == null) ? 0 : getWarehouseCode().hashCode());
result = prime * result + ((getWarehouseName() == null) ? 0 : getWarehouseName().hashCode());
result = prime * result + ((getGmtCreate() == null) ? 0 : getGmtCreate().hashCode());
......
package com.bailuntec.domain.entity;
import lombok.Data;
import java.time.LocalDateTime;
@Data
public class DcBaseStockConfigFbaLose {
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column dc_base_stock_config_fba_lose.id
*
* @mbg.generated
*/
private Integer id;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column dc_base_stock_config_fba_lose.platform_sku
*
* @mbg.generated
*/
private String platformSku;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column dc_base_stock_config_fba_lose.gmt_create
*
* @mbg.generated
*/
private LocalDateTime gmtCreate;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column dc_base_stock_config_fba_lose.gmt_modified
*
* @mbg.generated
*/
private LocalDateTime gmtModified;
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_base_stock_config_fba_lose
*
* @mbg.generated
*/
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(getClass().getSimpleName());
sb.append(" [");
sb.append("Hash = ").append(hashCode());
sb.append(", id=").append(id);
sb.append(", platformSku=").append(platformSku);
sb.append(", gmtCreate=").append(gmtCreate);
sb.append(", gmtModified=").append(gmtModified);
sb.append("]");
return sb.toString();
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_base_stock_config_fba_lose
*
* @mbg.generated
*/
@Override
public boolean equals(Object that) {
if (this == that) {
return true;
}
if (that == null) {
return false;
}
if (getClass() != that.getClass()) {
return false;
}
DcBaseStockConfigFbaLose other = (DcBaseStockConfigFbaLose) that;
return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
&& (this.getPlatformSku() == null ? other.getPlatformSku() == null : this.getPlatformSku().equals(other.getPlatformSku()))
&& (this.getGmtCreate() == null ? other.getGmtCreate() == null : this.getGmtCreate().equals(other.getGmtCreate()))
&& (this.getGmtModified() == null ? other.getGmtModified() == null : this.getGmtModified().equals(other.getGmtModified()));
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_base_stock_config_fba_lose
*
* @mbg.generated
*/
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
result = prime * result + ((getPlatformSku() == null) ? 0 : getPlatformSku().hashCode());
result = prime * result + ((getGmtCreate() == null) ? 0 : getGmtCreate().hashCode());
result = prime * result + ((getGmtModified() == null) ? 0 : getGmtModified().hashCode());
return result;
}
}
\ No newline at end of file
package com.bailuntec.domain.entity;
import lombok.Data;
import java.time.LocalDateTime;
@Data
public class DcBaseStockFbaShare {
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column dc_base_stock_fba_share.id
*
* @mbg.generated
*/
private Integer id;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column dc_base_stock_fba_share.gmt_create
*
* @mbg.generated
*/
private LocalDateTime gmtCreate;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column dc_base_stock_fba_share.gmt_modified
*
* @mbg.generated
*/
private LocalDateTime gmtModified;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column dc_base_stock_fba_share.bailun_sku
*
* @mbg.generated
*/
private String bailunSku;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column dc_base_stock_fba_share.platform_sku
*
* @mbg.generated
*/
private String platformSku;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column dc_base_stock_fba_share.asin
*
* @mbg.generated
*/
private String asin;
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_base_stock_fba_share
*
* @mbg.generated
*/
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(getClass().getSimpleName());
sb.append(" [");
sb.append("Hash = ").append(hashCode());
sb.append(", id=").append(id);
sb.append(", gmtCreate=").append(gmtCreate);
sb.append(", gmtModified=").append(gmtModified);
sb.append(", bailunSku=").append(bailunSku);
sb.append(", platformSku=").append(platformSku);
sb.append(", asin=").append(asin);
sb.append("]");
return sb.toString();
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_base_stock_fba_share
*
* @mbg.generated
*/
@Override
public boolean equals(Object that) {
if (this == that) {
return true;
}
if (that == null) {
return false;
}
if (getClass() != that.getClass()) {
return false;
}
DcBaseStockFbaShare other = (DcBaseStockFbaShare) that;
return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
&& (this.getGmtCreate() == null ? other.getGmtCreate() == null : this.getGmtCreate().equals(other.getGmtCreate()))
&& (this.getGmtModified() == null ? other.getGmtModified() == null : this.getGmtModified().equals(other.getGmtModified()))
&& (this.getBailunSku() == null ? other.getBailunSku() == null : this.getBailunSku().equals(other.getBailunSku()))
&& (this.getPlatformSku() == null ? other.getPlatformSku() == null : this.getPlatformSku().equals(other.getPlatformSku()))
&& (this.getAsin() == null ? other.getAsin() == null : this.getAsin().equals(other.getAsin()));
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_base_stock_fba_share
*
* @mbg.generated
*/
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
result = prime * result + ((getGmtCreate() == null) ? 0 : getGmtCreate().hashCode());
result = prime * result + ((getGmtModified() == null) ? 0 : getGmtModified().hashCode());
result = prime * result + ((getBailunSku() == null) ? 0 : getBailunSku().hashCode());
result = prime * result + ((getPlatformSku() == null) ? 0 : getPlatformSku().hashCode());
result = prime * result + ((getAsin() == null) ? 0 : getAsin().hashCode());
return result;
}
}
\ No newline at end of file
......@@ -3341,6 +3341,76 @@ public class DcBaseOmsSkuExample {
return (Criteria) this;
}
public Criteria andWarehouseCodeFbaIsNull() {
addCriterion("warehouse_code_fba is null");
return (Criteria) this;
}
public Criteria andWarehouseCodeFbaIsNotNull() {
addCriterion("warehouse_code_fba is not null");
return (Criteria) this;
}
public Criteria andWarehouseCodeFbaEqualTo(String value) {
addCriterion("warehouse_code_fba =", value, "warehouseCodeFba");
return (Criteria) this;
}
public Criteria andWarehouseCodeFbaNotEqualTo(String value) {
addCriterion("warehouse_code_fba <>", value, "warehouseCodeFba");
return (Criteria) this;
}
public Criteria andWarehouseCodeFbaGreaterThan(String value) {
addCriterion("warehouse_code_fba >", value, "warehouseCodeFba");
return (Criteria) this;
}
public Criteria andWarehouseCodeFbaGreaterThanOrEqualTo(String value) {
addCriterion("warehouse_code_fba >=", value, "warehouseCodeFba");
return (Criteria) this;
}
public Criteria andWarehouseCodeFbaLessThan(String value) {
addCriterion("warehouse_code_fba <", value, "warehouseCodeFba");
return (Criteria) this;
}
public Criteria andWarehouseCodeFbaLessThanOrEqualTo(String value) {
addCriterion("warehouse_code_fba <=", value, "warehouseCodeFba");
return (Criteria) this;
}
public Criteria andWarehouseCodeFbaLike(String value) {
addCriterion("warehouse_code_fba like", value, "warehouseCodeFba");
return (Criteria) this;
}
public Criteria andWarehouseCodeFbaNotLike(String value) {
addCriterion("warehouse_code_fba not like", value, "warehouseCodeFba");
return (Criteria) this;
}
public Criteria andWarehouseCodeFbaIn(List<String> values) {
addCriterion("warehouse_code_fba in", values, "warehouseCodeFba");
return (Criteria) this;
}
public Criteria andWarehouseCodeFbaNotIn(List<String> values) {
addCriterion("warehouse_code_fba not in", values, "warehouseCodeFba");
return (Criteria) this;
}
public Criteria andWarehouseCodeFbaBetween(String value1, String value2) {
addCriterion("warehouse_code_fba between", value1, value2, "warehouseCodeFba");
return (Criteria) this;
}
public Criteria andWarehouseCodeFbaNotBetween(String value1, String value2) {
addCriterion("warehouse_code_fba not between", value1, value2, "warehouseCodeFba");
return (Criteria) this;
}
public Criteria andWarehouseCodeIsNull() {
addCriterion("warehouse_code is null");
return (Criteria) this;
......
......@@ -500,6 +500,76 @@ public class DcBaseStockConfigFbaExample {
return (Criteria) this;
}
public Criteria andBailunSkuIsNull() {
addCriterion("bailun_sku is null");
return (Criteria) this;
}
public Criteria andBailunSkuIsNotNull() {
addCriterion("bailun_sku is not null");
return (Criteria) this;
}
public Criteria andBailunSkuEqualTo(String value) {
addCriterion("bailun_sku =", value, "bailunSku");
return (Criteria) this;
}
public Criteria andBailunSkuNotEqualTo(String value) {
addCriterion("bailun_sku <>", value, "bailunSku");
return (Criteria) this;
}
public Criteria andBailunSkuGreaterThan(String value) {
addCriterion("bailun_sku >", value, "bailunSku");
return (Criteria) this;
}
public Criteria andBailunSkuGreaterThanOrEqualTo(String value) {
addCriterion("bailun_sku >=", value, "bailunSku");
return (Criteria) this;
}
public Criteria andBailunSkuLessThan(String value) {
addCriterion("bailun_sku <", value, "bailunSku");
return (Criteria) this;
}
public Criteria andBailunSkuLessThanOrEqualTo(String value) {
addCriterion("bailun_sku <=", value, "bailunSku");
return (Criteria) this;
}
public Criteria andBailunSkuLike(String value) {
addCriterion("bailun_sku like", value, "bailunSku");
return (Criteria) this;
}
public Criteria andBailunSkuNotLike(String value) {
addCriterion("bailun_sku not like", value, "bailunSku");
return (Criteria) this;
}
public Criteria andBailunSkuIn(List<String> values) {
addCriterion("bailun_sku in", values, "bailunSku");
return (Criteria) this;
}
public Criteria andBailunSkuNotIn(List<String> values) {
addCriterion("bailun_sku not in", values, "bailunSku");
return (Criteria) this;
}
public Criteria andBailunSkuBetween(String value1, String value2) {
addCriterion("bailun_sku between", value1, value2, "bailunSku");
return (Criteria) this;
}
public Criteria andBailunSkuNotBetween(String value1, String value2) {
addCriterion("bailun_sku not between", value1, value2, "bailunSku");
return (Criteria) this;
}
public Criteria andWarehouseCodeIsNull() {
addCriterion("warehouse_code is null");
return (Criteria) this;
......
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