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
63e5a440
Commit
63e5a440
authored
Aug 25, 2023
by
jianshuqin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改头程费逻辑
parent
b6f37f38
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
362 additions
and
40 deletions
+362
-40
job.properties
...se/base-sync-cost-first/src/main/resources/job.properties
+1
-1
SyncCostFirstTest.java
...base-sync-cost-first/src/test/java/SyncCostFirstTest.java
+12
-2
SyncSkuTest.java
...-base/base-sync-crm-refund/src/test/java/SyncSkuTest.java
+1
-1
OrderSyncJob.java
...s-order/src/main/java/com/bailuntec/job/OrderSyncJob.java
+42
-32
DcBaseProfitCostFirst.java
...va/com/bailuntec/domain/entity/DcBaseProfitCostFirst.java
+178
-0
DcBaseProfitCostFirstExample.java
...ailuntec/domain/example/DcBaseProfitCostFirstExample.java
+0
-0
DcBaseProfitCostFirstMapper.java
...ava/com/bailuntec/mapper/DcBaseProfitCostFirstMapper.java
+124
-0
DcBaseProfitCostFirstMapper.xml
...java/com/bailuntec/mapper/DcBaseProfitCostFirstMapper.xml
+0
-0
init.properties
data-common/src/main/resources/init.properties
+1
-1
job.properties
...show/show-auto-turnover/src/main/resources/job.properties
+2
-2
AutoTurnoverTest.java
...ow/show-auto-turnover/src/test/java/AutoTurnoverTest.java
+1
-1
No files found.
data-base/base-sync-cost-first/src/main/resources/job.properties
View file @
63e5a440
#EVENT_RDB_STORAGE_DRIVER=com.mysql.jdbc.Driver
#EVENT_RDB_STORAGE_DRIVER=com.mysql.jdbc.Driver
EVENT_RDB_STORAGE_URL
=
jdbc:mysql://gz-cdb-kp7s5i79.sql.tencentcdb.com:61691/bailun_datacenter?useUnicode=true&characterEncoding=utf-8
EVENT_RDB_STORAGE_URL
=
jdbc:mysql://gz-cdb-kp7s5i79.sql.tencentcdb.com:61691/bailun_datacenter?useUnicode=true&characterEncoding=utf-8
&zeroDateTimeBehavior=convertToNull&rewriteBatchedStatements=true&useSSL=false
#EVENT_RDB_STORAGE_USERNAME=root
#EVENT_RDB_STORAGE_USERNAME=root
#EVENT_RDB_STORAGE_PASSWORD=123456
#EVENT_RDB_STORAGE_PASSWORD=123456
...
...
data-base/base-sync-cost-first/src/test/java/SyncCostFirstTest.java
View file @
63e5a440
import
com.bailuntec.domain.entity.JobPointLog
;
import
com.bailuntec.domain.entity.JobPointLog
;
import
com.bailuntec.job.SyncCostFirstFinishJob
;
import
com.bailuntec.job.SyncCostFirstJob
;
import
com.bailuntec.job.SyncCostFirstJob
;
import
org.junit.jupiter.api.Test
;
import
org.junit.jupiter.api.Test
;
...
@@ -10,8 +11,17 @@ public class SyncCostFirstTest {
...
@@ -10,8 +11,17 @@ public class SyncCostFirstTest {
public
void
test
()
{
public
void
test
()
{
SyncCostFirstJob
syncCostFirstJob
=
new
SyncCostFirstJob
();
SyncCostFirstJob
syncCostFirstJob
=
new
SyncCostFirstJob
();
JobPointLog
jobPointLog
=
new
JobPointLog
(
"base-sync-cost-first"
,
1
,
1
,
1
,
1
,
JobPointLog
jobPointLog
=
new
JobPointLog
(
"base-sync-cost-first"
,
1
,
1
,
1
,
1
,
LocalDateTime
.
of
(
202
0
,
8
,
1
,
0
,
0
,
0
),
LocalDateTime
.
of
(
202
1
,
12
,
8
,
15
,
4
0
,
0
),
LocalDateTime
.
of
(
202
0
,
9
,
10
,
0
,
0
,
0
));
LocalDateTime
.
of
(
202
1
,
12
,
8
,
15
,
5
0
,
0
));
syncCostFirstJob
.
executeJob
(
null
,
jobPointLog
);
syncCostFirstJob
.
executeJob
(
null
,
jobPointLog
);
}
}
@Test
public
void
test2
()
{
SyncCostFirstFinishJob
syncCostFirstFinishJob
=
new
SyncCostFirstFinishJob
();
JobPointLog
jobPointLog
=
new
JobPointLog
(
"base-sync-cost-first-finish"
,
1
,
1
,
1
,
1
,
LocalDateTime
.
of
(
2022
,
01
,
18
,
2
,
00
,
0
),
LocalDateTime
.
of
(
2022
,
01
,
18
,
2
,
01
,
0
));
syncCostFirstFinishJob
.
executeJob
(
null
,
jobPointLog
);
}
}
}
data-base/base-sync-crm-refund/src/test/java/SyncSkuTest.java
View file @
63e5a440
...
@@ -9,7 +9,7 @@ public class SyncSkuTest {
...
@@ -9,7 +9,7 @@ public class SyncSkuTest {
@Test
@Test
public
void
test
()
{
public
void
test
()
{
CrmRefundSyncJob
crmRefundSyncJob
=
new
CrmRefundSyncJob
();
CrmRefundSyncJob
crmRefundSyncJob
=
new
CrmRefundSyncJob
();
crmRefundSyncJob
.
executeJob
(
null
,
new
JobPointLog
(
"base-sku"
,
1
,
100
,
1
,
1
,
LocalDateTime
.
now
(),
LocalDateTime
.
now
(
)));
crmRefundSyncJob
.
executeJob
(
null
,
new
JobPointLog
(
"base-sku"
,
1
,
100
,
1
,
1
,
LocalDateTime
.
of
(
2023
,
3
,
26
,
0
,
0
,
0
),
LocalDateTime
.
of
(
2023
,
4
,
5
,
0
,
0
,
0
)));
}
}
@Test
@Test
public
void
test1
()
{
public
void
test1
()
{
...
...
data-base/base-sync-oms-order/src/main/java/com/bailuntec/job/OrderSyncJob.java
View file @
63e5a440
...
@@ -652,44 +652,54 @@ public class OrderSyncJob extends PointJob {
...
@@ -652,44 +652,54 @@ public class OrderSyncJob extends PointJob {
return dcBaseOmsOrder1.getCostFirst();
return dcBaseOmsOrder1.getCostFirst();
}
}
}*/
}*/
DcBaseOmsConfigCostFirstMapper
costFirstMapper
=
SessionUtil
.
getSession
().
getMapper
(
DcBaseOmsConfigCostFirstMapper
.
class
);
DcBaseProfitCostFirstMapper
profitCostFirstMapper
=
SessionUtil
.
getSession
().
getMapper
(
DcBaseProfitCostFirstMapper
.
class
);
DcBaseOmsConfigCostFirst
omsConfigCostFirst
=
costFirstMapper
.
selectOneByExample
(
DcBaseOmsConfigCostFirstExample
.
newAndCreateCriteria
().
andCompanyIdEqualTo
(
dcBaseOmsSku
.
getCompanyId
()).
andBailunSkuEqualTo
(
dcBaseOmsSku
.
getBailunSku
()).
andWarehouseCodeEqualTo
(
dcBaseOmsSku
.
getWarehouseCode
()).
example
());
DcBaseProfitCostFirst
profitCostFirst
=
profitCostFirstMapper
.
selectOneByExample
(
DcBaseProfitCostFirstExample
.
newAndCreateCriteria
().
andBailunSkuEqualTo
(
dcBaseOmsSku
.
getBailunSku
()).
andWarehouseCodeEqualTo
(
dcBaseOmsSku
.
getWarehouseCode
()).
example
());
DcBaseCostFurnishingMapper
costFurnishingMapper
=
SessionUtil
.
getSession
().
getMapper
(
DcBaseCostFurnishingMapper
.
class
);
if
(
profitCostFirst
==
null
)
{
//尚品头程费
//尚品头程费
if
(
dcBaseOmsSku
.
getCompanyId
()
==
28896
){
if
(
dcBaseOmsSku
.
getCompanyId
()
==
28896
){
BigDecimal
costFirst
=
costFurnishingMapper
.
selectSkuCostFirst
(
dcBaseOmsSku
.
getBailunSku
(),
dcBaseOmsSku
.
getCreateTime
());
DcBaseCostFurnishingMapper
costFurnishingMapper
=
SessionUtil
.
getSession
().
getMapper
(
DcBaseCostFurnishingMapper
.
class
);
if
(
costFirst
!=
null
)
{
BigDecimal
costFirst
=
costFurnishingMapper
.
selectSkuCostFirst
(
dcBaseOmsSku
.
getBailunSku
(),
dcBaseOmsSku
.
getCreateTime
());
dcBaseOmsSku
.
setCostFirst
(
costFirst
);
if
(
costFirst
!=
null
)
{
dcBaseOmsSku
.
setCostFirst
(
costFirst
);
}
}
}
}
DcBaseOmsConfigCostFirstMapper
costFirstMapper
=
SessionUtil
.
getSession
().
getMapper
(
DcBaseOmsConfigCostFirstMapper
.
class
);
if
(
omsConfigCostFirst
!=
null
)
{
DcBaseOmsConfigCostFirst
omsConfigCostFirst
=
costFirstMapper
.
selectOneByExample
(
DcBaseOmsConfigCostFirstExample
.
newAndCreateCriteria
().
andCompanyIdEqualTo
(
dcBaseOmsSku
.
getCompanyId
()).
andBailunSkuEqualTo
(
dcBaseOmsSku
.
getBailunSku
()).
andWarehouseCodeEqualTo
(
dcBaseOmsSku
.
getWarehouseCode
()).
example
());
dcBaseOmsSku
.
setCostFirst
(
bailunSkuStructure
.
getBailunSkuWeight
().
multiply
(
omsConfigCostFirst
.
getPrice
()).
setScale
(
5
,
RoundingMode
.
HALF_EVEN
));
if
(
omsConfigCostFirst
!=
null
)
{
}
else
if
(
dcBaseOmsSku
.
getCompanyId
()
!=
28896
||
dcBaseOmsSku
.
getCostFirst
()
==
null
||
dcBaseOmsSku
.
getCostFirst
().
compareTo
(
BigDecimal
.
ZERO
)
<
1
)
{
dcBaseOmsSku
.
setCostFirst
(
bailunSkuStructure
.
getBailunSkuWeight
().
multiply
(
omsConfigCostFirst
.
getPrice
()).
setScale
(
5
,
RoundingMode
.
HALF_EVEN
));
DcMidCostFirstMapper
mapper
=
SessionUtil
.
getSession
().
getMapper
(
DcMidCostFirstMapper
.
class
);
}
else
if
(
dcBaseOmsSku
.
getCompanyId
()
!=
28896
||
dcBaseOmsSku
.
getCostFirst
()
==
null
||
dcBaseOmsSku
.
getCostFirst
().
compareTo
(
BigDecimal
.
ZERO
)
<
1
)
{
DcMidCostFirst
dcMidCostFirst
=
mapper
.
selectOneByExample
(
DcMidCostFirstExample
.
newAndCreateCriteria
()
DcMidCostFirstMapper
mapper
=
SessionUtil
.
getSession
().
getMapper
(
DcMidCostFirstMapper
.
class
);
.
andBailunSkuEqualTo
(
dcBaseOmsSku
.
getBailunSku
())
DcMidCostFirst
dcMidCostFirst
=
mapper
.
selectOneByExample
(
DcMidCostFirstExample
.
newAndCreateCriteria
()
.
andWarehouseCodeEqualTo
(
dcBaseWarehouse
.
getWarehouseCode
())
.
andBailunSkuEqualTo
(
dcBaseOmsSku
.
getBailunSku
())
.
example
());
.
andWarehouseCodeEqualTo
(
dcBaseWarehouse
.
getWarehouseCode
())
//如果dcMidCostFirst查不到,铭哥那边商量好了,头程0的,先跑调拨单,若是真是之前的SKU无法找到的,那先按FBA平台US站点按10元1KG来计算,其他站点按15元1KG来计算,其他平台取值按38元1KG来计算。
.
example
());
if
(
dcMidCostFirst
==
null
)
{
//如果dcMidCostFirst查不到,铭哥那边商量好了,头程0的,先跑调拨单,若是真是之前的SKU无法找到的,那先按FBA平台US站点按10元1KG来计算,其他站点按15元1KG来计算,其他平台取值按38元1KG来计算。
dcMidCostFirst
=
new
DcMidCostFirst
();
if
(
dcMidCostFirst
==
null
)
{
dcMidCostFirst
.
setHasCalculation
(
Boolean
.
TRUE
);
dcMidCostFirst
=
new
DcMidCostFirst
();
BigDecimal
costFirstPrice
=
BigDecimal
.
ZERO
;
dcMidCostFirst
.
setHasCalculation
(
Boolean
.
TRUE
);
if
(
dcBaseOmsOrder
.
getPlatformType
().
toUpperCase
().
equals
(
PlatformType
.
FBA
.
value
()))
{
BigDecimal
costFirstPrice
=
BigDecimal
.
ZERO
;
if
(
dcBaseOmsOrder
.
getWebsite
().
equalsIgnoreCase
(
"US"
))
{
if
(
dcBaseOmsOrder
.
getPlatformType
().
toUpperCase
().
equals
(
PlatformType
.
FBA
.
value
()))
{
costFirstPrice
=
Constant
.
COST_FIRST_PRICE2
;
if
(
dcBaseOmsOrder
.
getWebsite
().
equalsIgnoreCase
(
"US"
))
{
costFirstPrice
=
Constant
.
COST_FIRST_PRICE2
;
}
else
{
costFirstPrice
=
Constant
.
COST_FIRST_PRICE3
;
}
}
else
{
}
else
{
costFirstPrice
=
Constant
.
COST_FIRST_PRICE
3
;
costFirstPrice
=
Constant
.
COST_FIRST_PRICE
;
}
}
dcMidCostFirst
.
setCostFirst
(
bailunSkuStructure
.
getBailunSkuWeight
().
multiply
(
costFirstPrice
).
setScale
(
5
,
RoundingMode
.
HALF_EVEN
));
}
if
(
dcMidCostFirst
.
getHasCalculation
())
{
dcBaseOmsSku
.
setCostFirst
(
dcMidCostFirst
.
getCostFirst
());
}
else
{
}
else
{
costFirstPrice
=
Constant
.
COST_FIRST_PRICE
;
dcBaseOmsOrder
.
setCostFirst
(
BigDecimal
.
ZERO
)
;
}
}
dcMidCostFirst
.
setCostFirst
(
bailunSkuStructure
.
getBailunSkuWeight
().
multiply
(
costFirstPrice
).
setScale
(
5
,
RoundingMode
.
HALF_EVEN
));
}
}
if
(
dcMidCostFirst
.
getHasCalculation
())
{
}
else
{
dcBaseOmsSku
.
setCostFirst
(
dcMidCostFirst
.
getCostFirst
());
DcBaseOmsSkuMapper
baseOmsSkuMapper
=
SessionUtil
.
getSession
().
getMapper
(
DcBaseOmsSkuMapper
.
class
);
}
else
{
DcBaseOmsSku
baseOmsSku
=
baseOmsSkuMapper
.
selectOneByExample
(
DcBaseOmsSkuExample
.
newAndCreateCriteria
().
andOriginOrderIdEqualTo
(
dcBaseOmsSku
.
getOriginOrderId
()).
andBailunAccountIdEqualTo
(
dcBaseOmsSku
.
getBailunAccountId
()).
andBailunSkuEqualTo
(
dcBaseOmsSku
.
getBailunSku
()).
example
());
dcBaseOmsOrder
.
setCostFirst
(
BigDecimal
.
ZERO
);
if
(
baseOmsSku
!=
null
)
{
dcBaseOmsSku
.
setCostFirst
(
baseOmsSku
.
getCostFirst
());
}
}
}
}
totalCostFirst
=
totalCostFirst
.
add
(
dcBaseOmsSku
.
getCostFirst
().
multiply
(
BigDecimal
.
valueOf
(
dcBaseOmsSku
.
getBailunSkuQuantityShipped
())));
totalCostFirst
=
totalCostFirst
.
add
(
dcBaseOmsSku
.
getCostFirst
().
multiply
(
BigDecimal
.
valueOf
(
dcBaseOmsSku
.
getBailunSkuQuantityShipped
())));
...
...
data-common/src/main/java/com/bailuntec/domain/entity/DcBaseProfitCostFirst.java
0 → 100644
View file @
63e5a440
package
com
.
bailuntec
.
domain
.
entity
;
import
java.math.BigDecimal
;
import
java.time.LocalDateTime
;
import
lombok.Data
;
@Data
public
class
DcBaseProfitCostFirst
{
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column dc_base_profit_cost_first.id
*
* @mbg.generated
*/
private
Integer
id
;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column dc_base_profit_cost_first.bailun_sku
*
* @mbg.generated
*/
private
String
bailunSku
;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column dc_base_profit_cost_first.warehouse_code
*
* @mbg.generated
*/
private
String
warehouseCode
;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column dc_base_profit_cost_first.cost_time
*
* @mbg.generated
*/
private
LocalDateTime
costTime
;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column dc_base_profit_cost_first.cost_freight
*
* @mbg.generated
*/
private
BigDecimal
costFreight
;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column dc_base_profit_cost_first.cost_first
*
* @mbg.generated
*/
private
BigDecimal
costFirst
;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column dc_base_profit_cost_first.quantity
*
* @mbg.generated
*/
private
Integer
quantity
;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column dc_base_profit_cost_first.accumulate_quantity
*
* @mbg.generated
*/
private
Integer
accumulateQuantity
;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column dc_base_profit_cost_first.gmt_create
*
* @mbg.generated
*/
private
LocalDateTime
gmtCreate
;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column dc_base_profit_cost_first.gmt_modified
*
* @mbg.generated
*/
private
LocalDateTime
gmtModified
;
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_base_profit_cost_first
*
* @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
(
", bailunSku="
).
append
(
bailunSku
);
sb
.
append
(
", warehouseCode="
).
append
(
warehouseCode
);
sb
.
append
(
", costTime="
).
append
(
costTime
);
sb
.
append
(
", costFreight="
).
append
(
costFreight
);
sb
.
append
(
", costFirst="
).
append
(
costFirst
);
sb
.
append
(
", quantity="
).
append
(
quantity
);
sb
.
append
(
", accumulateQuantity="
).
append
(
accumulateQuantity
);
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_profit_cost_first
*
* @mbg.generated
*/
@Override
public
boolean
equals
(
Object
that
)
{
if
(
this
==
that
)
{
return
true
;
}
if
(
that
==
null
)
{
return
false
;
}
if
(
getClass
()
!=
that
.
getClass
())
{
return
false
;
}
DcBaseProfitCostFirst
other
=
(
DcBaseProfitCostFirst
)
that
;
return
(
this
.
getId
()
==
null
?
other
.
getId
()
==
null
:
this
.
getId
().
equals
(
other
.
getId
()))
&&
(
this
.
getBailunSku
()
==
null
?
other
.
getBailunSku
()
==
null
:
this
.
getBailunSku
().
equals
(
other
.
getBailunSku
()))
&&
(
this
.
getWarehouseCode
()
==
null
?
other
.
getWarehouseCode
()
==
null
:
this
.
getWarehouseCode
().
equals
(
other
.
getWarehouseCode
()))
&&
(
this
.
getCostTime
()
==
null
?
other
.
getCostTime
()
==
null
:
this
.
getCostTime
().
equals
(
other
.
getCostTime
()))
&&
(
this
.
getCostFreight
()
==
null
?
other
.
getCostFreight
()
==
null
:
this
.
getCostFreight
().
equals
(
other
.
getCostFreight
()))
&&
(
this
.
getCostFirst
()
==
null
?
other
.
getCostFirst
()
==
null
:
this
.
getCostFirst
().
equals
(
other
.
getCostFirst
()))
&&
(
this
.
getQuantity
()
==
null
?
other
.
getQuantity
()
==
null
:
this
.
getQuantity
().
equals
(
other
.
getQuantity
()))
&&
(
this
.
getAccumulateQuantity
()
==
null
?
other
.
getAccumulateQuantity
()
==
null
:
this
.
getAccumulateQuantity
().
equals
(
other
.
getAccumulateQuantity
()))
&&
(
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_profit_cost_first
*
* @mbg.generated
*/
@Override
public
int
hashCode
()
{
final
int
prime
=
31
;
int
result
=
1
;
result
=
prime
*
result
+
((
getId
()
==
null
)
?
0
:
getId
().
hashCode
());
result
=
prime
*
result
+
((
getBailunSku
()
==
null
)
?
0
:
getBailunSku
().
hashCode
());
result
=
prime
*
result
+
((
getWarehouseCode
()
==
null
)
?
0
:
getWarehouseCode
().
hashCode
());
result
=
prime
*
result
+
((
getCostTime
()
==
null
)
?
0
:
getCostTime
().
hashCode
());
result
=
prime
*
result
+
((
getCostFreight
()
==
null
)
?
0
:
getCostFreight
().
hashCode
());
result
=
prime
*
result
+
((
getCostFirst
()
==
null
)
?
0
:
getCostFirst
().
hashCode
());
result
=
prime
*
result
+
((
getQuantity
()
==
null
)
?
0
:
getQuantity
().
hashCode
());
result
=
prime
*
result
+
((
getAccumulateQuantity
()
==
null
)
?
0
:
getAccumulateQuantity
().
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
data-common/src/main/java/com/bailuntec/domain/example/DcBaseProfitCostFirstExample.java
0 → 100644
View file @
63e5a440
This diff is collapsed.
Click to expand it.
data-common/src/main/java/com/bailuntec/mapper/DcBaseProfitCostFirstMapper.java
0 → 100644
View file @
63e5a440
package
com
.
bailuntec
.
mapper
;
import
com.bailuntec.domain.entity.DcBaseProfitCostFirst
;
import
com.bailuntec.domain.example.DcBaseProfitCostFirstExample
;
import
java.util.List
;
import
org.apache.ibatis.annotations.Param
;
public
interface
DcBaseProfitCostFirstMapper
{
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_base_profit_cost_first
*
* @mbg.generated
*/
long
countByExample
(
DcBaseProfitCostFirstExample
example
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_base_profit_cost_first
*
* @mbg.generated
*/
int
deleteByExample
(
DcBaseProfitCostFirstExample
example
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_base_profit_cost_first
*
* @mbg.generated
*/
int
deleteByPrimaryKey
(
Integer
id
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_base_profit_cost_first
*
* @mbg.generated
*/
int
insert
(
DcBaseProfitCostFirst
record
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_base_profit_cost_first
*
* @mbg.generated
*/
int
insertSelective
(
DcBaseProfitCostFirst
record
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_base_profit_cost_first
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
DcBaseProfitCostFirst
selectOneByExample
(
DcBaseProfitCostFirstExample
example
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_base_profit_cost_first
*
* @mbg.generated
*/
List
<
DcBaseProfitCostFirst
>
selectByExample
(
DcBaseProfitCostFirstExample
example
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_base_profit_cost_first
*
* @mbg.generated
*/
DcBaseProfitCostFirst
selectByPrimaryKey
(
Integer
id
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_base_profit_cost_first
*
* @mbg.generated
*/
int
updateByExampleSelective
(
@Param
(
"record"
)
DcBaseProfitCostFirst
record
,
@Param
(
"example"
)
DcBaseProfitCostFirstExample
example
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_base_profit_cost_first
*
* @mbg.generated
*/
int
updateByExample
(
@Param
(
"record"
)
DcBaseProfitCostFirst
record
,
@Param
(
"example"
)
DcBaseProfitCostFirstExample
example
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_base_profit_cost_first
*
* @mbg.generated
*/
int
updateByPrimaryKeySelective
(
DcBaseProfitCostFirst
record
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_base_profit_cost_first
*
* @mbg.generated
*/
int
updateByPrimaryKey
(
DcBaseProfitCostFirst
record
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_base_profit_cost_first
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
int
upsert
(
DcBaseProfitCostFirst
record
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dc_base_profit_cost_first
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
int
upsertSelective
(
DcBaseProfitCostFirst
record
);
}
\ No newline at end of file
data-common/src/main/java/com/bailuntec/mapper/DcBaseProfitCostFirstMapper.xml
0 → 100644
View file @
63e5a440
This diff is collapsed.
Click to expand it.
data-common/src/main/resources/init.properties
View file @
63e5a440
table-name
=
dc_base_
transfer_plan
table-name
=
dc_base_
profit_cost_first
data-show/show-auto-turnover/src/main/resources/job.properties
View file @
63e5a440
...
@@ -13,7 +13,7 @@ NAME_SPACE=data-center
...
@@ -13,7 +13,7 @@ NAME_SPACE=data-center
#JOB_NAME_WEEK=show-auto-turnover-week
#JOB_NAME_WEEK=show-auto-turnover-week
#JOB_NAME_WEEK=0 0 10 ? * MON
#JOB_NAME_WEEK=0 0 10 ? * MON
JOB_NAME
=
show-auto-turnover8
4
JOB_NAME
=
show-auto-turnover8
5
JOB_CRON
=
0 0 3 * * ?
JOB_CRON
=
0 0 3 * * ?
#JOB_CRON=0 0 11 * * ?
#JOB_CRON=0 0 11 * * ?
...
@@ -21,7 +21,7 @@ SHARDING_TOTAL_COUNT=8
...
@@ -21,7 +21,7 @@ SHARDING_TOTAL_COUNT=8
JOB_NAME_NE_NORMAL
=
show-auto-turnover-ne-normal
JOB_NAME_NE_NORMAL
=
show-auto-turnover-ne-normal
JOB_CRON_NE_NORMAL
=
0 0 10 ? * MON
JOB_CRON_NE_NORMAL
=
0 0 10 ? * MON
JOB_NAME_INCREMENT
=
show-auto-turnover-increment1
0
JOB_NAME_INCREMENT
=
show-auto-turnover-increment1
2
JOB_CRON_INCREMENT
=
0 30 13 * * ?
JOB_CRON_INCREMENT
=
0 30 13 * * ?
#JOB_CRON_INCREMENT=0 55 14 * * ?
#JOB_CRON_INCREMENT=0 55 14 * * ?
...
...
data-show/show-auto-turnover/src/test/java/AutoTurnoverTest.java
View file @
63e5a440
...
@@ -75,7 +75,7 @@ public class AutoTurnoverTest {
...
@@ -75,7 +75,7 @@ public class AutoTurnoverTest {
DcBaseStock
dcBaseStock
=
null
;
DcBaseStock
dcBaseStock
=
null
;
try
{
try
{
DcBaseStockMapper
mapper
=
SessionUtil
.
getSession
().
getMapper
(
DcBaseStockMapper
.
class
);
DcBaseStockMapper
mapper
=
SessionUtil
.
getSession
().
getMapper
(
DcBaseStockMapper
.
class
);
dcBaseStock
=
mapper
.
selectOneByExample
(
DcBaseStockExample
.
newAndCreateCriteria
().
andBailunSkuEqualTo
(
"9
53872601
"
).
andWarehouseCodeEqualTo
(
"GZBLWH"
).
example
());
dcBaseStock
=
mapper
.
selectOneByExample
(
DcBaseStockExample
.
newAndCreateCriteria
().
andBailunSkuEqualTo
(
"9
00001085003
"
).
andWarehouseCodeEqualTo
(
"GZBLWH"
).
example
());
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
e
.
printStackTrace
();
}
finally
{
}
finally
{
...
...
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