增加base基础服务
This commit is contained in:
parent
53b183f014
commit
9cda5248e3
|
|
@ -14,12 +14,12 @@ spring:
|
||||||
nacos:
|
nacos:
|
||||||
discovery:
|
discovery:
|
||||||
# 服务注册地址
|
# 服务注册地址
|
||||||
server-addr: 192.168.0.14:8848
|
server-addr: 192.168.0.56:8848
|
||||||
namespace: 9404b13b-4b90-4759-98c7-f5d7a670ffd8
|
namespace: 693e01a9-1dc4-4858-b1ae-439da3d35f66
|
||||||
config:
|
config:
|
||||||
# 配置中心地址
|
# 配置中心地址
|
||||||
server-addr: 192.168.0.14:8848
|
server-addr: 192.168.0.56:8848
|
||||||
namespace: 9404b13b-4b90-4759-98c7-f5d7a670ffd8
|
namespace: 693e01a9-1dc4-4858-b1ae-439da3d35f66
|
||||||
# 配置文件格式
|
# 配置文件格式
|
||||||
file-extension: yml
|
file-extension: yml
|
||||||
# 共享配置
|
# 共享配置
|
||||||
|
|
|
||||||
|
|
@ -15,12 +15,12 @@ spring:
|
||||||
nacos:
|
nacos:
|
||||||
discovery:
|
discovery:
|
||||||
# 服务注册地址
|
# 服务注册地址
|
||||||
server-addr: 192.168.0.14:8848
|
server-addr: 192.168.0.56:8848
|
||||||
namespace: 9404b13b-4b90-4759-98c7-f5d7a670ffd8
|
namespace: 693e01a9-1dc4-4858-b1ae-439da3d35f66
|
||||||
config:
|
config:
|
||||||
# 配置中心地址
|
# 配置中心地址
|
||||||
server-addr: 192.168.0.14:8848
|
server-addr: 192.168.0.56:8848
|
||||||
namespace: 9404b13b-4b90-4759-98c7-f5d7a670ffd8
|
namespace: 693e01a9-1dc4-4858-b1ae-439da3d35f66
|
||||||
# 配置文件格式
|
# 配置文件格式
|
||||||
file-extension: yml
|
file-extension: yml
|
||||||
# 共享配置
|
# 共享配置
|
||||||
|
|
@ -31,23 +31,24 @@ spring:
|
||||||
eager: true
|
eager: true
|
||||||
transport:
|
transport:
|
||||||
# 控制台地址
|
# 控制台地址
|
||||||
dashboard: 192.168.0.14:18858
|
dashboard: 192.168.0.56:8848
|
||||||
# nacos配置持久化
|
# nacos配置持久化
|
||||||
datasource:
|
datasource:
|
||||||
ds1:
|
ds1:
|
||||||
nacos:
|
nacos:
|
||||||
server-addr: 192.168.0.14:8848
|
server-addr: 192.168.0.56:8848
|
||||||
namespace: 9404b13b-4b90-4759-98c7-f5d7a670ffd8
|
namespace: 693e01a9-1dc4-4858-b1ae-439da3d35f66
|
||||||
dataId: sentinel-bonus-gateway
|
dataId: sentinel-bonus-gateway
|
||||||
groupId: DEFAULT_GROUP
|
groupId: DEFAULT_GROUP
|
||||||
data-type: json
|
data-type: json
|
||||||
rule-type: gw-flow
|
rule-type: gw-flow
|
||||||
|
|
||||||
|
|
||||||
##系统 自动 加解密开关
|
#系统 自动 加解密开关
|
||||||
#system:
|
system:
|
||||||
# encryptEnabled: false
|
encryptEnabled: false
|
||||||
# decryptEnabled: false
|
decryptEnabled: false
|
||||||
|
|
||||||
#加密组件
|
#加密组件
|
||||||
jasypt:
|
jasypt:
|
||||||
encryptor:
|
encryptor:
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,99 @@
|
||||||
|
<?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">
|
||||||
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
<parent>
|
||||||
|
<groupId>com.bonus</groupId>
|
||||||
|
<artifactId>bonus-modules</artifactId>
|
||||||
|
<version>24.7.1-SNAPSHOT</version>
|
||||||
|
</parent>
|
||||||
|
|
||||||
|
<artifactId>bonus-base</artifactId>
|
||||||
|
|
||||||
|
<description>
|
||||||
|
bonus-modules-base基础模块
|
||||||
|
</description>
|
||||||
|
|
||||||
|
<properties>
|
||||||
|
<maven.compiler.source>8</maven.compiler.source>
|
||||||
|
<maven.compiler.target>8</maven.compiler.target>
|
||||||
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||||
|
</properties>
|
||||||
|
|
||||||
|
<dependencies>
|
||||||
|
<!-- SpringCloud Alibaba Nacos -->
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.alibaba.cloud</groupId>
|
||||||
|
<artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
|
<!-- SpringCloud Alibaba Nacos Config -->
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.alibaba.cloud</groupId>
|
||||||
|
<artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
|
<!-- SpringCloud Alibaba Sentinel -->
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.alibaba.cloud</groupId>
|
||||||
|
<artifactId>spring-cloud-starter-alibaba-sentinel</artifactId>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
|
<!-- SpringBoot Actuator -->
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.springframework.boot</groupId>
|
||||||
|
<artifactId>spring-boot-starter-actuator</artifactId>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
|
<!-- FastDFS -->
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.github.tobato</groupId>
|
||||||
|
<artifactId>fastdfs-client</artifactId>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
|
<!-- Minio -->
|
||||||
|
<dependency>
|
||||||
|
<groupId>io.minio</groupId>
|
||||||
|
<artifactId>minio</artifactId>
|
||||||
|
<version>${minio.version}</version>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
|
<!-- bonus Api System -->
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.bonus</groupId>
|
||||||
|
<artifactId>bonus-api-system</artifactId>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
|
<!-- bonus Common Swagger -->
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.bonus</groupId>
|
||||||
|
<artifactId>bonus-common-swagger</artifactId>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
|
<!-- lombok -->
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.projectlombok</groupId>
|
||||||
|
<artifactId>lombok</artifactId>
|
||||||
|
<scope>provided</scope>
|
||||||
|
</dependency>
|
||||||
|
</dependencies>
|
||||||
|
|
||||||
|
<build>
|
||||||
|
<finalName>${project.artifactId}</finalName>
|
||||||
|
<plugins>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.springframework.boot</groupId>
|
||||||
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<goals>
|
||||||
|
<goal>repackage</goal>
|
||||||
|
</goals>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
|
</plugins>
|
||||||
|
</build>
|
||||||
|
|
||||||
|
</project>
|
||||||
|
|
@ -0,0 +1,32 @@
|
||||||
|
package com.bonus.base;
|
||||||
|
|
||||||
|
import com.bonus.common.swagger.annotation.EnableCustomSwagger2;
|
||||||
|
import org.springframework.boot.SpringApplication;
|
||||||
|
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||||
|
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author : 阮世耀
|
||||||
|
* @version : 1.0
|
||||||
|
* @PackagePath: com.bonus
|
||||||
|
* @CreateTime: 2024-08-09 09:11
|
||||||
|
* @Description: Base基础模块启动类
|
||||||
|
*/
|
||||||
|
|
||||||
|
@EnableCustomSwagger2
|
||||||
|
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class })
|
||||||
|
public class BonusBaseApplication {
|
||||||
|
public static void main(String[] args) {
|
||||||
|
SpringApplication.run(BonusBaseApplication.class, args);
|
||||||
|
System.out.println("(♥◠‿◠)ノ゙ bonus-base基础模块启动成功 ლ(´ڡ`ლ)゙ \n" +
|
||||||
|
" .-------. ____ __ \n" +
|
||||||
|
" | _ _ \\ \\ \\ / / \n" +
|
||||||
|
" | ( ' ) | \\ _. / ' \n" +
|
||||||
|
" |(_ o _) / _( )_ .' \n" +
|
||||||
|
" | (_,_).' __ ___(_ o _)' \n" +
|
||||||
|
" | |\\ \\ | || |(_,_)' \n" +
|
||||||
|
" | | \\ `' /| `-' / \n" +
|
||||||
|
" | | \\ / \\ / \n" +
|
||||||
|
" ''-' `'-' `-..-' ");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,33 @@
|
||||||
|
package com.bonus.base.controller;
|
||||||
|
import com.bonus.base.domain.BmProject;
|
||||||
|
import com.bonus.base.service.BmProjectService;
|
||||||
|
import org.springframework.web.bind.annotation.*;
|
||||||
|
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 工程项目管理(bm_project)表控制层
|
||||||
|
*
|
||||||
|
* @author xxxxx
|
||||||
|
*/
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("/bm_project")
|
||||||
|
public class BmProjectController {
|
||||||
|
/**
|
||||||
|
* 服务对象
|
||||||
|
*/
|
||||||
|
@Autowired
|
||||||
|
private BmProjectService bmProjectService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 通过主键查询单条数据
|
||||||
|
*
|
||||||
|
* @param id 主键
|
||||||
|
* @return 单条数据
|
||||||
|
*/
|
||||||
|
@GetMapping("selectOne")
|
||||||
|
public BmProject selectOne(Integer id) {
|
||||||
|
return bmProjectService.selectByPrimaryKey(id);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,128 @@
|
||||||
|
package com.bonus.base.domain;
|
||||||
|
|
||||||
|
import io.swagger.annotations.ApiModel;
|
||||||
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*@PackagePath: com.bonus.base
|
||||||
|
*@author : 阮世耀
|
||||||
|
*@CreateTime: 2024-08-09 10:13
|
||||||
|
*@Description: 工程实体类
|
||||||
|
*@version : 1.0
|
||||||
|
*/
|
||||||
|
@ApiModel(description="工程项目管理")
|
||||||
|
@Data
|
||||||
|
public class BmProject {
|
||||||
|
|
||||||
|
@ApiModelProperty(value="主键")
|
||||||
|
private Integer id;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 项目类型。 1:线路工程;2:变电工程;3:业务工程;4:其他工程
|
||||||
|
*/
|
||||||
|
@ApiModelProperty(value="项目类型。 1:线路工程;2:变电工程;3:业务工程;4:其他工程")
|
||||||
|
private Integer projectType;
|
||||||
|
|
||||||
|
@ApiModelProperty(value="")
|
||||||
|
private String name;
|
||||||
|
|
||||||
|
@ApiModelProperty(value="")
|
||||||
|
private String num;
|
||||||
|
|
||||||
|
@ApiModelProperty(value="")
|
||||||
|
private String manager;
|
||||||
|
|
||||||
|
@ApiModelProperty(value="")
|
||||||
|
private String nature;
|
||||||
|
|
||||||
|
@ApiModelProperty(value="")
|
||||||
|
private String telphone;
|
||||||
|
|
||||||
|
@ApiModelProperty(value="")
|
||||||
|
private String phone;
|
||||||
|
|
||||||
|
@ApiModelProperty(value="")
|
||||||
|
private String fax;
|
||||||
|
|
||||||
|
@ApiModelProperty(value="")
|
||||||
|
private String address;
|
||||||
|
|
||||||
|
@ApiModelProperty(value="")
|
||||||
|
private String remarks;
|
||||||
|
|
||||||
|
@ApiModelProperty(value="")
|
||||||
|
private String materialClerk;
|
||||||
|
|
||||||
|
@ApiModelProperty(value="")
|
||||||
|
private String clerkPhone;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 电压等级,如1 为10kv,2为 35kv, 11为1100kv
|
||||||
|
*/
|
||||||
|
@ApiModelProperty(value="电压等级,如1 为10kv,2为 35kv, 11为1100kv")
|
||||||
|
private Integer voltageClass;
|
||||||
|
|
||||||
|
@ApiModelProperty(value="")
|
||||||
|
private Integer companyId;
|
||||||
|
|
||||||
|
@ApiModelProperty(value="")
|
||||||
|
private String isBalanceEnd;
|
||||||
|
|
||||||
|
@ApiModelProperty(value="")
|
||||||
|
private String time;
|
||||||
|
|
||||||
|
@ApiModelProperty(value="")
|
||||||
|
private String isActive;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 经度
|
||||||
|
*/
|
||||||
|
@ApiModelProperty(value="经度")
|
||||||
|
private String lon;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 维度
|
||||||
|
*/
|
||||||
|
@ApiModelProperty(value="维度")
|
||||||
|
private String lat;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 组织分公司id
|
||||||
|
*/
|
||||||
|
@ApiModelProperty(value="组织分公司id")
|
||||||
|
private String company;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 实施单位
|
||||||
|
*/
|
||||||
|
@ApiModelProperty(value="实施单位")
|
||||||
|
private String impUnit;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 项目部
|
||||||
|
*/
|
||||||
|
@ApiModelProperty(value="项目部")
|
||||||
|
private String deptName;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* i8工程id
|
||||||
|
*/
|
||||||
|
@ApiModelProperty(value="i8工程id")
|
||||||
|
private String proId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 项目部id
|
||||||
|
*/
|
||||||
|
@ApiModelProperty(value="项目部id")
|
||||||
|
private Integer deptId;
|
||||||
|
|
||||||
|
@ApiModelProperty(value="")
|
||||||
|
private String cvo;
|
||||||
|
|
||||||
|
@ApiModelProperty(value="")
|
||||||
|
private String stats;
|
||||||
|
|
||||||
|
@ApiModelProperty(value="")
|
||||||
|
private String htzt;
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,60 @@
|
||||||
|
package com.bonus.base.mapper;
|
||||||
|
|
||||||
|
import com.bonus.base.domain.BmProject;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*@PackagePath: com.bonus.base
|
||||||
|
*@author : 阮世耀
|
||||||
|
*@CreateTime: 2024-08-09 10:13
|
||||||
|
*@Description: 描述
|
||||||
|
*@version : 1.0
|
||||||
|
*/
|
||||||
|
@Mapper
|
||||||
|
public interface BmProjectMapper {
|
||||||
|
/**
|
||||||
|
* delete by primary key
|
||||||
|
* @param id primaryKey
|
||||||
|
* @return deleteCount
|
||||||
|
*/
|
||||||
|
int deleteByPrimaryKey(Integer id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* insert record to table
|
||||||
|
* @param record the record
|
||||||
|
* @return insert count
|
||||||
|
*/
|
||||||
|
int insert(BmProject record);
|
||||||
|
|
||||||
|
int insertOrUpdate(BmProject record);
|
||||||
|
|
||||||
|
int insertOrUpdateSelective(BmProject record);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* insert record to table selective
|
||||||
|
* @param record the record
|
||||||
|
* @return insert count
|
||||||
|
*/
|
||||||
|
int insertSelective(BmProject record);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* select by primary key
|
||||||
|
* @param id primary key
|
||||||
|
* @return object by primary key
|
||||||
|
*/
|
||||||
|
BmProject selectByPrimaryKey(Integer id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* update record selective
|
||||||
|
* @param record the updated record
|
||||||
|
* @return update count
|
||||||
|
*/
|
||||||
|
int updateByPrimaryKeySelective(BmProject record);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* update record
|
||||||
|
* @param record the updated record
|
||||||
|
* @return update count
|
||||||
|
*/
|
||||||
|
int updateByPrimaryKey(BmProject record);
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,55 @@
|
||||||
|
package com.bonus.base.service;
|
||||||
|
|
||||||
|
import com.bonus.base.mapper.BmProjectMapper;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
|
||||||
|
import com.bonus.base.domain.BmProject;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*@PackagePath: com.bonus.base
|
||||||
|
*@author : 阮世耀
|
||||||
|
*@CreateTime: 2024-08-09 10:13
|
||||||
|
*@Description: 描述
|
||||||
|
*@version : 1.0
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
public class BmProjectService{
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private BmProjectMapper bmProjectMapper;
|
||||||
|
|
||||||
|
public int deleteByPrimaryKey(Integer id) {
|
||||||
|
return bmProjectMapper.deleteByPrimaryKey(id);
|
||||||
|
}
|
||||||
|
|
||||||
|
public int insert(BmProject record) {
|
||||||
|
return bmProjectMapper.insert(record);
|
||||||
|
}
|
||||||
|
|
||||||
|
public int insertOrUpdate(BmProject record) {
|
||||||
|
return bmProjectMapper.insertOrUpdate(record);
|
||||||
|
}
|
||||||
|
|
||||||
|
public int insertOrUpdateSelective(BmProject record) {
|
||||||
|
return bmProjectMapper.insertOrUpdateSelective(record);
|
||||||
|
}
|
||||||
|
|
||||||
|
public int insertSelective(BmProject record) {
|
||||||
|
return bmProjectMapper.insertSelective(record);
|
||||||
|
}
|
||||||
|
|
||||||
|
public BmProject selectByPrimaryKey(Integer id) {
|
||||||
|
return bmProjectMapper.selectByPrimaryKey(id);
|
||||||
|
}
|
||||||
|
|
||||||
|
public int updateByPrimaryKeySelective(BmProject record) {
|
||||||
|
return bmProjectMapper.updateByPrimaryKeySelective(record);
|
||||||
|
}
|
||||||
|
|
||||||
|
public int updateByPrimaryKey(BmProject record) {
|
||||||
|
return bmProjectMapper.updateByPrimaryKey(record);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,9 @@
|
||||||
|
Spring Boot Version: ${spring-boot.version}
|
||||||
|
Spring Application Name: ${spring.application.name}
|
||||||
|
_
|
||||||
|
| |
|
||||||
|
| |__ ___ _ __ _ _ ___
|
||||||
|
| '_ \ / _ \ | '_ \ | | | | / __|
|
||||||
|
| |_) | | (_) | | | | | | |_| | \__ \
|
||||||
|
|_.__/ \___/ |_| |_| \__,_| |___/
|
||||||
|
|
||||||
|
|
@ -0,0 +1,31 @@
|
||||||
|
# Tomcat
|
||||||
|
server:
|
||||||
|
port: 18088
|
||||||
|
|
||||||
|
# Spring
|
||||||
|
spring:
|
||||||
|
servlet:
|
||||||
|
multipart:
|
||||||
|
max-file-size: 5GB
|
||||||
|
max-request-size: 5GB
|
||||||
|
application:
|
||||||
|
# 应用名称
|
||||||
|
name: bonus-base
|
||||||
|
profiles:
|
||||||
|
# 环境配置
|
||||||
|
active: dev
|
||||||
|
cloud:
|
||||||
|
nacos:
|
||||||
|
discovery:
|
||||||
|
# 服务注册地址
|
||||||
|
server-addr: 192.168.0.56:8848
|
||||||
|
namespace: 9cde1ce1-98bc-4b9c-9213-f1fbf8a5b3cc
|
||||||
|
config:
|
||||||
|
# 配置中心地址
|
||||||
|
server-addr: 192.168.0.56:8848
|
||||||
|
namespace: 9cde1ce1-98bc-4b9c-9213-f1fbf8a5b3cc
|
||||||
|
# 配置文件格式
|
||||||
|
file-extension: yml
|
||||||
|
# 共享配置
|
||||||
|
shared-configs:
|
||||||
|
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
|
||||||
|
|
@ -0,0 +1,74 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<configuration scan="true" scanPeriod="60 seconds" debug="false">
|
||||||
|
<!-- 日志存放路径 -->
|
||||||
|
<property name="log.path" value="logs/bonus-base" />
|
||||||
|
<!-- 日志输出格式 -->
|
||||||
|
<property name="log.pattern" value="%d{HH:mm:ss.SSS} [%thread] %-5level %logger{20} - [%method,%line] - %msg%n" />
|
||||||
|
|
||||||
|
<!-- 控制台输出 -->
|
||||||
|
<appender name="console" class="ch.qos.logback.core.ConsoleAppender">
|
||||||
|
<encoder>
|
||||||
|
<pattern>${log.pattern}</pattern>
|
||||||
|
</encoder>
|
||||||
|
</appender>
|
||||||
|
|
||||||
|
<!-- 系统日志输出 -->
|
||||||
|
<appender name="file_info" class="ch.qos.logback.core.rolling.RollingFileAppender">
|
||||||
|
<file>${log.path}/info.log</file>
|
||||||
|
<!-- 循环政策:基于时间创建日志文件 -->
|
||||||
|
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
|
||||||
|
<!-- 日志文件名格式 -->
|
||||||
|
<fileNamePattern>${log.path}/info.%d{yyyy-MM-dd}.log</fileNamePattern>
|
||||||
|
<!-- 日志最大的历史 60天 -->
|
||||||
|
<maxHistory>60</maxHistory>
|
||||||
|
</rollingPolicy>
|
||||||
|
<encoder>
|
||||||
|
<pattern>${log.pattern}</pattern>
|
||||||
|
</encoder>
|
||||||
|
<filter class="ch.qos.logback.classic.filter.LevelFilter">
|
||||||
|
<!-- 过滤的级别 -->
|
||||||
|
<level>INFO</level>
|
||||||
|
<!-- 匹配时的操作:接收(记录) -->
|
||||||
|
<onMatch>ACCEPT</onMatch>
|
||||||
|
<!-- 不匹配时的操作:拒绝(不记录) -->
|
||||||
|
<onMismatch>DENY</onMismatch>
|
||||||
|
</filter>
|
||||||
|
</appender>
|
||||||
|
|
||||||
|
<appender name="file_error" class="ch.qos.logback.core.rolling.RollingFileAppender">
|
||||||
|
<file>${log.path}/error.log</file>
|
||||||
|
<!-- 循环政策:基于时间创建日志文件 -->
|
||||||
|
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
|
||||||
|
<!-- 日志文件名格式 -->
|
||||||
|
<fileNamePattern>${log.path}/error.%d{yyyy-MM-dd}.log</fileNamePattern>
|
||||||
|
<!-- 日志最大的历史 60天 -->
|
||||||
|
<maxHistory>60</maxHistory>
|
||||||
|
</rollingPolicy>
|
||||||
|
<encoder>
|
||||||
|
<pattern>${log.pattern}</pattern>
|
||||||
|
</encoder>
|
||||||
|
<filter class="ch.qos.logback.classic.filter.LevelFilter">
|
||||||
|
<!-- 过滤的级别 -->
|
||||||
|
<level>ERROR</level>
|
||||||
|
<!-- 匹配时的操作:接收(记录) -->
|
||||||
|
<onMatch>ACCEPT</onMatch>
|
||||||
|
<!-- 不匹配时的操作:拒绝(不记录) -->
|
||||||
|
<onMismatch>DENY</onMismatch>
|
||||||
|
</filter>
|
||||||
|
</appender>
|
||||||
|
|
||||||
|
<!-- 系统模块日志级别控制 -->
|
||||||
|
<logger name="com.bonus" level="info" />
|
||||||
|
<!-- Spring日志级别控制 -->
|
||||||
|
<logger name="org.springframework" level="warn" />
|
||||||
|
|
||||||
|
<root level="info">
|
||||||
|
<appender-ref ref="console" />
|
||||||
|
</root>
|
||||||
|
|
||||||
|
<!--系统操作日志-->
|
||||||
|
<root level="info">
|
||||||
|
<appender-ref ref="file_info" />
|
||||||
|
<appender-ref ref="file_error" />
|
||||||
|
</root>
|
||||||
|
</configuration>
|
||||||
|
|
@ -0,0 +1,736 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
<mapper namespace="com.bonus.base.mapper.BmProjectMapper">
|
||||||
|
<resultMap id="BaseResultMap" type="com.bonus.base.domain.BmProject">
|
||||||
|
<!--@mbg.generated-->
|
||||||
|
<!--@Table bm_project-->
|
||||||
|
<id column="id" jdbcType="INTEGER" property="id" />
|
||||||
|
<result column="project_type" jdbcType="INTEGER" property="projectType" />
|
||||||
|
<result column="name" jdbcType="VARCHAR" property="name" />
|
||||||
|
<result column="num" jdbcType="VARCHAR" property="num" />
|
||||||
|
<result column="manager" jdbcType="VARCHAR" property="manager" />
|
||||||
|
<result column="nature" jdbcType="VARCHAR" property="nature" />
|
||||||
|
<result column="telphone" jdbcType="VARCHAR" property="telphone" />
|
||||||
|
<result column="phone" jdbcType="VARCHAR" property="phone" />
|
||||||
|
<result column="fax" jdbcType="VARCHAR" property="fax" />
|
||||||
|
<result column="address" jdbcType="VARCHAR" property="address" />
|
||||||
|
<result column="remarks" jdbcType="VARCHAR" property="remarks" />
|
||||||
|
<result column="material_clerk" jdbcType="VARCHAR" property="materialClerk" />
|
||||||
|
<result column="clerk_phone" jdbcType="VARCHAR" property="clerkPhone" />
|
||||||
|
<result column="voltage class" jdbcType="INTEGER" property="voltageClass" />
|
||||||
|
<result column="company_id" jdbcType="INTEGER" property="companyId" />
|
||||||
|
<result column="is_balance_end" jdbcType="CHAR" property="isBalanceEnd" />
|
||||||
|
<result column="time" jdbcType="VARCHAR" property="time" />
|
||||||
|
<result column="is_active" jdbcType="VARCHAR" property="isActive" />
|
||||||
|
<result column="lon" jdbcType="VARCHAR" property="lon" />
|
||||||
|
<result column="lat" jdbcType="VARCHAR" property="lat" />
|
||||||
|
<result column="company" jdbcType="VARCHAR" property="company" />
|
||||||
|
<result column="imp_unit" jdbcType="VARCHAR" property="impUnit" />
|
||||||
|
<result column="dept_name" jdbcType="VARCHAR" property="deptName" />
|
||||||
|
<result column="pro_id" jdbcType="VARCHAR" property="proId" />
|
||||||
|
<result column="dept_id" jdbcType="INTEGER" property="deptId" />
|
||||||
|
<result column="cvo" jdbcType="VARCHAR" property="cvo" />
|
||||||
|
<result column="stats" jdbcType="VARCHAR" property="stats" />
|
||||||
|
<result column="htzt" jdbcType="VARCHAR" property="htzt" />
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
<sql id="Base_Column_List">
|
||||||
|
<!--@mbg.generated-->
|
||||||
|
id, project_type, `name`, num, manager, nature, telphone, phone, fax, address, remarks,
|
||||||
|
material_clerk, clerk_phone, `voltage class`, company_id, is_balance_end, `time`,
|
||||||
|
is_active, lon, lat, company, imp_unit, dept_name, pro_id, dept_id, cvo, stats, htzt
|
||||||
|
</sql>
|
||||||
|
|
||||||
|
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
|
||||||
|
<!--@mbg.generated-->
|
||||||
|
select
|
||||||
|
<include refid="Base_Column_List" />
|
||||||
|
from bm_project
|
||||||
|
where id = #{id,jdbcType=INTEGER}
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
|
||||||
|
<!--@mbg.generated-->
|
||||||
|
delete from bm_project
|
||||||
|
where id = #{id,jdbcType=INTEGER}
|
||||||
|
</delete>
|
||||||
|
|
||||||
|
<insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.bonus.base.domain.BmProject" useGeneratedKeys="true">
|
||||||
|
<!--@mbg.generated-->
|
||||||
|
insert into bm_project (project_type, `name`, num,
|
||||||
|
manager, nature, telphone,
|
||||||
|
phone, fax, address,
|
||||||
|
remarks, material_clerk, clerk_phone,
|
||||||
|
`voltage class`, company_id, is_balance_end,
|
||||||
|
`time`, is_active, lon,
|
||||||
|
lat, company, imp_unit,
|
||||||
|
dept_name, pro_id, dept_id,
|
||||||
|
cvo, stats, htzt)
|
||||||
|
values (#{projectType,jdbcType=INTEGER}, #{name,jdbcType=VARCHAR}, #{num,jdbcType=VARCHAR},
|
||||||
|
#{manager,jdbcType=VARCHAR}, #{nature,jdbcType=VARCHAR}, #{telphone,jdbcType=VARCHAR},
|
||||||
|
#{phone,jdbcType=VARCHAR}, #{fax,jdbcType=VARCHAR}, #{address,jdbcType=VARCHAR},
|
||||||
|
#{remarks,jdbcType=VARCHAR}, #{materialClerk,jdbcType=VARCHAR}, #{clerkPhone,jdbcType=VARCHAR},
|
||||||
|
#{voltageClass,jdbcType=INTEGER}, #{companyId,jdbcType=INTEGER}, #{isBalanceEnd,jdbcType=CHAR},
|
||||||
|
#{time,jdbcType=VARCHAR}, #{isActive,jdbcType=VARCHAR}, #{lon,jdbcType=VARCHAR},
|
||||||
|
#{lat,jdbcType=VARCHAR}, #{company,jdbcType=VARCHAR}, #{impUnit,jdbcType=VARCHAR},
|
||||||
|
#{deptName,jdbcType=VARCHAR}, #{proId,jdbcType=VARCHAR}, #{deptId,jdbcType=INTEGER},
|
||||||
|
#{cvo,jdbcType=VARCHAR}, #{stats,jdbcType=VARCHAR}, #{htzt,jdbcType=VARCHAR})
|
||||||
|
</insert>
|
||||||
|
|
||||||
|
<insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.bonus.base.domain.BmProject" useGeneratedKeys="true">
|
||||||
|
<!--@mbg.generated-->
|
||||||
|
insert into bm_project
|
||||||
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="projectType != null">
|
||||||
|
project_type,
|
||||||
|
</if>
|
||||||
|
<if test="name != null and name != ''">
|
||||||
|
`name`,
|
||||||
|
</if>
|
||||||
|
<if test="num != null and num != ''">
|
||||||
|
num,
|
||||||
|
</if>
|
||||||
|
<if test="manager != null and manager != ''">
|
||||||
|
manager,
|
||||||
|
</if>
|
||||||
|
<if test="nature != null and nature != ''">
|
||||||
|
nature,
|
||||||
|
</if>
|
||||||
|
<if test="telphone != null and telphone != ''">
|
||||||
|
telphone,
|
||||||
|
</if>
|
||||||
|
<if test="phone != null and phone != ''">
|
||||||
|
phone,
|
||||||
|
</if>
|
||||||
|
<if test="fax != null and fax != ''">
|
||||||
|
fax,
|
||||||
|
</if>
|
||||||
|
<if test="address != null and address != ''">
|
||||||
|
address,
|
||||||
|
</if>
|
||||||
|
<if test="remarks != null and remarks != ''">
|
||||||
|
remarks,
|
||||||
|
</if>
|
||||||
|
<if test="materialClerk != null and materialClerk != ''">
|
||||||
|
material_clerk,
|
||||||
|
</if>
|
||||||
|
<if test="clerkPhone != null and clerkPhone != ''">
|
||||||
|
clerk_phone,
|
||||||
|
</if>
|
||||||
|
<if test="voltageClass != null">
|
||||||
|
`voltage class`,
|
||||||
|
</if>
|
||||||
|
<if test="companyId != null">
|
||||||
|
company_id,
|
||||||
|
</if>
|
||||||
|
<if test="isBalanceEnd != null and isBalanceEnd != ''">
|
||||||
|
is_balance_end,
|
||||||
|
</if>
|
||||||
|
<if test="time != null and time != ''">
|
||||||
|
`time`,
|
||||||
|
</if>
|
||||||
|
<if test="isActive != null and isActive != ''">
|
||||||
|
is_active,
|
||||||
|
</if>
|
||||||
|
<if test="lon != null and lon != ''">
|
||||||
|
lon,
|
||||||
|
</if>
|
||||||
|
<if test="lat != null and lat != ''">
|
||||||
|
lat,
|
||||||
|
</if>
|
||||||
|
<if test="company != null and company != ''">
|
||||||
|
company,
|
||||||
|
</if>
|
||||||
|
<if test="impUnit != null and impUnit != ''">
|
||||||
|
imp_unit,
|
||||||
|
</if>
|
||||||
|
<if test="deptName != null and deptName != ''">
|
||||||
|
dept_name,
|
||||||
|
</if>
|
||||||
|
<if test="proId != null and proId != ''">
|
||||||
|
pro_id,
|
||||||
|
</if>
|
||||||
|
<if test="deptId != null">
|
||||||
|
dept_id,
|
||||||
|
</if>
|
||||||
|
<if test="cvo != null and cvo != ''">
|
||||||
|
cvo,
|
||||||
|
</if>
|
||||||
|
<if test="stats != null and stats != ''">
|
||||||
|
stats,
|
||||||
|
</if>
|
||||||
|
<if test="htzt != null and htzt != ''">
|
||||||
|
htzt,
|
||||||
|
</if>
|
||||||
|
</trim>
|
||||||
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="projectType != null">
|
||||||
|
#{projectType,jdbcType=INTEGER},
|
||||||
|
</if>
|
||||||
|
<if test="name != null and name != ''">
|
||||||
|
#{name,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="num != null and num != ''">
|
||||||
|
#{num,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="manager != null and manager != ''">
|
||||||
|
#{manager,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="nature != null and nature != ''">
|
||||||
|
#{nature,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="telphone != null and telphone != ''">
|
||||||
|
#{telphone,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="phone != null and phone != ''">
|
||||||
|
#{phone,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="fax != null and fax != ''">
|
||||||
|
#{fax,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="address != null and address != ''">
|
||||||
|
#{address,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="remarks != null and remarks != ''">
|
||||||
|
#{remarks,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="materialClerk != null and materialClerk != ''">
|
||||||
|
#{materialClerk,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="clerkPhone != null and clerkPhone != ''">
|
||||||
|
#{clerkPhone,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="voltageClass != null">
|
||||||
|
#{voltageClass,jdbcType=INTEGER},
|
||||||
|
</if>
|
||||||
|
<if test="companyId != null">
|
||||||
|
#{companyId,jdbcType=INTEGER},
|
||||||
|
</if>
|
||||||
|
<if test="isBalanceEnd != null and isBalanceEnd != ''">
|
||||||
|
#{isBalanceEnd,jdbcType=CHAR},
|
||||||
|
</if>
|
||||||
|
<if test="time != null and time != ''">
|
||||||
|
#{time,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="isActive != null and isActive != ''">
|
||||||
|
#{isActive,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="lon != null and lon != ''">
|
||||||
|
#{lon,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="lat != null and lat != ''">
|
||||||
|
#{lat,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="company != null and company != ''">
|
||||||
|
#{company,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="impUnit != null and impUnit != ''">
|
||||||
|
#{impUnit,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="deptName != null and deptName != ''">
|
||||||
|
#{deptName,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="proId != null and proId != ''">
|
||||||
|
#{proId,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="deptId != null">
|
||||||
|
#{deptId,jdbcType=INTEGER},
|
||||||
|
</if>
|
||||||
|
<if test="cvo != null and cvo != ''">
|
||||||
|
#{cvo,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="stats != null and stats != ''">
|
||||||
|
#{stats,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="htzt != null and htzt != ''">
|
||||||
|
#{htzt,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
</trim>
|
||||||
|
</insert>
|
||||||
|
<update id="updateByPrimaryKeySelective" parameterType="com.bonus.base.domain.BmProject">
|
||||||
|
<!--@mbg.generated-->
|
||||||
|
update bm_project
|
||||||
|
<set>
|
||||||
|
<if test="projectType != null">
|
||||||
|
project_type = #{projectType,jdbcType=INTEGER},
|
||||||
|
</if>
|
||||||
|
<if test="name != null and name != ''">
|
||||||
|
`name` = #{name,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="num != null and num != ''">
|
||||||
|
num = #{num,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="manager != null and manager != ''">
|
||||||
|
manager = #{manager,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="nature != null and nature != ''">
|
||||||
|
nature = #{nature,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="telphone != null and telphone != ''">
|
||||||
|
telphone = #{telphone,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="phone != null and phone != ''">
|
||||||
|
phone = #{phone,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="fax != null and fax != ''">
|
||||||
|
fax = #{fax,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="address != null and address != ''">
|
||||||
|
address = #{address,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="remarks != null and remarks != ''">
|
||||||
|
remarks = #{remarks,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="materialClerk != null and materialClerk != ''">
|
||||||
|
material_clerk = #{materialClerk,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="clerkPhone != null and clerkPhone != ''">
|
||||||
|
clerk_phone = #{clerkPhone,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="voltageClass != null">
|
||||||
|
`voltage class` = #{voltageClass,jdbcType=INTEGER},
|
||||||
|
</if>
|
||||||
|
<if test="companyId != null">
|
||||||
|
company_id = #{companyId,jdbcType=INTEGER},
|
||||||
|
</if>
|
||||||
|
<if test="isBalanceEnd != null and isBalanceEnd != ''">
|
||||||
|
is_balance_end = #{isBalanceEnd,jdbcType=CHAR},
|
||||||
|
</if>
|
||||||
|
<if test="time != null and time != ''">
|
||||||
|
`time` = #{time,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="isActive != null and isActive != ''">
|
||||||
|
is_active = #{isActive,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="lon != null and lon != ''">
|
||||||
|
lon = #{lon,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="lat != null and lat != ''">
|
||||||
|
lat = #{lat,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="company != null and company != ''">
|
||||||
|
company = #{company,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="impUnit != null and impUnit != ''">
|
||||||
|
imp_unit = #{impUnit,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="deptName != null and deptName != ''">
|
||||||
|
dept_name = #{deptName,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="proId != null and proId != ''">
|
||||||
|
pro_id = #{proId,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="deptId != null">
|
||||||
|
dept_id = #{deptId,jdbcType=INTEGER},
|
||||||
|
</if>
|
||||||
|
<if test="cvo != null and cvo != ''">
|
||||||
|
cvo = #{cvo,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="stats != null and stats != ''">
|
||||||
|
stats = #{stats,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="htzt != null and htzt != ''">
|
||||||
|
htzt = #{htzt,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
</set>
|
||||||
|
where id = #{id,jdbcType=INTEGER}
|
||||||
|
</update>
|
||||||
|
<update id="updateByPrimaryKey" parameterType="com.bonus.base.domain.BmProject">
|
||||||
|
<!--@mbg.generated-->
|
||||||
|
update bm_project
|
||||||
|
set project_type = #{projectType,jdbcType=INTEGER},
|
||||||
|
`name` = #{name,jdbcType=VARCHAR},
|
||||||
|
num = #{num,jdbcType=VARCHAR},
|
||||||
|
manager = #{manager,jdbcType=VARCHAR},
|
||||||
|
nature = #{nature,jdbcType=VARCHAR},
|
||||||
|
telphone = #{telphone,jdbcType=VARCHAR},
|
||||||
|
phone = #{phone,jdbcType=VARCHAR},
|
||||||
|
fax = #{fax,jdbcType=VARCHAR},
|
||||||
|
address = #{address,jdbcType=VARCHAR},
|
||||||
|
remarks = #{remarks,jdbcType=VARCHAR},
|
||||||
|
material_clerk = #{materialClerk,jdbcType=VARCHAR},
|
||||||
|
clerk_phone = #{clerkPhone,jdbcType=VARCHAR},
|
||||||
|
`voltage class` = #{voltageClass,jdbcType=INTEGER},
|
||||||
|
company_id = #{companyId,jdbcType=INTEGER},
|
||||||
|
is_balance_end = #{isBalanceEnd,jdbcType=CHAR},
|
||||||
|
`time` = #{time,jdbcType=VARCHAR},
|
||||||
|
is_active = #{isActive,jdbcType=VARCHAR},
|
||||||
|
lon = #{lon,jdbcType=VARCHAR},
|
||||||
|
lat = #{lat,jdbcType=VARCHAR},
|
||||||
|
company = #{company,jdbcType=VARCHAR},
|
||||||
|
imp_unit = #{impUnit,jdbcType=VARCHAR},
|
||||||
|
dept_name = #{deptName,jdbcType=VARCHAR},
|
||||||
|
pro_id = #{proId,jdbcType=VARCHAR},
|
||||||
|
dept_id = #{deptId,jdbcType=INTEGER},
|
||||||
|
cvo = #{cvo,jdbcType=VARCHAR},
|
||||||
|
stats = #{stats,jdbcType=VARCHAR},
|
||||||
|
htzt = #{htzt,jdbcType=VARCHAR}
|
||||||
|
where id = #{id,jdbcType=INTEGER}
|
||||||
|
</update>
|
||||||
|
<insert id="insertOrUpdate" keyColumn="id" keyProperty="id" parameterType="com.bonus.base.domain.BmProject" useGeneratedKeys="true">
|
||||||
|
<!--@mbg.generated-->
|
||||||
|
insert into bm_project
|
||||||
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="id != null">
|
||||||
|
id,
|
||||||
|
</if>
|
||||||
|
project_type,
|
||||||
|
`name`,
|
||||||
|
num,
|
||||||
|
manager,
|
||||||
|
nature,
|
||||||
|
telphone,
|
||||||
|
phone,
|
||||||
|
fax,
|
||||||
|
address,
|
||||||
|
remarks,
|
||||||
|
material_clerk,
|
||||||
|
clerk_phone,
|
||||||
|
`voltage class`,
|
||||||
|
company_id,
|
||||||
|
is_balance_end,
|
||||||
|
`time`,
|
||||||
|
is_active,
|
||||||
|
lon,
|
||||||
|
lat,
|
||||||
|
company,
|
||||||
|
imp_unit,
|
||||||
|
dept_name,
|
||||||
|
pro_id,
|
||||||
|
dept_id,
|
||||||
|
cvo,
|
||||||
|
stats,
|
||||||
|
htzt,
|
||||||
|
</trim>
|
||||||
|
values
|
||||||
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="id != null">
|
||||||
|
#{id,jdbcType=INTEGER},
|
||||||
|
</if>
|
||||||
|
#{projectType,jdbcType=INTEGER},
|
||||||
|
#{name,jdbcType=VARCHAR},
|
||||||
|
#{num,jdbcType=VARCHAR},
|
||||||
|
#{manager,jdbcType=VARCHAR},
|
||||||
|
#{nature,jdbcType=VARCHAR},
|
||||||
|
#{telphone,jdbcType=VARCHAR},
|
||||||
|
#{phone,jdbcType=VARCHAR},
|
||||||
|
#{fax,jdbcType=VARCHAR},
|
||||||
|
#{address,jdbcType=VARCHAR},
|
||||||
|
#{remarks,jdbcType=VARCHAR},
|
||||||
|
#{materialClerk,jdbcType=VARCHAR},
|
||||||
|
#{clerkPhone,jdbcType=VARCHAR},
|
||||||
|
#{voltageClass,jdbcType=INTEGER},
|
||||||
|
#{companyId,jdbcType=INTEGER},
|
||||||
|
#{isBalanceEnd,jdbcType=CHAR},
|
||||||
|
#{time,jdbcType=VARCHAR},
|
||||||
|
#{isActive,jdbcType=VARCHAR},
|
||||||
|
#{lon,jdbcType=VARCHAR},
|
||||||
|
#{lat,jdbcType=VARCHAR},
|
||||||
|
#{company,jdbcType=VARCHAR},
|
||||||
|
#{impUnit,jdbcType=VARCHAR},
|
||||||
|
#{deptName,jdbcType=VARCHAR},
|
||||||
|
#{proId,jdbcType=VARCHAR},
|
||||||
|
#{deptId,jdbcType=INTEGER},
|
||||||
|
#{cvo,jdbcType=VARCHAR},
|
||||||
|
#{stats,jdbcType=VARCHAR},
|
||||||
|
#{htzt,jdbcType=VARCHAR},
|
||||||
|
</trim>
|
||||||
|
on duplicate key update
|
||||||
|
<trim suffixOverrides=",">
|
||||||
|
<if test="id != null">
|
||||||
|
id = #{id,jdbcType=INTEGER},
|
||||||
|
</if>
|
||||||
|
project_type = #{projectType,jdbcType=INTEGER},
|
||||||
|
`name` = #{name,jdbcType=VARCHAR},
|
||||||
|
num = #{num,jdbcType=VARCHAR},
|
||||||
|
manager = #{manager,jdbcType=VARCHAR},
|
||||||
|
nature = #{nature,jdbcType=VARCHAR},
|
||||||
|
telphone = #{telphone,jdbcType=VARCHAR},
|
||||||
|
phone = #{phone,jdbcType=VARCHAR},
|
||||||
|
fax = #{fax,jdbcType=VARCHAR},
|
||||||
|
address = #{address,jdbcType=VARCHAR},
|
||||||
|
remarks = #{remarks,jdbcType=VARCHAR},
|
||||||
|
material_clerk = #{materialClerk,jdbcType=VARCHAR},
|
||||||
|
clerk_phone = #{clerkPhone,jdbcType=VARCHAR},
|
||||||
|
`voltage class` = #{voltageClass,jdbcType=INTEGER},
|
||||||
|
company_id = #{companyId,jdbcType=INTEGER},
|
||||||
|
is_balance_end = #{isBalanceEnd,jdbcType=CHAR},
|
||||||
|
`time` = #{time,jdbcType=VARCHAR},
|
||||||
|
is_active = #{isActive,jdbcType=VARCHAR},
|
||||||
|
lon = #{lon,jdbcType=VARCHAR},
|
||||||
|
lat = #{lat,jdbcType=VARCHAR},
|
||||||
|
company = #{company,jdbcType=VARCHAR},
|
||||||
|
imp_unit = #{impUnit,jdbcType=VARCHAR},
|
||||||
|
dept_name = #{deptName,jdbcType=VARCHAR},
|
||||||
|
pro_id = #{proId,jdbcType=VARCHAR},
|
||||||
|
dept_id = #{deptId,jdbcType=INTEGER},
|
||||||
|
cvo = #{cvo,jdbcType=VARCHAR},
|
||||||
|
stats = #{stats,jdbcType=VARCHAR},
|
||||||
|
htzt = #{htzt,jdbcType=VARCHAR},
|
||||||
|
</trim>
|
||||||
|
</insert>
|
||||||
|
<insert id="insertOrUpdateSelective" keyColumn="id" keyProperty="id" parameterType="com.bonus.base.domain.BmProject" useGeneratedKeys="true">
|
||||||
|
<!--@mbg.generated-->
|
||||||
|
insert into bm_project
|
||||||
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="id != null">
|
||||||
|
id,
|
||||||
|
</if>
|
||||||
|
<if test="projectType != null">
|
||||||
|
project_type,
|
||||||
|
</if>
|
||||||
|
<if test="name != null and name != ''">
|
||||||
|
`name`,
|
||||||
|
</if>
|
||||||
|
<if test="num != null and num != ''">
|
||||||
|
num,
|
||||||
|
</if>
|
||||||
|
<if test="manager != null and manager != ''">
|
||||||
|
manager,
|
||||||
|
</if>
|
||||||
|
<if test="nature != null and nature != ''">
|
||||||
|
nature,
|
||||||
|
</if>
|
||||||
|
<if test="telphone != null and telphone != ''">
|
||||||
|
telphone,
|
||||||
|
</if>
|
||||||
|
<if test="phone != null and phone != ''">
|
||||||
|
phone,
|
||||||
|
</if>
|
||||||
|
<if test="fax != null and fax != ''">
|
||||||
|
fax,
|
||||||
|
</if>
|
||||||
|
<if test="address != null and address != ''">
|
||||||
|
address,
|
||||||
|
</if>
|
||||||
|
<if test="remarks != null and remarks != ''">
|
||||||
|
remarks,
|
||||||
|
</if>
|
||||||
|
<if test="materialClerk != null and materialClerk != ''">
|
||||||
|
material_clerk,
|
||||||
|
</if>
|
||||||
|
<if test="clerkPhone != null and clerkPhone != ''">
|
||||||
|
clerk_phone,
|
||||||
|
</if>
|
||||||
|
<if test="voltageClass != null">
|
||||||
|
`voltage class`,
|
||||||
|
</if>
|
||||||
|
<if test="companyId != null">
|
||||||
|
company_id,
|
||||||
|
</if>
|
||||||
|
<if test="isBalanceEnd != null and isBalanceEnd != ''">
|
||||||
|
is_balance_end,
|
||||||
|
</if>
|
||||||
|
<if test="time != null and time != ''">
|
||||||
|
`time`,
|
||||||
|
</if>
|
||||||
|
<if test="isActive != null and isActive != ''">
|
||||||
|
is_active,
|
||||||
|
</if>
|
||||||
|
<if test="lon != null and lon != ''">
|
||||||
|
lon,
|
||||||
|
</if>
|
||||||
|
<if test="lat != null and lat != ''">
|
||||||
|
lat,
|
||||||
|
</if>
|
||||||
|
<if test="company != null and company != ''">
|
||||||
|
company,
|
||||||
|
</if>
|
||||||
|
<if test="impUnit != null and impUnit != ''">
|
||||||
|
imp_unit,
|
||||||
|
</if>
|
||||||
|
<if test="deptName != null and deptName != ''">
|
||||||
|
dept_name,
|
||||||
|
</if>
|
||||||
|
<if test="proId != null and proId != ''">
|
||||||
|
pro_id,
|
||||||
|
</if>
|
||||||
|
<if test="deptId != null">
|
||||||
|
dept_id,
|
||||||
|
</if>
|
||||||
|
<if test="cvo != null and cvo != ''">
|
||||||
|
cvo,
|
||||||
|
</if>
|
||||||
|
<if test="stats != null and stats != ''">
|
||||||
|
stats,
|
||||||
|
</if>
|
||||||
|
<if test="htzt != null and htzt != ''">
|
||||||
|
htzt,
|
||||||
|
</if>
|
||||||
|
</trim>
|
||||||
|
values
|
||||||
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="id != null">
|
||||||
|
#{id,jdbcType=INTEGER},
|
||||||
|
</if>
|
||||||
|
<if test="projectType != null">
|
||||||
|
#{projectType,jdbcType=INTEGER},
|
||||||
|
</if>
|
||||||
|
<if test="name != null and name != ''">
|
||||||
|
#{name,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="num != null and num != ''">
|
||||||
|
#{num,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="manager != null and manager != ''">
|
||||||
|
#{manager,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="nature != null and nature != ''">
|
||||||
|
#{nature,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="telphone != null and telphone != ''">
|
||||||
|
#{telphone,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="phone != null and phone != ''">
|
||||||
|
#{phone,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="fax != null and fax != ''">
|
||||||
|
#{fax,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="address != null and address != ''">
|
||||||
|
#{address,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="remarks != null and remarks != ''">
|
||||||
|
#{remarks,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="materialClerk != null and materialClerk != ''">
|
||||||
|
#{materialClerk,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="clerkPhone != null and clerkPhone != ''">
|
||||||
|
#{clerkPhone,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="voltageClass != null">
|
||||||
|
#{voltageClass,jdbcType=INTEGER},
|
||||||
|
</if>
|
||||||
|
<if test="companyId != null">
|
||||||
|
#{companyId,jdbcType=INTEGER},
|
||||||
|
</if>
|
||||||
|
<if test="isBalanceEnd != null and isBalanceEnd != ''">
|
||||||
|
#{isBalanceEnd,jdbcType=CHAR},
|
||||||
|
</if>
|
||||||
|
<if test="time != null and time != ''">
|
||||||
|
#{time,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="isActive != null and isActive != ''">
|
||||||
|
#{isActive,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="lon != null and lon != ''">
|
||||||
|
#{lon,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="lat != null and lat != ''">
|
||||||
|
#{lat,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="company != null and company != ''">
|
||||||
|
#{company,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="impUnit != null and impUnit != ''">
|
||||||
|
#{impUnit,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="deptName != null and deptName != ''">
|
||||||
|
#{deptName,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="proId != null and proId != ''">
|
||||||
|
#{proId,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="deptId != null">
|
||||||
|
#{deptId,jdbcType=INTEGER},
|
||||||
|
</if>
|
||||||
|
<if test="cvo != null and cvo != ''">
|
||||||
|
#{cvo,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="stats != null and stats != ''">
|
||||||
|
#{stats,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="htzt != null and htzt != ''">
|
||||||
|
#{htzt,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
</trim>
|
||||||
|
on duplicate key update
|
||||||
|
<trim suffixOverrides=",">
|
||||||
|
<if test="id != null">
|
||||||
|
id = #{id,jdbcType=INTEGER},
|
||||||
|
</if>
|
||||||
|
<if test="projectType != null">
|
||||||
|
project_type = #{projectType,jdbcType=INTEGER},
|
||||||
|
</if>
|
||||||
|
<if test="name != null and name != ''">
|
||||||
|
`name` = #{name,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="num != null and num != ''">
|
||||||
|
num = #{num,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="manager != null and manager != ''">
|
||||||
|
manager = #{manager,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="nature != null and nature != ''">
|
||||||
|
nature = #{nature,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="telphone != null and telphone != ''">
|
||||||
|
telphone = #{telphone,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="phone != null and phone != ''">
|
||||||
|
phone = #{phone,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="fax != null and fax != ''">
|
||||||
|
fax = #{fax,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="address != null and address != ''">
|
||||||
|
address = #{address,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="remarks != null and remarks != ''">
|
||||||
|
remarks = #{remarks,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="materialClerk != null and materialClerk != ''">
|
||||||
|
material_clerk = #{materialClerk,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="clerkPhone != null and clerkPhone != ''">
|
||||||
|
clerk_phone = #{clerkPhone,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="voltageClass != null">
|
||||||
|
`voltage class` = #{voltageClass,jdbcType=INTEGER},
|
||||||
|
</if>
|
||||||
|
<if test="companyId != null">
|
||||||
|
company_id = #{companyId,jdbcType=INTEGER},
|
||||||
|
</if>
|
||||||
|
<if test="isBalanceEnd != null and isBalanceEnd != ''">
|
||||||
|
is_balance_end = #{isBalanceEnd,jdbcType=CHAR},
|
||||||
|
</if>
|
||||||
|
<if test="time != null and time != ''">
|
||||||
|
`time` = #{time,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="isActive != null and isActive != ''">
|
||||||
|
is_active = #{isActive,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="lon != null and lon != ''">
|
||||||
|
lon = #{lon,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="lat != null and lat != ''">
|
||||||
|
lat = #{lat,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="company != null and company != ''">
|
||||||
|
company = #{company,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="impUnit != null and impUnit != ''">
|
||||||
|
imp_unit = #{impUnit,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="deptName != null and deptName != ''">
|
||||||
|
dept_name = #{deptName,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="proId != null and proId != ''">
|
||||||
|
pro_id = #{proId,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="deptId != null">
|
||||||
|
dept_id = #{deptId,jdbcType=INTEGER},
|
||||||
|
</if>
|
||||||
|
<if test="cvo != null and cvo != ''">
|
||||||
|
cvo = #{cvo,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="stats != null and stats != ''">
|
||||||
|
stats = #{stats,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="htzt != null and htzt != ''">
|
||||||
|
htzt = #{htzt,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
</trim>
|
||||||
|
</insert>
|
||||||
|
</mapper>
|
||||||
|
|
@ -15,11 +15,11 @@ spring:
|
||||||
discovery:
|
discovery:
|
||||||
# 服务注册地址
|
# 服务注册地址
|
||||||
server-addr: 192.168.0.56:8848
|
server-addr: 192.168.0.56:8848
|
||||||
namespace: 9cde1ce1-98bc-4b9c-9213-f1fbf8a5b3cc
|
namespace: 693e01a9-1dc4-4858-b1ae-439da3d35f66
|
||||||
config:
|
config:
|
||||||
# 配置中心地址
|
# 配置中心地址
|
||||||
server-addr: 192.168.0.56:8848
|
server-addr: 192.168.0.56:8848
|
||||||
namespace: 9cde1ce1-98bc-4b9c-9213-f1fbf8a5b3cc
|
namespace: 693e01a9-1dc4-4858-b1ae-439da3d35f66
|
||||||
# 配置文件格式
|
# 配置文件格式
|
||||||
file-extension: yml
|
file-extension: yml
|
||||||
# 共享配置
|
# 共享配置
|
||||||
|
|
|
||||||
|
|
@ -14,12 +14,12 @@ spring:
|
||||||
nacos:
|
nacos:
|
||||||
discovery:
|
discovery:
|
||||||
# 服务注册地址
|
# 服务注册地址
|
||||||
server-addr: 192.168.0.14:8848
|
server-addr: 192.168.0.56:8848
|
||||||
namespace: 9404b13b-4b90-4759-98c7-f5d7a670ffd8
|
namespace: 693e01a9-1dc4-4858-b1ae-439da3d35f66
|
||||||
config:
|
config:
|
||||||
# 配置中心地址
|
# 配置中心地址
|
||||||
server-addr: 192.168.0.14:8848
|
server-addr: 192.168.0.56:8848
|
||||||
namespace: 9404b13b-4b90-4759-98c7-f5d7a670ffd8
|
namespace: 693e01a9-1dc4-4858-b1ae-439da3d35f66
|
||||||
# 配置文件格式
|
# 配置文件格式
|
||||||
file-extension: yml
|
file-extension: yml
|
||||||
# 共享配置
|
# 共享配置
|
||||||
|
|
|
||||||
|
|
@ -16,6 +16,7 @@
|
||||||
<module>bonus-oss</module>
|
<module>bonus-oss</module>
|
||||||
<module>bonus-obs</module>
|
<module>bonus-obs</module>
|
||||||
<module>bonus-mongodb</module>
|
<module>bonus-mongodb</module>
|
||||||
|
<module>bonus-base</module>
|
||||||
</modules>
|
</modules>
|
||||||
|
|
||||||
<artifactId>bonus-modules</artifactId>
|
<artifactId>bonus-modules</artifactId>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue