Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
dc-java
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
bltdc
dc-java
Commits
3a49c401
Commit
3a49c401
authored
May 15, 2019
by
wutong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
计算头程费Mapper未提交
parent
f0cb601c
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
503 additions
and
0 deletions
+503
-0
DcMidCostFirstConfigMapper.java
...java/com/bailuntec/mapper/DcMidCostFirstConfigMapper.java
+127
-0
DcMidCostFirstConfigMapper.xml
.../java/com/bailuntec/mapper/DcMidCostFirstConfigMapper.xml
+376
-0
No files found.
data-mid/mid-calculate-cost-first/src/main/java/com/bailuntec/mapper/DcMidCostFirstConfigMapper.java
0 → 100644
View file @
3a49c401
package
com
.
bailuntec
.
mapper
;
import
com.bailuntec.domain.entity.DcMidCostFirstConfig
;
import
com.bailuntec.domain.example.DcMidCostFirstConfigExample
;
import
org.apache.ibatis.annotations.Param
;
import
java.util.List
;
public
interface
DcMidCostFirstConfigMapper
{
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_mid_cost_first_config
*
* @mbg.generated
*/
long
countByExample
(
DcMidCostFirstConfigExample
example
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_mid_cost_first_config
*
* @mbg.generated
*/
int
deleteByExample
(
DcMidCostFirstConfigExample
example
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_mid_cost_first_config
*
* @mbg.generated
*/
int
deleteByPrimaryKey
(
Integer
id
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_mid_cost_first_config
*
* @mbg.generated
*/
int
insert
(
DcMidCostFirstConfig
record
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_mid_cost_first_config
*
* @mbg.generated
*/
int
insertSelective
(
DcMidCostFirstConfig
record
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_mid_cost_first_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
DcMidCostFirstConfig
selectOneByExample
(
DcMidCostFirstConfigExample
example
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_mid_cost_first_config
*
* @mbg.generated
*/
List
<
DcMidCostFirstConfig
>
selectByExample
(
DcMidCostFirstConfigExample
example
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_mid_cost_first_config
*
* @mbg.generated
*/
DcMidCostFirstConfig
selectByPrimaryKey
(
Integer
id
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_mid_cost_first_config
*
* @mbg.generated
*/
int
updateByExampleSelective
(
@Param
(
"record"
)
DcMidCostFirstConfig
record
,
@Param
(
"example"
)
DcMidCostFirstConfigExample
example
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_mid_cost_first_config
*
* @mbg.generated
*/
int
updateByExample
(
@Param
(
"record"
)
DcMidCostFirstConfig
record
,
@Param
(
"example"
)
DcMidCostFirstConfigExample
example
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_mid_cost_first_config
*
* @mbg.generated
*/
int
updateByPrimaryKeySelective
(
DcMidCostFirstConfig
record
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_mid_cost_first_config
*
* @mbg.generated
*/
int
updateByPrimaryKey
(
DcMidCostFirstConfig
record
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_mid_cost_first_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
int
upsert
(
DcMidCostFirstConfig
record
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_mid_cost_first_config
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
int
upsertSelective
(
DcMidCostFirstConfig
record
);
DcMidCostFirstConfig
getConfig
(
@Param
(
"bailunSku"
)
String
bailunSku
,
@Param
(
"warehouseCode"
)
String
warehouseCode
);
}
\ No newline at end of file
data-mid/mid-calculate-cost-first/src/main/java/com/bailuntec/mapper/DcMidCostFirstConfigMapper.xml
0 → 100644
View file @
3a49c401
<?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.DcMidCostFirstConfigMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"com.bailuntec.domain.entity.DcMidCostFirstConfig"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
<id
column=
"id"
jdbcType=
"INTEGER"
property=
"id"
/>
<result
column=
"cost_first_config"
jdbcType=
"DECIMAL"
property=
"costFirstConfig"
/>
<result
column=
"bailun_sku"
jdbcType=
"VARCHAR"
property=
"bailunSku"
/>
<result
column=
"warehouse_code"
jdbcType=
"VARCHAR"
property=
"warehouseCode"
/>
<result
column=
"area_id"
jdbcType=
"INTEGER"
property=
"areaId"
/>
</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, cost_first_config, bailun_sku, warehouse_code, area_id
</sql>
<select
id=
"selectByExample"
parameterType=
"com.bailuntec.domain.example.DcMidCostFirstConfigExample"
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_mid_cost_first_config
<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_mid_cost_first_config
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_mid_cost_first_config
where id = #{id,jdbcType=INTEGER}
</delete>
<delete
id=
"deleteByExample"
parameterType=
"com.bailuntec.domain.example.DcMidCostFirstConfigExample"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
delete from dc_mid_cost_first_config
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
</delete>
<insert
id=
"insert"
parameterType=
"com.bailuntec.domain.entity.DcMidCostFirstConfig"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
insert into dc_mid_cost_first_config (id, cost_first_config, bailun_sku,
warehouse_code, area_id)
values (#{id,jdbcType=INTEGER}, #{costFirstConfig,jdbcType=DECIMAL}, #{bailunSku,jdbcType=VARCHAR},
#{warehouseCode,jdbcType=VARCHAR}, #{areaId,jdbcType=INTEGER})
</insert>
<insert
id=
"insertSelective"
parameterType=
"com.bailuntec.domain.entity.DcMidCostFirstConfig"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
insert into dc_mid_cost_first_config
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"id != null"
>
id,
</if>
<if
test=
"costFirstConfig != null"
>
cost_first_config,
</if>
<if
test=
"bailunSku != null"
>
bailun_sku,
</if>
<if
test=
"warehouseCode != null"
>
warehouse_code,
</if>
<if
test=
"areaId != null"
>
area_id,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"id != null"
>
#{id,jdbcType=INTEGER},
</if>
<if
test=
"costFirstConfig != null"
>
#{costFirstConfig,jdbcType=DECIMAL},
</if>
<if
test=
"bailunSku != null"
>
#{bailunSku,jdbcType=VARCHAR},
</if>
<if
test=
"warehouseCode != null"
>
#{warehouseCode,jdbcType=VARCHAR},
</if>
<if
test=
"areaId != null"
>
#{areaId,jdbcType=INTEGER},
</if>
</trim>
</insert>
<select
id=
"countByExample"
parameterType=
"com.bailuntec.domain.example.DcMidCostFirstConfigExample"
resultType=
"java.lang.Long"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
select count(*) from dc_mid_cost_first_config
<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_mid_cost_first_config
<set>
<if
test=
"record.id != null"
>
id = #{record.id,jdbcType=INTEGER},
</if>
<if
test=
"record.costFirstConfig != null"
>
cost_first_config = #{record.costFirstConfig,jdbcType=DECIMAL},
</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.areaId != null"
>
area_id = #{record.areaId,jdbcType=INTEGER},
</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_mid_cost_first_config
set id = #{record.id,jdbcType=INTEGER},
cost_first_config = #{record.costFirstConfig,jdbcType=DECIMAL},
bailun_sku = #{record.bailunSku,jdbcType=VARCHAR},
warehouse_code = #{record.warehouseCode,jdbcType=VARCHAR},
area_id = #{record.areaId,jdbcType=INTEGER}
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
</update>
<update
id=
"updateByPrimaryKeySelective"
parameterType=
"com.bailuntec.domain.entity.DcMidCostFirstConfig"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
update dc_mid_cost_first_config
<set>
<if
test=
"costFirstConfig != null"
>
cost_first_config = #{costFirstConfig,jdbcType=DECIMAL},
</if>
<if
test=
"bailunSku != null"
>
bailun_sku = #{bailunSku,jdbcType=VARCHAR},
</if>
<if
test=
"warehouseCode != null"
>
warehouse_code = #{warehouseCode,jdbcType=VARCHAR},
</if>
<if
test=
"areaId != null"
>
area_id = #{areaId,jdbcType=INTEGER},
</if>
</set>
where id = #{id,jdbcType=INTEGER}
</update>
<update
id=
"updateByPrimaryKey"
parameterType=
"com.bailuntec.domain.entity.DcMidCostFirstConfig"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
update dc_mid_cost_first_config
set cost_first_config = #{costFirstConfig,jdbcType=DECIMAL},
bailun_sku = #{bailunSku,jdbcType=VARCHAR},
warehouse_code = #{warehouseCode,jdbcType=VARCHAR},
area_id = #{areaId,jdbcType=INTEGER}
where id = #{id,jdbcType=INTEGER}
</update>
<insert
id=
"upsertSelective"
parameterType=
"com.bailuntec.domain.entity.DcMidCostFirstConfig"
>
<!--
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_mid_cost_first_config
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"id != null"
>
id,
</if>
<if
test=
"costFirstConfig != null"
>
cost_first_config,
</if>
<if
test=
"bailunSku != null"
>
bailun_sku,
</if>
<if
test=
"warehouseCode != null"
>
warehouse_code,
</if>
<if
test=
"areaId != null"
>
area_id,
</if>
</trim>
values
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"id != null"
>
#{id,jdbcType=INTEGER},
</if>
<if
test=
"costFirstConfig != null"
>
#{costFirstConfig,jdbcType=DECIMAL},
</if>
<if
test=
"bailunSku != null"
>
#{bailunSku,jdbcType=VARCHAR},
</if>
<if
test=
"warehouseCode != null"
>
#{warehouseCode,jdbcType=VARCHAR},
</if>
<if
test=
"areaId != null"
>
#{areaId,jdbcType=INTEGER},
</if>
</trim>
on duplicate key update
<trim
suffixOverrides=
","
>
<if
test=
"id != null"
>
id = #{id,jdbcType=INTEGER},
</if>
<if
test=
"costFirstConfig != null"
>
cost_first_config = #{costFirstConfig,jdbcType=DECIMAL},
</if>
<if
test=
"bailunSku != null"
>
bailun_sku = #{bailunSku,jdbcType=VARCHAR},
</if>
<if
test=
"warehouseCode != null"
>
warehouse_code = #{warehouseCode,jdbcType=VARCHAR},
</if>
<if
test=
"areaId != null"
>
area_id = #{areaId,jdbcType=INTEGER},
</if>
</trim>
</insert>
<insert
id=
"upsert"
parameterType=
"com.bailuntec.domain.entity.DcMidCostFirstConfig"
>
<!--
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_mid_cost_first_config
(id, cost_first_config, bailun_sku, warehouse_code, area_id)
values
(#{id,jdbcType=INTEGER}, #{costFirstConfig,jdbcType=DECIMAL}, #{bailunSku,jdbcType=VARCHAR},
#{warehouseCode,jdbcType=VARCHAR}, #{areaId,jdbcType=INTEGER})
on duplicate key update
id = #{id,jdbcType=INTEGER},
cost_first_config = #{costFirstConfig,jdbcType=DECIMAL},
bailun_sku = #{bailunSku,jdbcType=VARCHAR},
warehouse_code = #{warehouseCode,jdbcType=VARCHAR},
area_id = #{areaId,jdbcType=INTEGER}
</insert>
<select
id=
"selectOneByExample"
parameterType=
"com.bailuntec.domain.example.DcMidCostFirstConfigExample"
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_mid_cost_first_config
<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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment