Explorar el Código

增加订单时间

liaoyongfei hace 4 años
padre
commit
47c4122a55

+ 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); //已入账