|
@@ -1,11 +1,18 @@
|
|
|
package com.kxs.stat.biz.service.impl;
|
|
package com.kxs.stat.biz.service.impl;
|
|
|
|
|
|
|
|
|
|
+import cn.hutool.core.date.DatePattern;
|
|
|
|
|
+import cn.hutool.core.date.LocalDateTimeUtil;
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
|
|
|
+import com.kxs.common.core.util.R;
|
|
|
|
|
+import com.kxs.stat.api.vo.statUser.MerchantTradeDetailVO;
|
|
|
import com.kxs.stat.biz.mapper.KxsMerchantTradeMapper;
|
|
import com.kxs.stat.biz.mapper.KxsMerchantTradeMapper;
|
|
|
import com.kxs.stat.api.model.KxsMerchantTrade;
|
|
import com.kxs.stat.api.model.KxsMerchantTrade;
|
|
|
import com.kxs.stat.biz.service.KxsMerchantTradeService;
|
|
import com.kxs.stat.biz.service.KxsMerchantTradeService;
|
|
|
|
|
+import lombok.RequiredArgsConstructor;
|
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
|
|
|
|
+import java.time.LocalDate;
|
|
|
|
|
+
|
|
|
/**
|
|
/**
|
|
|
* 商户交易统计总表(KxsMerchantTrade)表服务实现类
|
|
* 商户交易统计总表(KxsMerchantTrade)表服务实现类
|
|
|
*
|
|
*
|
|
@@ -13,7 +20,13 @@ import org.springframework.stereotype.Service;
|
|
|
* @since 2024-05-07 17:25:06
|
|
* @since 2024-05-07 17:25:06
|
|
|
*/
|
|
*/
|
|
|
@Service("kxsMerchantTradeService")
|
|
@Service("kxsMerchantTradeService")
|
|
|
|
|
+@RequiredArgsConstructor
|
|
|
public class KxsMerchantTradeServiceImpl extends ServiceImpl<KxsMerchantTradeMapper, KxsMerchantTrade> implements KxsMerchantTradeService {
|
|
public class KxsMerchantTradeServiceImpl extends ServiceImpl<KxsMerchantTradeMapper, KxsMerchantTrade> implements KxsMerchantTradeService {
|
|
|
-
|
|
|
|
|
|
|
+ private final KxsMerchantTradeMapper kxsMerchantTradeMapper;
|
|
|
|
|
+ @Override
|
|
|
|
|
+ public R merchantTradeDetail(Long id) {
|
|
|
|
|
+ String month = LocalDateTimeUtil.format(LocalDate.now(), DatePattern.SIMPLE_MONTH_PATTERN);
|
|
|
|
|
+ return R.ok(kxsMerchantTradeMapper.merchantTradeDetail(id, month));
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
|
|
|