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
8322a5c4
Commit
8322a5c4
authored
Sep 03, 2020
by
huluobin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
daliy sales
parent
bad61c50
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
152 additions
and
5 deletions
+152
-5
DcDailySales.java
...c/main/java/com/bailuntec/domain/entity/DcDailySales.java
+27
-3
DcDailySalesExample.java
...ava/com/bailuntec/domain/example/DcDailySalesExample.java
+122
-1
DcDailySalesMapper.xml
...src/main/java/com/bailuntec/mapper/DcDailySalesMapper.xml
+0
-0
init.properties
data-common/src/main/resources/init.properties
+1
-1
CalculateSalesJob.java
...es/src/main/java/com/bailuntec/job/CalculateSalesJob.java
+2
-0
No files found.
data-common/src/main/java/com/bailuntec/domain/entity/DcDailySales.java
View file @
8322a5c4
package
com
.
bailuntec
.
domain
.
entity
;
package
com
.
bailuntec
.
domain
.
entity
;
import
lombok.Data
;
import
java.math.BigDecimal
;
import
java.math.BigDecimal
;
import
java.time.LocalDate
;
import
java.time.LocalDate
;
import
java.time.LocalDateTime
;
import
java.time.LocalDateTime
;
import
lombok.Data
;
@Data
@Data
public
class
DcDailySales
{
public
class
DcDailySales
{
...
@@ -74,6 +73,15 @@ public class DcDailySales {
...
@@ -74,6 +73,15 @@ public class DcDailySales {
/**
/**
*
*
* This field was generated by MyBatis Generator.
* This field was generated by MyBatis Generator.
* This field corresponds to the database column dc_daily_sales.oneday_total_sales_amount
*
* @mbg.generated
*/
private
BigDecimal
onedayTotalSalesAmount
;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column dc_daily_sales.threeday_total_sales
* This field corresponds to the database column dc_daily_sales.threeday_total_sales
*
*
* @mbg.generated
* @mbg.generated
...
@@ -198,6 +206,15 @@ public class DcDailySales {
...
@@ -198,6 +206,15 @@ public class DcDailySales {
private
LocalDate
recordDate
;
private
LocalDate
recordDate
;
/**
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column dc_daily_sales.company_id
*
* @mbg.generated
*/
private
Integer
companyId
;
/**
* This method was generated by MyBatis Generator.
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_daily_sales
* This method corresponds to the database table dc_daily_sales
*
*
...
@@ -216,6 +233,7 @@ public class DcDailySales {
...
@@ -216,6 +233,7 @@ public class DcDailySales {
sb
.
append
(
", warehouseCode="
).
append
(
warehouseCode
);
sb
.
append
(
", warehouseCode="
).
append
(
warehouseCode
);
sb
.
append
(
", bailunCategoryId="
).
append
(
bailunCategoryId
);
sb
.
append
(
", bailunCategoryId="
).
append
(
bailunCategoryId
);
sb
.
append
(
", onedayTotalSales="
).
append
(
onedayTotalSales
);
sb
.
append
(
", onedayTotalSales="
).
append
(
onedayTotalSales
);
sb
.
append
(
", onedayTotalSalesAmount="
).
append
(
onedayTotalSalesAmount
);
sb
.
append
(
", threedayTotalSales="
).
append
(
threedayTotalSales
);
sb
.
append
(
", threedayTotalSales="
).
append
(
threedayTotalSales
);
sb
.
append
(
", sevendayTotalSales="
).
append
(
sevendayTotalSales
);
sb
.
append
(
", sevendayTotalSales="
).
append
(
sevendayTotalSales
);
sb
.
append
(
", fourteendayTotalSales="
).
append
(
fourteendayTotalSales
);
sb
.
append
(
", fourteendayTotalSales="
).
append
(
fourteendayTotalSales
);
...
@@ -230,6 +248,7 @@ public class DcDailySales {
...
@@ -230,6 +248,7 @@ public class DcDailySales {
sb
.
append
(
", globalCompanyCode="
).
append
(
globalCompanyCode
);
sb
.
append
(
", globalCompanyCode="
).
append
(
globalCompanyCode
);
sb
.
append
(
", globalCompanyName="
).
append
(
globalCompanyName
);
sb
.
append
(
", globalCompanyName="
).
append
(
globalCompanyName
);
sb
.
append
(
", recordDate="
).
append
(
recordDate
);
sb
.
append
(
", recordDate="
).
append
(
recordDate
);
sb
.
append
(
", companyId="
).
append
(
companyId
);
sb
.
append
(
"]"
);
sb
.
append
(
"]"
);
return
sb
.
toString
();
return
sb
.
toString
();
}
}
...
@@ -259,6 +278,7 @@ public class DcDailySales {
...
@@ -259,6 +278,7 @@ public class DcDailySales {
&&
(
this
.
getWarehouseCode
()
==
null
?
other
.
getWarehouseCode
()
==
null
:
this
.
getWarehouseCode
().
equals
(
other
.
getWarehouseCode
()))
&&
(
this
.
getWarehouseCode
()
==
null
?
other
.
getWarehouseCode
()
==
null
:
this
.
getWarehouseCode
().
equals
(
other
.
getWarehouseCode
()))
&&
(
this
.
getBailunCategoryId
()
==
null
?
other
.
getBailunCategoryId
()
==
null
:
this
.
getBailunCategoryId
().
equals
(
other
.
getBailunCategoryId
()))
&&
(
this
.
getBailunCategoryId
()
==
null
?
other
.
getBailunCategoryId
()
==
null
:
this
.
getBailunCategoryId
().
equals
(
other
.
getBailunCategoryId
()))
&&
(
this
.
getOnedayTotalSales
()
==
null
?
other
.
getOnedayTotalSales
()
==
null
:
this
.
getOnedayTotalSales
().
equals
(
other
.
getOnedayTotalSales
()))
&&
(
this
.
getOnedayTotalSales
()
==
null
?
other
.
getOnedayTotalSales
()
==
null
:
this
.
getOnedayTotalSales
().
equals
(
other
.
getOnedayTotalSales
()))
&&
(
this
.
getOnedayTotalSalesAmount
()
==
null
?
other
.
getOnedayTotalSalesAmount
()
==
null
:
this
.
getOnedayTotalSalesAmount
().
equals
(
other
.
getOnedayTotalSalesAmount
()))
&&
(
this
.
getThreedayTotalSales
()
==
null
?
other
.
getThreedayTotalSales
()
==
null
:
this
.
getThreedayTotalSales
().
equals
(
other
.
getThreedayTotalSales
()))
&&
(
this
.
getThreedayTotalSales
()
==
null
?
other
.
getThreedayTotalSales
()
==
null
:
this
.
getThreedayTotalSales
().
equals
(
other
.
getThreedayTotalSales
()))
&&
(
this
.
getSevendayTotalSales
()
==
null
?
other
.
getSevendayTotalSales
()
==
null
:
this
.
getSevendayTotalSales
().
equals
(
other
.
getSevendayTotalSales
()))
&&
(
this
.
getSevendayTotalSales
()
==
null
?
other
.
getSevendayTotalSales
()
==
null
:
this
.
getSevendayTotalSales
().
equals
(
other
.
getSevendayTotalSales
()))
&&
(
this
.
getFourteendayTotalSales
()
==
null
?
other
.
getFourteendayTotalSales
()
==
null
:
this
.
getFourteendayTotalSales
().
equals
(
other
.
getFourteendayTotalSales
()))
&&
(
this
.
getFourteendayTotalSales
()
==
null
?
other
.
getFourteendayTotalSales
()
==
null
:
this
.
getFourteendayTotalSales
().
equals
(
other
.
getFourteendayTotalSales
()))
...
@@ -272,7 +292,8 @@ public class DcDailySales {
...
@@ -272,7 +292,8 @@ public class DcDailySales {
&&
(
this
.
getGlobalCompanyId
()
==
null
?
other
.
getGlobalCompanyId
()
==
null
:
this
.
getGlobalCompanyId
().
equals
(
other
.
getGlobalCompanyId
()))
&&
(
this
.
getGlobalCompanyId
()
==
null
?
other
.
getGlobalCompanyId
()
==
null
:
this
.
getGlobalCompanyId
().
equals
(
other
.
getGlobalCompanyId
()))
&&
(
this
.
getGlobalCompanyCode
()
==
null
?
other
.
getGlobalCompanyCode
()
==
null
:
this
.
getGlobalCompanyCode
().
equals
(
other
.
getGlobalCompanyCode
()))
&&
(
this
.
getGlobalCompanyCode
()
==
null
?
other
.
getGlobalCompanyCode
()
==
null
:
this
.
getGlobalCompanyCode
().
equals
(
other
.
getGlobalCompanyCode
()))
&&
(
this
.
getGlobalCompanyName
()
==
null
?
other
.
getGlobalCompanyName
()
==
null
:
this
.
getGlobalCompanyName
().
equals
(
other
.
getGlobalCompanyName
()))
&&
(
this
.
getGlobalCompanyName
()
==
null
?
other
.
getGlobalCompanyName
()
==
null
:
this
.
getGlobalCompanyName
().
equals
(
other
.
getGlobalCompanyName
()))
&&
(
this
.
getRecordDate
()
==
null
?
other
.
getRecordDate
()
==
null
:
this
.
getRecordDate
().
equals
(
other
.
getRecordDate
()));
&&
(
this
.
getRecordDate
()
==
null
?
other
.
getRecordDate
()
==
null
:
this
.
getRecordDate
().
equals
(
other
.
getRecordDate
()))
&&
(
this
.
getCompanyId
()
==
null
?
other
.
getCompanyId
()
==
null
:
this
.
getCompanyId
().
equals
(
other
.
getCompanyId
()));
}
}
/**
/**
...
@@ -292,6 +313,7 @@ public class DcDailySales {
...
@@ -292,6 +313,7 @@ public class DcDailySales {
result
=
prime
*
result
+
((
getWarehouseCode
()
==
null
)
?
0
:
getWarehouseCode
().
hashCode
());
result
=
prime
*
result
+
((
getWarehouseCode
()
==
null
)
?
0
:
getWarehouseCode
().
hashCode
());
result
=
prime
*
result
+
((
getBailunCategoryId
()
==
null
)
?
0
:
getBailunCategoryId
().
hashCode
());
result
=
prime
*
result
+
((
getBailunCategoryId
()
==
null
)
?
0
:
getBailunCategoryId
().
hashCode
());
result
=
prime
*
result
+
((
getOnedayTotalSales
()
==
null
)
?
0
:
getOnedayTotalSales
().
hashCode
());
result
=
prime
*
result
+
((
getOnedayTotalSales
()
==
null
)
?
0
:
getOnedayTotalSales
().
hashCode
());
result
=
prime
*
result
+
((
getOnedayTotalSalesAmount
()
==
null
)
?
0
:
getOnedayTotalSalesAmount
().
hashCode
());
result
=
prime
*
result
+
((
getThreedayTotalSales
()
==
null
)
?
0
:
getThreedayTotalSales
().
hashCode
());
result
=
prime
*
result
+
((
getThreedayTotalSales
()
==
null
)
?
0
:
getThreedayTotalSales
().
hashCode
());
result
=
prime
*
result
+
((
getSevendayTotalSales
()
==
null
)
?
0
:
getSevendayTotalSales
().
hashCode
());
result
=
prime
*
result
+
((
getSevendayTotalSales
()
==
null
)
?
0
:
getSevendayTotalSales
().
hashCode
());
result
=
prime
*
result
+
((
getFourteendayTotalSales
()
==
null
)
?
0
:
getFourteendayTotalSales
().
hashCode
());
result
=
prime
*
result
+
((
getFourteendayTotalSales
()
==
null
)
?
0
:
getFourteendayTotalSales
().
hashCode
());
...
@@ -306,6 +328,7 @@ public class DcDailySales {
...
@@ -306,6 +328,7 @@ public class DcDailySales {
result
=
prime
*
result
+
((
getGlobalCompanyCode
()
==
null
)
?
0
:
getGlobalCompanyCode
().
hashCode
());
result
=
prime
*
result
+
((
getGlobalCompanyCode
()
==
null
)
?
0
:
getGlobalCompanyCode
().
hashCode
());
result
=
prime
*
result
+
((
getGlobalCompanyName
()
==
null
)
?
0
:
getGlobalCompanyName
().
hashCode
());
result
=
prime
*
result
+
((
getGlobalCompanyName
()
==
null
)
?
0
:
getGlobalCompanyName
().
hashCode
());
result
=
prime
*
result
+
((
getRecordDate
()
==
null
)
?
0
:
getRecordDate
().
hashCode
());
result
=
prime
*
result
+
((
getRecordDate
()
==
null
)
?
0
:
getRecordDate
().
hashCode
());
result
=
prime
*
result
+
((
getCompanyId
()
==
null
)
?
0
:
getCompanyId
().
hashCode
());
return
result
;
return
result
;
}
}
}
}
\ No newline at end of file
data-common/src/main/java/com/bailuntec/domain/example/DcDailySalesExample.java
View file @
8322a5c4
...
@@ -832,6 +832,66 @@ public class DcDailySalesExample {
...
@@ -832,6 +832,66 @@ public class DcDailySalesExample {
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
andOnedayTotalSalesAmountIsNull
()
{
addCriterion
(
"oneday_total_sales_amount is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andOnedayTotalSalesAmountIsNotNull
()
{
addCriterion
(
"oneday_total_sales_amount is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andOnedayTotalSalesAmountEqualTo
(
BigDecimal
value
)
{
addCriterion
(
"oneday_total_sales_amount ="
,
value
,
"onedayTotalSalesAmount"
);
return
(
Criteria
)
this
;
}
public
Criteria
andOnedayTotalSalesAmountNotEqualTo
(
BigDecimal
value
)
{
addCriterion
(
"oneday_total_sales_amount <>"
,
value
,
"onedayTotalSalesAmount"
);
return
(
Criteria
)
this
;
}
public
Criteria
andOnedayTotalSalesAmountGreaterThan
(
BigDecimal
value
)
{
addCriterion
(
"oneday_total_sales_amount >"
,
value
,
"onedayTotalSalesAmount"
);
return
(
Criteria
)
this
;
}
public
Criteria
andOnedayTotalSalesAmountGreaterThanOrEqualTo
(
BigDecimal
value
)
{
addCriterion
(
"oneday_total_sales_amount >="
,
value
,
"onedayTotalSalesAmount"
);
return
(
Criteria
)
this
;
}
public
Criteria
andOnedayTotalSalesAmountLessThan
(
BigDecimal
value
)
{
addCriterion
(
"oneday_total_sales_amount <"
,
value
,
"onedayTotalSalesAmount"
);
return
(
Criteria
)
this
;
}
public
Criteria
andOnedayTotalSalesAmountLessThanOrEqualTo
(
BigDecimal
value
)
{
addCriterion
(
"oneday_total_sales_amount <="
,
value
,
"onedayTotalSalesAmount"
);
return
(
Criteria
)
this
;
}
public
Criteria
andOnedayTotalSalesAmountIn
(
List
<
BigDecimal
>
values
)
{
addCriterion
(
"oneday_total_sales_amount in"
,
values
,
"onedayTotalSalesAmount"
);
return
(
Criteria
)
this
;
}
public
Criteria
andOnedayTotalSalesAmountNotIn
(
List
<
BigDecimal
>
values
)
{
addCriterion
(
"oneday_total_sales_amount not in"
,
values
,
"onedayTotalSalesAmount"
);
return
(
Criteria
)
this
;
}
public
Criteria
andOnedayTotalSalesAmountBetween
(
BigDecimal
value1
,
BigDecimal
value2
)
{
addCriterion
(
"oneday_total_sales_amount between"
,
value1
,
value2
,
"onedayTotalSalesAmount"
);
return
(
Criteria
)
this
;
}
public
Criteria
andOnedayTotalSalesAmountNotBetween
(
BigDecimal
value1
,
BigDecimal
value2
)
{
addCriterion
(
"oneday_total_sales_amount not between"
,
value1
,
value2
,
"onedayTotalSalesAmount"
);
return
(
Criteria
)
this
;
}
public
Criteria
andThreedayTotalSalesIsNull
()
{
public
Criteria
andThreedayTotalSalesIsNull
()
{
addCriterion
(
"threeday_total_sales is null"
);
addCriterion
(
"threeday_total_sales is null"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
...
@@ -1691,6 +1751,66 @@ public class DcDailySalesExample {
...
@@ -1691,6 +1751,66 @@ public class DcDailySalesExample {
addCriterion
(
"record_date not between"
,
value1
,
value2
,
"recordDate"
);
addCriterion
(
"record_date not between"
,
value1
,
value2
,
"recordDate"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
andCompanyIdIsNull
()
{
addCriterion
(
"company_id is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCompanyIdIsNotNull
()
{
addCriterion
(
"company_id is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCompanyIdEqualTo
(
Integer
value
)
{
addCriterion
(
"company_id ="
,
value
,
"companyId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCompanyIdNotEqualTo
(
Integer
value
)
{
addCriterion
(
"company_id <>"
,
value
,
"companyId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCompanyIdGreaterThan
(
Integer
value
)
{
addCriterion
(
"company_id >"
,
value
,
"companyId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCompanyIdGreaterThanOrEqualTo
(
Integer
value
)
{
addCriterion
(
"company_id >="
,
value
,
"companyId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCompanyIdLessThan
(
Integer
value
)
{
addCriterion
(
"company_id <"
,
value
,
"companyId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCompanyIdLessThanOrEqualTo
(
Integer
value
)
{
addCriterion
(
"company_id <="
,
value
,
"companyId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCompanyIdIn
(
List
<
Integer
>
values
)
{
addCriterion
(
"company_id in"
,
values
,
"companyId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCompanyIdNotIn
(
List
<
Integer
>
values
)
{
addCriterion
(
"company_id not in"
,
values
,
"companyId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCompanyIdBetween
(
Integer
value1
,
Integer
value2
)
{
addCriterion
(
"company_id between"
,
value1
,
value2
,
"companyId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCompanyIdNotBetween
(
Integer
value1
,
Integer
value2
)
{
addCriterion
(
"company_id not between"
,
value1
,
value2
,
"companyId"
);
return
(
Criteria
)
this
;
}
}
}
/**
/**
...
@@ -1922,6 +2042,6 @@ public class DcDailySalesExample {
...
@@ -1922,6 +2042,6 @@ public class DcDailySalesExample {
* @mbg.generated
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
*/
void
example
(
DcDailySalesExample
example
);
void
example
(
com
.
bailuntec
.
domain
.
example
.
DcDailySalesExample
example
);
}
}
}
}
\ No newline at end of file
data-common/src/main/java/com/bailuntec/mapper/DcDailySalesMapper.xml
View file @
8322a5c4
This diff is collapsed.
Click to expand it.
data-common/src/main/resources/init.properties
View file @
8322a5c4
table-name
=
dc_
base_finance_amazon_ad_product
table-name
=
dc_
daily_sales
data-mid/mid-calculate-sales/src/main/java/com/bailuntec/job/CalculateSalesJob.java
View file @
8322a5c4
package
com
.
bailuntec
.
job
;
package
com
.
bailuntec
.
job
;
import
com.bailuntec.mapper.DcDailySalesMapper
;
import
com.bailuntec.mapper.DcDailySalesMapper
;
import
com.bailuntec.utils.SessionUtil
;
import
com.bailuntec.utils.SessionUtil
;
import
com.dangdang.ddframe.job.api.ShardingContext
;
import
com.dangdang.ddframe.job.api.ShardingContext
;
import
com.dangdang.ddframe.job.api.simple.SimpleJob
;
import
com.dangdang.ddframe.job.api.simple.SimpleJob
;
...
@@ -11,6 +12,7 @@ public class CalculateSalesJob implements SimpleJob {
...
@@ -11,6 +12,7 @@ public class CalculateSalesJob implements SimpleJob {
try
{
try
{
DcDailySalesMapper
mapper
=
SessionUtil
.
getSession
().
getMapper
(
DcDailySalesMapper
.
class
);
DcDailySalesMapper
mapper
=
SessionUtil
.
getSession
().
getMapper
(
DcDailySalesMapper
.
class
);
mapper
.
calculateSales
();
mapper
.
calculateSales
();
SessionUtil
.
getSession
().
commit
();
SessionUtil
.
getSession
().
commit
();
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
e
.
printStackTrace
();
...
...
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