修改合并前的分支
parent
85aff5c847
commit
e161bed5f2
|
@ -4,10 +4,10 @@ server:
|
|||
|
||||
# nacos线上地址
|
||||
nacos:
|
||||
addr: 127.0.0.1:8848
|
||||
addr: 110.42.213.184:8848
|
||||
user-name: nacos
|
||||
password: nacos
|
||||
namespace: one-saas
|
||||
namespace: public
|
||||
# Spring
|
||||
spring:
|
||||
application:
|
||||
|
|
|
@ -0,0 +1,19 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<parent>
|
||||
<artifactId>cloud-server</artifactId>
|
||||
<groupId>com.muyu</groupId>
|
||||
<version>3.6.3</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<artifactId>cloud-common-enterprise-operation</artifactId>
|
||||
|
||||
<properties>
|
||||
<maven.compiler.source>17</maven.compiler.source>
|
||||
<maven.compiler.target>17</maven.compiler.target>
|
||||
</properties>
|
||||
|
||||
</project>
|
|
@ -0,0 +1,4 @@
|
|||
package com.muyu.enterpise;
|
||||
|
||||
public class SSS {
|
||||
}
|
|
@ -4,10 +4,10 @@ server:
|
|||
|
||||
# nacos线上地址
|
||||
nacos:
|
||||
addr: 127.0.0.1:8848
|
||||
addr: 110.42.213.184:8848
|
||||
user-name: nacos
|
||||
password: nacos
|
||||
namespace: one-saas
|
||||
namespace: public
|
||||
|
||||
# Spring
|
||||
spring:
|
||||
|
@ -50,7 +50,7 @@ spring:
|
|||
eager: true
|
||||
transport:
|
||||
# 控制台地址
|
||||
dashboard: 127.0.0.1:8718
|
||||
dashboard: 110.42.213.184:8718
|
||||
# nacos配置持久化
|
||||
datasource:
|
||||
ds1:
|
||||
|
|
|
@ -1,2 +1 @@
|
|||
Spring Boot Version: ${spring-boot.version}
|
||||
Spring Application Name: ${spring.application.name}
|
||||
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
# Tomcat
|
||||
server:
|
||||
port: 10011
|
||||
port: 10012
|
||||
|
||||
# nacos线上地址
|
||||
nacos:
|
||||
addr: 127.0.0.1:8848
|
||||
addr: 110.42.213.184:8848
|
||||
user-name: nacos
|
||||
password: nacos
|
||||
namespace: public
|
||||
namespace: pubilc
|
||||
# SPRING_AMQP_DESERIALIZATION_TRUST_ALL=true spring.amqp.deserialization.trust.all
|
||||
# Spring
|
||||
spring:
|
||||
|
@ -29,18 +29,18 @@ spring:
|
|||
# 服务注册地址
|
||||
server-addr: ${nacos.addr}
|
||||
# nacos用户名
|
||||
username: ${nacos.user-name}
|
||||
# nacos密码
|
||||
password: ${nacos.password}
|
||||
# username: ${nacos.user-name}
|
||||
# # nacos密码
|
||||
# password: ${nacos.password}
|
||||
# 命名空间
|
||||
namespace: ${nacos.namespace}
|
||||
config:
|
||||
# 服务注册地址
|
||||
server-addr: ${nacos.addr}
|
||||
# nacos用户名
|
||||
username: ${nacos.user-name}
|
||||
# nacos密码
|
||||
password: ${nacos.password}
|
||||
# username: ${nacos.user-name}
|
||||
# # nacos密码
|
||||
# password: ${nacos.password}
|
||||
# 命名空间
|
||||
namespace: ${nacos.namespace}
|
||||
# 配置文件格式
|
||||
|
|
|
@ -4,10 +4,10 @@ server:
|
|||
|
||||
# nacos线上地址
|
||||
nacos:
|
||||
addr: 127.0.0.1:8848
|
||||
addr: 110.42.213.184:8848
|
||||
user-name: nacos
|
||||
password: nacos
|
||||
namespace: one-saas
|
||||
namespace: public
|
||||
|
||||
# Spring
|
||||
spring:
|
||||
|
|
|
@ -1,4 +1,44 @@
|
|||
package com.zhangyi.rail.controller;
|
||||
|
||||
import com.zhangyi.rail.domain.R;
|
||||
import com.zhangyi.rail.domain.SysFenceRail;
|
||||
import com.zhangyi.rail.service.RailService;
|
||||
import jakarta.servlet.ServletConfig;
|
||||
import jakarta.servlet.ServletContext;
|
||||
import jakarta.servlet.ServletRequest;
|
||||
import jakarta.servlet.http.HttpServletRequest;
|
||||
import jakarta.servlet.http.HttpServletResponse;
|
||||
import jakarta.servlet.http.HttpSession;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.beans.factory.annotation.Qualifier;
|
||||
import org.springframework.boot.ApplicationArguments;
|
||||
import org.springframework.core.convert.ConversionService;
|
||||
import org.springframework.core.env.Environment;
|
||||
import org.springframework.core.env.PropertyResolver;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import org.springframework.web.context.WebApplicationContext;
|
||||
|
||||
@RestController
|
||||
@RequestMapping("/raill")
|
||||
public class RailController {
|
||||
|
||||
@Autowired
|
||||
RailService railService;
|
||||
|
||||
|
||||
@PostMapping("rail")
|
||||
public R RailListCode(SysFenceRail sysFenceRail){
|
||||
return railService.RailListCode(sysFenceRail);
|
||||
}
|
||||
|
||||
public R Railadd(SysFenceRail sysFenceRail){
|
||||
return railService.RailListAdd(sysFenceRail);
|
||||
}
|
||||
|
||||
public R RailEdit(SysFenceRail sysFenceRail){
|
||||
return railService.RailListEdit(sysFenceRail);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -0,0 +1,16 @@
|
|||
package com.zhangyi.rail.domain;
|
||||
|
||||
import lombok.*;
|
||||
|
||||
@Data
|
||||
@Setter
|
||||
@Getter
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class R {
|
||||
|
||||
private Integer code;
|
||||
private Object data;
|
||||
private String msg;
|
||||
|
||||
}
|
|
@ -7,6 +7,8 @@ import com.muyu.common.core.annotation.Excel;
|
|||
import lombok.*;
|
||||
import lombok.experimental.SuperBuilder;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
@Data
|
||||
@Setter
|
||||
@Getter
|
||||
|
@ -31,8 +33,24 @@ private static final long seriaversionUID =1L;
|
|||
@Excel(name = "围栏类型")
|
||||
private Long fenceType;
|
||||
|
||||
@Excel(name = "围栏类型")
|
||||
private String fenceTypeName;
|
||||
|
||||
@Excel(name = "围栏状态")
|
||||
private String state;
|
||||
|
||||
@Excel(name = "创建人")
|
||||
private String createBy;
|
||||
|
||||
@Excel(name = "创建时间")
|
||||
private Date createTime;
|
||||
|
||||
@Excel(name = "更新人")
|
||||
private String updateBy;
|
||||
|
||||
@Excel(name = "更新时间")
|
||||
private Date updateTime;
|
||||
|
||||
@Excel(name = "备注")
|
||||
private String remark;
|
||||
}
|
||||
|
|
|
@ -0,0 +1,7 @@
|
|||
package com.zhangyi.rail.mapper;
|
||||
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
@Mapper
|
||||
public interface RailMapper {
|
||||
}
|
|
@ -0,0 +1,12 @@
|
|||
package com.zhangyi.rail.service;
|
||||
|
||||
import com.zhangyi.rail.domain.R;
|
||||
import com.zhangyi.rail.domain.SysFenceRail;
|
||||
|
||||
public interface RailService {
|
||||
R RailListCode(SysFenceRail sysFenceRail);
|
||||
|
||||
R RailListAdd(SysFenceRail sysFenceRail);
|
||||
|
||||
R RailListEdit(SysFenceRail sysFenceRail);
|
||||
}
|
|
@ -0,0 +1,23 @@
|
|||
package com.zhangyi.rail.service;
|
||||
|
||||
import com.zhangyi.rail.domain.R;
|
||||
import com.zhangyi.rail.domain.SysFenceRail;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
@Service
|
||||
public class RailServiceImpl implements RailService{
|
||||
@Override
|
||||
public R RailListCode(SysFenceRail sysFenceRail) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public R RailListAdd(SysFenceRail sysFenceRail) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public R RailListEdit(SysFenceRail sysFenceRail) {
|
||||
return null;
|
||||
}
|
||||
}
|
|
@ -4,10 +4,10 @@ server:
|
|||
|
||||
# nacos线上地址
|
||||
nacos:
|
||||
addr: 127.0.0.1:8848
|
||||
addr: 110.42.213.184:8848
|
||||
user-name: nacos
|
||||
password: nacos
|
||||
namespace: one-saas
|
||||
namespace: public
|
||||
# SPRING_AMQP_DESERIALIZATION_TRUST_ALL=true spring.amqp.deserialization.trust.all
|
||||
# Spring
|
||||
spring:
|
||||
|
|
|
@ -4,10 +4,10 @@ server:
|
|||
|
||||
# nacos线上地址
|
||||
nacos:
|
||||
addr: 127.0.0.1:8848
|
||||
addr: 110.42.213.184:8848
|
||||
user-name: nacos
|
||||
password: nacos
|
||||
namespace: one-saas
|
||||
namespace: public
|
||||
# SPRING_AMQP_DESERIALIZATION_TRUST_ALL=true spring.amqp.deserialization.trust.all
|
||||
# Spring
|
||||
spring:
|
||||
|
|
|
@ -15,6 +15,8 @@
|
|||
<module>cloud-modules-system-saas</module>
|
||||
<module>cloud-breakdown</module>
|
||||
<module>cloud-modules-warn</module>
|
||||
<module>cloud-modules-rail</module>
|
||||
<module>cloud-modules-car</module>
|
||||
</modules>
|
||||
|
||||
<artifactId>cloud-modules</artifactId>
|
||||
|
|
|
@ -4,10 +4,10 @@ server:
|
|||
|
||||
# nacos线上地址
|
||||
nacos:
|
||||
addr: 127.0.0.1:8848
|
||||
addr: 110.42.213.184:8848
|
||||
user-name: nacos
|
||||
password: nacos
|
||||
namespace: one-saas
|
||||
namespace: public
|
||||
|
||||
# Spring
|
||||
spring:
|
||||
|
|
Loading…
Reference in New Issue