业务逻辑
parent
439d00acf1
commit
011762495d
|
@ -0,0 +1,13 @@
|
|||
package com.muyu.cloud.market.controller;
|
||||
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import lombok.extern.log4j.Log4j2;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
@Log4j2
|
||||
@RestController
|
||||
@RequestMapping("/orders")
|
||||
@Tag(name = "运营商控制层", description = "进行订单支付所用运营商管理")
|
||||
public class OperatorsController {
|
||||
}
|
|
@ -0,0 +1,13 @@
|
|||
package com.muyu.cloud.market.controller;
|
||||
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import lombok.extern.log4j.Log4j2;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
@Log4j2
|
||||
@RestController
|
||||
@RequestMapping("/orders")
|
||||
@Tag(name = "订单支付控制层", description = "进行订单支付管理")
|
||||
public class OrdersPayController {
|
||||
}
|
|
@ -0,0 +1,16 @@
|
|||
package com.muyu.cloud.market.controller;
|
||||
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import lombok.extern.log4j.Log4j2;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
@Log4j2
|
||||
@RestController
|
||||
@RequestMapping("/orders")
|
||||
@Tag(name = "账户充值控制层", description = "进行账户充值管理")
|
||||
public class RechargeController {
|
||||
|
||||
|
||||
|
||||
}
|
|
@ -0,0 +1,14 @@
|
|||
package com.muyu.cloud.market.controller;
|
||||
|
||||
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import lombok.extern.log4j.Log4j2;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
@Log4j2
|
||||
@RestController
|
||||
@RequestMapping("/orders")
|
||||
@Tag(name = "购买记录控制层", description = "进行订单购买日志管理")
|
||||
public class SalelogController {
|
||||
}
|
|
@ -0,0 +1,7 @@
|
|||
package com.muyu.cloud.market.mapper;
|
||||
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
@Mapper
|
||||
public interface OperatorsMapper {
|
||||
}
|
|
@ -66,6 +66,17 @@ public interface OrderShowMapper {
|
|||
Orders findAllById (Integer ordersId);
|
||||
|
||||
|
||||
/**
|
||||
* 添加订单(下单时),扣减库存
|
||||
* 修改订单支付状态未付款后,增加库存
|
||||
*/
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 订单修改支付状态后,更改该商品的销量
|
||||
*/
|
||||
|
||||
|
||||
}
|
||||
|
|
|
@ -0,0 +1,7 @@
|
|||
package com.muyu.cloud.market.mapper;
|
||||
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
@Mapper
|
||||
public interface OrdersPayMapper {
|
||||
}
|
|
@ -1,22 +0,0 @@
|
|||
package com.muyu.cloud.market.mapper;
|
||||
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
* 主要的 订单商品联结使用 业务模块
|
||||
*/
|
||||
@Mapper
|
||||
public interface OrdersProductMapper {
|
||||
|
||||
/**
|
||||
* 订单下单后,扣减库存
|
||||
*/
|
||||
|
||||
/**
|
||||
* 订单修改支付状态后,更改该商品的销量
|
||||
*/
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
}
|
|
@ -0,0 +1,7 @@
|
|||
package com.muyu.cloud.market.mapper;
|
||||
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
@Mapper
|
||||
public interface RechargeMapper {
|
||||
}
|
|
@ -0,0 +1,7 @@
|
|||
package com.muyu.cloud.market.mapper;
|
||||
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
@Mapper
|
||||
public interface SalelogMapper {
|
||||
}
|
|
@ -0,0 +1,4 @@
|
|||
package com.muyu.cloud.market.service;
|
||||
|
||||
public interface OperatorsService {
|
||||
}
|
|
@ -0,0 +1,4 @@
|
|||
package com.muyu.cloud.market.service;
|
||||
|
||||
public interface OrdersPayService {
|
||||
}
|
|
@ -0,0 +1,4 @@
|
|||
package com.muyu.cloud.market.service;
|
||||
|
||||
public interface RechargeService {
|
||||
}
|
|
@ -0,0 +1,4 @@
|
|||
package com.muyu.cloud.market.service;
|
||||
|
||||
public interface SalelogService {
|
||||
}
|
|
@ -6,6 +6,7 @@ import com.muyu.cloud.market.domin.Customer;
|
|||
import com.muyu.cloud.market.domin.resp.CustomerListResp;
|
||||
import com.muyu.cloud.market.mapper.FindCustomerMeaasgeMapper;
|
||||
import com.muyu.cloud.market.service.FindCustomerMeaasgeService;
|
||||
import lombok.extern.log4j.Log4j2;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
|
@ -17,6 +18,7 @@ import org.springframework.stereotype.Service;
|
|||
* @Date:2024/8/20 9:51
|
||||
*/
|
||||
@Service
|
||||
@Log4j2
|
||||
public class FindCustomerMeaasgeServiceImpl extends ServiceImpl<FindCustomerMeaasgeMapper,Customer> implements FindCustomerMeaasgeService {
|
||||
|
||||
/**
|
||||
|
|
|
@ -0,0 +1,10 @@
|
|||
package com.muyu.cloud.market.service.impl;
|
||||
|
||||
import com.muyu.cloud.market.service.OperatorsService;
|
||||
import lombok.extern.log4j.Log4j2;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
@Service
|
||||
@Log4j2
|
||||
public class OperatorsServiceImpl implements OperatorsService {
|
||||
}
|
|
@ -0,0 +1,8 @@
|
|||
package com.muyu.cloud.market.service.impl;
|
||||
|
||||
import com.muyu.cloud.market.service.OrdersPayService;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
@Service
|
||||
public class OrdersPayServiceImpl implements OrdersPayService {
|
||||
}
|
|
@ -0,0 +1,10 @@
|
|||
package com.muyu.cloud.market.service.impl;
|
||||
|
||||
import com.muyu.cloud.market.service.RechargeService;
|
||||
import lombok.extern.log4j.Log4j2;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
@Service
|
||||
@Log4j2
|
||||
public class RechargeServiceImpl implements RechargeService {
|
||||
}
|
|
@ -0,0 +1,10 @@
|
|||
package com.muyu.cloud.market.service.impl;
|
||||
|
||||
import com.muyu.cloud.market.service.SalelogService;
|
||||
import lombok.extern.log4j.Log4j2;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
@Service
|
||||
@Log4j2
|
||||
public class SalelogServiceImpl implements SalelogService {
|
||||
}
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue