Pārlūkot izejas kodu

消费记录同步过来将amt的数据给到money字段

linfei.luo 3 gadi atpakaļ
vecāks
revīzija
f978abeaa1

+ 2 - 0
eladmin-system/src/main/java/me/zhengjie/config/rabbitmq/test/ListenerTemplate.java

@@ -107,6 +107,7 @@ public class ListenerTemplate {
             dmExpenseCalendar.setTermName(attendance.getString("term_name"));
             dmExpenseCalendar.setShopName(attendance.getString("shop_name"));
             dmExpenseCalendar.setAmt(attendance.getDouble("amt"));
+            dmExpenseCalendar.setMoney(String.valueOf(attendance.getDouble("amt")));
             dmExpenseCalendar.setBalance(attendance.getDouble("balance"));
             dmExpenseCalendar.setAccount(attendance.getInteger("account"));
             dmExpenseCalendar.setUserName(attendance.getString("name"));
@@ -129,6 +130,7 @@ public class ListenerTemplate {
                 dmOrderItem.setName(userData.getString("name"));
                 dmOrderItem.setPrice(userData.getString("price"));
                 dmOrderItem.setAmt(userData.getDouble("amt"));
+                dmOrderItem.setMoney(String.valueOf(userData.getDouble("amt")));
                 dmOrderItemService.create(dmOrderItem);
             }
             JSONArray payment = attendance.getJSONArray("payments");