修复dataId报错
parent
30e3b888dd
commit
bc2624de92
|
@ -9,6 +9,6 @@ RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo '$TZ' > /etc/timezone
|
||||||
#挂载工作目录
|
#挂载工作目录
|
||||||
VOLUME ["/home/logs/cloud-system"]
|
VOLUME ["/home/logs/cloud-system"]
|
||||||
#拷贝执行文件
|
#拷贝执行文件
|
||||||
COPY ./cloud-pay-server/target/cloud-pay.jar /home/app.jar
|
COPY ./cloud-pay-server/target/clouad-pay.jar /home/app.jar
|
||||||
ENTRYPOINT ["java","-Dfile.encoding=utf-8","-jar"]
|
ENTRYPOINT ["java","-Dfile.encoding=utf-8","-jar"]
|
||||||
CMD ["/home/app.jar"]
|
CMD ["/home/app.jar"]
|
||||||
|
|
|
@ -23,6 +23,7 @@
|
||||||
<artifactId>cloud-common-core</artifactId>
|
<artifactId>cloud-common-core</artifactId>
|
||||||
<version>3.6.3</version>
|
<version>3.6.3</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
</project>
|
</project>
|
||||||
|
|
|
@ -0,0 +1,48 @@
|
||||||
|
package com.muyu.cloud.pay.domain;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.annotation.IdType;
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableId;
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableName;
|
||||||
|
import com.muyu.common.core.web.domain.BaseEntity;
|
||||||
|
import lombok.*;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Author:liuxinyue
|
||||||
|
* @Package:com.muyu.cloud.pay.domain
|
||||||
|
* @Project:cloud-pay
|
||||||
|
* @name:OrderPayCustomer
|
||||||
|
* @Date:2024/7/31 19:42
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@Builder
|
||||||
|
@AllArgsConstructor
|
||||||
|
@NoArgsConstructor
|
||||||
|
@EqualsAndHashCode(callSuper = true)
|
||||||
|
@TableName(value = "order_pay_customer",autoResultMap = true)
|
||||||
|
public class OrderPayCustomer extends BaseEntity{
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 主键
|
||||||
|
*/
|
||||||
|
@TableId(value = "id",type = IdType.AUTO)
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 服务/客户名称
|
||||||
|
*/
|
||||||
|
private String appName;
|
||||||
|
/**
|
||||||
|
* 服务/客户编码
|
||||||
|
*/
|
||||||
|
private String appCode;
|
||||||
|
/**
|
||||||
|
* 客户描述
|
||||||
|
*/
|
||||||
|
private String appDesc;
|
||||||
|
/**
|
||||||
|
* 是否开启
|
||||||
|
*/
|
||||||
|
private String status;
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,41 @@
|
||||||
|
package com.muyu.cloud.pay.domain.req;
|
||||||
|
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import lombok.Builder;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Author:liuxinyue
|
||||||
|
* @Package:com.muyu.cloud.pay.domain.req
|
||||||
|
* @Project:cloud-pay
|
||||||
|
* @name:CustomerListReq
|
||||||
|
* @Date:2024/7/31 20:27
|
||||||
|
*/
|
||||||
|
@Tag(name = "客户列表请求对象")
|
||||||
|
@Data
|
||||||
|
@Builder
|
||||||
|
@NoArgsConstructor
|
||||||
|
@AllArgsConstructor
|
||||||
|
public class CustomerListReq {
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 服务/客户名称
|
||||||
|
*/
|
||||||
|
@Schema(name = "服务/客户名称",type = "String",description = "客户名称,为微服务中文名称")
|
||||||
|
private String appName;
|
||||||
|
/**
|
||||||
|
* 服务/客户编码
|
||||||
|
*/
|
||||||
|
@Schema(name = "服务/客户编码",type = "String",description = "客户名称,为微服务名称")
|
||||||
|
private String appCode;
|
||||||
|
/**
|
||||||
|
* 是否开启
|
||||||
|
*/
|
||||||
|
@Schema(name = "是否开启",type = "String",description = "客户状态,Y是开启,N是关闭")
|
||||||
|
private String status;
|
||||||
|
|
||||||
|
}
|
|
@ -26,6 +26,13 @@
|
||||||
<artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
|
<artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
|
<!--支付公共依赖-->
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.muyu</groupId>
|
||||||
|
<artifactId>cloud-pay-common</artifactId>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
|
|
||||||
<!--rabbitmq-->
|
<!--rabbitmq-->
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.muyu</groupId>
|
<groupId>com.muyu</groupId>
|
||||||
|
|
|
@ -0,0 +1,22 @@
|
||||||
|
package com.muyu.cloud.pay.controller;
|
||||||
|
|
||||||
|
import lombok.extern.log4j.Log4j2;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Author:liuxinyue
|
||||||
|
* @Package:com.muyu.cloud.pay.controller
|
||||||
|
* @Project:cloud-pay
|
||||||
|
* @name:OrderPayCustomerServiceController
|
||||||
|
* @Date:2024/7/31 20:01
|
||||||
|
*/
|
||||||
|
@Log4j2
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("/customer")
|
||||||
|
public class OrderPayCustomerServiceController {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,16 @@
|
||||||
|
package com.muyu.cloud.pay.mapper;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import com.muyu.cloud.pay.domain.OrderPayCustomer;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Author:liuxinyue
|
||||||
|
* @Package:com.muyu.cloud.pay.mapper
|
||||||
|
* @Project:cloud-pay
|
||||||
|
* @name:OrderPayCustomerMapper
|
||||||
|
* @Date:2024/7/31 19:58
|
||||||
|
*/
|
||||||
|
@Mapper
|
||||||
|
public interface OrderPayCustomerMapper extends BaseMapper<OrderPayCustomer>{
|
||||||
|
}
|
|
@ -0,0 +1,14 @@
|
||||||
|
package com.muyu.cloud.pay.service;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.extension.service.IService;
|
||||||
|
import com.muyu.cloud.pay.domain.OrderPayCustomer;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Author:liuxinyue
|
||||||
|
* @Package:com.muyu.cloud.pay.service
|
||||||
|
* @Project:cloud-pay
|
||||||
|
* @name:OrderPayCustomerService
|
||||||
|
* @Date:2024/7/31 20:01
|
||||||
|
*/
|
||||||
|
public interface OrderPayCustomerService extends IService<OrderPayCustomer>{
|
||||||
|
}
|
|
@ -0,0 +1,25 @@
|
||||||
|
package com.muyu.cloud.pay.service.impl;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
|
import com.muyu.cloud.pay.domain.OrderPayCustomer;
|
||||||
|
import com.muyu.cloud.pay.mapper.OrderPayCustomerMapper;
|
||||||
|
import com.muyu.cloud.pay.service.OrderPayCustomerService;
|
||||||
|
import lombok.extern.log4j.Log4j2;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Author:liuxinyue
|
||||||
|
* @Package:com.muyu.cloud.pay.service.impl
|
||||||
|
* @Project:cloud-pay
|
||||||
|
* @name:OrderPayCustomerServiceImpl
|
||||||
|
* @Date:2024/7/31 20:01
|
||||||
|
*/
|
||||||
|
@Log4j2
|
||||||
|
@Service
|
||||||
|
public class OrderPayCustomerServiceImpl
|
||||||
|
extends ServiceImpl<OrderPayCustomerMapper, OrderPayCustomer>
|
||||||
|
implements OrderPayCustomerService {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
|
@ -41,6 +41,7 @@ spring:
|
||||||
file-extension: yml
|
file-extension: yml
|
||||||
# 共享配置
|
# 共享配置
|
||||||
shared-configs:
|
shared-configs:
|
||||||
|
- data-id: cloud-pay-dev.yml
|
||||||
# 系统共享配置
|
# 系统共享配置
|
||||||
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
|
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
|
||||||
# 系统环境Config共享配置
|
# 系统环境Config共享配置
|
||||||
|
|
Loading…
Reference in New Issue