소스 검색

增加订单时间

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