liaoyongfei преди 4 години
родител
ревизия
47c4122a55
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      ymall/src/main/java/com/liangjian11/ymall/handle/SynProfitHandle.java

+ 1 - 1
ymall/src/main/java/com/liangjian11/ymall/handle/SynProfitHandle.java

@@ -218,6 +218,7 @@ public class SynProfitHandle {
       ProfitRuleDetail ruleDetail = ruleDetailMap.get(item.getProfitGradeId());
       calculationProfit = new CalculationProfit();
       calculationProfit.setCreateTime(new Date());
+      calculationProfit.setSynOrderTime(item.getCreateTime());
       calculationProfit.setAccountId(item.getAccountId());
       calculationProfit.setUserRoleId(item.getDoctorId());
       calculationProfit.setOrderCode(item.getOrderCode());
@@ -226,7 +227,6 @@ public class SynProfitHandle {
       if (ruleDetail == null) {
         calculationProfit.setCalculationFormula("0");
         calculationProfit.setPrice(0);
-        calculationProfit.setSynOrderTime(item.getCreateTime());
         calculationProfit.setProfitRuleDetailId("");
         calculationProfit.setProfitRuleId("");
         calculationProfit.setStatus(1); //已入账