添加日志
This commit is contained in:
@@ -13,6 +13,7 @@ import com.czg.service.order.service.PayService;
|
|||||||
import com.czg.utils.ServletUtil;
|
import com.czg.utils.ServletUtil;
|
||||||
import jakarta.annotation.Resource;
|
import jakarta.annotation.Resource;
|
||||||
import jakarta.servlet.http.HttpServletRequest;
|
import jakarta.servlet.http.HttpServletRequest;
|
||||||
|
import lombok.extern.slf4j.Slf4j;
|
||||||
import org.apache.dubbo.config.annotation.DubboReference;
|
import org.apache.dubbo.config.annotation.DubboReference;
|
||||||
import org.springframework.transaction.annotation.Transactional;
|
import org.springframework.transaction.annotation.Transactional;
|
||||||
import org.springframework.validation.annotation.Validated;
|
import org.springframework.validation.annotation.Validated;
|
||||||
@@ -31,6 +32,7 @@ import java.util.Map;
|
|||||||
* @author yjjie
|
* @author yjjie
|
||||||
* @date 2025/12/18 18:54
|
* @date 2025/12/18 18:54
|
||||||
*/
|
*/
|
||||||
|
@Slf4j
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("/user/ppOrder")
|
@RequestMapping("/user/ppOrder")
|
||||||
public class UPpOrderController {
|
public class UPpOrderController {
|
||||||
@@ -71,6 +73,8 @@ public class UPpOrderController {
|
|||||||
}
|
}
|
||||||
param.setPrice(price);
|
param.setPrice(price);
|
||||||
|
|
||||||
|
log.info("用户【{}】进行套餐推广支付, 分享人数【{}】,订单金额【{}】", detail.getShareNum(), param.getPayType(), price);
|
||||||
|
|
||||||
CzgResult<Map<String, Object>> result = CzgResult.success();
|
CzgResult<Map<String, Object>> result = CzgResult.success();
|
||||||
CzgResult<Map<String, Object>> mapCzgResult = payService.ltPayOther(param, PayTypeConstants.SourceType.PP, "套餐推广购买");
|
CzgResult<Map<String, Object>> mapCzgResult = payService.ltPayOther(param, PayTypeConstants.SourceType.PP, "套餐推广购买");
|
||||||
if (200 != mapCzgResult.getCode()) {
|
if (200 != mapCzgResult.getCode()) {
|
||||||
|
|||||||
@@ -20,6 +20,7 @@ import com.mybatisflex.core.paginate.Page;
|
|||||||
import com.mybatisflex.core.query.QueryWrapper;
|
import com.mybatisflex.core.query.QueryWrapper;
|
||||||
import com.mybatisflex.core.update.UpdateChain;
|
import com.mybatisflex.core.update.UpdateChain;
|
||||||
import com.mybatisflex.spring.service.impl.ServiceImpl;
|
import com.mybatisflex.spring.service.impl.ServiceImpl;
|
||||||
|
import lombok.extern.slf4j.Slf4j;
|
||||||
import org.apache.dubbo.config.annotation.DubboReference;
|
import org.apache.dubbo.config.annotation.DubboReference;
|
||||||
import org.springframework.cache.annotation.CacheEvict;
|
import org.springframework.cache.annotation.CacheEvict;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
@@ -35,6 +36,7 @@ import java.util.List;
|
|||||||
* @author gyj
|
* @author gyj
|
||||||
* @since 2025-12-18
|
* @since 2025-12-18
|
||||||
*/
|
*/
|
||||||
|
@Slf4j
|
||||||
@Service
|
@Service
|
||||||
public class PpPackageServiceImpl extends ServiceImpl<PpPackageMapper, PpPackage> implements PpPackageService {
|
public class PpPackageServiceImpl extends ServiceImpl<PpPackageMapper, PpPackage> implements PpPackageService {
|
||||||
|
|
||||||
@@ -153,6 +155,7 @@ public class PpPackageServiceImpl extends ServiceImpl<PpPackageMapper, PpPackage
|
|||||||
// 如果没有开启操作,直接返回空数据
|
// 如果没有开启操作,直接返回空数据
|
||||||
ShopConfig shopConfig = shopConfigService.getById(shopId);
|
ShopConfig shopConfig = shopConfigService.getById(shopId);
|
||||||
if (SystemConstants.OneZero.ZERO == shopConfig.getIsPackagePromotion()) {
|
if (SystemConstants.OneZero.ZERO == shopConfig.getIsPackagePromotion()) {
|
||||||
|
log.info("没有开启套餐推广");
|
||||||
return new Page<>();
|
return new Page<>();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user