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
huluobin
dc-java
Commits
71650f23
Commit
71650f23
authored
Apr 02, 2022
by
jianshuqin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oms订单数据新增wms实际运费
parent
5ee91182
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
1116 additions
and
1 deletion
+1116
-1
OrderSyncJob.java
...s-order/src/main/java/com/bailuntec/job/OrderSyncJob.java
+4
-1
DcBaseOmsPickVariancesExample.java
...iluntec/domain/example/DcBaseOmsPickVariancesExample.java
+927
-0
DcBaseOmsPickVariancesMapper.java
...va/com/bailuntec/mapper/DcBaseOmsPickVariancesMapper.java
+18
-0
DcBaseOmsPickVariancesMapper.xml
...ava/com/bailuntec/mapper/DcBaseOmsPickVariancesMapper.xml
+167
-0
No files found.
data-base/base-sync-oms-order/src/main/java/com/bailuntec/job/OrderSyncJob.java
View file @
71650f23
...
...
@@ -1148,7 +1148,10 @@ public class OrderSyncJob extends PointJob {
dcBaseOmsPickVariances
.
setGmtCreate
(
LocalDateTime
.
now
());
dcBaseOmsPickVariances
.
setGmtModified
(
LocalDateTime
.
now
());
totalCostBill
=
totalCostBill
.
add
(
dcBaseOmsPickVariances
.
getBillCost
());
dcBaseOmsPickVariancesMapper
.
upsert
(
dcBaseOmsPickVariances
);
int
i
=
dcBaseOmsPickVariancesMapper
.
updateByExampleSelective
(
dcBaseOmsPickVariances
,
DcBaseOmsPickVariancesExample
.
newAndCreateCriteria
().
andBailunOrderIdEqualTo
(
dcBaseOmsPickVariances
.
getBailunOrderId
()).
andPickOrderIdEqualTo
(
dcBaseOmsPickVariances
.
getPickOrderId
()).
example
());
if
(
i
==
0
)
{
dcBaseOmsPickVariancesMapper
.
insertSelective
(
dcBaseOmsPickVariances
);
}
}
}
dcBaseOmsOrder
.
setCostBill
(
totalCostBill
);
...
...
data-common/src/main/java/com/bailuntec/domain/example/DcBaseOmsPickVariancesExample.java
0 → 100644
View file @
71650f23
package
com
.
bailuntec
.
domain
.
example
;
import
java.math.BigDecimal
;
import
java.time.LocalDateTime
;
import
java.util.ArrayList
;
import
java.util.List
;
public
class
DcBaseOmsPickVariancesExample
{
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table dc_base_oms_pick_variances
*
* @mbg.generated
*/
protected
String
orderByClause
;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table dc_base_oms_pick_variances
*
* @mbg.generated
*/
protected
boolean
distinct
;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table dc_base_oms_pick_variances
*
* @mbg.generated
*/
protected
List
<
Criteria
>
oredCriteria
;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table dc_base_oms_pick_variances
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
protected
Integer
offset
;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table dc_base_oms_pick_variances
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
protected
Integer
rows
;
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_base_oms_pick_variances
*
* @mbg.generated
*/
public
DcBaseOmsPickVariancesExample
()
{
oredCriteria
=
new
ArrayList
<
Criteria
>();
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_base_oms_pick_variances
*
* @mbg.generated
*/
public
void
setOrderByClause
(
String
orderByClause
)
{
this
.
orderByClause
=
orderByClause
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_base_oms_pick_variances
*
* @mbg.generated
*/
public
String
getOrderByClause
()
{
return
orderByClause
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_base_oms_pick_variances
*
* @mbg.generated
*/
public
void
setDistinct
(
boolean
distinct
)
{
this
.
distinct
=
distinct
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_base_oms_pick_variances
*
* @mbg.generated
*/
public
boolean
isDistinct
()
{
return
distinct
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_base_oms_pick_variances
*
* @mbg.generated
*/
public
List
<
Criteria
>
getOredCriteria
()
{
return
oredCriteria
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_base_oms_pick_variances
*
* @mbg.generated
*/
public
void
or
(
Criteria
criteria
)
{
oredCriteria
.
add
(
criteria
);
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_base_oms_pick_variances
*
* @mbg.generated
*/
public
Criteria
or
()
{
Criteria
criteria
=
createCriteriaInternal
();
oredCriteria
.
add
(
criteria
);
return
criteria
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_base_oms_pick_variances
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
DcBaseOmsPickVariancesExample
orderBy
(
String
orderByClause
)
{
this
.
setOrderByClause
(
orderByClause
);
return
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_base_oms_pick_variances
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
DcBaseOmsPickVariancesExample
orderBy
(
String
...
orderByClauses
)
{
StringBuffer
sb
=
new
StringBuffer
();
for
(
int
i
=
0
;
i
<
orderByClauses
.
length
;
i
++)
{
sb
.
append
(
orderByClauses
[
i
]);
if
(
i
<
orderByClauses
.
length
-
1
)
{
sb
.
append
(
" , "
);
}
}
this
.
setOrderByClause
(
sb
.
toString
());
return
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_base_oms_pick_variances
*
* @mbg.generated
*/
public
Criteria
createCriteria
()
{
Criteria
criteria
=
createCriteriaInternal
();
if
(
oredCriteria
.
size
()
==
0
)
{
oredCriteria
.
add
(
criteria
);
}
return
criteria
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_base_oms_pick_variances
*
* @mbg.generated
*/
protected
Criteria
createCriteriaInternal
()
{
Criteria
criteria
=
new
Criteria
(
this
);
return
criteria
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_base_oms_pick_variances
*
* @mbg.generated
*/
public
void
clear
()
{
oredCriteria
.
clear
();
orderByClause
=
null
;
distinct
=
false
;
rows
=
null
;
offset
=
null
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_base_oms_pick_variances
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
static
Criteria
newAndCreateCriteria
()
{
DcBaseOmsPickVariancesExample
example
=
new
DcBaseOmsPickVariancesExample
();
return
example
.
createCriteria
();
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_base_oms_pick_variances
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
DcBaseOmsPickVariancesExample
when
(
boolean
condition
,
IExampleWhen
then
)
{
if
(
condition
)
{
then
.
example
(
this
);
}
return
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_base_oms_pick_variances
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
DcBaseOmsPickVariancesExample
when
(
boolean
condition
,
IExampleWhen
then
,
IExampleWhen
otherwise
)
{
if
(
condition
)
{
then
.
example
(
this
);
}
else
{
otherwise
.
example
(
this
);
}
return
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_base_oms_pick_variances
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
void
setOffset
(
Integer
offset
)
{
this
.
offset
=
offset
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_base_oms_pick_variances
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Integer
getOffset
()
{
return
this
.
offset
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_base_oms_pick_variances
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
void
setRows
(
Integer
rows
)
{
this
.
rows
=
rows
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_base_oms_pick_variances
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Integer
getRows
()
{
return
this
.
rows
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_base_oms_pick_variances
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
DcBaseOmsPickVariancesExample
limit
(
Integer
rows
)
{
this
.
rows
=
rows
;
return
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_base_oms_pick_variances
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
DcBaseOmsPickVariancesExample
limit
(
Integer
offset
,
Integer
rows
)
{
this
.
offset
=
offset
;
this
.
rows
=
rows
;
return
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_base_oms_pick_variances
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
DcBaseOmsPickVariancesExample
page
(
Integer
page
,
Integer
pageSize
)
{
this
.
offset
=
page
*
pageSize
;
this
.
rows
=
pageSize
;
return
this
;
}
/**
* This class was generated by MyBatis Generator.
* This class corresponds to the database table dc_base_oms_pick_variances
*
* @mbg.generated
*/
protected
abstract
static
class
GeneratedCriteria
{
protected
List
<
Criterion
>
criteria
;
protected
GeneratedCriteria
()
{
super
();
criteria
=
new
ArrayList
<
Criterion
>();
}
public
boolean
isValid
()
{
return
criteria
.
size
()
>
0
;
}
public
List
<
Criterion
>
getAllCriteria
()
{
return
criteria
;
}
public
List
<
Criterion
>
getCriteria
()
{
return
criteria
;
}
protected
void
addCriterion
(
String
condition
)
{
if
(
condition
==
null
)
{
throw
new
RuntimeException
(
"Value for condition cannot be null"
);
}
criteria
.
add
(
new
Criterion
(
condition
));
}
protected
void
addCriterion
(
String
condition
,
Object
value
,
String
property
)
{
if
(
value
==
null
)
{
throw
new
RuntimeException
(
"Value for "
+
property
+
" cannot be null"
);
}
criteria
.
add
(
new
Criterion
(
condition
,
value
));
}
protected
void
addCriterion
(
String
condition
,
Object
value1
,
Object
value2
,
String
property
)
{
if
(
value1
==
null
||
value2
==
null
)
{
throw
new
RuntimeException
(
"Between values for "
+
property
+
" cannot be null"
);
}
criteria
.
add
(
new
Criterion
(
condition
,
value1
,
value2
));
}
public
Criteria
andIdIsNull
()
{
addCriterion
(
"id is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdIsNotNull
()
{
addCriterion
(
"id is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdEqualTo
(
Integer
value
)
{
addCriterion
(
"id ="
,
value
,
"id"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdNotEqualTo
(
Integer
value
)
{
addCriterion
(
"id <>"
,
value
,
"id"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdGreaterThan
(
Integer
value
)
{
addCriterion
(
"id >"
,
value
,
"id"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdGreaterThanOrEqualTo
(
Integer
value
)
{
addCriterion
(
"id >="
,
value
,
"id"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdLessThan
(
Integer
value
)
{
addCriterion
(
"id <"
,
value
,
"id"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdLessThanOrEqualTo
(
Integer
value
)
{
addCriterion
(
"id <="
,
value
,
"id"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdIn
(
List
<
Integer
>
values
)
{
addCriterion
(
"id in"
,
values
,
"id"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdNotIn
(
List
<
Integer
>
values
)
{
addCriterion
(
"id not in"
,
values
,
"id"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdBetween
(
Integer
value1
,
Integer
value2
)
{
addCriterion
(
"id between"
,
value1
,
value2
,
"id"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdNotBetween
(
Integer
value1
,
Integer
value2
)
{
addCriterion
(
"id not between"
,
value1
,
value2
,
"id"
);
return
(
Criteria
)
this
;
}
public
Criteria
andBailunOrderIdIsNull
()
{
addCriterion
(
"bailun_order_id is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andBailunOrderIdIsNotNull
()
{
addCriterion
(
"bailun_order_id is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andBailunOrderIdEqualTo
(
String
value
)
{
addCriterion
(
"bailun_order_id ="
,
value
,
"bailunOrderId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andBailunOrderIdNotEqualTo
(
String
value
)
{
addCriterion
(
"bailun_order_id <>"
,
value
,
"bailunOrderId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andBailunOrderIdGreaterThan
(
String
value
)
{
addCriterion
(
"bailun_order_id >"
,
value
,
"bailunOrderId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andBailunOrderIdGreaterThanOrEqualTo
(
String
value
)
{
addCriterion
(
"bailun_order_id >="
,
value
,
"bailunOrderId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andBailunOrderIdLessThan
(
String
value
)
{
addCriterion
(
"bailun_order_id <"
,
value
,
"bailunOrderId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andBailunOrderIdLessThanOrEqualTo
(
String
value
)
{
addCriterion
(
"bailun_order_id <="
,
value
,
"bailunOrderId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andBailunOrderIdLike
(
String
value
)
{
addCriterion
(
"bailun_order_id like"
,
value
,
"bailunOrderId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andBailunOrderIdNotLike
(
String
value
)
{
addCriterion
(
"bailun_order_id not like"
,
value
,
"bailunOrderId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andBailunOrderIdIn
(
List
<
String
>
values
)
{
addCriterion
(
"bailun_order_id in"
,
values
,
"bailunOrderId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andBailunOrderIdNotIn
(
List
<
String
>
values
)
{
addCriterion
(
"bailun_order_id not in"
,
values
,
"bailunOrderId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andBailunOrderIdBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"bailun_order_id between"
,
value1
,
value2
,
"bailunOrderId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andBailunOrderIdNotBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"bailun_order_id not between"
,
value1
,
value2
,
"bailunOrderId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPickOrderIdIsNull
()
{
addCriterion
(
"pick_order_id is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPickOrderIdIsNotNull
()
{
addCriterion
(
"pick_order_id is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPickOrderIdEqualTo
(
String
value
)
{
addCriterion
(
"pick_order_id ="
,
value
,
"pickOrderId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPickOrderIdNotEqualTo
(
String
value
)
{
addCriterion
(
"pick_order_id <>"
,
value
,
"pickOrderId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPickOrderIdGreaterThan
(
String
value
)
{
addCriterion
(
"pick_order_id >"
,
value
,
"pickOrderId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPickOrderIdGreaterThanOrEqualTo
(
String
value
)
{
addCriterion
(
"pick_order_id >="
,
value
,
"pickOrderId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPickOrderIdLessThan
(
String
value
)
{
addCriterion
(
"pick_order_id <"
,
value
,
"pickOrderId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPickOrderIdLessThanOrEqualTo
(
String
value
)
{
addCriterion
(
"pick_order_id <="
,
value
,
"pickOrderId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPickOrderIdLike
(
String
value
)
{
addCriterion
(
"pick_order_id like"
,
value
,
"pickOrderId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPickOrderIdNotLike
(
String
value
)
{
addCriterion
(
"pick_order_id not like"
,
value
,
"pickOrderId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPickOrderIdIn
(
List
<
String
>
values
)
{
addCriterion
(
"pick_order_id in"
,
values
,
"pickOrderId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPickOrderIdNotIn
(
List
<
String
>
values
)
{
addCriterion
(
"pick_order_id not in"
,
values
,
"pickOrderId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPickOrderIdBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"pick_order_id between"
,
value1
,
value2
,
"pickOrderId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPickOrderIdNotBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"pick_order_id not between"
,
value1
,
value2
,
"pickOrderId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andGmtCreateIsNull
()
{
addCriterion
(
"gmt_create is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andGmtCreateIsNotNull
()
{
addCriterion
(
"gmt_create is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andGmtCreateEqualTo
(
LocalDateTime
value
)
{
addCriterion
(
"gmt_create ="
,
value
,
"gmtCreate"
);
return
(
Criteria
)
this
;
}
public
Criteria
andGmtCreateNotEqualTo
(
LocalDateTime
value
)
{
addCriterion
(
"gmt_create <>"
,
value
,
"gmtCreate"
);
return
(
Criteria
)
this
;
}
public
Criteria
andGmtCreateGreaterThan
(
LocalDateTime
value
)
{
addCriterion
(
"gmt_create >"
,
value
,
"gmtCreate"
);
return
(
Criteria
)
this
;
}
public
Criteria
andGmtCreateGreaterThanOrEqualTo
(
LocalDateTime
value
)
{
addCriterion
(
"gmt_create >="
,
value
,
"gmtCreate"
);
return
(
Criteria
)
this
;
}
public
Criteria
andGmtCreateLessThan
(
LocalDateTime
value
)
{
addCriterion
(
"gmt_create <"
,
value
,
"gmtCreate"
);
return
(
Criteria
)
this
;
}
public
Criteria
andGmtCreateLessThanOrEqualTo
(
LocalDateTime
value
)
{
addCriterion
(
"gmt_create <="
,
value
,
"gmtCreate"
);
return
(
Criteria
)
this
;
}
public
Criteria
andGmtCreateIn
(
List
<
LocalDateTime
>
values
)
{
addCriterion
(
"gmt_create in"
,
values
,
"gmtCreate"
);
return
(
Criteria
)
this
;
}
public
Criteria
andGmtCreateNotIn
(
List
<
LocalDateTime
>
values
)
{
addCriterion
(
"gmt_create not in"
,
values
,
"gmtCreate"
);
return
(
Criteria
)
this
;
}
public
Criteria
andGmtCreateBetween
(
LocalDateTime
value1
,
LocalDateTime
value2
)
{
addCriterion
(
"gmt_create between"
,
value1
,
value2
,
"gmtCreate"
);
return
(
Criteria
)
this
;
}
public
Criteria
andGmtCreateNotBetween
(
LocalDateTime
value1
,
LocalDateTime
value2
)
{
addCriterion
(
"gmt_create not between"
,
value1
,
value2
,
"gmtCreate"
);
return
(
Criteria
)
this
;
}
public
Criteria
andGmtModifiedIsNull
()
{
addCriterion
(
"gmt_modified is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andGmtModifiedIsNotNull
()
{
addCriterion
(
"gmt_modified is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andGmtModifiedEqualTo
(
LocalDateTime
value
)
{
addCriterion
(
"gmt_modified ="
,
value
,
"gmtModified"
);
return
(
Criteria
)
this
;
}
public
Criteria
andGmtModifiedNotEqualTo
(
LocalDateTime
value
)
{
addCriterion
(
"gmt_modified <>"
,
value
,
"gmtModified"
);
return
(
Criteria
)
this
;
}
public
Criteria
andGmtModifiedGreaterThan
(
LocalDateTime
value
)
{
addCriterion
(
"gmt_modified >"
,
value
,
"gmtModified"
);
return
(
Criteria
)
this
;
}
public
Criteria
andGmtModifiedGreaterThanOrEqualTo
(
LocalDateTime
value
)
{
addCriterion
(
"gmt_modified >="
,
value
,
"gmtModified"
);
return
(
Criteria
)
this
;
}
public
Criteria
andGmtModifiedLessThan
(
LocalDateTime
value
)
{
addCriterion
(
"gmt_modified <"
,
value
,
"gmtModified"
);
return
(
Criteria
)
this
;
}
public
Criteria
andGmtModifiedLessThanOrEqualTo
(
LocalDateTime
value
)
{
addCriterion
(
"gmt_modified <="
,
value
,
"gmtModified"
);
return
(
Criteria
)
this
;
}
public
Criteria
andGmtModifiedIn
(
List
<
LocalDateTime
>
values
)
{
addCriterion
(
"gmt_modified in"
,
values
,
"gmtModified"
);
return
(
Criteria
)
this
;
}
public
Criteria
andGmtModifiedNotIn
(
List
<
LocalDateTime
>
values
)
{
addCriterion
(
"gmt_modified not in"
,
values
,
"gmtModified"
);
return
(
Criteria
)
this
;
}
public
Criteria
andGmtModifiedBetween
(
LocalDateTime
value1
,
LocalDateTime
value2
)
{
addCriterion
(
"gmt_modified between"
,
value1
,
value2
,
"gmtModified"
);
return
(
Criteria
)
this
;
}
public
Criteria
andGmtModifiedNotBetween
(
LocalDateTime
value1
,
LocalDateTime
value2
)
{
addCriterion
(
"gmt_modified not between"
,
value1
,
value2
,
"gmtModified"
);
return
(
Criteria
)
this
;
}
}
/**
* This class was generated by MyBatis Generator.
* This class corresponds to the database table dc_base_oms_pick_variances
*
* @mbg.generated do_not_delete_during_merge
*/
public
static
class
Criteria
extends
GeneratedCriteria
{
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table dc_base_oms_pick_variances
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
private
DcBaseOmsPickVariancesExample
example
;
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_base_oms_pick_variances
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
protected
Criteria
(
DcBaseOmsPickVariancesExample
example
)
{
super
();
this
.
example
=
example
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_base_oms_pick_variances
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
DcBaseOmsPickVariancesExample
example
()
{
return
this
.
example
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_base_oms_pick_variances
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
@Deprecated
public
Criteria
andIf
(
boolean
ifAdd
,
ICriteriaAdd
add
)
{
if
(
ifAdd
)
{
add
.
add
(
this
);
}
return
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_base_oms_pick_variances
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
when
(
boolean
condition
,
ICriteriaWhen
then
)
{
if
(
condition
)
{
then
.
criteria
(
this
);
}
return
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_base_oms_pick_variances
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
when
(
boolean
condition
,
ICriteriaWhen
then
,
ICriteriaWhen
otherwise
)
{
if
(
condition
)
{
then
.
criteria
(
this
);
}
else
{
otherwise
.
criteria
(
this
);
}
return
this
;
}
/**
* This interface was generated by MyBatis Generator.
* This interface corresponds to the database table dc_base_oms_pick_variances
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
@Deprecated
public
interface
ICriteriaAdd
{
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_base_oms_pick_variances
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
Criteria
add
(
Criteria
add
);
}
}
/**
* This class was generated by MyBatis Generator.
* This class corresponds to the database table dc_base_oms_pick_variances
*
* @mbg.generated
*/
public
static
class
Criterion
{
private
String
condition
;
private
Object
value
;
private
Object
secondValue
;
private
boolean
noValue
;
private
boolean
singleValue
;
private
boolean
betweenValue
;
private
boolean
listValue
;
private
String
typeHandler
;
public
String
getCondition
()
{
return
condition
;
}
public
Object
getValue
()
{
return
value
;
}
public
Object
getSecondValue
()
{
return
secondValue
;
}
public
boolean
isNoValue
()
{
return
noValue
;
}
public
boolean
isSingleValue
()
{
return
singleValue
;
}
public
boolean
isBetweenValue
()
{
return
betweenValue
;
}
public
boolean
isListValue
()
{
return
listValue
;
}
public
String
getTypeHandler
()
{
return
typeHandler
;
}
protected
Criterion
(
String
condition
)
{
super
();
this
.
condition
=
condition
;
this
.
typeHandler
=
null
;
this
.
noValue
=
true
;
}
protected
Criterion
(
String
condition
,
Object
value
,
String
typeHandler
)
{
super
();
this
.
condition
=
condition
;
this
.
value
=
value
;
this
.
typeHandler
=
typeHandler
;
if
(
value
instanceof
List
<?>)
{
this
.
listValue
=
true
;
}
else
{
this
.
singleValue
=
true
;
}
}
protected
Criterion
(
String
condition
,
Object
value
)
{
this
(
condition
,
value
,
null
);
}
protected
Criterion
(
String
condition
,
Object
value
,
Object
secondValue
,
String
typeHandler
)
{
super
();
this
.
condition
=
condition
;
this
.
value
=
value
;
this
.
secondValue
=
secondValue
;
this
.
typeHandler
=
typeHandler
;
this
.
betweenValue
=
true
;
}
protected
Criterion
(
String
condition
,
Object
value
,
Object
secondValue
)
{
this
(
condition
,
value
,
secondValue
,
null
);
}
}
/**
* This interface was generated by MyBatis Generator.
* This interface corresponds to the database table dc_base_oms_pick_variances
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
interface
ICriteriaWhen
{
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_base_oms_pick_variances
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
void
criteria
(
Criteria
criteria
);
}
/**
* This interface was generated by MyBatis Generator.
* This interface corresponds to the database table dc_base_oms_pick_variances
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
interface
IExampleWhen
{
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_base_oms_pick_variances
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
void
example
(
DcBaseOmsPickVariancesExample
example
);
}
}
\ No newline at end of file
data-common/src/main/java/com/bailuntec/mapper/DcBaseOmsPickVariancesMapper.java
View file @
71650f23
package
com
.
bailuntec
.
mapper
;
import
com.bailuntec.domain.entity.DcBaseOmsPickVariances
;
import
com.bailuntec.domain.example.DcBaseOmsPickVariancesExample
;
import
org.apache.ibatis.annotations.Param
;
public
interface
DcBaseOmsPickVariancesMapper
{
/**
...
...
@@ -8,6 +10,22 @@ public interface DcBaseOmsPickVariancesMapper {
* This method corresponds to the database table dc_base_oms_pick_variances
*
* @mbg.generated
*/
int
insertSelective
(
DcBaseOmsPickVariances
record
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_base_oms_pick_variances
*
* @mbg.generated
*/
int
updateByExampleSelective
(
@Param
(
"record"
)
DcBaseOmsPickVariances
record
,
@Param
(
"example"
)
DcBaseOmsPickVariancesExample
example
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_base_oms_pick_variances
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
int
upsert
(
DcBaseOmsPickVariances
record
);
...
...
data-common/src/main/java/com/bailuntec/mapper/DcBaseOmsPickVariancesMapper.xml
View file @
71650f23
...
...
@@ -20,6 +20,173 @@
<result
column=
"gmt_create"
jdbcType=
"TIMESTAMP"
property=
"gmtCreate"
/>
<result
column=
"gmt_modified"
jdbcType=
"TIMESTAMP"
property=
"gmtModified"
/>
</resultMap>
<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>
<update
id=
"updateByExampleSelective"
parameterType=
"map"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
update dc_base_oms_pick_variances
<set>
<if
test=
"record.bailunOrderId != null"
>
bailun_order_id = #{record.bailunOrderId,jdbcType=VARCHAR},
</if>
<if
test=
"record.pickOrderId != null"
>
pick_order_id = #{record.pickOrderId,jdbcType=VARCHAR},
</if>
<if
test=
"record.oldWeight != null"
>
old_weight = #{record.oldWeight,jdbcType=DECIMAL},
</if>
<if
test=
"record.oldCost != null"
>
old_cost = #{record.oldCost,jdbcType=DECIMAL},
</if>
<if
test=
"record.newWeight != null"
>
new_weight = #{record.newWeight,jdbcType=DECIMAL},
</if>
<if
test=
"record.newCost != null"
>
new_cost = #{record.newCost,jdbcType=DECIMAL},
</if>
<if
test=
"record.billWeight != null"
>
bill_weight = #{record.billWeight,jdbcType=DECIMAL},
</if>
<if
test=
"record.billCost != null"
>
bill_cost = #{record.billCost,jdbcType=DECIMAL},
</if>
<if
test=
"record.weightDifference != null"
>
weight_difference = #{record.weightDifference,jdbcType=DECIMAL},
</if>
<if
test=
"record.costDifference != null"
>
cost_difference = #{record.costDifference,jdbcType=DECIMAL},
</if>
<if
test=
"record.gmtModified != null"
>
gmt_modified = #{record.gmtModified,jdbcType=TIMESTAMP},
</if>
</set>
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
</update>
<insert
id=
"insertSelective"
parameterType=
"com.bailuntec.domain.entity.DcBaseOmsPickVariances"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
insert into dc_base_oms_pick_variances
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"id != null"
>
id,
</if>
<if
test=
"bailunOrderId != null"
>
bailun_order_id,
</if>
<if
test=
"pickOrderId != null"
>
pick_order_id,
</if>
<if
test=
"oldWeight != null"
>
old_weight,
</if>
<if
test=
"oldCost != null"
>
old_cost,
</if>
<if
test=
"newWeight != null"
>
new_weight,
</if>
<if
test=
"newCost != null"
>
new_cost,
</if>
<if
test=
"billWeight != null"
>
bill_weight,
</if>
<if
test=
"billCost != null"
>
bill_cost,
</if>
<if
test=
"weightDifference != null"
>
weight_difference,
</if>
<if
test=
"costDifference != null"
>
cost_difference,
</if>
<if
test=
"gmtCreate != null"
>
gmt_create,
</if>
<if
test=
"gmtModified != null"
>
gmt_modified,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"id != null"
>
#{id,jdbcType=INTEGER},
</if>
<if
test=
"bailunOrderId != null"
>
#{bailunOrderId,jdbcType=VARCHAR},
</if>
<if
test=
"pickOrderId != null"
>
#{pickOrderId,jdbcType=VARCHAR},
</if>
<if
test=
"oldWeight != null"
>
#{oldWeight,jdbcType=DECIMAL},
</if>
<if
test=
"oldCost != null"
>
#{oldCost,jdbcType=DECIMAL},
</if>
<if
test=
"newWeight != null"
>
#{newWeight,jdbcType=DECIMAL},
</if>
<if
test=
"newCost != null"
>
#{newCost,jdbcType=DECIMAL},
</if>
<if
test=
"billWeight != null"
>
#{billWeight,jdbcType=DECIMAL},
</if>
<if
test=
"billCost != null"
>
#{billCost,jdbcType=DECIMAL},
</if>
<if
test=
"weightDifference != null"
>
#{weightDifference,jdbcType=DECIMAL},
</if>
<if
test=
"costDifference != null"
>
#{costDifference,jdbcType=DECIMAL},
</if>
<if
test=
"gmtCreate != null"
>
#{gmtCreate,jdbcType=TIMESTAMP},
</if>
<if
test=
"gmtModified != null"
>
#{gmtModified,jdbcType=TIMESTAMP},
</if>
</trim>
</insert>
<insert
id=
"upsert"
parameterType=
"com.bailuntec.domain.entity.DcBaseOmsPickVariances"
>
<!--
WARNING - @mbg.generated
...
...
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