feat():修复接口相关逻辑(A)
parent
facc045011
commit
a9d9e8de16
|
@ -12,14 +12,11 @@ import com.muyu.common.core.domain.Result;
|
|||
import io.swagger.v3.oas.annotations.Operation;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import lombok.Value;
|
||||
import lombok.extern.log4j.Log4j2;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.List;
|
||||
|
||||
@Log4j2
|
||||
|
@ -137,10 +134,9 @@ public class OrderPayCustomerController {
|
|||
* @return 启用结果
|
||||
*/
|
||||
@GetMapping("/enable/{orderCustomerId}")
|
||||
@Operation(summary = "通过ID启用客户",description = "通过ID启用客户,启用之后可以进行支付相关接口的调用")
|
||||
@Operation(summary = "通过ID客户启用",description = "通过ID启用客户信息,启用之后可以调用支付相关接口")
|
||||
public Result<String> enable(@PathVariable("orderCustomerId") Long orderCustomerId){
|
||||
this.orderPayCustomerService.enable(orderCustomerId);
|
||||
|
||||
return Result.success(null,"操作成功");
|
||||
}
|
||||
|
||||
|
|
|
@ -39,6 +39,6 @@ public interface OrderPayCustomerService extends IService<OrderPayCustomer> {
|
|||
* @param orderCustomerId ID
|
||||
* @param status 状态 SysIsYesNo
|
||||
*/
|
||||
void settingStatus(Long orderCustomerId,String status);
|
||||
// void settingStatus(Long orderCustomerId,String status);
|
||||
|
||||
}
|
||||
|
|
|
@ -136,7 +136,7 @@ public class OrderPayCustomerServiceImpl
|
|||
*/
|
||||
@Override
|
||||
public void deisable(Long orderCustomerId) {
|
||||
this.settingStatus(orderCustomerId, SystemYesNo.NO.getCode());
|
||||
settingStatus(orderCustomerId, SystemYesNo.NO.getCode());
|
||||
}
|
||||
|
||||
|
||||
|
@ -146,12 +146,17 @@ public class OrderPayCustomerServiceImpl
|
|||
*/
|
||||
@Override
|
||||
public void enable(Long orderCustomerId) {
|
||||
this.settingStatus(orderCustomerId, SystemYesNo.YES.getCode());
|
||||
settingStatus(orderCustomerId, SystemYesNo.YES.getCode());
|
||||
|
||||
}
|
||||
|
||||
public void settingStatus(Long orderCustomerId,String status) {
|
||||
|
||||
this.updateById(
|
||||
OrderPayCustomer.builder()
|
||||
.id(orderCustomerId)
|
||||
.status(status)
|
||||
.build()
|
||||
);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in New Issue