|
@@ -134,6 +134,27 @@ public class KxsUserTradeService extends ServiceImpl<KxsUserTradeMapper, KxsUser
|
|
|
}
|
|
}
|
|
|
//每个请求线程维护一个month数据,避免多线程数据冲突
|
|
//每个请求线程维护一个month数据,避免多线程数据冲突
|
|
|
MonthTableNameHandler.setData(tradeMonth);
|
|
MonthTableNameHandler.setData(tradeMonth);
|
|
|
|
|
+
|
|
|
|
|
+ if (fieldDataMap.get("TradeMonth") != null && fieldDataMap.get("TradeMonth").getValue() != null) {
|
|
|
|
|
+ tradeMonth = fieldDataMap.get("TradeMonth").getValue().toString();
|
|
|
|
|
+ } else {
|
|
|
|
|
+ tradeMonth = MonthTableNameHandler.getThisMoth();
|
|
|
|
|
+ }
|
|
|
|
|
+ //每个请求线程维护一个month数据,避免多线程数据冲突
|
|
|
|
|
+ MonthTableNameHandler.setData(tradeMonth);
|
|
|
|
|
+
|
|
|
|
|
+ if (fieldDataMap.get("UserId").getValue() != null) {
|
|
|
|
|
+ userTrade.setUserId(Integer.valueOf(fieldDataMap.get("UserId").getValue().toString()));
|
|
|
|
|
+ }
|
|
|
|
|
+ if (fieldDataMap.get("TradeDate").getValue() != null) {
|
|
|
|
|
+ userTrade.setTradeDate(Integer.valueOf(fieldDataMap.get("TradeDate").getValue().toString()));
|
|
|
|
|
+ }
|
|
|
|
|
+ if (fieldDataMap.get("TradeMonth").getValue() != null) {
|
|
|
|
|
+ userTrade.setTradeMonth(Integer.valueOf(fieldDataMap.get("TradeMonth").getValue().toString()));
|
|
|
|
|
+ }
|
|
|
|
|
+ if (fieldDataMap.get("BrandId").getValue() != null) {
|
|
|
|
|
+ userTrade.setBrandId(Integer.valueOf(fieldDataMap.get("BrandId").getValue().toString()));
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|