代码提交

master
徐杰盟 2024-05-09 17:47:09 +08:00
parent 57ac9d44f0
commit fd58282a4e
26 changed files with 478 additions and 237 deletions

Binary file not shown.

27
pom.xml
View File

@ -11,9 +11,9 @@
</parent> </parent>
<groupId>com.whdc</groupId> <groupId>com.whdc</groupId>
<artifactId>rule-service</artifactId> <artifactId>fxkh-txl-service</artifactId>
<version>1.0</version> <version>1.0</version>
<description>清洗规则api</description> <description>防汛抗旱通讯录api</description>
<properties> <properties>
<maven.compiler.source>8</maven.compiler.source> <maven.compiler.source>8</maven.compiler.source>
@ -22,19 +22,28 @@
<copy.jar.directory>target/release</copy.jar.directory> <copy.jar.directory>target/release</copy.jar.directory>
</properties> </properties>
<!-- 使用阿里 maven 库 -->
<repositories> <repositories>
<repository> <repository>
<id>ali-maven</id> <id>osgeo</id>
<url>http://maven.aliyun.com/nexus/content/groups/public</url> <name>OSGeo Release Repository</name>
<url>https://repo.osgeo.org/repository/release/</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
<releases> <releases>
<enabled>true</enabled> <enabled>true</enabled>
</releases> </releases>
</repository>
<repository>
<id>osgeo-snapshot</id>
<name>OSGeo Snapshot Repository</name>
<url>https://repo.osgeo.org/repository/snapshot/</url>
<snapshots> <snapshots>
<enabled>true</enabled> <enabled>true</enabled>
<updatePolicy>always</updatePolicy>
<checksumPolicy>fail</checksumPolicy>
</snapshots> </snapshots>
<releases>
<enabled>false</enabled>
</releases>
</repository> </repository>
</repositories> </repositories>
@ -137,12 +146,12 @@
<!-- <!--
将 jar 安装到本地库仓库,方便下面的打包插件统一处理 将 jar 安装到本地库仓库,方便下面的打包插件统一处理
mvn install:install-file -Dfile=D:\Work\GS\Java\rule-service\lib\DmJdbcDriver18.jar -DgroupId="com.dameng" -DartifactId=DmJdbcDriver18 -Dversion="8.1.2.114" -Dpackaging=jar mvn install:install-file -Dfile=D:\Work\GS\Java\fxkh-txl-service\lib\DmJdbcDriver18.jar -DgroupId="com.dameng" -DartifactId=DmJdbcDriver18 -Dversion="8.1.2.114" -Dpackaging=jar
--> -->
<dependency> <dependency>
<groupId>com.dameng</groupId> <groupId>com.dameng</groupId>
<artifactId>DmJdbcDriver18</artifactId> <artifactId>DmJdbcDriver18</artifactId>
<version>8.1.2.114</version> <version>8.1.2.192</version>
</dependency> </dependency>
<!--达梦数据库方言--> <!--达梦数据库方言-->

View File

@ -1,46 +1,148 @@
CREATE TABLE "SHZH_IOT"."E_RULE" CREATE TABLE "FXKH_TXL"."ADDRESS_BOOK"
( (
"ID" INT IDENTITY(1, 1) NOT NULL, "ID" INTEGER IDENTITY(1, 1) NOT NULL,
"NAME" VARCHAR(50), "NAME" VARCHAR(10) NOT NULL,
"ITEM" VARCHAR(50), "PHONE" VARCHAR(11),
"MIN" VARCHAR(50), "TEL" VARCHAR(50),
"MAX" VARCHAR(50), "FAXES" VARCHAR(50),
"DIFF_MAX" VARCHAR(50), "ORGANIZATION" VARCHAR(50),
"DURATION" INTEGER, "POSITION" VARCHAR(50),
"CREATETIME" DATETIME(0), "COMMENTS" VARCHAR(200),
"DEL" VARCHAR(2) DEFAULT 1, "URL" VARCHAR(200),
"LEADING_TIME" INTEGER, "SORT" INTEGER DEFAULT 0,
"LAG_TIME" INTEGER); "V" INTEGER DEFAULT 0,
"ROLE" CHAR(1) DEFAULT 0,
NOT CLUSTER PRIMARY KEY("ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;
COMMENT ON TABLE "SHZH_IOT"."E_RULE" IS '规则表'; COMMENT ON TABLE "FXKH_TXL"."ADDRESS_BOOK" IS '通讯录';
COMMENT ON COLUMN "SHZH_IOT"."E_RULE"."ID" IS '主键id'; COMMENT ON COLUMN "FXKH_TXL"."ADDRESS_BOOK"."COMMENTS" IS '备注';
COMMENT ON COLUMN "SHZH_IOT"."E_RULE"."NAME" IS '规则名称'; COMMENT ON COLUMN "FXKH_TXL"."ADDRESS_BOOK"."FAXES" IS '传真';
COMMENT ON COLUMN "SHZH_IOT"."E_RULE"."ITEM" IS '测站类型'; COMMENT ON COLUMN "FXKH_TXL"."ADDRESS_BOOK"."NAME" IS '姓名';
COMMENT ON COLUMN "SHZH_IOT"."E_RULE"."MIN" IS '最小值'; COMMENT ON COLUMN "FXKH_TXL"."ADDRESS_BOOK"."ORGANIZATION" IS '组织';
COMMENT ON COLUMN "SHZH_IOT"."E_RULE"."MAX" IS '最小值'; COMMENT ON COLUMN "FXKH_TXL"."ADDRESS_BOOK"."PHONE" IS '手机号';
COMMENT ON COLUMN "SHZH_IOT"."E_RULE"."DIFF_MAX" IS '两条数据之间的最大差值'; COMMENT ON COLUMN "FXKH_TXL"."ADDRESS_BOOK"."POSITION" IS '职务';
COMMENT ON COLUMN "SHZH_IOT"."E_RULE"."DURATION" IS '时间段, 单位 s'; COMMENT ON COLUMN "FXKH_TXL"."ADDRESS_BOOK"."ROLE" IS '0:普通管理员,1:政区管理员,99:系统管理员';
COMMENT ON COLUMN "SHZH_IOT"."E_RULE"."CREATETIME" IS '创建时间'; COMMENT ON COLUMN "FXKH_TXL"."ADDRESS_BOOK"."SORT" IS '序号';
COMMENT ON COLUMN "SHZH_IOT"."E_RULE"."DEL" IS '1: 未删除 0: 删除'; COMMENT ON COLUMN "FXKH_TXL"."ADDRESS_BOOK"."TEL" IS '电话';
COMMENT ON COLUMN "SHZH_IOT"."E_RULE"."LEADING_TIME" IS '接收超出时间,单位: s ,指接收时间超前范围'; COMMENT ON COLUMN "FXKH_TXL"."ADDRESS_BOOK"."URL" IS '图片路径';
COMMENT ON COLUMN "SHZH_IOT"."E_RULE"."LAG_TIME" IS '接收滞后时间,单位: s ,指接收时间滞后范围'; COMMENT ON COLUMN "FXKH_TXL"."ADDRESS_BOOK"."V" IS '版本';
CREATE TABLE "SHZH_IOT"."E_STATION_RULES" CREATE TABLE "FXKH_TXL"."ADINFO"
( (
"ID" INT IDENTITY(1, 1) NOT NULL, "ADCD" CHAR(15) NOT NULL,
"STCD" VARCHAR(50), "ADNM" VARCHAR(32) NOT NULL,
"RULE_ID" INTEGER, NOT CLUSTER PRIMARY KEY("ADCD")) STORAGE(ON "MAIN", CLUSTERBTR) ;
"SORT" INTEGER,
"CREATETIME" DATETIME(0),
"DEL" INT DEFAULT 0) ;
COMMENT ON TABLE "SHZH_IOT"."E_STATION_RULES" IS '测站关联规则表'; COMMENT ON TABLE "FXKH_TXL"."ADINFO" IS '行政区划基础信息';
COMMENT ON COLUMN "SHZH_IOT"."E_STATION_RULES"."ID" IS '主键id'; COMMENT ON COLUMN "FXKH_TXL"."ADINFO"."ADCD" IS '政区编码';
COMMENT ON COLUMN "SHZH_IOT"."E_STATION_RULES"."STCD" IS '测站编码'; COMMENT ON COLUMN "FXKH_TXL"."ADINFO"."ADNM" IS '政区名称';
COMMENT ON COLUMN "SHZH_IOT"."E_STATION_RULES"."RULE_ID" IS '规则id';
COMMENT ON COLUMN "SHZH_IOT"."E_STATION_RULES"."SORT" IS '顺序';
COMMENT ON COLUMN "SHZH_IOT"."E_STATION_RULES"."CREATETIME" IS '创建时间'; CREATE TABLE "FXKH_TXL"."UNIT_DICT"
COMMENT ON COLUMN "SHZH_IOT"."E_STATION_RULES"."DEL" IS '1: 未删除 0: 删除'; (
"ID" INTEGER IDENTITY(1, 1) NOT NULL,
"NAME" VARCHAR(50) NOT NULL,
"SORT" INTEGER DEFAULT 0 NOT NULL,
"TYPE" CHAR(1) NOT NULL,
NOT CLUSTER PRIMARY KEY("ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;
COMMENT ON TABLE "FXKH_TXL"."UNIT_DICT" IS '单位字典表';
COMMENT ON COLUMN "FXKH_TXL"."UNIT_DICT"."NAME" IS '名称';
COMMENT ON COLUMN "FXKH_TXL"."UNIT_DICT"."SORT" IS '序号';
COMMENT ON COLUMN "FXKH_TXL"."UNIT_DICT"."TYPE" IS '1:联络名单, 2: 湖泊及涉湖泵站,3:重要提防,4:大型水库大坝';
CREATE TABLE "FXKH_TXL"."FC"
(
"ID" INTEGER IDENTITY(1, 1) NOT NULL,
"USER_ID" INTEGER NOT NULL,
"AB_ID" INTEGER NOT NULL,
"SORT" INTEGER DEFAULT 0,
"TYPE" CHAR(1),
NOT CLUSTER PRIMARY KEY("ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;
COMMENT ON TABLE "FXKH_TXL"."FC" IS '常用联系人';
COMMENT ON COLUMN "FXKH_TXL"."FC"."AB_ID" IS '通讯录编号';
COMMENT ON COLUMN "FXKH_TXL"."FC"."SORT" IS '序号';
COMMENT ON COLUMN "FXKH_TXL"."FC"."TYPE" IS '0:常用联系人,1:置顶联系人';
COMMENT ON COLUMN "FXKH_TXL"."FC"."USER_ID" IS '用户编号';
CREATE TABLE "FXKH_TXL"."LOGIN_INFO"
(
"ID" INTEGER IDENTITY(1, 1) NOT NULL,
"IP" VARCHAR(50),
"CREATE_ID" VARCHAR(50),
"CREATE_TIME" DATETIME(0),
"TYPE" CHAR(1) NOT NULL,
NOT CLUSTER PRIMARY KEY("ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;
COMMENT ON TABLE "FXKH_TXL"."LOGIN_INFO" IS '登录日志';
COMMENT ON COLUMN "FXKH_TXL"."LOGIN_INFO"."CREATE_ID" IS '新增人id';
COMMENT ON COLUMN "FXKH_TXL"."LOGIN_INFO"."CREATE_TIME" IS '新增时间';
COMMENT ON COLUMN "FXKH_TXL"."LOGIN_INFO"."TYPE" IS '0:密码登录 1:验证码登录';
CREATE TABLE "FXKH_TXL"."ORGANIZATION"
(
"ID" INTEGER IDENTITY(1, 1) NOT NULL,
"OBJ_ID" VARCHAR(50) NOT NULL,
"NAME" VARCHAR(50) NOT NULL,
"SORT" INTEGER DEFAULT 0,
"ADCD" CHAR(15) NOT NULL,
NOT CLUSTER PRIMARY KEY("ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;
COMMENT ON TABLE "FXKH_TXL"."ORGANIZATION" IS '组织表';
COMMENT ON COLUMN "FXKH_TXL"."ORGANIZATION"."ADCD" IS '政区编码';
COMMENT ON COLUMN "FXKH_TXL"."ORGANIZATION"."NAME" IS '名称';
COMMENT ON COLUMN "FXKH_TXL"."ORGANIZATION"."OBJ_ID" IS '编号';
COMMENT ON COLUMN "FXKH_TXL"."ORGANIZATION"."SORT" IS '序号';
CREATE TABLE "FXKH_TXL"."USER"
(
"ID" INTEGER IDENTITY(1, 1) NOT NULL,
"PASSWORD" VARCHAR(50) NOT NULL,
"SALT" VARCHAR(50),
"AB_ID" INTEGER,
NOT CLUSTER PRIMARY KEY("ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;
COMMENT ON TABLE "FXKH_TXL"."USER" IS '用户表';
COMMENT ON COLUMN "FXKH_TXL"."USER"."AB_ID" IS '通讯录id';
COMMENT ON COLUMN "FXKH_TXL"."USER"."PASSWORD" IS '密码';
COMMENT ON COLUMN "FXKH_TXL"."USER"."SALT" IS '盐值';
CREATE TABLE "FXKH_TXL"."VERSIONS"
(
"ID" INTEGER IDENTITY(1, 1) NOT NULL,
"JSON" VARCHAR(2000),
"AB_ID" INTEGER,
"VERSION" INTEGER DEFAULT 0,
"CREATE_ID" VARCHAR(50),
"CREATE_TIME" DATETIME(0),
"TYPE" CHAR(1) DEFAULT 0,
NOT CLUSTER PRIMARY KEY("ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;
COMMENT ON TABLE "FXKH_TXL"."VERSIONS" IS '通讯录日志';
COMMENT ON COLUMN "FXKH_TXL"."VERSIONS"."AB_ID" IS '通讯录编号';
COMMENT ON COLUMN "FXKH_TXL"."VERSIONS"."CREATE_ID" IS '新增人id';
COMMENT ON COLUMN "FXKH_TXL"."VERSIONS"."CREATE_TIME" IS '新增时间';
COMMENT ON COLUMN "FXKH_TXL"."VERSIONS"."JSON" IS '数据';
COMMENT ON COLUMN "FXKH_TXL"."VERSIONS"."TYPE" IS '0:添加用户,1:修改用户,2:修改权限,3:删除用户';
COMMENT ON COLUMN "FXKH_TXL"."VERSIONS"."VERSION" IS '版本号';
CREATE TABLE "FXKH_TXL"."AB_UD_R"
(
"AD_ID" INTEGER,
"DICT_ID" INTEGER,
"SORT" INTEGER) STORAGE(ON "MAIN", CLUSTERBTR) ;
COMMENT ON TABLE "FXKH_TXL"."AB_UD_R" IS '用户单位字典关联表';
COMMENT ON COLUMN "FXKH_TXL"."AB_UD_R"."AD_ID" IS '联系人id';
COMMENT ON COLUMN "FXKH_TXL"."AB_UD_R"."DICT_ID" IS '字典id';
COMMENT ON COLUMN "FXKH_TXL"."AB_UD_R"."SORT" IS '序号';

View File

@ -0,0 +1,10 @@
package com.whdc.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.whdc.model.entity.AbUdR;
public interface AbUdRMapper extends BaseMapper<AbUdR> {
int insert(AbUdR record);
int insertSelective(AbUdR record);
}

View File

@ -0,0 +1,18 @@
package com.whdc.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.whdc.model.entity.AddressBook;
public interface AddressBookMapper extends BaseMapper<AddressBook> {
int deleteByPrimaryKey(Integer id);
int insert(AddressBook record);
int insertSelective(AddressBook record);
AddressBook selectByPrimaryKey(Integer id);
int updateByPrimaryKeySelective(AddressBook record);
int updateByPrimaryKey(AddressBook record);
}

View File

@ -0,0 +1,18 @@
package com.whdc.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.whdc.model.entity.Adinfo;
public interface AdinfoMapper extends BaseMapper<Adinfo> {
int deleteByPrimaryKey(String adcd);
int insert(Adinfo record);
int insertSelective(Adinfo record);
Adinfo selectByPrimaryKey(String adcd);
int updateByPrimaryKeySelective(Adinfo record);
int updateByPrimaryKey(Adinfo record);
}

View File

@ -1,28 +0,0 @@
package com.whdc.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.whdc.model.dto.FindRuleDto;
import com.whdc.model.entity.ERule;
import org.apache.ibatis.annotations.Param;
/**
* <p>
* Mapper
* </p>
*
* @author xusan
* @since 2023-03-19
*/
public interface ERuleMapper extends BaseMapper<ERule> {
/**
*
*
* @param page
* @param findDto
* @return
*/
IPage<ERule> page(@Param("page") IPage<ERule> page, @Param("findDto") FindRuleDto findDto);
}

View File

@ -1,28 +0,0 @@
package com.whdc.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.whdc.model.dto.FindStationDto;
import com.whdc.model.entity.EStationRules;
import com.whdc.model.vo.EStationRulesVo;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
* <p>
* Mapper
* </p>
*
* @author xusan
* @since 2023-03-19
*/
public interface EStationRulesMapper extends BaseMapper<EStationRules> {
IPage<EStationRulesVo> page(@Param("page") IPage<FindStationDto> page, @Param("findDto") FindStationDto findDto);
List<EStationRulesVo> find(@Param("findDto") FindStationDto findDto);
}

View File

@ -0,0 +1,18 @@
package com.whdc.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.whdc.model.entity.Fc;
public interface FcMapper extends BaseMapper<Fc> {
int deleteByPrimaryKey(Integer id);
int insert(Fc record);
int insertSelective(Fc record);
Fc selectByPrimaryKey(Integer id);
int updateByPrimaryKeySelective(Fc record);
int updateByPrimaryKey(Fc record);
}

View File

@ -0,0 +1,18 @@
package com.whdc.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.whdc.model.entity.LoginInfo;
public interface LoginInfoMapper extends BaseMapper<LoginInfo> {
int deleteByPrimaryKey(Integer id);
int insert(LoginInfo record);
int insertSelective(LoginInfo record);
LoginInfo selectByPrimaryKey(Integer id);
int updateByPrimaryKeySelective(LoginInfo record);
int updateByPrimaryKey(LoginInfo record);
}

View File

@ -0,0 +1,18 @@
package com.whdc.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.whdc.model.entity.Organization;
public interface OrganizationMapper extends BaseMapper<Organization> {
int deleteByPrimaryKey(Integer id);
int insert(Organization record);
int insertSelective(Organization record);
Organization selectByPrimaryKey(Integer id);
int updateByPrimaryKeySelective(Organization record);
int updateByPrimaryKey(Organization record);
}

View File

@ -0,0 +1,19 @@
package com.whdc.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.whdc.model.entity.Organization;
import com.whdc.model.entity.UnitDict;
public interface UnitDictMapper extends BaseMapper<UnitDict> {
int deleteByPrimaryKey(Integer id);
int insert(UnitDict record);
int insertSelective(UnitDict record);
UnitDict selectByPrimaryKey(Integer id);
int updateByPrimaryKeySelective(UnitDict record);
int updateByPrimaryKey(UnitDict record);
}

View File

@ -0,0 +1,19 @@
package com.whdc.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.whdc.model.entity.UnitDict;
import com.whdc.model.entity.User;
public interface UserMapper extends BaseMapper<User> {
int deleteByPrimaryKey(Integer id);
int insert(User record);
int insertSelective(User record);
User selectByPrimaryKey(Integer id);
int updateByPrimaryKeySelective(User record);
int updateByPrimaryKey(User record);
}

View File

@ -0,0 +1,18 @@
package com.whdc.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.whdc.model.entity.Versions;
public interface VersionsMapper extends BaseMapper<Versions> {
int deleteByPrimaryKey(Integer id);
int insert(Versions record);
int insertSelective(Versions record);
Versions selectByPrimaryKey(Integer id);
int updateByPrimaryKeySelective(Versions record);
int updateByPrimaryKey(Versions record);
}

View File

@ -0,0 +1,13 @@
package com.whdc.model.entity;
import java.math.BigDecimal;
import java.util.Date;
public class AbUdR {
private Integer adId;
private Integer dictId;
private Integer sort;
}

View File

@ -0,0 +1,28 @@
package com.whdc.model.entity;
public class AddressBook {
private Integer id;
private String name;
private String phone;
private String tel;
private String faxes;
private String organization;
private String position;
private String comments;
private String url;
private Integer sort;
private Integer v;
private String role;
}

View File

@ -0,0 +1,26 @@
package com.whdc.model.entity;
import java.math.BigDecimal;
public class Adinfo {
private String adcd;
private String adnm;
private BigDecimal lgtd;
private BigDecimal lttd;
private Integer ptcount;
private Integer hhtcount;
private Integer htcount;
private BigDecimal land;
private BigDecimal pland;
private Integer ctype;
}

View File

@ -15,6 +15,7 @@ import org.apache.commons.lang3.StringUtils;
import javax.validation.constraints.Max; import javax.validation.constraints.Max;
import javax.validation.constraints.NotEmpty; import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull; import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal; import java.math.BigDecimal;
import java.util.Date; import java.util.Date;
import java.util.Locale; import java.util.Locale;
@ -23,19 +24,16 @@ import static com.whdc.model.MyConstant.DEL;
import static com.whdc.model.MyConstant.REC; import static com.whdc.model.MyConstant.REC;
/** /**
* <p>
*
* </p>
*
* @author xusan * @author xusan
* @date 2023-03-19 * @date 2023-03-19
*/ */
@Data @Data
@ApiModel(description = "正常范围规则表")
@Accessors(chain = true) @Accessors(chain = true)
@ApiModel(description = "正常范围规则表")
@TableName("SHZH_IOT.E_RULE") @TableName("SHZH_IOT.E_RULE")
public class ERule extends Model<ERule> { public class ERule extends Model<ERule> implements Serializable {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
/** /**
* *
*/ */

View File

@ -1,107 +0,0 @@
package com.whdc.model.entity;
import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.whdc.model.group.Insert;
import com.whdc.model.group.Update;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiParam;
import lombok.Data;
import lombok.experimental.Accessors;
import javax.validation.constraints.Max;
import javax.validation.constraints.NotNull;
import java.util.Date;
import static com.whdc.model.MyConstant.DEL;
import static com.whdc.model.MyConstant.REC;
/**
* <p>
*
* </p>
*
* @author xusan
* @date 2023-03-19
*/
@Data
@ApiModel(description = "测站关联规则表")
@Accessors(chain = true)
@TableName("SHZH_IOT.E_STATION_RULES")
public class EStationRules extends Model<EStationRules> {
private static final long serialVersionUID = 1L;
/**
* id
*/
@ApiParam(value = "主键id", required = true)
@ApiModelProperty(value = "主键id", required = true, dataType = "Integer")
@TableId(value = "ID", type = IdType.AUTO)
@NotNull(message = "主键id不能为空",groups = {Update.class})
private Integer id;
/**
*
*/
@ApiParam(value = "测站编码", required = true)
@ApiModelProperty(value = "测站编码", required = false, dataType = "String", example = "")
@TableField(value = "STCD")
@NotNull(message = "测站编码不能为空",groups = {Insert.class})
@Max(50)
private String stcd;
/**
*
*/
@ApiParam(value = "区域编码", required = false)
@ApiModelProperty(value = "区域编码", required = false, dataType = "String", example = "")
@TableField(value = "COUNTYCODE", updateStrategy = FieldStrategy.IGNORED)
private String countycode;
/**
*
*/
@ApiParam(value = "来源", required = true)
@ApiModelProperty(value = "来源", required = false, dataType = "String", example = "")
@TableField(value = "SOURCE")
@NotNull(message = "来源不能为空",groups = {Insert.class,Update.class})
private String source;
/**
* id
*/
@ApiParam(value = "规则id", required = true)
@ApiModelProperty(value = "规则id", required = false, dataType = "Integer", example = "")
@TableField(value = "RULE_ID", updateStrategy = FieldStrategy.IGNORED)
@NotNull(message = "规则不能为空",groups = {Insert.class})
private Integer ruleId;
/**
*
*/
@ApiParam(value = "顺序", required = true )
@ApiModelProperty(value = "顺序, required = false ", dataType = "Integer")
@TableField(value = "SORT", updateStrategy = FieldStrategy.NOT_EMPTY)
private Integer sort;
/**
*
*/
@ApiParam(value = "创建时间", required = false)
@ApiModelProperty(value = "创建时间", required = false, dataType = "Date", example = "")
@TableField(value = "CREATETIME", updateStrategy = FieldStrategy.NOT_EMPTY)
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date createtime;
/**
* 0: 1
*/
@ApiParam(value = "1: 未删除 0: 删除", required = false)
@ApiModelProperty(value = "1: 未删除 0: 删除", required = false, dataType = "String", example = "")
@TableField(fill = FieldFill.INSERT, updateStrategy = FieldStrategy.IGNORED)
@TableLogic(value = REC,delval = DEL)
@Max(2)
private String del;
}

View File

@ -0,0 +1,14 @@
package com.whdc.model.entity;
public class Fc {
private Integer id;
private Integer userId;
private Integer abId;
private Integer sort;
private String type;
}

View File

@ -0,0 +1,16 @@
package com.whdc.model.entity;
import java.util.Date;
public class LoginInfo {
private Integer id;
private String ip;
private String createId;
private Date createTime;
private String type;
}

View File

@ -0,0 +1,14 @@
package com.whdc.model.entity;
public class Organization {
private Integer id;
private String objId;
private String name;
private Integer sort;
private String adcd;
}

View File

@ -0,0 +1,12 @@
package com.whdc.model.entity;
public class UnitDict {
private Integer id;
private String name;
private Integer sort;
private String type;
}

View File

@ -0,0 +1,12 @@
package com.whdc.model.entity;
public class User {
private Integer id;
private String password;
private String salt;
private Integer abId;
}

View File

@ -0,0 +1,20 @@
package com.whdc.model.entity;
import java.util.Date;
public class Versions {
private Integer id;
private String json;
private Integer abId;
private Integer version;
private String createId;
private Date createTime;
private String type;
}

View File

@ -1,14 +1,14 @@
server: server:
port: 18005 port: 20020
spring: spring:
#数据库配置 #数据库配置
datasource: datasource:
type: com.alibaba.druid.pool.DruidDataSource type: com.alibaba.druid.pool.DruidDataSource
driver-class-name: dm.jdbc.driver.DmDriver driver-class-name: dm.jdbc.driver.DmDriver
url: jdbc:dm://127.0.0.1:5236?schema=SYSDBA url: jdbc:dm://10.0.41.113:5236?schema=FXKH_TXL
username: SYSDBA username: SYSDBA
password: 199999999 password: SYSDBA001
# url: jdbc:dm://10.42.6.247:5236?schema=SHZH # url: jdbc:dm://10.42.6.247:5236?schema=SHZH
# username: SHZH # username: SHZH
# password: Shzh_890 # password: Shzh_890
@ -41,26 +41,10 @@ spring:
password: password:
# password: Whdc_890 # password: Whdc_890
# 数据清洗专用redis
redisRules:
database: 6
# host: 10.42.6.75
host: 127.0.0.1
port: 6379
# password: Whdc_890
password:
timeout: 60000
lettuce:
pool:
max-active: 50
max-idle: 50
min-idle: 1
max-wait: 50000
servlet: servlet:
multipart: multipart:
max-file-size: 100MB max-file-size: 1100MB
max-request-size: 100MB max-request-size: 1100MB
knife4j: knife4j:
enable: true enable: true