Commit fff62295 by wutong

CRM退款匹配调整,加入任务监听.

parent 78c5469b
...@@ -13,11 +13,13 @@ import com.bailuntec.mapper.DcBaseOmsSkuMapper; ...@@ -13,11 +13,13 @@ import com.bailuntec.mapper.DcBaseOmsSkuMapper;
import com.bailuntec.support.PointJob; import com.bailuntec.support.PointJob;
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 lombok.extern.slf4j.Slf4j;
import java.math.BigDecimal; import java.math.BigDecimal;
import java.math.RoundingMode; import java.math.RoundingMode;
import java.util.List; import java.util.List;
@Slf4j
public class RefundLinkOrderJob extends PointJob { public class RefundLinkOrderJob extends PointJob {
public void executeRefundJob(JobPointLog jobPointLog) { public void executeRefundJob(JobPointLog jobPointLog) {
...@@ -47,6 +49,7 @@ public class RefundLinkOrderJob extends PointJob { ...@@ -47,6 +49,7 @@ public class RefundLinkOrderJob extends PointJob {
List<DcBaseCrmRefund> dcBaseCrmRefundList = refundMapper1.selectByExample(DcBaseCrmRefundExample.newAndCreateCriteria().andLinkedEqualTo(false).example().limit(i * jobPointLog.getPageSize(), jobPointLog.getPageSize())); List<DcBaseCrmRefund> dcBaseCrmRefundList = refundMapper1.selectByExample(DcBaseCrmRefundExample.newAndCreateCriteria().andLinkedEqualTo(false).example().limit(i * jobPointLog.getPageSize(), jobPointLog.getPageSize()));
if (dcBaseCrmRefundList != null && dcBaseCrmRefundList.size() > 0) { if (dcBaseCrmRefundList != null && dcBaseCrmRefundList.size() > 0) {
for (DcBaseCrmRefund dcBaseCrmRefund : dcBaseCrmRefundList) { for (DcBaseCrmRefund dcBaseCrmRefund : dcBaseCrmRefundList) {
log.warn(dcBaseCrmRefund.getOriginOrderId() +"------" + dcBaseCrmRefund.getBailunAccountId() +"------" + dcBaseCrmRefund.getBailunSku());
DcBaseOmsSku dcBaseOmsSku = null; DcBaseOmsSku dcBaseOmsSku = null;
DcBaseOmsOrder dcBaseOmsOrder = null; DcBaseOmsOrder dcBaseOmsOrder = null;
switch (dcBaseCrmRefund.getPlatformType().toUpperCase()) { switch (dcBaseCrmRefund.getPlatformType().toUpperCase()) {
......
...@@ -121,4 +121,8 @@ public interface DcBaseOmsOrderMapper { ...@@ -121,4 +121,8 @@ public interface DcBaseOmsOrderMapper {
* @project https://github.com/itfsw/mybatis-generator-plugin * @project https://github.com/itfsw/mybatis-generator-plugin
*/ */
int upsertSelective(DcBaseOmsOrder record); int upsertSelective(DcBaseOmsOrder record);
void logicDeleteOmsSku(DcBaseOmsOrder dcBaseOmsOrder);
void logicDeleteOmsPick(DcBaseOmsOrder dcBaseOmsOrder);
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment