Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
bailuntec-datacenter
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
bailuntec-datacenter
Commits
b96b99a7
Commit
b96b99a7
authored
Mar 09, 2021
by
huluobin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
# 更新
parent
e6336d15
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
51 additions
and
0 deletions
+51
-0
README.md
README.md
+47
-0
CustomerProcessor.java
.../java/com/bailuntec/task/processor/CustomerProcessor.java
+4
-0
No files found.
README.md
View file @
b96b99a7
...
...
@@ -23,3 +23,50 @@ datacenter-domain: 领域模块
<imageName>
ccr.ccs.tencentyun.com/blt.data.job/ebay-report-produce:latest
</imageName>
```
## 二、项目结构
```
├── data-api
│ ├── src
│ └── target
├── data-base
│ ├── base-sync-amazon-ad
│ ├── base-sync-cashier
│ ├── base-sync-company
│ ├── base-sync-cost-first
│ ├── base-sync-crm-refund
│ ├── base-sync-finance-ebay
│ ├── base-sync-finance-fee
│ ├── base-sync-finance-wish
│ ├── base-sync-oms-order
│ ├── base-sync-paypal
│ ├── base-sync-purchase
│ ├── base-sync-purchase-details
│ ├── base-sync-semi-order
│ ├── base-sync-shopify
│ ├── base-sync-sku
│ ├── base-sync-stock-wms
│ ├── base-sync-transfer
│ └── base-sync-warehouse
├── data-common
│ ├── src
│ └── target
├── data-finance
│ ├── finance-accounting-entry
│ └── finance-balance-sheet
├── data-mid
│ ├── mid-auto-turnover-prepare
│ ├── mid-calculate-cost-first
│ ├── mid-calculate-item
│ ├── mid-calculate-sales
│ ├── mid-calculate-transit
│ ├── mid-daily-stock
│ ├── mid-duration-stock
│ ├── mid-ebay-uk-report
│ └── mid-fba-fee-avg
├── data-show
│ └── show-auto-turnover
├── log
└── target
└── classes
```
datacenter-task/ebay-report-consumer/src/main/java/com/bailuntec/task/processor/CustomerProcessor.java
View file @
b96b99a7
package
com
.
bailuntec
.
task
.
processor
;
import
com.bailuntec.api.bailuntec.oa.OaApi
;
import
com.bailuntec.common.JsonUtilByFsJson
;
import
com.bailuntec.domain.DcBaseCompanyAccount
;
import
com.bailuntec.domain.DcBaseFinanceEbay
;
import
com.bailuntec.infrastructure.util.enumerate.CurrencyType
;
import
com.bailuntec.task.config.JobProperty
;
import
com.bailuntec.task.reader.EbayItem
;
import
com.ebay.soap.eBLBaseComponents.AccountEntryType
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.batch.item.ItemProcessor
;
import
org.springframework.lang.NonNull
;
import
org.springframework.stereotype.Component
;
...
...
@@ -24,6 +26,7 @@ import java.time.ZoneId;
* @author robbendev
* @since 2021/1/21 5:01 下午
*/
@Slf4j
@Component
public
class
CustomerProcessor
implements
ItemProcessor
<
EbayItem
,
DcBaseFinanceEbay
>
{
...
...
@@ -70,6 +73,7 @@ public class CustomerProcessor implements ItemProcessor<EbayItem, DcBaseFinanceE
dcBaseFinanceEbay
.
setCompanyId
(
dcBaseCompanyAccount
.
getCompanyId
());
dcBaseFinanceEbay
.
setBjModified
(
LocalDateTime
.
now
());
log
.
debug
(
JsonUtilByFsJson
.
beanToJson
(
dcBaseFinanceEbay
));
return
dcBaseFinanceEbay
;
}
}
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