commit 7d18c3a3ca1e08a57059e42c8cdf0189408c6d9d Author: mmm8955405 Date: Sat Sep 14 00:24:29 2024 +0800 init diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..7ba43ee --- /dev/null +++ b/.gitignore @@ -0,0 +1,30 @@ +# Compiled class file +*.class + +# Log file +*.log + +# BlueJ files +*.ctxt + +# Mobile Tools for Java (J2ME) +.mtj.tmp/ + +# Package Files # +# *.jar +*.war +*.nar +*.ear +*.zip +*.tar.gz +*.rar + +# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml +hs_err_pid* + + +.classpath +.project +.settings +target +/.factorypath diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..91c613b --- /dev/null +++ b/Dockerfile @@ -0,0 +1,18 @@ +FROM docker.io/maven:3.9.6-amazoncorretto-21-debian as build +WORKDIR /workspace +COPY pom.xml . +COPY src src +COPY libs libs +RUN ls +RUN --mount=type=cache,target=/root/.m2,id=my_m2,sharing=locked \ +mvn package -Dmaven.test.skip +RUN mkdir -p target/dependency && (cd target/dependency; jar -xf ../*.jar) + +FROM docker.io/eclipse-temurin:21-jre-alpine +ARG DEPENDENCY=/workspace/target/dependency +COPY --from=build ${DEPENDENCY}/BOOT-INF/lib /app/lib +COPY --from=build ${DEPENDENCY}/META-INF /app/META-INF +COPY --from=build ${DEPENDENCY}/BOOT-INF/classes /app +RUN /bin/cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime +RUN echo "Asia/Shanghai" > /etc/timezone +ENTRYPOINT ["java","-cp","app:app/lib/*","jj.tech.paolu.Application","--spring.profiles.active=prod"] diff --git a/pom.xml b/pom.xml new file mode 100644 index 0000000..897026e --- /dev/null +++ b/pom.xml @@ -0,0 +1,594 @@ + + + 4.0.0 + jj.tech.yx + yx + yx + jar + 1.0.0 + + + org.springframework.boot + spring-boot-starter-parent + 3.3.3 + + + 21 + UTF-8 + + + + + + + + + + + + + + + + + + + + + + + + org.springframework.boot + spring-boot-starter-web + + + org.springframework.boot + spring-boot-starter-tomcat + + + + + org.springframework.boot + spring-boot-starter-undertow + + + + + + org.springframework.boot + spring-boot-starter-jooq + + + + org.mybatis.spring.boot + mybatis-spring-boot-starter + 3.0.3 + + + + org.mybatis.dynamic-sql + mybatis-dynamic-sql + 1.5.2 + + + org.mybatis.generator + mybatis-generator-core + 1.4.2 + + + + org.springframework.boot + spring-boot-starter-json + + + org.springframework.boot + spring-boot-starter-websocket + + + + org.springframework.boot + spring-boot-starter-validation + + + org.springframework.boot + spring-boot-starter-mail + + + + + + org.springframework.boot + spring-boot-starter-logging + + + + + + org.springframework.boot + spring-boot-starter-test + test + + + + org.springdoc + springdoc-openapi-starter-webmvc-ui + 2.5.0 + + + org.springdoc + springdoc-openapi-starter-common + 2.5.0 + + + + + com.h2database + h2 + + + org.mariadb.jdbc + mariadb-java-client + + + com.mysql + mysql-connector-j + + + org.postgresql + postgresql + + + + + com.zaxxer + HikariCP + compile + + + + + com.github.penggle + kaptcha + 2.3.2 + + + + + org.apache.httpcomponents + fluent-hc + 4.5.14 + + + org.apache.commons + commons-lang3 + + + org.apache.commons + commons-collections4 + 4.4 + + + commons-codec + commons-codec + + + commons-beanutils + commons-beanutils + 1.9.4 + + + + org.bouncycastle + bcutil-jdk18on + 1.78.1 + + + + + + + io.jsonwebtoken + jjwt-api + 0.12.5 + + + io.jsonwebtoken + jjwt-impl + 0.12.5 + + + io.jsonwebtoken + jjwt-jackson + 0.12.5 + + + + + + org.lionsoul + ip2region + 2.7.0 + + + commons-io + commons-io + 2.16.1 + + + + + + + + + + + + + + + + + + + + + + + + + + + org.springframework.boot + spring-boot-maven-plugin + + + + + it.ozimov + yaml-properties-maven-plugin + 1.1.3 + + + initialize + + read-project-properties + + + + src/main/resources/application.yml + + + + + + + + + + + + org.jooq + jooq-codegen-maven + + ${basedir}/src/main/resources/generate/jooq/JooqConfig.xml + + + + generate-jooq + generate-sources + + generate + + + + + + com.h2database + h2 + ${h2.version} + + + org.mariadb.jdbc + mariadb-java-client + ${mariadb.version} + + + org.postgresql + postgresql + ${postgresql.version} + + + + + + + + + + + + + + + repo + repo + file://${project.basedir}/libs + + + + aliyun-public + aliyun-public + https://maven.aliyun.com/repository/public + + true + + + true + + + + aliyun-central + aliyun-central + https://maven.aliyun.com/repository/central + + true + + + true + + + + aliyun-spring + https://maven.aliyun.com/repository/spring + + true + + + true + + + + spring-snapshots + https://repo.spring.io/snapshot + + true + + + + spring-milestones + https://repo.spring.io/milestone + + + + jitpack.io + https://www.jitpack.io + + true + + + + + + + + + aliyun-plugin + aliyun-plugin + https://maven.aliyun.com/repository/public + + true + + + true + + + + aliyun-plugin-central + aliyun-plugin-central + https://maven.aliyun.com/repository/central + + true + + + true + + + + + spring-snapshots + https://repo.spring.io/snapshot + + + spring-milestones + https://repo.spring.io/milestone + + + + + diff --git a/src/main/contracts/Application.sol b/src/main/contracts/Application.sol new file mode 100644 index 0000000..98647a5 --- /dev/null +++ b/src/main/contracts/Application.sol @@ -0,0 +1,178 @@ +//pragma solidity >=0.6.10 <0.8.20; +pragma solidity ^0.4.24; +pragma experimental ABIEncoderV2; + +import "../Table.sol"; + +//档案申请 +contract Application { + event CreateResult(int256 count); + event InsertResult(int256 count); + event UpdateResult(int256 count); + event RemoveResult(int256 count); + + + TableFactory tableFactory = TableFactory(0x1001); + string constant TABLE_SUFFIX = "_application"; + string constant KEY_NAME = "key"; + string constant KEY_VALUE = "key"; + + struct ApplicationData{ + string id; + string used_org_code; + int256 provider_audit_status; + string used_json_data; + string provider_json_data; + string application_json_data; + int256 create_time; + int256 update_time; + } + + //利用方审批完成后上链 + function insert(string memory table_prefix,string memory id,string memory used_org_code,string memory used_json_data,string memory application_json_data,int256 create_time,int256 update_time) + public + returns(int256,string memory){ + //确定表格名称 + string memory table_name = string(abi.encodePacked(table_prefix, TABLE_SUFFIX)); + Table table = tableFactory.openTable(table_name); + //id重复校验 + if(existById(id,table)){ + return (0,"id exists,insert failed"); + } + Entry entry = table.newEntry(); + entry.set(KEY_NAME, KEY_VALUE); + entry.set("id", id); + entry.set("used_org_code", used_org_code); + entry.set("provider_audit_status", int256(0)); + entry.set("used_json_data", used_json_data); + entry.set("application_json_data", application_json_data); + entry.set("create_time", create_time); + entry.set("update_time", update_time); + + int256 count = table.insert(KEY_VALUE, entry); + if(count>0){ + emit InsertResult(count); + } + + return (count,"success"); + + } + + //提供方完成审批后的结果上链 + function updateAudit(string memory table_prefix,string memory id,string memory provider_json_data,int256 update_time) + public + returns(int256,string memory){ + //确定表格名称 + string memory table_name = string(abi.encodePacked(table_prefix, TABLE_SUFFIX)); + Table table = tableFactory.openTable(table_name); + //id重复校验 + if(!existById(id,table)){ + return (0,"id not find"); + } + Entry entry = table.newEntry(); + entry.set(KEY_NAME, KEY_VALUE); + entry.set("provider_json_data", provider_json_data); + entry.set("provider_audit_status", int256(1)); + entry.set("update_time", update_time); + + Condition condition = table.newCondition(); + condition.EQ("id", id); + + int256 count = table.update(KEY_VALUE, entry, condition); + if(count>0){ + emit UpdateResult(count); + } + return (count,"success"); + + } + + //提供方查询目标为本提供方的待本公司审批的审批记录 + function selectProviderNotAudit(string memory table_prefix) + public + view + returns (ApplicationData[]){ + //确定表格名称 + string memory table_name = string(abi.encodePacked(table_prefix, TABLE_SUFFIX)); + Table table = tableFactory.openTable(table_name); + + Condition condition = table.newCondition(); + condition.EQ("provider_audit_status", int256(0)); + + Entries entries = table.select(KEY_VALUE, condition); + uint256 dataLen = uint256(entries.size()); + ApplicationData[] memory applicationDatas = new ApplicationData[](dataLen); + + for (uint256 i = 0; i < dataLen; ++i) { + Entry entry = entries.get(int256(i)); + applicationDatas[i]=ApplicationData(entry.getString("id"),entry.getString("used_org_code"),entry.getInt("provider_audit_status"),entry.getString("used_json_data"),entry.getString("provider_json_data"),entry.getString("application_json_data"),entry.getInt("create_time"),entry.getInt("update_time")); + } + + return (applicationDatas); + } + + //利用方查询本机构发起的且提供方已经完成的审批结果 + function selectUsedAudit(string memory table_prefix,string memory used_org_code) + public + view + returns (ApplicationData[]){ + //确定表格名称 + string memory table_name = string(abi.encodePacked(table_prefix, TABLE_SUFFIX)); + Table table = tableFactory.openTable(table_name); + + Condition condition = table.newCondition(); + condition.EQ("provider_audit_status", int256(1)); + condition.EQ("used_org_code", used_org_code); + + Entries entries = table.select(KEY_VALUE, condition); + uint256 dataLen = uint256(entries.size()); + ApplicationData[] memory applicationDatas = new ApplicationData[](dataLen); + + for (uint256 i = 0; i < dataLen; ++i) { + Entry entry = entries.get(int256(i)); + applicationDatas[i]=ApplicationData(entry.getString("id"),entry.getString("used_org_code"),entry.getInt("provider_audit_status"),entry.getString("used_json_data"),entry.getString("provider_json_data"),entry.getString("application_json_data"),entry.getInt("create_time"),entry.getInt("update_time")); + } + + return (applicationDatas); + + } + + //利用方查询本机构发起的且提供方已经完成的审批结果,更新时间后的 + function selectUsedAuditAndUpdateTime(string memory table_prefix,string memory used_org_code,int256 update_time) + public + view + returns (ApplicationData[]){ + //确定表格名称 + string memory table_name = string(abi.encodePacked(table_prefix, TABLE_SUFFIX)); + Table table = tableFactory.openTable(table_name); + + Condition condition = table.newCondition(); + condition.EQ("provider_audit_status", int256(1)); + condition.EQ("used_org_code", used_org_code); + condition.GE("update_time", update_time); + + Entries entries = table.select(KEY_VALUE, condition); + uint256 dataLen = uint256(entries.size()); + ApplicationData[] memory applicationDatas = new ApplicationData[](dataLen); + + for (uint256 i = 0; i < dataLen; ++i) { + Entry entry = entries.get(int256(i)); + applicationDatas[i]=ApplicationData(entry.getString("id"),entry.getString("used_org_code"),entry.getInt("provider_audit_status"),entry.getString("used_json_data"),entry.getString("provider_json_data"),entry.getString("application_json_data"),entry.getInt("create_time"),entry.getInt("update_time")); + } + + return (applicationDatas); + + } + + + //根据id判定是否存在 + function existById(string memory id,Table table) + private + view + returns (bool){ + Condition condition = table.newCondition(); + condition.EQ("id", id); + Entries entries = table.select(KEY_VALUE, condition); + return entries.size()>0; + } + +} \ No newline at end of file diff --git a/src/main/contracts/ArchivesFile.sol b/src/main/contracts/ArchivesFile.sol new file mode 100644 index 0000000..fa8d171 --- /dev/null +++ b/src/main/contracts/ArchivesFile.sol @@ -0,0 +1,214 @@ +//pragma solidity >=0.6.10 <0.8.20; +pragma solidity ^0.4.24; +pragma experimental ABIEncoderV2; + +import "../Table.sol"; +import "./Utils.sol"; +import "./Provider.sol"; + +contract ArchivesFile { + event CreateResult(int256 count); + event InsertResult(int256 count); + event UpdateResult(int256 count); + event RemoveResult(int256 count); + + TableFactory tableFactory = TableFactory(0x1001); + Utils utils = new Utils(); + Provider provider = new Provider(); + + string constant TABLE_SUFFIX = "_archives_file"; + string constant KEY_NAME = "key"; + string constant KEY_VALUE = "key"; + + struct ArchivesFileData{ + string id; + string catalog_id; + string other_params; + int256 create_time; + int256 update_time; + + } + + //查询单个件 + function selectById(string memory table_prefix,string memory archives_file_id) + public + view + returns (ArchivesFileData[] memory){ + if(provider.existByPrefix(table_prefix)==false){ + revert("table_prefix not exists"); + } + + //确定表格名称 + string memory table_name = string(abi.encodePacked(table_prefix, TABLE_SUFFIX)); + Table table = tableFactory.openTable(table_name); + + Condition condition = table.newCondition(); + condition.EQ("id", archives_file_id); + + Entries entries = table.select(KEY_VALUE, condition); + + uint256 dataLen = uint256(entries.size()); + ArchivesFileData[] memory archivesFiles = new ArchivesFileData[](dataLen); + + for (uint256 i = 0; i < dataLen; ++i) { + Entry entry = entries.get(int256(i)); + archivesFiles[i]=ArchivesFileData(entry.getString("id"),entry.getString("catalog_id"),entry.getString("other_params"),entry.getInt("create_time"),entry.getInt("update_time")); + + + } + //合约不可以返回空,而又会自动给ArchivesFileData对象赋默认值,这样业务程序会判断很复杂 + //所以干脆搞成一个列表得了,业务程序用列表长度来判断是否存在 + return (archivesFiles); + } + + //查询某个目录下的所有直属件 + function selectByCatalogId(string memory table_prefix,string memory catalog_id) + public + view + returns (ArchivesFileData[] memory){ + if(provider.existByPrefix(table_prefix)==false){ + revert("table_prefix not exists"); + } + + //确定表格名称 + string memory table_name = string(abi.encodePacked(table_prefix, TABLE_SUFFIX)); + Table table = tableFactory.openTable(table_name); + + Condition condition = table.newCondition(); + condition.EQ("catalog_id", catalog_id); + + Entries entries = table.select(KEY_VALUE, condition); + uint256 dataLen = uint256(entries.size()); + ArchivesFileData[] memory archivesFiles = new ArchivesFileData[](dataLen); + + for (uint256 i = 0; i < dataLen; ++i) { + Entry entry = entries.get(int256(i)); + archivesFiles[i]=ArchivesFileData(entry.getString("id"),entry.getString("catalog_id"),entry.getString("other_params"),entry.getInt("create_time"),entry.getInt("update_time")); + + } + + return (archivesFiles); + } + + function insert(string memory id,string memory catalog_id, string memory other_params,int256 create_time,int256 update_time ) + public + returns(int256,string memory){ + + //表格前缀 + string memory table_prefix = provider.selectPrefixByAddr(utils.toString(tx.origin)); + if(utils.strIsEmpty(table_prefix)){ + revert("can not find your archive_file table, have you regiestered as a provder?"); + } + //确定表格名称 + string memory table_name = string(abi.encodePacked(table_prefix, TABLE_SUFFIX)); + + Table table = tableFactory.openTable(table_name); + + // //id重复校验 + if(existById(id,table)){ + revert("id can not repeat"); + } + + + Entry entry = table.newEntry(); + entry.set(KEY_NAME, KEY_VALUE); + entry.set("id", id); + entry.set("catalog_id", catalog_id); + entry.set("other_params", other_params); + entry.set("create_time", create_time); + entry.set("update_time", update_time); + + int256 count = table.insert(KEY_VALUE, entry); + if(count>0){ + emit InsertResult(count); + } + return (count,"success"); + } + + function update(string memory id,string memory catalog_id, string memory other_params,int256 update_time ) + public + returns(int256,string memory){ + + //表格前缀 + string memory table_prefix = provider.selectPrefixByAddr(utils.toString(tx.origin)); + if(utils.strIsEmpty(table_prefix)){ + revert("can not find your archive_file table, have you regiestered as a provder?"); + } + //确定表格名称 + string memory table_name = string(abi.encodePacked(table_prefix, TABLE_SUFFIX)); + + Table table = tableFactory.openTable(table_name); + + Entry entry = table.newEntry(); + entry.set("other_params",other_params); + entry.set("catalog_id",catalog_id); + entry.set("update_time",update_time); + + Condition condition = table.newCondition(); + condition.EQ("id", id); + + int256 count = table.update(KEY_VALUE, entry, condition); + if(count>0){ + emit InsertResult(count); + } + return (count,"success"); + } + + + + //根据archives_file_id删除 + function remove(string[] memory archives_file_id) + public + returns (int256) { + //表格前缀 + string memory table_prefix = provider.selectPrefixByAddr(utils.toString(tx.origin)); + if(utils.strIsEmpty(table_prefix)){ + revert("can not find your archive_file table, have you regiestered as a provder?"); + } + //确定表格名称 + string memory table_name = string(abi.encodePacked(table_prefix, TABLE_SUFFIX)); + Table table = tableFactory.openTable(table_name); + int256 count = 0; + + for(uint256 i=0;i0){ + count++; + } + } + + if(count>0){ + emit RemoveResult(count); + } + + return count; + } + + + //根据id判定是否存在 + function existById(string memory id,Table table) + private + view + returns (bool){ + Condition condition = table.newCondition(); + condition.EQ("id", id); + Entries entries = table.select(KEY_VALUE, condition); + return entries.size()>0; + } + + //根据catalog_id判定是否存在 + function existByCatalogId(string memory catalog_id,string memory table_prefix) + private + view + returns (bool){ + string memory table_name = string(abi.encodePacked(table_prefix, "_catalog")); + Table table = tableFactory.openTable(table_name); + Condition condition = table.newCondition(); + condition.EQ("id", catalog_id); + Entries entries = table.select(KEY_VALUE, condition); + return entries.size()>0; + } + +} \ No newline at end of file diff --git a/src/main/contracts/Catalog.sol b/src/main/contracts/Catalog.sol new file mode 100644 index 0000000..29b9eeb --- /dev/null +++ b/src/main/contracts/Catalog.sol @@ -0,0 +1,223 @@ +//pragma solidity >=0.6.10 <0.8.20; +pragma solidity ^0.4.24; +pragma experimental ABIEncoderV2; + +import "../Table.sol"; +import "./Provider.sol"; +import "./Utils.sol"; + +contract Catalog { + event CreateResult(int256 count); + event InsertResult(int256 count); + event UpdateResult(int256 count); + event RemoveResult(int256 count); + + + TableFactory tableFactory = TableFactory(0x1001); + Utils utils = new Utils(); + Provider provider = new Provider(); + string constant TABLE_SUFFIX = "_catalog"; + string constant KEY_NAME = "key"; + string constant KEY_VALUE = "key"; + + struct CatalogData{ + string id; + string parent_id; + string other_params; + int256 create_time; + int256 update_time; + } + + function selectByParentId(string memory table_prefix,string memory parent_id) + public + view + returns (CatalogData[]){ + if(provider.existByPrefix(table_prefix)==false){ + revert("table_prefix not exists"); + } + //确定表格名称 + string memory table_name = string(abi.encodePacked(table_prefix, TABLE_SUFFIX)); + + Table table = tableFactory.openTable(table_name); + + Condition condition = table.newCondition(); + condition.EQ("parent_id", parent_id); + + Entries entries = table.select(KEY_VALUE, condition); + uint256 dataLen = uint256(entries.size()); + CatalogData[] memory catalogDatas = new CatalogData[](dataLen); + + for (uint256 i = 0; i < dataLen; ++i) { + Entry entry = entries.get(int256(i)); + catalogDatas[i]=CatalogData(entry.getString("id"),entry.getString("parent_id"),entry.getString("other_params"),entry.getInt("create_time"),entry.getInt("update_time")); + } + + return (catalogDatas); + } + + function selectById(string memory table_prefix,string memory id) + public + view + returns (CatalogData[]){ + if(provider.existByPrefix(table_prefix)==false){ + revert("table_prefix not exists"); + } + //确定表格名称 + string memory table_name = string(abi.encodePacked(table_prefix, TABLE_SUFFIX)); + + Table table = tableFactory.openTable(table_name); + + Condition condition = table.newCondition(); + condition.EQ("id", id); + + Entries entries = table.select(KEY_VALUE, condition); + uint256 dataLen = uint256(entries.size()); + CatalogData[] memory catalogDatas = new CatalogData[](dataLen); + + for (uint256 i = 0; i < dataLen; ++i) { + Entry entry = entries.get(int256(i)); + catalogDatas[i]=CatalogData(entry.getString("id"),entry.getString("parent_id"),entry.getString("other_params"),entry.getInt("create_time"),entry.getInt("update_time")); + } + + return (catalogDatas); + } + + function insert(string memory id,string memory other_params,string memory parent_id,int256 create_time,int256 update_time) + public + returns(int256,string memory){ + //表格前缀 + + string memory table_prefix = provider.selectPrefixByAddr(utils.toString(tx.origin)); + if(utils.strIsEmpty(table_prefix)){ + revert("can not find your catalog table, are you regiester as provder?"); + } + //确定表格名称 + string memory table_name = string(abi.encodePacked(table_prefix, TABLE_SUFFIX)); + Table table = tableFactory.openTable(table_name); + + //id重复校验 + if(existById(id,table)){ + revert("id exist, insert failed"); + } + //parent_id如果不为空则校验父级是否存在 + // if(utils.strIsEmpty(parent_id)){ + // //不存在 + // if(!existByParentId(parent_id,table)){ + // return (0,"parent_id not find"); + // } + // } + + Entry entry = table.newEntry(); + entry.set(KEY_NAME, KEY_VALUE); + entry.set("id", id); + entry.set("other_params", other_params); + entry.set("parent_id", parent_id); + entry.set("create_time", create_time); + entry.set("update_time", update_time); + + int256 count = table.insert(KEY_VALUE, entry); + if(count>0){ + emit InsertResult(count); + } + + + return (count,"success"); + } + + function update(string memory id,string memory other_params,string memory parent_id,int256 update_time) + public + returns(int256,string memory){ + //必填项校验 + if(utils.strIsEmpty(other_params)){ + revert("other_params can not empty"); + } + if(update_time == 0){ + revert("update_time can not empty"); + } + + //表格前缀 + string memory table_prefix = provider.selectPrefixByAddr(utils.toString(tx.origin)); + if(utils.strIsEmpty(table_prefix)){ + revert("can not find your catalog table, are you regiester as provder?"); + } + //确定表格名称 + string memory table_name = string(abi.encodePacked(table_prefix, "_catalog")); + Table table = tableFactory.openTable(table_name); + + Entry entry = table.newEntry(); + entry.set("other_params",other_params); + entry.set("parent_id",parent_id); + entry.set("update_time",update_time); + + Condition condition = table.newCondition(); + condition.EQ("id", id); + + int256 count = table.update(KEY_VALUE, entry, condition); + if(count>0){ + emit UpdateResult(count); + } + + return (count,"success"); + } + + //根据catalog_id删除 + function remove(string memory catalog_id) + public + returns (int256) { + //表格前缀 + string memory table_prefix = provider.selectPrefixByAddr(utils.toString(tx.origin)); + if(utils.strIsEmpty(table_prefix)){ + revert("can not find your catalog table, are you regiester as provder?"); + } + //确定表格名称 + string memory table_name = string(abi.encodePacked(table_prefix, TABLE_SUFFIX)); + Table table = tableFactory.openTable(table_name); + + Condition condition = table.newCondition(); + condition.EQ("id", catalog_id); + + int256 count = table.remove(KEY_VALUE, condition); + if(count>0){ + emit RemoveResult(count); + } + return count; + } + + //判断catalog_id是否有子archives_file + function existArchivesFileById(string memory catalog_id,string memory table_prefix) + private + view + returns (bool){ + //确定表格名称 + string memory table_name = string(abi.encodePacked(table_prefix, "_archives_file")); + + Table table = tableFactory.openTable(table_name); + Condition condition = table.newCondition(); + condition.EQ("catalog_id", catalog_id); + Entries entries = table.select("key", condition); + return entries.size()>0; + + } + + //根据id判定是否存在 + function existById(string memory id,Table table) + private + view + returns (bool){ + Condition condition = table.newCondition(); + condition.EQ("id", id); + Entries entries = table.select(KEY_VALUE, condition); + return entries.size()>0; + } + + //根据parent_id判定是否存在 + function existByParentId(string memory parent_id,Table table) + private + view + returns (bool){ + Condition condition = table.newCondition(); + condition.EQ("parent_id", parent_id); + Entries entries = table.select(KEY_VALUE, condition); + return entries.size()>0; + } +} \ No newline at end of file diff --git a/src/main/contracts/CertRecord.sol b/src/main/contracts/CertRecord.sol new file mode 100644 index 0000000..e8a4f4d --- /dev/null +++ b/src/main/contracts/CertRecord.sol @@ -0,0 +1,177 @@ +//pragma solidity >=0.6.10 <0.8.20; +pragma solidity ^0.4.24; +pragma experimental ABIEncoderV2; + +import "../Table.sol"; +import "./Provider.sol"; +import "./Utils.sol"; + +//证书审核记录 +contract CertRecord { + event CreateResult(int256 count); + event InsertResult(int256 count); + event UpdateResult(int256 count); + event RemoveResult(int256 count); + + + TableFactory tableFactory = TableFactory(0x1001); + Utils utils = new Utils(); + Provider provider = new Provider(); + string constant TABLE_SUFFIX = "_cert_record"; + string constant KEY_NAME = "key"; + string constant KEY_VALUE = "key"; + + struct CertRecordData{ + string id; + string cert_id; + string user_id; + string org_id; + string audit_status; + string json_data; + int256 create_time; + } + + //根据id查询记录 + function selectById(string memory table_prefix,string memory id) + public + view + returns (CertRecordData[]){ + //确定表格名称 + string memory table_name = string(abi.encodePacked(table_prefix, TABLE_SUFFIX)); + Table table = tableFactory.openTable(table_name); + + Condition condition = table.newCondition(); + condition.EQ("id", id); + + Entries entries = table.select(KEY_VALUE, condition); + uint256 dataLen = uint256(entries.size()); + CertRecordData[] memory recordDatas = new CertRecordData[](dataLen); + + for (uint256 i = 0; i < dataLen; ++i) { + Entry entry = entries.get(int256(i)); + recordDatas[i]=CertRecordData(entry.getString("id"),entry.getString("cert_id"),entry.getString("user_id"),entry.getString("org_id"),entry.getString("audit_status"),entry.getString("json_data"),entry.getInt("create_time")); + } + + return (recordDatas); + } + + //根据userid查询记录 + function selectByUserId(string memory table_prefix,string memory user_id) + public + view + returns (CertRecordData[]){ + //确定表格名称 + string memory table_name = string(abi.encodePacked(table_prefix, TABLE_SUFFIX)); + Table table = tableFactory.openTable(table_name); + + Condition condition = table.newCondition(); + condition.EQ("user_id", user_id); + + Entries entries = table.select(KEY_VALUE, condition); + uint256 dataLen = uint256(entries.size()); + CertRecordData[] memory recordDatas = new CertRecordData[](dataLen); + + for (uint256 i = 0; i < dataLen; ++i) { + Entry entry = entries.get(int256(i)); + recordDatas[i]=CertRecordData(entry.getString("id"),entry.getString("cert_id"),entry.getString("user_id"),entry.getString("org_id"),entry.getString("audit_status"),entry.getString("json_data"),entry.getInt("create_time")); + } + + return (recordDatas); + } + + //根据userid查询记录 + function selectByCertId(string memory table_prefix,string memory cert_id) + public + view + returns (CertRecordData[]){ + //确定表格名称 + string memory table_name = string(abi.encodePacked(table_prefix, TABLE_SUFFIX)); + Table table = tableFactory.openTable(table_name); + + Condition condition = table.newCondition(); + condition.EQ("cert_id", cert_id); + + Entries entries = table.select(KEY_VALUE, condition); + uint256 dataLen = uint256(entries.size()); + CertRecordData[] memory recordDatas = new CertRecordData[](dataLen); + + for (uint256 i = 0; i < dataLen; ++i) { + Entry entry = entries.get(int256(i)); + recordDatas[i]=CertRecordData(entry.getString("id"),entry.getString("cert_id"),entry.getString("user_id"),entry.getString("org_id"),entry.getString("audit_status"),entry.getString("json_data"),entry.getInt("create_time")); + } + + return (recordDatas); + } + + //根据orgid查询记录 + function selectByOrgId(string memory table_prefix,string memory org_id) + public + view + returns (CertRecordData[]){ + //确定表格名称 + string memory table_name = string(abi.encodePacked(table_prefix, TABLE_SUFFIX)); + Table table = tableFactory.openTable(table_name); + + Condition condition = table.newCondition(); + condition.EQ("org_id", org_id); + + Entries entries = table.select(KEY_VALUE, condition); + uint256 dataLen = uint256(entries.size()); + CertRecordData[] memory recordDatas = new CertRecordData[](dataLen); + + for (uint256 i = 0; i < dataLen; ++i) { + Entry entry = entries.get(int256(i)); + recordDatas[i]=CertRecordData(entry.getString("id"),entry.getString("cert_id"),entry.getString("user_id"),entry.getString("org_id"),entry.getString("audit_status"),entry.getString("json_data"),entry.getInt("create_time")); + } + + return (recordDatas); + } + + //添加证书审核记录 + function insert(string memory id, string memory cert_id,string memory user_id,string memory org_id,string memory audit_status,string memory json_data,int256 create_time) + public + returns(int256,string memory){ + //表格前缀 + string memory table_prefix = provider.selectPrefixByAddr(utils.toString(tx.origin)); + if(utils.strIsEmpty(table_prefix)){ + return (0,"table_prefix not find"); + } + + //确定表格名称 + string memory table_name = string(abi.encodePacked(table_prefix, TABLE_SUFFIX)); + Table table = tableFactory.openTable(table_name); + //id重复校验 + if(existById(id,table)){ + return (0,"id exists,insert failed"); + } + Entry entry = table.newEntry(); + entry.set(KEY_NAME, KEY_VALUE); + entry.set("id", id); + entry.set("cert_id", cert_id); + entry.set("user_id", user_id); + entry.set("org_id", org_id); + entry.set("audit_status", audit_status); + entry.set("json_data", json_data); + entry.set("create_time", create_time); + + + int256 count = table.insert(KEY_VALUE, entry); + if(count>0){ + emit InsertResult(count); + } + return (count,"success"); + + } + + //根据id判定是否存在 + function existById(string memory id,Table table) + private + view + returns (bool){ + Condition condition = table.newCondition(); + condition.EQ("id", id); + Entries entries = table.select(KEY_VALUE, condition); + return entries.size()>0; + } + +} \ No newline at end of file diff --git a/src/main/contracts/CreateTable.sol b/src/main/contracts/CreateTable.sol new file mode 100644 index 0000000..a0abd19 --- /dev/null +++ b/src/main/contracts/CreateTable.sol @@ -0,0 +1,47 @@ +pragma solidity ^0.4.24; +pragma experimental ABIEncoderV2; +import "../Table.sol"; + +contract CreateTable { + TableFactory tableFactory = TableFactory(0x1001); + string constant KEY_NAME = "key"; + string constant KEY_VALUE = "key"; +function create(string table_prefix) + public + { + + string memory TABLE_NAME = string(abi.encodePacked(table_prefix, "_archives_file")); + //创建表 + tableFactory.createTable(TABLE_NAME, KEY_NAME, "id,catalog_id,other_params,create_time,update_time"); + + TABLE_NAME = string(abi.encodePacked(table_prefix, "_file")); + //创建表 + tableFactory.createTable(TABLE_NAME, KEY_NAME, "id,archive_file_id,other_params,create_time,update_time"); + + TABLE_NAME = string(abi.encodePacked(table_prefix, "_catalog")); + //创建表 + tableFactory.createTable(TABLE_NAME, KEY_NAME, "id,parent_id,other_params,create_time,update_time"); + + TABLE_NAME = string(abi.encodePacked(table_prefix, "_application")); + //创建表 + tableFactory.createTable(TABLE_NAME, KEY_NAME, "id,used_org_code,provider_audit_status,used_json_data,provider_json_data,application_json_data,create_time,update_time"); + + TABLE_NAME = string(abi.encodePacked(table_prefix, "_download_record")); + //创建下载记录表 + tableFactory.createTable(TABLE_NAME, KEY_NAME, "id,weid,content_type,content_id,timestamp,application_id,watermark_data,create_time,sign"); + + TABLE_NAME = string(abi.encodePacked(table_prefix, "_decryption_record")); + //创建解密记录表 + tableFactory.createTable(TABLE_NAME, KEY_NAME, "id,weid,sm9Hibe_id,content_type,content_id,timestamp,location,create_time,sign"); + + TABLE_NAME = string(abi.encodePacked(table_prefix, "_reading_record")); + //创建阅读记录表 + tableFactory.createTable(TABLE_NAME, KEY_NAME, "id,weid,sm9Hibe_id,content_type,content_id,timestamp,duration,location,create_time,sign"); + + TABLE_NAME = string(abi.encodePacked(table_prefix, "_cert_record")); + //创建证书审核记录表 + tableFactory.createTable(TABLE_NAME, KEY_NAME, "id,cert_id,user_id,org_id,audit_status,json_data,create_time"); + + } +} + \ No newline at end of file diff --git a/src/main/contracts/DecryptionRecord.sol b/src/main/contracts/DecryptionRecord.sol new file mode 100644 index 0000000..970ef3c --- /dev/null +++ b/src/main/contracts/DecryptionRecord.sol @@ -0,0 +1,110 @@ +//pragma solidity >=0.6.10 <0.8.20; +pragma solidity ^0.4.24; +pragma experimental ABIEncoderV2; + +import "../Table.sol"; +import "./Provider.sol"; +import "./Utils.sol"; + +//解密记录 +contract DecryptionRecord { + event CreateResult(int256 count); + event InsertResult(int256 count); + event UpdateResult(int256 count); + event RemoveResult(int256 count); + + + TableFactory tableFactory = TableFactory(0x1001); + Utils utils = new Utils(); + Provider provider = new Provider(); + string constant TABLE_SUFFIX = "_decryption_record"; + string constant KEY_NAME = "key"; + string constant KEY_VALUE = "key"; + + struct DecryptionRecordData{ + string id; + string weid; + string sm9Hibe_id; + int256 content_type; + string content_id; + int256 timestamp; + string location; + int256 create_time; + string sign; + } + + //根据id查询记录 + function select(string memory table_prefix,string memory id) + public + view + returns (DecryptionRecordData[]){ + //确定表格名称 + string memory table_name = string(abi.encodePacked(table_prefix, TABLE_SUFFIX)); + Table table = tableFactory.openTable(table_name); + + Condition condition = table.newCondition(); + condition.EQ("id", id); + + Entries entries = table.select(KEY_VALUE, condition); + uint256 dataLen = uint256(entries.size()); + DecryptionRecordData[] memory recordDatas = new DecryptionRecordData[](dataLen); + + for (uint256 i = 0; i < dataLen; ++i) { + Entry entry = entries.get(int256(i)); + recordDatas[i]=DecryptionRecordData(entry.getString("id"),entry.getString("weid"),entry.getString("sm9Hibe_id"),entry.getInt("content_type"),entry.getString("content_id"),entry.getInt("timestamp"),entry.getString("location"),entry.getInt("create_time"),entry.getString("sign")); + } + + return (recordDatas); + } + + //添加下载记录,临时用数组方式传入int类型变量规避堆栈过深 + function insert(string memory id, string[] memory str_attr_name,string[] memory str_attr_value,string[] memory int_attr_name,int256[] memory int_attr_value) + public + returns(int256,string memory){ + //表格前缀 + string memory table_prefix = provider.selectPrefixByAddr(utils.toString(tx.origin)); + if(utils.strIsEmpty(table_prefix)){ + return (0,"table_prefix not find"); + } + + //确定表格名称 + string memory table_name = string(abi.encodePacked(table_prefix, TABLE_SUFFIX)); + Table table = tableFactory.openTable(table_name); + //id重复校验 + if(existById(id,table)){ + return (0,"id exists,insert failed"); + } + Entry entry = table.newEntry(); + entry.set(KEY_NAME, KEY_VALUE); + entry.set("id", id); + + //保存str类型属性 + for (uint256 i = 0; i < str_attr_name.length; ++i) { + entry.set(str_attr_name[i],str_attr_value[i]); + } + + //保存int类型属性 + for ( i = 0; i < int_attr_name.length; ++i) { + entry.set(int_attr_name[i],int_attr_value[i]); + } + + int256 count = table.insert(KEY_VALUE, entry); + if(count>0){ + emit InsertResult(count); + } + return (count,"success"); + + } + + //根据id判定是否存在 + function existById(string memory id,Table table) + private + view + returns (bool){ + Condition condition = table.newCondition(); + condition.EQ("id", id); + Entries entries = table.select(KEY_VALUE, condition); + return entries.size()>0; + } + +} \ No newline at end of file diff --git a/src/main/contracts/DownloadRecord.sol b/src/main/contracts/DownloadRecord.sol new file mode 100644 index 0000000..0a9aaf2 --- /dev/null +++ b/src/main/contracts/DownloadRecord.sol @@ -0,0 +1,112 @@ +//pragma solidity >=0.6.10 <0.8.20; +pragma solidity ^0.4.24; +pragma experimental ABIEncoderV2; + +import "../Table.sol"; +import "./Provider.sol"; +import "./Utils.sol"; + +//下载记录 +contract DownloadRecord { + event CreateResult(int256 count); + event InsertResult(int256 count); + event UpdateResult(int256 count); + event RemoveResult(int256 count); + + + TableFactory tableFactory = TableFactory(0x1001); + Utils utils = new Utils(); + Provider provider = new Provider(); + string constant TABLE_SUFFIX = "_download_record"; + string constant KEY_NAME = "key"; + string constant KEY_VALUE = "key"; + + struct DownloadRecordData{ + string id; + string weid; + int256 content_type; + string content_id; + int256 timestamp; + string application_id; + string watermark_data; + int256 create_time; + string sign;//数字签名 + } + + //根据id查询记录 + function select(string memory table_prefix,string memory id) + public + view + returns (DownloadRecordData[]){ + //确定表格名称 + string memory table_name = string(abi.encodePacked(table_prefix, TABLE_SUFFIX)); + Table table = tableFactory.openTable(table_name); + + Condition condition = table.newCondition(); + condition.EQ("id", id); + + Entries entries = table.select(KEY_VALUE, condition); + uint256 dataLen = uint256(entries.size()); + DownloadRecordData[] memory recordDatas = new DownloadRecordData[](dataLen); + + for (uint256 i = 0; i < dataLen; ++i) { + Entry entry = entries.get(int256(i)); + recordDatas[i]=DownloadRecordData(entry.getString("id"),entry.getString("weid"),entry.getInt("content_type"),entry.getString("content_id"),entry.getInt("timestamp"),entry.getString("application_id"),entry.getString("watermark_data"),entry.getInt("create_time"),entry.getString("sign")); + } + + return (recordDatas); + } + + //添加下载记录,临时用数组方式传入int类型变量规避堆栈过深 + function insert(string memory id, string[] memory str_attr_name,string[] memory str_attr_value,string[] memory int_attr_name,int256[] memory int_attr_value) + public + returns(int256,string memory){ + //表格前缀 + string memory table_prefix = provider.selectPrefixByAddr(utils.toString(tx.origin)); + if(utils.strIsEmpty(table_prefix)){ + return (0,"table_prefix not find"); + } + + //确定表格名称 + string memory table_name = string(abi.encodePacked(table_prefix, TABLE_SUFFIX)); + Table table = tableFactory.openTable(table_name); + //id重复校验 + if(existById(id,table)){ + return (0,"id exists,insert failed"); + } + Entry entry = table.newEntry(); + entry.set(KEY_NAME, KEY_VALUE); + entry.set("id", id); + + //保存str类型属性 + for (uint256 i = 0; i < str_attr_name.length; ++i) { + entry.set(str_attr_name[i],str_attr_value[i]); + } + + //保存int类型属性 + for ( i = 0; i < int_attr_name.length; ++i) { + entry.set(int_attr_name[i],int_attr_value[i]); + } + + int256 count = table.insert(KEY_VALUE, entry); + if(count>0){ + emit InsertResult(count); + } + return (count,"success"); + + } + + + + //根据id判定是否存在 + function existById(string memory id,Table table) + private + view + returns (bool){ + Condition condition = table.newCondition(); + condition.EQ("id", id); + Entries entries = table.select(KEY_VALUE, condition); + return entries.size()>0; + } + +} \ No newline at end of file diff --git a/src/main/contracts/File.sol b/src/main/contracts/File.sol new file mode 100644 index 0000000..1b3f3e1 --- /dev/null +++ b/src/main/contracts/File.sol @@ -0,0 +1,208 @@ +//pragma solidity >=0.6.10 <0.8.20; +pragma solidity ^0.4.24; +pragma experimental ABIEncoderV2; + +import "../Table.sol"; +import "./Utils.sol"; +import "./Provider.sol"; + +contract File { + event CreateResult(int256 count); + event InsertResult(int256 count); + event UpdateResult(int256 count); + event RemoveResult(int256 count); + + + TableFactory tableFactory = TableFactory(0x1001); + Utils utils = new Utils(); + Provider provider = new Provider(); + + + string constant TABLE_SUFFIX = "_file"; + string constant KEY_NAME = "key"; + string constant KEY_VALUE = "key"; + + struct FileData{ + string id; + string archive_file_id; + string other_params; + int256 create_time; + int256 update_time; + } + + //查询单个文件 + function selectById(string memory table_prefix,string memory file_id) + public + view + returns (FileData[] memory){ + + //确定表格名称 + string memory table_name = string(abi.encodePacked(table_prefix, TABLE_SUFFIX)); + Table table = tableFactory.openTable(table_name); + + Condition condition = table.newCondition(); + condition.EQ("id", file_id); + + Entries entries = table.select(KEY_VALUE, condition); + uint256 dataLen = uint256(entries.size()); + FileData[] memory files = new FileData[](dataLen); + + for (uint256 i = 0; i < dataLen; ++i) { + Entry entry = entries.get(int256(i)); + files[i]=FileData(entry.getString("id"),entry.getString("archive_file_id"),entry.getString("other_params"),entry.getInt("create_time"),entry.getInt("update_time")); + + } + + return (files); + } + + + + + //查询某个件下的所有文件 + function selectByCatalogId(string memory table_prefix,string memory archive_file_id) + public + view + returns (FileData[] memory){ + //确定表格名称 + string memory table_name = string(abi.encodePacked(table_prefix, TABLE_SUFFIX)); + Table table = tableFactory.openTable(table_name); + + Condition condition = table.newCondition(); + condition.EQ("archive_file_id", archive_file_id); + + Entries entries = table.select(KEY_VALUE, condition); + uint256 dataLen = uint256(entries.size()); + FileData[] memory files = new FileData[](dataLen); + + for (uint256 i = 0; i < dataLen; ++i) { + Entry entry = entries.get(int256(i)); + files[i]=FileData(entry.getString("id"),entry.getString("archive_file_id"),entry.getString("other_params"),entry.getInt("create_time"),entry.getInt("update_time")); + } + + return (files); + } + + + + function insert(string memory id,string memory archive_file_id, string memory other_params,int256 create_time,int256 update_time) + public + returns(int256,string memory){ + //表格前缀,这样确保只有自身才可以修改自身的目录数据 + string memory table_prefix = provider.selectPrefixByAddr(utils.toString(tx.origin)); + if(utils.strIsEmpty(table_prefix)){ + revert("can not find your file table, have you regiestered as a provder?"); + } + //确定表格名称 + string memory table_name = string(abi.encodePacked(table_prefix, TABLE_SUFFIX)); + + Table table = tableFactory.openTable(table_name); + + // //id重复校验 + if(existById(id,table)){ + revert("id can not repeated"); + } + + + Entry entry = table.newEntry(); + entry.set(KEY_NAME, KEY_VALUE); + entry.set("id", id); + entry.set("archive_file_id", archive_file_id); + entry.set("other_params", other_params); + entry.set("create_time", create_time); + entry.set("update_time", update_time); + + int256 count = table.insert(KEY_VALUE, entry); + if(count>0){ + emit InsertResult(count); + } + return (count,"success"); + } + + + function update(string memory id,string memory archive_file_id, string memory other_params,int256 update_time) + public + returns(int256,string memory){ + //表格前缀,这样确保只有自身才可以修改自身的目录数据 + string memory table_prefix = provider.selectPrefixByAddr(utils.toString(tx.origin)); + if(utils.strIsEmpty(table_prefix)){ + revert("can not find your file table, have you regiestered as a provder?"); + } + //确定表格名称 + string memory table_name = string(abi.encodePacked(table_prefix, TABLE_SUFFIX)); + Table table = tableFactory.openTable(table_name); + + Entry entry = table.newEntry(); + entry.set("archive_file_id", archive_file_id); + entry.set("other_params", other_params); + entry.set("update_time",update_time); + + Condition condition = table.newCondition(); + condition.EQ("id", id); + + int256 count = table.update(KEY_VALUE, entry, condition); + if(count>0){ + emit UpdateResult(count); + } + return (count,"success"); + } + + + //根据file_id删除 + function remove(string[] memory file_id) + public + returns (int256) { + //表格前缀 + string memory table_prefix = provider.selectPrefixByAddr(utils.toString(tx.origin)); + if(utils.strIsEmpty(table_prefix)){ + revert("can not find your file table, have you regiestered as a provder?"); + } + //确定表格名称 + string memory table_name = string(abi.encodePacked(table_prefix, TABLE_SUFFIX)); + Table table = tableFactory.openTable(table_name); + int256 count = 0; + + for(uint256 i=0;i0){ + count++; + } + } + + + if(count>0){ + emit RemoveResult(count); + } + + return count; + } + + + //根据id判定是否存在 + function existById(string memory id,Table table) + private + view + returns (bool){ + Condition condition = table.newCondition(); + condition.EQ("id", id); + Entries entries = table.select(KEY_VALUE, condition); + return entries.size()>0; + } + + //根据archive_file_id判定是否存在 + function existByArchiveFileId(string memory archive_file_id,string memory table_prefix) + private + view + returns (bool){ + + string memory table_name = string(abi.encodePacked(table_prefix, "_archives_file")); + Table table = tableFactory.openTable(table_name); + Condition condition = table.newCondition(); + condition.EQ("id", archive_file_id); + Entries entries = table.select(KEY_VALUE, condition); + return entries.size()>0; + } + +} \ No newline at end of file diff --git a/src/main/contracts/OrgCert.sol b/src/main/contracts/OrgCert.sol new file mode 100644 index 0000000..ebd75f8 --- /dev/null +++ b/src/main/contracts/OrgCert.sol @@ -0,0 +1,124 @@ +//pragma solidity >=0.6.10 <0.8.20; +pragma solidity ^0.4.24; +pragma experimental ABIEncoderV2; + +import "../Table.sol"; +//组织证书,存储各个组织的来自CA颁发的数字证书 +contract OrgCert { + event CreateResult(int256 count); + event InsertResult(int256 count); + event UpdateResult(int256 count); + event RemoveResult(int256 count); + + + struct OrgCertData{ + string public_key;//公钥,十六进制串 + string issuer_name;//颁发者名称 + string subject_name;//拥有者名称 + string sig_alg_name;//签名算法名称 + string cert_content;//证书内容,以上所有字段均可由证书内容解析出来 + int256 create_time; + int256 update_time; + string status;//valid;invalid; + } + + TableFactory tableFactory; + string constant TABLE_NAME = "org_cert2"; + string constant KEY_NAME = "key"; + string constant KEY_VALUE = "key"; + constructor() public { + tableFactory = TableFactory(0x1001); //The fixed address is 0x1001 for TableFactory + // the parameters of createTable are tableName,keyField,"vlaueFiled1,vlaueFiled2,vlaueFiled3,..." + //创建表 + tableFactory.createTable(TABLE_NAME, KEY_NAME, "public_key,issuer_name,subject_name,sig_alg_name,cert_content,create_time,update_time,status"); + } + + + + function select() + public + view + returns (OrgCertData[] memory){ + Table table = tableFactory.openTable(TABLE_NAME); + + Condition condition = table.newCondition(); + Entries entries = table.select(KEY_VALUE, condition); + uint256 dataLen = uint256(entries.size()); + OrgCertData[] memory pArray = new OrgCertData[](dataLen); + + for (uint256 i = 0; i < dataLen; ++i) { + Entry entry = entries.get(int256(i)); + pArray[i]=OrgCertData(entry.getString("public_key"),entry.getString("issuer_name"),entry.getString("subject_name"),entry.getString("sig_alg_name"),entry.getString("cert_content"),entry.getInt("create_time"),entry.getInt("update_time"),entry.getString("status")); + + } + + return pArray; + } + + function insert(string memory public_key,string memory issuer_name,string subject_name,string sig_alg_name,string cert_content,int256 create_time,int256 update_time, string status) + public + returns(int256,string memory){ + if(existByPublicKey(public_key)){ + return (0,"public_key can not repeat"); + } + + Table table = tableFactory.openTable(TABLE_NAME); + Entry entry = table.newEntry(); + entry.set(KEY_NAME, KEY_VALUE); + entry.set("public_key", public_key); + entry.set("issuer_name", issuer_name); + entry.set("subject_name", subject_name); + entry.set("sig_alg_name", sig_alg_name); + entry.set("cert_content", cert_content); + entry.set("create_time", create_time); + entry.set("update_time", update_time); + entry.set("status", status); + + int256 count = table.insert(KEY_VALUE, entry); + if(count>0){ + emit InsertResult(count); + } + + + return (count,"success"); + } + + + + + //根据公钥删除,实际上是更新状态为invalid + function remove(string memory public_key,int256 update_time) + public + returns (int256) { + + Table table = tableFactory.openTable(TABLE_NAME); + + Entry entry = table.newEntry(); + entry.set("update_time",update_time); + entry.set("status","invalid"); + + Condition condition = table.newCondition(); + condition.EQ("public_key", public_key); + + int256 count = table.update(KEY_VALUE, entry, condition); + + + return count; + } + + + + //根据public_key判定是否存在 + function existByPublicKey(string memory public_key) + private + view + returns (bool){ + Table table = tableFactory.openTable(TABLE_NAME); + Condition condition = table.newCondition(); + condition.EQ("public_key", public_key); + Entries entries = table.select(KEY_VALUE, condition); + return entries.size()>0; + } + + +} \ No newline at end of file diff --git a/src/main/contracts/PersonCert.sol b/src/main/contracts/PersonCert.sol new file mode 100644 index 0000000..5ed1e6f --- /dev/null +++ b/src/main/contracts/PersonCert.sol @@ -0,0 +1,146 @@ +//pragma solidity >=0.6.10 <0.8.20; +pragma solidity ^0.4.24; +pragma experimental ABIEncoderV2; + +import "../Table.sol"; +//个人证书,存储各个个人的来自组织颁发的身份凭证,可预计范围内,用户数量大约在数十万级别,不用分表 +contract PersonCert { + event CreateResult(int256 count); + event InsertResult(int256 count); + event UpdateResult(int256 count); + event RemoveResult(int256 count); + + + struct PersonCertData{ + string weid;//用户的weid + string issuer_name;//颁发者名称 + string issuer_public_key;//颁发者的公钥,16进制字符串 + string credential_content;//证书内容,以上所有字段均可由证书内容解析出来 + int256 create_time; + int256 update_time; + int256 invalid_time;//设置为无效的时间 + string status;//valid;invalid; + } + + TableFactory tableFactory; + string constant TABLE_NAME = "person_cert"; + string constant KEY_NAME = "key"; + string constant KEY_VALUE = "key"; + constructor() public { + tableFactory = TableFactory(0x1001); //The fixed address is 0x1001 for TableFactory + // the parameters of createTable are tableName,keyField,"vlaueFiled1,vlaueFiled2,vlaueFiled3,..." + //创建表 + tableFactory.createTable(TABLE_NAME, KEY_NAME, "weid,issuer_name,issuer_public_key,credential_content,create_time,update_time,invalid_time,status"); + } + + + + function select() + public + view + returns (PersonCertData[] memory){ + Table table = tableFactory.openTable(TABLE_NAME); + + Condition condition = table.newCondition(); + Entries entries = table.select(KEY_VALUE, condition); + uint256 dataLen = uint256(entries.size()); + PersonCertData[] memory pArray = new PersonCertData[](dataLen); + + for (uint256 i = 0; i < dataLen; ++i) { + Entry entry = entries.get(int256(i)); + pArray[i]=PersonCertData(entry.getString("weid"),entry.getString("issuer_name"),entry.getString("issuer_public_key"),entry.getString("credential_content"),entry.getInt("create_time"),entry.getInt("update_time"),entry.getInt("invalid_time"),entry.getString("status")); + + } + + return pArray; + } + + function selectByWeid(string memory weid) + public + view + returns (PersonCertData[] memory){ + Table table = tableFactory.openTable(TABLE_NAME); + + Condition condition = table.newCondition(); + condition.EQ("weid", weid); + Entries entries = table.select(KEY_VALUE, condition); + uint256 dataLen = uint256(entries.size()); + PersonCertData[] memory pArray = new PersonCertData[](dataLen); + + for (uint256 i = 0; i < dataLen; ++i) { + Entry entry = entries.get(int256(i)); + pArray[i]=PersonCertData(entry.getString("weid"),entry.getString("issuer_name"),entry.getString("issuer_public_key"),entry.getString("credential_content"),entry.getInt("create_time"),entry.getInt("update_time"),entry.getInt("invalid_time"),entry.getString("status")); + } + + return pArray; + } + + function insert(string memory weid,string memory issuer_name,string issuer_public_key,string credential_content,int256 create_time,int256 update_time, int256 invalid_time,string status) + public + returns(int256,string memory){ + if(existByWeid(weid)){ + return (0,"weid can not repeat"); + } + + Table table = tableFactory.openTable(TABLE_NAME); + Entry entry = table.newEntry(); + entry.set(KEY_NAME, KEY_VALUE); + entry.set("weid", weid); + entry.set("issuer_name", issuer_name); + entry.set("issuer_public_key", issuer_public_key); + entry.set("credential_content", credential_content); + entry.set("create_time", create_time); + entry.set("update_time", update_time); + entry.set("invalid_time", invalid_time); + entry.set("status", status); + + int256 count = table.insert(KEY_VALUE, entry); + if(count>0){ + emit InsertResult(count); + } + + return (count,"success"); + } + + + + + //根据weid删除,实际上是更新状态为invalid + function remove(string memory weid,int256 update_time) + public + returns (int256) { + + Table table = tableFactory.openTable(TABLE_NAME); + + Entry entry = table.newEntry(); + entry.set("update_time",update_time); + entry.set("invalid_time",update_time); + entry.set("status","invalid"); + + Condition condition = table.newCondition(); + condition.EQ("weid", weid); + + int256 count = table.update(KEY_VALUE, entry, condition); + if(count>0){ + emit UpdateResult(count); + } + + return count; + } + + + + //根据public_key判定是否存在 + function existByWeid(string memory weid) + private + view + returns (bool){ + Table table = tableFactory.openTable(TABLE_NAME); + Condition condition = table.newCondition(); + condition.EQ("weid", weid); + Entries entries = table.select(KEY_VALUE, condition); + return entries.size()>0; + } + + +} \ No newline at end of file diff --git a/src/main/contracts/Provider.sol b/src/main/contracts/Provider.sol new file mode 100644 index 0000000..b90ef01 --- /dev/null +++ b/src/main/contracts/Provider.sol @@ -0,0 +1,233 @@ +//pragma solidity >=0.6.10 <0.8.20; +pragma solidity ^0.4.24; +pragma experimental ABIEncoderV2; + +import "../Table.sol"; +import "./Utils.sol"; +import "./CreateTable.sol"; + +contract Provider { + event CreateResult(int256 count); + event InsertResult(int256 count); + event UpdateResult(int256 count); + event RemoveResult(int256 count); + + + struct ProviderData{ + string table_prefix; + string name; + string addr; + int256 create_time; + int256 update_time; + string status;//valid invalid + int256 update_data_time; + } + Utils utils = new Utils(); + CreateTable createTable = new CreateTable(); + TableFactory tableFactory; + string constant TABLE_NAME = "provider_20240607_1"; + string constant KEY_NAME = "key"; + string constant KEY_VALUE = "key"; + constructor() public { + tableFactory = TableFactory(0x1001); //The fixed address is 0x1001 for TableFactory + // the parameters of createTable are tableName,keyField,"vlaueFiled1,vlaueFiled2,vlaueFiled3,..." + //创建表 + tableFactory.createTable(TABLE_NAME, KEY_NAME, "table_prefix,name,addr,create_time,update_time,status,update_data_time"); + } + + + //插入,只能自己插入自己的 + function insert(string memory table_prefix,string memory name,int256 create_time,int256 update_time) + public + returns(int256,string memory){ + if(existByName(name) || existByPrefix(table_prefix)){ + return (0,"name and table_prefix not repeat"); + } + Table table = tableFactory.openTable(TABLE_NAME); + Condition condition = table.newCondition(); + condition.EQ("addr", utils.toString(tx.origin)); + Entries entries = table.select(KEY_VALUE, condition); + if(entries.size()>0){ + revert("you address have register one provider, can not repeat regester"); + } + + Entry entry = table.newEntry(); + entry.set(KEY_NAME, KEY_VALUE); + entry.set("table_prefix", table_prefix); + entry.set("name", name); + entry.set("addr", utils.toString(tx.origin)); + entry.set("create_time", create_time); + entry.set("update_time", update_time); + entry.set("status", "valid"); + entry.set("update_data_time",create_time);//默认设置为与本记录的创建时间相同 + + //创建附属表 + createTable.create(table_prefix); + + int256 count = table.insert(KEY_VALUE, entry); + if(count>0){ + emit InsertResult(count); + } + return (count,"success"); + } + + + function select() + public + view + returns (ProviderData[] memory){ + Table table = tableFactory.openTable(TABLE_NAME); + + Condition condition = table.newCondition(); + + Entries entries = table.select(KEY_VALUE, condition); + uint256 dataLen = uint256(entries.size()); + ProviderData[] memory pArray = new ProviderData[](dataLen); + + for (uint256 i = 0; i < dataLen; ++i) { + Entry entry = entries.get(int256(i)); + pArray[i]=ProviderData(entry.getString("table_prefix"),entry.getString("name"),entry.getString("addr"),entry.getInt("create_time"),entry.getInt("update_time"),entry.getString("status"),entry.getInt("update_data_time")); + + } + + return (pArray); + } + + + function selectMySelf() + public + view + returns (ProviderData[] memory){ + Table table = tableFactory.openTable(TABLE_NAME); + + Condition condition = table.newCondition(); + condition.EQ("addr", utils.toString(tx.origin)); + Entries entries = table.select(KEY_VALUE, condition); + uint256 dataLen = uint256(entries.size()); + ProviderData[] memory pArray = new ProviderData[](dataLen); + + for (uint256 i = 0; i < dataLen; ++i) { + Entry entry = entries.get(int256(i)); + pArray[i]=ProviderData(entry.getString("table_prefix"),entry.getString("name"),entry.getString("addr"),entry.getInt("create_time"),entry.getInt("update_time"),entry.getString("status"),entry.getInt("update_data_time")); + + } + + return (pArray); + + } + + + //更新数据的更新时间,在上传或者更新了自身的目录数据之后调用,便于利用方在恰当时间发起查询链上目录数据的请求 + function updateData(int256 update_data_time) + public + returns (int256,string memory) + { + Table table = tableFactory.openTable(TABLE_NAME); + + + Entry entry = table.newEntry(); + entry.set("update_data_time",update_data_time); + entry.set("update_time",update_data_time); + Condition condition = table.newCondition(); + condition.EQ("addr", utils.toString(tx.origin)); + + int256 count = table.update(KEY_VALUE, entry, condition); + if(count>0){ + emit UpdateResult(count); + } + return (count,"success"); + } + + + + //修改名称 + function updateName(string memory name,int256 update_time) + public + returns (int256,string memory) + { + if(utils.strIsEmpty(name)){ + return (0,"name not empty"); + } + if(update_time == 0){ + return (0,"update_time not empty"); + } + Table table = tableFactory.openTable(TABLE_NAME); + //检查名称是否重复 + if(existByName(name)){ + return (0,"Name already exists"); + } + + Entry entry = table.newEntry(); + entry.set("name",name); + entry.set("update_time",update_time); + + Condition condition = table.newCondition(); + condition.EQ("addr", utils.toString(tx.origin)); + + int256 count = table.update(KEY_VALUE, entry, condition); + if(count>0){ + emit UpdateResult(count); + } + + return (count,"success"); + } + + //根据机构名称删除 + function remove() + public + returns (int256) { + Table table = tableFactory.openTable(TABLE_NAME); + + Condition condition = table.newCondition(); + condition.EQ("addr", utils.toString(tx.origin)); + + int256 count = table.remove(KEY_VALUE, condition); + if(count>0){ + emit RemoveResult(count); + } + + return count; + } + + + //根据name判定是否存在 + function existByName(string memory name) + public + view + returns (bool){ + Table table = tableFactory.openTable(TABLE_NAME); + Condition condition = table.newCondition(); + condition.EQ("name", name); + Entries entries = table.select(KEY_VALUE, condition); + return entries.size()>0; + } + //根据table_prefix判定是否存在 + function existByPrefix(string memory table_prefix) + public + view + returns (bool){ + Table table = tableFactory.openTable(TABLE_NAME); + Condition condition = table.newCondition(); + condition.EQ("table_prefix", table_prefix); + Entries entries = table.select(KEY_VALUE, condition); + return entries.size()>0; + } + + + //根据地址查找机构的表前缀 + function selectPrefixByAddr(string addr) + public + view + returns (string memory){ + Table table = tableFactory.openTable(TABLE_NAME); + Condition condition = table.newCondition(); + condition.EQ("addr",addr); + Entries entries = table.select(KEY_VALUE, condition); + if(entries.size()>0){ + Entry entry = entries.get(int256(0)); + return entry.getString("table_prefix"); + } + revert("caller need regerest as a provider"); + } + +} \ No newline at end of file diff --git a/src/main/contracts/ReadingRecord.sol b/src/main/contracts/ReadingRecord.sol new file mode 100644 index 0000000..2959ef5 --- /dev/null +++ b/src/main/contracts/ReadingRecord.sol @@ -0,0 +1,111 @@ +//pragma solidity >=0.6.10 <0.8.20; +pragma solidity ^0.4.24; +pragma experimental ABIEncoderV2; + +import "../Table.sol"; +import "./Provider.sol"; +import "./Utils.sol"; + +//阅读记录 +contract ReadingRecord { + event CreateResult(int256 count); + event InsertResult(int256 count); + event UpdateResult(int256 count); + event RemoveResult(int256 count); + + + TableFactory tableFactory = TableFactory(0x1001); + Utils utils = new Utils(); + Provider provider = new Provider(); + string constant TABLE_SUFFIX = "_reading_record"; + string constant KEY_NAME = "key"; + string constant KEY_VALUE = "key"; + + struct DecryptionRecordData{ + string id; + string weid; + string sm9Hibe_id; + int256 content_type; + string content_id; + int256 timestamp; + int256 duration; + string location; + int256 create_time; + string sign; + } + + //根据id查询记录 + function select(string memory table_prefix,string memory id) + public + view + returns (DecryptionRecordData[]){ + //确定表格名称 + string memory table_name = string(abi.encodePacked(table_prefix, TABLE_SUFFIX)); + Table table = tableFactory.openTable(table_name); + + Condition condition = table.newCondition(); + condition.EQ("id", id); + + Entries entries = table.select(KEY_VALUE, condition); + uint256 dataLen = uint256(entries.size()); + DecryptionRecordData[] memory recordDatas = new DecryptionRecordData[](dataLen); + + for (uint256 i = 0; i < dataLen; ++i) { + Entry entry = entries.get(int256(i)); + recordDatas[i]=DecryptionRecordData(entry.getString("id"),entry.getString("weid"),entry.getString("sm9Hibe_id"),entry.getInt("content_type"),entry.getString("content_id"),entry.getInt("timestamp"),entry.getInt("duration"),entry.getString("location"),entry.getInt("create_time"),entry.getString("sign")); + } + + return (recordDatas); + } + + //添加下载记录,临时用数组方式传入int类型变量规避堆栈过深 + function insert(string memory id, string[] memory str_attr_name,string[] memory str_attr_value,string[] memory int_attr_name,int256[] memory int_attr_value) + public + returns(int256,string memory){ + //表格前缀 + string memory table_prefix = provider.selectPrefixByAddr(utils.toString(tx.origin)); + if(utils.strIsEmpty(table_prefix)){ + return (0,"table_prefix not find"); + } + + //确定表格名称 + string memory table_name = string(abi.encodePacked(table_prefix, TABLE_SUFFIX)); + Table table = tableFactory.openTable(table_name); + //id重复校验 + if(existById(id,table)){ + return (0,"id exists,insert failed"); + } + Entry entry = table.newEntry(); + entry.set(KEY_NAME, KEY_VALUE); + entry.set("id", id); + + //保存str类型属性 + for (uint256 i = 0; i < str_attr_name.length; ++i) { + entry.set(str_attr_name[i],str_attr_value[i]); + } + + //保存int类型属性 + for ( i = 0; i < int_attr_name.length; ++i) { + entry.set(int_attr_name[i],int_attr_value[i]); + } + + int256 count = table.insert(KEY_VALUE, entry); + if(count>0){ + emit InsertResult(count); + } + return (count,"success"); + + } + + //根据id判定是否存在 + function existById(string memory id,Table table) + private + view + returns (bool){ + Condition condition = table.newCondition(); + condition.EQ("id", id); + Entries entries = table.select(KEY_VALUE, condition); + return entries.size()>0; + } + +} \ No newline at end of file diff --git a/src/main/contracts/Utils.sol b/src/main/contracts/Utils.sol new file mode 100644 index 0000000..c61cfd7 --- /dev/null +++ b/src/main/contracts/Utils.sol @@ -0,0 +1,49 @@ +pragma solidity ^0.4.24; + +contract Utils { + +//==============================string工具函数============================== + function strIsEmpty(string memory str) + public pure + returns (bool) { + bytes memory bytesStr = bytes(str); + return bytesStr.length == 0; + } + + function strIsEqual(string memory str1, string memory str2) + public pure + returns (bool) { + if (bytes(str1).length != bytes(str2).length) { + return false; + } else { + return keccak256(abi.encodePacked(str1)) == keccak256(abi.encodePacked(str2)); + } + } + + + + function toString(address account) public pure returns (string memory) { + return toString(abi.encodePacked(account)); + } + + function toString(uint256 value) public pure returns (string memory) { + return toString(abi.encodePacked(value)); + } + + function toString(bytes32 value) public pure returns (string memory) { + return toString(abi.encodePacked(value)); + } + + function toString(bytes memory data) public pure returns (string memory) { + bytes memory alphabet = "0123456789abcdef"; + + bytes memory str = new bytes(2 + data.length * 2); + str[0] = "0"; + str[1] = "x"; + for (uint i = 0; i < data.length; i++) { + str[2 + i * 2] = alphabet[uint(uint8(data[i] >> 4))]; + str[3 + i * 2] = alphabet[uint(uint8(data[i] & 0x0f))]; + } + return string(str); + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/Application.java b/src/main/java/jj/tech/paolu/Application.java new file mode 100644 index 0000000..9c5447f --- /dev/null +++ b/src/main/java/jj/tech/paolu/Application.java @@ -0,0 +1,89 @@ +package jj.tech.paolu; + +import java.util.Arrays; + +import org.springframework.boot.CommandLineRunner; +import org.springframework.boot.SpringApplication; +import org.springframework.boot.autoconfigure.SpringBootApplication; +import org.springframework.context.ApplicationContext; +import org.springframework.context.annotation.Bean; +import org.springframework.scheduling.annotation.EnableScheduling; + + +/** + * @SpringBootApplication 是一个方便的注释, 它添加了以下所有内容: + * + @Configuration 将类标记为应用程序上下文的 bean 定义的源。 + @EnableAutoConfiguration 告诉 spring 引导开始根据类路径设置、其他 bean 和各种属性设置添加 bean。 + 通常你会为 spring mvc 应用程序添加 @EnableWebMvc, 但是 spring 引导在类路径上看到 spring WebMvc 时会自动添加它。这将应用程序标记为 web 应用程序, 并激活诸如设置 DispatcherServlet 之类的关键行为。 + @ComponentScan 告诉 spring 在 hello 包中查找其他组件、配置和服务, 使其能够找到控制器。 + + main () 方法使用 spring 引导的 SpringApplication. run () 方法来启动应用程序。 + 没有单行 xml?没有任何 web. xml 文件。此 web 应用程序是100% 纯 java, 您不必处理配置任何管道或基础结构。 + 还有一个标记为 @Bean 的 CommandLineRunner 方法, 并在启动时运行。它检索所有的 bean, 由您的应用程序创建或自动添加感谢春季启动。它的排序和打印出来。 + * @author Dou + * + */ + +@SpringBootApplication +//@EnableDiscoveryClient +@EnableScheduling +public class Application { + + + //打成war包需要继承 +// @SpringBootApplication +// public class Application extends SpringBootServletInitializer { +// +// @Override +// protected SpringApplicationBuilder configure(SpringApplicationBuilder application) { +// return application.sources(Application.class); +// } +// +// public static void main(String[] args) { +// SpringApplication.run(Application.class, args); +// } + + + public static void main(String[] args) { + SpringApplication.run(Application.class, args); + } + + @Bean + public CommandLineRunner commandLineRunner(ApplicationContext ctx) { + return args -> { + System.out.println("Let's inspect the beans provided by Spring Boot:"); + + String[] beanNames = ctx.getBeanDefinitionNames(); + Arrays.sort(beanNames); + for (String beanName : beanNames) { + System.err.println(beanName); + } + }; + } + + +// @StreamListener(IOrderProcessor.INPUT_ORDER) +// public void input(Message message) { +// System.out.println("一般监听收到:" + message.getPayload()); +// } + + + + +// public JdbcConnectionPool JdbcConnectionPool(){ +// String url = "jdbc:h2:~/test"; +// String user = "sa"; +// String password = ""; +// return JdbcConnectionPool.create(url, user, password); +// } + + +// @Bean +// @StreamMessageConverter +// public MessageConverter customMessageConverter() { +// return new MyCustomMessageConverter(); +// } + + +} diff --git a/src/main/java/jj/tech/paolu/biz/demo/controller/DemoController.java b/src/main/java/jj/tech/paolu/biz/demo/controller/DemoController.java new file mode 100644 index 0000000..17a52be --- /dev/null +++ b/src/main/java/jj/tech/paolu/biz/demo/controller/DemoController.java @@ -0,0 +1,226 @@ +//package jj.tech.paolu.biz.demo.controller; +// +//import com.fasterxml.jackson.databind.ObjectMapper; +//import jj.tech.paolu.biz.demo.dao.UserDao; +//import jj.tech.paolu.biz.demo.service.AService; +//import jj.tech.paolu.biz.demo.service.BService; +//import jj.tech.paolu.biz.webadmin.dao.SelectMapper; +//import jj.tech.paolu.repository.jooq.tables.SysAdminRole; +//import jj.tech.paolu.repository.jooq.tables.pojos.SysAdmin; +//import jj.tech.paolu.repository.jooq.tables.records.SysAdminRoleRecord; +//import jj.tech.paolu.repository.mybatis.dao.UserInfoMapper; +//import jj.tech.paolu.utils.IDHelp; +//import org.jooq.*; +//import org.mybatis.dynamic.sql.BasicColumn; +//import org.mybatis.dynamic.sql.SqlBuilder; +//import org.mybatis.dynamic.sql.render.RenderingStrategies; +//import org.mybatis.dynamic.sql.select.render.SelectStatementProvider; +//import org.springframework.beans.factory.annotation.Autowired; +//import org.springframework.beans.factory.annotation.Value; +//import org.springframework.transaction.annotation.Transactional; +//import org.springframework.web.bind.annotation.*; +// +//import java.time.LocalDateTime; +//import java.util.HashMap; +// +//import static jj.tech.paolu.repository.jooq.Tables.*; +//import static jj.tech.paolu.repository.mybatis.dao.support.UserInfoDynamicSqlSupport.*; +//import static org.mybatis.dynamic.sql.SqlBuilder.count; +// +// +////@RequestMapping(value="/demo", name="demo11") +//@RestController +//public class DemoController { +// +// @Value("${server.port}") +// String port; +// +// @Autowired ObjectMapper objectMapper; +// @Autowired UserDao userDao; +// +// @Autowired UserInfoMapper userInfoMapper; +// @Autowired DSLContext dsl; +// +// +// @Autowired AService aService; +// @Autowired BService bService; +// @Autowired SelectMapper selectMapper; +// +//// @Autowired SysAdminDao sysAdminDaos; +// +// +// /** +// * JOOQ默认嵌入式事务 +// * @return +// */ +//// @GetMapping(value="/") +//// @Transactional +//// public Object mian() { +//// aService.aa(); +//// try { +//// aService.bb(); +//// }catch(Exception e) { +//// e.printStackTrace(); +//// } +//// return "ok"; +//// } +// +// /** +// * JOOQ默认嵌入式事务 +// * @return +// */ +// @GetMapping("/t") +// @Transactional +// public Object t() { +// aService.aa(); +// try { +// aService.cc(); +// }catch(Exception e) { +// e.printStackTrace(); +// } +// return "ok"; +// } +// +// +// +// +// @GetMapping("/get") +// public Object get(String username, String password) { +// +//// //获取实际jdbc连接 +//// Object r = +//// dslContext.connectionResult(c ->{ +//// Object result = +//// DSL.using(c) +//// .select(USER_INFO.USER_NAME) +//// .from(USER_INFO) +//// .where(USER_INFO.USER_NAME.eq(username)) +//// .and(USER_INFO.PASSWORD.eq(password)) +//// .orderBy(USER_INFO.ID.desc()) +//// .fetchAnyMap(); +//// return result; +//// }); +//// return r; +// return "OK"; +// +// } +// +// +// @GetMapping("/getById/{id}") +// public Object getById(@PathVariable Long id) { +// //create.fetch("SELECT * FROM BOOK WHERE ID = ? AND TITLE = ?", 5, "Animal Farm"); +//// SysAdmin result = sysAdminDaos.fetchOneById(id); +//// return result; +// return "OK"; +// } +// +// +// @PostMapping("/add") +// public Object add() { +// +//// if (bean.getId() == null) { +//// IDHelp id = IDHelp.getInstance(1,1); +//// bean.setId(id.nextId()); +//// } +//// int i = +//// dslContext +//// .insertInto(USER_INFO) +//// .set(USER_INFO.ID, bean.getId()) +//// .set(USER_INFO.REAL_NAME, bean.getRealName()) +//// .set(USER_INFO.USER_NAME, bean.getUserName()) +//// .set(USER_INFO.PASSWORD, bean.getPassword()) +//// .set(USER_INFO.HEAD_IMG, bean.getHeadImg()) +//// .execute(); +// +//// UserInfoRecord r = dslContext.newRecord(USER_INFO); +//// r.setUserName("ssss"); +//// r.setRealName("bbbbb"); +//// r.setPassword("ssss"); +//// r.setPassword("ssss"); +//// r.store(); +//// System.out.println(r.getUserName()); +//// r.setHeadImg((String)null); +//// int i = r.store(); +// +//// return i; +// return ""; +// } +// +// @PostMapping("/updata/{id}") +// public Object updata(@PathVariable Integer id) { +//// int ok = +//// dslContext +//// .update(USER_INFO) +//// .set(USER_INFO.ID, 1L) +//// .set(USER_INFO.USER_NAME, "") +//// .set(USER_INFO.PASSWORD, "") +//// .set(USER_INFO.HEAD_IMG, (String)null) +//// .where(USER_INFO.ID.eq(id)) +//// .execute(); +//// dslContext.newRecord(USER_INFO); +// dsl.update(USER_INFO).set(USER_INFO.ID, 2L); +// +// return "OK"; +// } +// +// @PostMapping("/ss") +// public Object ss() { +// LocalDateTime d = LocalDateTime.now(); +// HashMap h = new HashMap(); +// IDHelp id = IDHelp.getInstance(0, 0); +// Long i = id.nextId(); +// System.out.println(i); +// h.put("s", i); +// h.put("d", d); +// +//// U s = new U(); +// SysAdmin s = +// dsl.selectFrom(SYS_ADMIN) +// .where(SYS_ADMIN.USERNAME.eq("admin")) +// .fetchOne().into(SysAdmin.class); +// +// Table ur = +// dsl.select(SYS_ROLE.ID) +// .from(SYS_ROLE) +// .where(SYS_ROLE.ID.eq(1L)) +// .asTable("ur"); +// +// Field role_id = ur.field("role_id").coerce(Long.class); +// SysAdminRole r = SYS_ADMIN_ROLE.as("r"); +// Result> bb = +// dsl.select(r).from(ur) +// .leftJoin(r) +// .on(r.ID.equal(role_id)).fetch(); +// +// return bb.intoMaps(); +// } +// +// +// @GetMapping("/mybatis") +// @Transactional +// public Object mybatis() { +// +// BasicColumn[] selectList = BasicColumn.columnList(id, realname, count(id).as("idss")); +// SelectStatementProvider provider = SqlBuilder.select(selectList) +// .from(userInfo) +//// .leftJoin(sysAdmin.withAlias("admin")).on(id, equalTo(sysAdmin.id)) +// .groupBy(id) +// .build().render(RenderingStrategies.MYBATIS3); +// System.out.println(provider.getSelectStatement()); +// Object m = userDao.selectSome(provider); +// // selectMapper.select(provider); +// return selectMapper.select(provider); +// } +// +// @GetMapping("66") +// public Object a() { +// aService.aa(); +// try { +// aService.bb(); +// }catch(Exception e) { +// e.printStackTrace(); +// } +// return "ok"; +// } +// +//} diff --git a/src/main/java/jj/tech/paolu/biz/demo/controller/Test2Controller.java b/src/main/java/jj/tech/paolu/biz/demo/controller/Test2Controller.java new file mode 100644 index 0000000..f4258d6 --- /dev/null +++ b/src/main/java/jj/tech/paolu/biz/demo/controller/Test2Controller.java @@ -0,0 +1,23 @@ +package jj.tech.paolu.biz.demo.controller; + + +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; + + +@RestController +@RequestMapping(value = "/ttt") +public class Test2Controller { + +// @Resource +// private SharedService sharedService; +// +// @GetMapping("/test/{id}") +// public Object test(@PathVariable Long id) throws Exception { +// +// return sharedService.getTest(id); +// +// } + + +} diff --git a/src/main/java/jj/tech/paolu/biz/demo/controller/TestController.java b/src/main/java/jj/tech/paolu/biz/demo/controller/TestController.java new file mode 100644 index 0000000..f36675f --- /dev/null +++ b/src/main/java/jj/tech/paolu/biz/demo/controller/TestController.java @@ -0,0 +1,317 @@ +//package jj.tech.paolu.biz.demo.controller; +// +//import static org.mybatis.dynamic.sql.SqlBuilder.select; +// +//import java.net.URI; +//import java.nio.file.Path; +//import java.nio.file.Paths; +//import java.util.ArrayList; +//import java.util.Comparator; +//import java.util.HashMap; +//import java.util.List; +//import java.util.Map; +//import java.util.Set; +//import java.util.concurrent.atomic.AtomicInteger; +//import java.util.stream.Collectors; +//import java.util.stream.Stream; +// +//import org.apache.commons.lang3.StringUtils; +//import org.jooq.DSLContext; +//import org.mybatis.dynamic.sql.render.RenderingStrategies; +//import org.springframework.aop.support.AopUtils; +//import org.springframework.beans.factory.ListableBeanFactory; +//import org.springframework.beans.factory.annotation.Autowired; +//import org.springframework.jdbc.core.JdbcTemplate; +//import org.springframework.jdbc.core.namedparam.MapSqlParameterSource; +//import org.springframework.jdbc.core.namedparam.NamedParameterJdbcTemplate; +//import org.springframework.jdbc.core.namedparam.SqlParameterSource; +//import org.springframework.stereotype.Controller; +//import org.springframework.transaction.annotation.Transactional; +//import org.springframework.web.bind.annotation.GetMapping; +//import org.springframework.web.bind.annotation.RequestMapping; +//import org.springframework.web.bind.annotation.RestController; +//import org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping; +//import org.springframework.web.util.UriComponents; +//import org.springframework.web.util.UriComponentsBuilder; +// +//import com.fasterxml.jackson.databind.ObjectMapper; +// +//import jj.tech.paolu.repository.mybatis.dao.SysUrlsMapper; +//import jj.tech.paolu.repository.mybatis.dao.UserInfoMapper; +//import jj.tech.paolu.repository.mybatis.dao.support.SysUrlsDynamicSqlSupport; +//import jj.tech.paolu.repository.mybatis.entity.SysUrls; +// +// +//@RestController +//@RequestMapping(value="/ttt") +//public class TestController { +// +// @Autowired UserInfoMapper userInfoMapper; +// @Autowired SysUrlsMapper sysUrlsMapper; +// +// @Autowired DSLContext dsl; +// @Autowired JdbcTemplate jdbcTemplate; +// @Autowired ListableBeanFactory listableBeanFactory; //获取实时扫描运行的bean,性能较低 +// @Autowired RequestMappingHandlerMapping requestMappingHandlerMapping; +// +// +// +// @GetMapping(value = "/test", name="测试") +// public void text() { +// +// } +// +// @GetMapping(value="/url", name = "....") +// @Transactional +// public Object url() { +// +// //1 获取所有controller的url +// final List list = new ArrayList(); +// requestMappingHandlerMapping +// .getHandlerMethods() +// .forEach((requestMappingInfo,handlerMethod) -> { +// requestMappingInfo +// .getPathPatternsCondition() +// .getPatternValues() +// .forEach((url)->{ +// RequestMapping mapping = handlerMethod.getMethodAnnotation(RequestMapping.class); +// String name = mapping.name(); +// if(StringUtils.isAllBlank(name)) { +// name = handlerMethod.getMethod().getName(); +// } +// Object[] arry = {null, null, 1, 0, url, name, handlerMethod.toString()}; +// list.add(arry); +// }); +// } ); +// +// +// //按url字符大小ascii排序, 再去重 +// HashMap map = new HashMap<>(); +// List urls = list.stream() +// .sorted( +// (a,b)-> { +// return a[4].toString().compareTo(b[4].toString()); +// } +// ) +// .filter(i->{ +// return map.putIfAbsent(i[4], Boolean.TRUE) == null; +// }) +// .collect(Collectors.toList()); +// +// +// +// +// //2 构建父节点,菜单类型 +// Map parentUrlMap = new HashMap(); +// Object[] arry0 = {1, 0, 2, 0, "#/", "boot", null}; +// parentUrlMap.put("#/", arry0); +// AtomicInteger id = new AtomicInteger(2); +// +// +// //3 添加ID和父节点的所有Url +// List sonUrl = new ArrayList(); +// +// urls.forEach(arr->{ +// String url = arr[4].toString(); +// Object name = arr[5]; +// Object method = arr[6]; +// List parents = getAllParents(url); +// int level = 1; +// for(int i=parents.size()-1; i>=0; i--) { +// +// String item = parents.get(i); +// if(i== parents.size()-1) { //最终父节点 +// continue; +// } +// +// if(i==0) { //最小节点 +// String parent = "#"+parents.get(i+1);//获取父节点 +//// System.err.println(parent+parentUrlMap.get(parent)); +// Object pid = parentUrlMap.get(parent)[0]; +// Object[] arry = {id.getAndIncrement(), pid, 1, level, item, name, method}; +// sonUrl.add(arry); +// continue; +// } +// +// if(!parentUrlMap.containsKey("#"+item)) { +// String parent = "#"+parents.get(i+1);//获取父节点 +// Object pid = parentUrlMap.get(parent)[0]; +// Object[] arry = {id.getAndIncrement(), pid, 2, level, "#"+item, null, null}; +// parentUrlMap.put("#"+item, arry); +// } +// level++; +// +// } +// }); +// +// +// //4 将controller上的@RequestMapping(value="", name="一级菜单"), 的name赋值给构建的菜单parentUrlMap +// Map menus= new HashMap(); +// +// Map controllers = listableBeanFactory.getBeansWithAnnotation(Controller.class); +// controllers.forEach((k,v)->{ +// Class source = AopUtils.getTargetClass(v);//获取实际类,而不是spring的代理类 +// RequestMapping mapping = source.getAnnotation(RequestMapping.class); +// if(mapping != null) { +// String mappingurl = mapping.value()[0]; +// if(!StringUtils.startsWith(mappingurl, "/")) { +// mappingurl = "/" +mappingurl; +// } +// mappingurl = "#"+mappingurl; +// +// String name = mapping.name(); +// +// String value = menus.get(mappingurl); +// if(menus.containsKey(mappingurl)) { +// //按名称ascii小的顺序赋值 +// if(StringUtils.isNoneBlank(name) && name.compareTo(value)<0) { +// menus.put(mappingurl, name); +// } +// }else { +// if(StringUtils.isNoneBlank(name)) { +// menus.put(mappingurl, name); +// } +// } +// +// } +// }); +// +// //赋值 +// menus.forEach((k,v)->{ +// Object[] arr = parentUrlMap.get(k); +// if(arr!=null) { +// arr[5]=v; +// } +// }); +// +// +// List parentUrl = parentUrlMap.entrySet() +// .stream() +// .map(v->v.getValue()) +// .collect(Collectors.toList()); +// +// +// jdbcTemplate.execute("TRUNCATE TABLE sys_urls"); +// String sql = "INSERT INTO sys_urls (ID,PID,TYPES,LEVEL,URL,NAME,METHOD) VALUES (?,?,?,?,?,?,?)"; +// jdbcTemplate.batchUpdate(sql, sonUrl); +// jdbcTemplate.batchUpdate(sql, parentUrl); +// +// return "ok"; +// } +// +// +// +// /** +// * @param uri ="/aa/bb/cc" +// * @return /aa/bb/cc, /aa/bb, /aa, / +// */ +// public static List getAllParents(String uri){ +// if(StringUtils.isBlank(uri)) { +// return List.of(""); +// } +// UriComponents components = UriComponentsBuilder.fromUriString("file://"+uri).build(); +// URI u = components.toUri(); +// +// List urilist = components.getPathSegments(); +// +// List paths = new ArrayList(); +// Path path = Paths.get(u); +// paths.add(path); +// +// for(int i=0; i{ +// return pa.toString().replace("\\", "/"); +// }).toList(); +// } +// +// +// +// public Map getAll(){ +// var provider = select(SysUrlsMapper.selectList) +// .from(SysUrlsDynamicSqlSupport.sysUrls) +// .build() +// .render(RenderingStrategies.MYBATIS3); +// List allList = sysUrlsMapper.selectMany(provider); +// +// Map map = allList.stream().collect( +// Collectors.toMap(SysUrls::getUrl, v->v)); +// return map; +// } +// +// +// +// public void updataMenu(Map db, Map parent, Map url) { +// NamedParameterJdbcTemplate namejdbcTemplate = new NamedParameterJdbcTemplate(jdbcTemplate); +// +// +// Map dbwaitDelete = new HashMap(); +// +// Map all = +// Stream.of(parent,url) +// .flatMap(map->map.entrySet().stream()) +// .collect(Collectors.toMap( Map.Entry::getKey, Map.Entry::getValue)); +// +// Map allAdd = new HashMap(); +// Map allUpdate = new HashMap(); +// +// //1、菜单在数据库不存在则新增加,存在则更新 +// all.entrySet().stream().forEach(set->{ +// SysUrls bean = db.get(set.getKey()); +// if(bean==null) { +// allAdd.put(set.getKey(), set.getValue()); +// }else { +// Object[] arr = set.getValue(); +// Object[] up = new Object[] {arr[1],arr[2],arr[3],arr[5],arr[6],arr[4]}; +// allUpdate.put(set.getKey(), up); +// } +// }); +// +// //2、数据库存在的菜单,在程序里不存在的,删除 +// db.entrySet().stream().forEach(set->{ +// String key = set.getKey(); +// Object[] arr = all.get(key); +// if(arr==null) { +// dbwaitDelete.put(key, set.getValue()); +// } +// }); +// +// +// List add = allAdd.entrySet() +// .stream() +// .map(v->v.getValue()) +// .collect(Collectors.toList()); +// +// String addsql = "INSERT INTO SYS_URLS (ID,PID,TYPES,LEVEL,URL,NAME,METHOD) VALUES (?,?,?,?,?,?,?)"; +// jdbcTemplate.batchUpdate(addsql, add); +// +// +// List update = allUpdate.entrySet() +// .stream() +// .map(v->v.getValue()) +// .collect(Collectors.toList()); +// String updatesql = "UPDATE SYS_URLS SET PID=?,TYPES=?,LEVEL=?,NAME=?,METHOD=? WHERE URL=?"; +// +// update.forEach(i->{ +// System.out.println(i[3]+" == "+i[5]); +// }); +// jdbcTemplate.batchUpdate(updatesql, update); +// +// +// //删除 +// if(dbwaitDelete.size()>0) { +// Set urls = dbwaitDelete.keySet(); +// +// MapSqlParameterSource parameters = new MapSqlParameterSource(); +// parameters.addValue("urls", urls); +// String deletesql = "DELETE SYS_URLS WHERE URL IN (:urls)"; +// namejdbcTemplate.update(deletesql, parameters); +// } +// +// } +// +// +//} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/biz/demo/dao/UserDao.java b/src/main/java/jj/tech/paolu/biz/demo/dao/UserDao.java new file mode 100644 index 0000000..33d9bbe --- /dev/null +++ b/src/main/java/jj/tech/paolu/biz/demo/dao/UserDao.java @@ -0,0 +1,27 @@ +package jj.tech.paolu.biz.demo.dao; + +import java.util.HashMap; +import java.util.List; + +import org.apache.ibatis.annotations.Mapper; +import org.apache.ibatis.annotations.Result; +import org.apache.ibatis.annotations.Results; +import org.apache.ibatis.annotations.SelectProvider; +import org.apache.ibatis.type.JdbcType; +import org.mybatis.dynamic.sql.select.render.SelectStatementProvider; +import org.mybatis.dynamic.sql.util.SqlProviderAdapter; + +@Mapper +public interface UserDao { + + @Results( value = { + @Result(column="ID", property="id", jdbcType=JdbcType.BIGINT, id=true), + @Result(column="REAL_NAME", property="realName", jdbcType=JdbcType.VARCHAR), + @Result(column="USER_NAME", property="userName", jdbcType=JdbcType.VARCHAR), + @Result(column="PASSWORD", property="password", jdbcType=JdbcType.VARCHAR), + @Result(column="HEAD_IMG", property="headImg", jdbcType=JdbcType.VARCHAR) + }) + @SelectProvider(type=SqlProviderAdapter.class, method="select") + List> selectSome (SelectStatementProvider selectStatement); + +} diff --git a/src/main/java/jj/tech/paolu/biz/demo/dto/U.java b/src/main/java/jj/tech/paolu/biz/demo/dto/U.java new file mode 100644 index 0000000..54c1bfe --- /dev/null +++ b/src/main/java/jj/tech/paolu/biz/demo/dto/U.java @@ -0,0 +1,27 @@ +package jj.tech.paolu.biz.demo.dto; + +import java.time.LocalDateTime; + +import jj.tech.paolu.utils.IDHelp; + +public class U { + + String i = IDHelp.getInstance(0, 0).nextId(); +// @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "CST")//中国时区 +// @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT")//即标准时区GMT+8 + LocalDateTime d = LocalDateTime.now(); + + public String getI() { + return i; + } + public void setI(String i) { + this.i = i; + } + public LocalDateTime getD() { + return d; + } + public void setD(LocalDateTime d) { + this.d = d; + } + +} diff --git a/src/main/java/jj/tech/paolu/biz/demo/service/AService.java b/src/main/java/jj/tech/paolu/biz/demo/service/AService.java new file mode 100644 index 0000000..7781acb --- /dev/null +++ b/src/main/java/jj/tech/paolu/biz/demo/service/AService.java @@ -0,0 +1,80 @@ +package jj.tech.paolu.biz.demo.service; + +//import static tech.bcnew.jooq.repository.Tables.SYS_ADMIN; + +import java.sql.Connection; + +import org.jooq.Condition; +import org.jooq.DSLContext; +import org.jooq.impl.DSL; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import org.springframework.transaction.annotation.Propagation; +import org.springframework.transaction.annotation.Transactional; + +@Service +public class AService { + + + @Autowired DSLContext dsl; + + @Transactional + public void aa(){ +// dsl.insertInto(SYS_ADMIN) +// .set(SYS_ADMIN.REALNAME, "1") +// .set(SYS_ADMIN.USERNAME,"1") +// .set(SYS_ADMIN.PASSWORD,"1") +// .set(SYS_ADMIN.IS_LOCKED, (byte)0) +// .execute(); + } + + + + public void bb(){ + + dsl.transaction(tx->{ + +// tx.dsl().insertInto(SYS_ADMIN) +// .set(SYS_ADMIN.REALNAME, "2") +// .set(SYS_ADMIN.USERNAME,"SS") +// .set(SYS_ADMIN.PASSWORD,"SS") +// .set(SYS_ADMIN.IS_LOCKED, (byte)0) +// .execute(); +// +// tx.dsl().insertInto(SYS_ADMIN) +// .set(SYS_ADMIN.REALNAME, "2") +// .set(SYS_ADMIN.USERNAME,"SS") +// .set(SYS_ADMIN.PASSWORD,"SS") +// .set(SYS_ADMIN.IS_LOCKED, (byte)0 ) +// .execute(); + int i = 1/0; + }); + + } + + @Transactional(propagation = Propagation.NESTED) + public void cc(){ + + +// dsl.insertInto(SYS_ADMIN) +// .set(SYS_ADMIN.REALNAME, "2") +// .set(SYS_ADMIN.USERNAME,"SS") +// .set(SYS_ADMIN.PASSWORD,"SS") +// .set(SYS_ADMIN.IS_LOCKED, (byte)0) +// .execute(); +// +// dsl.insertInto(SYS_ADMIN) +// .set(SYS_ADMIN.REALNAME, "2") +// .set(SYS_ADMIN.USERNAME,"SS") +// .set(SYS_ADMIN.PASSWORD,"SS") +// .set(SYS_ADMIN.IS_LOCKED, (byte)0 ) +// .execute(); + int i = 1/0; + + + + + } + + +} diff --git a/src/main/java/jj/tech/paolu/biz/demo/service/BService.java b/src/main/java/jj/tech/paolu/biz/demo/service/BService.java new file mode 100644 index 0000000..ad1fbaf --- /dev/null +++ b/src/main/java/jj/tech/paolu/biz/demo/service/BService.java @@ -0,0 +1,55 @@ +package jj.tech.paolu.biz.demo.service; + +//import static tech.bcnew.jooq.repository.Tables.SYS_ADMIN; + +import java.sql.Connection; + +import org.jooq.Condition; +import org.jooq.DSLContext; +import org.jooq.impl.DSL; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import org.springframework.transaction.annotation.Transactional; +@Service +public class BService { + + @Autowired DSLContext dsl; + + + @Transactional + public void aa(){ +// dsl.insertInto(SYS_ADMIN) +// .set(SYS_ADMIN.REALNAME, "1") +// .set(SYS_ADMIN.USERNAME,"1") +// .set(SYS_ADMIN.PASSWORD,"1") +// .set(SYS_ADMIN.IS_LOCKED, (byte)0) +// .execute(); + } + + + /** + * 使用jooq提供的事务管理器,默认是嵌入式事务 + */ + public void bb(){ + +// dsl.transaction(tx->{ +// +// tx.dsl().insertInto(SYS_ADMIN) +// .set(SYS_ADMIN.REALNAME, "2") +// .set(SYS_ADMIN.USERNAME,"SS") +// .set(SYS_ADMIN.PASSWORD,"SS") +// .set(SYS_ADMIN.IS_LOCKED, (byte)0) +// .execute(); +// +// tx.dsl().insertInto(SYS_ADMIN) +// .set(SYS_ADMIN.REALNAME, "2") +// .set(SYS_ADMIN.USERNAME,"SS") +// .set(SYS_ADMIN.PASSWORD,"SS") +// .set(SYS_ADMIN.IS_LOCKED, (byte)0 ) +// .execute(); +// int i = 1/0; +// }); + + + } +} diff --git a/src/main/java/jj/tech/paolu/biz/webadmin/controller/AdminManagerContronller.java b/src/main/java/jj/tech/paolu/biz/webadmin/controller/AdminManagerContronller.java new file mode 100644 index 0000000..9128662 --- /dev/null +++ b/src/main/java/jj/tech/paolu/biz/webadmin/controller/AdminManagerContronller.java @@ -0,0 +1,555 @@ +//package jj.tech.paolu.biz.webadmin.controller; +// +//import static org.mybatis.dynamic.sql.SqlBuilder.constant; +//import static org.mybatis.dynamic.sql.SqlBuilder.count; +//import static org.mybatis.dynamic.sql.SqlBuilder.equalTo; +//import static org.mybatis.dynamic.sql.SqlBuilder.isEqualTo; +//import static org.mybatis.dynamic.sql.SqlBuilder.isEqualToWhenPresent; +//import static org.mybatis.dynamic.sql.SqlBuilder.isIn; +//import static org.mybatis.dynamic.sql.SqlBuilder.isInWhenPresent; +//import static org.mybatis.dynamic.sql.SqlBuilder.isLike; +//import static org.mybatis.dynamic.sql.SqlBuilder.isNotEqualTo; +//import static org.mybatis.dynamic.sql.SqlBuilder.select; +// +//import java.awt.image.BufferedImage; +//import java.util.ArrayList; +//import java.util.HashMap; +//import java.util.List; +//import java.util.Optional; +//import java.util.Properties; +//import java.util.Random; +//import java.util.function.Function; +// +//import javax.imageio.ImageIO; +// +//import org.apache.commons.codec.digest.DigestUtils; +//import org.apache.commons.collections.CollectionUtils; +//import org.apache.commons.lang3.ArrayUtils; +//import org.apache.commons.lang3.StringUtils; +//import org.mybatis.dynamic.sql.BasicColumn; +//import org.mybatis.dynamic.sql.SqlBuilder; +//import org.mybatis.dynamic.sql.render.RenderingStrategies; +//import org.mybatis.dynamic.sql.select.QueryExpressionDSL; +//import org.mybatis.dynamic.sql.select.SelectModel; +//import org.mybatis.dynamic.sql.select.render.SelectStatementProvider; +//import org.mybatis.dynamic.sql.where.WhereApplier; +//import org.springframework.beans.factory.annotation.Autowired; +//import org.springframework.transaction.annotation.Transactional; +//import org.springframework.validation.annotation.Validated; +//import org.springframework.web.bind.annotation.PostMapping; +//import org.springframework.web.bind.annotation.RequestBody; +//import org.springframework.web.bind.annotation.RequestMapping; +//import org.springframework.web.bind.annotation.RestController; +// +//import com.google.code.kaptcha.impl.DefaultKaptcha; +//import com.google.code.kaptcha.util.Config; +// +//import io.swagger.v3.oas.annotations.Operation; +//import jakarta.servlet.ServletOutputStream; +//import jakarta.servlet.http.HttpServletRequest; +//import jakarta.servlet.http.HttpServletResponse; +//import jj.tech.paolu.biz.webadmin.dao.SelectMapper; +//import jj.tech.paolu.biz.webadmin.service.OrgService; +//import jj.tech.paolu.biz.webadmin.vo.AdminListVo; +//import jj.tech.paolu.biz.webadmin.vo.Id; +//import jj.tech.paolu.biz.webadmin.vo.IdsAndPwd; +//import jj.tech.paolu.biz.webadmin.vo.IdsAndPwdUpdate; +//import jj.tech.paolu.biz.webadmin.vo.LoginVo; +//import jj.tech.paolu.biz.webadmin.vo.SysAdminAddVo; +//import jj.tech.paolu.biz.webadmin.vo.SysAdminLock; +//import jj.tech.paolu.config.security.user.WebAdminUtil; +//import jj.tech.paolu.repository.mybatis.dao.CertificateApplyMapper; +//import jj.tech.paolu.repository.mybatis.dao.CertificateApplyRecordMapper; +//import jj.tech.paolu.repository.mybatis.dao.CertificateDetailMapper; +//import jj.tech.paolu.repository.mybatis.dao.SysAdminMapper; +//import jj.tech.paolu.repository.mybatis.dao.SysAdminRoleMapper; +//import jj.tech.paolu.repository.mybatis.dao.SysAdminWeidMapper; +//import jj.tech.paolu.repository.mybatis.dao.SysOrgMapper; +//import jj.tech.paolu.repository.mybatis.dao.SysRoleMapper; +//import jj.tech.paolu.repository.mybatis.dao.support.FilesApplyDynamicSqlSupport; +//import jj.tech.paolu.repository.mybatis.dao.support.SysAdminDynamicSqlSupport; +//import jj.tech.paolu.repository.mybatis.dao.support.SysAdminRoleDynamicSqlSupport; +//import jj.tech.paolu.repository.mybatis.dao.support.SysRoleDynamicSqlSupport; +//import jj.tech.paolu.repository.mybatis.entity.SysAdmin; +//import jj.tech.paolu.repository.mybatis.entity.SysAdminRole; +//import jj.tech.paolu.repository.mybatis.entity.SysOrg; +//import jj.tech.paolu.repository.mybatis.entity.SysRole; +//import jj.tech.paolu.utils.CookieUtil; +//import jj.tech.paolu.utils.IDHelp; +//import jj.tech.paolu.utils.Page; +//import jj.tech.paolu.utils.R; +// +//@RestController +//@RequestMapping(value = "/op/admin", name = "管理员账号管理列表") +//public class AdminManagerContronller { +// +// @Autowired SysAdminMapper sysAdminMapper; +// @Autowired SysAdminWeidMapper sysAdminWeidMapper; +// @Autowired SysAdminRoleMapper sysAdminRoleMapper; +// @Autowired SysOrgMapper sysOrgMapper; +// @Autowired SysRoleMapper sysRoleMapper; +// @Autowired CertificateApplyMapper certificateApplyMapper; +// @Autowired CertificateApplyRecordMapper certificateApplyRecordMapper; +// @Autowired CertificateDetailMapper certificateDetailMapper; +// @Autowired SelectMapper selectMapper; +// @Autowired OrgService orgService; +// +// +// +// +// @Operation(summary = "管理员登录", description = "admin 000000") +// @PostMapping("/login") +// public Object login(@Validated @RequestBody LoginVo parame, +// HttpServletRequest request, HttpServletResponse response) { +// +// String passwordEncode = DigestUtils.sha3_256Hex(parame.password); +// String captchaSha = DigestUtils.sha3_256Hex(parame.captcha); +// String captchaShaCookie = CookieUtil.fine(request, "captcha"); +// if(!captchaSha.equals(captchaShaCookie)) { +// return R.FALSE("验证码错误"); +// } +// var provider = select(SysAdminMapper.selectList) +// .from(SysAdminDynamicSqlSupport.sysAdmin) +// .where(SysAdminDynamicSqlSupport.username, isEqualTo(parame.username)) +// .build() +// .render(RenderingStrategies.MYBATIS3); +// +// Optional op = sysAdminMapper.selectOne(provider); +// if(!op.isPresent()) { +// return R.FALSE("管理员不存在"); +// } +// SysAdmin bean = op.get(); +// if(!passwordEncode.equals(bean.getPassword())) { +// return R.FALSE("密码错误"); +// } +// +// if(!bean.getId().equals("1") && bean.getIslock() == 0) { +// return R.FALSE("管理员已被禁用"); +// } +// bean.setPassword(null); +// +// String token = WebAdminUtil.addUser(bean); +// HashMap map = new HashMap(); +// map.put("webadmin", token); +// map.put("admin", bean); +// CookieUtil.delete(response, "captcha"); +// return R.SUCCESS(map); +// } +// +// +// +// @Operation(summary = "登出", description = "") +// @PostMapping("/logout") +// public Object logout() { +// WebAdminUtil.deleteUser(); +// return R.SUCCESS("logout is ok"); +// } +// +// @Operation(summary = "验证码", description = "") +// @PostMapping("/captcha") +// public Object captcha(HttpServletRequest request, HttpServletResponse response){ +// try +// { +// response.setDateHeader("Expires", 0); +// response.setHeader("Cache-Control", "no-store, no-cache, must-revalidate"); +// response.addHeader("Cache-Control", "post-check=0, pre-check=0"); +// response.setHeader("Pragma", "no-cache"); +// response.setContentType("image/jpeg"); +// +// DefaultKaptcha captchaProducer = new DefaultKaptcha(); +// Properties p = new Properties(); +//// p.setProperty("kaptcha.image.width", null); +//// p.setProperty("kaptcha.image.height", null); +//// p.setProperty("kaptcha.textproducer.char.string", "0123456789"); +// p.setProperty("kaptcha.textproducer.char.length", "4"); +// +// Config cfig = new Config(p); +// captchaProducer.setConfig(cfig); +// +// String capText = captchaProducer.createText(); +// CookieUtil.add("captcha", DigestUtils.sha3_256Hex(capText), response); +// +// //request.getSession().setAttribute(Constants.KAPTCHA_SESSION_KEY, capText); +// +// BufferedImage bi = captchaProducer.createImage(capText); +// +// ServletOutputStream out = response.getOutputStream(); +// ImageIO.write(bi, "jpg", out); +// out.flush(); +// +// }catch (Exception e) { +// e.printStackTrace(); +// } +// return null; +// } +// +// +// @Operation(summary = "管理员列表,按内容搜索", description = "") +// @PostMapping("/list") +// public Object list(@RequestBody AdminListVo parame) { +// +// Page p = new Page(parame.pageNum,parame.pageSize); +// SysAdmin admin = WebAdminUtil.getUser(); +// List orgs = orgService.allFarter(admin.getOrg_id()); +// SysOrg endOrg = orgs.getLast(); +// +// BasicColumn[] adminCloudList = BasicColumn.columnList(SysAdminDynamicSqlSupport.sysAdmin.allColumns()); +// BasicColumn roleNames = constant("string_agg(sys_role.rolename, ',')").as("rolenames"); +// BasicColumn[] basic = ArrayUtils.addAll(adminCloudList,roleNames); +// +// +// Function, QueryExpressionDSL.JoinSpecificationFinisher> function = +// s -> { +// +// var from = s +// .from(SysAdminDynamicSqlSupport.sysAdmin) +// .leftJoin(SysAdminRoleDynamicSqlSupport.sysAdminRole) +// .on(SysAdminRoleDynamicSqlSupport.adminid,equalTo(SysAdminDynamicSqlSupport.id)) +// .leftJoin(SysRoleDynamicSqlSupport.sysRole) +// .on(SysRoleDynamicSqlSupport.id,equalTo(SysAdminRoleDynamicSqlSupport.roleid)) +// ; +// +// return from; +// }; +// +// +// +// var where = SqlBuilder.where(SysAdminDynamicSqlSupport.id, isNotEqualTo("1")); +// if(!admin.getId().equals("1")) { +// where.and(SysAdminDynamicSqlSupport.company_id, isEqualToWhenPresent(endOrg.getId())); +// } +// where.and(SysAdminDynamicSqlSupport.islock, isEqualToWhenPresent(parame.islock)); +// where.and(SysAdminDynamicSqlSupport.username, isEqualTo(parame.username).filter(StringUtils::isNoneBlank)); +// where.and(SysAdminDynamicSqlSupport.gender, isEqualToWhenPresent(parame.gender)); +// where.and(SysAdminDynamicSqlSupport.job, isLike(parame.getJob()).filter(StringUtils::isNoneBlank).map(s -> "%" + s + "%")); +// where.and(SysAdminDynamicSqlSupport.realname, isLike(parame.getRealname()).filter(StringUtils::isNoneBlank).map(s -> "%" + s + "%")); +// where.and(SysAdminDynamicSqlSupport.phone, isEqualTo(parame.getPhone()).filter(StringUtils::isNoneBlank)); +// where.and(SysAdminDynamicSqlSupport.type, isEqualToWhenPresent(parame.type)); +// where.and(SysAdminDynamicSqlSupport.org_id, isEqualToWhenPresent(parame.getOrg_id()).filter(StringUtils::isNoneBlank)); +// if(CollectionUtils.isNotEmpty(parame.getRolesId())){ +// where.and(SysAdminRoleDynamicSqlSupport.roleid, isInWhenPresent(parame.getRolesId())); +// } +// +// WhereApplier applier = where.toWhereApplier(); +// +// SelectStatementProvider provider = function.apply(select(basic)) +// .applyWhere(applier) +// .configureStatement(config -> config.setNonRenderingWhereClauseAllowed(true)) +// .groupBy(SysAdminDynamicSqlSupport.id) +// .orderBy(FilesApplyDynamicSqlSupport.id.descending()) +// .limit(p.getPageSize()) +// .offset(p.limitStart()) +// .build() +// .render(RenderingStrategies.MYBATIS3); +// +// +// +// SelectStatementProvider count = select(count()) +// .from(function.apply(select(basic)) +// .applyWhere(applier) +// .groupBy(SysAdminDynamicSqlSupport.id) +// .orderBy(FilesApplyDynamicSqlSupport.id.descending()), +// "t1") +// .configureStatement(config -> config.setNonRenderingWhereClauseAllowed(true)) +//// .groupBy(SysAdminDynamicSqlSupport.id) +// .build() +// .render(RenderingStrategies.MYBATIS3); +// +// +// +// var list = selectMapper.selectMany(provider); +// long total = selectMapper.count(count); +// p.setList(list); +// p.setTotal(total); +// return R.SUCCESS(p); +// } +// +// @Transactional +// @Operation(summary = "管理员添加", description = "") +// @PostMapping("/add") +// public Object add(@RequestBody(required = true) SysAdminAddVo parame) { +// SysAdmin admin = WebAdminUtil.getUser(); +// if(admin.getId().equals("1")) { +// if(parame.getType()!=1) { //是否是企业管理员 +// return R.FALSE("超级管理员只能添加企业管理员账号"); +// } +// } +// +// if(!admin.getId().equals("1")) { +// if(parame.getType()!=0) { //是否是企业管理员 +// return R.FALSE("企业管理员只能创建普通用户"); +// } +// } +// +// List orgs = orgService.allFarter(parame.getOrg_id()); +// SysOrg endOrg = orgs.getLast(); +// //用户名系统生成 +// parame.setUsername(generateUsername()); +// +// if(StringUtils.isEmpty(parame.getUsername())) { +// return R.FALSE("用户名不能为空"); +// } +// +// parame.setId(IDHelp.getInstance().nextId()); +// String password = parame.getPassword(); +// +// +// if(StringUtils.isEmpty(password)) { +// password = "123456pwd"; +// } +// +// +// //该公司是否存在企业管理员的账号 +// if(parame.getType()==1) { +// List has = +// sysAdminMapper.select(s->s.where(SysAdminDynamicSqlSupport.company_id, isEqualTo(endOrg.getId())) +// .and(SysAdminDynamicSqlSupport.type, isEqualTo(1)) +// ); +// if(has.size()>0) { +// return R.FALSE("已经存在企业管理员:" + has.getFirst().getUsername()); +// } +// } +// +// +// +// +// +// String passwordEncode = DigestUtils.sha3_256Hex(password); +// parame.setPassword(passwordEncode); +// parame.setCompany_id(endOrg.getId()); +// +// +// sysAdminMapper.insertSelective(parame); +// if(parame.role_ids.isEmpty()) { +// return R.FALSE("角色不能为空"); +// } +// +// List roles = new ArrayList(); +// parame.role_ids.forEach(roleid->{ +// SysAdminRole bean = new SysAdminRole(); +// bean.setId(IDHelp.getInstance().nextId()); +// bean.setAdminid(parame.getId()); +// bean.setRoleid(roleid); +// roles.add(bean); +// }); +// +// sysAdminRoleMapper.insertMultiple(roles); +// +// /** +// * 创建用户的时候不生成weid,在用户成功申请完个人证书后再添加 +// */ +//// CreateResult cr = nBWeidService.createWeId().getResult(); +//// SysAdminWeid adwid = new SysAdminWeid(); +//// adwid.setId(IDHelp.getInstance().nextId()); +//// adwid.setAdmin_id(parame.getId()); +//// adwid.setWid(cr.getWeIdDocument().getId()); +//// adwid.setWprivate_key(cr.getPrivateKeyHexStr()); +//// sysAdminWeidMapper.insertSelective(adwid); +// +// return R.SUCCESS(parame); +// +// } +// +// @Transactional +// @Operation(summary = "管理员更新", description = "") +// @PostMapping("/update") +// public Object update(@RequestBody(required = true) SysAdminAddVo parame) { +// if(StringUtils.isEmpty(parame.getUsername())) { +// return R.FALSE("用户名不能为空"); +// } +// String password = parame.getPassword(); +// if(StringUtils.isNoneBlank(password)) { +// String passwordEncode = DigestUtils.sha3_256Hex(password); +// parame.setPassword(passwordEncode); +// } +// if(parame.getId() == null) { +// return R.FALSE("id不能为空"); +// } +// if(parame.getId().equals("1")) { +// return R.FALSE("超级管理不能修改"); +// } +// if(parame.role_ids.isEmpty()) { +// return R.FALSE("角色不能为空"); +// } +// +// sysAdminMapper.updateByPrimaryKeySelective(parame); +// sysAdminRoleMapper.delete(d->d.where(SysAdminRoleDynamicSqlSupport.adminid, isEqualTo(parame.getId()))); +// +// List roles = new ArrayList(); +// parame.role_ids.forEach(roleid->{ +// SysAdminRole bean = new SysAdminRole(); +// bean.setId(IDHelp.getInstance().nextId()); +// bean.setAdminid(parame.getId()); +// bean.setRoleid(roleid); +// roles.add(bean); +// }); +// +// sysAdminRoleMapper.insertMultiple(roles); +// return R.SUCCESS(parame); +// } +// +// +// @Transactional +// @Operation(summary = "按管理员ID删除") +// @PostMapping("/delete") +// public Object delete(@Validated @RequestBody Id parame) { +// String id = parame.getId(); +// if(id !=null && !id.equals("1")) { +// sysAdminMapper.deleteByPrimaryKey(id); +// sysAdminRoleMapper.delete(d->d.where(SysAdminRoleDynamicSqlSupport.adminid, isEqualTo(id))); +// } +// if(id.equals("1")) { +// return R.FALSE("超级管理员不能删除"); +// } +// return R.SUCCESS("delete: "+id); +// } +// +// +// +// @Operation(summary = "按管理员ID获取", description = "") +// @PostMapping("/get") +// public Object get(@Validated @RequestBody Id id) { +// Optional op = sysAdminMapper.selectByPrimaryKey(id.getId()); +// if(op.isPresent()) { +// SysAdmin admin = op.get(); +// admin.setPassword(null); +// +// SysOrg org = sysOrgMapper.selectByPrimaryKey(admin.getOrg_id()).orElse(null); +// +// List roles = +// sysRoleMapper.select(s->s.where(SysRoleDynamicSqlSupport.id, isIn( +// select(SysAdminRoleDynamicSqlSupport.roleid) +// .from(SysAdminRoleDynamicSqlSupport.sysAdminRole) +// .where(SysAdminRoleDynamicSqlSupport.adminid, isEqualTo(admin.getId())) +// ))); +// +//// CertificateDetail cert = certificateDetailMapper.selectOne(s->s +//// .where(CertificateDetailDynamicSqlSupport.id, isEqualTo( +//// select(CertificateApplyDynamicSqlSupport.cer_id) +//// .from(CertificateApplyDynamicSqlSupport.certificateApply) +//// .where(CertificateApplyDynamicSqlSupport.user_id, isEqualTo(admin.getId())) +//// .and(CertificateApplyDynamicSqlSupport.is_org, isEqualTo(0)) +//// .orderBy(CertificateApplyDynamicSqlSupport.id.descending()) +//// .limit(1) +//// )) +//// ).orElse(null); +// +// HashMap h = new HashMap(); +// h.put("admin", admin); +// h.put("org", org); +// h.put("roles", roles); +//// h.put("cert", cert); +// return R.SUCCESS(h); +// } +// return R.SUCCESS("can no find"); +// } +// +// @Operation(summary = "更新管理员状态", description = "") +// @PostMapping("/updateIsLock") +// public Object updateIsLock(@Validated @RequestBody SysAdminLock param){ +// SysAdmin sysAdmin = new SysAdmin(); +// sysAdmin.setId(param.getId()); +// sysAdmin.setIslock(param.getIsLock()); +// int i = sysAdminMapper.updateByPrimaryKeySelective(sysAdmin); +// return R.SUCCESS(i); +// } +// +// @Operation(summary = "更新管理员角色", description = "") +// @PostMapping("/updateRoles") +// @Transactional +// public Object updateRoles(@RequestBody SysAdminAddVo param){ +// List role_ids = param.role_ids; +// if (CollectionUtils.isEmpty(role_ids)) { +// return R.FALSE("角色不能为空"); +// } +// List roles = new ArrayList(); +// sysAdminRoleMapper.delete(d -> d.where(SysAdminRoleDynamicSqlSupport.adminid, isEqualTo(param.getId()))); +// role_ids.forEach(roleid->{ +// SysAdminRole bean = new SysAdminRole(); +// bean.setId(IDHelp.getInstance().nextId()); +// bean.setAdminid(param.getId()); +// bean.setRoleid(roleid); +// roles.add(bean); +// }); +// sysAdminRoleMapper.insertMultiple(roles); +// return R.SUCCESS("success"); +// } +// +// @Operation(summary = "重置管理员密码", description = "") +// @PostMapping("/resetPwd") +// public Object resetPwd(@Validated @RequestBody IdsAndPwd params){ +// String pwd = params.getPassword(); +// if (!StringUtils.isEmpty(params.getPassword())){ +// pwd = DigestUtils.sha3_256Hex("123456pwd"); +// }else { +// return R.FALSE("密码不能为空"); +// } +// String finalPwd = pwd; +// int update = sysAdminMapper.update(c -> c.set(SysAdminDynamicSqlSupport.password).equalTo(finalPwd) +// .where(SysAdminDynamicSqlSupport.id, isInWhenPresent(params.getIds()))); +// return R.SUCCESS(update); +// } +// +// @Operation(summary = "修改管理员密码", description = "") +// @PostMapping("/updatePwd") +// public Object updatePwd(@Validated @RequestBody IdsAndPwdUpdate params, +// HttpServletRequest request, HttpServletResponse response){ +// SysAdmin admin = WebAdminUtil.getUser(); +// String captchaSha = DigestUtils.sha3_256Hex(params.captcha); +// String oldPasswordEncode = DigestUtils.sha3_256Hex(params.password); +// +// SysAdmin bean = +// sysAdminMapper.selectOne(s->s.where(SysAdminRoleDynamicSqlSupport.id, isEqualTo(admin.getId()))).orElse(null); +// if(!bean.getPassword().equals(oldPasswordEncode)) { +// return R.FALSE("旧密码不正确"); +// } +// if(oldPasswordEncode.equals(DigestUtils.sha3_256Hex(params.newpassword))) { +// return R.FALSE("旧密码不能和新密码相同"); +// } +// +// String captchaShaCookie = CookieUtil.fine(request, "captcha"); +// if(!captchaSha.equals(captchaShaCookie)) { +// return R.FALSE("验证码错误"); +// } +// +// +// String pwd = DigestUtils.sha3_256Hex(params.newpassword); +// +// int update = sysAdminMapper.update(c -> c.set(SysAdminDynamicSqlSupport.password).equalTo(pwd) +// .where(SysAdminDynamicSqlSupport.id, isEqualTo(admin.getId()))); +// +// CookieUtil.delete(response, "captcha"); +// +// return R.SUCCESS(update); +// } +// +// +// +// /** +// * 生成用户名 +// * @return +// */ +// private String generateUsername(){ +// Random random = new Random(); +// //长度8位,不已0开头 +// int number; +// do { +// number = 10000000 + random.nextInt(90000000); // 生成100000到999999之间的随机数 +// // 将生成的随机数转换为字符串,确保不以0开头 +// } while (number % 10 == 0 && number != 0); +// String username = String.valueOf(number); +// //判断用户名是否已存在 +// long count = sysAdminMapper.count(c -> c.applyWhere(whereFinisher -> whereFinisher.and(SysAdminDynamicSqlSupport.username, isEqualTo(username)))); +// if(count > 0){ +// return generateUsername(); +// }else { +// return username; +// } +// } +// +// +// +// +// +// +//} diff --git a/src/main/java/jj/tech/paolu/biz/webadmin/controller/MenuManagerController.java b/src/main/java/jj/tech/paolu/biz/webadmin/controller/MenuManagerController.java new file mode 100644 index 0000000..1c65ee8 --- /dev/null +++ b/src/main/java/jj/tech/paolu/biz/webadmin/controller/MenuManagerController.java @@ -0,0 +1,187 @@ +//package jj.tech.paolu.biz.webadmin.controller; +// +//import static org.mybatis.dynamic.sql.SqlBuilder.isEqualTo; +//import static org.mybatis.dynamic.sql.SqlBuilder.isIn; +//import static org.mybatis.dynamic.sql.SqlBuilder.select; +// +//import java.util.List; +//import java.util.Map; +//import java.util.Optional; +//import java.util.stream.Collectors; +// +//import org.mybatis.dynamic.sql.render.RenderingStrategies; +//import org.mybatis.dynamic.sql.select.render.SelectStatementProvider; +//import org.springframework.beans.factory.annotation.Autowired; +//import org.springframework.validation.annotation.Validated; +//import org.springframework.web.bind.annotation.PostMapping; +//import org.springframework.web.bind.annotation.RequestBody; +//import org.springframework.web.bind.annotation.RequestMapping; +//import org.springframework.web.bind.annotation.RestController; +// +//import io.swagger.v3.oas.annotations.Operation; +//import jj.tech.paolu.biz.webadmin.dao.TreeMapper; +//import jj.tech.paolu.biz.webadmin.vo.Id; +//import jj.tech.paolu.biz.webadmin.vo.Ids; +//import jj.tech.paolu.biz.webadmin.vo.MenuTree; +//import jj.tech.paolu.config.security.user.WebAdminUtil; +//import jj.tech.paolu.repository.mybatis.dao.SysAdminRoleMapper; +//import jj.tech.paolu.repository.mybatis.dao.SysMenuMapper; +//import jj.tech.paolu.repository.mybatis.dao.SysRoleMapper; +//import jj.tech.paolu.repository.mybatis.dao.support.SysAdminRoleDynamicSqlSupport; +//import jj.tech.paolu.repository.mybatis.dao.support.SysMenuDynamicSqlSupport; +//import jj.tech.paolu.repository.mybatis.dao.support.SysRoleMenuDynamicSqlSupport; +//import jj.tech.paolu.repository.mybatis.dao.support.SysRoleUrlDynamicSqlSupport; +//import jj.tech.paolu.repository.mybatis.entity.SysAdmin; +//import jj.tech.paolu.repository.mybatis.entity.SysMenu; +//import jj.tech.paolu.utils.IDHelp; +//import jj.tech.paolu.utils.R; +// +//@RestController +//@RequestMapping(value = "/op/menu", name = "菜单管理") +//public class MenuManagerController { +// @Autowired SysMenuMapper sysMenuMapper; +// @Autowired SysRoleMapper sysRoleMapper; +// @Autowired SysAdminRoleMapper sysAdminRoleMapper; +// +// @Autowired TreeMapper treeMapper; +// +// private final IDHelp ID_HELP = IDHelp.getInstance(); +// +// @Operation(summary = "所有一级和二级菜单", description = "") +// @PostMapping("/all") +// public Object all() { +// +// var from = select(SysMenuMapper.selectList) +// .from(SysMenuDynamicSqlSupport.sysMenu) +//// .where() +//// .and(SysMenuDynamicSqlSupport.types, isEqualTo(2)) +//// .and(SysMenuDynamicSqlSupport.level, isEqualTo(2), or(SysMenuDynamicSqlSupport.level, isEqualTo(3))) +//// .and(SysMenuDynamicSqlSupport.name, isNotNull()) +// .orderBy(SysMenuDynamicSqlSupport.id,SysMenuDynamicSqlSupport.sort); +// +// +// SelectStatementProvider provider = from +// .build() +// .render(RenderingStrategies.MYBATIS3); +// +// List list = treeMapper.selectManyMenu(provider); +// +// Map> map = list.stream().collect(Collectors.groupingBy(MenuTree::getParent_id)); +// list.stream().forEach(i->{ +// i.setChildren(map.get(i.getId())); +// }); +// +// return R.SUCCESS(map.get("0")); +// } +// +// @Operation(summary = "获取管理员对应的菜单", description = "") +// @PostMapping("/list") +// public Object admin() { +// +// SysAdmin admin = WebAdminUtil.getUser(); +// +// if(admin == null) { +// return R.FALSE("admin can not find"); +// } +// +// if(admin.getId().equals("1")) { +// return this.all(); +// } +// +// var adminrole = select(SysAdminRoleDynamicSqlSupport.roleid) +// .from(SysAdminRoleDynamicSqlSupport.sysAdminRole) +// .where(SysAdminRoleDynamicSqlSupport.adminid, isEqualTo(admin.getId())); +// +// var roleurl = select(SysMenuDynamicSqlSupport.url) +// .from(SysRoleUrlDynamicSqlSupport.sysRoleUrl) +// .where(SysRoleUrlDynamicSqlSupport.roleid, isIn(adminrole)); +// +// var sysurl = select(SysMenuMapper.selectList) +// .from(SysMenuDynamicSqlSupport.sysMenu) +// .where(SysMenuDynamicSqlSupport.url, isIn(roleurl)) +// .orderBy(SysMenuDynamicSqlSupport.url) +// .build() +// .render(RenderingStrategies.MYBATIS3); +// +// List list = treeMapper.selectManyMenu(sysurl); +// +// Map> map = list.stream().collect(Collectors.groupingBy(MenuTree::getParent_id)); +// list.stream().forEach(i->{ +// i.setChildren(map.get(i.getId())); +// }); +// +// return R.SUCCESS(map.get("0")); +// +// } +// +// +// @Operation(summary = "获取当前用户对应的菜单", description = "") +// @PostMapping("/menuLit") +// public Object menuLit() { +// +// SysAdmin admin = WebAdminUtil.getUser(); +// +// if(admin == null) { +// return R.FALSE("admin can not find"); +// } +// +// if(admin.getId().equals("1")) { +// return this.all(); +// } +// +// +// var adminrole = select(SysAdminRoleDynamicSqlSupport.roleid) +// .from(SysAdminRoleDynamicSqlSupport.sysAdminRole) +// .where(SysAdminRoleDynamicSqlSupport.adminid, isEqualTo(admin.getId())); +// +// var rolemenu = select(SysRoleMenuDynamicSqlSupport.menuid) +// .from(SysRoleMenuDynamicSqlSupport.sysRoleMenu) +// .where(SysRoleMenuDynamicSqlSupport.roleid, isIn(adminrole)); +// +// var sysmenu = select(SysMenuMapper.selectList) +// .from(SysMenuDynamicSqlSupport.sysMenu) +// .where(SysMenuDynamicSqlSupport.id, isIn(rolemenu)) +// .orderBy(SysMenuDynamicSqlSupport.sort) +// .build() +// .render(RenderingStrategies.MYBATIS3); +// +// List list = treeMapper.selectManyMenu(sysmenu); +// +// Map> map = list.stream().collect(Collectors.groupingBy(MenuTree::getParent_id)); +// list.stream().forEach(i->{ +// i.setChildren(map.get(i.getId())); +// }); +// +// return R.SUCCESS(map.get("0")); +// +// } +// +// @Operation(summary = "根据菜单id查询", description = "") +// @PostMapping("/get") +// public Object get(@Validated @RequestBody Id param){ +// Optional sysMenu = sysMenuMapper.selectByPrimaryKey(param.getId()); +// return sysMenu.map(R::SUCCESS).orElse(R.FALSE("can no find")); +// } +// +// +// @Operation(summary = "新增菜单", description = "") +// @PostMapping("/save") +// public Object save(@RequestBody SysMenu param){ +// if (param.getId() == null){ +// String id = ID_HELP.nextId(); +// param.setId(id); +// sysMenuMapper.insertSelective(param); +// }else { +// sysMenuMapper.updateByPrimaryKeySelective(param); +// } +// return R.SUCCESS(param); +// } +// +// @Operation(summary = "按ID删除", description = "批量删除") +// @PostMapping("/delete") +// public Object delete(@Validated @RequestBody Ids param) { +// List ids = param.getIds(); +// sysMenuMapper.delete(c -> c.where(SysMenuDynamicSqlSupport.id, isIn(ids))); +// return R.SUCCESS("delete: " + ids); +// } +//} diff --git a/src/main/java/jj/tech/paolu/biz/webadmin/controller/RoleManagerController.java b/src/main/java/jj/tech/paolu/biz/webadmin/controller/RoleManagerController.java new file mode 100644 index 0000000..38a2837 --- /dev/null +++ b/src/main/java/jj/tech/paolu/biz/webadmin/controller/RoleManagerController.java @@ -0,0 +1,319 @@ +//package jj.tech.paolu.biz.webadmin.controller; +// +//import static org.mybatis.dynamic.sql.SqlBuilder.equalTo; +//import static org.mybatis.dynamic.sql.SqlBuilder.isEqualTo; +//import static org.mybatis.dynamic.sql.SqlBuilder.isEqualToWhenPresent; +//import static org.mybatis.dynamic.sql.SqlBuilder.isLikeWhenPresent; +//import static org.mybatis.dynamic.sql.SqlBuilder.isNotEqualTo; +//import static org.mybatis.dynamic.sql.SqlBuilder.select; +// +//import java.util.List; +//import java.util.Optional; +// +//import org.apache.commons.lang3.StringUtils; +//import org.mybatis.dynamic.sql.SqlBuilder; +//import org.mybatis.dynamic.sql.render.RenderingStrategies; +//import org.mybatis.dynamic.sql.select.render.SelectStatementProvider; +//import org.mybatis.dynamic.sql.where.WhereApplier; +//import org.springframework.beans.factory.annotation.Autowired; +//import org.springframework.transaction.annotation.Transactional; +//import org.springframework.validation.annotation.Validated; +//import org.springframework.web.bind.annotation.PathVariable; +//import org.springframework.web.bind.annotation.PostMapping; +//import org.springframework.web.bind.annotation.RequestBody; +//import org.springframework.web.bind.annotation.RequestMapping; +//import org.springframework.web.bind.annotation.RestController; +// +//import io.swagger.v3.oas.annotations.Operation; +//import jj.tech.paolu.biz.webadmin.service.OrgService; +//import jj.tech.paolu.biz.webadmin.vo.AddAdminRoleMenuVo; +//import jj.tech.paolu.biz.webadmin.vo.Id; +//import jj.tech.paolu.biz.webadmin.vo.SysAdminRoleVo; +//import jj.tech.paolu.biz.webadmin.vo.SysRoleListVo; +//import jj.tech.paolu.config.security.user.WebAdminUtil; +//import jj.tech.paolu.repository.mybatis.dao.SysAdminMapper; +//import jj.tech.paolu.repository.mybatis.dao.SysAdminRoleMapper; +//import jj.tech.paolu.repository.mybatis.dao.SysMenuMapper; +//import jj.tech.paolu.repository.mybatis.dao.SysRoleMapper; +//import jj.tech.paolu.repository.mybatis.dao.SysRoleMenuMapper; +//import jj.tech.paolu.repository.mybatis.dao.support.SysAdminRoleDynamicSqlSupport; +//import jj.tech.paolu.repository.mybatis.dao.support.SysMenuDynamicSqlSupport; +//import jj.tech.paolu.repository.mybatis.dao.support.SysRoleDynamicSqlSupport; +//import jj.tech.paolu.repository.mybatis.dao.support.SysRoleMenuDynamicSqlSupport; +//import jj.tech.paolu.repository.mybatis.entity.SysAdmin; +//import jj.tech.paolu.repository.mybatis.entity.SysAdminRole; +//import jj.tech.paolu.repository.mybatis.entity.SysMenu; +//import jj.tech.paolu.repository.mybatis.entity.SysOrg; +//import jj.tech.paolu.repository.mybatis.entity.SysRole; +//import jj.tech.paolu.repository.mybatis.entity.SysRoleMenu; +//import jj.tech.paolu.utils.IDHelp; +//import jj.tech.paolu.utils.Page; +//import jj.tech.paolu.utils.R; +// +//@RestController +//@RequestMapping(value = "/op/role") +//public class RoleManagerController { +// +// @Autowired SysAdminRoleMapper sysAdminRoleMapper; +// @Autowired SysAdminMapper sysAdminMapper; +// @Autowired SysRoleMapper sysRoleMapper; +// @Autowired SysRoleMenuMapper sysRoleMenuMapper; +// @Autowired SysMenuMapper sysMenuMapper; +// @Autowired OrgService orgService; +// +// +// @Operation(summary = "用户所属机构下的角色列表", description = "") +// @PostMapping("/list") +// public Object list(@RequestBody SysRoleListVo parame) { +// +// Page p = new Page(parame.pageNum, parame.pageSize); +// +// if (StringUtils.isNotBlank(parame.rolename)) { +// parame.rolename = "%" + parame.rolename + "%"; +// } +// if (StringUtils.isNotBlank(parame.describe)) { +// parame.describe = "%" + parame.describe + "%"; +// } +// +// SysAdmin admin = WebAdminUtil.getUser(); +// List orgs = orgService.allFarter(admin.getOrg_id()); +// SysOrg endOrg = orgs.getLast(); +// +// +// +// var from = select(SysRoleMapper.selectList) +// .from(SysRoleDynamicSqlSupport.sysRole); +// +// var where = SqlBuilder.where(SysRoleDynamicSqlSupport.id, isNotEqualTo("1")); +// if(!admin.getId().equals("1")) { +// where.and(SysRoleDynamicSqlSupport.company_id, isEqualTo(endOrg.getId())); +// } +// +// where.and(SysRoleDynamicSqlSupport.rolename, isLikeWhenPresent(parame.rolename)); +// where.and(SysRoleDynamicSqlSupport.describe, isLikeWhenPresent(parame.describe)); +// where.and(SysRoleDynamicSqlSupport.is_open, isEqualToWhenPresent(parame.is_open)); +// +// WhereApplier applier = where.toWhereApplier(); +// SelectStatementProvider provider = from +// .applyWhere(applier) +// .configureStatement(config -> config.setNonRenderingWhereClauseAllowed(true)) +// .limit(p.getPageSize()) +// .offset(p.limitStart()) +// .build() +// .render(RenderingStrategies.MYBATIS3); +// +// var list = sysRoleMapper.selectMany(provider); +// long total = sysRoleMapper.count(c -> c +// .applyWhere(applier) +// .configureStatement(config -> config.setNonRenderingWhereClauseAllowed(true)) +// ); +// p.setList(list); +// p.setTotal(total); +// return R.SUCCESS(p); +// } +// +// @Operation(summary = "获取管理员所在公司对应所有角色", description = "获取管理员所在公司对应所有角色") +// @PostMapping("/all") +// public Object all() { +// SysAdmin admin = WebAdminUtil.getUser(); +// List orgs = orgService.allFarter(admin.getOrg_id()); +// SysOrg endOrg = orgs.getLast(); +// +// var from = select(SysRoleMapper.selectList) +// .from(SysRoleDynamicSqlSupport.sysRole) +// ; +// +// var where = SqlBuilder.where(SysRoleDynamicSqlSupport.is_open, isEqualTo(1)); +// +// if(!admin.getId().equals("1")) { +// where.and(SysRoleDynamicSqlSupport.company_id, isEqualTo(endOrg.getId())); +// } +// +// WhereApplier applier = where.toWhereApplier(); +// SelectStatementProvider provider = from +// .applyWhere(applier) +// .configureStatement(config -> config.setNonRenderingWhereClauseAllowed(true)) +// .build() +// .render(RenderingStrategies.MYBATIS3); +// +// var list = sysRoleMapper.selectMany(provider); +// +// return R.SUCCESS(list); +// } +// +// +// @Operation(summary = "保存管理员对应的角色", description = "只需传角色roleId:[{'roleId': 0}] ") +// @PostMapping("/addAdminRole") +// @Transactional +// public Object addAdminRole(@RequestBody SysAdminRoleVo params) { +// String adminid = params.getAdminid(); +// if (adminid.equals("1")) { +// return R.FALSE("超级管理员不能修改角色"); +// } +// +// Optional op = sysAdminMapper.selectByPrimaryKey(adminid); +// if (!op.isPresent()) { +// return R.FALSE("admin can not find"); +// } +// +// +// sysAdminRoleMapper.delete(d -> d.where(SysAdminRoleDynamicSqlSupport.adminid, isEqualTo(adminid))); +// List roles = params.getSysAdminRoles(); +// roles.forEach(bean -> { +// bean.setAdminid(adminid); +// if (!bean.getRoleid().equals("1")) { +// sysAdminRoleMapper.insertSelective(bean); +// } +// }); +// +// return R.SUCCESS(roles.size()); +// } +// +// +//// @Operation(summary = "获取管理员所在公司对应所有角色", description = "") +//// @PostMapping("/getAdminRole") +//// public Object getAdminRole(@Validated @RequestBody Id param) { +//// String id = param.id; +//// Optional op = sysAdminMapper.selectByPrimaryKey(id); +//// if (!op.isPresent()) { +//// return R.FALSE("admin can not find"); +//// } +//// +//// var roleids = select(SysAdminRoleDynamicSqlSupport.roleid) +//// .from(SysAdminRoleDynamicSqlSupport.sysAdminRole) +//// .where(SysAdminRoleDynamicSqlSupport.adminid, isEqualTo(id)); +//// +//// var from = select(SysRoleMapper.selectList) +//// .from(SysRoleDynamicSqlSupport.sysRole) +//// .where(SysRoleDynamicSqlSupport.id, SqlBuilder.isIn(roleids)) +//// .build() +//// .render(RenderingStrategies.MYBATIS3); +//// +//// List roles = sysRoleMapper.selectMany(from); +//// +//// HashMap h = new HashMap(); +//// SysAdmin bean = op.get(); +//// bean.setPassword(null); +//// +//// h.put("admin", bean); +//// h.put("roles", roles); +//// return R.SUCCESS(h); +//// } +// +// +//// @Operation(summary = "添加角色对应的菜单", description = "") +//// @PostMapping("/addAdminRoleMenu") +//// public Object addAdminRoleMenu(@Validated @RequestBody Ids param) { +//// Long id = param.id; +//// Optional op = sysAdminMapper.selectByPrimaryKey(id); +//// if(!op.isPresent()) { +//// return R.FALSE("admin can not find"); +//// } +//// +//// var roleids = select(SysAdminRoleDynamicSqlSupport.roleid) +//// .from(SysAdminRoleDynamicSqlSupport.sysAdminRole) +//// .where(SysAdminRoleDynamicSqlSupport.adminid, isEqualTo(id)); +//// +//// var from = select(SysRoleMapper.selectList) +//// .from(SysRoleDynamicSqlSupport.sysRole) +//// .where(SysRoleDynamicSqlSupport.id, SqlBuilder.isIn(roleids)) +//// .build() +//// .render(RenderingStrategies.MYBATIS3); +//// +//// List roles = sysRoleMapper.selectMany(from); +//// +//// HashMap h = new HashMap(); +//// SysAdmin bean = op.get(); +//// bean.setPassword(null); +//// +//// h.put("admin", bean); +//// h.put("roles", roles); +//// return R.SUCCESS(h); +//// } +// +// +// @Operation(summary = "添加角色对应的菜单", description = "") +// @PostMapping("/addRoleMenu") +// @Transactional +// public Object addAdminRoleMenu(@Validated @RequestBody AddAdminRoleMenuVo param) { +// //删除旧关系 +// int delete = sysRoleMenuMapper.delete(c -> c.applyWhere(whereFinisher -> whereFinisher +// .and(SysRoleMenuDynamicSqlSupport.roleid, isEqualTo(param.getRole_id())) +// )); +// +// //保存新关系 +// param.getMenu_ids().forEach(id -> { +// SysRoleMenu srm = new SysRoleMenu(); +// srm.setId(IDHelp.getInstance().nextId()); +// srm.setRoleid(param.getRole_id()); +// srm.setMenuid(id); +// sysRoleMenuMapper.insert(srm); +// }); +// +// return R.SUCCESS(); +// } +// +// +// @PostMapping("delete") +// public Object delete(@Validated @RequestBody List ids) { +// for(Integer i=0; i list = +// sysAdminRoleMapper.select(s->s.where(SysAdminRoleDynamicSqlSupport.roleid, isEqualTo(ids.get(fi)))); +// if(list.size()>0) { +// return R.FALSE(ids.get(fi)+"角色下还有绑定用户,请先解除已绑定该角色用户后再进行删除"); +// +// }else { +// sysRoleMapper.deleteByPrimaryKey(ids.get(i)); +// } +// } +// +// +// return R.SUCCESS(); +// } +// +// +// @PostMapping("save") +// public Object save(@RequestBody SysRole record) { +// SysAdmin admin = WebAdminUtil.getUser(); +// List orgs = orgService.allFarter(admin.getOrg_id()); +// SysOrg endOrg = orgs.getLast(); +// +// record.setId(IDHelp.getInstance().nextId()); +// if(endOrg==null) { +// record.setCompany_id("0"); +// record.setCompany_name(""); +// }else { +// record.setCompany_id(endOrg.getId()); +// record.setCompany_name(endOrg.getName()); +// } +// return R.SUCCESS(sysRoleMapper.insertSelective(record)); +// } +// +// @PostMapping("update") +// public Object update(@RequestBody SysRole record) { +// return R.SUCCESS(sysRoleMapper.updateByPrimaryKeySelective(record)); +// } +// +// @PostMapping("findById/{id}") +// public Object findById(@PathVariable("id") String id) { +// return R.SUCCESS(sysRoleMapper.selectByPrimaryKey(id).orElse(null)); +// } +// +// @Operation(summary = "根据角色id查询对应的菜单权限", description = "") +// @PostMapping("/findMenuById") +// public Object findMenuById(@Validated @RequestBody Id param) { +// SelectStatementProvider render = select(SysMenuMapper.selectList) +// .from(SysMenuDynamicSqlSupport.sysMenu) +// .leftJoin(SysRoleMenuDynamicSqlSupport.sysRoleMenu) +// .on(SysMenuDynamicSqlSupport.id, equalTo(SysRoleMenuDynamicSqlSupport.menuid)) +// .leftJoin(SysRoleDynamicSqlSupport.sysRole) +// .on(SysRoleMenuDynamicSqlSupport.roleid, equalTo(SysRoleDynamicSqlSupport.id)) +// .where(SysRoleDynamicSqlSupport.id, isEqualTo(param.getId())) +// .build().render(RenderingStrategies.MYBATIS3); +// List sysMenus = sysMenuMapper.selectMany(render); +// return R.SUCCESS(sysMenus); +// +// } +// +//} diff --git a/src/main/java/jj/tech/paolu/biz/webadmin/controller/RoleSignController.java b/src/main/java/jj/tech/paolu/biz/webadmin/controller/RoleSignController.java new file mode 100644 index 0000000..6d0c55a --- /dev/null +++ b/src/main/java/jj/tech/paolu/biz/webadmin/controller/RoleSignController.java @@ -0,0 +1,85 @@ +//package jj.tech.paolu.biz.webadmin.controller; +// +//import static org.mybatis.dynamic.sql.SqlBuilder.select; +// +//import org.mybatis.dynamic.sql.render.RenderingStrategies; +//import org.mybatis.dynamic.sql.select.render.SelectStatementProvider; +//import org.springframework.beans.factory.annotation.Autowired; +//import org.springframework.web.bind.annotation.PostMapping; +//import org.springframework.web.bind.annotation.RequestMapping; +//import org.springframework.web.bind.annotation.RestController; +// +//import io.swagger.v3.oas.annotations.Operation; +//import io.swagger.v3.oas.annotations.tags.Tag; +//import jj.tech.paolu.repository.mybatis.dao.SysRoleSignMapper; +//import jj.tech.paolu.repository.mybatis.dao.support.SysRoleSignDynamicSqlSupport; +//import jj.tech.paolu.utils.R; +//@RestController +//@RequestMapping(value = "/op/roleSign") +//@Tag(name = "RoleSignController", description = "角色标记") +//public class RoleSignController { +// +// @Autowired SysRoleSignMapper sysRoleSignMapper; +// +// +//// @Operation(summary = "角色列表", description = "") +//// @PostMapping("/list") +//// public Object list(@RequestBody SysRoleListVo parame) { +//// +//// Page p = new Page(parame.pageNum, parame.pageSize); +//// +//// if (StringUtils.isNotBlank(parame.rolename)) { +//// parame.rolename = "%" + parame.rolename + "%"; +//// } +//// if (StringUtils.isNotBlank(parame.describe)) { +//// parame.describe = "%" + parame.describe + "%"; +//// } +//// +//// var from = select(SysRoleMapper.selectList) +//// .from(SysRoleDynamicSqlSupport.sysRole); +//// +//// var where = SqlBuilder.where(SysRoleDynamicSqlSupport.id, isNotEqualTo(1L)); +//// +//// where.and(SysRoleDynamicSqlSupport.rolename, isLikeWhenPresent(parame.rolename)); +//// where.and(SysRoleDynamicSqlSupport.describe, isLikeWhenPresent(parame.describe)); +//// where.and(SysRoleDynamicSqlSupport.is_open, isEqualToWhenPresent(parame.is_open)); +//// +//// WhereApplier applier = where.toWhereApplier(); +//// SelectStatementProvider provider = from +//// .applyWhere(applier) +//// .configureStatement(config -> config.setNonRenderingWhereClauseAllowed(true)) +//// .limit(p.getPageSize()) +//// .offset(p.limitStart()) +//// .build() +//// .render(RenderingStrategies.MYBATIS3); +//// +//// var list = sysRoleMapper.selectMany(provider); +//// long total = sysRoleMapper.count(c -> c +//// .applyWhere(applier) +//// .configureStatement(config -> config.setNonRenderingWhereClauseAllowed(true)) +//// ); +//// p.setList(list); +//// p.setTotal(total); +//// return R.SUCCESS(p); +//// } +// +// @Operation(summary = "所有标记", description = "") +// @PostMapping("/all") +// public Object all() { +// +// var from = select(SysRoleSignMapper.selectList) +// .from(SysRoleSignDynamicSqlSupport.sysRoleSign) +// ; +// +// SelectStatementProvider provider = from +// .configureStatement(config -> config.setNonRenderingWhereClauseAllowed(true)) +// .orderBy(SysRoleSignDynamicSqlSupport.id) +// .limit(2000) +// .build() +// .render(RenderingStrategies.MYBATIS3); +// +// var list = sysRoleSignMapper.selectMany(provider); +// +// return R.SUCCESS(list); +// } +//} diff --git a/src/main/java/jj/tech/paolu/biz/webadmin/controller/SysAreasController.java b/src/main/java/jj/tech/paolu/biz/webadmin/controller/SysAreasController.java new file mode 100644 index 0000000..31fea1c --- /dev/null +++ b/src/main/java/jj/tech/paolu/biz/webadmin/controller/SysAreasController.java @@ -0,0 +1,73 @@ +//package jj.tech.paolu.biz.webadmin.controller; +// +//import jj.tech.paolu.biz.webadmin.dao.SelectMapper; +//import jj.tech.paolu.repository.mybatis.dao.SysAreaMapper; +//import jj.tech.paolu.repository.mybatis.dao.support.SysAreaDynamicSqlSupport; +//import jj.tech.paolu.utils.R; +//import org.mybatis.dynamic.sql.render.RenderingStrategies; +//import org.springframework.beans.factory.annotation.Autowired; +//import org.springframework.web.bind.annotation.PathVariable; +//import org.springframework.web.bind.annotation.PostMapping; +//import org.springframework.web.bind.annotation.RequestMapping; +//import org.springframework.web.bind.annotation.RestController; +// +//import static org.mybatis.dynamic.sql.SqlBuilder.isEqualTo; +//import static org.mybatis.dynamic.sql.SqlBuilder.select; +// +//@RestController +//@RequestMapping(value = "/op/area", name = "组织机构管理") +//public class SysAreasController { +// +// @Autowired +// public SysAreaMapper sysAreaMapper; +// @Autowired +// public SelectMapper selectMapper; +// +// @PostMapping("findById/{id}") +// public Object findById(@PathVariable("id") String id) { +// return R.SUCCESS(sysAreaMapper.selectByPrimaryKey(id).orElse(null)); +// } +// +// /** +// * 获取省列表 +// * +// * @return +// */ +// @PostMapping("findProvince") +// public Object findProvince() { +// short level_code = 1; +// var sql = select( +// SysAreaDynamicSqlSupport.name, +// SysAreaDynamicSqlSupport.parent_code, +// SysAreaDynamicSqlSupport.area_code +// ) +// .from(SysAreaDynamicSqlSupport.sysArea) +// .applyWhere(whereFinisher -> whereFinisher +// .and(SysAreaDynamicSqlSupport.level_code, isEqualTo(level_code)) +// ) +// .build().render(RenderingStrategies.MYBATIS3); +// return R.SUCCESS(selectMapper.selectMany(sql)); +// } +// +// /** +// * 获取省下面的市 +// * @return +// */ +// @PostMapping("findCity/{area_code}") +// public Object findCity(@PathVariable("area_code") String area_code) { +// short level_code = 2; +// var sql = select( +// SysAreaDynamicSqlSupport.name, +// SysAreaDynamicSqlSupport.parent_code, +// SysAreaDynamicSqlSupport.area_code +// ) +// .from(SysAreaDynamicSqlSupport.sysArea) +// .applyWhere(whereFinisher -> whereFinisher +// .and(SysAreaDynamicSqlSupport.level_code, isEqualTo(level_code)) +// .and(SysAreaDynamicSqlSupport.parent_code, isEqualTo(area_code)) +// ) +// .build().render(RenderingStrategies.MYBATIS3); +// return R.SUCCESS(selectMapper.selectMany(sql)); +// } +// +//} diff --git a/src/main/java/jj/tech/paolu/biz/webadmin/controller/SysConfigController.java b/src/main/java/jj/tech/paolu/biz/webadmin/controller/SysConfigController.java new file mode 100644 index 0000000..b864d91 --- /dev/null +++ b/src/main/java/jj/tech/paolu/biz/webadmin/controller/SysConfigController.java @@ -0,0 +1,35 @@ +//package jj.tech.paolu.biz.webadmin.controller; +// +//import jj.tech.paolu.repository.mybatis.dao.SysConfigMapper; +//import jj.tech.paolu.repository.mybatis.dao.support.SysConfigDynamicSqlSupport; +//import jj.tech.paolu.repository.mybatis.entity.SysConfig; +//import jj.tech.paolu.utils.IDHelp; +//import jj.tech.paolu.utils.R; +//import org.mybatis.dynamic.sql.SqlBuilder; +//import org.mybatis.dynamic.sql.render.RenderingStrategies; +//import org.springframework.beans.factory.annotation.Autowired; +//import org.springframework.web.bind.annotation.*; +// +//import static org.mybatis.dynamic.sql.SqlBuilder.*; +// +//@RestController +//@RequestMapping(value = "/op/sysConfig",name = "系统配置字典表") +//public class SysConfigController { +// +// @Autowired +// public SysConfigMapper sysConfigMapper; +// +// /** +// * 根据分组查找字典配置 +// * @param subgroup +// * @return +// */ +// @PostMapping("findById/{subgroup}") +// public Object findById(@PathVariable("subgroup") String subgroup) { +// var sql = select(SysConfigMapper.selectList) +// .from(SysConfigDynamicSqlSupport.sysConfig) +// .applyWhere(whereFinisher -> whereFinisher.and(SysConfigDynamicSqlSupport.subgroup,isEqualTo(subgroup))) +// .build().render(RenderingStrategies.MYBATIS3); +// return R.SUCCESS(sysConfigMapper.selectMany(sql)); +// } +//} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/biz/webadmin/controller/YMcodeController.java b/src/main/java/jj/tech/paolu/biz/webadmin/controller/YMcodeController.java new file mode 100644 index 0000000..cd02e80 --- /dev/null +++ b/src/main/java/jj/tech/paolu/biz/webadmin/controller/YMcodeController.java @@ -0,0 +1,31 @@ +package jj.tech.paolu.biz.webadmin.controller; + +import java.util.HashMap; + +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; + +import io.swagger.v3.oas.annotations.Operation; +import jakarta.servlet.http.HttpServletRequest; +import jakarta.servlet.http.HttpServletResponse; +import jj.tech.paolu.biz.webadmin.vo.LoginVo; +import jj.tech.paolu.utils.R; + +@RestController +@RequestMapping(value = "/op/ym",name = "云码图片识别接口") +public class YMcodeController { + + @Operation(summary = "管理员登录", description = "admin 000000") + @PostMapping("/get") + public Object login(@Validated @RequestBody LoginVo parame, + HttpServletRequest request, HttpServletResponse response) { + + + HashMap map = new HashMap(); + map.put("code", ""); + return R.SUCCESS(map); + } +} diff --git a/src/main/java/jj/tech/paolu/biz/webadmin/dao/SelectMapper.java b/src/main/java/jj/tech/paolu/biz/webadmin/dao/SelectMapper.java new file mode 100644 index 0000000..8c8606b --- /dev/null +++ b/src/main/java/jj/tech/paolu/biz/webadmin/dao/SelectMapper.java @@ -0,0 +1,34 @@ +package jj.tech.paolu.biz.webadmin.dao; + +import java.util.List; + +import org.apache.commons.collections4.map.CaseInsensitiveMap; +import org.apache.ibatis.annotations.Mapper; +import org.apache.ibatis.annotations.SelectProvider; +import org.mybatis.dynamic.sql.select.render.SelectStatementProvider; +import org.mybatis.dynamic.sql.util.SqlProviderAdapter; +import org.mybatis.dynamic.sql.util.mybatis3.CommonDeleteMapper; +import org.mybatis.dynamic.sql.util.mybatis3.CommonUpdateMapper; + +import jj.tech.paolu.biz.webadmin.vo.Id; + +@Mapper +public interface SelectMapper extends CommonDeleteMapper, CommonUpdateMapper { + + /** + * 没有映射,直接返回表字段 + * @param selectStatement + * @return + */ + @SelectProvider(type=SqlProviderAdapter.class, method="select") + List> selectMany (SelectStatementProvider selectStatement); + + @SelectProvider(type = SqlProviderAdapter.class, method = "select") + Long count(SelectStatementProvider selectStatement); + + + @SelectProvider(type=SqlProviderAdapter.class, method="select") + List selectList (SelectStatementProvider selectStatement); + + +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/biz/webadmin/dao/TreeMapper.java b/src/main/java/jj/tech/paolu/biz/webadmin/dao/TreeMapper.java new file mode 100644 index 0000000..100b998 --- /dev/null +++ b/src/main/java/jj/tech/paolu/biz/webadmin/dao/TreeMapper.java @@ -0,0 +1,28 @@ +package jj.tech.paolu.biz.webadmin.dao; + +import java.util.List; + +import org.apache.ibatis.annotations.Mapper; +import org.apache.ibatis.annotations.SelectProvider; +import org.mybatis.dynamic.sql.select.render.SelectStatementProvider; +import org.mybatis.dynamic.sql.util.SqlProviderAdapter; +import org.mybatis.dynamic.sql.util.mybatis3.CommonDeleteMapper; +import org.mybatis.dynamic.sql.util.mybatis3.CommonUpdateMapper; + +import jj.tech.paolu.biz.webadmin.vo.MenuTree; +import jj.tech.paolu.biz.webadmin.vo.OrgTree; +@Mapper +public interface TreeMapper extends CommonDeleteMapper, CommonUpdateMapper{ + + @SelectProvider(type=SqlProviderAdapter.class, method="select") + List selectManyMenu (SelectStatementProvider selectStatement); + + @SelectProvider(type = SqlProviderAdapter.class, method = "select") + Long count(SelectStatementProvider selectStatement); + + @SelectProvider(type=SqlProviderAdapter.class, method="select") + List selectManyOrg (SelectStatementProvider selectStatement); + + + +} diff --git a/src/main/java/jj/tech/paolu/biz/webadmin/service/MenuService.java b/src/main/java/jj/tech/paolu/biz/webadmin/service/MenuService.java new file mode 100644 index 0000000..671096f --- /dev/null +++ b/src/main/java/jj/tech/paolu/biz/webadmin/service/MenuService.java @@ -0,0 +1,71 @@ +package jj.tech.paolu.biz.webadmin.service; + +import jj.tech.paolu.biz.webadmin.dao.TreeMapper; +import jj.tech.paolu.biz.webadmin.vo.MenuTree; +import jj.tech.paolu.repository.mybatis.dao.SysMenuMapper; +import jj.tech.paolu.repository.mybatis.dao.support.SysAdminRoleDynamicSqlSupport; +import jj.tech.paolu.repository.mybatis.dao.support.SysMenuDynamicSqlSupport; +import jj.tech.paolu.repository.mybatis.dao.support.SysRoleMenuDynamicSqlSupport; +import jj.tech.paolu.repository.mybatis.entity.SysMenu; +import jj.tech.paolu.utils.R; +import org.mybatis.dynamic.sql.render.RenderingStrategies; +import org.mybatis.dynamic.sql.select.render.SelectStatementProvider; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; + +import java.util.ArrayList; +import java.util.List; + +import static org.mybatis.dynamic.sql.SqlBuilder.*; + +@Service +public class MenuService { + + @Autowired OrgService orgService; + @Autowired TreeMapper treeMapper; + @Autowired SuperSysAdminComponent superSysAdminComponent; + /** + * 查询某个用户具有权限的菜单列表 + * @param userId + * @return + */ + List getAllMenuByUserId(String userId){ + List menuList = new ArrayList<>(); + if(userId.equals(superSysAdminComponent.id)) {//系统管理员拥有全部菜单权限 + var from = select(SysMenuMapper.selectList).from(SysMenuDynamicSqlSupport.sysMenu) + .orderBy(SysMenuDynamicSqlSupport.id,SysMenuDynamicSqlSupport.sort); + SelectStatementProvider provider = from.build().render(RenderingStrategies.MYBATIS3); + List list = treeMapper.selectManyMenu(provider); + menuList.addAll(list); + return menuList; + } + else{//其他用户,根据角色来查询 + var adminrole = select(SysAdminRoleDynamicSqlSupport.roleid) + .from(SysAdminRoleDynamicSqlSupport.sysAdminRole) + .where(SysAdminRoleDynamicSqlSupport.adminid, isEqualTo(userId)); + + var rolemenu = select(SysRoleMenuDynamicSqlSupport.menuid) + .from(SysRoleMenuDynamicSqlSupport.sysRoleMenu) + .where(SysRoleMenuDynamicSqlSupport.roleid, isIn(adminrole)); + + var sysmenu = select(SysMenuMapper.selectList) + .from(SysMenuDynamicSqlSupport.sysMenu) + .where(SysMenuDynamicSqlSupport.id, isIn(rolemenu)) + .orderBy(SysMenuDynamicSqlSupport.sort) + .build() + .render(RenderingStrategies.MYBATIS3); + List list = treeMapper.selectManyMenu(sysmenu); + menuList.addAll(list); + return menuList; + } + } + + /** + * 获得“个人证书审核权限”的ID + * @return + */ + public String getPersonCheckMenuId() { + + return "226856895174934528";//现在的权限没有类似于COde一样的业务不变编码,只能用id来判断了。 + } +} diff --git a/src/main/java/jj/tech/paolu/biz/webadmin/service/OrgService.java b/src/main/java/jj/tech/paolu/biz/webadmin/service/OrgService.java new file mode 100644 index 0000000..d740ee5 --- /dev/null +++ b/src/main/java/jj/tech/paolu/biz/webadmin/service/OrgService.java @@ -0,0 +1,184 @@ +package jj.tech.paolu.biz.webadmin.service; + +import java.util.List; + +import jj.tech.paolu.config.enums.CertificateApplyCheckStatus; +import jj.tech.paolu.config.enums.UserType; +import jj.tech.paolu.repository.mybatis.dao.SysAdminMapper; +import jj.tech.paolu.repository.mybatis.dao.support.CertificateApplyRecordDynamicSqlSupport; +import jj.tech.paolu.repository.mybatis.dao.support.SysAdminDynamicSqlSupport; +import jj.tech.paolu.repository.mybatis.dao.support.SysAdminRoleDynamicSqlSupport; +import jj.tech.paolu.repository.mybatis.entity.CertificateApplyRecord; +import jj.tech.paolu.repository.mybatis.entity.SysAdmin; +import org.apache.commons.collections.CollectionUtils; +import org.apache.commons.lang3.StringUtils; +import org.mybatis.dynamic.sql.SqlBuilder; +import org.mybatis.dynamic.sql.render.RenderingStrategies; +import org.mybatis.dynamic.sql.select.render.DefaultSelectStatementProvider; +import org.mybatis.dynamic.sql.select.render.SelectStatementProvider; +import org.mybatis.dynamic.sql.where.WhereApplier; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; + +import jj.tech.paolu.biz.webadmin.dao.TreeMapper; +import jj.tech.paolu.biz.webadmin.vo.OrgTree; +import jj.tech.paolu.repository.mybatis.dao.SysOrgMapper; +import jj.tech.paolu.repository.mybatis.entity.SysOrg; + +import static org.mybatis.dynamic.sql.SqlBuilder.*; + +@Service +public class OrgService { + @Autowired SysOrgMapper sysOrgMapper; + @Autowired TreeMapper treeMapper; + + @Autowired + SysAdminMapper sysAdminMapper; + + + public SysAdmin getOrganizationAdmin(String orgId){ + SysAdmin bean = + sysAdminMapper.selectOne(s->s + .where(SysAdminDynamicSqlSupport.org_id, isEqualTo(orgId)) + .and(SysAdminDynamicSqlSupport.type, isEqualTo(UserType.ORG_ADMIN.getCode())) + .limit(1) + ).orElse(null); + return bean; + + } + + public SysOrg getCompanyOfUser(String userId){ + SysAdmin user = sysAdminMapper.selectByPrimaryKey(userId).get(); + if(user==null){ + throw new RuntimeException("根据userId:"+userId+"无法找到用户"); + } + return getCompanyOfUser(user); + } + + public SysOrg getCompanyOfUser(SysAdmin user){ + return getCompany(user.getOrg_id()); + } + + /** + * 查询某一个部门所属的公司 + * @param orgId + * @return + */ + public SysOrg getCompany(String orgId){ + List fathers = allFarter(orgId); + if(fathers.size()>0){ + return fathers.getLast(); + } + else{ + throw new RuntimeException("根据orgId:"+orgId+"找不到部门组织信息"); + } + } + + /** + * 返回org_id的所有父以上的节点,包括自身 + * @param org_id + * @return + */ + public List allFarter(String org_id) { + String select_sql = + """ + WITH RECURSIVE temp_org AS + ( + SELECT * + FROM sys_org sun + WHERE id = '%s' + UNION + SELECT p.* FROM temp_org + INNER JOIN sys_org AS p + ON temp_org.pid = p.id + ) SELECT * FROM temp_org + """; + String sql = String.format(select_sql, org_id); + + SelectStatementProvider provider = DefaultSelectStatementProvider + .withSelectStatement(sql) + .build(); + + //所有父组织 + List orgs = sysOrgMapper.selectMany(provider); + return orgs; + } + + + public List allFarterTree(String org_id) { + String select_sql = + """ + WITH RECURSIVE temp_org AS + ( + SELECT * + FROM sys_org sun + WHERE id = '%s' + UNION + SELECT p.* FROM temp_org + INNER JOIN sys_org AS p + ON temp_org.pid = p.id + ) SELECT * FROM temp_org + """; + String sql = String.format(select_sql, org_id); + + SelectStatementProvider provider = DefaultSelectStatementProvider + .withSelectStatement(sql) + .build(); + + //所有父组织 + List list = treeMapper.selectManyOrg(provider); + return list; + } + + + public List allSon(String org_id) { + String select_sql = + """ + WITH RECURSIVE temp_org AS + ( + SELECT * + FROM sys_org sun + WHERE id = '%s' + UNION + SELECT p.* FROM temp_org + INNER JOIN sys_org AS p + ON temp_org.id = p.pid + ) SELECT * FROM temp_org + """; + String sql = String.format(select_sql, org_id); + + SelectStatementProvider provider = DefaultSelectStatementProvider + .withSelectStatement(sql) + .build(); + + //所有父组织 + List orgs = sysOrgMapper.selectMany(provider); + return orgs; + } + + public List allSonTree(String org_id) { + String select_sql = + """ + WITH RECURSIVE temp_org AS + ( + SELECT * + FROM sys_org sun + WHERE id = '%s' + UNION + SELECT p.* FROM temp_org + INNER JOIN sys_org AS p + ON temp_org.id = p.pid + ) SELECT * FROM temp_org + """; + String sql = String.format(select_sql, org_id); + + SelectStatementProvider provider = DefaultSelectStatementProvider + .withSelectStatement(sql) + .build(); + + //所有父组织 + List list = treeMapper.selectManyOrg(provider); + return list; + } + +} diff --git a/src/main/java/jj/tech/paolu/biz/webadmin/service/SharedService.java b/src/main/java/jj/tech/paolu/biz/webadmin/service/SharedService.java new file mode 100644 index 0000000..ff35902 --- /dev/null +++ b/src/main/java/jj/tech/paolu/biz/webadmin/service/SharedService.java @@ -0,0 +1,793 @@ +//package jj.tech.paolu.biz.webadmin.service; +// +//import com.alibaba.fastjson2.JSON; +//import com.fasterxml.jackson.databind.ObjectMapper; +//import jj.tech.paolu.bcn.model.bo.*; +//import jj.tech.paolu.bcn.service.ArchivesFileService; +//import jj.tech.paolu.bcn.service.CatalogService; +//import jj.tech.paolu.bcn.service.FileService; +//import jj.tech.paolu.bcn.service.ProviderService; +//import jj.tech.paolu.biz.webadmin.dao.SelectMapper; +//import jj.tech.paolu.config.enums.SharedConfigStatus; +//import jj.tech.paolu.config.enums.SharedStatus; +//import jj.tech.paolu.config.enums.SynStatus; +//import jj.tech.paolu.config.enums.SynType; +//import jj.tech.paolu.repository.mybatis.dao.SharedSynAllMapper; +//import jj.tech.paolu.repository.mybatis.dao.SynDirectoryFileMapper; +//import jj.tech.paolu.repository.mybatis.dao.SynDirectoryMapper; +//import jj.tech.paolu.repository.mybatis.dao.SynFileMapper; +//import jj.tech.paolu.repository.mybatis.dao.support.SharedSynAllDynamicSqlSupport; +//import jj.tech.paolu.repository.mybatis.dao.support.SynDirectoryDynamicSqlSupport; +//import jj.tech.paolu.repository.mybatis.dao.support.SynDirectoryFileDynamicSqlSupport; +//import jj.tech.paolu.repository.mybatis.dao.support.SynFileDynamicSqlSupport; +//import jj.tech.paolu.repository.mybatis.entity.*; +//import org.apache.commons.collections.CollectionUtils; +//import org.apache.commons.lang3.ObjectUtils; +//import org.apache.commons.lang3.StringUtils; +//import org.fisco.bcos.sdk.model.TransactionReceipt; +//import org.fisco.bcos.sdk.transaction.model.dto.CallResponse; +//import org.fisco.bcos.sdk.transaction.model.dto.TransactionResponse; +//import org.mybatis.dynamic.sql.render.RenderingStrategies; +//import org.mybatis.dynamic.sql.select.render.DefaultSelectStatementProvider; +//import org.mybatis.dynamic.sql.select.render.SelectStatementProvider; +//import org.slf4j.Logger; +//import org.slf4j.LoggerFactory; +//import org.springframework.beans.factory.annotation.Value; +//import org.springframework.stereotype.Service; +//import org.springframework.transaction.annotation.Transactional; +// +//import javax.annotation.PostConstruct; +//import javax.annotation.Resource; +//import java.math.BigInteger; +//import java.time.LocalDateTime; +//import java.time.ZoneOffset; +//import java.time.format.DateTimeFormatter; +//import java.util.*; +//import java.util.stream.Collectors; +// +//import static org.mybatis.dynamic.sql.SqlBuilder.*; +// +///** +// * 目录分享服务 +// */ +//@Service +//public class SharedService { +// private static final Logger logger = LoggerFactory.getLogger(SharedService.class); +// /** +// * 链上表前缀 +// */ +// public static String TABLE_PREFIX; +// +// @Value("${system.publicKeyAddress}") +// private String publicKeyAddress; +// @Resource +// private ProviderService providerService; +// @Resource +// private SharedSynAllMapper sharedSynAllMapper; +// @Resource +// private SynDirectoryMapper synDirectoryMapper; +// @Resource +// private SelectMapper selectMapper; +// @Resource +// private SynDirectoryFileMapper synDirectoryFileMapper; +// @Resource +// private SynFileMapper synFileMapper; +// @Resource +// private CatalogService catalogService; +// @Resource +// private ArchivesFileService archivesFileService; +// @Resource +// private FileService fileService; +// @Resource +// private ObjectMapper objectMapper; +// +// @PostConstruct +// public void init() { +// //查找当前用户链上表前缀 +// CallResponse callResponse = null; +// try { +// callResponse = providerService.selectPrefixByAddr(new ProviderSelectPrefixByAddrInputBO(publicKeyAddress)); +// if (callResponse.getReturnObject() != null) { +// TABLE_PREFIX = callResponse.getReturnObject().getFirst().toString(); +// } +// } catch (Exception e) { +// throw new RuntimeException(e); +// } +// } +// +// +// /** +// * 上链数据 +// * +// * @return +// */ +// public Object share(String id) throws Exception { +// Optional sharedSynAllOptional = sharedSynAllMapper.selectByPrimaryKey(id); +// if (sharedSynAllOptional.isEmpty()) { +// return null; +// } +// SharedSynAll sharedSynAll = sharedSynAllOptional.get(); +// if (sharedSynAll.getSyn_status() != null && sharedSynAll.getSyn_status().equals(SynStatus.SYN.getCode())) { +// return null; +// } +// +// //需要上链的目录数据列表 +// if (sharedSynAll.getSyn_type().equals(SynType.DIR.getCode())) { +// if (sharedSynAll.getIs_config_rule().equals(SharedConfigStatus.DELETE.getCode())) { +// //目录下的所有子元素都下链 +// downDirChildBcn(sharedSynAll.getSyn_id()); +// //下链 +// downDirBcn(sharedSynAll); +// } else if (handleDir(sharedSynAll)) { +// //上链 +// upDirBcn(sharedSynAll); +// } +// +// +// } +// +// +// //需要上链的目录文件数据列表 +// if (sharedSynAll.getSyn_type().equals(SynType.DIRFILE.getCode())) { +// if (sharedSynAll.getIs_config_rule().equals(SharedConfigStatus.DELETE.getCode())) { +// //目录下的所有子元素都下链 +// downFileDirChildBcn(sharedSynAll.getSyn_id()); +// //下链 +// downFileDirBcn(sharedSynAll); +// } +// if (handleDirFile(sharedSynAll)) { +// upFileDirBcn(sharedSynAll); +// } +// +// } +// +// +// //需要上链的文件数据列表 +// if (sharedSynAll.getSyn_type().equals(SynType.FILE.getCode())) { +// if (sharedSynAll.getIs_config_rule().equals(SharedConfigStatus.DELETE.getCode())) { +// //目录下的所有子元素都下链 +// downFileChildBcn(sharedSynAll.getSyn_id()); +// //下链 +// downFileBcn(sharedSynAll); +// } +// if (handleFile(sharedSynAll)) { +// upFileBcn(sharedSynAll); +// } +// } +// sharedSynAll.setSyn_status(SynStatus.SYN.getCode()); +// return sharedSynAllMapper.updateByPrimaryKey(sharedSynAll); +// } +// +// /** +// * 目录下的所有子元素都下链 +// * +// * @param synId +// */ +// private void downDirChildBcn(String synId) throws Exception { +// +// //所有子分类目录ids +// ArrayList dirIds = new ArrayList<>(); +// selectChildDirBcn(synId, dirIds); +// +// //所有子文件目录ids +// ArrayList fileDirIds = new ArrayList<>(); +// for (String dirId : dirIds) { +// selectChildFileDirBcn(dirId, fileDirIds); +// } +// +// //所有子文件ids +// ArrayList fileIds = new ArrayList<>(); +// for (String fileDirId : fileDirIds) { +// selectChildFileBcn(fileDirId, fileIds); +// } +// +// //下链顺序,先文件,文件目录,目录 +// FileRemoveInputBO bo = new FileRemoveInputBO(); +// bo.setFile_id(fileIds); +// fileService.remove(bo); +// +// ArchivesFileRemoveInputBO abo = new ArchivesFileRemoveInputBO(); +// abo.setArchives_file_id(fileDirIds); +// archivesFileService.remove(abo); +// +// for (String id : dirIds) { +// CatalogRemoveInputBO cbo = new CatalogRemoveInputBO(); +// cbo.setCatalog_id(id); +// catalogService.remove(cbo); +// } +// +// +// } +// +// /** +// * 文件目录下的所有子元素都下链 +// * +// * @param synId +// */ +// private void downFileDirChildBcn(String synId) throws Exception { +// +// //所有子文件目录ids +// ArrayList fileDirIds = new ArrayList<>(); +// selectChildFileDirBcn(synId.toString(), fileDirIds); +// +// //所有子文件ids +// ArrayList fileIds = new ArrayList<>(); +// for (String id : fileDirIds) { +// selectChildFileBcn(id, fileIds); +// } +// +// //下链顺序,先文件,文件目录,目录 +// FileRemoveInputBO bo = new FileRemoveInputBO(); +// bo.setFile_id(fileIds); +// fileService.remove(bo); +// +// ArchivesFileRemoveInputBO abo = new ArchivesFileRemoveInputBO(); +// abo.setArchives_file_id(fileDirIds); +// archivesFileService.remove(abo); +// +// +// } +// +// /** +// * 文件目录下的所有子元素都下链 +// * +// * @param synId +// */ +// private void downFileChildBcn(String synId) { +// try { +// +// //所有子文件ids +// ArrayList fileIds = new ArrayList<>(); +// selectChildFileBcn(synId.toString(), fileIds); +// +// //下链顺序,先文件,文件目录,目录 +// FileRemoveInputBO bo = new FileRemoveInputBO(); +// bo.setFile_id(fileIds); +// fileService.remove(bo); +// +// +// } catch (Exception e) { +// logger.error("目录下链失败!{}", e.getMessage()); +// throw new RuntimeException(e); +// } +// +// +// } +// +// /** +// * 目录id在链上所有子目录id(不包括下下级) +// */ +// private void selectChildDirBcn(String id, ArrayList ids) throws Exception { +// CatalogSelectByIdInputBO bo = new CatalogSelectByIdInputBO(); +// bo.setTable_prefix(TABLE_PREFIX); +// bo.setId(id.toString()); +// CallResponse select = null; +// +// select = catalogService.selectById(bo); +// ArrayList> arrayList = objectMapper.readValue(select.getValues(), ArrayList.class); +// for (ArrayList list : arrayList) { +// for (ArrayList l : list) { +// ids.add(l.get(0).toString()); +// selectChildDirBcn(l.get(0).toString(), ids); +// } +// +// } +// +// +// } +// +// /** +// * 目录id在链上所有文件目录id +// * +// * @param id 目录id +// */ +// private void selectChildFileDirBcn(String id, ArrayList ids) throws Exception { +// ArchivesFileSelectByCatalogIdInputBO bo = new ArchivesFileSelectByCatalogIdInputBO(); +// bo.setTable_prefix(TABLE_PREFIX); +// bo.setCatalog_id(id); +// CallResponse select = null; +// +// select = archivesFileService.selectByCatalogId(bo); +// ArrayList> arrayList = objectMapper.readValue(select.getValues(), ArrayList.class); +// arrayList.forEach(list -> { +// list.forEach(l -> { +// ids.add(l.get(0).toString()); +// }); +// +// }); +// +// } +// +// /** +// * 文件目录id在链上所有文件id +// * +// * @param id 文件目录id +// */ +// private void selectChildFileBcn(String id, ArrayList ids) throws Exception { +// FileSelectByCatalogIdInputBO bo = new FileSelectByCatalogIdInputBO(); +// bo.setTable_prefix(TABLE_PREFIX); +// bo.setArchive_file_id(id); +// CallResponse select = null; +// select = fileService.selectByCatalogId(bo); +// ArrayList> arrayList = objectMapper.readValue(select.getValues(), ArrayList.class); +// arrayList.forEach(list -> { +// list.forEach(l -> { +// ids.add(l.get(0).toString()); +// }); +// +// }); +// +// } +// +// +// /** +// * 共享目录:解析出哪些可以上链 +// * +// * @return +// */ +// public Boolean handleDir(SharedSynAll sharedSynAll) { +// if (ObjectUtils.isEmpty(sharedSynAll)) { +// return false; +// } +// //查询所有文件目录id的父类,包含自己本身 +// String select_sql = +// """ +// WITH RECURSIVE temp_cet AS +// ( +// SELECT * +// FROM syn_directory sun +// WHERE id IN (%s) +// UNION +// SELECT p.* FROM temp_cet +// INNER JOIN syn_directory AS p +// ON temp_cet.p_id = p.id +// ) SELECT id FROM temp_cet +// """; +// String sql = String.format(select_sql, StringUtils.join(List.of("'"+sharedSynAll.getId()+"'"), ',')); +// +// SelectStatementProvider provider = DefaultSelectStatementProvider +// .withSelectStatement(sql) +// .build(); +// +// List all_dir_ids = selectMapper.selectList(provider); +// Boolean isShare = true; +// for (String id : all_dir_ids) { +// Optional sharedSynAllOptional = sharedSynAllMapper.selectByPrimaryKey(id); +// if (sharedSynAllOptional.isPresent()) { +// SharedSynAll sharedSyn = sharedSynAllOptional.get(); +// //已配置(下级需要全选) +// if (sharedSyn.getIs_config_rule().equals(SharedConfigStatus.ADDAll)) { +// if (selectAllByDir(sharedSyn.getSyn_id()).equals(false)) { +// isShare = false; +// break; +// } +// } +// //已禁用 +// if (sharedSyn.getIs_config_rule().equals(SharedConfigStatus.DELETE)) { +// isShare = false; +// break; +// } +// } +// } +// return isShare; +// } +// +// /** +// * 判断目录下级是否有全选 +// */ +// public Boolean selectAllByDir(String id) { +// //获取全部下级目录 +// var sql = select(SynDirectoryMapper.selectList) +// .from(SynDirectoryDynamicSqlSupport.synDirectory) +// .applyWhere(whereFinisher -> whereFinisher.and(SynDirectoryDynamicSqlSupport.p_id, isEqualTo(id))) +// .build().render(RenderingStrategies.MYBATIS3); +// List synDirectories = synDirectoryMapper.selectMany(sql); +// //没有下级目录(出口) +// if (CollectionUtils.isEmpty(synDirectories)) { +// long count = sharedSynAllMapper.count(c -> c.applyWhere(whereFinisher -> whereFinisher +// .and(SharedSynAllDynamicSqlSupport.syn_id, isEqualTo(id)) +// .and(SharedSynAllDynamicSqlSupport.syn_type, isEqualTo(SynType.DIR.getCode())) +// .and(SharedSynAllDynamicSqlSupport.is_config_rule, isIn(SharedConfigStatus.DELETE.getCode(), SharedConfigStatus.NULL.getCode())) +// )); +// if (count > 0) { +// return false; +// } +// //叶目录下判断文件目录下级是否全选 +// //获取全部文件目录ids +// var fileDirSql = select(SynDirectoryFileDynamicSqlSupport.id) +// .from(SynDirectoryFileDynamicSqlSupport.synDirectoryFile) +// .applyWhere(whereFinisher -> whereFinisher.and(SynDirectoryFileDynamicSqlSupport.p_id, isEqualTo(id))) +// .build().render(RenderingStrategies.MYBATIS3); +// List synDirectoryFiles = synDirectoryFileMapper.selectMany(fileDirSql); +// Boolean selectAll = true; +// for (SynDirectoryFile synDirectoryFile : synDirectoryFiles) { +// if (!selectAllByFileDir(synDirectoryFile.getId())) { +// selectAll = false; +// break; +// } +// } +// return selectAll; +// +// } else { +// Boolean selectAll = true; +// for (SynDirectory synDirectorie : synDirectories) { +// if (!selectAllByDir(synDirectorie.getId())) { +// selectAll = false; +// break; +// } +// } +// return selectAll; +// } +// } +// +// /** +// * 判断文件目录下级是否有全选 +// */ +// public Boolean selectAllByFileDir(String id) { +// //当前文件目录 +// var fileDirSql = select(SharedSynAllMapper.selectList) +// .from(SharedSynAllDynamicSqlSupport.sharedSynAll) +// .applyWhere(whereFinisher -> whereFinisher +// .and(SharedSynAllDynamicSqlSupport.syn_type, isEqualTo(SynType.DIRFILE.getCode())) +// .and(SharedSynAllDynamicSqlSupport.syn_id, isEqualTo(id)) +// .and(SharedSynAllDynamicSqlSupport.is_config_rule, isIn(SharedConfigStatus.ADDAll.getCode(), SharedConfigStatus.ADDPART.getCode())) +// ) +// .limit(1) +// .build().render(RenderingStrategies.MYBATIS3); +// +// Optional sharedSynAllOptional = sharedSynAllMapper.selectOne(fileDirSql); +// if (sharedSynAllOptional.isEmpty()) { +// return false; +// } +// +// //查找目录下所有的文件id +// var fileSql = select(SynFileDynamicSqlSupport.id) +// .from(SynFileDynamicSqlSupport.synFile) +// .applyWhere(whereFinisher -> whereFinisher +// .and(SynFileDynamicSqlSupport.p_id, isEqualTo(id)) +// ) +// .build().render(RenderingStrategies.MYBATIS3); +// List ids = synFileMapper.selectMany(fileSql).stream().map(SynFile::getId).collect(Collectors.toList()); +// long count = sharedSynAllMapper.count(c -> c.applyWhere(whereFinisher -> whereFinisher +// .and(SharedSynAllDynamicSqlSupport.is_config_rule, isIn(SharedConfigStatus.ADDAll.getCode(), SharedConfigStatus.ADDPART.getCode())) +// .and(SharedSynAllDynamicSqlSupport.syn_type, isEqualTo(SynType.FILE.getCode())) +// .and(SharedSynAllDynamicSqlSupport.syn_id, isIn(ids)) +// )); +// return count == ids.size(); +// +// } +// +// +// /** +// * 共享目录文件:解析出哪些可以上链 +// * +// * @return +// */ +// public Boolean handleDirFile(SharedSynAll sharedSynAll) { +// //禁止 +// if (sharedSynAll.getIs_config_rule().equals(SharedConfigStatus.DELETE.getCode())) { +// return false; +// } +// //父级 +// Optional synDirectoryFileOpt = synDirectoryFileMapper.selectByPrimaryKey(sharedSynAll.getSyn_id()); +// if (synDirectoryFileOpt.isEmpty()) { +// return false; +// } +// SynDirectoryFile synDirectoryFile = synDirectoryFileOpt.get(); +// +// SharedSynAll sharedSynAllBySynId = getSharedSynAllBySynId(synDirectoryFile.getP_id()); +// if (sharedSynAllBySynId != null) { +// Boolean dirBool = handleDir(sharedSynAllBySynId); +// if (dirBool.equals(false)) { +// return false; +// } +// } +// +// +// //全选 +// if (sharedSynAll.getIs_config_rule().equals(SharedConfigStatus.ADDAll.getCode())) { +// Boolean fileDirBool = selectAllByFileDir(sharedSynAll.getSyn_id()); +// return !fileDirBool.equals(false); +// } +// +// return true; +// +// } +// +// /** +// * 共享文件:解析出哪些可以上链 +// * +// * @return +// */ +// public Boolean handleFile(SharedSynAll sharedSynAll) { +// //禁止 +// if (sharedSynAll.getIs_config_rule().equals(SharedConfigStatus.DELETE.getCode())) { +// return false; +// } +// //父级 +// Optional synFileOpt = synFileMapper.selectByPrimaryKey(sharedSynAll.getSyn_id()); +// if (synFileOpt.isEmpty()) { +// return false; +// } +// SynFile synFile = synFileOpt.get(); +// +// SharedSynAll sharedSynAllBySynId = getSharedSynAllBySynId(synFile.getP_id()); +// if (sharedSynAllBySynId != null) { +// Boolean dirBool = handleDirFile(sharedSynAllBySynId); +// return !dirBool.equals(false); +// } +// return true; +// } +// +// +// /** +// * 根据syn_id获取sharedSynAll +// */ +// public SharedSynAll getSharedSynAllBySynId(String synId) { +// Optional sharedSynAllOptional = sharedSynAllMapper.selectOne(c -> c.applyWhere(whereFinisher -> whereFinisher +// .and(SharedSynAllDynamicSqlSupport.syn_id, isEqualTo(synId)))); +// if (sharedSynAllOptional.isPresent()) { +// return sharedSynAllOptional.get(); +// } +// return null; +// } +// +// public Object getTest(Long id) { +//// try { +//// ArrayList ids = new ArrayList<>(); +//// selectChildFileBcn(id.toString(), ids); +//// System.out.println(ids); +//// } catch (Exception e) { +//// throw new RuntimeException(e); +//// } +// return TABLE_PREFIX; +// } +// +// public BigInteger getNowTime() { +// return BigInteger.valueOf(LocalDateTime.now().toInstant(ZoneOffset.of("+8")).toEpochMilli()); +// } +// +// /** +// * 目录上链 +// */ +// public void upDirBcn(SharedSynAll sharedSynAll) { +// Optional synDirectoryOpt = synDirectoryMapper.selectByPrimaryKey(sharedSynAll.getSyn_id()); +// if (synDirectoryOpt.isPresent()) { +// SynDirectory synDirectory = synDirectoryOpt.get(); +// CatalogInsertInputBO bo = new CatalogInsertInputBO(); +// try { +// bo.setCreate_time(getNowTime()); +// bo.setId(sharedSynAll.getSyn_id().toString()); +// bo.setUpdate_time(getNowTime()); +// bo.setParent_id(synDirectory.getP_id().toString()); +// bo.setOther_params(objectMapper.writeValueAsString(synDirectory)); +// TransactionResponse insert = catalogService.insert(bo); +// List returnObject = insert.getReturnObject(); +// if (CollectionUtils.isEmpty(returnObject)) { +// throw new RuntimeException(); +// } +// TransactionReceipt transactionReceipt = insert.getTransactionReceipt(); +// sharedSynAll.setShared_status(SharedStatus.SUCESS.getCode()); +// sharedSynAll.setBlock_hash(transactionReceipt.getBlockHash()); +// sharedSynAll.setBlock_number(Integer.parseInt(transactionReceipt.getBlockNumber().substring(2), 16) + ""); +// sharedSynAll.setBlock_time(LocalDateTime.now().format(DateTimeFormatter.ISO_LOCAL_DATE_TIME)); +// +// } catch (Exception e) { +// logger.error("目录上链失败!{}", e.getMessage()); +// throw new RuntimeException(e); +// } +// } +// +// } +// +// /** +// * 目录下链 +// */ +// public void downDirBcn(SharedSynAll sharedSynAll) { +// Optional synDirectoryOpt = synDirectoryMapper.selectByPrimaryKey(sharedSynAll.getSyn_id()); +// if (synDirectoryOpt.isPresent()) { +// CatalogRemoveInputBO bo = new CatalogRemoveInputBO(); +// try { +// bo.setCatalog_id(sharedSynAll.getSyn_id().toString()); +// TransactionResponse remove = catalogService.remove(bo); +// List returnObject = remove.getReturnObject(); +// if (CollectionUtils.isEmpty(returnObject)) { +// throw new RuntimeException(); +// } +// TransactionReceipt transactionReceipt = remove.getTransactionReceipt(); +// sharedSynAll.setShared_status(SharedStatus.INIT.getCode()); +// sharedSynAll.setBlock_hash(transactionReceipt.getBlockHash()); +// sharedSynAll.setBlock_number(Integer.parseInt(transactionReceipt.getBlockNumber().substring(2), 16) + ""); +// sharedSynAll.setBlock_time(LocalDateTime.now().format(DateTimeFormatter.ISO_LOCAL_DATE_TIME)); +// } catch (Exception e) { +// logger.error("目录下链失败!{}", e.getMessage()); +// throw new RuntimeException(e); +// } +// } +// } +// +// /** +// * 文件目录上链 +// */ +// public void upFileDirBcn(SharedSynAll sharedSynAll) { +// Optional synDirectoryFileOpt = synDirectoryFileMapper.selectByPrimaryKey(sharedSynAll.getSyn_id()); +// if (synDirectoryFileOpt.isPresent()) { +// SynDirectoryFile synDirectoryFile = synDirectoryFileOpt.get(); +// ArchivesFileInsertInputBO bo = new ArchivesFileInsertInputBO(); +// try { +// bo.setId(sharedSynAll.getSyn_id().toString()); +// bo.setCatalog_id(synDirectoryFile.getP_id().toString()); +// //字符类型属性 +//// List attStrNames = new ArrayList<>(); +//// List attStrValues = new ArrayList<>(); +//// attStrNames.add("code"); +//// attStrValues.add(synDirectoryFile.getCode()); +//// attStrNames.add("name"); +//// attStrValues.add(synDirectoryFile.getName()); +//// attStrNames.add("author"); +//// attStrValues.add(synDirectoryFile.getAuthor()); +//// attStrNames.add("file_date"); +//// attStrValues.add(synDirectoryFile.getFile_date()); +//// attStrNames.add("archives_code"); +//// attStrValues.add(synDirectoryFile.getArchives_code()); +//// attStrNames.add("other_params"); +//// attStrValues.add(""); +//// attStrNames.add("url"); +//// attStrValues.add(synDirectoryFile.getUrl()); +//// +//// //int类型属性 +//// List attIntNames = new ArrayList<>(); +//// List attIntValues = new ArrayList<>(); +//// attIntNames.add("index"); +//// attIntValues.add(BigInteger.valueOf(Optional.ofNullable(synDirectoryFile.getSort()).orElse(0))); +//// attIntNames.add("audit_status"); +//// attIntValues.add(BigInteger.valueOf(Optional.ofNullable(synDirectoryFile.getAudit_status()).orElse(0))); +//// attIntNames.add("archives_index"); +//// attIntValues.add(BigInteger.valueOf(Optional.ofNullable(synDirectoryFile.getArchives_index()).orElse(0))); +//// attIntNames.add("page_count"); +//// attIntValues.add(BigInteger.valueOf(Optional.ofNullable(synDirectoryFile.getPage_count()).orElse(0))); +//// attIntNames.add("create_time"); +//// attIntValues.add(getNowTime()); +//// attIntNames.add("update_time"); +//// attIntValues.add(getNowTime()); +//// +//// bo.setStr_attr_name(attStrNames); +//// bo.setStr_attr_value(attStrValues); +//// bo.setInt_attr_name(attIntNames); +//// bo.setInt_attr_value(attIntValues); +//// +//// TransactionResponse insert = archivesFileService.insert(bo); +//// List returnObject = insert.getReturnObject(); +//// if (CollectionUtils.isEmpty(returnObject)) { +//// throw new RuntimeException(); +//// } +//// TransactionReceipt transactionReceipt = insert.getTransactionReceipt(); +// sharedSynAll.setShared_status(SharedStatus.SUCESS.getCode()); +//// sharedSynAll.setBlock_hash(transactionReceipt.getBlockHash()); +//// sharedSynAll.setBlock_number(Integer.parseInt(transactionReceipt.getBlockNumber().substring(2), 16) + ""); +// sharedSynAll.setBlock_time(LocalDateTime.now().format(DateTimeFormatter.ISO_LOCAL_DATE_TIME)); +// } catch (Exception e) { +// logger.error("文件目录上链失败!{}", e.getMessage()); +// throw new RuntimeException(e); +// } +// } +// +// } +// +// /** +// * 文件目录下链 +// */ +// public void downFileDirBcn(SharedSynAll sharedSynAll) { +// Optional synDirectoryFileOpt = synDirectoryFileMapper.selectByPrimaryKey(sharedSynAll.getId()); +// if (synDirectoryFileOpt.isPresent()) { +// ArchivesFileRemoveInputBO bo = new ArchivesFileRemoveInputBO(); +// try { +// bo.setArchives_file_id(List.of(sharedSynAll.getId().toString())); +// TransactionResponse remove = archivesFileService.remove(bo); +// List returnObject = remove.getReturnObject(); +// if (CollectionUtils.isEmpty(returnObject)) { +// throw new RuntimeException(); +// } +// TransactionReceipt transactionReceipt = remove.getTransactionReceipt(); +// sharedSynAll.setShared_status(SharedStatus.INIT.getCode()); +// sharedSynAll.setBlock_hash(transactionReceipt.getBlockHash()); +// sharedSynAll.setBlock_number(Integer.parseInt(transactionReceipt.getBlockNumber().substring(2), 16) + ""); +// sharedSynAll.setBlock_time(LocalDateTime.now().format(DateTimeFormatter.ISO_LOCAL_DATE_TIME)); +// } catch (Exception e) { +// logger.error("文件目录下链失败!{}", e.getMessage()); +// throw new RuntimeException(e); +// } +// } +// } +// +// /** +// * 文件上链 +// */ +// public void upFileBcn(SharedSynAll sharedSynAll) { +// Optional synFileOpt = synFileMapper.selectByPrimaryKey(sharedSynAll.getSyn_id()); +// if (synFileOpt.isPresent()) { +// SynFile synFile = synFileOpt.get(); +// FileInsertInputBO bo = new FileInsertInputBO(); +// try { +// bo.setId(sharedSynAll.getSyn_id().toString()); +// bo.setArchive_file_id(synFile.getP_id().toString()); +// //字符类型属性 +//// List attStrNames = new ArrayList<>(); +//// List attStrValues = new ArrayList<>(); +//// attStrNames.add("code"); +//// attStrValues.add(synFile.getCode()); +//// attStrNames.add("name"); +//// attStrValues.add(synFile.getName()); +//// attStrNames.add("author"); +//// attStrValues.add(synFile.getAuthor()); +//// attStrNames.add("file_date"); +//// attStrValues.add(synFile.getFile_date()); +//// attStrNames.add("other_params"); +//// attStrValues.add(""); +//// attStrNames.add("url"); +//// attStrValues.add(synFile.getUrl()); +//// +//// //int类型属性 +//// List attIntNames = new ArrayList<>(); +//// List attIntValues = new ArrayList<>(); +//// attIntNames.add("index"); +//// attIntValues.add(BigInteger.valueOf(Optional.ofNullable(synFile.getSort()).orElse(0))); +//// attIntNames.add("file_size"); +//// attIntValues.add(BigInteger.valueOf(Optional.ofNullable(synFile.getFile_size()).orElse(0))); +//// attIntNames.add("page_count"); +//// attIntValues.add(BigInteger.valueOf(Optional.ofNullable(synFile.getPage_count()).orElse(0))); +//// attIntNames.add("create_time"); +//// attIntValues.add(getNowTime()); +//// attIntNames.add("update_time"); +//// attIntValues.add(getNowTime()); +//// +//// bo.setStr_attr_name(attStrNames); +//// bo.setStr_attr_value(attStrValues); +//// bo.setInt_attr_name(attIntNames); +//// bo.setInt_attr_value(attIntValues); +//// TransactionResponse insert = fileService.insert(bo); +//// List returnObject = insert.getReturnObject(); +//// if (CollectionUtils.isEmpty(returnObject)) { +//// throw new RuntimeException(); +//// } +//// TransactionReceipt transactionReceipt = insert.getTransactionReceipt(); +// sharedSynAll.setShared_status(SharedStatus.SUCESS.getCode()); +//// sharedSynAll.setBlock_hash(transactionReceipt.getBlockHash()); +//// sharedSynAll.setBlock_number(Integer.parseInt(transactionReceipt.getBlockNumber().substring(2), 16) + ""); +// sharedSynAll.setBlock_time(LocalDateTime.now().format(DateTimeFormatter.ISO_LOCAL_DATE_TIME)); +// } catch (Exception e) { +// logger.error("文件目录上链失败!{}", e.getMessage()); +// throw new RuntimeException(e); +// } +// } +// +// } +// +// /** +// * 文件下链 +// */ +// public void downFileBcn(SharedSynAll sharedSynAll) { +// Optional synFileOpt = synFileMapper.selectByPrimaryKey(sharedSynAll.getSyn_id()); +// if (synFileOpt.isPresent()) { +// FileRemoveInputBO bo = new FileRemoveInputBO(); +// try { +// bo.setFile_id(List.of(sharedSynAll.getSyn_id().toString())); +// TransactionResponse remove = fileService.remove(bo); +// List returnObject = remove.getReturnObject(); +// if (CollectionUtils.isEmpty(returnObject)) { +// throw new RuntimeException(); +// } +// TransactionReceipt transactionReceipt = remove.getTransactionReceipt(); +// sharedSynAll.setShared_status(SharedStatus.INIT.getCode()); +// sharedSynAll.setBlock_hash(transactionReceipt.getBlockHash()); +// sharedSynAll.setBlock_number(Integer.parseInt(transactionReceipt.getBlockNumber().substring(2), 16) + ""); +// sharedSynAll.setBlock_time(LocalDateTime.now().format(DateTimeFormatter.ISO_LOCAL_DATE_TIME)); +// } catch (Exception e) { +// logger.error("文件目录下链失败!{}", e.getMessage()); +// throw new RuntimeException(e); +// } +// } +// } +// +//} +// diff --git a/src/main/java/jj/tech/paolu/biz/webadmin/service/SuperSysAdminComponent.java b/src/main/java/jj/tech/paolu/biz/webadmin/service/SuperSysAdminComponent.java new file mode 100644 index 0000000..4c2bea0 --- /dev/null +++ b/src/main/java/jj/tech/paolu/biz/webadmin/service/SuperSysAdminComponent.java @@ -0,0 +1,31 @@ +package jj.tech.paolu.biz.webadmin.service; + +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; + +import jj.tech.paolu.config.enums.UserType; +import jj.tech.paolu.repository.mybatis.dao.SysAdminMapper; +import jj.tech.paolu.repository.mybatis.entity.SysAdmin; +@Service +public class SuperSysAdminComponent { + public static String id="1"; + + @Autowired + SysAdminMapper sysAdminMapper; + + + + public static boolean isSystemAdmin(SysAdmin user){ + return user.getId().equalsIgnoreCase(id); + } + + public boolean isOrganizationAdmin(SysAdmin user){ + return user.getType().equals(UserType.ORG_ADMIN.getCode()); + + } + + public SysAdmin getSystemAdminUser(){ + return sysAdminMapper.selectByPrimaryKey("1").get(); + } + +} diff --git a/src/main/java/jj/tech/paolu/biz/webadmin/service/SysAdminWeidService.java b/src/main/java/jj/tech/paolu/biz/webadmin/service/SysAdminWeidService.java new file mode 100644 index 0000000..ad91dc6 --- /dev/null +++ b/src/main/java/jj/tech/paolu/biz/webadmin/service/SysAdminWeidService.java @@ -0,0 +1,32 @@ +package jj.tech.paolu.biz.webadmin.service; + +import jj.tech.paolu.repository.mybatis.dao.SysAdminMapper; +import jj.tech.paolu.repository.mybatis.dao.SysAdminWeidMapper; +import jj.tech.paolu.repository.mybatis.dao.support.SysAdminWeidDynamicSqlSupport; +import jj.tech.paolu.repository.mybatis.entity.SysAdminWeid; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; + +import static org.mybatis.dynamic.sql.SqlBuilder.isEqualTo; + +@Service +public class SysAdminWeidService { + @Autowired + SysAdminMapper sysAdminMapper; + + @Autowired + SysAdminWeidMapper sysAdminWeidMapper; + + public SysAdminWeid selectByUserId(String userId){ + SysAdminWeid bean = + sysAdminWeidMapper.selectOne(s->s + .where(SysAdminWeidDynamicSqlSupport.admin_id, isEqualTo(userId)) + .limit(1) + ).orElse(null); + return bean; + } + + public int deleteByUserId(String userId){ + return sysAdminWeidMapper.delete(s->s.where(SysAdminWeidDynamicSqlSupport.admin_id, isEqualTo(userId))); + } +} diff --git a/src/main/java/jj/tech/paolu/biz/webadmin/vo/AddAdminRoleMenuVo.java b/src/main/java/jj/tech/paolu/biz/webadmin/vo/AddAdminRoleMenuVo.java new file mode 100644 index 0000000..09582fb --- /dev/null +++ b/src/main/java/jj/tech/paolu/biz/webadmin/vo/AddAdminRoleMenuVo.java @@ -0,0 +1,33 @@ +package jj.tech.paolu.biz.webadmin.vo; + +import java.util.List; + +import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.validation.constraints.NotBlank; +import jakarta.validation.constraints.NotEmpty; + +public class AddAdminRoleMenuVo { + @NotBlank + @Schema(description = "角色id") + private String role_id; + + @NotEmpty + @Schema(description = "菜单ids") + private List menu_ids; + + public String getRole_id() { + return role_id; + } + + public void setRole_id(String role_id) { + this.role_id = role_id; + } + + public List getMenu_ids() { + return menu_ids; + } + + public void setMenu_ids(List menu_ids) { + this.menu_ids = menu_ids; + } +} diff --git a/src/main/java/jj/tech/paolu/biz/webadmin/vo/AdminListVo.java b/src/main/java/jj/tech/paolu/biz/webadmin/vo/AdminListVo.java new file mode 100644 index 0000000..e5af239 --- /dev/null +++ b/src/main/java/jj/tech/paolu/biz/webadmin/vo/AdminListVo.java @@ -0,0 +1,120 @@ +package jj.tech.paolu.biz.webadmin.vo; + +import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.validation.constraints.NotBlank; + +import java.util.List; + +public class AdminListVo extends PageVo{ + @NotBlank(message = "用户名不能为空") + @Schema(description = "用户名") + public String username; + + @NotBlank(message = "密码不能为空") + @Schema(description = "登录密码") + public String password; + + @Schema(description = "真实姓名") + public String realname; + + @Schema(description = "手机") + private String phone; + + @Schema(description = "0正常,1锁定") + public Integer islock; + + @Schema(description = "用户类型,0普通用户,1企业管理员") + public Integer type; + + @Schema(description = "组织id") + private String org_id; + + @Schema(description = "性别") + public Integer gender; + + @Schema(description = "职位") + public String job; + + @Schema(description = "角色id") + public List rolesId; + + public String getPhone() { + return phone; + } + + public void setPhone(String phone) { + this.phone = phone; + } + + public String getOrg_id() { + return org_id; + } + + public void setOrg_id(String org_id) { + this.org_id = org_id; + } + + public String getUsername() { + return username; + } + + public void setUsername(String username) { + this.username = username; + } + + public String getPassword() { + return password; + } + + public void setPassword(String password) { + this.password = password; + } + + public String getRealname() { + return realname; + } + + public void setRealname(String realname) { + this.realname = realname; + } + + public Integer getIslock() { + return islock; + } + + public void setIslock(Integer islock) { + this.islock = islock; + } + + public Integer getType() { + return type; + } + + public void setType(Integer type) { + this.type = type; + } + + public Integer getGender() { + return gender; + } + + public void setGender(Integer gender) { + this.gender = gender; + } + + public String getJob() { + return job; + } + + public void setJob(String job) { + this.job = job; + } + + public List getRolesId() { + return rolesId; + } + + public void setRolesId(List rolesId) { + this.rolesId = rolesId; + } +} diff --git a/src/main/java/jj/tech/paolu/biz/webadmin/vo/Id.java b/src/main/java/jj/tech/paolu/biz/webadmin/vo/Id.java new file mode 100644 index 0000000..7bd4f8d --- /dev/null +++ b/src/main/java/jj/tech/paolu/biz/webadmin/vo/Id.java @@ -0,0 +1,18 @@ +package jj.tech.paolu.biz.webadmin.vo; + +import jakarta.validation.constraints.NotNull; + +public class Id { + @NotNull(message = "id不能为空") + public String id; + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + +} diff --git a/src/main/java/jj/tech/paolu/biz/webadmin/vo/IdPageVo.java b/src/main/java/jj/tech/paolu/biz/webadmin/vo/IdPageVo.java new file mode 100644 index 0000000..b685430 --- /dev/null +++ b/src/main/java/jj/tech/paolu/biz/webadmin/vo/IdPageVo.java @@ -0,0 +1,16 @@ +package jj.tech.paolu.biz.webadmin.vo; + +import jakarta.validation.constraints.NotBlank; + +public class IdPageVo extends PageVo{ + @NotBlank(message = "id不能为空") + public String id; + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } +} diff --git a/src/main/java/jj/tech/paolu/biz/webadmin/vo/Ids.java b/src/main/java/jj/tech/paolu/biz/webadmin/vo/Ids.java new file mode 100644 index 0000000..64960a9 --- /dev/null +++ b/src/main/java/jj/tech/paolu/biz/webadmin/vo/Ids.java @@ -0,0 +1,21 @@ +package jj.tech.paolu.biz.webadmin.vo; + +import java.util.ArrayList; +import java.util.List; + +import jakarta.validation.constraints.NotNull; + +public class Ids { + @NotNull + public List ids = new ArrayList(); + + public List getIds() { + return ids; + } + + public void setIds(List ids) { + this.ids = ids; + } + + +} diff --git a/src/main/java/jj/tech/paolu/biz/webadmin/vo/IdsAndPwd.java b/src/main/java/jj/tech/paolu/biz/webadmin/vo/IdsAndPwd.java new file mode 100644 index 0000000..cff4ecf --- /dev/null +++ b/src/main/java/jj/tech/paolu/biz/webadmin/vo/IdsAndPwd.java @@ -0,0 +1,22 @@ +package jj.tech.paolu.biz.webadmin.vo; + +import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.validation.constraints.NotBlank; + +public class IdsAndPwd extends Ids{ + + @NotBlank(message = "旧密码不能为空") + @Schema(description = "旧密码") + public String password; + + + + public String getPassword() { + return password; + } + + public void setPassword(String password) { + this.password = password; + } + +} diff --git a/src/main/java/jj/tech/paolu/biz/webadmin/vo/IdsAndPwdUpdate.java b/src/main/java/jj/tech/paolu/biz/webadmin/vo/IdsAndPwdUpdate.java new file mode 100644 index 0000000..f8fedcd --- /dev/null +++ b/src/main/java/jj/tech/paolu/biz/webadmin/vo/IdsAndPwdUpdate.java @@ -0,0 +1,48 @@ +package jj.tech.paolu.biz.webadmin.vo; + +import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.validation.constraints.NotBlank; + +public class IdsAndPwdUpdate { + + @NotBlank(message = "旧密码不能为空") + @Schema(description = "旧密码") + public String password; + + @NotBlank(message = "新密码不能为空") + @Schema(description = "新密码") + public String newpassword; + + @NotBlank(message = "验证码不能为空") + @Schema(description = "验证码") + public String captcha; + + public String getPassword() { + return password; + } + + public void setPassword(String password) { + this.password = password; + } + + public String getNewpassword() { + return newpassword; + } + + public void setNewpassword(String newpassword) { + this.newpassword = newpassword; + } + + public String getCaptcha() { + return captcha; + } + + public void setCaptcha(String captcha) { + this.captcha = captcha; + } + + + + + +} diff --git a/src/main/java/jj/tech/paolu/biz/webadmin/vo/IdsPageVo.java b/src/main/java/jj/tech/paolu/biz/webadmin/vo/IdsPageVo.java new file mode 100644 index 0000000..dadd125 --- /dev/null +++ b/src/main/java/jj/tech/paolu/biz/webadmin/vo/IdsPageVo.java @@ -0,0 +1,19 @@ +package jj.tech.paolu.biz.webadmin.vo; + +import java.util.ArrayList; +import java.util.List; + +import jakarta.validation.constraints.NotNull; + +public class IdsPageVo extends PageVo{ + @NotNull + public List ids = new ArrayList(); + + public List getIds() { + return ids; + } + + public void setIds(List ids) { + this.ids = ids; + } +} diff --git a/src/main/java/jj/tech/paolu/biz/webadmin/vo/LoginVo.java b/src/main/java/jj/tech/paolu/biz/webadmin/vo/LoginVo.java new file mode 100644 index 0000000..1b27a52 --- /dev/null +++ b/src/main/java/jj/tech/paolu/biz/webadmin/vo/LoginVo.java @@ -0,0 +1,48 @@ +package jj.tech.paolu.biz.webadmin.vo; + +import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.validation.constraints.NotBlank; + +public class LoginVo { + @NotBlank(message = "用户名不能为空") + @Schema(description = "用户名") + public String username; + + @NotBlank(message = "密码不能为空") + @Schema(description = "登录密码") + public String password; + + @NotBlank(message = "验证码不能为空") + @Schema(description = "验证码") + public String captcha; + + + public String getUsername() { + return username; + } + + public void setUsername(String username) { + this.username = username; + } + + public String getPassword() { + return password; + } + + public void setPassword(String password) { + this.password = password; + } + + public String getCaptcha() { + return captcha; + } + + public void setCaptcha(String captcha) { + this.captcha = captcha; + } + + + + + +} diff --git a/src/main/java/jj/tech/paolu/biz/webadmin/vo/MenuTree.java b/src/main/java/jj/tech/paolu/biz/webadmin/vo/MenuTree.java new file mode 100644 index 0000000..6ea0b1b --- /dev/null +++ b/src/main/java/jj/tech/paolu/biz/webadmin/vo/MenuTree.java @@ -0,0 +1,36 @@ +package jj.tech.paolu.biz.webadmin.vo; + +import java.util.ArrayList; +import java.util.List; + +import jj.tech.paolu.repository.mybatis.entity.SysMenu; + +public class MenuTree extends SysMenu{ + + private List children; + + public MenuTree() { + } + + public void addChild(MenuTree child) { + if(children==null) { + children = new ArrayList(); + } + children.add(child); + } + + + + + public List getChildren() { + return children; + } + + public void setChildren(List children) { + this.children = children; + } + + + + +} diff --git a/src/main/java/jj/tech/paolu/biz/webadmin/vo/OrgTree.java b/src/main/java/jj/tech/paolu/biz/webadmin/vo/OrgTree.java new file mode 100644 index 0000000..6931e88 --- /dev/null +++ b/src/main/java/jj/tech/paolu/biz/webadmin/vo/OrgTree.java @@ -0,0 +1,40 @@ +package jj.tech.paolu.biz.webadmin.vo; + +import java.util.ArrayList; +import java.util.List; + +import jj.tech.paolu.repository.mybatis.entity.SysOrg; + +public class OrgTree extends SysOrg { + private List children; + private Integer isSelect = 0; + + public OrgTree() { + } + + public void addChild(OrgTree child) { + if(children==null) { + children = new ArrayList(); + } + children.add(child); + } + + + public List getChildren() { + return children; + } + + public void setChildren(List children) { + this.children = children; + } + + public Integer getIsSelect() { + return isSelect; + } + + public void setIsSelect(Integer isSelect) { + this.isSelect = isSelect; + } + + +} diff --git a/src/main/java/jj/tech/paolu/biz/webadmin/vo/PageVo.java b/src/main/java/jj/tech/paolu/biz/webadmin/vo/PageVo.java new file mode 100644 index 0000000..a6dc74f --- /dev/null +++ b/src/main/java/jj/tech/paolu/biz/webadmin/vo/PageVo.java @@ -0,0 +1,21 @@ +package jj.tech.paolu.biz.webadmin.vo; + +public class PageVo { + public Integer pageNum=1; + public Integer pageSize=10; + + public Integer getPageNum() { + return pageNum; + } + public void setPageNum(Integer pageNum) { + this.pageNum = pageNum; + } + public Integer getPageSize() { + return pageSize; + } + public void setPageSize(Integer pageSize) { + this.pageSize = pageSize; + } + + +} diff --git a/src/main/java/jj/tech/paolu/biz/webadmin/vo/ReadLogVo.java b/src/main/java/jj/tech/paolu/biz/webadmin/vo/ReadLogVo.java new file mode 100644 index 0000000..160198d --- /dev/null +++ b/src/main/java/jj/tech/paolu/biz/webadmin/vo/ReadLogVo.java @@ -0,0 +1,15 @@ +package jj.tech.paolu.biz.webadmin.vo; + +import jj.tech.paolu.repository.mybatis.entity.ReadLog; + +public class ReadLogVo extends ReadLog { + private long timestamp; + + public long getTimestamp() { + return timestamp; + } + + public void setTimestamp(long timestamp) { + this.timestamp = timestamp; + } +} diff --git a/src/main/java/jj/tech/paolu/biz/webadmin/vo/SysAdminAddVo.java b/src/main/java/jj/tech/paolu/biz/webadmin/vo/SysAdminAddVo.java new file mode 100644 index 0000000..5d3022d --- /dev/null +++ b/src/main/java/jj/tech/paolu/biz/webadmin/vo/SysAdminAddVo.java @@ -0,0 +1,21 @@ +package jj.tech.paolu.biz.webadmin.vo; + +import java.util.ArrayList; +import java.util.List; + +import jj.tech.paolu.repository.mybatis.entity.SysAdmin; + +public class SysAdminAddVo extends SysAdmin{ + public List role_ids = new ArrayList();; + + + public List getRole_ids() { + return role_ids; + } + + public void setRole_ids(List role_ids) { + this.role_ids = role_ids; + } + + +} diff --git a/src/main/java/jj/tech/paolu/biz/webadmin/vo/SysAdminLock.java b/src/main/java/jj/tech/paolu/biz/webadmin/vo/SysAdminLock.java new file mode 100644 index 0000000..4643727 --- /dev/null +++ b/src/main/java/jj/tech/paolu/biz/webadmin/vo/SysAdminLock.java @@ -0,0 +1,31 @@ +package jj.tech.paolu.biz.webadmin.vo; + +import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.validation.constraints.NotBlank; +import jakarta.validation.constraints.NotNull; + +public class SysAdminLock { + @Schema(description = "id") + @NotBlank + private String id; + + @Schema(description = "状态,1启用,0禁用") + @NotNull + private Integer isLock; + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public Integer getIsLock() { + return isLock; + } + + public void setIsLock(Integer isLock) { + this.isLock = isLock; + } +} diff --git a/src/main/java/jj/tech/paolu/biz/webadmin/vo/SysAdminRoleVo.java b/src/main/java/jj/tech/paolu/biz/webadmin/vo/SysAdminRoleVo.java new file mode 100644 index 0000000..dfa4e80 --- /dev/null +++ b/src/main/java/jj/tech/paolu/biz/webadmin/vo/SysAdminRoleVo.java @@ -0,0 +1,30 @@ +package jj.tech.paolu.biz.webadmin.vo; + +import io.swagger.v3.oas.annotations.media.Schema; +import jj.tech.paolu.repository.mybatis.entity.SysAdminRole; + +import java.util.List; + +public class SysAdminRoleVo { + + @Schema(description = "管理员id") + private String adminid; + @Schema(description = "角色集合") + private List sysAdminRoles; + + public String getAdminid() { + return adminid; + } + + public void setAdminid(String adminid) { + this.adminid = adminid; + } + + public List getSysAdminRoles() { + return sysAdminRoles; + } + + public void setSysAdminRoles(List sysAdminRoles) { + this.sysAdminRoles = sysAdminRoles; + } +} diff --git a/src/main/java/jj/tech/paolu/biz/webadmin/vo/SysRoleListVo.java b/src/main/java/jj/tech/paolu/biz/webadmin/vo/SysRoleListVo.java new file mode 100644 index 0000000..7fa1a4f --- /dev/null +++ b/src/main/java/jj/tech/paolu/biz/webadmin/vo/SysRoleListVo.java @@ -0,0 +1,44 @@ +package jj.tech.paolu.biz.webadmin.vo; + +import jakarta.validation.constraints.NotBlank; + +public class SysRoleListVo extends PageVo{ + + public Long id; +// @NotBlank(message = "角色名称不能为空") + public String rolename; + public String describe; + public Integer is_open; + + + public Long getId() { + return id; + } + public void setId(Long id) { + this.id = id; + } + public String getRolename() { + return rolename; + } + public void setRolename(String rolename) { + this.rolename = rolename; + } + public String getDescribe() { + return describe; + } + public void setDescribe(String describe) { + this.describe = describe; + } + public Integer getIs_open() { + return is_open; + } + public void setIs_open(Integer is_open) { + this.is_open = is_open; + } + + + + + + +} diff --git a/src/main/java/jj/tech/paolu/config/datasource/DataSourceConfig.java b/src/main/java/jj/tech/paolu/config/datasource/DataSourceConfig.java new file mode 100644 index 0000000..1ccc5f1 --- /dev/null +++ b/src/main/java/jj/tech/paolu/config/datasource/DataSourceConfig.java @@ -0,0 +1,64 @@ +package jj.tech.paolu.config.datasource; + +import org.springframework.boot.autoconfigure.condition.ConditionalOnClass; +import org.springframework.boot.autoconfigure.jdbc.DataSourceProperties; +import org.springframework.context.annotation.Bean; +import org.springframework.context.annotation.Configuration; +import org.springframework.context.annotation.Primary; + +import com.zaxxer.hikari.HikariDataSource; + +/** + * 定义除spring提供的默认数据源以外的,自定义数据源 + * 参考: https://docs.spring.io/spring-boot/docs/current/reference/htmlsingle/#howto.data-access.configure-two-datasources + * https://github.com/spring-projects/spring-boot/issues/20814 + * https://github.com/spring-projects/spring-boot/issues/13325 + * @author Dou + */ +@Configuration(proxyBeanMethods=false) +public class DataSourceConfig { + + + + @Bean + @Primary + @ConditionalOnClass(HikariDataSource.class) + //@ConfigurationProperties("spring.datasource") + HikariDataSource dataSource(DataSourceProperties properties) { + + return (HikariDataSource) properties.initializeDataSourceBuilder() + .type(HikariDataSource.class).build(); + } + +// /** +// * 数据库名称url:需要改成jdbc-url,其他名称值和spring默认的一样 +// * 就可以自动注入 +// */ +// @Bean("dataSource2") +// @ConfigurationProperties("app.datasource") +// public HikariDataSource dataSource2() { +// return (HikariDataSource) DataSourceBuilder.create() +// .type(HikariDataSource.class).build(); +// } + + + +// /** +// * @p DataSourceProperties +// * @p 如果没有 显示的提供 url 用户名、密码; 创建一个默认的嵌入式的数据库 +// * @p 并提供url/jdbcUrl的转化 +// * @p @EnableConfigurationProperties(DataSourceProperties.class),这个注解可以不用加,因为 +// * spring 在初始化 DataSourceAutoConfiguration的时候,会初始化DataSourceProperties这个类到spring上下文 +// */ +// @Bean +// @Primary +// @ConfigurationProperties("spring.datasource") +// public DataSourceProperties dataSourceProperties() { +// return new DataSourceProperties(); +// } + + + + + +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/config/enums/ArchiveSynLocalProcessType.java b/src/main/java/jj/tech/paolu/config/enums/ArchiveSynLocalProcessType.java new file mode 100644 index 0000000..6ac2388 --- /dev/null +++ b/src/main/java/jj/tech/paolu/config/enums/ArchiveSynLocalProcessType.java @@ -0,0 +1,20 @@ +package jj.tech.paolu.config.enums; + +/** + * 电子档案系统同步数据后本地的处理类型 + * 因为使用isDel字段来标记是否删除,因此没有删除类型 + */ +public enum ArchiveSynLocalProcessType{ + INSERT( 1), + UPDATE(2); + + private final int code; + + ArchiveSynLocalProcessType(int code) { + this.code = code; + } + + public int getCode() { + return code; + } +} diff --git a/src/main/java/jj/tech/paolu/config/enums/CertificateApplyCheckStatus.java b/src/main/java/jj/tech/paolu/config/enums/CertificateApplyCheckStatus.java new file mode 100644 index 0000000..3388e53 --- /dev/null +++ b/src/main/java/jj/tech/paolu/config/enums/CertificateApplyCheckStatus.java @@ -0,0 +1,18 @@ +package jj.tech.paolu.config.enums; + +public enum CertificateApplyCheckStatus { + WAIT(0), //待审核 + PASS(1), //审核通过 + NO_PASS(-1), //审核不通过 + All(null) //全部 + ; + + private Integer code; + + CertificateApplyCheckStatus(Integer code) { + this.code=code; + } + public Integer getCode() { + return code; + } +} diff --git a/src/main/java/jj/tech/paolu/config/enums/CertificateApplyStatus.java b/src/main/java/jj/tech/paolu/config/enums/CertificateApplyStatus.java new file mode 100644 index 0000000..2800630 --- /dev/null +++ b/src/main/java/jj/tech/paolu/config/enums/CertificateApplyStatus.java @@ -0,0 +1,21 @@ +package jj.tech.paolu.config.enums; + +public enum CertificateApplyStatus { + WAIT(0), //待审核 + PASS(1), //审核通过 + NO_PASS(2), //审核不通过 + DOWNLOAD(3), //已下载 + All(null), //全部 + ISSUED(4)//已颁发 + ; + + + private Integer code; + + CertificateApplyStatus(Integer code) { + this.code=code; + } + public Integer getCode() { + return code; + } +} diff --git a/src/main/java/jj/tech/paolu/config/enums/CertificateApplyType.java b/src/main/java/jj/tech/paolu/config/enums/CertificateApplyType.java new file mode 100644 index 0000000..c13fd04 --- /dev/null +++ b/src/main/java/jj/tech/paolu/config/enums/CertificateApplyType.java @@ -0,0 +1,26 @@ +package jj.tech.paolu.config.enums; + +public enum CertificateApplyType { + + apply(1,"证书申请"), + unsubscribe(2,"证书注销"), +// lost(3,"证书挂失"), +// change(4,"证书变更"), + ; + + + private Integer code; + private String name; + + CertificateApplyType(Integer code, String name) { + this.code=code; + this.name=name; + } + + public Integer getCode() { + return code; + } + public String getName() { + return name; + } +} diff --git a/src/main/java/jj/tech/paolu/config/enums/CertificateDetailStatus.java b/src/main/java/jj/tech/paolu/config/enums/CertificateDetailStatus.java new file mode 100644 index 0000000..cb7ab09 --- /dev/null +++ b/src/main/java/jj/tech/paolu/config/enums/CertificateDetailStatus.java @@ -0,0 +1,20 @@ +package jj.tech.paolu.config.enums; + +public enum CertificateDetailStatus { + no_work(0), //待审核 + work(1), //生效 + unsubscribe(2), //注销 + expired(3), //过期 + All(null) //全部 + ; + + + private Integer code; + + CertificateDetailStatus(Integer code) { + this.code=code; + } + public Integer getCode() { + return code; + } +} diff --git a/src/main/java/jj/tech/paolu/config/enums/CertificateOrgApplyType.java b/src/main/java/jj/tech/paolu/config/enums/CertificateOrgApplyType.java new file mode 100644 index 0000000..b16d6a9 --- /dev/null +++ b/src/main/java/jj/tech/paolu/config/enums/CertificateOrgApplyType.java @@ -0,0 +1,27 @@ +package jj.tech.paolu.config.enums; + +public enum CertificateOrgApplyType { + + + //组织申请业务类型 + settlein(1,"组织机构入驻"), + generate(2,"生成组织机构证书公钥"), + cancel(3,"组织证书注销") + ; + + + private Integer code; + private String name; + + CertificateOrgApplyType(Integer code, String name) { + this.code=code; + this.name=name; + } + + public Integer getCode() { + return code; + } + public String getName() { + return name; + } +} diff --git a/src/main/java/jj/tech/paolu/config/enums/DelStatus.java b/src/main/java/jj/tech/paolu/config/enums/DelStatus.java new file mode 100644 index 0000000..09b74a1 --- /dev/null +++ b/src/main/java/jj/tech/paolu/config/enums/DelStatus.java @@ -0,0 +1,20 @@ +package jj.tech.paolu.config.enums; + +/** + * 档案的删除状态 + */ + +public enum DelStatus { + IS_DEL((int) 1), NOT_DEL((int) 0); + + private final int code; + + DelStatus(int code) { + this.code = code; + } + + public int getCode() { + return code; + } + +} diff --git a/src/main/java/jj/tech/paolu/config/enums/ExecuteStatus.java b/src/main/java/jj/tech/paolu/config/enums/ExecuteStatus.java new file mode 100644 index 0000000..1591600 --- /dev/null +++ b/src/main/java/jj/tech/paolu/config/enums/ExecuteStatus.java @@ -0,0 +1,23 @@ +package jj.tech.paolu.config.enums; + +/** + * 任务的运行状态 + */ + +public enum ExecuteStatus { + SUCCESS( 1), EXECUTING(2), + WAIT_EXECUTE(3), + FAIL(4); + + private final int code; + + ExecuteStatus(int code) { + this.code = code; + } + + public int getCode() { + return code; + } + +} + diff --git a/src/main/java/jj/tech/paolu/config/enums/FilesApplyStatus.java b/src/main/java/jj/tech/paolu/config/enums/FilesApplyStatus.java new file mode 100644 index 0000000..2eb4020 --- /dev/null +++ b/src/main/java/jj/tech/paolu/config/enums/FilesApplyStatus.java @@ -0,0 +1,20 @@ +package jj.tech.paolu.config.enums; + +public enum FilesApplyStatus { + SAVE(1), //草稿 + CANCEL(2), //取消 + CHECK_ING(3), //审核中 + CHECK_EDN(4), //审核通过 + CHECK_FAILED(5), //审核不通过 + FINISH(6) //结束 + ; + + private Integer code; + + FilesApplyStatus(Integer code) { + this.code=code; + } + public Integer getCode() { + return code; + } +} diff --git a/src/main/java/jj/tech/paolu/config/enums/FilesCheckStatus.java b/src/main/java/jj/tech/paolu/config/enums/FilesCheckStatus.java new file mode 100644 index 0000000..5329347 --- /dev/null +++ b/src/main/java/jj/tech/paolu/config/enums/FilesCheckStatus.java @@ -0,0 +1,19 @@ +package jj.tech.paolu.config.enums; + +public enum FilesCheckStatus { + + WAIT(0), //待审核 + PASS(1), //审核通过 + NO_PASS(-1), //审核不通过 + All(null) //全部 + ; + + private Integer code; + + FilesCheckStatus(Integer code) { + this.code=code; + } + public Integer getCode() { + return code; + } +} diff --git a/src/main/java/jj/tech/paolu/config/enums/FilesProperties.java b/src/main/java/jj/tech/paolu/config/enums/FilesProperties.java new file mode 100644 index 0000000..cbfabbe --- /dev/null +++ b/src/main/java/jj/tech/paolu/config/enums/FilesProperties.java @@ -0,0 +1,20 @@ +package jj.tech.paolu.config.enums; + +/** + * 文件属性 + */ +public enum FilesProperties { + normal(1), //一般 + important(2), //重要 + veryImportant(3) //密集 + ; + + private Integer code; + + FilesProperties(Integer code) { + this.code=code; + } + public Integer getCode() { + return code; + } +} diff --git a/src/main/java/jj/tech/paolu/config/enums/FilesViewType.java b/src/main/java/jj/tech/paolu/config/enums/FilesViewType.java new file mode 100644 index 0000000..f3e1a45 --- /dev/null +++ b/src/main/java/jj/tech/paolu/config/enums/FilesViewType.java @@ -0,0 +1,17 @@ +package jj.tech.paolu.config.enums; + +public enum FilesViewType { + LOOK(1), //查看 + PRINT(2), //打印 + + ; + + private int code; + + FilesViewType(int code) { + this.code=code; + } + public int getCode() { + return code; + } +} diff --git a/src/main/java/jj/tech/paolu/config/enums/IsApplyProvider.java b/src/main/java/jj/tech/paolu/config/enums/IsApplyProvider.java new file mode 100644 index 0000000..172d4d6 --- /dev/null +++ b/src/main/java/jj/tech/paolu/config/enums/IsApplyProvider.java @@ -0,0 +1,17 @@ +package jj.tech.paolu.config.enums; + +public enum IsApplyProvider { + Apply(0), //申请方 + Provider(1), //提供方 + + ; + + private int code; + + IsApplyProvider(int code) { + this.code=code; + } + public int getCode() { + return code; + } +} diff --git a/src/main/java/jj/tech/paolu/config/enums/RoleSign.java b/src/main/java/jj/tech/paolu/config/enums/RoleSign.java new file mode 100644 index 0000000..d8361c7 --- /dev/null +++ b/src/main/java/jj/tech/paolu/config/enums/RoleSign.java @@ -0,0 +1,25 @@ +package jj.tech.paolu.config.enums; +//角色标签 +public enum RoleSign { + + DepartmentHead("1","部门负责人"), //部门负责人 + EnterpriseHead("2","企业负责人"), //企业负责人 + ArchivesManagementCenter("3","档案管理中心"), //档案管理中心负责人 + LeaderTeam("4","分管领导"), //分管领导 + LeaderCharge("5","班子领导") //领导班子 + ; + + private String code; + private String name; + + RoleSign(String code, String name) { + this.code=code; + this.name=name; + } + public String getCode() { + return code; + } + public String getName() { + return name; + } +} diff --git a/src/main/java/jj/tech/paolu/config/enums/RoleSignName.java b/src/main/java/jj/tech/paolu/config/enums/RoleSignName.java new file mode 100644 index 0000000..8f475ba --- /dev/null +++ b/src/main/java/jj/tech/paolu/config/enums/RoleSignName.java @@ -0,0 +1,5 @@ +package jj.tech.paolu.config.enums; + +public class RoleSignName { + +} diff --git a/src/main/java/jj/tech/paolu/config/enums/SharedConfigStatus.java b/src/main/java/jj/tech/paolu/config/enums/SharedConfigStatus.java new file mode 100644 index 0000000..5eec746 --- /dev/null +++ b/src/main/java/jj/tech/paolu/config/enums/SharedConfigStatus.java @@ -0,0 +1,20 @@ +package jj.tech.paolu.config.enums; + +public enum SharedConfigStatus { + + ADDAll(1), //已配置(下级需要全选),完全共享 + ADDPART(2), //已配置部分(下级不需要全选),部分共享 + NULL(null), //初始化禁用 + DELETE(-1); //已禁用,不共享 + + + private Integer code; + + SharedConfigStatus(Integer code) { + this.code=code; + } + public Integer getCode() { + return code; + } + +} diff --git a/src/main/java/jj/tech/paolu/config/enums/SharedStatus.java b/src/main/java/jj/tech/paolu/config/enums/SharedStatus.java new file mode 100644 index 0000000..68e3428 --- /dev/null +++ b/src/main/java/jj/tech/paolu/config/enums/SharedStatus.java @@ -0,0 +1,21 @@ +package jj.tech.paolu.config.enums; + +/** + * 共享的执行状态,即是否上链 + */ +public enum SharedStatus { + + + INIT(1), //未共享 + WAIT(2), //待共享发布 + SUCESS(3); //已共享 + + private Integer code; + + SharedStatus(Integer code) { + this.code=code; + } + public int getCode() { + return code; + } +} diff --git a/src/main/java/jj/tech/paolu/config/enums/SynStatus.java b/src/main/java/jj/tech/paolu/config/enums/SynStatus.java new file mode 100644 index 0000000..a5e41ea --- /dev/null +++ b/src/main/java/jj/tech/paolu/config/enums/SynStatus.java @@ -0,0 +1,16 @@ +package jj.tech.paolu.config.enums; + +public enum SynStatus { + WAIT_SYN(0), SYN(1),EXECUTING(2); + + private final Integer code; + + SynStatus(Integer code) { + this.code = code; + } + + public Integer getCode() { + return code; + } + +} diff --git a/src/main/java/jj/tech/paolu/config/enums/SynType.java b/src/main/java/jj/tech/paolu/config/enums/SynType.java new file mode 100644 index 0000000..415b851 --- /dev/null +++ b/src/main/java/jj/tech/paolu/config/enums/SynType.java @@ -0,0 +1,16 @@ +package jj.tech.paolu.config.enums; + +public enum SynType { + + DIR(1), DIRFILE(2), FILE(3); + + private int code; + + SynType(int code) { + this.code=code; + } + public int getCode() { + return code; + } + +} diff --git a/src/main/java/jj/tech/paolu/config/enums/SysConfigGroup.java b/src/main/java/jj/tech/paolu/config/enums/SysConfigGroup.java new file mode 100644 index 0000000..9a9edb8 --- /dev/null +++ b/src/main/java/jj/tech/paolu/config/enums/SysConfigGroup.java @@ -0,0 +1,11 @@ +package jj.tech.paolu.config.enums; + +public class SysConfigGroup { + public static String grup_rulenotice = "rulenotice"; + + + + public static String key_rulenotice_due = "rulenotice_due"; + + +} diff --git a/src/main/java/jj/tech/paolu/config/enums/UserType.java b/src/main/java/jj/tech/paolu/config/enums/UserType.java new file mode 100644 index 0000000..10a9f6a --- /dev/null +++ b/src/main/java/jj/tech/paolu/config/enums/UserType.java @@ -0,0 +1,18 @@ +package jj.tech.paolu.config.enums; + +/** + * 用户类型:可为企业管理员或者普通用户两种 + */ +public enum UserType { + ORG_ADMIN((int) 1), NORMAL_USER((int) 0); + + private final int code; + + UserType(int code) { + this.code = code; + } + + public int getCode() { + return code; + } +} diff --git a/src/main/java/jj/tech/paolu/config/exception/ArgumentExceptionHandler.java b/src/main/java/jj/tech/paolu/config/exception/ArgumentExceptionHandler.java new file mode 100644 index 0000000..4e99890 --- /dev/null +++ b/src/main/java/jj/tech/paolu/config/exception/ArgumentExceptionHandler.java @@ -0,0 +1,14 @@ +//package jj.tech.paolu.config.exception; +// +//import jj.tech.paolu.utils.R; +//import org.springframework.web.bind.MethodArgumentNotValidException; +//import org.springframework.web.bind.annotation.ExceptionHandler; +//import org.springframework.web.bind.annotation.RestControllerAdvice; +// +//@RestControllerAdvice +//public class ArgumentExceptionHandler { +// @ExceptionHandler(value = MethodArgumentNotValidException.class) +// public Object exceptionHandler(MethodArgumentNotValidException e) { +// return R.FALSE(e.getBindingResult().getFieldError().getDefaultMessage()); +// } +//} diff --git a/src/main/java/jj/tech/paolu/config/httpclient/RestTemplateConfig.java b/src/main/java/jj/tech/paolu/config/httpclient/RestTemplateConfig.java new file mode 100644 index 0000000..39764ec --- /dev/null +++ b/src/main/java/jj/tech/paolu/config/httpclient/RestTemplateConfig.java @@ -0,0 +1,29 @@ +package jj.tech.paolu.config.httpclient; + + +import org.springframework.context.annotation.Bean; +import org.springframework.context.annotation.Configuration; +import org.springframework.http.client.ClientHttpRequestFactory; +import org.springframework.http.client.SimpleClientHttpRequestFactory; +import org.springframework.web.client.RestTemplate; + +/** + * Created by liuxu on 2017/12/22. + * RestTemplate配置类 + */ +@Configuration +public class RestTemplateConfig { + + @Bean + public RestTemplate restTemplate(ClientHttpRequestFactory factory){ + return new RestTemplate(factory); + } + + @Bean + public ClientHttpRequestFactory simpleClientHttpRequestFactory(){ + SimpleClientHttpRequestFactory factory = new SimpleClientHttpRequestFactory(); + factory.setReadTimeout(50000);//单位为ms + factory.setConnectTimeout(50000);//单位为ms + return factory; + } +} diff --git a/src/main/java/jj/tech/paolu/config/jooq/JooqConfig.java b/src/main/java/jj/tech/paolu/config/jooq/JooqConfig.java new file mode 100644 index 0000000..686fa4c --- /dev/null +++ b/src/main/java/jj/tech/paolu/config/jooq/JooqConfig.java @@ -0,0 +1,134 @@ +package jj.tech.paolu.config.jooq; + +import javax.sql.DataSource; + +import org.jooq.ConnectionProvider; +import org.jooq.DSLContext; +import org.jooq.ExecuteListenerProvider; +import org.jooq.impl.DataSourceConnectionProvider; +import org.jooq.impl.DefaultConfiguration; +import org.jooq.impl.DefaultDSLContext; +import org.jooq.impl.DefaultExecuteListenerProvider; +import org.springframework.beans.factory.ObjectProvider; +import org.springframework.boot.autoconfigure.condition.ConditionalOnBean; +import org.springframework.boot.autoconfigure.condition.ConditionalOnClass; +import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean; +import org.springframework.boot.autoconfigure.jooq.DefaultConfigurationCustomizer; +import org.springframework.boot.autoconfigure.jooq.JooqExceptionTranslator; +import org.springframework.boot.autoconfigure.jooq.JooqProperties; +import org.springframework.boot.context.properties.EnableConfigurationProperties; +import org.springframework.context.annotation.Bean; +import org.springframework.context.annotation.Configuration; +import org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy; +import org.springframework.transaction.PlatformTransactionManager; + + +/** + * jooq使用单个jdbc链接的时候:自己不管理数据库链接开关,也不管理事物的开关,由外部管理 + * jooq使用数据源的时候:每次执行先获取一个链接,执行完毕还给连接池 + * + * @注意该类参考:spring-boot-autoconfigure自动配置jooq包下的JooqAutoConfiguration + * 源码复制直接用, 因为spring自动配置包下大多数类不是public类,只能重写 + * + * @在单数据源情况下不用配置任何东西,spring boot 默认配置非常优秀 + * 需要注意的是事务的传播特性,spring boot jooq默认是嵌入事务 + * https://blog.jooq.org/nested-transactions-in-jooq/ + * @jooq代码中写sql + * https://blog.jooq.org/using-java-13-text-blocks-for-plain-sql-with-jooq/ + * + * @关于嵌入事务: 错误只回滚自己,其他成功的所有事务都成功 + * https://stackoverflow.com/questions/6683929/propagation-nested-vs-propagation-required-in-spring + * @jooq与jpa,按作者的表述,他不愿意支持ORM + * https://github.com/jOOQ/jOOQ/issues/11685 + * @jooq与r2dbc,胶水写法,脱裤子放屁 + * https://github.com/jOOQ/jOOQ/issues/11700 + * https://github.com/jOOQ/jOOQ/tree/main/jOOQ-examples + * https://blog.jooq.org/reactive-sql-with-jooq-3-15-and-r2dbc + * @examples + * https://github.com/jOOQ/jOOQ/tree/main/jOOQ-examples + * + * @Dou 2020/8/13 + */ +@ConditionalOnClass(DSLContext.class) +@ConditionalOnBean(DataSource.class) +@EnableConfigurationProperties(JooqProperties.class) +@Configuration(proxyBeanMethods = false) +public class JooqConfig { + + /** + * 创建使用默认数据源,和spring默认嵌入式事务管理器的DSLContext + */ + @Bean + DefaultDSLContext dsl(org.jooq.Configuration configuration) { + return new DefaultDSLContext(configuration); + } + + @Bean + DefaultConfiguration jooqConfiguration( + JooqProperties properties, + DataSource dataSource, + PlatformTransactionManager txManager){ + DefaultConfiguration configuration = new DefaultConfiguration(); + configuration.set(properties.determineSqlDialect(dataSource)); + configuration.set(new DataSourceConnectionProvider(new TransactionAwareDataSourceProxy(dataSource))); + configuration.set(new JooqSpringTransactionProvider(txManager)); //spring提供的默认嵌入式事务PROPAGATION_NESTED + configuration.set(new DefaultExecuteListenerProvider(new JooqExceptionTranslator())); + return configuration; + } + + +// +// /** +// * @spring的事物管理器 +// * 如果添加spring-boot-starter-jdbc 依赖,框架会默认注入 DataSourceTransactionManager 实例 +// * 如果你添加的是 spring-boot-starter-data-jpa, 会注入 JpaTransactionManager +// * +// * @可以指定为:DataSourceTransactionManager,spring boot的自动配置没有指定,所以这里也不指定 +// * 直接指定DataSourceTransactionManager可以参考: https://www.jooq.org/doc/3.18/manual/sql-execution/transaction-management/ +// +// * @SpringTransactionProvider 已知bug,不适用于 jOOQ 的异步事务: https://github.com/jOOQ/jOOQ/issues/10850 +// * 并且r2dbc有同样的问题: https://github.com/spring-projects/spring-framework/issues/28133 +// * 可以取消SpringTransactionProvider事务管理并使用JOOP自己的事务管理解决: +// * this.dslContext = dslContext.configuration().derive((TransactionProvider) null).dsl(); +// */ +// @Bean +// JooqSpringTransactionProvider jooqSpringTransactionProvider( +// PlatformTransactionManager txManager) { +// return new JooqSpringTransactionProvider(txManager); +// } +// +// +// /** +// * jooq提供对对外的,使用外部的数据库链接,DataSourceConnectionProvider代理类 +// * 这里使用TransactionAwareDataSourceProxy 可以动态的发现spring 事物上下文transaction context +// */ +// @Bean +// DataSourceConnectionProvider dataSourceConnectionProvider( +// @Qualifier("dataSource2") DataSource dataSource2) { +// return new DataSourceConnectionProvider( +// new TransactionAwareDataSourceProxy(dataSource2)); +// } +// +// @Bean +// SQLDialect sQLDialect( +// JooqProperties properties, +// @Qualifier("dataSource2") DataSource dataSource2) { +// return properties.determineSqlDialect(dataSource2); +// } +// +// @Bean("dsl2") +// DSLContext dsl2( +// DataSourceConnectionProvider dataSourceConnectionProvider, +// SQLDialect sQLDialect, +// JooqSpringTransactionProvider jooqSpringTransactionProvider) { +// +// DefaultConfiguration config = new DefaultConfiguration(); +// config.set(sQLDialect); +// config.set(dataSourceConnectionProvider); +// config.set(jooqSpringTransactionProvider); //spring提供的默认嵌入式事务PROPAGATION_NESTED +// config.set(new DefaultExecuteListenerProvider(new JooqExceptionTranslator())); +// return new DefaultDSLContext(config); +// } + + +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/config/jooq/JooqSpringTransaction.java b/src/main/java/jj/tech/paolu/config/jooq/JooqSpringTransaction.java new file mode 100644 index 0000000..b5b446b --- /dev/null +++ b/src/main/java/jj/tech/paolu/config/jooq/JooqSpringTransaction.java @@ -0,0 +1,23 @@ +package jj.tech.paolu.config.jooq; + +import org.jooq.Transaction; +import org.springframework.transaction.TransactionStatus; + +/** + * @ 直接复制 org.springframework.boot.autoconfigure.jooq.SpringTransaction类 + * 因为不是public,只能自己写一个 + * @author Dou + */ +public class JooqSpringTransaction implements Transaction{ + // Based on the jOOQ-spring-example from https://github.com/jOOQ/jOOQ + + private final TransactionStatus transactionStatus; + + JooqSpringTransaction(TransactionStatus transactionStatus) { + this.transactionStatus = transactionStatus; + } + + TransactionStatus getTxStatus() { + return this.transactionStatus; + } +} diff --git a/src/main/java/jj/tech/paolu/config/jooq/JooqSpringTransactionProvider.java b/src/main/java/jj/tech/paolu/config/jooq/JooqSpringTransactionProvider.java new file mode 100644 index 0000000..4fb0ff3 --- /dev/null +++ b/src/main/java/jj/tech/paolu/config/jooq/JooqSpringTransactionProvider.java @@ -0,0 +1,55 @@ +package jj.tech.paolu.config.jooq; + +import org.jooq.TransactionContext; +import org.jooq.TransactionProvider; +import org.jooq.tools.JooqLogger; +import org.springframework.transaction.PlatformTransactionManager; +import org.springframework.transaction.TransactionDefinition; +import org.springframework.transaction.TransactionStatus; +import org.springframework.transaction.support.DefaultTransactionDefinition; + +/** + * 修改默认事务传播行为成:PROPAGATION_REQUIRED + * 参考 org.springframework.boot.autoconfigure.jooq.SpringTransactionProvider + * 修改TransactionDefinition.PROPAGATION_NESTED 为 PROPAGATION_REQUIRED + * @author Dou + * + */ +public class JooqSpringTransactionProvider implements TransactionProvider{ + + // Based on the jOOQ-spring-example from https://github.com/jOOQ/jOOQ + + private static final JooqLogger log = JooqLogger.getLogger(JooqSpringTransactionProvider.class); + + private final PlatformTransactionManager transactionManager; + + public JooqSpringTransactionProvider(PlatformTransactionManager transactionManager) { + this.transactionManager = transactionManager; + } + + @Override + public void begin(TransactionContext context) { + log.info("--> begin transaction --->"); + TransactionDefinition definition = new DefaultTransactionDefinition(TransactionDefinition.PROPAGATION_NESTED); //PROPAGATION_REQUIRED + TransactionStatus status = this.transactionManager.getTransaction(definition); + context.transaction(new JooqSpringTransaction(status)); + } + + @Override + public void commit(TransactionContext ctx) { + log.info("--> commit transaction --->"); + this.transactionManager.commit(getTransactionStatus(ctx)); + } + + @Override + public void rollback(TransactionContext ctx) { + log.error("<-- rollback transaction <---"); + this.transactionManager.rollback(getTransactionStatus(ctx)); + } + + private TransactionStatus getTransactionStatus(TransactionContext ctx) { + JooqSpringTransaction transaction = (JooqSpringTransaction) ctx.transaction(); + return transaction.getTxStatus(); + } + +} diff --git a/src/main/java/jj/tech/paolu/config/jpa/JpaConfig.java b/src/main/java/jj/tech/paolu/config/jpa/JpaConfig.java new file mode 100644 index 0000000..7406305 --- /dev/null +++ b/src/main/java/jj/tech/paolu/config/jpa/JpaConfig.java @@ -0,0 +1,51 @@ +//package jj.tech.paolu.config.jpa; +// +//import javax.sql.DataSource; +// +//import org.springframework.context.annotation.Bean; +//import org.springframework.context.annotation.Configuration; +//import org.springframework.data.jpa.repository.config.EnableJpaRepositories; +//import org.springframework.jdbc.datasource.embedded.EmbeddedDatabaseBuilder; +//import org.springframework.jdbc.datasource.embedded.EmbeddedDatabaseType; +//import org.springframework.orm.jpa.JpaTransactionManager; +//import org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean; +//import org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter; +//import org.springframework.transaction.PlatformTransactionManager; +///** +// * JPA多数据源配置,单一数据源由spring boot默认配置 +// * https://github.com/spring-projects/spring-data-examples/blob/main/jpa/multiple-datasources/src/main/java/example/springdata/jpa/multipleds/customer/CustomerConfig.java +// * @author Dou +// * +// */ +////@Configuration +////@EnableJpaRepositories(entityManagerFactoryRef = "customerEntityManagerFactory", +//// transactionManagerRef = "customerTransactionManager") +//public class JpaConfig { +//// @Bean +//// PlatformTransactionManager customerTransactionManager() { +//// return new JpaTransactionManager(customerEntityManagerFactory().getObject()); +//// } +//// +//// @Bean +//// LocalContainerEntityManagerFactoryBean customerEntityManagerFactory() { +//// +//// var jpaVendorAdapter = new HibernateJpaVendorAdapter(); +//// jpaVendorAdapter.setGenerateDdl(true); +//// +//// var factoryBean = new LocalContainerEntityManagerFactoryBean(); +//// +//// factoryBean.setDataSource(customerDataSource()); +//// factoryBean.setJpaVendorAdapter(jpaVendorAdapter); +//// factoryBean.setPackagesToScan(JpaConfig.class.getPackage().getName()); +//// +//// return factoryBean; +//// } +//// +//// @Bean +//// DataSource customerDataSource() { +//// return new EmbeddedDatabaseBuilder().// +//// setType(EmbeddedDatabaseType.HSQL).// +//// setName("customers").// +//// build(); +//// } +//} diff --git a/src/main/java/jj/tech/paolu/config/json/JacksonConfiguration.java b/src/main/java/jj/tech/paolu/config/json/JacksonConfiguration.java new file mode 100644 index 0000000..356bfc4 --- /dev/null +++ b/src/main/java/jj/tech/paolu/config/json/JacksonConfiguration.java @@ -0,0 +1,50 @@ +package jj.tech.paolu.config.json; + +import com.fasterxml.jackson.databind.ser.std.ToStringSerializer; +import com.fasterxml.jackson.datatype.jsr310.deser.LocalDateTimeDeserializer; +import com.fasterxml.jackson.datatype.jsr310.deser.LocalTimeDeserializer; +import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateTimeSerializer; +import com.fasterxml.jackson.datatype.jsr310.ser.LocalTimeSerializer; +import org.springframework.beans.factory.annotation.Value; +import org.springframework.boot.autoconfigure.jackson.Jackson2ObjectMapperBuilderCustomizer; +import org.springframework.context.annotation.Bean; +import org.springframework.context.annotation.Configuration; + +import java.time.format.DateTimeFormatter; + +@Configuration +public class JacksonConfiguration { + + @Value("${spring.jackson.date-format}") + public String DATETIME_FORMAT; + + /** + * LoaclTime格式化字符串 + */ + public String TIME_FORMAT = "HH:mm:ss"; + + + @Bean + public Jackson2ObjectMapperBuilderCustomizer jackson2ObjectMapperBuilderCustomizer() { + + return builder -> { + + // formatter + DateTimeFormatter dateTimeFormatter = DateTimeFormatter.ofPattern(DATETIME_FORMAT); + DateTimeFormatter timeFormatter = DateTimeFormatter.ofPattern(TIME_FORMAT); + + // deserializers + builder.deserializers(new LocalDateTimeDeserializer(dateTimeFormatter)); + builder.deserializers(new LocalTimeDeserializer(timeFormatter)); + + // serializers + builder.serializers(new LocalDateTimeSerializer(dateTimeFormatter)); + builder.serializers(new LocalTimeSerializer(timeFormatter)); + + //long + builder.serializerByType(Long.TYPE, ToStringSerializer.instance); + builder.serializerByType(Long.class, ToStringSerializer.instance); + }; + } + +} diff --git a/src/main/java/jj/tech/paolu/config/security/Cors.java b/src/main/java/jj/tech/paolu/config/security/Cors.java new file mode 100644 index 0000000..0b93a5b --- /dev/null +++ b/src/main/java/jj/tech/paolu/config/security/Cors.java @@ -0,0 +1,36 @@ +package jj.tech.paolu.config.security; + +import org.springframework.boot.web.servlet.FilterRegistrationBean; +import org.springframework.context.annotation.Bean; +import org.springframework.context.annotation.Configuration; +import org.springframework.web.cors.CorsConfiguration; +import org.springframework.web.cors.UrlBasedCorsConfigurationSource; +import org.springframework.web.filter.CorsFilter; + +@Configuration +public class Cors { + + @Bean + CorsFilter corsFilter() { + CorsConfiguration corsConfiguration = new CorsConfiguration(); + corsConfiguration.addAllowedOriginPattern("*"); +// corsConfiguration.addAllowedOrigin("file:///C:/Users/lenovo/Desktop/x.html"); +// corsConfiguration.addAllowedOrigin("http://localhost:8080"); +// corsConfiguration.addAllowedOrigin("http://localhost:80"); +// corsConfiguration.addAllowedOrigin("http://localhost:5174"); + corsConfiguration.addAllowedHeader("*"); + corsConfiguration.addAllowedMethod("*"); + corsConfiguration.setAllowCredentials(true); + UrlBasedCorsConfigurationSource source = new UrlBasedCorsConfigurationSource(); + source.registerCorsConfiguration("/**", corsConfiguration); + return new CorsFilter(source); + } + + @Bean + public FilterRegistrationBean filterRegistrationBean(CorsFilter corsFilter) { + FilterRegistrationBean bean = new FilterRegistrationBean<>(corsFilter); + bean.setOrder(1); + return bean; + } + +} diff --git a/src/main/java/jj/tech/paolu/config/security/SecurityFilter.java b/src/main/java/jj/tech/paolu/config/security/SecurityFilter.java new file mode 100644 index 0000000..129f0d4 --- /dev/null +++ b/src/main/java/jj/tech/paolu/config/security/SecurityFilter.java @@ -0,0 +1,106 @@ +package jj.tech.paolu.config.security; + + +import java.io.IOException; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; + +import org.springframework.core.Ordered; +import org.springframework.core.annotation.Order; +import org.springframework.stereotype.Component; +import org.springframework.util.AntPathMatcher; +import org.springframework.web.filter.OncePerRequestFilter; + +import jakarta.servlet.FilterChain; +import jakarta.servlet.ServletException; +import jakarta.servlet.http.HttpServletRequest; +import jakarta.servlet.http.HttpServletResponse; +import jj.tech.paolu.config.security.user.WebAdminUtil; +import jj.tech.paolu.utils.JsonUtil; + + +/** + * cors开头命名,为了使该过滤器在CorsFilter之后执行 + * @author admin + * + */ +@Component +@Order(Ordered.LOWEST_PRECEDENCE) +public class SecurityFilter extends OncePerRequestFilter { + AntPathMatcher matcher = new AntPathMatcher(); + /** + * 不需要token就能访问的url + */ + List allowUrls = Arrays.asList( + "/ws**/**", + "/ttt/**", + "/swagger-ui/index.html", "/swagger-ui/**", "/v3/**", + "/favicon.ico", + "/op/admin/login","/op/admin/logout", "/op/admin/captcha", + "/mybatis/**", + "/op/area/**", + "/op/decrypt/dec", + "/op/readlog/read", + "/op/wb/**"//微柏模拟器的相关接口 + ); + + + @Override + protected void doFilterInternal(HttpServletRequest request, HttpServletResponse response, FilterChain filterChain) throws ServletException, IOException { + // 忽略的urls + if (this.isIgnoreUrl(request.getRequestURI())) { + // 向后执行 + filterChain.doFilter(request, response); + return; + } + + // 更新token的有效时间 + Boolean verify = WebAdminUtil.verify(request, response); + if(verify == false) { + response.setStatus(HttpServletResponse.SC_UNAUTHORIZED); + this.authError(request, response); + return; + } + filterChain.doFilter(request, response); + } + + /** + * 判断当前 requestURI 是否需要token访问 + * + * @param requestURI uri + * @return + */ + protected Boolean isIgnoreUrl(String requestURI) { + for (String i : allowUrls) { + if (matcher.match(i, requestURI)) { + return true; + } + } + return false; + } + + /** + * 无token返回 + * + * @param request + * @param response + */ + protected void authError(HttpServletRequest request, HttpServletResponse response) { + //request + response.setContentType("application/json;charset=UTF-8"); + String msg = "请求访问:" + request.getRequestURI() + ",token验证失败,无法访问资源"; + HashMap map = new HashMap<>(); + map.put("code", 401); + map.put("msg", msg); + try { + response.getWriter().write(JsonUtil.writeValueAsString(map)); + } catch (Exception e) { + e.printStackTrace(); + } + } + + + + +} diff --git a/src/main/java/jj/tech/paolu/config/security/user/WebAdminUtil.java b/src/main/java/jj/tech/paolu/config/security/user/WebAdminUtil.java new file mode 100644 index 0000000..e595655 --- /dev/null +++ b/src/main/java/jj/tech/paolu/config/security/user/WebAdminUtil.java @@ -0,0 +1,113 @@ +package jj.tech.paolu.config.security.user; + + +import java.util.HashMap; + +import org.apache.commons.beanutils.BeanUtils; +import org.apache.commons.lang3.StringUtils; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.springframework.web.context.request.RequestContextHolder; +import org.springframework.web.context.request.ServletRequestAttributes; + +import com.fasterxml.jackson.databind.DeserializationFeature; +import com.fasterxml.jackson.databind.ObjectMapper; + +import jakarta.servlet.http.HttpServletRequest; +import jakarta.servlet.http.HttpServletResponse; +import jj.tech.paolu.repository.mybatis.entity.SysAdmin; +import jj.tech.paolu.utils.AES; +import jj.tech.paolu.utils.CookieUtil; + +public class WebAdminUtil { + private static Logger logger = LoggerFactory.getLogger(WebAdminUtil.class); + private static ObjectMapper objectMapper = new ObjectMapper(); + public static long exp = 5 * 60 * 60 * 1000; //过期时间5小时 + public static String WEBADMIN = "webadmin"; + + static { + objectMapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); + } + + + + @SuppressWarnings("unchecked") + public static Boolean verify(HttpServletRequest request, HttpServletResponse response) { + try { + String token = CookieUtil.fine(request, WEBADMIN); + if (StringUtils.isBlank(token)) { + return false; + } + AES aes = new AES(); + String jsonUser = aes.decrypt(token); + HashMap map = objectMapper.readValue(jsonUser, HashMap.class); +// Long logintime = (Long)map.get("logintime"); +// Long now = System.currentTimeMillis(); +// +// if(now-logintime > exp) { +// return false; +// } +// +// //大于30分钟,更新一下用户token +// if(now-logintime > 30 * 60 * 1000) { +// map.put("logintime", now); +// WebAdminUtil.addToCookie(map); +// } + + SysAdmin bean = new SysAdmin(); + BeanUtils.populate(bean, map); + request.setAttribute(WEBADMIN, bean); + return true; + } catch (Exception e) { + e.printStackTrace(); + return false; + } + } + + public static SysAdmin getUser() { + try { + ServletRequestAttributes servlet = (ServletRequestAttributes)RequestContextHolder.getRequestAttributes(); + HttpServletRequest request = servlet.getRequest(); + SysAdmin curr = (SysAdmin)request.getAttribute(WEBADMIN); + return curr; + }catch(Exception e) { + e.printStackTrace(); + logger.info(e.getMessage()); + return null; + } + } + + public static String addToCookie(Object obj) { + try { + ServletRequestAttributes servlet = (ServletRequestAttributes)RequestContextHolder.getRequestAttributes(); + HttpServletResponse response = servlet.getResponse(); + + String userJson = objectMapper.writeValueAsString(obj); + AES aes = new AES(); + String token = aes.encrypt(userJson); + CookieUtil.add(WEBADMIN, token, response); + return token; + }catch(Exception e) { + logger.info(e.getMessage()); + return null; + } + } + + public static String addUser(SysAdmin entitty) { + return addToCookie(entitty); + } + + public static void deleteUser() { + try { + ServletRequestAttributes servlet = (ServletRequestAttributes)RequestContextHolder.getRequestAttributes(); + HttpServletResponse response = servlet.getResponse(); + CookieUtil.delete(response, WEBADMIN); + }catch(Exception e) { + logger.info(e.getMessage()); + } + } + + + + +} diff --git a/src/main/java/jj/tech/paolu/config/security/user/WebUserUtil.java b/src/main/java/jj/tech/paolu/config/security/user/WebUserUtil.java new file mode 100644 index 0000000..3b0b11f --- /dev/null +++ b/src/main/java/jj/tech/paolu/config/security/user/WebUserUtil.java @@ -0,0 +1,107 @@ +//package jj.tech.paolu.config.security.user; +// +// +//import java.util.HashMap; +// +//import org.apache.commons.beanutils.BeanUtils; +//import org.apache.commons.lang3.StringUtils; +//import org.slf4j.Logger; +//import org.slf4j.LoggerFactory; +//import org.springframework.web.context.request.RequestContextHolder; +//import org.springframework.web.context.request.ServletRequestAttributes; +// +//import com.fasterxml.jackson.databind.DeserializationFeature; +//import com.fasterxml.jackson.databind.ObjectMapper; +// +//import jakarta.servlet.http.HttpServletRequest; +//import jakarta.servlet.http.HttpServletResponse; +//import jj.tech.paolu.utils.AES; +//import jj.tech.paolu.utils.CookieUtil; +// +//public class WebUserUtil { +// private static Logger logger = LoggerFactory.getLogger(WebAdminUtil.class); +// private static ObjectMapper objectMapper = new ObjectMapper(); +// public static String TOKEN = "webtoken"; +// public static long exp = 5 * 60 * 60 * 1000; //过期时间5小时 +// static { +// objectMapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); +// } +// +// +// +// @SuppressWarnings("unchecked") +// public static Boolean verify(HttpServletRequest request, HttpServletResponse response) { +// try { +// String token = CookieUtil.fine(request, TOKEN); +// if (StringUtils.isBlank(token)) { +// return false; +// } +// AES aes = new AES(); +// String jsonUser = aes.decrypt(token); +// HashMap map = objectMapper.readValue(jsonUser, HashMap.class); +// Long logintime = (Long)map.get("logintime"); +// Long now = System.currentTimeMillis(); +// +// if(now-logintime > exp) { +// return false; +// } +// +// //大于30分钟,更新一下用户token +// if(now-logintime > 30 * 60 * 1000) { +// map.put("logintime", now); +// WebUserUtil.addToCookie(map); +// } +// +// UserInfo bean = new UserInfo(); +// BeanUtils.populate(bean, map); +// request.setAttribute(TOKEN, bean); +// return true; +// } catch (Exception e) { +// e.printStackTrace(); +// return false; +// } +// } +// +// public static UserInfo getUser() { +// try { +// ServletRequestAttributes servlet = (ServletRequestAttributes)RequestContextHolder.getRequestAttributes(); +// HttpServletRequest request = servlet.getRequest(); +// UserInfo curr = (UserInfo)request.getAttribute(TOKEN); +// return curr; +// }catch(Exception e) { +// e.printStackTrace(); +// logger.info(e.getMessage()); +// return null; +// } +// } +// +// public static String addToCookie(Object obj) { +// try { +// ServletRequestAttributes servlet = (ServletRequestAttributes)RequestContextHolder.getRequestAttributes(); +// HttpServletResponse response = servlet.getResponse(); +// +// String userJson = objectMapper.writeValueAsString(obj); +// AES aes = new AES(); +// String token = aes.encrypt(userJson); +// CookieUtil.add(TOKEN, token, response); +// return token; +// }catch(Exception e) { +// logger.info(e.getMessage()); +// return null; +// } +// } +// +// public static void deleteUser() { +// try { +// ServletRequestAttributes servlet = (ServletRequestAttributes)RequestContextHolder.getRequestAttributes(); +// HttpServletResponse response = servlet.getResponse(); +// CookieUtil.delete(response, TOKEN); +// }catch(Exception e) { +// logger.info(e.getMessage()); +// } +// } +// +// +// +// +//} diff --git a/src/main/java/jj/tech/paolu/config/swagger/SwaggerConfig.java b/src/main/java/jj/tech/paolu/config/swagger/SwaggerConfig.java new file mode 100644 index 0000000..eb5d254 --- /dev/null +++ b/src/main/java/jj/tech/paolu/config/swagger/SwaggerConfig.java @@ -0,0 +1,145 @@ +package jj.tech.paolu.config.swagger; + + +import io.swagger.v3.oas.models.Components; +import io.swagger.v3.oas.models.OpenAPI; +import io.swagger.v3.oas.models.info.Info; +import io.swagger.v3.oas.models.info.License; +import io.swagger.v3.oas.models.media.Schema; +import io.swagger.v3.oas.models.security.SecurityRequirement; +import io.swagger.v3.oas.models.security.SecurityScheme; +import org.springdoc.core.models.GroupedOpenApi; +import org.springdoc.core.utils.SpringDocUtils; +import org.springframework.context.annotation.Bean; +import org.springframework.context.annotation.Configuration; +import org.springframework.context.annotation.Profile; + +import java.time.LocalTime; +import java.time.format.DateTimeFormatter; +import java.util.Collections; + +/** + * swagger配置 + * 加入分组功能(默认注释掉) + * + * @author Dou + * @date 2022/6/30 + **/ +@Configuration +public class SwaggerConfig { + + static { + Schema schema = new Schema<>(); + schema.example(LocalTime.now().format(DateTimeFormatter.ofPattern("HH:mm:ss"))); + SpringDocUtils.getConfig().replaceWithSchema(LocalTime.class, schema); + } + + @Bean + OpenAPI springShopOpenAPI() { + + SecurityScheme securityScheme = new SecurityScheme(); + securityScheme.type(SecurityScheme.Type.HTTP) + .scheme("bearer").bearerFormat("JWT") + .in(SecurityScheme.In.HEADER); + // .scheme("basic"); + + Components compoenents = new Components(); + compoenents.addSecuritySchemes("bearer-key", securityScheme); + + return new OpenAPI() + .components(compoenents) + .info(new Info().title("JJ Doc 接口文档") +// .description("Spring shop sample application") + .version("v0.0.1") + .license(new License().name("Apache 2.0").url("http://springdoc.org"))) + .security(Collections.singletonList(new SecurityRequirement().addList("bearer-key"))); + } + + + @Bean + @Profile("prod") + GroupedOpenApi prodApi(OpenAPI openAPI) { + return GroupedOpenApi.builder() + .group("user-test-api") + .pathsToMatch("/null") + .addOpenApiCustomizer(api -> { + api = openAPI; + }) + .pathsToExclude("/health/*") + .build(); + } + + + @Bean + @Profile("!prod") + GroupedOpenApi loginApi(OpenAPI openAPI) { + String paths[] = {"/op/admin/login", "/op/admin/logout", "/op/admin/captcha"}; + return GroupedOpenApi.builder() + .group("login") +// .packagesToScan("tech.bcnew.modular.authaudit.controller") + .pathsToMatch(paths) + .addOpenApiCustomizer(api -> { + api = openAPI; + }) + .pathsToExclude("/health/*") + .build(); + } + @Bean + @Profile("!prod") + GroupedOpenApi mybatisApi(OpenAPI openAPI) { + return GroupedOpenApi.builder() + .group("mybatis") + .pathsToMatch("/mybatis/**") + .addOpenApiCustomizer(api -> { + api = openAPI; + }) + .pathsToExclude("/health/*") + .build(); + } + +// @Bean +// @Profile("!prod") +// GroupedOpenApi jpaApi(OpenAPI openAPI) { +// String packagesToscan[] = {"jj.tech.paolu.repository"}; +// return GroupedOpenApi.builder() +// .group("jpa") +// .packagesToScan(packagesToscan) +// .addOpenApiCustomizer(api -> { +// api = openAPI; +// }) +// .pathsToExclude("/health/*") +// .build(); +// } + + + @Bean + @Profile("!prod") + GroupedOpenApi webApi(OpenAPI openAPI) { + return GroupedOpenApi.builder() + .group("web") + .pathsToMatch("/web/**") + //.packagesToScan("/jj/tech/paolu/biz/**") + .addOpenApiCustomizer(api -> { + api = openAPI; + }) + .pathsToExclude("/health/*", "/jpa*") + .build(); + } + + + @Bean + @Profile("!prod") + GroupedOpenApi webAdminApi(OpenAPI openAPI) { + return GroupedOpenApi.builder() + .group("operate") + .pathsToMatch("/op/**") + //.packagesToScan("/jj/tech/paolu/biz/**") + .addOpenApiCustomizer(api -> { + api = openAPI; + }) + .pathsToExclude("/health/*", "/jpa*") + .build(); + } + + +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/config/wsclient/SpringWebSocketClient.java b/src/main/java/jj/tech/paolu/config/wsclient/SpringWebSocketClient.java new file mode 100644 index 0000000..cd5a02d --- /dev/null +++ b/src/main/java/jj/tech/paolu/config/wsclient/SpringWebSocketClient.java @@ -0,0 +1,63 @@ +package jj.tech.paolu.config.wsclient; + +import java.net.URI; +import java.util.concurrent.ExecutionException; + +import org.springframework.beans.factory.annotation.Value; +import org.springframework.context.annotation.Bean; +import org.springframework.web.socket.TextMessage; +import org.springframework.web.socket.WebSocketSession; +import org.springframework.web.socket.client.WebSocketClient; +import org.springframework.web.socket.client.standard.StandardWebSocketClient; +import org.springframework.web.socket.handler.TextWebSocketHandler; + +public class SpringWebSocketClient extends TextWebSocketHandler{ + + @Value("${websocket.url}") + private String url; + private WebSocketSession clientSession; + + public SpringWebSocketClient () throws Exception{ + var client = new StandardWebSocketClient(); + + this.clientSession = client.execute(new TTextWebSocketHandler(), "wss://echo.websocket.org", new Object()) + .get(); +// this.clientSession = +// client.doHandshake( new TTextWebSocketHandler(), "wss://echo.websocket.org", new Object()).get(); + + //this.clientSession = client.doHandshake(this, new TTextWebSocketHandler(), URI.create("wss://echo.websocket.org")).get(); + + } + +// @Bean +// public WebSocketClient webSocketClient() throws Exception { +// WebSocketClient client = new StandardWebSocketClient(); +// client.execute(new TTextWebSocketHandler(), url, null); +// return client; +// +// } + + + + public static void main(String[] args) throws Exception { + var sampleClient = new SpringWebSocketClient(); + sampleClient.getClientSession().sendMessage(new TextMessage("Hello!")); + sampleClient.getClientSession().sendMessage(new TextMessage("ssss")); + } + + public WebSocketSession getClientSession() { + return clientSession; + } + + public void setClientSession(WebSocketSession clientSession) { + this.clientSession = clientSession; + } + +} + +class TTextWebSocketHandler extends TextWebSocketHandler{ + @Override + protected void handleTextMessage(WebSocketSession session, TextMessage message) { + System.err.println(message.getPayload()); + } +} diff --git a/src/main/java/jj/tech/paolu/repository/GeneratorMybatis.java b/src/main/java/jj/tech/paolu/repository/GeneratorMybatis.java new file mode 100644 index 0000000..0275433 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/GeneratorMybatis.java @@ -0,0 +1,27 @@ +package jj.tech.paolu.repository; + +import java.io.File; +import java.util.ArrayList; +import java.util.List; + +import org.mybatis.generator.api.MyBatisGenerator; +import org.mybatis.generator.config.Configuration; +import org.mybatis.generator.config.xml.ConfigurationParser; +import org.mybatis.generator.internal.DefaultShellCallback; + +public class GeneratorMybatis { + + + public static void main(String[] args) throws Exception{ + List warnings = new ArrayList(); + boolean overwrite = true; + File configFile = new File("src/main/resources/generate/mybatis/generatorConfig.xml"); + ConfigurationParser cp = new ConfigurationParser(warnings); + Configuration config = cp.parseConfiguration(configFile); + DefaultShellCallback callback = new DefaultShellCallback(overwrite); + MyBatisGenerator myBatisGenerator = new MyBatisGenerator(config, callback, warnings); + myBatisGenerator.generate(null); + } + + +} diff --git a/src/main/java/jj/tech/paolu/repository/jooq/DefaultCatalog.java b/src/main/java/jj/tech/paolu/repository/jooq/DefaultCatalog.java new file mode 100644 index 0000000..7dcb60d --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/jooq/DefaultCatalog.java @@ -0,0 +1,54 @@ +/* + * This file is generated by jOOQ. + */ +package jj.tech.paolu.repository.jooq; + + +import java.util.Arrays; +import java.util.List; + +import org.jooq.Constants; +import org.jooq.Schema; +import org.jooq.impl.CatalogImpl; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +public class DefaultCatalog extends CatalogImpl { + + private static final long serialVersionUID = 1L; + + /** + * The reference instance of DEFAULT_CATALOG + */ + public static final DefaultCatalog DEFAULT_CATALOG = new DefaultCatalog(); + + /** + * The schema public. + */ + public final Public PUBLIC = Public.PUBLIC; + + /** + * No further instances allowed + */ + private DefaultCatalog() { + super(""); + } + + @Override + public final List getSchemas() { + return Arrays.asList( + Public.PUBLIC + ); + } + + /** + * A reference to the 3.18 minor release of the code generator. If this + * doesn't compile, it's because the runtime library uses an older minor + * release, namely: 3.18. You can turn off the generation of this reference + * by specifying /configuration/generator/generate/jooqVersionReference + */ + private static final String REQUIRE_RUNTIME_JOOQ_VERSION = Constants.VERSION_3_18; +} diff --git a/src/main/java/jj/tech/paolu/repository/jooq/Indexes.java b/src/main/java/jj/tech/paolu/repository/jooq/Indexes.java new file mode 100644 index 0000000..e5e043f --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/jooq/Indexes.java @@ -0,0 +1,35 @@ +/* + * This file is generated by jOOQ. + */ +package jj.tech.paolu.repository.jooq; + + +import jj.tech.paolu.repository.jooq.tables.FilesApplyDocs; +import jj.tech.paolu.repository.jooq.tables.SynDirectory; +import jj.tech.paolu.repository.jooq.tables.SynDirectoryFile; +import jj.tech.paolu.repository.jooq.tables.SynFile; +import jj.tech.paolu.repository.jooq.tables.SysArea; + +import org.jooq.Index; +import org.jooq.OrderField; +import org.jooq.impl.DSL; +import org.jooq.impl.Internal; + + +/** + * A class modelling indexes of tables in public. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +public class Indexes { + + // ------------------------------------------------------------------------- + // INDEX definitions + // ------------------------------------------------------------------------- + + public static final Index FILES_APPLY_DOCS_FILES_APPLY_ID_IDX = Internal.createIndex(DSL.name("files_apply_docs_files_apply_id_idx"), FilesApplyDocs.FILES_APPLY_DOCS, new OrderField[] { FilesApplyDocs.FILES_APPLY_DOCS.FILES_APPLY_ID }, false); + public static final Index IDX_PARENT_CODE = Internal.createIndex(DSL.name("idx_parent_code"), SysArea.SYS_AREA, new OrderField[] { SysArea.SYS_AREA.PARENT_CODE }, false); + public static final Index IDX_SYN_DIREC_PID = Internal.createIndex(DSL.name("idx_syn_direc_pid"), SynDirectory.SYN_DIRECTORY, new OrderField[] { SynDirectory.SYN_DIRECTORY.P_ID }, false); + public static final Index IDX_SYN_DIRECTOR_FILE_PID = Internal.createIndex(DSL.name("idx_syn_director_file_pid"), SynDirectoryFile.SYN_DIRECTORY_FILE, new OrderField[] { SynDirectoryFile.SYN_DIRECTORY_FILE.P_ID }, false); + public static final Index IDX_SYN_FILE_PID = Internal.createIndex(DSL.name("idx_syn_file_pid"), SynFile.SYN_FILE, new OrderField[] { SynFile.SYN_FILE.P_ID }, false); + public static final Index UK_CODE = Internal.createIndex(DSL.name("uk_code"), SysArea.SYS_AREA, new OrderField[] { SysArea.SYS_AREA.AREA_CODE }, false); +} diff --git a/src/main/java/jj/tech/paolu/repository/jooq/Keys.java b/src/main/java/jj/tech/paolu/repository/jooq/Keys.java new file mode 100644 index 0000000..e2f8e23 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/jooq/Keys.java @@ -0,0 +1,122 @@ +/* + * This file is generated by jOOQ. + */ +package jj.tech.paolu.repository.jooq; + + +import jj.tech.paolu.repository.jooq.tables.ArchiveSynLog; +import jj.tech.paolu.repository.jooq.tables.CertificateApply; +import jj.tech.paolu.repository.jooq.tables.CertificateDetail; +import jj.tech.paolu.repository.jooq.tables.DecryptLog; +import jj.tech.paolu.repository.jooq.tables.DownloadLog; +import jj.tech.paolu.repository.jooq.tables.FilesApply; +import jj.tech.paolu.repository.jooq.tables.FilesApplyCheckRecord; +import jj.tech.paolu.repository.jooq.tables.FilesApplyDirectoryDocs; +import jj.tech.paolu.repository.jooq.tables.FilesApplyDocs; +import jj.tech.paolu.repository.jooq.tables.FilesApplyDownloadRecord; +import jj.tech.paolu.repository.jooq.tables.Project; +import jj.tech.paolu.repository.jooq.tables.ReadLog; +import jj.tech.paolu.repository.jooq.tables.SharedRuleConfig; +import jj.tech.paolu.repository.jooq.tables.SharedSynAll; +import jj.tech.paolu.repository.jooq.tables.SynDirectory; +import jj.tech.paolu.repository.jooq.tables.SynDirectoryFile; +import jj.tech.paolu.repository.jooq.tables.SynFile; +import jj.tech.paolu.repository.jooq.tables.SysAdmin; +import jj.tech.paolu.repository.jooq.tables.SysAdminRole; +import jj.tech.paolu.repository.jooq.tables.SysAdminWeid; +import jj.tech.paolu.repository.jooq.tables.SysArea; +import jj.tech.paolu.repository.jooq.tables.SysConfig; +import jj.tech.paolu.repository.jooq.tables.SysMenu; +import jj.tech.paolu.repository.jooq.tables.SysOrg; +import jj.tech.paolu.repository.jooq.tables.SysRole; +import jj.tech.paolu.repository.jooq.tables.SysRoleMenu; +import jj.tech.paolu.repository.jooq.tables.SysRoleSign; +import jj.tech.paolu.repository.jooq.tables.SysRoleUrl; +import jj.tech.paolu.repository.jooq.tables.SysUrls; +import jj.tech.paolu.repository.jooq.tables.records.ArchiveSynLogRecord; +import jj.tech.paolu.repository.jooq.tables.records.CertificateApplyRecord; +import jj.tech.paolu.repository.jooq.tables.records.CertificateApplyRecordRecord; +import jj.tech.paolu.repository.jooq.tables.records.CertificateDetailRecord; +import jj.tech.paolu.repository.jooq.tables.records.DecryptLogRecord; +import jj.tech.paolu.repository.jooq.tables.records.DownloadLogRecord; +import jj.tech.paolu.repository.jooq.tables.records.FilesApplyCheckRecordRecord; +import jj.tech.paolu.repository.jooq.tables.records.FilesApplyDirectoryDocsRecord; +import jj.tech.paolu.repository.jooq.tables.records.FilesApplyDocsRecord; +import jj.tech.paolu.repository.jooq.tables.records.FilesApplyDownloadRecordRecord; +import jj.tech.paolu.repository.jooq.tables.records.FilesApplyRecord; +import jj.tech.paolu.repository.jooq.tables.records.ProjectRecord; +import jj.tech.paolu.repository.jooq.tables.records.ReadLogRecord; +import jj.tech.paolu.repository.jooq.tables.records.SharedRuleConfigRecord; +import jj.tech.paolu.repository.jooq.tables.records.SharedSynAllRecord; +import jj.tech.paolu.repository.jooq.tables.records.SynDirectoryFileRecord; +import jj.tech.paolu.repository.jooq.tables.records.SynDirectoryRecord; +import jj.tech.paolu.repository.jooq.tables.records.SynFileRecord; +import jj.tech.paolu.repository.jooq.tables.records.SysAdminRecord; +import jj.tech.paolu.repository.jooq.tables.records.SysAdminRoleRecord; +import jj.tech.paolu.repository.jooq.tables.records.SysAdminWeidRecord; +import jj.tech.paolu.repository.jooq.tables.records.SysAreaRecord; +import jj.tech.paolu.repository.jooq.tables.records.SysConfigRecord; +import jj.tech.paolu.repository.jooq.tables.records.SysMenuRecord; +import jj.tech.paolu.repository.jooq.tables.records.SysOrgRecord; +import jj.tech.paolu.repository.jooq.tables.records.SysRoleMenuRecord; +import jj.tech.paolu.repository.jooq.tables.records.SysRoleRecord; +import jj.tech.paolu.repository.jooq.tables.records.SysRoleSignRecord; +import jj.tech.paolu.repository.jooq.tables.records.SysRoleUrlRecord; +import jj.tech.paolu.repository.jooq.tables.records.SysUrlsRecord; + +import org.jooq.TableField; +import org.jooq.UniqueKey; +import org.jooq.impl.DSL; +import org.jooq.impl.Internal; + + +/** + * A class modelling foreign key relationships and constraints of tables in + * public. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +public class Keys { + + // ------------------------------------------------------------------------- + // UNIQUE and PRIMARY KEY definitions + // ------------------------------------------------------------------------- + + public static final UniqueKey ARCHIVE_SYN_LOG_PKEY = Internal.createUniqueKey(ArchiveSynLog.ARCHIVE_SYN_LOG, DSL.name("archive_syn_log_pkey"), new TableField[] { ArchiveSynLog.ARCHIVE_SYN_LOG.ID }, true); + public static final UniqueKey CERTIFICATE_APPLY_CER_ID_KEY = Internal.createUniqueKey(CertificateApply.CERTIFICATE_APPLY, DSL.name("certificate_apply_cer_id_key"), new TableField[] { CertificateApply.CERTIFICATE_APPLY.CER_ID }, true); + public static final UniqueKey CERTIFICATE_APPLY_PKEY = Internal.createUniqueKey(CertificateApply.CERTIFICATE_APPLY, DSL.name("certificate_apply_pkey"), new TableField[] { CertificateApply.CERTIFICATE_APPLY.ID }, true); + public static final UniqueKey CERTIFICATE_APPLY_RECORD_PKEY = Internal.createUniqueKey(jj.tech.paolu.repository.jooq.tables.CertificateApplyRecord.CERTIFICATE_APPLY_RECORD, DSL.name("certificate_apply_record_pkey"), new TableField[] { jj.tech.paolu.repository.jooq.tables.CertificateApplyRecord.CERTIFICATE_APPLY_RECORD.ID }, true); + public static final UniqueKey CERTIFICATE_DETAIL_PKEY = Internal.createUniqueKey(CertificateDetail.CERTIFICATE_DETAIL, DSL.name("certificate_detail_pkey"), new TableField[] { CertificateDetail.CERTIFICATE_DETAIL.ID }, true); + public static final UniqueKey DECRYPT_PKEY = Internal.createUniqueKey(DecryptLog.DECRYPT_LOG, DSL.name("decrypt_pkey"), new TableField[] { DecryptLog.DECRYPT_LOG.ID }, true); + public static final UniqueKey DOWNLOAD_LOG_PKEY = Internal.createUniqueKey(DownloadLog.DOWNLOAD_LOG, DSL.name("download_log_pkey"), new TableField[] { DownloadLog.DOWNLOAD_LOG.ID }, true); + public static final UniqueKey FILES_APPLY_PKEY = Internal.createUniqueKey(FilesApply.FILES_APPLY, DSL.name("files_apply_pkey"), new TableField[] { FilesApply.FILES_APPLY.ID }, true); + public static final UniqueKey FILES_APPLY_CHECK_RECORD_PKEY = Internal.createUniqueKey(FilesApplyCheckRecord.FILES_APPLY_CHECK_RECORD, DSL.name("files_apply_check_record_pkey"), new TableField[] { FilesApplyCheckRecord.FILES_APPLY_CHECK_RECORD.ID }, true); + public static final UniqueKey FILES_APPLY_DIRECTORY_DOCS_PKEY = Internal.createUniqueKey(FilesApplyDirectoryDocs.FILES_APPLY_DIRECTORY_DOCS, DSL.name("files_apply_directory_docs_pkey"), new TableField[] { FilesApplyDirectoryDocs.FILES_APPLY_DIRECTORY_DOCS.ID }, true); + public static final UniqueKey FILES_APPLY_DOCS_PKEY = Internal.createUniqueKey(FilesApplyDocs.FILES_APPLY_DOCS, DSL.name("files_apply_docs_pkey"), new TableField[] { FilesApplyDocs.FILES_APPLY_DOCS.ID }, true); + public static final UniqueKey FILES_APPLY_DOWNLOAD_RECORD_PKEY = Internal.createUniqueKey(FilesApplyDownloadRecord.FILES_APPLY_DOWNLOAD_RECORD, DSL.name("files_apply_download_record_pkey"), new TableField[] { FilesApplyDownloadRecord.FILES_APPLY_DOWNLOAD_RECORD.ID }, true); + public static final UniqueKey PROJECT_PKEY = Internal.createUniqueKey(Project.PROJECT, DSL.name("project_pkey"), new TableField[] { Project.PROJECT.ID }, true); + public static final UniqueKey READ_LOG_PKEY = Internal.createUniqueKey(ReadLog.READ_LOG, DSL.name("read_log_pkey"), new TableField[] { ReadLog.READ_LOG.ID }, true); + public static final UniqueKey SHARED_RULE_CONFIG_PKEY = Internal.createUniqueKey(SharedRuleConfig.SHARED_RULE_CONFIG, DSL.name("shared_rule_config_pkey"), new TableField[] { SharedRuleConfig.SHARED_RULE_CONFIG.ID }, true); + public static final UniqueKey SHARED_SYN_ALL_PKEY = Internal.createUniqueKey(SharedSynAll.SHARED_SYN_ALL, DSL.name("shared_syn_all_pkey"), new TableField[] { SharedSynAll.SHARED_SYN_ALL.ID }, true); + public static final UniqueKey SHARED_SYN_ALL_SYN_ID_KEY = Internal.createUniqueKey(SharedSynAll.SHARED_SYN_ALL, DSL.name("shared_syn_all_syn_id_key"), new TableField[] { SharedSynAll.SHARED_SYN_ALL.SYN_ID }, true); + public static final UniqueKey SHARED_SYN_ALL_SYN_ID_SYN_TYPE_KEY = Internal.createUniqueKey(SharedSynAll.SHARED_SYN_ALL, DSL.name("shared_syn_all_syn_id_syn_type_key"), new TableField[] { SharedSynAll.SHARED_SYN_ALL.SYN_ID, SharedSynAll.SHARED_SYN_ALL.SYN_TYPE }, true); + public static final UniqueKey SYN_DIRECTORY_PKEY = Internal.createUniqueKey(SynDirectory.SYN_DIRECTORY, DSL.name("syn_directory_pkey"), new TableField[] { SynDirectory.SYN_DIRECTORY.ID }, true); + public static final UniqueKey SYN_DIRECTORY_FILE_PKEY = Internal.createUniqueKey(SynDirectoryFile.SYN_DIRECTORY_FILE, DSL.name("syn_directory_file_pkey"), new TableField[] { SynDirectoryFile.SYN_DIRECTORY_FILE.ID }, true); + public static final UniqueKey SYN_FILE_PKEY = Internal.createUniqueKey(SynFile.SYN_FILE, DSL.name("syn_file_pkey"), new TableField[] { SynFile.SYN_FILE.ID }, true); + public static final UniqueKey SYS_ADMIN_PKEY = Internal.createUniqueKey(SysAdmin.SYS_ADMIN, DSL.name("sys_admin_pkey"), new TableField[] { SysAdmin.SYS_ADMIN.ID }, true); + public static final UniqueKey SYS_ADMIN_USERNAME_KEY = Internal.createUniqueKey(SysAdmin.SYS_ADMIN, DSL.name("sys_admin_username_key"), new TableField[] { SysAdmin.SYS_ADMIN.USERNAME }, true); + public static final UniqueKey SYS_ADMIN_ROLE_PKEY = Internal.createUniqueKey(SysAdminRole.SYS_ADMIN_ROLE, DSL.name("sys_admin_role_pkey"), new TableField[] { SysAdminRole.SYS_ADMIN_ROLE.ID }, true); + public static final UniqueKey SYS_ADMIN_WEID_ADMIN_ID_KEY = Internal.createUniqueKey(SysAdminWeid.SYS_ADMIN_WEID, DSL.name("sys_admin_weid_admin_id_key"), new TableField[] { SysAdminWeid.SYS_ADMIN_WEID.ADMIN_ID }, true); + public static final UniqueKey SYS_ADMIN_WEID_PKEY = Internal.createUniqueKey(SysAdminWeid.SYS_ADMIN_WEID, DSL.name("sys_admin_weid_pkey"), new TableField[] { SysAdminWeid.SYS_ADMIN_WEID.ID }, true); + public static final UniqueKey SYS_AREA_PKEY = Internal.createUniqueKey(SysArea.SYS_AREA, DSL.name("sys_area_pkey"), new TableField[] { SysArea.SYS_AREA.ID }, true); + public static final UniqueKey SYS_CONFIG_KEYS_KEY = Internal.createUniqueKey(SysConfig.SYS_CONFIG, DSL.name("sys_config_keys_key"), new TableField[] { SysConfig.SYS_CONFIG.KEYS }, true); + public static final UniqueKey SYS_CONFIG_PKEY = Internal.createUniqueKey(SysConfig.SYS_CONFIG, DSL.name("sys_config_pkey"), new TableField[] { SysConfig.SYS_CONFIG.ID }, true); + public static final UniqueKey SYS_MENU_PKEY = Internal.createUniqueKey(SysMenu.SYS_MENU, DSL.name("sys_menu_pkey"), new TableField[] { SysMenu.SYS_MENU.ID }, true); + public static final UniqueKey SYS_ORG_PKEY1 = Internal.createUniqueKey(SysOrg.SYS_ORG, DSL.name("sys_org_pkey1"), new TableField[] { SysOrg.SYS_ORG.ID }, true); + public static final UniqueKey SYS_ROLE_PKEY = Internal.createUniqueKey(SysRole.SYS_ROLE, DSL.name("sys_role_pkey"), new TableField[] { SysRole.SYS_ROLE.ID }, true); + public static final UniqueKey SYS_ROLE_MENU_PKEY = Internal.createUniqueKey(SysRoleMenu.SYS_ROLE_MENU, DSL.name("sys_role_menu_pkey"), new TableField[] { SysRoleMenu.SYS_ROLE_MENU.ID }, true); + public static final UniqueKey SYS_ROLE_MENU_ROLEID_RESID_KEY = Internal.createUniqueKey(SysRoleMenu.SYS_ROLE_MENU, DSL.name("sys_role_menu_roleid_resid_key"), new TableField[] { SysRoleMenu.SYS_ROLE_MENU.ROLEID, SysRoleMenu.SYS_ROLE_MENU.MENUID }, true); + public static final UniqueKey SYS_ROLE_SIGN_PKEY = Internal.createUniqueKey(SysRoleSign.SYS_ROLE_SIGN, DSL.name("sys_role_sign_pkey"), new TableField[] { SysRoleSign.SYS_ROLE_SIGN.ID }, true); + public static final UniqueKey SYS_ROLE_URL_PKEY = Internal.createUniqueKey(SysRoleUrl.SYS_ROLE_URL, DSL.name("sys_role_url_pkey"), new TableField[] { SysRoleUrl.SYS_ROLE_URL.ID }, true); + public static final UniqueKey SYS_URLS_PKEY = Internal.createUniqueKey(SysUrls.SYS_URLS, DSL.name("sys_urls_pkey"), new TableField[] { SysUrls.SYS_URLS.ID }, true); + public static final UniqueKey SYS_URLS_URL_KEY = Internal.createUniqueKey(SysUrls.SYS_URLS, DSL.name("sys_urls_url_key"), new TableField[] { SysUrls.SYS_URLS.URL }, true); +} diff --git a/src/main/java/jj/tech/paolu/repository/jooq/Public.java b/src/main/java/jj/tech/paolu/repository/jooq/Public.java new file mode 100644 index 0000000..217c874 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/jooq/Public.java @@ -0,0 +1,257 @@ +/* + * This file is generated by jOOQ. + */ +package jj.tech.paolu.repository.jooq; + + +import java.util.Arrays; +import java.util.List; + +import jj.tech.paolu.repository.jooq.tables.ArchiveSynLog; +import jj.tech.paolu.repository.jooq.tables.CertificateApply; +import jj.tech.paolu.repository.jooq.tables.CertificateApplyRecord; +import jj.tech.paolu.repository.jooq.tables.CertificateDetail; +import jj.tech.paolu.repository.jooq.tables.DecryptLog; +import jj.tech.paolu.repository.jooq.tables.DownloadLog; +import jj.tech.paolu.repository.jooq.tables.FilesApply; +import jj.tech.paolu.repository.jooq.tables.FilesApplyCheckRecord; +import jj.tech.paolu.repository.jooq.tables.FilesApplyDirectoryDocs; +import jj.tech.paolu.repository.jooq.tables.FilesApplyDocs; +import jj.tech.paolu.repository.jooq.tables.FilesApplyDownloadRecord; +import jj.tech.paolu.repository.jooq.tables.Project; +import jj.tech.paolu.repository.jooq.tables.ReadLog; +import jj.tech.paolu.repository.jooq.tables.SharedRuleConfig; +import jj.tech.paolu.repository.jooq.tables.SharedSynAll; +import jj.tech.paolu.repository.jooq.tables.SynDirectory; +import jj.tech.paolu.repository.jooq.tables.SynDirectoryFile; +import jj.tech.paolu.repository.jooq.tables.SynFile; +import jj.tech.paolu.repository.jooq.tables.SysAdmin; +import jj.tech.paolu.repository.jooq.tables.SysAdminRole; +import jj.tech.paolu.repository.jooq.tables.SysAdminWeid; +import jj.tech.paolu.repository.jooq.tables.SysArea; +import jj.tech.paolu.repository.jooq.tables.SysConfig; +import jj.tech.paolu.repository.jooq.tables.SysMenu; +import jj.tech.paolu.repository.jooq.tables.SysOrg; +import jj.tech.paolu.repository.jooq.tables.SysRole; +import jj.tech.paolu.repository.jooq.tables.SysRoleMenu; +import jj.tech.paolu.repository.jooq.tables.SysRoleSign; +import jj.tech.paolu.repository.jooq.tables.SysRoleUrl; +import jj.tech.paolu.repository.jooq.tables.SysUrls; + +import org.jooq.Catalog; +import org.jooq.Table; +import org.jooq.impl.SchemaImpl; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +public class Public extends SchemaImpl { + + private static final long serialVersionUID = 1L; + + /** + * The reference instance of public + */ + public static final Public PUBLIC = new Public(); + + /** + * 从电子档案系统同步档案目录数据的过程日志 + */ + public final ArchiveSynLog ARCHIVE_SYN_LOG = ArchiveSynLog.ARCHIVE_SYN_LOG; + + /** + * The table public.certificate_apply. + */ + public final CertificateApply CERTIFICATE_APPLY = CertificateApply.CERTIFICATE_APPLY; + + /** + * The table public.certificate_apply_record. + */ + public final CertificateApplyRecord CERTIFICATE_APPLY_RECORD = CertificateApplyRecord.CERTIFICATE_APPLY_RECORD; + + /** + * The table public.certificate_detail. + */ + public final CertificateDetail CERTIFICATE_DETAIL = CertificateDetail.CERTIFICATE_DETAIL; + + /** + * 解密情况 + */ + public final DecryptLog DECRYPT_LOG = DecryptLog.DECRYPT_LOG; + + /** + * 下载行为记录 + */ + public final DownloadLog DOWNLOAD_LOG = DownloadLog.DOWNLOAD_LOG; + + /** + * The table public.files_apply. + */ + public final FilesApply FILES_APPLY = FilesApply.FILES_APPLY; + + /** + * The table public.files_apply_check_record. + */ + public final FilesApplyCheckRecord FILES_APPLY_CHECK_RECORD = FilesApplyCheckRecord.FILES_APPLY_CHECK_RECORD; + + /** + * The table public.files_apply_directory_docs. + */ + public final FilesApplyDirectoryDocs FILES_APPLY_DIRECTORY_DOCS = FilesApplyDirectoryDocs.FILES_APPLY_DIRECTORY_DOCS; + + /** + * The table public.files_apply_docs. + */ + public final FilesApplyDocs FILES_APPLY_DOCS = FilesApplyDocs.FILES_APPLY_DOCS; + + /** + * The table public.files_apply_download_record. + */ + public final FilesApplyDownloadRecord FILES_APPLY_DOWNLOAD_RECORD = FilesApplyDownloadRecord.FILES_APPLY_DOWNLOAD_RECORD; + + /** + * The table public.project. + */ + public final Project PROJECT = Project.PROJECT; + + /** + * 阅读情况 + */ + public final ReadLog READ_LOG = ReadLog.READ_LOG; + + /** + * The table public.shared_rule_config. + */ + public final SharedRuleConfig SHARED_RULE_CONFIG = SharedRuleConfig.SHARED_RULE_CONFIG; + + /** + * The table public.shared_syn_all. + */ + public final SharedSynAll SHARED_SYN_ALL = SharedSynAll.SHARED_SYN_ALL; + + /** + * The table public.syn_directory. + */ + public final SynDirectory SYN_DIRECTORY = SynDirectory.SYN_DIRECTORY; + + /** + * The table public.syn_directory_file. + */ + public final SynDirectoryFile SYN_DIRECTORY_FILE = SynDirectoryFile.SYN_DIRECTORY_FILE; + + /** + * The table public.syn_file. + */ + public final SynFile SYN_FILE = SynFile.SYN_FILE; + + /** + * The table public.sys_admin. + */ + public final SysAdmin SYS_ADMIN = SysAdmin.SYS_ADMIN; + + /** + * The table public.sys_admin_role. + */ + public final SysAdminRole SYS_ADMIN_ROLE = SysAdminRole.SYS_ADMIN_ROLE; + + /** + * The table public.sys_admin_weid. + */ + public final SysAdminWeid SYS_ADMIN_WEID = SysAdminWeid.SYS_ADMIN_WEID; + + /** + * The table public.sys_area. + */ + public final SysArea SYS_AREA = SysArea.SYS_AREA; + + /** + * The table public.sys_config. + */ + public final SysConfig SYS_CONFIG = SysConfig.SYS_CONFIG; + + /** + * The table public.sys_menu. + */ + public final SysMenu SYS_MENU = SysMenu.SYS_MENU; + + /** + * The table public.sys_org. + */ + public final SysOrg SYS_ORG = SysOrg.SYS_ORG; + + /** + * The table public.sys_role. + */ + public final SysRole SYS_ROLE = SysRole.SYS_ROLE; + + /** + * The table public.sys_role_menu. + */ + public final SysRoleMenu SYS_ROLE_MENU = SysRoleMenu.SYS_ROLE_MENU; + + /** + * The table public.sys_role_sign. + */ + public final SysRoleSign SYS_ROLE_SIGN = SysRoleSign.SYS_ROLE_SIGN; + + /** + * The table public.sys_role_url. + */ + public final SysRoleUrl SYS_ROLE_URL = SysRoleUrl.SYS_ROLE_URL; + + /** + * The table public.sys_urls. + */ + public final SysUrls SYS_URLS = SysUrls.SYS_URLS; + + /** + * No further instances allowed + */ + private Public() { + super("public", null); + } + + + @Override + public Catalog getCatalog() { + return DefaultCatalog.DEFAULT_CATALOG; + } + + @Override + public final List> getTables() { + return Arrays.asList( + ArchiveSynLog.ARCHIVE_SYN_LOG, + CertificateApply.CERTIFICATE_APPLY, + CertificateApplyRecord.CERTIFICATE_APPLY_RECORD, + CertificateDetail.CERTIFICATE_DETAIL, + DecryptLog.DECRYPT_LOG, + DownloadLog.DOWNLOAD_LOG, + FilesApply.FILES_APPLY, + FilesApplyCheckRecord.FILES_APPLY_CHECK_RECORD, + FilesApplyDirectoryDocs.FILES_APPLY_DIRECTORY_DOCS, + FilesApplyDocs.FILES_APPLY_DOCS, + FilesApplyDownloadRecord.FILES_APPLY_DOWNLOAD_RECORD, + Project.PROJECT, + ReadLog.READ_LOG, + SharedRuleConfig.SHARED_RULE_CONFIG, + SharedSynAll.SHARED_SYN_ALL, + SynDirectory.SYN_DIRECTORY, + SynDirectoryFile.SYN_DIRECTORY_FILE, + SynFile.SYN_FILE, + SysAdmin.SYS_ADMIN, + SysAdminRole.SYS_ADMIN_ROLE, + SysAdminWeid.SYS_ADMIN_WEID, + SysArea.SYS_AREA, + SysConfig.SYS_CONFIG, + SysMenu.SYS_MENU, + SysOrg.SYS_ORG, + SysRole.SYS_ROLE, + SysRoleMenu.SYS_ROLE_MENU, + SysRoleSign.SYS_ROLE_SIGN, + SysRoleUrl.SYS_ROLE_URL, + SysUrls.SYS_URLS + ); + } +} diff --git a/src/main/java/jj/tech/paolu/repository/jooq/Tables.java b/src/main/java/jj/tech/paolu/repository/jooq/Tables.java new file mode 100644 index 0000000..bd78e2a --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/jooq/Tables.java @@ -0,0 +1,194 @@ +/* + * This file is generated by jOOQ. + */ +package jj.tech.paolu.repository.jooq; + + +import jj.tech.paolu.repository.jooq.tables.ArchiveSynLog; +import jj.tech.paolu.repository.jooq.tables.CertificateApply; +import jj.tech.paolu.repository.jooq.tables.CertificateApplyRecord; +import jj.tech.paolu.repository.jooq.tables.CertificateDetail; +import jj.tech.paolu.repository.jooq.tables.DecryptLog; +import jj.tech.paolu.repository.jooq.tables.DownloadLog; +import jj.tech.paolu.repository.jooq.tables.FilesApply; +import jj.tech.paolu.repository.jooq.tables.FilesApplyCheckRecord; +import jj.tech.paolu.repository.jooq.tables.FilesApplyDirectoryDocs; +import jj.tech.paolu.repository.jooq.tables.FilesApplyDocs; +import jj.tech.paolu.repository.jooq.tables.FilesApplyDownloadRecord; +import jj.tech.paolu.repository.jooq.tables.Project; +import jj.tech.paolu.repository.jooq.tables.ReadLog; +import jj.tech.paolu.repository.jooq.tables.SharedRuleConfig; +import jj.tech.paolu.repository.jooq.tables.SharedSynAll; +import jj.tech.paolu.repository.jooq.tables.SynDirectory; +import jj.tech.paolu.repository.jooq.tables.SynDirectoryFile; +import jj.tech.paolu.repository.jooq.tables.SynFile; +import jj.tech.paolu.repository.jooq.tables.SysAdmin; +import jj.tech.paolu.repository.jooq.tables.SysAdminRole; +import jj.tech.paolu.repository.jooq.tables.SysAdminWeid; +import jj.tech.paolu.repository.jooq.tables.SysArea; +import jj.tech.paolu.repository.jooq.tables.SysConfig; +import jj.tech.paolu.repository.jooq.tables.SysMenu; +import jj.tech.paolu.repository.jooq.tables.SysOrg; +import jj.tech.paolu.repository.jooq.tables.SysRole; +import jj.tech.paolu.repository.jooq.tables.SysRoleMenu; +import jj.tech.paolu.repository.jooq.tables.SysRoleSign; +import jj.tech.paolu.repository.jooq.tables.SysRoleUrl; +import jj.tech.paolu.repository.jooq.tables.SysUrls; + + +/** + * Convenience access to all tables in public. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +public class Tables { + + /** + * 从电子档案系统同步档案目录数据的过程日志 + */ + public static final ArchiveSynLog ARCHIVE_SYN_LOG = ArchiveSynLog.ARCHIVE_SYN_LOG; + + /** + * The table public.certificate_apply. + */ + public static final CertificateApply CERTIFICATE_APPLY = CertificateApply.CERTIFICATE_APPLY; + + /** + * The table public.certificate_apply_record. + */ + public static final CertificateApplyRecord CERTIFICATE_APPLY_RECORD = CertificateApplyRecord.CERTIFICATE_APPLY_RECORD; + + /** + * The table public.certificate_detail. + */ + public static final CertificateDetail CERTIFICATE_DETAIL = CertificateDetail.CERTIFICATE_DETAIL; + + /** + * 解密情况 + */ + public static final DecryptLog DECRYPT_LOG = DecryptLog.DECRYPT_LOG; + + /** + * 下载行为记录 + */ + public static final DownloadLog DOWNLOAD_LOG = DownloadLog.DOWNLOAD_LOG; + + /** + * The table public.files_apply. + */ + public static final FilesApply FILES_APPLY = FilesApply.FILES_APPLY; + + /** + * The table public.files_apply_check_record. + */ + public static final FilesApplyCheckRecord FILES_APPLY_CHECK_RECORD = FilesApplyCheckRecord.FILES_APPLY_CHECK_RECORD; + + /** + * The table public.files_apply_directory_docs. + */ + public static final FilesApplyDirectoryDocs FILES_APPLY_DIRECTORY_DOCS = FilesApplyDirectoryDocs.FILES_APPLY_DIRECTORY_DOCS; + + /** + * The table public.files_apply_docs. + */ + public static final FilesApplyDocs FILES_APPLY_DOCS = FilesApplyDocs.FILES_APPLY_DOCS; + + /** + * The table public.files_apply_download_record. + */ + public static final FilesApplyDownloadRecord FILES_APPLY_DOWNLOAD_RECORD = FilesApplyDownloadRecord.FILES_APPLY_DOWNLOAD_RECORD; + + /** + * The table public.project. + */ + public static final Project PROJECT = Project.PROJECT; + + /** + * 阅读情况 + */ + public static final ReadLog READ_LOG = ReadLog.READ_LOG; + + /** + * The table public.shared_rule_config. + */ + public static final SharedRuleConfig SHARED_RULE_CONFIG = SharedRuleConfig.SHARED_RULE_CONFIG; + + /** + * The table public.shared_syn_all. + */ + public static final SharedSynAll SHARED_SYN_ALL = SharedSynAll.SHARED_SYN_ALL; + + /** + * The table public.syn_directory. + */ + public static final SynDirectory SYN_DIRECTORY = SynDirectory.SYN_DIRECTORY; + + /** + * The table public.syn_directory_file. + */ + public static final SynDirectoryFile SYN_DIRECTORY_FILE = SynDirectoryFile.SYN_DIRECTORY_FILE; + + /** + * The table public.syn_file. + */ + public static final SynFile SYN_FILE = SynFile.SYN_FILE; + + /** + * The table public.sys_admin. + */ + public static final SysAdmin SYS_ADMIN = SysAdmin.SYS_ADMIN; + + /** + * The table public.sys_admin_role. + */ + public static final SysAdminRole SYS_ADMIN_ROLE = SysAdminRole.SYS_ADMIN_ROLE; + + /** + * The table public.sys_admin_weid. + */ + public static final SysAdminWeid SYS_ADMIN_WEID = SysAdminWeid.SYS_ADMIN_WEID; + + /** + * The table public.sys_area. + */ + public static final SysArea SYS_AREA = SysArea.SYS_AREA; + + /** + * The table public.sys_config. + */ + public static final SysConfig SYS_CONFIG = SysConfig.SYS_CONFIG; + + /** + * The table public.sys_menu. + */ + public static final SysMenu SYS_MENU = SysMenu.SYS_MENU; + + /** + * The table public.sys_org. + */ + public static final SysOrg SYS_ORG = SysOrg.SYS_ORG; + + /** + * The table public.sys_role. + */ + public static final SysRole SYS_ROLE = SysRole.SYS_ROLE; + + /** + * The table public.sys_role_menu. + */ + public static final SysRoleMenu SYS_ROLE_MENU = SysRoleMenu.SYS_ROLE_MENU; + + /** + * The table public.sys_role_sign. + */ + public static final SysRoleSign SYS_ROLE_SIGN = SysRoleSign.SYS_ROLE_SIGN; + + /** + * The table public.sys_role_url. + */ + public static final SysRoleUrl SYS_ROLE_URL = SysRoleUrl.SYS_ROLE_URL; + + /** + * The table public.sys_urls. + */ + public static final SysUrls SYS_URLS = SysUrls.SYS_URLS; +} diff --git a/src/main/java/jj/tech/paolu/repository/jooq/tables/ArchiveSynLog.java b/src/main/java/jj/tech/paolu/repository/jooq/tables/ArchiveSynLog.java new file mode 100644 index 0000000..44cc96e --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/jooq/tables/ArchiveSynLog.java @@ -0,0 +1,223 @@ +/* + * This file is generated by jOOQ. + */ +package jj.tech.paolu.repository.jooq.tables; + + +import java.time.LocalDateTime; +import java.util.function.Function; + +import jj.tech.paolu.repository.jooq.Keys; +import jj.tech.paolu.repository.jooq.Public; +import jj.tech.paolu.repository.jooq.tables.records.ArchiveSynLogRecord; + +import org.jooq.Field; +import org.jooq.ForeignKey; +import org.jooq.Function13; +import org.jooq.Name; +import org.jooq.Record; +import org.jooq.Records; +import org.jooq.Row13; +import org.jooq.Schema; +import org.jooq.SelectField; +import org.jooq.Table; +import org.jooq.TableField; +import org.jooq.TableOptions; +import org.jooq.UniqueKey; +import org.jooq.impl.DSL; +import org.jooq.impl.SQLDataType; +import org.jooq.impl.TableImpl; + + +/** + * 从电子档案系统同步档案目录数据的过程日志 + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +public class ArchiveSynLog extends TableImpl { + + private static final long serialVersionUID = 1L; + + /** + * The reference instance of public.archive_syn_log + */ + public static final ArchiveSynLog ARCHIVE_SYN_LOG = new ArchiveSynLog(); + + /** + * The class holding records for this type + */ + @Override + public Class getRecordType() { + return ArchiveSynLogRecord.class; + } + + /** + * The column public.archive_syn_log.start_time. + */ + public final TableField START_TIME = createField(DSL.name("start_time"), SQLDataType.LOCALDATETIME(6).nullable(false), this, ""); + + /** + * The column public.archive_syn_log.insert_dir_count. + */ + public final TableField INSERT_DIR_COUNT = createField(DSL.name("insert_dir_count"), SQLDataType.BIGINT.defaultValue(DSL.field(DSL.raw("0"), SQLDataType.BIGINT)), this, ""); + + /** + * The column public.archive_syn_log.update_dir_count. + */ + public final TableField UPDATE_DIR_COUNT = createField(DSL.name("update_dir_count"), SQLDataType.BIGINT.defaultValue(DSL.field(DSL.raw("0"), SQLDataType.BIGINT)), this, ""); + + /** + * The column public.archive_syn_log.insert_dirfile_count. + */ + public final TableField INSERT_DIRFILE_COUNT = createField(DSL.name("insert_dirfile_count"), SQLDataType.BIGINT.defaultValue(DSL.field(DSL.raw("0"), SQLDataType.BIGINT)), this, ""); + + /** + * The column public.archive_syn_log.update_dirfile_count. + */ + public final TableField UPDATE_DIRFILE_COUNT = createField(DSL.name("update_dirfile_count"), SQLDataType.BIGINT.defaultValue(DSL.field(DSL.raw("0"), SQLDataType.BIGINT)), this, ""); + + /** + * The column public.archive_syn_log.insert_file_count. + */ + public final TableField INSERT_FILE_COUNT = createField(DSL.name("insert_file_count"), SQLDataType.BIGINT.defaultValue(DSL.field(DSL.raw("0"), SQLDataType.BIGINT)), this, ""); + + /** + * The column public.archive_syn_log.update_file_count. + */ + public final TableField UPDATE_FILE_COUNT = createField(DSL.name("update_file_count"), SQLDataType.BIGINT.defaultValue(DSL.field(DSL.raw("0"), SQLDataType.BIGINT)), this, ""); + + /** + * The column public.archive_syn_log.description. + */ + public final TableField DESCRIPTION = createField(DSL.name("description"), SQLDataType.VARCHAR, this, ""); + + /** + * The column public.archive_syn_log.run_result. + */ + public final TableField RUN_RESULT = createField(DSL.name("run_result"), SQLDataType.VARCHAR, this, ""); + + /** + * The column public.archive_syn_log.update_timestamp. + */ + public final TableField UPDATE_TIMESTAMP = createField(DSL.name("update_timestamp"), SQLDataType.BIGINT.nullable(false).defaultValue(DSL.field(DSL.raw("0"), SQLDataType.BIGINT)), this, ""); + + /** + * The column public.archive_syn_log.id. + */ + public final TableField ID = createField(DSL.name("id"), SQLDataType.VARCHAR.nullable(false), this, ""); + + /** + * The column public.archive_syn_log.next_update_timestamp. + */ + public final TableField NEXT_UPDATE_TIMESTAMP = createField(DSL.name("next_update_timestamp"), SQLDataType.BIGINT, this, ""); + + /** + * The column public.archive_syn_log.end_time. + */ + public final TableField END_TIME = createField(DSL.name("end_time"), SQLDataType.LOCALDATETIME(6).nullable(false), this, ""); + + private ArchiveSynLog(Name alias, Table aliased) { + this(alias, aliased, null); + } + + private ArchiveSynLog(Name alias, Table aliased, Field[] parameters) { + super(alias, null, aliased, parameters, DSL.comment("从电子档案系统同步档案目录数据的过程日志"), TableOptions.table()); + } + + /** + * Create an aliased public.archive_syn_log table reference + */ + public ArchiveSynLog(String alias) { + this(DSL.name(alias), ARCHIVE_SYN_LOG); + } + + /** + * Create an aliased public.archive_syn_log table reference + */ + public ArchiveSynLog(Name alias) { + this(alias, ARCHIVE_SYN_LOG); + } + + /** + * Create a public.archive_syn_log table reference + */ + public ArchiveSynLog() { + this(DSL.name("archive_syn_log"), null); + } + + public ArchiveSynLog(Table child, ForeignKey key) { + super(child, key, ARCHIVE_SYN_LOG); + } + + @Override + public Schema getSchema() { + return aliased() ? null : Public.PUBLIC; + } + + @Override + public UniqueKey getPrimaryKey() { + return Keys.ARCHIVE_SYN_LOG_PKEY; + } + + @Override + public ArchiveSynLog as(String alias) { + return new ArchiveSynLog(DSL.name(alias), this); + } + + @Override + public ArchiveSynLog as(Name alias) { + return new ArchiveSynLog(alias, this); + } + + @Override + public ArchiveSynLog as(Table alias) { + return new ArchiveSynLog(alias.getQualifiedName(), this); + } + + /** + * Rename this table + */ + @Override + public ArchiveSynLog rename(String name) { + return new ArchiveSynLog(DSL.name(name), null); + } + + /** + * Rename this table + */ + @Override + public ArchiveSynLog rename(Name name) { + return new ArchiveSynLog(name, null); + } + + /** + * Rename this table + */ + @Override + public ArchiveSynLog rename(Table name) { + return new ArchiveSynLog(name.getQualifiedName(), null); + } + + // ------------------------------------------------------------------------- + // Row13 type methods + // ------------------------------------------------------------------------- + + @Override + public Row13 fieldsRow() { + return (Row13) super.fieldsRow(); + } + + /** + * Convenience mapping calling {@link SelectField#convertFrom(Function)}. + */ + public SelectField mapping(Function13 from) { + return convertFrom(Records.mapping(from)); + } + + /** + * Convenience mapping calling {@link SelectField#convertFrom(Class, + * Function)}. + */ + public SelectField mapping(Class toType, Function13 from) { + return convertFrom(toType, Records.mapping(from)); + } +} diff --git a/src/main/java/jj/tech/paolu/repository/jooq/tables/CertificateApply.java b/src/main/java/jj/tech/paolu/repository/jooq/tables/CertificateApply.java new file mode 100644 index 0000000..bc8252a --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/jooq/tables/CertificateApply.java @@ -0,0 +1,250 @@ +/* + * This file is generated by jOOQ. + */ +package jj.tech.paolu.repository.jooq.tables; + + +import java.time.LocalDateTime; +import java.util.Arrays; +import java.util.List; +import java.util.function.Function; + +import jj.tech.paolu.repository.jooq.Keys; +import jj.tech.paolu.repository.jooq.Public; +import jj.tech.paolu.repository.jooq.tables.records.CertificateApplyRecord; + +import org.jooq.Field; +import org.jooq.ForeignKey; +import org.jooq.Function17; +import org.jooq.Name; +import org.jooq.Record; +import org.jooq.Records; +import org.jooq.Row17; +import org.jooq.Schema; +import org.jooq.SelectField; +import org.jooq.Table; +import org.jooq.TableField; +import org.jooq.TableOptions; +import org.jooq.UniqueKey; +import org.jooq.impl.DSL; +import org.jooq.impl.SQLDataType; +import org.jooq.impl.TableImpl; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +public class CertificateApply extends TableImpl { + + private static final long serialVersionUID = 1L; + + /** + * The reference instance of public.certificate_apply + */ + public static final CertificateApply CERTIFICATE_APPLY = new CertificateApply(); + + /** + * The class holding records for this type + */ + @Override + public Class getRecordType() { + return CertificateApplyRecord.class; + } + + /** + * The column public.certificate_apply.id. + */ + public final TableField ID = createField(DSL.name("id"), SQLDataType.VARCHAR(32).nullable(false), this, ""); + + /** + * The column public.certificate_apply.is_org. + */ + public final TableField IS_ORG = createField(DSL.name("is_org"), SQLDataType.INTEGER.nullable(false).defaultValue(DSL.field(DSL.raw("0"), SQLDataType.INTEGER)), this, ""); + + /** + * The column public.certificate_apply.user_id. + */ + public final TableField USER_ID = createField(DSL.name("user_id"), SQLDataType.VARCHAR(32).nullable(false), this, ""); + + /** + * The column public.certificate_apply.user_name. + */ + public final TableField USER_NAME = createField(DSL.name("user_name"), SQLDataType.VARCHAR(32), this, ""); + + /** + * The column public.certificate_apply.user_real_name. + */ + public final TableField USER_REAL_NAME = createField(DSL.name("user_real_name"), SQLDataType.VARCHAR(32), this, ""); + + /** + * The column public.certificate_apply.user_phone. + */ + public final TableField USER_PHONE = createField(DSL.name("user_phone"), SQLDataType.VARCHAR(32), this, ""); + + /** + * The column public.certificate_apply.user_org_id. + */ + public final TableField USER_ORG_ID = createField(DSL.name("user_org_id"), SQLDataType.VARCHAR(32).nullable(false), this, ""); + + /** + * The column public.certificate_apply.user_org_name. + */ + public final TableField USER_ORG_NAME = createField(DSL.name("user_org_name"), SQLDataType.VARCHAR(32), this, ""); + + /** + * The column public.certificate_apply.apply_type. + */ + public final TableField APPLY_TYPE = createField(DSL.name("apply_type"), SQLDataType.INTEGER.nullable(false).defaultValue(DSL.field(DSL.raw("0"), SQLDataType.INTEGER)), this, ""); + + /** + * The column public.certificate_apply.status. + */ + public final TableField STATUS = createField(DSL.name("status"), SQLDataType.INTEGER.defaultValue(DSL.field(DSL.raw("0"), SQLDataType.INTEGER)), this, ""); + + /** + * The column public.certificate_apply.apply_time. + */ + public final TableField APPLY_TIME = createField(DSL.name("apply_time"), SQLDataType.LOCALDATETIME(6), this, ""); + + /** + * The column public.certificate_apply.apply_finish_time. + */ + public final TableField APPLY_FINISH_TIME = createField(DSL.name("apply_finish_time"), SQLDataType.LOCALDATETIME(6), this, ""); + + /** + * The column public.certificate_apply.apply_reason. + */ + public final TableField APPLY_REASON = createField(DSL.name("apply_reason"), SQLDataType.VARCHAR(255), this, ""); + + /** + * The column public.certificate_apply.next_check_org_id. + */ + public final TableField NEXT_CHECK_ORG_ID = createField(DSL.name("next_check_org_id"), SQLDataType.VARCHAR, this, ""); + + /** + * The column public.certificate_apply.end_check_org_id. + */ + public final TableField END_CHECK_ORG_ID = createField(DSL.name("end_check_org_id"), SQLDataType.VARCHAR, this, ""); + + /** + * The column public.certificate_apply.cer_id. + */ + public final TableField CER_ID = createField(DSL.name("cer_id"), SQLDataType.VARCHAR(32), this, ""); + + /** + * The column public.certificate_apply.company_id. + */ + public final TableField COMPANY_ID = createField(DSL.name("company_id"), SQLDataType.VARCHAR(32).defaultValue(DSL.field(DSL.raw("NULL::character varying"), SQLDataType.VARCHAR)), this, ""); + + private CertificateApply(Name alias, Table aliased) { + this(alias, aliased, null); + } + + private CertificateApply(Name alias, Table aliased, Field[] parameters) { + super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table()); + } + + /** + * Create an aliased public.certificate_apply table reference + */ + public CertificateApply(String alias) { + this(DSL.name(alias), CERTIFICATE_APPLY); + } + + /** + * Create an aliased public.certificate_apply table reference + */ + public CertificateApply(Name alias) { + this(alias, CERTIFICATE_APPLY); + } + + /** + * Create a public.certificate_apply table reference + */ + public CertificateApply() { + this(DSL.name("certificate_apply"), null); + } + + public CertificateApply(Table child, ForeignKey key) { + super(child, key, CERTIFICATE_APPLY); + } + + @Override + public Schema getSchema() { + return aliased() ? null : Public.PUBLIC; + } + + @Override + public UniqueKey getPrimaryKey() { + return Keys.CERTIFICATE_APPLY_PKEY; + } + + @Override + public List> getUniqueKeys() { + return Arrays.asList(Keys.CERTIFICATE_APPLY_CER_ID_KEY); + } + + @Override + public CertificateApply as(String alias) { + return new CertificateApply(DSL.name(alias), this); + } + + @Override + public CertificateApply as(Name alias) { + return new CertificateApply(alias, this); + } + + @Override + public CertificateApply as(Table alias) { + return new CertificateApply(alias.getQualifiedName(), this); + } + + /** + * Rename this table + */ + @Override + public CertificateApply rename(String name) { + return new CertificateApply(DSL.name(name), null); + } + + /** + * Rename this table + */ + @Override + public CertificateApply rename(Name name) { + return new CertificateApply(name, null); + } + + /** + * Rename this table + */ + @Override + public CertificateApply rename(Table name) { + return new CertificateApply(name.getQualifiedName(), null); + } + + // ------------------------------------------------------------------------- + // Row17 type methods + // ------------------------------------------------------------------------- + + @Override + public Row17 fieldsRow() { + return (Row17) super.fieldsRow(); + } + + /** + * Convenience mapping calling {@link SelectField#convertFrom(Function)}. + */ + public SelectField mapping(Function17 from) { + return convertFrom(Records.mapping(from)); + } + + /** + * Convenience mapping calling {@link SelectField#convertFrom(Class, + * Function)}. + */ + public SelectField mapping(Class toType, Function17 from) { + return convertFrom(toType, Records.mapping(from)); + } +} diff --git a/src/main/java/jj/tech/paolu/repository/jooq/tables/CertificateApplyRecord.java b/src/main/java/jj/tech/paolu/repository/jooq/tables/CertificateApplyRecord.java new file mode 100644 index 0000000..0d439a8 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/jooq/tables/CertificateApplyRecord.java @@ -0,0 +1,240 @@ +/* + * This file is generated by jOOQ. + */ +package jj.tech.paolu.repository.jooq.tables; + + +import java.time.LocalDateTime; +import java.util.function.Function; + +import jj.tech.paolu.repository.jooq.Keys; +import jj.tech.paolu.repository.jooq.Public; +import jj.tech.paolu.repository.jooq.tables.records.CertificateApplyRecordRecord; + +import org.jooq.Field; +import org.jooq.ForeignKey; +import org.jooq.Function15; +import org.jooq.Name; +import org.jooq.Record; +import org.jooq.Records; +import org.jooq.Row15; +import org.jooq.Schema; +import org.jooq.SelectField; +import org.jooq.Table; +import org.jooq.TableField; +import org.jooq.TableOptions; +import org.jooq.UniqueKey; +import org.jooq.impl.DSL; +import org.jooq.impl.SQLDataType; +import org.jooq.impl.TableImpl; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +public class CertificateApplyRecord extends TableImpl { + + private static final long serialVersionUID = 1L; + + /** + * The reference instance of public.certificate_apply_record + */ + public static final CertificateApplyRecord CERTIFICATE_APPLY_RECORD = new CertificateApplyRecord(); + + /** + * The class holding records for this type + */ + @Override + public Class getRecordType() { + return CertificateApplyRecordRecord.class; + } + + /** + * The column public.certificate_apply_record.id. + */ + public final TableField ID = createField(DSL.name("id"), SQLDataType.VARCHAR(32).nullable(false), this, ""); + + /** + * The column + * public.certificate_apply_record.certificate_apply_id. + */ + public final TableField CERTIFICATE_APPLY_ID = createField(DSL.name("certificate_apply_id"), SQLDataType.VARCHAR(32).nullable(false), this, ""); + + /** + * The column + * public.certificate_apply_record.certificate_apply_user_id. + */ + public final TableField CERTIFICATE_APPLY_USER_ID = createField(DSL.name("certificate_apply_user_id"), SQLDataType.VARCHAR(32).nullable(false), this, ""); + + /** + * The column + * public.certificate_apply_record.certificate_apply_user_org_id. + */ + public final TableField CERTIFICATE_APPLY_USER_ORG_ID = createField(DSL.name("certificate_apply_user_org_id"), SQLDataType.VARCHAR(32).nullable(false), this, ""); + + /** + * The column public.certificate_apply_record.is_org. + */ + public final TableField IS_ORG = createField(DSL.name("is_org"), SQLDataType.INTEGER.nullable(false).defaultValue(DSL.field(DSL.raw("0"), SQLDataType.INTEGER)), this, ""); + + /** + * The column public.certificate_apply_record.apply_type. + */ + public final TableField APPLY_TYPE = createField(DSL.name("apply_type"), SQLDataType.INTEGER.nullable(false).defaultValue(DSL.field(DSL.raw("0"), SQLDataType.INTEGER)), this, ""); + + /** + * The column public.certificate_apply_record.check_user_id. + */ + public final TableField CHECK_USER_ID = createField(DSL.name("check_user_id"), SQLDataType.VARCHAR, this, ""); + + /** + * The column public.certificate_apply_record.check_user_name. + */ + public final TableField CHECK_USER_NAME = createField(DSL.name("check_user_name"), SQLDataType.VARCHAR, this, ""); + + /** + * The column public.certificate_apply_record.check_org_id. + */ + public final TableField CHECK_ORG_ID = createField(DSL.name("check_org_id"), SQLDataType.VARCHAR, this, ""); + + /** + * The column public.certificate_apply_record.check_org_name. + */ + public final TableField CHECK_ORG_NAME = createField(DSL.name("check_org_name"), SQLDataType.VARCHAR, this, ""); + + /** + * The column public.certificate_apply_record.check_describe. + */ + public final TableField CHECK_DESCRIBE = createField(DSL.name("check_describe"), SQLDataType.VARCHAR(255), this, ""); + + /** + * The column public.certificate_apply_record.check_status. + */ + public final TableField CHECK_STATUS = createField(DSL.name("check_status"), SQLDataType.INTEGER.defaultValue(DSL.field(DSL.raw("1"), SQLDataType.INTEGER)), this, ""); + + /** + * The column public.certificate_apply_record.check_time. + */ + public final TableField CHECK_TIME = createField(DSL.name("check_time"), SQLDataType.LOCALDATETIME(6), this, ""); + + /** + * The column + * public.certificate_apply_record.next_check_org_id. + */ + public final TableField NEXT_CHECK_ORG_ID = createField(DSL.name("next_check_org_id"), SQLDataType.VARCHAR(32), this, ""); + + /** + * The column + * public.certificate_apply_record.next_check_org_name. + */ + public final TableField NEXT_CHECK_ORG_NAME = createField(DSL.name("next_check_org_name"), SQLDataType.VARCHAR(32), this, ""); + + private CertificateApplyRecord(Name alias, Table aliased) { + this(alias, aliased, null); + } + + private CertificateApplyRecord(Name alias, Table aliased, Field[] parameters) { + super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table()); + } + + /** + * Create an aliased public.certificate_apply_record table + * reference + */ + public CertificateApplyRecord(String alias) { + this(DSL.name(alias), CERTIFICATE_APPLY_RECORD); + } + + /** + * Create an aliased public.certificate_apply_record table + * reference + */ + public CertificateApplyRecord(Name alias) { + this(alias, CERTIFICATE_APPLY_RECORD); + } + + /** + * Create a public.certificate_apply_record table reference + */ + public CertificateApplyRecord() { + this(DSL.name("certificate_apply_record"), null); + } + + public CertificateApplyRecord(Table child, ForeignKey key) { + super(child, key, CERTIFICATE_APPLY_RECORD); + } + + @Override + public Schema getSchema() { + return aliased() ? null : Public.PUBLIC; + } + + @Override + public UniqueKey getPrimaryKey() { + return Keys.CERTIFICATE_APPLY_RECORD_PKEY; + } + + @Override + public CertificateApplyRecord as(String alias) { + return new CertificateApplyRecord(DSL.name(alias), this); + } + + @Override + public CertificateApplyRecord as(Name alias) { + return new CertificateApplyRecord(alias, this); + } + + @Override + public CertificateApplyRecord as(Table alias) { + return new CertificateApplyRecord(alias.getQualifiedName(), this); + } + + /** + * Rename this table + */ + @Override + public CertificateApplyRecord rename(String name) { + return new CertificateApplyRecord(DSL.name(name), null); + } + + /** + * Rename this table + */ + @Override + public CertificateApplyRecord rename(Name name) { + return new CertificateApplyRecord(name, null); + } + + /** + * Rename this table + */ + @Override + public CertificateApplyRecord rename(Table name) { + return new CertificateApplyRecord(name.getQualifiedName(), null); + } + + // ------------------------------------------------------------------------- + // Row15 type methods + // ------------------------------------------------------------------------- + + @Override + public Row15 fieldsRow() { + return (Row15) super.fieldsRow(); + } + + /** + * Convenience mapping calling {@link SelectField#convertFrom(Function)}. + */ + public SelectField mapping(Function15 from) { + return convertFrom(Records.mapping(from)); + } + + /** + * Convenience mapping calling {@link SelectField#convertFrom(Class, + * Function)}. + */ + public SelectField mapping(Class toType, Function15 from) { + return convertFrom(toType, Records.mapping(from)); + } +} diff --git a/src/main/java/jj/tech/paolu/repository/jooq/tables/CertificateDetail.java b/src/main/java/jj/tech/paolu/repository/jooq/tables/CertificateDetail.java new file mode 100644 index 0000000..b815158 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/jooq/tables/CertificateDetail.java @@ -0,0 +1,228 @@ +/* + * This file is generated by jOOQ. + */ +package jj.tech.paolu.repository.jooq.tables; + + +import java.time.LocalDateTime; +import java.util.function.Function; + +import jj.tech.paolu.repository.jooq.Keys; +import jj.tech.paolu.repository.jooq.Public; +import jj.tech.paolu.repository.jooq.tables.records.CertificateDetailRecord; + +import org.jooq.Field; +import org.jooq.ForeignKey; +import org.jooq.Function14; +import org.jooq.Name; +import org.jooq.Record; +import org.jooq.Records; +import org.jooq.Row14; +import org.jooq.Schema; +import org.jooq.SelectField; +import org.jooq.Table; +import org.jooq.TableField; +import org.jooq.TableOptions; +import org.jooq.UniqueKey; +import org.jooq.impl.DSL; +import org.jooq.impl.SQLDataType; +import org.jooq.impl.TableImpl; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +public class CertificateDetail extends TableImpl { + + private static final long serialVersionUID = 1L; + + /** + * The reference instance of public.certificate_detail + */ + public static final CertificateDetail CERTIFICATE_DETAIL = new CertificateDetail(); + + /** + * The class holding records for this type + */ + @Override + public Class getRecordType() { + return CertificateDetailRecord.class; + } + + /** + * The column public.certificate_detail.id. + */ + public final TableField ID = createField(DSL.name("id"), SQLDataType.VARCHAR(32).nullable(false), this, ""); + + /** + * The column public.certificate_detail.certificate_apply_id. + */ + public final TableField CERTIFICATE_APPLY_ID = createField(DSL.name("certificate_apply_id"), SQLDataType.VARCHAR(32).nullable(false), this, ""); + + /** + * The column public.certificate_detail.work_start_time. + */ + public final TableField WORK_START_TIME = createField(DSL.name("work_start_time"), SQLDataType.LOCALDATETIME(6), this, ""); + + /** + * The column public.certificate_detail.work_end_time. + */ + public final TableField WORK_END_TIME = createField(DSL.name("work_end_time"), SQLDataType.LOCALDATETIME(6), this, ""); + + /** + * The column public.certificate_detail.status. + */ + public final TableField STATUS = createField(DSL.name("status"), SQLDataType.INTEGER.nullable(false).defaultValue(DSL.field(DSL.raw("0"), SQLDataType.INTEGER)), this, ""); + + /** + * The column public.certificate_detail.cert_file_content. + */ + public final TableField CERT_FILE_CONTENT = createField(DSL.name("cert_file_content"), SQLDataType.VARCHAR(2048), this, ""); + + /** + * The column public.certificate_detail.is_up_chain. + */ + public final TableField IS_UP_CHAIN = createField(DSL.name("is_up_chain"), SQLDataType.INTEGER.nullable(false).defaultValue(DSL.field(DSL.raw("0"), SQLDataType.INTEGER)), this, ""); + + /** + * The column public.certificate_detail.weid. + */ + public final TableField WEID = createField(DSL.name("weid"), SQLDataType.VARCHAR(64), this, ""); + + /** + * The column public.certificate_detail.private_key_hex_str. + */ + public final TableField PRIVATE_KEY_HEX_STR = createField(DSL.name("private_key_hex_str"), SQLDataType.VARCHAR(128), this, ""); + + /** + * The column public.certificate_detail.x509_serial_number. + */ + public final TableField X509_SERIAL_NUMBER = createField(DSL.name("x509_serial_number"), SQLDataType.VARCHAR(256), this, ""); + + /** + * The column public.certificate_detail.x509_subject. + */ + public final TableField X509_SUBJECT = createField(DSL.name("x509_subject"), SQLDataType.VARCHAR(256), this, ""); + + /** + * The column public.certificate_detail.x509_issuer. + */ + public final TableField X509_ISSUER = createField(DSL.name("x509_issuer"), SQLDataType.VARCHAR(256), this, ""); + + /** + * The column public.certificate_detail.x509_public_key. + */ + public final TableField X509_PUBLIC_KEY = createField(DSL.name("x509_public_key"), SQLDataType.VARCHAR(256), this, ""); + + /** + * The column public.certificate_detail.x509_sig_alg_name. + */ + public final TableField X509_SIG_ALG_NAME = createField(DSL.name("x509_sig_alg_name"), SQLDataType.VARCHAR(256), this, ""); + + private CertificateDetail(Name alias, Table aliased) { + this(alias, aliased, null); + } + + private CertificateDetail(Name alias, Table aliased, Field[] parameters) { + super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table()); + } + + /** + * Create an aliased public.certificate_detail table reference + */ + public CertificateDetail(String alias) { + this(DSL.name(alias), CERTIFICATE_DETAIL); + } + + /** + * Create an aliased public.certificate_detail table reference + */ + public CertificateDetail(Name alias) { + this(alias, CERTIFICATE_DETAIL); + } + + /** + * Create a public.certificate_detail table reference + */ + public CertificateDetail() { + this(DSL.name("certificate_detail"), null); + } + + public CertificateDetail(Table child, ForeignKey key) { + super(child, key, CERTIFICATE_DETAIL); + } + + @Override + public Schema getSchema() { + return aliased() ? null : Public.PUBLIC; + } + + @Override + public UniqueKey getPrimaryKey() { + return Keys.CERTIFICATE_DETAIL_PKEY; + } + + @Override + public CertificateDetail as(String alias) { + return new CertificateDetail(DSL.name(alias), this); + } + + @Override + public CertificateDetail as(Name alias) { + return new CertificateDetail(alias, this); + } + + @Override + public CertificateDetail as(Table alias) { + return new CertificateDetail(alias.getQualifiedName(), this); + } + + /** + * Rename this table + */ + @Override + public CertificateDetail rename(String name) { + return new CertificateDetail(DSL.name(name), null); + } + + /** + * Rename this table + */ + @Override + public CertificateDetail rename(Name name) { + return new CertificateDetail(name, null); + } + + /** + * Rename this table + */ + @Override + public CertificateDetail rename(Table name) { + return new CertificateDetail(name.getQualifiedName(), null); + } + + // ------------------------------------------------------------------------- + // Row14 type methods + // ------------------------------------------------------------------------- + + @Override + public Row14 fieldsRow() { + return (Row14) super.fieldsRow(); + } + + /** + * Convenience mapping calling {@link SelectField#convertFrom(Function)}. + */ + public SelectField mapping(Function14 from) { + return convertFrom(Records.mapping(from)); + } + + /** + * Convenience mapping calling {@link SelectField#convertFrom(Class, + * Function)}. + */ + public SelectField mapping(Class toType, Function14 from) { + return convertFrom(toType, Records.mapping(from)); + } +} diff --git a/src/main/java/jj/tech/paolu/repository/jooq/tables/DecryptLog.java b/src/main/java/jj/tech/paolu/repository/jooq/tables/DecryptLog.java new file mode 100644 index 0000000..b8dda3f --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/jooq/tables/DecryptLog.java @@ -0,0 +1,203 @@ +/* + * This file is generated by jOOQ. + */ +package jj.tech.paolu.repository.jooq.tables; + + +import java.time.LocalDateTime; +import java.util.function.Function; + +import jj.tech.paolu.repository.jooq.Keys; +import jj.tech.paolu.repository.jooq.Public; +import jj.tech.paolu.repository.jooq.tables.records.DecryptLogRecord; + +import org.jooq.Field; +import org.jooq.ForeignKey; +import org.jooq.Function9; +import org.jooq.Name; +import org.jooq.Record; +import org.jooq.Records; +import org.jooq.Row9; +import org.jooq.Schema; +import org.jooq.SelectField; +import org.jooq.Table; +import org.jooq.TableField; +import org.jooq.TableOptions; +import org.jooq.UniqueKey; +import org.jooq.impl.DSL; +import org.jooq.impl.SQLDataType; +import org.jooq.impl.TableImpl; + + +/** + * 解密情况 + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +public class DecryptLog extends TableImpl { + + private static final long serialVersionUID = 1L; + + /** + * The reference instance of public.decrypt_log + */ + public static final DecryptLog DECRYPT_LOG = new DecryptLog(); + + /** + * The class holding records for this type + */ + @Override + public Class getRecordType() { + return DecryptLogRecord.class; + } + + /** + * The column public.decrypt_log.id. + */ + public final TableField ID = createField(DSL.name("id"), SQLDataType.VARCHAR(32).nullable(false), this, ""); + + /** + * The column public.decrypt_log.weid. 申请人id + */ + public final TableField WEID = createField(DSL.name("weid"), SQLDataType.VARCHAR(255), this, "申请人id"); + + /** + * The column public.decrypt_log.content_type. 档案类型(0件/1件内文件) + */ + public final TableField CONTENT_TYPE = createField(DSL.name("content_type"), SQLDataType.INTEGER, this, "档案类型(0件/1件内文件)"); + + /** + * The column public.decrypt_log.content_id. 档案id + */ + public final TableField CONTENT_ID = createField(DSL.name("content_id"), SQLDataType.VARCHAR(255), this, "档案id"); + + /** + * The column public.decrypt_log.dec_time. 解密时间 + */ + public final TableField DEC_TIME = createField(DSL.name("dec_time"), SQLDataType.LOCALDATETIME(6), this, "解密时间"); + + /** + * The column public.decrypt_log.location. 区域 + */ + public final TableField LOCATION = createField(DSL.name("location"), SQLDataType.VARCHAR(255), this, "区域"); + + /** + * The column public.decrypt_log.sm9hibeid. 秘钥id + */ + public final TableField SM9HIBEID = createField(DSL.name("sm9hibeid"), SQLDataType.VARCHAR(255), this, "秘钥id"); + + /** + * The column public.decrypt_log.status. 解密结果(0失败1成功) + */ + public final TableField STATUS = createField(DSL.name("status"), SQLDataType.INTEGER, this, "解密结果(0失败1成功)"); + + /** + * The column public.decrypt_log.sign. 数字签名 + */ + public final TableField SIGN = createField(DSL.name("sign"), SQLDataType.VARCHAR(255), this, "数字签名"); + + private DecryptLog(Name alias, Table aliased) { + this(alias, aliased, null); + } + + private DecryptLog(Name alias, Table aliased, Field[] parameters) { + super(alias, null, aliased, parameters, DSL.comment("解密情况"), TableOptions.table()); + } + + /** + * Create an aliased public.decrypt_log table reference + */ + public DecryptLog(String alias) { + this(DSL.name(alias), DECRYPT_LOG); + } + + /** + * Create an aliased public.decrypt_log table reference + */ + public DecryptLog(Name alias) { + this(alias, DECRYPT_LOG); + } + + /** + * Create a public.decrypt_log table reference + */ + public DecryptLog() { + this(DSL.name("decrypt_log"), null); + } + + public DecryptLog(Table child, ForeignKey key) { + super(child, key, DECRYPT_LOG); + } + + @Override + public Schema getSchema() { + return aliased() ? null : Public.PUBLIC; + } + + @Override + public UniqueKey getPrimaryKey() { + return Keys.DECRYPT_PKEY; + } + + @Override + public DecryptLog as(String alias) { + return new DecryptLog(DSL.name(alias), this); + } + + @Override + public DecryptLog as(Name alias) { + return new DecryptLog(alias, this); + } + + @Override + public DecryptLog as(Table alias) { + return new DecryptLog(alias.getQualifiedName(), this); + } + + /** + * Rename this table + */ + @Override + public DecryptLog rename(String name) { + return new DecryptLog(DSL.name(name), null); + } + + /** + * Rename this table + */ + @Override + public DecryptLog rename(Name name) { + return new DecryptLog(name, null); + } + + /** + * Rename this table + */ + @Override + public DecryptLog rename(Table name) { + return new DecryptLog(name.getQualifiedName(), null); + } + + // ------------------------------------------------------------------------- + // Row9 type methods + // ------------------------------------------------------------------------- + + @Override + public Row9 fieldsRow() { + return (Row9) super.fieldsRow(); + } + + /** + * Convenience mapping calling {@link SelectField#convertFrom(Function)}. + */ + public SelectField mapping(Function9 from) { + return convertFrom(Records.mapping(from)); + } + + /** + * Convenience mapping calling {@link SelectField#convertFrom(Class, + * Function)}. + */ + public SelectField mapping(Class toType, Function9 from) { + return convertFrom(toType, Records.mapping(from)); + } +} diff --git a/src/main/java/jj/tech/paolu/repository/jooq/tables/DownloadLog.java b/src/main/java/jj/tech/paolu/repository/jooq/tables/DownloadLog.java new file mode 100644 index 0000000..8602b63 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/jooq/tables/DownloadLog.java @@ -0,0 +1,195 @@ +/* + * This file is generated by jOOQ. + */ +package jj.tech.paolu.repository.jooq.tables; + + +import java.time.LocalDateTime; +import java.util.function.Function; + +import jj.tech.paolu.repository.jooq.Keys; +import jj.tech.paolu.repository.jooq.Public; +import jj.tech.paolu.repository.jooq.tables.records.DownloadLogRecord; + +import org.jooq.Field; +import org.jooq.ForeignKey; +import org.jooq.Function7; +import org.jooq.Name; +import org.jooq.Record; +import org.jooq.Records; +import org.jooq.Row7; +import org.jooq.Schema; +import org.jooq.SelectField; +import org.jooq.Table; +import org.jooq.TableField; +import org.jooq.TableOptions; +import org.jooq.UniqueKey; +import org.jooq.impl.DSL; +import org.jooq.impl.SQLDataType; +import org.jooq.impl.TableImpl; + + +/** + * 下载行为记录 + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +public class DownloadLog extends TableImpl { + + private static final long serialVersionUID = 1L; + + /** + * The reference instance of public.download_log + */ + public static final DownloadLog DOWNLOAD_LOG = new DownloadLog(); + + /** + * The class holding records for this type + */ + @Override + public Class getRecordType() { + return DownloadLogRecord.class; + } + + /** + * The column public.download_log.id. + */ + public final TableField ID = createField(DSL.name("id"), SQLDataType.VARCHAR(32).nullable(false), this, ""); + + /** + * The column public.download_log.weid. weid + */ + public final TableField WEID = createField(DSL.name("weid"), SQLDataType.VARCHAR(32), this, "weid"); + + /** + * The column public.download_log.downloadtime. 下载时间 + */ + public final TableField DOWNLOADTIME = createField(DSL.name("downloadtime"), SQLDataType.LOCALDATETIME(0), this, "下载时间"); + + /** + * The column public.download_log.filenum. 下载文件数 + */ + public final TableField FILENUM = createField(DSL.name("filenum"), SQLDataType.INTEGER, this, "下载文件数"); + + /** + * The column public.download_log.content_type. + * 下载类型(1文件包/2单个附件(SyncFile)/3单个件(DirecotryFile)) + */ + public final TableField CONTENT_TYPE = createField(DSL.name("content_type"), SQLDataType.INTEGER, this, "下载类型(1文件包/2单个附件(SyncFile)/3单个件(DirecotryFile))"); + + /** + * The column public.download_log.contentid. + * 下载记录ID(如果是单个文件,就取ID,如果是包,就是包内包含的文件的ID列表) + */ + public final TableField CONTENTID = createField(DSL.name("contentid"), SQLDataType.VARCHAR(255), this, "下载记录ID(如果是单个文件,就取ID,如果是包,就是包内包含的文件的ID列表)"); + + /** + * The column public.download_log.sign. 数字签名 + */ + public final TableField SIGN = createField(DSL.name("sign"), SQLDataType.VARCHAR(255), this, "数字签名"); + + private DownloadLog(Name alias, Table aliased) { + this(alias, aliased, null); + } + + private DownloadLog(Name alias, Table aliased, Field[] parameters) { + super(alias, null, aliased, parameters, DSL.comment("下载行为记录"), TableOptions.table()); + } + + /** + * Create an aliased public.download_log table reference + */ + public DownloadLog(String alias) { + this(DSL.name(alias), DOWNLOAD_LOG); + } + + /** + * Create an aliased public.download_log table reference + */ + public DownloadLog(Name alias) { + this(alias, DOWNLOAD_LOG); + } + + /** + * Create a public.download_log table reference + */ + public DownloadLog() { + this(DSL.name("download_log"), null); + } + + public DownloadLog(Table child, ForeignKey key) { + super(child, key, DOWNLOAD_LOG); + } + + @Override + public Schema getSchema() { + return aliased() ? null : Public.PUBLIC; + } + + @Override + public UniqueKey getPrimaryKey() { + return Keys.DOWNLOAD_LOG_PKEY; + } + + @Override + public DownloadLog as(String alias) { + return new DownloadLog(DSL.name(alias), this); + } + + @Override + public DownloadLog as(Name alias) { + return new DownloadLog(alias, this); + } + + @Override + public DownloadLog as(Table alias) { + return new DownloadLog(alias.getQualifiedName(), this); + } + + /** + * Rename this table + */ + @Override + public DownloadLog rename(String name) { + return new DownloadLog(DSL.name(name), null); + } + + /** + * Rename this table + */ + @Override + public DownloadLog rename(Name name) { + return new DownloadLog(name, null); + } + + /** + * Rename this table + */ + @Override + public DownloadLog rename(Table name) { + return new DownloadLog(name.getQualifiedName(), null); + } + + // ------------------------------------------------------------------------- + // Row7 type methods + // ------------------------------------------------------------------------- + + @Override + public Row7 fieldsRow() { + return (Row7) super.fieldsRow(); + } + + /** + * Convenience mapping calling {@link SelectField#convertFrom(Function)}. + */ + public SelectField mapping(Function7 from) { + return convertFrom(Records.mapping(from)); + } + + /** + * Convenience mapping calling {@link SelectField#convertFrom(Class, + * Function)}. + */ + public SelectField mapping(Class toType, Function7 from) { + return convertFrom(toType, Records.mapping(from)); + } +} diff --git a/src/main/java/jj/tech/paolu/repository/jooq/tables/FilesApply.java b/src/main/java/jj/tech/paolu/repository/jooq/tables/FilesApply.java new file mode 100644 index 0000000..ff4122b --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/jooq/tables/FilesApply.java @@ -0,0 +1,366 @@ +/* + * This file is generated by jOOQ. + */ +package jj.tech.paolu.repository.jooq.tables; + + +import java.time.LocalDateTime; + +import jj.tech.paolu.repository.jooq.Keys; +import jj.tech.paolu.repository.jooq.Public; +import jj.tech.paolu.repository.jooq.tables.records.FilesApplyRecord; + +import org.jooq.Field; +import org.jooq.ForeignKey; +import org.jooq.Name; +import org.jooq.Record; +import org.jooq.Schema; +import org.jooq.Table; +import org.jooq.TableField; +import org.jooq.TableOptions; +import org.jooq.UniqueKey; +import org.jooq.impl.DSL; +import org.jooq.impl.SQLDataType; +import org.jooq.impl.TableImpl; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +public class FilesApply extends TableImpl { + + private static final long serialVersionUID = 1L; + + /** + * The reference instance of public.files_apply + */ + public static final FilesApply FILES_APPLY = new FilesApply(); + + /** + * The class holding records for this type + */ + @Override + public Class getRecordType() { + return FilesApplyRecord.class; + } + + /** + * The column public.files_apply.id. + */ + public final TableField ID = createField(DSL.name("id"), SQLDataType.VARCHAR(32).nullable(false), this, ""); + + /** + * The column public.files_apply.apply_user_id. + */ + public final TableField APPLY_USER_ID = createField(DSL.name("apply_user_id"), SQLDataType.VARCHAR(32).nullable(false), this, ""); + + /** + * The column public.files_apply.apply_user_name. + */ + public final TableField APPLY_USER_NAME = createField(DSL.name("apply_user_name"), SQLDataType.VARCHAR(200).nullable(false), this, ""); + + /** + * The column public.files_apply.apply_user_phone. + */ + public final TableField APPLY_USER_PHONE = createField(DSL.name("apply_user_phone"), SQLDataType.VARCHAR(32).nullable(false), this, ""); + + /** + * The column public.files_apply.apply_user_email. + */ + public final TableField APPLY_USER_EMAIL = createField(DSL.name("apply_user_email"), SQLDataType.VARCHAR(32), this, ""); + + /** + * The column public.files_apply.apply_org_id. + */ + public final TableField APPLY_ORG_ID = createField(DSL.name("apply_org_id"), SQLDataType.VARCHAR(32).nullable(false), this, ""); + + /** + * The column public.files_apply.apply_org_name. + */ + public final TableField APPLY_ORG_NAME = createField(DSL.name("apply_org_name"), SQLDataType.VARCHAR(200).nullable(false), this, ""); + + /** + * The column public.files_apply.apply_in_check_user_id. + */ + public final TableField APPLY_IN_CHECK_USER_ID = createField(DSL.name("apply_in_check_user_id"), SQLDataType.VARCHAR(32), this, ""); + + /** + * The column public.files_apply.apply_in_check_user_name. + */ + public final TableField APPLY_IN_CHECK_USER_NAME = createField(DSL.name("apply_in_check_user_name"), SQLDataType.VARCHAR(200).defaultValue(DSL.field(DSL.raw("NULL::character varying"), SQLDataType.VARCHAR)), this, ""); + + /** + * The column public.files_apply.apply_in_check_org_id. + */ + public final TableField APPLY_IN_CHECK_ORG_ID = createField(DSL.name("apply_in_check_org_id"), SQLDataType.VARCHAR(32), this, ""); + + /** + * The column public.files_apply.apply_in_check_org_name. + */ + public final TableField APPLY_IN_CHECK_ORG_NAME = createField(DSL.name("apply_in_check_org_name"), SQLDataType.VARCHAR(200).defaultValue(DSL.field(DSL.raw("NULL::character varying"), SQLDataType.VARCHAR)), this, ""); + + /** + * The column public.files_apply.apply_next_check_org_id. + */ + public final TableField APPLY_NEXT_CHECK_ORG_ID = createField(DSL.name("apply_next_check_org_id"), SQLDataType.VARCHAR(32), this, ""); + + /** + * The column public.files_apply.apply_next_check_org_name. + */ + public final TableField APPLY_NEXT_CHECK_ORG_NAME = createField(DSL.name("apply_next_check_org_name"), SQLDataType.VARCHAR(200).defaultValue(DSL.field(DSL.raw("NULL::character varying"), SQLDataType.VARCHAR)), this, ""); + + /** + * The column public.files_apply.apply_end_check_user_id. + */ + public final TableField APPLY_END_CHECK_USER_ID = createField(DSL.name("apply_end_check_user_id"), SQLDataType.VARCHAR(32), this, ""); + + /** + * The column public.files_apply.apply_end_check_user_name. + */ + public final TableField APPLY_END_CHECK_USER_NAME = createField(DSL.name("apply_end_check_user_name"), SQLDataType.VARCHAR(200).defaultValue(DSL.field(DSL.raw("NULL::character varying"), SQLDataType.VARCHAR)), this, ""); + + /** + * The column public.files_apply.apply_end_check_org_id. + */ + public final TableField APPLY_END_CHECK_ORG_ID = createField(DSL.name("apply_end_check_org_id"), SQLDataType.VARCHAR(32).defaultValue(DSL.field(DSL.raw("NULL::character varying"), SQLDataType.VARCHAR)), this, ""); + + /** + * The column public.files_apply.apply_end_check_org_name. + */ + public final TableField APPLY_END_CHECK_ORG_NAME = createField(DSL.name("apply_end_check_org_name"), SQLDataType.VARCHAR(200).defaultValue(DSL.field(DSL.raw("NULL::character varying"), SQLDataType.VARCHAR)), this, ""); + + /** + * The column public.files_apply.apply_days. + */ + public final TableField APPLY_DAYS = createField(DSL.name("apply_days"), SQLDataType.INTEGER, this, ""); + + /** + * The column public.files_apply.apply_feedback. + */ + public final TableField APPLY_FEEDBACK = createField(DSL.name("apply_feedback"), SQLDataType.VARCHAR(32), this, ""); + + /** + * The column public.files_apply.apply_reason. + */ + public final TableField APPLY_REASON = createField(DSL.name("apply_reason"), SQLDataType.VARCHAR(200).defaultValue(DSL.field(DSL.raw("NULL::character varying"), SQLDataType.VARCHAR)), this, ""); + + /** + * The column public.files_apply.apply_cancel_reason. + */ + public final TableField APPLY_CANCEL_REASON = createField(DSL.name("apply_cancel_reason"), SQLDataType.VARCHAR(200).defaultValue(DSL.field(DSL.raw("NULL::character varying"), SQLDataType.VARCHAR)), this, ""); + + /** + * The column public.files_apply.apply_view_type_print. + */ + public final TableField APPLY_VIEW_TYPE_PRINT = createField(DSL.name("apply_view_type_print"), SQLDataType.INTEGER.defaultValue(DSL.field(DSL.raw("0"), SQLDataType.INTEGER)), this, ""); + + /** + * The column public.files_apply.apply_view_type_online. + */ + public final TableField APPLY_VIEW_TYPE_ONLINE = createField(DSL.name("apply_view_type_online"), SQLDataType.INTEGER.defaultValue(DSL.field(DSL.raw("0"), SQLDataType.INTEGER)), this, ""); + + /** + * The column public.files_apply.apply_file_num. + */ + public final TableField APPLY_FILE_NUM = createField(DSL.name("apply_file_num"), SQLDataType.INTEGER.defaultValue(DSL.field(DSL.raw("0"), SQLDataType.INTEGER)), this, ""); + + /** + * The column public.files_apply.apply_time. + */ + public final TableField APPLY_TIME = createField(DSL.name("apply_time"), SQLDataType.LOCALDATETIME(6), this, ""); + + /** + * The column public.files_apply.apply_check_is_finish. + */ + public final TableField APPLY_CHECK_IS_FINISH = createField(DSL.name("apply_check_is_finish"), SQLDataType.INTEGER.defaultValue(DSL.field(DSL.raw("0"), SQLDataType.INTEGER)), this, ""); + + /** + * The column public.files_apply.provider_org_id. + */ + public final TableField PROVIDER_ORG_ID = createField(DSL.name("provider_org_id"), SQLDataType.VARCHAR(32).nullable(false), this, ""); + + /** + * The column public.files_apply.provider_org_name. + */ + public final TableField PROVIDER_ORG_NAME = createField(DSL.name("provider_org_name"), SQLDataType.VARCHAR(200).defaultValue(DSL.field(DSL.raw("NULL::character varying"), SQLDataType.VARCHAR)), this, ""); + + /** + * The column public.files_apply.provider_file_properties. + */ + public final TableField PROVIDER_FILE_PROPERTIES = createField(DSL.name("provider_file_properties"), SQLDataType.INTEGER.defaultValue(DSL.field(DSL.raw("0"), SQLDataType.INTEGER)), this, ""); + + /** + * The column public.files_apply.provider_use_start_time. + */ + public final TableField PROVIDER_USE_START_TIME = createField(DSL.name("provider_use_start_time"), SQLDataType.LOCALDATETIME(6), this, ""); + + /** + * The column public.files_apply.provider_use_end_time. + */ + public final TableField PROVIDER_USE_END_TIME = createField(DSL.name("provider_use_end_time"), SQLDataType.LOCALDATETIME(6), this, ""); + + /** + * The column public.files_apply.provider_in_check_user_id. + */ + public final TableField PROVIDER_IN_CHECK_USER_ID = createField(DSL.name("provider_in_check_user_id"), SQLDataType.VARCHAR(32), this, ""); + + /** + * The column public.files_apply.provider_in_check_user_name. + */ + public final TableField PROVIDER_IN_CHECK_USER_NAME = createField(DSL.name("provider_in_check_user_name"), SQLDataType.VARCHAR(32), this, ""); + + /** + * The column public.files_apply.provider_in_check_org_id. + */ + public final TableField PROVIDER_IN_CHECK_ORG_ID = createField(DSL.name("provider_in_check_org_id"), SQLDataType.VARCHAR(32), this, ""); + + /** + * The column public.files_apply.provider_in_check_org_name. + */ + public final TableField PROVIDER_IN_CHECK_ORG_NAME = createField(DSL.name("provider_in_check_org_name"), SQLDataType.VARCHAR(32), this, ""); + + /** + * The column + * public.files_apply.provider_next_check_role_sign_id. + */ + public final TableField PROVIDER_NEXT_CHECK_ROLE_SIGN_ID = createField(DSL.name("provider_next_check_role_sign_id"), SQLDataType.VARCHAR(32), this, ""); + + /** + * The column + * public.files_apply.provider_next_check_role_sign_name. + */ + public final TableField PROVIDER_NEXT_CHECK_ROLE_SIGN_NAME = createField(DSL.name("provider_next_check_role_sign_name"), SQLDataType.VARCHAR(32), this, ""); + + /** + * The column public.files_apply.provider_end_check_user_id. + */ + public final TableField PROVIDER_END_CHECK_USER_ID = createField(DSL.name("provider_end_check_user_id"), SQLDataType.VARCHAR(32), this, ""); + + /** + * The column public.files_apply.provider_end_check_user_name. + */ + public final TableField PROVIDER_END_CHECK_USER_NAME = createField(DSL.name("provider_end_check_user_name"), SQLDataType.VARCHAR(32), this, ""); + + /** + * The column public.files_apply.provider_end_check_org_id. + */ + public final TableField PROVIDER_END_CHECK_ORG_ID = createField(DSL.name("provider_end_check_org_id"), SQLDataType.VARCHAR(32), this, ""); + + /** + * The column public.files_apply.provider_end_check_org_name. + */ + public final TableField PROVIDER_END_CHECK_ORG_NAME = createField(DSL.name("provider_end_check_org_name"), SQLDataType.VARCHAR(32), this, ""); + + /** + * The column public.files_apply.provider_check_is_finish. + */ + public final TableField PROVIDER_CHECK_IS_FINISH = createField(DSL.name("provider_check_is_finish"), SQLDataType.INTEGER.defaultValue(DSL.field(DSL.raw("0"), SQLDataType.INTEGER)), this, ""); + + /** + * The column public.files_apply.secret_key. + */ + public final TableField SECRET_KEY = createField(DSL.name("secret_key"), SQLDataType.VARCHAR(32), this, ""); + + /** + * The column public.files_apply.status. + */ + public final TableField STATUS = createField(DSL.name("status"), SQLDataType.INTEGER.defaultValue(DSL.field(DSL.raw("1"), SQLDataType.INTEGER)), this, ""); + + /** + * The column public.files_apply.project_id. + */ + public final TableField PROJECT_ID = createField(DSL.name("project_id"), SQLDataType.VARCHAR(32), this, ""); + + /** + * The column public.files_apply.project_name. + */ + public final TableField PROJECT_NAME = createField(DSL.name("project_name"), SQLDataType.VARCHAR(32), this, ""); + + /** + * The column public.files_apply.sign. 签名 + */ + public final TableField SIGN = createField(DSL.name("sign"), SQLDataType.VARCHAR(500), this, "签名"); + + private FilesApply(Name alias, Table aliased) { + this(alias, aliased, null); + } + + private FilesApply(Name alias, Table aliased, Field[] parameters) { + super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table()); + } + + /** + * Create an aliased public.files_apply table reference + */ + public FilesApply(String alias) { + this(DSL.name(alias), FILES_APPLY); + } + + /** + * Create an aliased public.files_apply table reference + */ + public FilesApply(Name alias) { + this(alias, FILES_APPLY); + } + + /** + * Create a public.files_apply table reference + */ + public FilesApply() { + this(DSL.name("files_apply"), null); + } + + public FilesApply(Table child, ForeignKey key) { + super(child, key, FILES_APPLY); + } + + @Override + public Schema getSchema() { + return aliased() ? null : Public.PUBLIC; + } + + @Override + public UniqueKey getPrimaryKey() { + return Keys.FILES_APPLY_PKEY; + } + + @Override + public FilesApply as(String alias) { + return new FilesApply(DSL.name(alias), this); + } + + @Override + public FilesApply as(Name alias) { + return new FilesApply(alias, this); + } + + @Override + public FilesApply as(Table alias) { + return new FilesApply(alias.getQualifiedName(), this); + } + + /** + * Rename this table + */ + @Override + public FilesApply rename(String name) { + return new FilesApply(DSL.name(name), null); + } + + /** + * Rename this table + */ + @Override + public FilesApply rename(Name name) { + return new FilesApply(name, null); + } + + /** + * Rename this table + */ + @Override + public FilesApply rename(Table name) { + return new FilesApply(name.getQualifiedName(), null); + } +} diff --git a/src/main/java/jj/tech/paolu/repository/jooq/tables/FilesApplyCheckRecord.java b/src/main/java/jj/tech/paolu/repository/jooq/tables/FilesApplyCheckRecord.java new file mode 100644 index 0000000..7e79f7a --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/jooq/tables/FilesApplyCheckRecord.java @@ -0,0 +1,240 @@ +/* + * This file is generated by jOOQ. + */ +package jj.tech.paolu.repository.jooq.tables; + + +import java.time.LocalDateTime; +import java.util.function.Function; + +import jj.tech.paolu.repository.jooq.Keys; +import jj.tech.paolu.repository.jooq.Public; +import jj.tech.paolu.repository.jooq.tables.records.FilesApplyCheckRecordRecord; + +import org.jooq.Field; +import org.jooq.ForeignKey; +import org.jooq.Function15; +import org.jooq.Name; +import org.jooq.Record; +import org.jooq.Records; +import org.jooq.Row15; +import org.jooq.Schema; +import org.jooq.SelectField; +import org.jooq.Table; +import org.jooq.TableField; +import org.jooq.TableOptions; +import org.jooq.UniqueKey; +import org.jooq.impl.DSL; +import org.jooq.impl.SQLDataType; +import org.jooq.impl.TableImpl; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +public class FilesApplyCheckRecord extends TableImpl { + + private static final long serialVersionUID = 1L; + + /** + * The reference instance of public.files_apply_check_record + */ + public static final FilesApplyCheckRecord FILES_APPLY_CHECK_RECORD = new FilesApplyCheckRecord(); + + /** + * The class holding records for this type + */ + @Override + public Class getRecordType() { + return FilesApplyCheckRecordRecord.class; + } + + /** + * The column public.files_apply_check_record.id. + */ + public final TableField ID = createField(DSL.name("id"), SQLDataType.VARCHAR(32).nullable(false), this, ""); + + /** + * The column public.files_apply_check_record.files_apply_id. + */ + public final TableField FILES_APPLY_ID = createField(DSL.name("files_apply_id"), SQLDataType.VARCHAR(32).nullable(false), this, ""); + + /** + * The column + * public.files_apply_check_record.is_apply_provider. + */ + public final TableField IS_APPLY_PROVIDER = createField(DSL.name("is_apply_provider"), SQLDataType.INTEGER.defaultValue(DSL.field(DSL.raw("0"), SQLDataType.INTEGER)), this, ""); + + /** + * The column public.files_apply_check_record.check_user_id. + */ + public final TableField CHECK_USER_ID = createField(DSL.name("check_user_id"), SQLDataType.VARCHAR(32), this, ""); + + /** + * The column public.files_apply_check_record.check_user_name. + */ + public final TableField CHECK_USER_NAME = createField(DSL.name("check_user_name"), SQLDataType.VARCHAR(200).defaultValue(DSL.field(DSL.raw("NULL::character varying"), SQLDataType.VARCHAR)), this, ""); + + /** + * The column public.files_apply_check_record.check_org_id. + */ + public final TableField CHECK_ORG_ID = createField(DSL.name("check_org_id"), SQLDataType.VARCHAR(32), this, ""); + + /** + * The column public.files_apply_check_record.check_org_name. + */ + public final TableField CHECK_ORG_NAME = createField(DSL.name("check_org_name"), SQLDataType.VARCHAR(200).defaultValue(DSL.field(DSL.raw("NULL::character varying"), SQLDataType.VARCHAR)), this, ""); + + /** + * The column + * public.files_apply_check_record.next_check_org_id. + */ + public final TableField NEXT_CHECK_ORG_ID = createField(DSL.name("next_check_org_id"), SQLDataType.VARCHAR(32), this, ""); + + /** + * The column + * public.files_apply_check_record.next_check_org_name. + */ + public final TableField NEXT_CHECK_ORG_NAME = createField(DSL.name("next_check_org_name"), SQLDataType.VARCHAR(200).defaultValue(DSL.field(DSL.raw("NULL::character varying"), SQLDataType.VARCHAR)), this, ""); + + /** + * The column public.files_apply_check_record.check_describe. + */ + public final TableField CHECK_DESCRIBE = createField(DSL.name("check_describe"), SQLDataType.VARCHAR(500).defaultValue(DSL.field(DSL.raw("NULL::character varying"), SQLDataType.VARCHAR)), this, ""); + + /** + * The column public.files_apply_check_record.check_status. + */ + public final TableField CHECK_STATUS = createField(DSL.name("check_status"), SQLDataType.INTEGER.defaultValue(DSL.field(DSL.raw("1"), SQLDataType.INTEGER)), this, ""); + + /** + * The column public.files_apply_check_record.check_time. + */ + public final TableField CHECK_TIME = createField(DSL.name("check_time"), SQLDataType.LOCALDATETIME(6), this, ""); + + /** + * The column + * public.files_apply_check_record.provider_next_check_role_sign_id. + */ + public final TableField PROVIDER_NEXT_CHECK_ROLE_SIGN_ID = createField(DSL.name("provider_next_check_role_sign_id"), SQLDataType.VARCHAR(32), this, ""); + + /** + * The column + * public.files_apply_check_record.provider_next_check_role_sign_name. + */ + public final TableField PROVIDER_NEXT_CHECK_ROLE_SIGN_NAME = createField(DSL.name("provider_next_check_role_sign_name"), SQLDataType.VARCHAR(100).defaultValue(DSL.field(DSL.raw("NULL::character varying"), SQLDataType.VARCHAR)), this, ""); + + /** + * The column public.files_apply_check_record.sign. + */ + public final TableField SIGN = createField(DSL.name("sign"), SQLDataType.VARCHAR(200).defaultValue(DSL.field(DSL.raw("NULL::character varying"), SQLDataType.VARCHAR)), this, ""); + + private FilesApplyCheckRecord(Name alias, Table aliased) { + this(alias, aliased, null); + } + + private FilesApplyCheckRecord(Name alias, Table aliased, Field[] parameters) { + super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table()); + } + + /** + * Create an aliased public.files_apply_check_record table + * reference + */ + public FilesApplyCheckRecord(String alias) { + this(DSL.name(alias), FILES_APPLY_CHECK_RECORD); + } + + /** + * Create an aliased public.files_apply_check_record table + * reference + */ + public FilesApplyCheckRecord(Name alias) { + this(alias, FILES_APPLY_CHECK_RECORD); + } + + /** + * Create a public.files_apply_check_record table reference + */ + public FilesApplyCheckRecord() { + this(DSL.name("files_apply_check_record"), null); + } + + public FilesApplyCheckRecord(Table child, ForeignKey key) { + super(child, key, FILES_APPLY_CHECK_RECORD); + } + + @Override + public Schema getSchema() { + return aliased() ? null : Public.PUBLIC; + } + + @Override + public UniqueKey getPrimaryKey() { + return Keys.FILES_APPLY_CHECK_RECORD_PKEY; + } + + @Override + public FilesApplyCheckRecord as(String alias) { + return new FilesApplyCheckRecord(DSL.name(alias), this); + } + + @Override + public FilesApplyCheckRecord as(Name alias) { + return new FilesApplyCheckRecord(alias, this); + } + + @Override + public FilesApplyCheckRecord as(Table alias) { + return new FilesApplyCheckRecord(alias.getQualifiedName(), this); + } + + /** + * Rename this table + */ + @Override + public FilesApplyCheckRecord rename(String name) { + return new FilesApplyCheckRecord(DSL.name(name), null); + } + + /** + * Rename this table + */ + @Override + public FilesApplyCheckRecord rename(Name name) { + return new FilesApplyCheckRecord(name, null); + } + + /** + * Rename this table + */ + @Override + public FilesApplyCheckRecord rename(Table name) { + return new FilesApplyCheckRecord(name.getQualifiedName(), null); + } + + // ------------------------------------------------------------------------- + // Row15 type methods + // ------------------------------------------------------------------------- + + @Override + public Row15 fieldsRow() { + return (Row15) super.fieldsRow(); + } + + /** + * Convenience mapping calling {@link SelectField#convertFrom(Function)}. + */ + public SelectField mapping(Function15 from) { + return convertFrom(Records.mapping(from)); + } + + /** + * Convenience mapping calling {@link SelectField#convertFrom(Class, + * Function)}. + */ + public SelectField mapping(Class toType, Function15 from) { + return convertFrom(toType, Records.mapping(from)); + } +} diff --git a/src/main/java/jj/tech/paolu/repository/jooq/tables/FilesApplyDirectoryDocs.java b/src/main/java/jj/tech/paolu/repository/jooq/tables/FilesApplyDirectoryDocs.java new file mode 100644 index 0000000..4a2da12 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/jooq/tables/FilesApplyDirectoryDocs.java @@ -0,0 +1,246 @@ +/* + * This file is generated by jOOQ. + */ +package jj.tech.paolu.repository.jooq.tables; + + +import jj.tech.paolu.repository.jooq.Keys; +import jj.tech.paolu.repository.jooq.Public; +import jj.tech.paolu.repository.jooq.tables.records.FilesApplyDirectoryDocsRecord; + +import org.jooq.Field; +import org.jooq.ForeignKey; +import org.jooq.Name; +import org.jooq.Record; +import org.jooq.Schema; +import org.jooq.Table; +import org.jooq.TableField; +import org.jooq.TableOptions; +import org.jooq.UniqueKey; +import org.jooq.impl.DSL; +import org.jooq.impl.SQLDataType; +import org.jooq.impl.TableImpl; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +public class FilesApplyDirectoryDocs extends TableImpl { + + private static final long serialVersionUID = 1L; + + /** + * The reference instance of public.files_apply_directory_docs + */ + public static final FilesApplyDirectoryDocs FILES_APPLY_DIRECTORY_DOCS = new FilesApplyDirectoryDocs(); + + /** + * The class holding records for this type + */ + @Override + public Class getRecordType() { + return FilesApplyDirectoryDocsRecord.class; + } + + /** + * The column public.files_apply_directory_docs.id. + */ + public final TableField ID = createField(DSL.name("id"), SQLDataType.VARCHAR(32).nullable(false), this, ""); + + /** + * The column public.files_apply_directory_docs.files_apply_id. + */ + public final TableField FILES_APPLY_ID = createField(DSL.name("files_apply_id"), SQLDataType.VARCHAR(32).nullable(false), this, ""); + + /** + * The column + * public.files_apply_directory_docs.directory_file_id. + */ + public final TableField DIRECTORY_FILE_ID = createField(DSL.name("directory_file_id"), SQLDataType.VARCHAR(50).nullable(false), this, ""); + + /** + * The column + * public.files_apply_directory_docs.directory_file_p_id. + */ + public final TableField DIRECTORY_FILE_P_ID = createField(DSL.name("directory_file_p_id"), SQLDataType.VARCHAR(50), this, ""); + + /** + * The column public.files_apply_directory_docs.filesuper. + */ + public final TableField FILESUPER = createField(DSL.name("filesuper"), SQLDataType.VARCHAR(500).defaultValue(DSL.field(DSL.raw("NULL::character varying"), SQLDataType.VARCHAR)), this, ""); + + /** + * The column public.files_apply_directory_docs.filecount. + */ + public final TableField FILECOUNT = createField(DSL.name("filecount"), SQLDataType.INTEGER, this, ""); + + /** + * The column public.files_apply_directory_docs.dutyperson. + */ + public final TableField DUTYPERSON = createField(DSL.name("dutyperson"), SQLDataType.VARCHAR(100).defaultValue(DSL.field(DSL.raw("NULL::character varying"), SQLDataType.VARCHAR)), this, ""); + + /** + * The column public.files_apply_directory_docs.eweavedate. + */ + public final TableField EWEAVEDATE = createField(DSL.name("eweavedate"), SQLDataType.VARCHAR(100).defaultValue(DSL.field(DSL.raw("NULL::character varying"), SQLDataType.VARCHAR)), this, ""); + + /** + * The column public.files_apply_directory_docs.filepage. + */ + public final TableField FILEPAGE = createField(DSL.name("filepage"), SQLDataType.INTEGER, this, ""); + + /** + * The column public.files_apply_directory_docs.sortorder. + */ + public final TableField SORTORDER = createField(DSL.name("sortorder"), SQLDataType.VARCHAR(50).defaultValue(DSL.field(DSL.raw("NULL::character varying"), SQLDataType.VARCHAR)), this, ""); + + /** + * The column public.files_apply_directory_docs.bpeg. + */ + public final TableField BPEG = createField(DSL.name("bpeg"), SQLDataType.VARCHAR(50).defaultValue(DSL.field(DSL.raw("NULL::character varying"), SQLDataType.VARCHAR)), this, ""); + + /** + * The column public.files_apply_directory_docs.epeg. + */ + public final TableField EPEG = createField(DSL.name("epeg"), SQLDataType.VARCHAR(50).defaultValue(DSL.field(DSL.raw("NULL::character varying"), SQLDataType.VARCHAR)), this, ""); + + /** + * The column public.files_apply_directory_docs.filenum. + */ + public final TableField FILENUM = createField(DSL.name("filenum"), SQLDataType.VARCHAR(100).defaultValue(DSL.field(DSL.raw("NULL::character varying"), SQLDataType.VARCHAR)), this, ""); + + /** + * The column public.files_apply_directory_docs.remark. + */ + public final TableField REMARK = createField(DSL.name("remark"), SQLDataType.VARCHAR(300).defaultValue(DSL.field(DSL.raw("NULL::character varying"), SQLDataType.VARCHAR)), this, ""); + + /** + * The column public.files_apply_directory_docs.recordnum. + */ + public final TableField RECORDNUM = createField(DSL.name("recordnum"), SQLDataType.VARCHAR(50).defaultValue(DSL.field(DSL.raw("NULL::character varying"), SQLDataType.VARCHAR)), this, ""); + + /** + * The column public.files_apply_directory_docs.piecenumber. + */ + public final TableField PIECENUMBER = createField(DSL.name("piecenumber"), SQLDataType.VARCHAR(50).defaultValue(DSL.field(DSL.raw("NULL::character varying"), SQLDataType.VARCHAR)), this, ""); + + /** + * The column public.files_apply_directory_docs.adddate. + */ + public final TableField ADDDATE = createField(DSL.name("adddate"), SQLDataType.VARCHAR(50).defaultValue(DSL.field(DSL.raw("NULL::character varying"), SQLDataType.VARCHAR)), this, ""); + + /** + * The column public.files_apply_directory_docs.editdate. + */ + public final TableField EDITDATE = createField(DSL.name("editdate"), SQLDataType.VARCHAR(50).defaultValue(DSL.field(DSL.raw("NULL::character varying"), SQLDataType.VARCHAR)), this, ""); + + /** + * The column public.files_apply_directory_docs.time_stamp. + */ + public final TableField TIME_STAMP = createField(DSL.name("time_stamp"), SQLDataType.VARCHAR(20).defaultValue(DSL.field(DSL.raw("NULL::character varying"), SQLDataType.VARCHAR)), this, ""); + + /** + * The column public.files_apply_directory_docs.isdel. + */ + public final TableField ISDEL = createField(DSL.name("isdel"), SQLDataType.INTEGER, this, ""); + + /** + * The column public.files_apply_directory_docs.catalogpdfurl. + */ + public final TableField CATALOGPDFURL = createField(DSL.name("catalogpdfurl"), SQLDataType.VARCHAR(200).defaultValue(DSL.field(DSL.raw("NULL::character varying"), SQLDataType.VARCHAR)), this, ""); + + /** + * The column public.files_apply_directory_docs.signtag. + */ + public final TableField SIGNTAG = createField(DSL.name("signtag"), SQLDataType.VARCHAR(20).defaultValue(DSL.field(DSL.raw("NULL::character varying"), SQLDataType.VARCHAR)), this, ""); + + /** + * The column public.files_apply_directory_docs.collecttag. + */ + public final TableField COLLECTTAG = createField(DSL.name("collecttag"), SQLDataType.VARCHAR(20).defaultValue(DSL.field(DSL.raw("NULL::character varying"), SQLDataType.VARCHAR)), this, ""); + + private FilesApplyDirectoryDocs(Name alias, Table aliased) { + this(alias, aliased, null); + } + + private FilesApplyDirectoryDocs(Name alias, Table aliased, Field[] parameters) { + super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table()); + } + + /** + * Create an aliased public.files_apply_directory_docs table + * reference + */ + public FilesApplyDirectoryDocs(String alias) { + this(DSL.name(alias), FILES_APPLY_DIRECTORY_DOCS); + } + + /** + * Create an aliased public.files_apply_directory_docs table + * reference + */ + public FilesApplyDirectoryDocs(Name alias) { + this(alias, FILES_APPLY_DIRECTORY_DOCS); + } + + /** + * Create a public.files_apply_directory_docs table reference + */ + public FilesApplyDirectoryDocs() { + this(DSL.name("files_apply_directory_docs"), null); + } + + public FilesApplyDirectoryDocs(Table child, ForeignKey key) { + super(child, key, FILES_APPLY_DIRECTORY_DOCS); + } + + @Override + public Schema getSchema() { + return aliased() ? null : Public.PUBLIC; + } + + @Override + public UniqueKey getPrimaryKey() { + return Keys.FILES_APPLY_DIRECTORY_DOCS_PKEY; + } + + @Override + public FilesApplyDirectoryDocs as(String alias) { + return new FilesApplyDirectoryDocs(DSL.name(alias), this); + } + + @Override + public FilesApplyDirectoryDocs as(Name alias) { + return new FilesApplyDirectoryDocs(alias, this); + } + + @Override + public FilesApplyDirectoryDocs as(Table alias) { + return new FilesApplyDirectoryDocs(alias.getQualifiedName(), this); + } + + /** + * Rename this table + */ + @Override + public FilesApplyDirectoryDocs rename(String name) { + return new FilesApplyDirectoryDocs(DSL.name(name), null); + } + + /** + * Rename this table + */ + @Override + public FilesApplyDirectoryDocs rename(Name name) { + return new FilesApplyDirectoryDocs(name, null); + } + + /** + * Rename this table + */ + @Override + public FilesApplyDirectoryDocs rename(Table name) { + return new FilesApplyDirectoryDocs(name.getQualifiedName(), null); + } +} diff --git a/src/main/java/jj/tech/paolu/repository/jooq/tables/FilesApplyDocs.java b/src/main/java/jj/tech/paolu/repository/jooq/tables/FilesApplyDocs.java new file mode 100644 index 0000000..8509ddc --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/jooq/tables/FilesApplyDocs.java @@ -0,0 +1,271 @@ +/* + * This file is generated by jOOQ. + */ +package jj.tech.paolu.repository.jooq.tables; + + +import java.util.Arrays; +import java.util.List; +import java.util.function.Function; + +import jj.tech.paolu.repository.jooq.Indexes; +import jj.tech.paolu.repository.jooq.Keys; +import jj.tech.paolu.repository.jooq.Public; +import jj.tech.paolu.repository.jooq.tables.records.FilesApplyDocsRecord; + +import org.jooq.Field; +import org.jooq.ForeignKey; +import org.jooq.Function21; +import org.jooq.Index; +import org.jooq.Name; +import org.jooq.Record; +import org.jooq.Records; +import org.jooq.Row21; +import org.jooq.Schema; +import org.jooq.SelectField; +import org.jooq.Table; +import org.jooq.TableField; +import org.jooq.TableOptions; +import org.jooq.UniqueKey; +import org.jooq.impl.DSL; +import org.jooq.impl.SQLDataType; +import org.jooq.impl.TableImpl; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +public class FilesApplyDocs extends TableImpl { + + private static final long serialVersionUID = 1L; + + /** + * The reference instance of public.files_apply_docs + */ + public static final FilesApplyDocs FILES_APPLY_DOCS = new FilesApplyDocs(); + + /** + * The class holding records for this type + */ + @Override + public Class getRecordType() { + return FilesApplyDocsRecord.class; + } + + /** + * The column public.files_apply_docs.id. + */ + public final TableField ID = createField(DSL.name("id"), SQLDataType.VARCHAR(32).nullable(false), this, ""); + + /** + * The column public.files_apply_docs.files_apply_id. + */ + public final TableField FILES_APPLY_ID = createField(DSL.name("files_apply_id"), SQLDataType.VARCHAR(32).nullable(false), this, ""); + + /** + * The column public.files_apply_docs.syn_file_id. + */ + public final TableField SYN_FILE_ID = createField(DSL.name("syn_file_id"), SQLDataType.VARCHAR(50).nullable(false), this, ""); + + /** + * The column public.files_apply_docs.syn_file_p_id. + */ + public final TableField SYN_FILE_P_ID = createField(DSL.name("syn_file_p_id"), SQLDataType.VARCHAR(50), this, ""); + + /** + * The column public.files_apply_docs.tablenumber. + */ + public final TableField TABLENUMBER = createField(DSL.name("tablenumber"), SQLDataType.VARCHAR(200).defaultValue(DSL.field(DSL.raw("NULL::character varying"), SQLDataType.VARCHAR)), this, ""); + + /** + * The column public.files_apply_docs.annexname. + */ + public final TableField ANNEXNAME = createField(DSL.name("annexname"), SQLDataType.VARCHAR(100).defaultValue(DSL.field(DSL.raw("NULL::character varying"), SQLDataType.VARCHAR)), this, ""); + + /** + * The column public.files_apply_docs.projectname. + */ + public final TableField PROJECTNAME = createField(DSL.name("projectname"), SQLDataType.VARCHAR(100).defaultValue(DSL.field(DSL.raw("NULL::character varying"), SQLDataType.VARCHAR)), this, ""); + + /** + * The column public.files_apply_docs.eweavedate. + */ + public final TableField EWEAVEDATE = createField(DSL.name("eweavedate"), SQLDataType.VARCHAR(100).defaultValue(DSL.field(DSL.raw("NULL::character varying"), SQLDataType.VARCHAR)), this, ""); + + /** + * The column public.files_apply_docs.checkdate. + */ + public final TableField CHECKDATE = createField(DSL.name("checkdate"), SQLDataType.VARCHAR(100).defaultValue(DSL.field(DSL.raw("NULL::character varying"), SQLDataType.VARCHAR)), this, ""); + + /** + * The column public.files_apply_docs.annexpage. + */ + public final TableField ANNEXPAGE = createField(DSL.name("annexpage"), SQLDataType.INTEGER, this, ""); + + /** + * The column public.files_apply_docs.sortorder. + */ + public final TableField SORTORDER = createField(DSL.name("sortorder"), SQLDataType.VARCHAR(50).defaultValue(DSL.field(DSL.raw("NULL::character varying"), SQLDataType.VARCHAR)), this, ""); + + /** + * The column public.files_apply_docs.filefrom. + */ + public final TableField FILEFROM = createField(DSL.name("filefrom"), SQLDataType.VARCHAR(50).defaultValue(DSL.field(DSL.raw("NULL::character varying"), SQLDataType.VARCHAR)), this, ""); + + /** + * The column public.files_apply_docs.archivestag. + */ + public final TableField ARCHIVESTAG = createField(DSL.name("archivestag"), SQLDataType.VARCHAR(50).defaultValue(DSL.field(DSL.raw("NULL::character varying"), SQLDataType.VARCHAR)), this, ""); + + /** + * The column public.files_apply_docs.adddate. + */ + public final TableField ADDDATE = createField(DSL.name("adddate"), SQLDataType.VARCHAR(50).defaultValue(DSL.field(DSL.raw("NULL::character varying"), SQLDataType.VARCHAR)), this, ""); + + /** + * The column public.files_apply_docs.editdate. + */ + public final TableField EDITDATE = createField(DSL.name("editdate"), SQLDataType.VARCHAR(50).defaultValue(DSL.field(DSL.raw("NULL::character varying"), SQLDataType.VARCHAR)), this, ""); + + /** + * The column public.files_apply_docs.time_stamp. + */ + public final TableField TIME_STAMP = createField(DSL.name("time_stamp"), SQLDataType.VARCHAR(20).defaultValue(DSL.field(DSL.raw("NULL::character varying"), SQLDataType.VARCHAR)), this, ""); + + /** + * The column public.files_apply_docs.isdel. + */ + public final TableField ISDEL = createField(DSL.name("isdel"), SQLDataType.INTEGER, this, ""); + + /** + * The column public.files_apply_docs.downurl. + */ + public final TableField DOWNURL = createField(DSL.name("downurl"), SQLDataType.VARCHAR(200).defaultValue(DSL.field(DSL.raw("NULL::character varying"), SQLDataType.VARCHAR)), this, ""); + + /** + * The column public.files_apply_docs.filesize. + */ + public final TableField FILESIZE = createField(DSL.name("filesize"), SQLDataType.INTEGER, this, ""); + + /** + * The column public.files_apply_docs.apply_view_type_print. + */ + public final TableField APPLY_VIEW_TYPE_PRINT = createField(DSL.name("apply_view_type_print"), SQLDataType.INTEGER.defaultValue(DSL.field(DSL.raw("0"), SQLDataType.INTEGER)), this, ""); + + /** + * The column public.files_apply_docs.apply_view_type_online. + */ + public final TableField APPLY_VIEW_TYPE_ONLINE = createField(DSL.name("apply_view_type_online"), SQLDataType.INTEGER.defaultValue(DSL.field(DSL.raw("0"), SQLDataType.INTEGER)), this, ""); + + private FilesApplyDocs(Name alias, Table aliased) { + this(alias, aliased, null); + } + + private FilesApplyDocs(Name alias, Table aliased, Field[] parameters) { + super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table()); + } + + /** + * Create an aliased public.files_apply_docs table reference + */ + public FilesApplyDocs(String alias) { + this(DSL.name(alias), FILES_APPLY_DOCS); + } + + /** + * Create an aliased public.files_apply_docs table reference + */ + public FilesApplyDocs(Name alias) { + this(alias, FILES_APPLY_DOCS); + } + + /** + * Create a public.files_apply_docs table reference + */ + public FilesApplyDocs() { + this(DSL.name("files_apply_docs"), null); + } + + public FilesApplyDocs(Table child, ForeignKey key) { + super(child, key, FILES_APPLY_DOCS); + } + + @Override + public Schema getSchema() { + return aliased() ? null : Public.PUBLIC; + } + + @Override + public List getIndexes() { + return Arrays.asList(Indexes.FILES_APPLY_DOCS_FILES_APPLY_ID_IDX); + } + + @Override + public UniqueKey getPrimaryKey() { + return Keys.FILES_APPLY_DOCS_PKEY; + } + + @Override + public FilesApplyDocs as(String alias) { + return new FilesApplyDocs(DSL.name(alias), this); + } + + @Override + public FilesApplyDocs as(Name alias) { + return new FilesApplyDocs(alias, this); + } + + @Override + public FilesApplyDocs as(Table alias) { + return new FilesApplyDocs(alias.getQualifiedName(), this); + } + + /** + * Rename this table + */ + @Override + public FilesApplyDocs rename(String name) { + return new FilesApplyDocs(DSL.name(name), null); + } + + /** + * Rename this table + */ + @Override + public FilesApplyDocs rename(Name name) { + return new FilesApplyDocs(name, null); + } + + /** + * Rename this table + */ + @Override + public FilesApplyDocs rename(Table name) { + return new FilesApplyDocs(name.getQualifiedName(), null); + } + + // ------------------------------------------------------------------------- + // Row21 type methods + // ------------------------------------------------------------------------- + + @Override + public Row21 fieldsRow() { + return (Row21) super.fieldsRow(); + } + + /** + * Convenience mapping calling {@link SelectField#convertFrom(Function)}. + */ + public SelectField mapping(Function21 from) { + return convertFrom(Records.mapping(from)); + } + + /** + * Convenience mapping calling {@link SelectField#convertFrom(Class, + * Function)}. + */ + public SelectField mapping(Class toType, Function21 from) { + return convertFrom(toType, Records.mapping(from)); + } +} diff --git a/src/main/java/jj/tech/paolu/repository/jooq/tables/FilesApplyDownloadRecord.java b/src/main/java/jj/tech/paolu/repository/jooq/tables/FilesApplyDownloadRecord.java new file mode 100644 index 0000000..046a4b2 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/jooq/tables/FilesApplyDownloadRecord.java @@ -0,0 +1,216 @@ +/* + * This file is generated by jOOQ. + */ +package jj.tech.paolu.repository.jooq.tables; + + +import java.time.LocalDateTime; +import java.util.function.Function; + +import jj.tech.paolu.repository.jooq.Keys; +import jj.tech.paolu.repository.jooq.Public; +import jj.tech.paolu.repository.jooq.tables.records.FilesApplyDownloadRecordRecord; + +import org.jooq.Field; +import org.jooq.ForeignKey; +import org.jooq.Function11; +import org.jooq.Name; +import org.jooq.Record; +import org.jooq.Records; +import org.jooq.Row11; +import org.jooq.Schema; +import org.jooq.SelectField; +import org.jooq.Table; +import org.jooq.TableField; +import org.jooq.TableOptions; +import org.jooq.UniqueKey; +import org.jooq.impl.DSL; +import org.jooq.impl.SQLDataType; +import org.jooq.impl.TableImpl; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +public class FilesApplyDownloadRecord extends TableImpl { + + private static final long serialVersionUID = 1L; + + /** + * The reference instance of public.files_apply_download_record + */ + public static final FilesApplyDownloadRecord FILES_APPLY_DOWNLOAD_RECORD = new FilesApplyDownloadRecord(); + + /** + * The class holding records for this type + */ + @Override + public Class getRecordType() { + return FilesApplyDownloadRecordRecord.class; + } + + /** + * The column public.files_apply_download_record.id. + */ + public final TableField ID = createField(DSL.name("id"), SQLDataType.VARCHAR(50).nullable(false), this, ""); + + /** + * The column + * public.files_apply_download_record.files_apply_id. + */ + public final TableField FILES_APPLY_ID = createField(DSL.name("files_apply_id"), SQLDataType.VARCHAR(50).nullable(false), this, ""); + + /** + * The column public.files_apply_download_record.is_dir_file. + */ + public final TableField IS_DIR_FILE = createField(DSL.name("is_dir_file"), SQLDataType.INTEGER.defaultValue(DSL.field(DSL.raw("0"), SQLDataType.INTEGER)), this, ""); + + /** + * The column public.files_apply_download_record.syn_file_id. + */ + public final TableField SYN_FILE_ID = createField(DSL.name("syn_file_id"), SQLDataType.VARCHAR(50).nullable(false), this, ""); + + /** + * The column public.files_apply_download_record.syn_file_p_id. + */ + public final TableField SYN_FILE_P_ID = createField(DSL.name("syn_file_p_id"), SQLDataType.VARCHAR(50).nullable(false), this, ""); + + /** + * The column public.files_apply_download_record.syn_file_name. + */ + public final TableField SYN_FILE_NAME = createField(DSL.name("syn_file_name"), SQLDataType.VARCHAR(200).nullable(false), this, ""); + + /** + * The column public.files_apply_download_record.user_id. + */ + public final TableField USER_ID = createField(DSL.name("user_id"), SQLDataType.VARCHAR(50).defaultValue(DSL.field(DSL.raw("NULL::character varying"), SQLDataType.VARCHAR)), this, ""); + + /** + * The column public.files_apply_download_record.user_name. + */ + public final TableField USER_NAME = createField(DSL.name("user_name"), SQLDataType.VARCHAR(200).defaultValue(DSL.field(DSL.raw("NULL::character varying"), SQLDataType.VARCHAR)), this, ""); + + /** + * The column public.files_apply_download_record.org_id. + */ + public final TableField ORG_ID = createField(DSL.name("org_id"), SQLDataType.VARCHAR(50).defaultValue(DSL.field(DSL.raw("NULL::character varying"), SQLDataType.VARCHAR)), this, ""); + + /** + * The column public.files_apply_download_record.org_name. + */ + public final TableField ORG_NAME = createField(DSL.name("org_name"), SQLDataType.VARCHAR(200).defaultValue(DSL.field(DSL.raw("NULL::character varying"), SQLDataType.VARCHAR)), this, ""); + + /** + * The column public.files_apply_download_record.download_time. + */ + public final TableField DOWNLOAD_TIME = createField(DSL.name("download_time"), SQLDataType.LOCALDATETIME(6), this, ""); + + private FilesApplyDownloadRecord(Name alias, Table aliased) { + this(alias, aliased, null); + } + + private FilesApplyDownloadRecord(Name alias, Table aliased, Field[] parameters) { + super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table()); + } + + /** + * Create an aliased public.files_apply_download_record table + * reference + */ + public FilesApplyDownloadRecord(String alias) { + this(DSL.name(alias), FILES_APPLY_DOWNLOAD_RECORD); + } + + /** + * Create an aliased public.files_apply_download_record table + * reference + */ + public FilesApplyDownloadRecord(Name alias) { + this(alias, FILES_APPLY_DOWNLOAD_RECORD); + } + + /** + * Create a public.files_apply_download_record table reference + */ + public FilesApplyDownloadRecord() { + this(DSL.name("files_apply_download_record"), null); + } + + public FilesApplyDownloadRecord(Table child, ForeignKey key) { + super(child, key, FILES_APPLY_DOWNLOAD_RECORD); + } + + @Override + public Schema getSchema() { + return aliased() ? null : Public.PUBLIC; + } + + @Override + public UniqueKey getPrimaryKey() { + return Keys.FILES_APPLY_DOWNLOAD_RECORD_PKEY; + } + + @Override + public FilesApplyDownloadRecord as(String alias) { + return new FilesApplyDownloadRecord(DSL.name(alias), this); + } + + @Override + public FilesApplyDownloadRecord as(Name alias) { + return new FilesApplyDownloadRecord(alias, this); + } + + @Override + public FilesApplyDownloadRecord as(Table alias) { + return new FilesApplyDownloadRecord(alias.getQualifiedName(), this); + } + + /** + * Rename this table + */ + @Override + public FilesApplyDownloadRecord rename(String name) { + return new FilesApplyDownloadRecord(DSL.name(name), null); + } + + /** + * Rename this table + */ + @Override + public FilesApplyDownloadRecord rename(Name name) { + return new FilesApplyDownloadRecord(name, null); + } + + /** + * Rename this table + */ + @Override + public FilesApplyDownloadRecord rename(Table name) { + return new FilesApplyDownloadRecord(name.getQualifiedName(), null); + } + + // ------------------------------------------------------------------------- + // Row11 type methods + // ------------------------------------------------------------------------- + + @Override + public Row11 fieldsRow() { + return (Row11) super.fieldsRow(); + } + + /** + * Convenience mapping calling {@link SelectField#convertFrom(Function)}. + */ + public SelectField mapping(Function11 from) { + return convertFrom(Records.mapping(from)); + } + + /** + * Convenience mapping calling {@link SelectField#convertFrom(Class, + * Function)}. + */ + public SelectField mapping(Class toType, Function11 from) { + return convertFrom(toType, Records.mapping(from)); + } +} diff --git a/src/main/java/jj/tech/paolu/repository/jooq/tables/Project.java b/src/main/java/jj/tech/paolu/repository/jooq/tables/Project.java new file mode 100644 index 0000000..7466ef0 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/jooq/tables/Project.java @@ -0,0 +1,177 @@ +/* + * This file is generated by jOOQ. + */ +package jj.tech.paolu.repository.jooq.tables; + + +import java.util.function.Function; + +import jj.tech.paolu.repository.jooq.Keys; +import jj.tech.paolu.repository.jooq.Public; +import jj.tech.paolu.repository.jooq.tables.records.ProjectRecord; + +import org.jooq.Field; +import org.jooq.ForeignKey; +import org.jooq.Function4; +import org.jooq.Name; +import org.jooq.Record; +import org.jooq.Records; +import org.jooq.Row4; +import org.jooq.Schema; +import org.jooq.SelectField; +import org.jooq.Table; +import org.jooq.TableField; +import org.jooq.TableOptions; +import org.jooq.UniqueKey; +import org.jooq.impl.DSL; +import org.jooq.impl.SQLDataType; +import org.jooq.impl.TableImpl; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +public class Project extends TableImpl { + + private static final long serialVersionUID = 1L; + + /** + * The reference instance of public.project + */ + public static final Project PROJECT = new Project(); + + /** + * The class holding records for this type + */ + @Override + public Class getRecordType() { + return ProjectRecord.class; + } + + /** + * The column public.project.id. + */ + public final TableField ID = createField(DSL.name("id"), SQLDataType.VARCHAR.nullable(false), this, ""); + + /** + * The column public.project.project_name. + */ + public final TableField PROJECT_NAME = createField(DSL.name("project_name"), SQLDataType.VARCHAR.nullable(false), this, ""); + + /** + * The column public.project.org_id. + */ + public final TableField ORG_ID = createField(DSL.name("org_id"), SQLDataType.VARCHAR, this, ""); + + /** + * The column public.project.org_name. + */ + public final TableField ORG_NAME = createField(DSL.name("org_name"), SQLDataType.VARCHAR, this, ""); + + private Project(Name alias, Table aliased) { + this(alias, aliased, null); + } + + private Project(Name alias, Table aliased, Field[] parameters) { + super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table()); + } + + /** + * Create an aliased public.project table reference + */ + public Project(String alias) { + this(DSL.name(alias), PROJECT); + } + + /** + * Create an aliased public.project table reference + */ + public Project(Name alias) { + this(alias, PROJECT); + } + + /** + * Create a public.project table reference + */ + public Project() { + this(DSL.name("project"), null); + } + + public Project(Table child, ForeignKey key) { + super(child, key, PROJECT); + } + + @Override + public Schema getSchema() { + return aliased() ? null : Public.PUBLIC; + } + + @Override + public UniqueKey getPrimaryKey() { + return Keys.PROJECT_PKEY; + } + + @Override + public Project as(String alias) { + return new Project(DSL.name(alias), this); + } + + @Override + public Project as(Name alias) { + return new Project(alias, this); + } + + @Override + public Project as(Table alias) { + return new Project(alias.getQualifiedName(), this); + } + + /** + * Rename this table + */ + @Override + public Project rename(String name) { + return new Project(DSL.name(name), null); + } + + /** + * Rename this table + */ + @Override + public Project rename(Name name) { + return new Project(name, null); + } + + /** + * Rename this table + */ + @Override + public Project rename(Table name) { + return new Project(name.getQualifiedName(), null); + } + + // ------------------------------------------------------------------------- + // Row4 type methods + // ------------------------------------------------------------------------- + + @Override + public Row4 fieldsRow() { + return (Row4) super.fieldsRow(); + } + + /** + * Convenience mapping calling {@link SelectField#convertFrom(Function)}. + */ + public SelectField mapping(Function4 from) { + return convertFrom(Records.mapping(from)); + } + + /** + * Convenience mapping calling {@link SelectField#convertFrom(Class, + * Function)}. + */ + public SelectField mapping(Class toType, Function4 from) { + return convertFrom(toType, Records.mapping(from)); + } +} diff --git a/src/main/java/jj/tech/paolu/repository/jooq/tables/ReadLog.java b/src/main/java/jj/tech/paolu/repository/jooq/tables/ReadLog.java new file mode 100644 index 0000000..39d7a57 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/jooq/tables/ReadLog.java @@ -0,0 +1,223 @@ +/* + * This file is generated by jOOQ. + */ +package jj.tech.paolu.repository.jooq.tables; + + +import java.time.LocalDateTime; +import java.util.function.Function; + +import jj.tech.paolu.repository.jooq.Keys; +import jj.tech.paolu.repository.jooq.Public; +import jj.tech.paolu.repository.jooq.tables.records.ReadLogRecord; + +import org.jooq.Field; +import org.jooq.ForeignKey; +import org.jooq.Function13; +import org.jooq.Name; +import org.jooq.Record; +import org.jooq.Records; +import org.jooq.Row13; +import org.jooq.Schema; +import org.jooq.SelectField; +import org.jooq.Table; +import org.jooq.TableField; +import org.jooq.TableOptions; +import org.jooq.UniqueKey; +import org.jooq.impl.DSL; +import org.jooq.impl.SQLDataType; +import org.jooq.impl.TableImpl; + + +/** + * 阅读情况 + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +public class ReadLog extends TableImpl { + + private static final long serialVersionUID = 1L; + + /** + * The reference instance of public.read_log + */ + public static final ReadLog READ_LOG = new ReadLog(); + + /** + * The class holding records for this type + */ + @Override + public Class getRecordType() { + return ReadLogRecord.class; + } + + /** + * The column public.read_log.id. + */ + public final TableField ID = createField(DSL.name("id"), SQLDataType.VARCHAR(32).nullable(false), this, ""); + + /** + * The column public.read_log.weid. 申请人id + */ + public final TableField WEID = createField(DSL.name("weid"), SQLDataType.VARCHAR(255), this, "申请人id"); + + /** + * The column public.read_log.content_id. 档案id + */ + public final TableField CONTENT_ID = createField(DSL.name("content_id"), SQLDataType.VARCHAR(255), this, "档案id"); + + /** + * The column public.read_log.starttime. 开始时间 + */ + public final TableField STARTTIME = createField(DSL.name("starttime"), SQLDataType.LOCALDATETIME(6), this, "开始时间"); + + /** + * The column public.read_log.endtime. 结束时间 + */ + public final TableField ENDTIME = createField(DSL.name("endtime"), SQLDataType.LOCALDATETIME(6), this, "结束时间"); + + /** + * The column public.read_log.ip. ip地址 + */ + public final TableField IP = createField(DSL.name("ip"), SQLDataType.VARCHAR(32), this, "ip地址"); + + /** + * The column public.read_log.location. 区域 + */ + public final TableField LOCATION = createField(DSL.name("location"), SQLDataType.VARCHAR(255), this, "区域"); + + /** + * The column public.read_log.downloadtype. 下载类型(1文件包/0单文件) + */ + public final TableField DOWNLOADTYPE = createField(DSL.name("downloadtype"), SQLDataType.INTEGER, this, "下载类型(1文件包/0单文件)"); + + /** + * The column public.read_log.sign. 数字签名 + */ + public final TableField SIGN = createField(DSL.name("sign"), SQLDataType.VARCHAR(255), this, "数字签名"); + + /** + * The column public.read_log.readid. 一次阅读凭证id + */ + public final TableField READID = createField(DSL.name("readid"), SQLDataType.VARCHAR(32), this, "一次阅读凭证id"); + + /** + * The column public.read_log.sm9hibeid. 秘钥id + */ + public final TableField SM9HIBEID = createField(DSL.name("sm9hibeid"), SQLDataType.VARCHAR(255), this, "秘钥id"); + + /** + * The column public.read_log.content_type. 档案类型 + */ + public final TableField CONTENT_TYPE = createField(DSL.name("content_type"), SQLDataType.INTEGER, this, "档案类型"); + + /** + * The column public.read_log.ischeck. 是否上链(1是,0否) + */ + public final TableField ISCHECK = createField(DSL.name("ischeck"), SQLDataType.INTEGER.defaultValue(DSL.field(DSL.raw("0"), SQLDataType.INTEGER)), this, "是否上链(1是,0否)"); + + private ReadLog(Name alias, Table aliased) { + this(alias, aliased, null); + } + + private ReadLog(Name alias, Table aliased, Field[] parameters) { + super(alias, null, aliased, parameters, DSL.comment("阅读情况"), TableOptions.table()); + } + + /** + * Create an aliased public.read_log table reference + */ + public ReadLog(String alias) { + this(DSL.name(alias), READ_LOG); + } + + /** + * Create an aliased public.read_log table reference + */ + public ReadLog(Name alias) { + this(alias, READ_LOG); + } + + /** + * Create a public.read_log table reference + */ + public ReadLog() { + this(DSL.name("read_log"), null); + } + + public ReadLog(Table child, ForeignKey key) { + super(child, key, READ_LOG); + } + + @Override + public Schema getSchema() { + return aliased() ? null : Public.PUBLIC; + } + + @Override + public UniqueKey getPrimaryKey() { + return Keys.READ_LOG_PKEY; + } + + @Override + public ReadLog as(String alias) { + return new ReadLog(DSL.name(alias), this); + } + + @Override + public ReadLog as(Name alias) { + return new ReadLog(alias, this); + } + + @Override + public ReadLog as(Table alias) { + return new ReadLog(alias.getQualifiedName(), this); + } + + /** + * Rename this table + */ + @Override + public ReadLog rename(String name) { + return new ReadLog(DSL.name(name), null); + } + + /** + * Rename this table + */ + @Override + public ReadLog rename(Name name) { + return new ReadLog(name, null); + } + + /** + * Rename this table + */ + @Override + public ReadLog rename(Table name) { + return new ReadLog(name.getQualifiedName(), null); + } + + // ------------------------------------------------------------------------- + // Row13 type methods + // ------------------------------------------------------------------------- + + @Override + public Row13 fieldsRow() { + return (Row13) super.fieldsRow(); + } + + /** + * Convenience mapping calling {@link SelectField#convertFrom(Function)}. + */ + public SelectField mapping(Function13 from) { + return convertFrom(Records.mapping(from)); + } + + /** + * Convenience mapping calling {@link SelectField#convertFrom(Class, + * Function)}. + */ + public SelectField mapping(Class toType, Function13 from) { + return convertFrom(toType, Records.mapping(from)); + } +} diff --git a/src/main/java/jj/tech/paolu/repository/jooq/tables/SharedRuleConfig.java b/src/main/java/jj/tech/paolu/repository/jooq/tables/SharedRuleConfig.java new file mode 100644 index 0000000..0b6fda0 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/jooq/tables/SharedRuleConfig.java @@ -0,0 +1,187 @@ +/* + * This file is generated by jOOQ. + */ +package jj.tech.paolu.repository.jooq.tables; + + +import java.util.function.Function; + +import jj.tech.paolu.repository.jooq.Keys; +import jj.tech.paolu.repository.jooq.Public; +import jj.tech.paolu.repository.jooq.tables.records.SharedRuleConfigRecord; + +import org.jooq.Field; +import org.jooq.ForeignKey; +import org.jooq.Function6; +import org.jooq.Name; +import org.jooq.Record; +import org.jooq.Records; +import org.jooq.Row6; +import org.jooq.Schema; +import org.jooq.SelectField; +import org.jooq.Table; +import org.jooq.TableField; +import org.jooq.TableOptions; +import org.jooq.UniqueKey; +import org.jooq.impl.DSL; +import org.jooq.impl.SQLDataType; +import org.jooq.impl.TableImpl; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +public class SharedRuleConfig extends TableImpl { + + private static final long serialVersionUID = 1L; + + /** + * The reference instance of public.shared_rule_config + */ + public static final SharedRuleConfig SHARED_RULE_CONFIG = new SharedRuleConfig(); + + /** + * The class holding records for this type + */ + @Override + public Class getRecordType() { + return SharedRuleConfigRecord.class; + } + + /** + * The column public.shared_rule_config.id. + */ + public final TableField ID = createField(DSL.name("id"), SQLDataType.VARCHAR.nullable(false), this, ""); + + /** + * The column public.shared_rule_config.name. + */ + public final TableField NAME = createField(DSL.name("name"), SQLDataType.VARCHAR.nullable(false), this, ""); + + /** + * The column public.shared_rule_config.describe. + */ + public final TableField DESCRIBE = createField(DSL.name("describe"), SQLDataType.VARCHAR.nullable(false), this, ""); + + /** + * The column public.shared_rule_config.status. + */ + public final TableField STATUS = createField(DSL.name("status"), SQLDataType.INTEGER.defaultValue(DSL.field(DSL.raw("1"), SQLDataType.INTEGER)), this, ""); + + /** + * The column public.shared_rule_config.sort. + */ + public final TableField SORT = createField(DSL.name("sort"), SQLDataType.INTEGER.defaultValue(DSL.field(DSL.raw("0"), SQLDataType.INTEGER)), this, ""); + + /** + * The column public.shared_rule_config.project_name. + */ + public final TableField PROJECT_NAME = createField(DSL.name("project_name"), SQLDataType.VARCHAR.nullable(false), this, ""); + + private SharedRuleConfig(Name alias, Table aliased) { + this(alias, aliased, null); + } + + private SharedRuleConfig(Name alias, Table aliased, Field[] parameters) { + super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table()); + } + + /** + * Create an aliased public.shared_rule_config table reference + */ + public SharedRuleConfig(String alias) { + this(DSL.name(alias), SHARED_RULE_CONFIG); + } + + /** + * Create an aliased public.shared_rule_config table reference + */ + public SharedRuleConfig(Name alias) { + this(alias, SHARED_RULE_CONFIG); + } + + /** + * Create a public.shared_rule_config table reference + */ + public SharedRuleConfig() { + this(DSL.name("shared_rule_config"), null); + } + + public SharedRuleConfig(Table child, ForeignKey key) { + super(child, key, SHARED_RULE_CONFIG); + } + + @Override + public Schema getSchema() { + return aliased() ? null : Public.PUBLIC; + } + + @Override + public UniqueKey getPrimaryKey() { + return Keys.SHARED_RULE_CONFIG_PKEY; + } + + @Override + public SharedRuleConfig as(String alias) { + return new SharedRuleConfig(DSL.name(alias), this); + } + + @Override + public SharedRuleConfig as(Name alias) { + return new SharedRuleConfig(alias, this); + } + + @Override + public SharedRuleConfig as(Table alias) { + return new SharedRuleConfig(alias.getQualifiedName(), this); + } + + /** + * Rename this table + */ + @Override + public SharedRuleConfig rename(String name) { + return new SharedRuleConfig(DSL.name(name), null); + } + + /** + * Rename this table + */ + @Override + public SharedRuleConfig rename(Name name) { + return new SharedRuleConfig(name, null); + } + + /** + * Rename this table + */ + @Override + public SharedRuleConfig rename(Table name) { + return new SharedRuleConfig(name.getQualifiedName(), null); + } + + // ------------------------------------------------------------------------- + // Row6 type methods + // ------------------------------------------------------------------------- + + @Override + public Row6 fieldsRow() { + return (Row6) super.fieldsRow(); + } + + /** + * Convenience mapping calling {@link SelectField#convertFrom(Function)}. + */ + public SelectField mapping(Function6 from) { + return convertFrom(Records.mapping(from)); + } + + /** + * Convenience mapping calling {@link SelectField#convertFrom(Class, + * Function)}. + */ + public SelectField mapping(Class toType, Function6 from) { + return convertFrom(toType, Records.mapping(from)); + } +} diff --git a/src/main/java/jj/tech/paolu/repository/jooq/tables/SharedSynAll.java b/src/main/java/jj/tech/paolu/repository/jooq/tables/SharedSynAll.java new file mode 100644 index 0000000..5667ef2 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/jooq/tables/SharedSynAll.java @@ -0,0 +1,209 @@ +/* + * This file is generated by jOOQ. + */ +package jj.tech.paolu.repository.jooq.tables; + + +import java.util.Arrays; +import java.util.List; +import java.util.function.Function; + +import jj.tech.paolu.repository.jooq.Keys; +import jj.tech.paolu.repository.jooq.Public; +import jj.tech.paolu.repository.jooq.tables.records.SharedSynAllRecord; + +import org.jooq.Field; +import org.jooq.ForeignKey; +import org.jooq.Function9; +import org.jooq.Name; +import org.jooq.Record; +import org.jooq.Records; +import org.jooq.Row9; +import org.jooq.Schema; +import org.jooq.SelectField; +import org.jooq.Table; +import org.jooq.TableField; +import org.jooq.TableOptions; +import org.jooq.UniqueKey; +import org.jooq.impl.DSL; +import org.jooq.impl.SQLDataType; +import org.jooq.impl.TableImpl; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +public class SharedSynAll extends TableImpl { + + private static final long serialVersionUID = 1L; + + /** + * The reference instance of public.shared_syn_all + */ + public static final SharedSynAll SHARED_SYN_ALL = new SharedSynAll(); + + /** + * The class holding records for this type + */ + @Override + public Class getRecordType() { + return SharedSynAllRecord.class; + } + + /** + * The column public.shared_syn_all.id. + */ + public final TableField ID = createField(DSL.name("id"), SQLDataType.VARCHAR(32).nullable(false), this, ""); + + /** + * The column public.shared_syn_all.syn_id. + */ + public final TableField SYN_ID = createField(DSL.name("syn_id"), SQLDataType.VARCHAR(50).nullable(false), this, ""); + + /** + * The column public.shared_syn_all.syn_type. + */ + public final TableField SYN_TYPE = createField(DSL.name("syn_type"), SQLDataType.INTEGER.defaultValue(DSL.field(DSL.raw("0"), SQLDataType.INTEGER)), this, ""); + + /** + * The column public.shared_syn_all.is_config_rule. + */ + public final TableField IS_CONFIG_RULE = createField(DSL.name("is_config_rule"), SQLDataType.INTEGER.defaultValue(DSL.field(DSL.raw("0"), SQLDataType.INTEGER)), this, ""); + + /** + * The column public.shared_syn_all.shared_status. + */ + public final TableField SHARED_STATUS = createField(DSL.name("shared_status"), SQLDataType.INTEGER.defaultValue(DSL.field(DSL.raw("0"), SQLDataType.INTEGER)), this, ""); + + /** + * The column public.shared_syn_all.syn_status. + */ + public final TableField SYN_STATUS = createField(DSL.name("syn_status"), SQLDataType.INTEGER, this, ""); + + /** + * The column public.shared_syn_all.block_number. + */ + public final TableField BLOCK_NUMBER = createField(DSL.name("block_number"), SQLDataType.VARCHAR(255), this, ""); + + /** + * The column public.shared_syn_all.block_hash. + */ + public final TableField BLOCK_HASH = createField(DSL.name("block_hash"), SQLDataType.VARCHAR(255), this, ""); + + /** + * The column public.shared_syn_all.block_time. + */ + public final TableField BLOCK_TIME = createField(DSL.name("block_time"), SQLDataType.VARCHAR(255), this, ""); + + private SharedSynAll(Name alias, Table aliased) { + this(alias, aliased, null); + } + + private SharedSynAll(Name alias, Table aliased, Field[] parameters) { + super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table()); + } + + /** + * Create an aliased public.shared_syn_all table reference + */ + public SharedSynAll(String alias) { + this(DSL.name(alias), SHARED_SYN_ALL); + } + + /** + * Create an aliased public.shared_syn_all table reference + */ + public SharedSynAll(Name alias) { + this(alias, SHARED_SYN_ALL); + } + + /** + * Create a public.shared_syn_all table reference + */ + public SharedSynAll() { + this(DSL.name("shared_syn_all"), null); + } + + public SharedSynAll(Table child, ForeignKey key) { + super(child, key, SHARED_SYN_ALL); + } + + @Override + public Schema getSchema() { + return aliased() ? null : Public.PUBLIC; + } + + @Override + public UniqueKey getPrimaryKey() { + return Keys.SHARED_SYN_ALL_PKEY; + } + + @Override + public List> getUniqueKeys() { + return Arrays.asList(Keys.SHARED_SYN_ALL_SYN_ID_KEY, Keys.SHARED_SYN_ALL_SYN_ID_SYN_TYPE_KEY); + } + + @Override + public SharedSynAll as(String alias) { + return new SharedSynAll(DSL.name(alias), this); + } + + @Override + public SharedSynAll as(Name alias) { + return new SharedSynAll(alias, this); + } + + @Override + public SharedSynAll as(Table alias) { + return new SharedSynAll(alias.getQualifiedName(), this); + } + + /** + * Rename this table + */ + @Override + public SharedSynAll rename(String name) { + return new SharedSynAll(DSL.name(name), null); + } + + /** + * Rename this table + */ + @Override + public SharedSynAll rename(Name name) { + return new SharedSynAll(name, null); + } + + /** + * Rename this table + */ + @Override + public SharedSynAll rename(Table name) { + return new SharedSynAll(name.getQualifiedName(), null); + } + + // ------------------------------------------------------------------------- + // Row9 type methods + // ------------------------------------------------------------------------- + + @Override + public Row9 fieldsRow() { + return (Row9) super.fieldsRow(); + } + + /** + * Convenience mapping calling {@link SelectField#convertFrom(Function)}. + */ + public SelectField mapping(Function9 from) { + return convertFrom(Records.mapping(from)); + } + + /** + * Convenience mapping calling {@link SelectField#convertFrom(Class, + * Function)}. + */ + public SelectField mapping(Class toType, Function9 from) { + return convertFrom(toType, Records.mapping(from)); + } +} diff --git a/src/main/java/jj/tech/paolu/repository/jooq/tables/SynDirectory.java b/src/main/java/jj/tech/paolu/repository/jooq/tables/SynDirectory.java new file mode 100644 index 0000000..7791297 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/jooq/tables/SynDirectory.java @@ -0,0 +1,206 @@ +/* + * This file is generated by jOOQ. + */ +package jj.tech.paolu.repository.jooq.tables; + + +import java.util.Arrays; +import java.util.List; +import java.util.function.Function; + +import jj.tech.paolu.repository.jooq.Indexes; +import jj.tech.paolu.repository.jooq.Keys; +import jj.tech.paolu.repository.jooq.Public; +import jj.tech.paolu.repository.jooq.tables.records.SynDirectoryRecord; + +import org.jooq.Field; +import org.jooq.ForeignKey; +import org.jooq.Function8; +import org.jooq.Index; +import org.jooq.Name; +import org.jooq.Record; +import org.jooq.Records; +import org.jooq.Row8; +import org.jooq.Schema; +import org.jooq.SelectField; +import org.jooq.Table; +import org.jooq.TableField; +import org.jooq.TableOptions; +import org.jooq.UniqueKey; +import org.jooq.impl.DSL; +import org.jooq.impl.SQLDataType; +import org.jooq.impl.TableImpl; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +public class SynDirectory extends TableImpl { + + private static final long serialVersionUID = 1L; + + /** + * The reference instance of public.syn_directory + */ + public static final SynDirectory SYN_DIRECTORY = new SynDirectory(); + + /** + * The class holding records for this type + */ + @Override + public Class getRecordType() { + return SynDirectoryRecord.class; + } + + /** + * The column public.syn_directory.id. + */ + public final TableField ID = createField(DSL.name("id"), SQLDataType.VARCHAR(50).nullable(false), this, ""); + + /** + * The column public.syn_directory.p_id. + */ + public final TableField P_ID = createField(DSL.name("p_id"), SQLDataType.VARCHAR(50).nullable(false), this, ""); + + /** + * The column public.syn_directory.wbs_id. + */ + public final TableField WBS_ID = createField(DSL.name("wbs_id"), SQLDataType.VARCHAR(50), this, ""); + + /** + * The column public.syn_directory.time_stamp. + */ + public final TableField TIME_STAMP = createField(DSL.name("time_stamp"), SQLDataType.VARCHAR(20).defaultValue(DSL.field(DSL.raw("NULL::character varying"), SQLDataType.VARCHAR)), this, ""); + + /** + * The column public.syn_directory.sortorder. + */ + public final TableField SORTORDER = createField(DSL.name("sortorder"), SQLDataType.INTEGER, this, ""); + + /** + * The column public.syn_directory.tname. + */ + public final TableField TNAME = createField(DSL.name("tname"), SQLDataType.VARCHAR(300).defaultValue(DSL.field(DSL.raw("NULL::character varying"), SQLDataType.VARCHAR)), this, ""); + + /** + * The column public.syn_directory.subjoin. + */ + public final TableField SUBJOIN = createField(DSL.name("subjoin"), SQLDataType.INTEGER, this, ""); + + /** + * The column public.syn_directory.isdel. + */ + public final TableField ISDEL = createField(DSL.name("isdel"), SQLDataType.INTEGER, this, ""); + + private SynDirectory(Name alias, Table aliased) { + this(alias, aliased, null); + } + + private SynDirectory(Name alias, Table aliased, Field[] parameters) { + super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table()); + } + + /** + * Create an aliased public.syn_directory table reference + */ + public SynDirectory(String alias) { + this(DSL.name(alias), SYN_DIRECTORY); + } + + /** + * Create an aliased public.syn_directory table reference + */ + public SynDirectory(Name alias) { + this(alias, SYN_DIRECTORY); + } + + /** + * Create a public.syn_directory table reference + */ + public SynDirectory() { + this(DSL.name("syn_directory"), null); + } + + public SynDirectory(Table child, ForeignKey key) { + super(child, key, SYN_DIRECTORY); + } + + @Override + public Schema getSchema() { + return aliased() ? null : Public.PUBLIC; + } + + @Override + public List getIndexes() { + return Arrays.asList(Indexes.IDX_SYN_DIREC_PID); + } + + @Override + public UniqueKey getPrimaryKey() { + return Keys.SYN_DIRECTORY_PKEY; + } + + @Override + public SynDirectory as(String alias) { + return new SynDirectory(DSL.name(alias), this); + } + + @Override + public SynDirectory as(Name alias) { + return new SynDirectory(alias, this); + } + + @Override + public SynDirectory as(Table alias) { + return new SynDirectory(alias.getQualifiedName(), this); + } + + /** + * Rename this table + */ + @Override + public SynDirectory rename(String name) { + return new SynDirectory(DSL.name(name), null); + } + + /** + * Rename this table + */ + @Override + public SynDirectory rename(Name name) { + return new SynDirectory(name, null); + } + + /** + * Rename this table + */ + @Override + public SynDirectory rename(Table name) { + return new SynDirectory(name.getQualifiedName(), null); + } + + // ------------------------------------------------------------------------- + // Row8 type methods + // ------------------------------------------------------------------------- + + @Override + public Row8 fieldsRow() { + return (Row8) super.fieldsRow(); + } + + /** + * Convenience mapping calling {@link SelectField#convertFrom(Function)}. + */ + public SelectField mapping(Function8 from) { + return convertFrom(Records.mapping(from)); + } + + /** + * Convenience mapping calling {@link SelectField#convertFrom(Class, + * Function)}. + */ + public SelectField mapping(Class toType, Function8 from) { + return convertFrom(toType, Records.mapping(from)); + } +} diff --git a/src/main/java/jj/tech/paolu/repository/jooq/tables/SynDirectoryFile.java b/src/main/java/jj/tech/paolu/repository/jooq/tables/SynDirectoryFile.java new file mode 100644 index 0000000..a64a1b3 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/jooq/tables/SynDirectoryFile.java @@ -0,0 +1,271 @@ +/* + * This file is generated by jOOQ. + */ +package jj.tech.paolu.repository.jooq.tables; + + +import java.util.Arrays; +import java.util.List; +import java.util.function.Function; + +import jj.tech.paolu.repository.jooq.Indexes; +import jj.tech.paolu.repository.jooq.Keys; +import jj.tech.paolu.repository.jooq.Public; +import jj.tech.paolu.repository.jooq.tables.records.SynDirectoryFileRecord; + +import org.jooq.Field; +import org.jooq.ForeignKey; +import org.jooq.Function21; +import org.jooq.Index; +import org.jooq.Name; +import org.jooq.Record; +import org.jooq.Records; +import org.jooq.Row21; +import org.jooq.Schema; +import org.jooq.SelectField; +import org.jooq.Table; +import org.jooq.TableField; +import org.jooq.TableOptions; +import org.jooq.UniqueKey; +import org.jooq.impl.DSL; +import org.jooq.impl.SQLDataType; +import org.jooq.impl.TableImpl; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +public class SynDirectoryFile extends TableImpl { + + private static final long serialVersionUID = 1L; + + /** + * The reference instance of public.syn_directory_file + */ + public static final SynDirectoryFile SYN_DIRECTORY_FILE = new SynDirectoryFile(); + + /** + * The class holding records for this type + */ + @Override + public Class getRecordType() { + return SynDirectoryFileRecord.class; + } + + /** + * The column public.syn_directory_file.id. + */ + public final TableField ID = createField(DSL.name("id"), SQLDataType.VARCHAR(50).nullable(false), this, ""); + + /** + * The column public.syn_directory_file.p_id. + */ + public final TableField P_ID = createField(DSL.name("p_id"), SQLDataType.VARCHAR(50).nullable(false), this, ""); + + /** + * The column public.syn_directory_file.filesuper. + */ + public final TableField FILESUPER = createField(DSL.name("filesuper"), SQLDataType.VARCHAR(500).defaultValue(DSL.field(DSL.raw("NULL::character varying"), SQLDataType.VARCHAR)), this, ""); + + /** + * The column public.syn_directory_file.filecount. + */ + public final TableField FILECOUNT = createField(DSL.name("filecount"), SQLDataType.INTEGER.defaultValue(DSL.field(DSL.raw("0"), SQLDataType.INTEGER)), this, ""); + + /** + * The column public.syn_directory_file.dutyperson. + */ + public final TableField DUTYPERSON = createField(DSL.name("dutyperson"), SQLDataType.VARCHAR(100).defaultValue(DSL.field(DSL.raw("NULL::character varying"), SQLDataType.VARCHAR)), this, ""); + + /** + * The column public.syn_directory_file.eweavedate. + */ + public final TableField EWEAVEDATE = createField(DSL.name("eweavedate"), SQLDataType.VARCHAR(100).defaultValue(DSL.field(DSL.raw("NULL::character varying"), SQLDataType.VARCHAR)), this, ""); + + /** + * The column public.syn_directory_file.filepage. + */ + public final TableField FILEPAGE = createField(DSL.name("filepage"), SQLDataType.INTEGER.defaultValue(DSL.field(DSL.raw("0"), SQLDataType.INTEGER)), this, ""); + + /** + * The column public.syn_directory_file.sortorder. + */ + public final TableField SORTORDER = createField(DSL.name("sortorder"), SQLDataType.VARCHAR(50).defaultValue(DSL.field(DSL.raw("NULL::character varying"), SQLDataType.VARCHAR)), this, ""); + + /** + * The column public.syn_directory_file.bpeg. + */ + public final TableField BPEG = createField(DSL.name("bpeg"), SQLDataType.VARCHAR(50).defaultValue(DSL.field(DSL.raw("NULL::character varying"), SQLDataType.VARCHAR)), this, ""); + + /** + * The column public.syn_directory_file.epeg. + */ + public final TableField EPEG = createField(DSL.name("epeg"), SQLDataType.VARCHAR(50).defaultValue(DSL.field(DSL.raw("NULL::character varying"), SQLDataType.VARCHAR)), this, ""); + + /** + * The column public.syn_directory_file.filenum. + */ + public final TableField FILENUM = createField(DSL.name("filenum"), SQLDataType.VARCHAR(100).defaultValue(DSL.field(DSL.raw("NULL::character varying"), SQLDataType.VARCHAR)), this, ""); + + /** + * The column public.syn_directory_file.remark. + */ + public final TableField REMARK = createField(DSL.name("remark"), SQLDataType.VARCHAR(300).defaultValue(DSL.field(DSL.raw("NULL::character varying"), SQLDataType.VARCHAR)), this, ""); + + /** + * The column public.syn_directory_file.recordnum. + */ + public final TableField RECORDNUM = createField(DSL.name("recordnum"), SQLDataType.VARCHAR(50).defaultValue(DSL.field(DSL.raw("NULL::character varying"), SQLDataType.VARCHAR)), this, ""); + + /** + * The column public.syn_directory_file.piecenumber. + */ + public final TableField PIECENUMBER = createField(DSL.name("piecenumber"), SQLDataType.VARCHAR(50).defaultValue(DSL.field(DSL.raw("NULL::character varying"), SQLDataType.VARCHAR)), this, ""); + + /** + * The column public.syn_directory_file.adddate. + */ + public final TableField ADDDATE = createField(DSL.name("adddate"), SQLDataType.VARCHAR(50).defaultValue(DSL.field(DSL.raw("NULL::character varying"), SQLDataType.VARCHAR)), this, ""); + + /** + * The column public.syn_directory_file.editdate. + */ + public final TableField EDITDATE = createField(DSL.name("editdate"), SQLDataType.VARCHAR(50).defaultValue(DSL.field(DSL.raw("NULL::character varying"), SQLDataType.VARCHAR)), this, ""); + + /** + * The column public.syn_directory_file.time_stamp. + */ + public final TableField TIME_STAMP = createField(DSL.name("time_stamp"), SQLDataType.VARCHAR(20).defaultValue(DSL.field(DSL.raw("NULL::character varying"), SQLDataType.VARCHAR)), this, ""); + + /** + * The column public.syn_directory_file.isdel. + */ + public final TableField ISDEL = createField(DSL.name("isdel"), SQLDataType.INTEGER, this, ""); + + /** + * The column public.syn_directory_file.catalogpdfurl. + */ + public final TableField CATALOGPDFURL = createField(DSL.name("catalogpdfurl"), SQLDataType.VARCHAR(200).defaultValue(DSL.field(DSL.raw("NULL::character varying"), SQLDataType.VARCHAR)), this, ""); + + /** + * The column public.syn_directory_file.signtag. + */ + public final TableField SIGNTAG = createField(DSL.name("signtag"), SQLDataType.VARCHAR(20).defaultValue(DSL.field(DSL.raw("NULL::character varying"), SQLDataType.VARCHAR)), this, ""); + + /** + * The column public.syn_directory_file.collecttag. + */ + public final TableField COLLECTTAG = createField(DSL.name("collecttag"), SQLDataType.VARCHAR(20).defaultValue(DSL.field(DSL.raw("NULL::character varying"), SQLDataType.VARCHAR)), this, ""); + + private SynDirectoryFile(Name alias, Table aliased) { + this(alias, aliased, null); + } + + private SynDirectoryFile(Name alias, Table aliased, Field[] parameters) { + super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table()); + } + + /** + * Create an aliased public.syn_directory_file table reference + */ + public SynDirectoryFile(String alias) { + this(DSL.name(alias), SYN_DIRECTORY_FILE); + } + + /** + * Create an aliased public.syn_directory_file table reference + */ + public SynDirectoryFile(Name alias) { + this(alias, SYN_DIRECTORY_FILE); + } + + /** + * Create a public.syn_directory_file table reference + */ + public SynDirectoryFile() { + this(DSL.name("syn_directory_file"), null); + } + + public SynDirectoryFile(Table child, ForeignKey key) { + super(child, key, SYN_DIRECTORY_FILE); + } + + @Override + public Schema getSchema() { + return aliased() ? null : Public.PUBLIC; + } + + @Override + public List getIndexes() { + return Arrays.asList(Indexes.IDX_SYN_DIRECTOR_FILE_PID); + } + + @Override + public UniqueKey getPrimaryKey() { + return Keys.SYN_DIRECTORY_FILE_PKEY; + } + + @Override + public SynDirectoryFile as(String alias) { + return new SynDirectoryFile(DSL.name(alias), this); + } + + @Override + public SynDirectoryFile as(Name alias) { + return new SynDirectoryFile(alias, this); + } + + @Override + public SynDirectoryFile as(Table alias) { + return new SynDirectoryFile(alias.getQualifiedName(), this); + } + + /** + * Rename this table + */ + @Override + public SynDirectoryFile rename(String name) { + return new SynDirectoryFile(DSL.name(name), null); + } + + /** + * Rename this table + */ + @Override + public SynDirectoryFile rename(Name name) { + return new SynDirectoryFile(name, null); + } + + /** + * Rename this table + */ + @Override + public SynDirectoryFile rename(Table name) { + return new SynDirectoryFile(name.getQualifiedName(), null); + } + + // ------------------------------------------------------------------------- + // Row21 type methods + // ------------------------------------------------------------------------- + + @Override + public Row21 fieldsRow() { + return (Row21) super.fieldsRow(); + } + + /** + * Convenience mapping calling {@link SelectField#convertFrom(Function)}. + */ + public SelectField mapping(Function21 from) { + return convertFrom(Records.mapping(from)); + } + + /** + * Convenience mapping calling {@link SelectField#convertFrom(Class, + * Function)}. + */ + public SelectField mapping(Class toType, Function21 from) { + return convertFrom(toType, Records.mapping(from)); + } +} diff --git a/src/main/java/jj/tech/paolu/repository/jooq/tables/SynFile.java b/src/main/java/jj/tech/paolu/repository/jooq/tables/SynFile.java new file mode 100644 index 0000000..bcec80b --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/jooq/tables/SynFile.java @@ -0,0 +1,251 @@ +/* + * This file is generated by jOOQ. + */ +package jj.tech.paolu.repository.jooq.tables; + + +import java.util.Arrays; +import java.util.List; +import java.util.function.Function; + +import jj.tech.paolu.repository.jooq.Indexes; +import jj.tech.paolu.repository.jooq.Keys; +import jj.tech.paolu.repository.jooq.Public; +import jj.tech.paolu.repository.jooq.tables.records.SynFileRecord; + +import org.jooq.Field; +import org.jooq.ForeignKey; +import org.jooq.Function17; +import org.jooq.Index; +import org.jooq.Name; +import org.jooq.Record; +import org.jooq.Records; +import org.jooq.Row17; +import org.jooq.Schema; +import org.jooq.SelectField; +import org.jooq.Table; +import org.jooq.TableField; +import org.jooq.TableOptions; +import org.jooq.UniqueKey; +import org.jooq.impl.DSL; +import org.jooq.impl.SQLDataType; +import org.jooq.impl.TableImpl; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +public class SynFile extends TableImpl { + + private static final long serialVersionUID = 1L; + + /** + * The reference instance of public.syn_file + */ + public static final SynFile SYN_FILE = new SynFile(); + + /** + * The class holding records for this type + */ + @Override + public Class getRecordType() { + return SynFileRecord.class; + } + + /** + * The column public.syn_file.id. + */ + public final TableField ID = createField(DSL.name("id"), SQLDataType.VARCHAR(50).nullable(false), this, ""); + + /** + * The column public.syn_file.p_id. + */ + public final TableField P_ID = createField(DSL.name("p_id"), SQLDataType.VARCHAR(50).nullable(false), this, ""); + + /** + * The column public.syn_file.tablenumber. + */ + public final TableField TABLENUMBER = createField(DSL.name("tablenumber"), SQLDataType.VARCHAR(200).defaultValue(DSL.field(DSL.raw("NULL::character varying"), SQLDataType.VARCHAR)), this, ""); + + /** + * The column public.syn_file.annexname. + */ + public final TableField ANNEXNAME = createField(DSL.name("annexname"), SQLDataType.VARCHAR(500).defaultValue(DSL.field(DSL.raw("NULL::character varying"), SQLDataType.VARCHAR)), this, ""); + + /** + * The column public.syn_file.projectname. + */ + public final TableField PROJECTNAME = createField(DSL.name("projectname"), SQLDataType.VARCHAR(500).defaultValue(DSL.field(DSL.raw("NULL::character varying"), SQLDataType.VARCHAR)), this, ""); + + /** + * The column public.syn_file.eweavedate. + */ + public final TableField EWEAVEDATE = createField(DSL.name("eweavedate"), SQLDataType.VARCHAR(100).defaultValue(DSL.field(DSL.raw("NULL::character varying"), SQLDataType.VARCHAR)), this, ""); + + /** + * The column public.syn_file.checkdate. + */ + public final TableField CHECKDATE = createField(DSL.name("checkdate"), SQLDataType.VARCHAR(100).defaultValue(DSL.field(DSL.raw("NULL::character varying"), SQLDataType.VARCHAR)), this, ""); + + /** + * The column public.syn_file.annexpage. + */ + public final TableField ANNEXPAGE = createField(DSL.name("annexpage"), SQLDataType.INTEGER, this, ""); + + /** + * The column public.syn_file.sortorder. + */ + public final TableField SORTORDER = createField(DSL.name("sortorder"), SQLDataType.VARCHAR(50).defaultValue(DSL.field(DSL.raw("NULL::character varying"), SQLDataType.VARCHAR)), this, ""); + + /** + * The column public.syn_file.filefrom. + */ + public final TableField FILEFROM = createField(DSL.name("filefrom"), SQLDataType.VARCHAR(50).defaultValue(DSL.field(DSL.raw("NULL::character varying"), SQLDataType.VARCHAR)), this, ""); + + /** + * The column public.syn_file.archivestag. + */ + public final TableField ARCHIVESTAG = createField(DSL.name("archivestag"), SQLDataType.VARCHAR(50).defaultValue(DSL.field(DSL.raw("NULL::character varying"), SQLDataType.VARCHAR)), this, ""); + + /** + * The column public.syn_file.adddate. + */ + public final TableField ADDDATE = createField(DSL.name("adddate"), SQLDataType.VARCHAR(50).defaultValue(DSL.field(DSL.raw("NULL::character varying"), SQLDataType.VARCHAR)), this, ""); + + /** + * The column public.syn_file.editdate. + */ + public final TableField EDITDATE = createField(DSL.name("editdate"), SQLDataType.VARCHAR(50).defaultValue(DSL.field(DSL.raw("NULL::character varying"), SQLDataType.VARCHAR)), this, ""); + + /** + * The column public.syn_file.time_stamp. + */ + public final TableField TIME_STAMP = createField(DSL.name("time_stamp"), SQLDataType.VARCHAR(20).defaultValue(DSL.field(DSL.raw("NULL::character varying"), SQLDataType.VARCHAR)), this, ""); + + /** + * The column public.syn_file.isdel. + */ + public final TableField ISDEL = createField(DSL.name("isdel"), SQLDataType.INTEGER, this, ""); + + /** + * The column public.syn_file.downurl. + */ + public final TableField DOWNURL = createField(DSL.name("downurl"), SQLDataType.VARCHAR(200).defaultValue(DSL.field(DSL.raw("NULL::character varying"), SQLDataType.VARCHAR)), this, ""); + + /** + * The column public.syn_file.filesize. + */ + public final TableField FILESIZE = createField(DSL.name("filesize"), SQLDataType.INTEGER, this, ""); + + private SynFile(Name alias, Table aliased) { + this(alias, aliased, null); + } + + private SynFile(Name alias, Table aliased, Field[] parameters) { + super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table()); + } + + /** + * Create an aliased public.syn_file table reference + */ + public SynFile(String alias) { + this(DSL.name(alias), SYN_FILE); + } + + /** + * Create an aliased public.syn_file table reference + */ + public SynFile(Name alias) { + this(alias, SYN_FILE); + } + + /** + * Create a public.syn_file table reference + */ + public SynFile() { + this(DSL.name("syn_file"), null); + } + + public SynFile(Table child, ForeignKey key) { + super(child, key, SYN_FILE); + } + + @Override + public Schema getSchema() { + return aliased() ? null : Public.PUBLIC; + } + + @Override + public List getIndexes() { + return Arrays.asList(Indexes.IDX_SYN_FILE_PID); + } + + @Override + public UniqueKey getPrimaryKey() { + return Keys.SYN_FILE_PKEY; + } + + @Override + public SynFile as(String alias) { + return new SynFile(DSL.name(alias), this); + } + + @Override + public SynFile as(Name alias) { + return new SynFile(alias, this); + } + + @Override + public SynFile as(Table alias) { + return new SynFile(alias.getQualifiedName(), this); + } + + /** + * Rename this table + */ + @Override + public SynFile rename(String name) { + return new SynFile(DSL.name(name), null); + } + + /** + * Rename this table + */ + @Override + public SynFile rename(Name name) { + return new SynFile(name, null); + } + + /** + * Rename this table + */ + @Override + public SynFile rename(Table name) { + return new SynFile(name.getQualifiedName(), null); + } + + // ------------------------------------------------------------------------- + // Row17 type methods + // ------------------------------------------------------------------------- + + @Override + public Row17 fieldsRow() { + return (Row17) super.fieldsRow(); + } + + /** + * Convenience mapping calling {@link SelectField#convertFrom(Function)}. + */ + public SelectField mapping(Function17 from) { + return convertFrom(Records.mapping(from)); + } + + /** + * Convenience mapping calling {@link SelectField#convertFrom(Class, + * Function)}. + */ + public SelectField mapping(Class toType, Function17 from) { + return convertFrom(toType, Records.mapping(from)); + } +} diff --git a/src/main/java/jj/tech/paolu/repository/jooq/tables/SysAdmin.java b/src/main/java/jj/tech/paolu/repository/jooq/tables/SysAdmin.java new file mode 100644 index 0000000..80f35ad --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/jooq/tables/SysAdmin.java @@ -0,0 +1,234 @@ +/* + * This file is generated by jOOQ. + */ +package jj.tech.paolu.repository.jooq.tables; + + +import java.util.Arrays; +import java.util.List; +import java.util.function.Function; + +import jj.tech.paolu.repository.jooq.Keys; +import jj.tech.paolu.repository.jooq.Public; +import jj.tech.paolu.repository.jooq.tables.records.SysAdminRecord; + +import org.jooq.Field; +import org.jooq.ForeignKey; +import org.jooq.Function14; +import org.jooq.Name; +import org.jooq.Record; +import org.jooq.Records; +import org.jooq.Row14; +import org.jooq.Schema; +import org.jooq.SelectField; +import org.jooq.Table; +import org.jooq.TableField; +import org.jooq.TableOptions; +import org.jooq.UniqueKey; +import org.jooq.impl.DSL; +import org.jooq.impl.SQLDataType; +import org.jooq.impl.TableImpl; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +public class SysAdmin extends TableImpl { + + private static final long serialVersionUID = 1L; + + /** + * The reference instance of public.sys_admin + */ + public static final SysAdmin SYS_ADMIN = new SysAdmin(); + + /** + * The class holding records for this type + */ + @Override + public Class getRecordType() { + return SysAdminRecord.class; + } + + /** + * The column public.sys_admin.id. + */ + public final TableField ID = createField(DSL.name("id"), SQLDataType.VARCHAR(32).nullable(false), this, ""); + + /** + * The column public.sys_admin.org_id. + */ + public final TableField ORG_ID = createField(DSL.name("org_id"), SQLDataType.VARCHAR(32).nullable(false), this, ""); + + /** + * The column public.sys_admin.realname. + */ + public final TableField REALNAME = createField(DSL.name("realname"), SQLDataType.VARCHAR(255), this, ""); + + /** + * The column public.sys_admin.username. + */ + public final TableField USERNAME = createField(DSL.name("username"), SQLDataType.VARCHAR(255).nullable(false), this, ""); + + /** + * The column public.sys_admin.password. + */ + public final TableField PASSWORD = createField(DSL.name("password"), SQLDataType.VARCHAR(255).nullable(false), this, ""); + + /** + * The column public.sys_admin.phone. + */ + public final TableField PHONE = createField(DSL.name("phone"), SQLDataType.VARCHAR(255).nullable(false), this, ""); + + /** + * The column public.sys_admin.email. + */ + public final TableField EMAIL = createField(DSL.name("email"), SQLDataType.VARCHAR(255), this, ""); + + /** + * The column public.sys_admin.job. + */ + public final TableField JOB = createField(DSL.name("job"), SQLDataType.VARCHAR(255), this, ""); + + /** + * The column public.sys_admin.gender. + */ + public final TableField GENDER = createField(DSL.name("gender"), SQLDataType.INTEGER.defaultValue(DSL.field(DSL.raw("0"), SQLDataType.INTEGER)), this, ""); + + /** + * The column public.sys_admin.islock. + */ + public final TableField ISLOCK = createField(DSL.name("islock"), SQLDataType.INTEGER.defaultValue(DSL.field(DSL.raw("0"), SQLDataType.INTEGER)), this, ""); + + /** + * The column public.sys_admin.type. + */ + public final TableField TYPE = createField(DSL.name("type"), SQLDataType.INTEGER, this, ""); + + /** + * The column public.sys_admin.sort. + */ + public final TableField SORT = createField(DSL.name("sort"), SQLDataType.INTEGER, this, ""); + + /** + * The column public.sys_admin.cer_id. + */ + public final TableField CER_ID = createField(DSL.name("cer_id"), SQLDataType.VARCHAR(32), this, ""); + + /** + * The column public.sys_admin.company_id. 公司ID,组织ID的最高级 + */ + public final TableField COMPANY_ID = createField(DSL.name("company_id"), SQLDataType.VARCHAR(32), this, "公司ID,组织ID的最高级"); + + private SysAdmin(Name alias, Table aliased) { + this(alias, aliased, null); + } + + private SysAdmin(Name alias, Table aliased, Field[] parameters) { + super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table()); + } + + /** + * Create an aliased public.sys_admin table reference + */ + public SysAdmin(String alias) { + this(DSL.name(alias), SYS_ADMIN); + } + + /** + * Create an aliased public.sys_admin table reference + */ + public SysAdmin(Name alias) { + this(alias, SYS_ADMIN); + } + + /** + * Create a public.sys_admin table reference + */ + public SysAdmin() { + this(DSL.name("sys_admin"), null); + } + + public SysAdmin(Table child, ForeignKey key) { + super(child, key, SYS_ADMIN); + } + + @Override + public Schema getSchema() { + return aliased() ? null : Public.PUBLIC; + } + + @Override + public UniqueKey getPrimaryKey() { + return Keys.SYS_ADMIN_PKEY; + } + + @Override + public List> getUniqueKeys() { + return Arrays.asList(Keys.SYS_ADMIN_USERNAME_KEY); + } + + @Override + public SysAdmin as(String alias) { + return new SysAdmin(DSL.name(alias), this); + } + + @Override + public SysAdmin as(Name alias) { + return new SysAdmin(alias, this); + } + + @Override + public SysAdmin as(Table alias) { + return new SysAdmin(alias.getQualifiedName(), this); + } + + /** + * Rename this table + */ + @Override + public SysAdmin rename(String name) { + return new SysAdmin(DSL.name(name), null); + } + + /** + * Rename this table + */ + @Override + public SysAdmin rename(Name name) { + return new SysAdmin(name, null); + } + + /** + * Rename this table + */ + @Override + public SysAdmin rename(Table name) { + return new SysAdmin(name.getQualifiedName(), null); + } + + // ------------------------------------------------------------------------- + // Row14 type methods + // ------------------------------------------------------------------------- + + @Override + public Row14 fieldsRow() { + return (Row14) super.fieldsRow(); + } + + /** + * Convenience mapping calling {@link SelectField#convertFrom(Function)}. + */ + public SelectField mapping(Function14 from) { + return convertFrom(Records.mapping(from)); + } + + /** + * Convenience mapping calling {@link SelectField#convertFrom(Class, + * Function)}. + */ + public SelectField mapping(Class toType, Function14 from) { + return convertFrom(toType, Records.mapping(from)); + } +} diff --git a/src/main/java/jj/tech/paolu/repository/jooq/tables/SysAdminRole.java b/src/main/java/jj/tech/paolu/repository/jooq/tables/SysAdminRole.java new file mode 100644 index 0000000..5030010 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/jooq/tables/SysAdminRole.java @@ -0,0 +1,172 @@ +/* + * This file is generated by jOOQ. + */ +package jj.tech.paolu.repository.jooq.tables; + + +import java.util.function.Function; + +import jj.tech.paolu.repository.jooq.Keys; +import jj.tech.paolu.repository.jooq.Public; +import jj.tech.paolu.repository.jooq.tables.records.SysAdminRoleRecord; + +import org.jooq.Field; +import org.jooq.ForeignKey; +import org.jooq.Function3; +import org.jooq.Name; +import org.jooq.Record; +import org.jooq.Records; +import org.jooq.Row3; +import org.jooq.Schema; +import org.jooq.SelectField; +import org.jooq.Table; +import org.jooq.TableField; +import org.jooq.TableOptions; +import org.jooq.UniqueKey; +import org.jooq.impl.DSL; +import org.jooq.impl.SQLDataType; +import org.jooq.impl.TableImpl; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +public class SysAdminRole extends TableImpl { + + private static final long serialVersionUID = 1L; + + /** + * The reference instance of public.sys_admin_role + */ + public static final SysAdminRole SYS_ADMIN_ROLE = new SysAdminRole(); + + /** + * The class holding records for this type + */ + @Override + public Class getRecordType() { + return SysAdminRoleRecord.class; + } + + /** + * The column public.sys_admin_role.id. + */ + public final TableField ID = createField(DSL.name("id"), SQLDataType.VARCHAR(32).nullable(false), this, ""); + + /** + * The column public.sys_admin_role.adminid. + */ + public final TableField ADMINID = createField(DSL.name("adminid"), SQLDataType.VARCHAR(32).nullable(false), this, ""); + + /** + * The column public.sys_admin_role.roleid. + */ + public final TableField ROLEID = createField(DSL.name("roleid"), SQLDataType.VARCHAR(32).nullable(false), this, ""); + + private SysAdminRole(Name alias, Table aliased) { + this(alias, aliased, null); + } + + private SysAdminRole(Name alias, Table aliased, Field[] parameters) { + super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table()); + } + + /** + * Create an aliased public.sys_admin_role table reference + */ + public SysAdminRole(String alias) { + this(DSL.name(alias), SYS_ADMIN_ROLE); + } + + /** + * Create an aliased public.sys_admin_role table reference + */ + public SysAdminRole(Name alias) { + this(alias, SYS_ADMIN_ROLE); + } + + /** + * Create a public.sys_admin_role table reference + */ + public SysAdminRole() { + this(DSL.name("sys_admin_role"), null); + } + + public SysAdminRole(Table child, ForeignKey key) { + super(child, key, SYS_ADMIN_ROLE); + } + + @Override + public Schema getSchema() { + return aliased() ? null : Public.PUBLIC; + } + + @Override + public UniqueKey getPrimaryKey() { + return Keys.SYS_ADMIN_ROLE_PKEY; + } + + @Override + public SysAdminRole as(String alias) { + return new SysAdminRole(DSL.name(alias), this); + } + + @Override + public SysAdminRole as(Name alias) { + return new SysAdminRole(alias, this); + } + + @Override + public SysAdminRole as(Table alias) { + return new SysAdminRole(alias.getQualifiedName(), this); + } + + /** + * Rename this table + */ + @Override + public SysAdminRole rename(String name) { + return new SysAdminRole(DSL.name(name), null); + } + + /** + * Rename this table + */ + @Override + public SysAdminRole rename(Name name) { + return new SysAdminRole(name, null); + } + + /** + * Rename this table + */ + @Override + public SysAdminRole rename(Table name) { + return new SysAdminRole(name.getQualifiedName(), null); + } + + // ------------------------------------------------------------------------- + // Row3 type methods + // ------------------------------------------------------------------------- + + @Override + public Row3 fieldsRow() { + return (Row3) super.fieldsRow(); + } + + /** + * Convenience mapping calling {@link SelectField#convertFrom(Function)}. + */ + public SelectField mapping(Function3 from) { + return convertFrom(Records.mapping(from)); + } + + /** + * Convenience mapping calling {@link SelectField#convertFrom(Class, + * Function)}. + */ + public SelectField mapping(Class toType, Function3 from) { + return convertFrom(toType, Records.mapping(from)); + } +} diff --git a/src/main/java/jj/tech/paolu/repository/jooq/tables/SysAdminWeid.java b/src/main/java/jj/tech/paolu/repository/jooq/tables/SysAdminWeid.java new file mode 100644 index 0000000..f4ef671 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/jooq/tables/SysAdminWeid.java @@ -0,0 +1,200 @@ +/* + * This file is generated by jOOQ. + */ +package jj.tech.paolu.repository.jooq.tables; + + +import java.time.LocalDateTime; +import java.util.Arrays; +import java.util.List; +import java.util.function.Function; + +import jj.tech.paolu.repository.jooq.Keys; +import jj.tech.paolu.repository.jooq.Public; +import jj.tech.paolu.repository.jooq.tables.records.SysAdminWeidRecord; + +import org.jooq.Field; +import org.jooq.ForeignKey; +import org.jooq.Function7; +import org.jooq.Name; +import org.jooq.Record; +import org.jooq.Records; +import org.jooq.Row7; +import org.jooq.Schema; +import org.jooq.SelectField; +import org.jooq.Table; +import org.jooq.TableField; +import org.jooq.TableOptions; +import org.jooq.UniqueKey; +import org.jooq.impl.DSL; +import org.jooq.impl.SQLDataType; +import org.jooq.impl.TableImpl; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +public class SysAdminWeid extends TableImpl { + + private static final long serialVersionUID = 1L; + + /** + * The reference instance of public.sys_admin_weid + */ + public static final SysAdminWeid SYS_ADMIN_WEID = new SysAdminWeid(); + + /** + * The class holding records for this type + */ + @Override + public Class getRecordType() { + return SysAdminWeidRecord.class; + } + + /** + * The column public.sys_admin_weid.id. + */ + public final TableField ID = createField(DSL.name("id"), SQLDataType.VARCHAR(32).nullable(false), this, ""); + + /** + * The column public.sys_admin_weid.admin_id. + */ + public final TableField ADMIN_ID = createField(DSL.name("admin_id"), SQLDataType.VARCHAR(32).nullable(false), this, ""); + + /** + * The column public.sys_admin_weid.wid. + */ + public final TableField WID = createField(DSL.name("wid"), SQLDataType.VARCHAR(255).defaultValue(DSL.field(DSL.raw("NULL::character varying"), SQLDataType.VARCHAR)), this, ""); + + /** + * The column public.sys_admin_weid.wprivate_key. + */ + public final TableField WPRIVATE_KEY = createField(DSL.name("wprivate_key"), SQLDataType.VARCHAR(500).nullable(false), this, ""); + + /** + * The column public.sys_admin_weid.add_time. + */ + public final TableField ADD_TIME = createField(DSL.name("add_time"), SQLDataType.LOCALDATETIME(6), this, ""); + + /** + * The column public.sys_admin_weid.certificate_hash. 存证哈希 + */ + public final TableField CERTIFICATE_HASH = createField(DSL.name("certificate_hash"), SQLDataType.VARCHAR(200), this, "存证哈希"); + + /** + * The column public.sys_admin_weid.chain_block. + */ + public final TableField CHAIN_BLOCK = createField(DSL.name("chain_block"), SQLDataType.VARCHAR, this, ""); + + private SysAdminWeid(Name alias, Table aliased) { + this(alias, aliased, null); + } + + private SysAdminWeid(Name alias, Table aliased, Field[] parameters) { + super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table()); + } + + /** + * Create an aliased public.sys_admin_weid table reference + */ + public SysAdminWeid(String alias) { + this(DSL.name(alias), SYS_ADMIN_WEID); + } + + /** + * Create an aliased public.sys_admin_weid table reference + */ + public SysAdminWeid(Name alias) { + this(alias, SYS_ADMIN_WEID); + } + + /** + * Create a public.sys_admin_weid table reference + */ + public SysAdminWeid() { + this(DSL.name("sys_admin_weid"), null); + } + + public SysAdminWeid(Table child, ForeignKey key) { + super(child, key, SYS_ADMIN_WEID); + } + + @Override + public Schema getSchema() { + return aliased() ? null : Public.PUBLIC; + } + + @Override + public UniqueKey getPrimaryKey() { + return Keys.SYS_ADMIN_WEID_PKEY; + } + + @Override + public List> getUniqueKeys() { + return Arrays.asList(Keys.SYS_ADMIN_WEID_ADMIN_ID_KEY); + } + + @Override + public SysAdminWeid as(String alias) { + return new SysAdminWeid(DSL.name(alias), this); + } + + @Override + public SysAdminWeid as(Name alias) { + return new SysAdminWeid(alias, this); + } + + @Override + public SysAdminWeid as(Table alias) { + return new SysAdminWeid(alias.getQualifiedName(), this); + } + + /** + * Rename this table + */ + @Override + public SysAdminWeid rename(String name) { + return new SysAdminWeid(DSL.name(name), null); + } + + /** + * Rename this table + */ + @Override + public SysAdminWeid rename(Name name) { + return new SysAdminWeid(name, null); + } + + /** + * Rename this table + */ + @Override + public SysAdminWeid rename(Table name) { + return new SysAdminWeid(name.getQualifiedName(), null); + } + + // ------------------------------------------------------------------------- + // Row7 type methods + // ------------------------------------------------------------------------- + + @Override + public Row7 fieldsRow() { + return (Row7) super.fieldsRow(); + } + + /** + * Convenience mapping calling {@link SelectField#convertFrom(Function)}. + */ + public SelectField mapping(Function7 from) { + return convertFrom(Records.mapping(from)); + } + + /** + * Convenience mapping calling {@link SelectField#convertFrom(Class, + * Function)}. + */ + public SelectField mapping(Class toType, Function7 from) { + return convertFrom(toType, Records.mapping(from)); + } +} diff --git a/src/main/java/jj/tech/paolu/repository/jooq/tables/SysArea.java b/src/main/java/jj/tech/paolu/repository/jooq/tables/SysArea.java new file mode 100644 index 0000000..f1366a7 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/jooq/tables/SysArea.java @@ -0,0 +1,201 @@ +/* + * This file is generated by jOOQ. + */ +package jj.tech.paolu.repository.jooq.tables; + + +import java.util.Arrays; +import java.util.List; +import java.util.function.Function; + +import jj.tech.paolu.repository.jooq.Indexes; +import jj.tech.paolu.repository.jooq.Keys; +import jj.tech.paolu.repository.jooq.Public; +import jj.tech.paolu.repository.jooq.tables.records.SysAreaRecord; + +import org.jooq.Field; +import org.jooq.ForeignKey; +import org.jooq.Function7; +import org.jooq.Index; +import org.jooq.Name; +import org.jooq.Record; +import org.jooq.Records; +import org.jooq.Row7; +import org.jooq.Schema; +import org.jooq.SelectField; +import org.jooq.Table; +import org.jooq.TableField; +import org.jooq.TableOptions; +import org.jooq.UniqueKey; +import org.jooq.impl.DSL; +import org.jooq.impl.SQLDataType; +import org.jooq.impl.TableImpl; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +public class SysArea extends TableImpl { + + private static final long serialVersionUID = 1L; + + /** + * The reference instance of public.sys_area + */ + public static final SysArea SYS_AREA = new SysArea(); + + /** + * The class holding records for this type + */ + @Override + public Class getRecordType() { + return SysAreaRecord.class; + } + + /** + * The column public.sys_area.id. + */ + public final TableField ID = createField(DSL.name("id"), SQLDataType.VARCHAR(32).nullable(false), this, ""); + + /** + * The column public.sys_area.level_code. + */ + public final TableField LEVEL_CODE = createField(DSL.name("level_code"), SQLDataType.SMALLINT, this, ""); + + /** + * The column public.sys_area.parent_code. + */ + public final TableField PARENT_CODE = createField(DSL.name("parent_code"), SQLDataType.VARCHAR(32), this, ""); + + /** + * The column public.sys_area.area_code. + */ + public final TableField AREA_CODE = createField(DSL.name("area_code"), SQLDataType.VARCHAR(32), this, ""); + + /** + * The column public.sys_area.name. + */ + public final TableField NAME = createField(DSL.name("name"), SQLDataType.VARCHAR(255), this, ""); + + /** + * The column public.sys_area.pid. + */ + public final TableField PID = createField(DSL.name("pid"), SQLDataType.VARCHAR(32), this, ""); + + /** + * The column public.sys_area.pids. + */ + public final TableField PIDS = createField(DSL.name("pids"), SQLDataType.VARCHAR(1000), this, ""); + + private SysArea(Name alias, Table aliased) { + this(alias, aliased, null); + } + + private SysArea(Name alias, Table aliased, Field[] parameters) { + super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table()); + } + + /** + * Create an aliased public.sys_area table reference + */ + public SysArea(String alias) { + this(DSL.name(alias), SYS_AREA); + } + + /** + * Create an aliased public.sys_area table reference + */ + public SysArea(Name alias) { + this(alias, SYS_AREA); + } + + /** + * Create a public.sys_area table reference + */ + public SysArea() { + this(DSL.name("sys_area"), null); + } + + public SysArea(Table child, ForeignKey key) { + super(child, key, SYS_AREA); + } + + @Override + public Schema getSchema() { + return aliased() ? null : Public.PUBLIC; + } + + @Override + public List getIndexes() { + return Arrays.asList(Indexes.IDX_PARENT_CODE, Indexes.UK_CODE); + } + + @Override + public UniqueKey getPrimaryKey() { + return Keys.SYS_AREA_PKEY; + } + + @Override + public SysArea as(String alias) { + return new SysArea(DSL.name(alias), this); + } + + @Override + public SysArea as(Name alias) { + return new SysArea(alias, this); + } + + @Override + public SysArea as(Table alias) { + return new SysArea(alias.getQualifiedName(), this); + } + + /** + * Rename this table + */ + @Override + public SysArea rename(String name) { + return new SysArea(DSL.name(name), null); + } + + /** + * Rename this table + */ + @Override + public SysArea rename(Name name) { + return new SysArea(name, null); + } + + /** + * Rename this table + */ + @Override + public SysArea rename(Table name) { + return new SysArea(name.getQualifiedName(), null); + } + + // ------------------------------------------------------------------------- + // Row7 type methods + // ------------------------------------------------------------------------- + + @Override + public Row7 fieldsRow() { + return (Row7) super.fieldsRow(); + } + + /** + * Convenience mapping calling {@link SelectField#convertFrom(Function)}. + */ + public SelectField mapping(Function7 from) { + return convertFrom(Records.mapping(from)); + } + + /** + * Convenience mapping calling {@link SelectField#convertFrom(Class, + * Function)}. + */ + public SelectField mapping(Class toType, Function7 from) { + return convertFrom(toType, Records.mapping(from)); + } +} diff --git a/src/main/java/jj/tech/paolu/repository/jooq/tables/SysConfig.java b/src/main/java/jj/tech/paolu/repository/jooq/tables/SysConfig.java new file mode 100644 index 0000000..b147a86 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/jooq/tables/SysConfig.java @@ -0,0 +1,200 @@ +/* + * This file is generated by jOOQ. + */ +package jj.tech.paolu.repository.jooq.tables; + + +import java.time.LocalDateTime; +import java.util.Arrays; +import java.util.List; +import java.util.function.Function; + +import jj.tech.paolu.repository.jooq.Keys; +import jj.tech.paolu.repository.jooq.Public; +import jj.tech.paolu.repository.jooq.tables.records.SysConfigRecord; + +import org.jooq.Field; +import org.jooq.ForeignKey; +import org.jooq.Function7; +import org.jooq.Name; +import org.jooq.Record; +import org.jooq.Records; +import org.jooq.Row7; +import org.jooq.Schema; +import org.jooq.SelectField; +import org.jooq.Table; +import org.jooq.TableField; +import org.jooq.TableOptions; +import org.jooq.UniqueKey; +import org.jooq.impl.DSL; +import org.jooq.impl.SQLDataType; +import org.jooq.impl.TableImpl; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +public class SysConfig extends TableImpl { + + private static final long serialVersionUID = 1L; + + /** + * The reference instance of public.sys_config + */ + public static final SysConfig SYS_CONFIG = new SysConfig(); + + /** + * The class holding records for this type + */ + @Override + public Class getRecordType() { + return SysConfigRecord.class; + } + + /** + * The column public.sys_config.id. + */ + public final TableField ID = createField(DSL.name("id"), SQLDataType.VARCHAR(32).nullable(false), this, ""); + + /** + * The column public.sys_config.subgroup. + */ + public final TableField SUBGROUP = createField(DSL.name("subgroup"), SQLDataType.VARCHAR(255).nullable(false), this, ""); + + /** + * The column public.sys_config.keys. + */ + public final TableField KEYS = createField(DSL.name("keys"), SQLDataType.VARCHAR(255).nullable(false), this, ""); + + /** + * The column public.sys_config.val. + */ + public final TableField VAL = createField(DSL.name("val"), SQLDataType.VARCHAR(1024), this, ""); + + /** + * The column public.sys_config.admin_id. + */ + public final TableField ADMIN_ID = createField(DSL.name("admin_id"), SQLDataType.VARCHAR(32), this, ""); + + /** + * The column public.sys_config.adminname. + */ + public final TableField ADMINNAME = createField(DSL.name("adminname"), SQLDataType.VARCHAR(32), this, ""); + + /** + * The column public.sys_config.edittime. + */ + public final TableField EDITTIME = createField(DSL.name("edittime"), SQLDataType.LOCALDATETIME(6), this, ""); + + private SysConfig(Name alias, Table aliased) { + this(alias, aliased, null); + } + + private SysConfig(Name alias, Table aliased, Field[] parameters) { + super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table()); + } + + /** + * Create an aliased public.sys_config table reference + */ + public SysConfig(String alias) { + this(DSL.name(alias), SYS_CONFIG); + } + + /** + * Create an aliased public.sys_config table reference + */ + public SysConfig(Name alias) { + this(alias, SYS_CONFIG); + } + + /** + * Create a public.sys_config table reference + */ + public SysConfig() { + this(DSL.name("sys_config"), null); + } + + public SysConfig(Table child, ForeignKey key) { + super(child, key, SYS_CONFIG); + } + + @Override + public Schema getSchema() { + return aliased() ? null : Public.PUBLIC; + } + + @Override + public UniqueKey getPrimaryKey() { + return Keys.SYS_CONFIG_PKEY; + } + + @Override + public List> getUniqueKeys() { + return Arrays.asList(Keys.SYS_CONFIG_KEYS_KEY); + } + + @Override + public SysConfig as(String alias) { + return new SysConfig(DSL.name(alias), this); + } + + @Override + public SysConfig as(Name alias) { + return new SysConfig(alias, this); + } + + @Override + public SysConfig as(Table alias) { + return new SysConfig(alias.getQualifiedName(), this); + } + + /** + * Rename this table + */ + @Override + public SysConfig rename(String name) { + return new SysConfig(DSL.name(name), null); + } + + /** + * Rename this table + */ + @Override + public SysConfig rename(Name name) { + return new SysConfig(name, null); + } + + /** + * Rename this table + */ + @Override + public SysConfig rename(Table name) { + return new SysConfig(name.getQualifiedName(), null); + } + + // ------------------------------------------------------------------------- + // Row7 type methods + // ------------------------------------------------------------------------- + + @Override + public Row7 fieldsRow() { + return (Row7) super.fieldsRow(); + } + + /** + * Convenience mapping calling {@link SelectField#convertFrom(Function)}. + */ + public SelectField mapping(Function7 from) { + return convertFrom(Records.mapping(from)); + } + + /** + * Convenience mapping calling {@link SelectField#convertFrom(Class, + * Function)}. + */ + public SelectField mapping(Class toType, Function7 from) { + return convertFrom(toType, Records.mapping(from)); + } +} diff --git a/src/main/java/jj/tech/paolu/repository/jooq/tables/SysMenu.java b/src/main/java/jj/tech/paolu/repository/jooq/tables/SysMenu.java new file mode 100644 index 0000000..2f143e2 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/jooq/tables/SysMenu.java @@ -0,0 +1,212 @@ +/* + * This file is generated by jOOQ. + */ +package jj.tech.paolu.repository.jooq.tables; + + +import java.util.function.Function; + +import jj.tech.paolu.repository.jooq.Keys; +import jj.tech.paolu.repository.jooq.Public; +import jj.tech.paolu.repository.jooq.tables.records.SysMenuRecord; + +import org.jooq.Field; +import org.jooq.ForeignKey; +import org.jooq.Function11; +import org.jooq.Name; +import org.jooq.Record; +import org.jooq.Records; +import org.jooq.Row11; +import org.jooq.Schema; +import org.jooq.SelectField; +import org.jooq.Table; +import org.jooq.TableField; +import org.jooq.TableOptions; +import org.jooq.UniqueKey; +import org.jooq.impl.DSL; +import org.jooq.impl.SQLDataType; +import org.jooq.impl.TableImpl; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +public class SysMenu extends TableImpl { + + private static final long serialVersionUID = 1L; + + /** + * The reference instance of public.sys_menu + */ + public static final SysMenu SYS_MENU = new SysMenu(); + + /** + * The class holding records for this type + */ + @Override + public Class getRecordType() { + return SysMenuRecord.class; + } + + /** + * The column public.sys_menu.id. + */ + public final TableField ID = createField(DSL.name("id"), SQLDataType.VARCHAR(32).nullable(false), this, ""); + + /** + * The column public.sys_menu.parent_id. + */ + public final TableField PARENT_ID = createField(DSL.name("parent_id"), SQLDataType.VARCHAR(32), this, ""); + + /** + * The column public.sys_menu.level. + */ + public final TableField LEVEL = createField(DSL.name("level"), SQLDataType.INTEGER, this, ""); + + /** + * The column public.sys_menu.name. + */ + public final TableField NAME = createField(DSL.name("name"), SQLDataType.VARCHAR(255), this, ""); + + /** + * The column public.sys_menu.types. + */ + public final TableField TYPES = createField(DSL.name("types"), SQLDataType.VARCHAR(255), this, ""); + + /** + * The column public.sys_menu.url. + */ + public final TableField URL = createField(DSL.name("url"), SQLDataType.VARCHAR(255), this, ""); + + /** + * The column public.sys_menu.icon. + */ + public final TableField ICON = createField(DSL.name("icon"), SQLDataType.VARCHAR(255), this, ""); + + /** + * The column public.sys_menu.is_open. + */ + public final TableField IS_OPEN = createField(DSL.name("is_open"), SQLDataType.INTEGER.defaultValue(DSL.field(DSL.raw("0"), SQLDataType.INTEGER)), this, ""); + + /** + * The column public.sys_menu.description. + */ + public final TableField DESCRIPTION = createField(DSL.name("description"), SQLDataType.VARCHAR(255), this, ""); + + /** + * The column public.sys_menu.sort. + */ + public final TableField SORT = createField(DSL.name("sort"), SQLDataType.INTEGER.defaultValue(DSL.field(DSL.raw("0"), SQLDataType.INTEGER)), this, ""); + + /** + * The column public.sys_menu.parentpath. + */ + public final TableField PARENTPATH = createField(DSL.name("parentpath"), SQLDataType.VARCHAR(255), this, ""); + + private SysMenu(Name alias, Table aliased) { + this(alias, aliased, null); + } + + private SysMenu(Name alias, Table aliased, Field[] parameters) { + super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table()); + } + + /** + * Create an aliased public.sys_menu table reference + */ + public SysMenu(String alias) { + this(DSL.name(alias), SYS_MENU); + } + + /** + * Create an aliased public.sys_menu table reference + */ + public SysMenu(Name alias) { + this(alias, SYS_MENU); + } + + /** + * Create a public.sys_menu table reference + */ + public SysMenu() { + this(DSL.name("sys_menu"), null); + } + + public SysMenu(Table child, ForeignKey key) { + super(child, key, SYS_MENU); + } + + @Override + public Schema getSchema() { + return aliased() ? null : Public.PUBLIC; + } + + @Override + public UniqueKey getPrimaryKey() { + return Keys.SYS_MENU_PKEY; + } + + @Override + public SysMenu as(String alias) { + return new SysMenu(DSL.name(alias), this); + } + + @Override + public SysMenu as(Name alias) { + return new SysMenu(alias, this); + } + + @Override + public SysMenu as(Table alias) { + return new SysMenu(alias.getQualifiedName(), this); + } + + /** + * Rename this table + */ + @Override + public SysMenu rename(String name) { + return new SysMenu(DSL.name(name), null); + } + + /** + * Rename this table + */ + @Override + public SysMenu rename(Name name) { + return new SysMenu(name, null); + } + + /** + * Rename this table + */ + @Override + public SysMenu rename(Table name) { + return new SysMenu(name.getQualifiedName(), null); + } + + // ------------------------------------------------------------------------- + // Row11 type methods + // ------------------------------------------------------------------------- + + @Override + public Row11 fieldsRow() { + return (Row11) super.fieldsRow(); + } + + /** + * Convenience mapping calling {@link SelectField#convertFrom(Function)}. + */ + public SelectField mapping(Function11 from) { + return convertFrom(Records.mapping(from)); + } + + /** + * Convenience mapping calling {@link SelectField#convertFrom(Class, + * Function)}. + */ + public SelectField mapping(Class toType, Function11 from) { + return convertFrom(toType, Records.mapping(from)); + } +} diff --git a/src/main/java/jj/tech/paolu/repository/jooq/tables/SysOrg.java b/src/main/java/jj/tech/paolu/repository/jooq/tables/SysOrg.java new file mode 100644 index 0000000..3cf8529 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/jooq/tables/SysOrg.java @@ -0,0 +1,279 @@ +/* + * This file is generated by jOOQ. + */ +package jj.tech.paolu.repository.jooq.tables; + + +import java.time.LocalDateTime; + +import jj.tech.paolu.repository.jooq.Keys; +import jj.tech.paolu.repository.jooq.Public; +import jj.tech.paolu.repository.jooq.tables.records.SysOrgRecord; + +import org.jooq.Field; +import org.jooq.ForeignKey; +import org.jooq.Name; +import org.jooq.Record; +import org.jooq.Schema; +import org.jooq.Table; +import org.jooq.TableField; +import org.jooq.TableOptions; +import org.jooq.UniqueKey; +import org.jooq.impl.DSL; +import org.jooq.impl.SQLDataType; +import org.jooq.impl.TableImpl; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +public class SysOrg extends TableImpl { + + private static final long serialVersionUID = 1L; + + /** + * The reference instance of public.sys_org + */ + public static final SysOrg SYS_ORG = new SysOrg(); + + /** + * The class holding records for this type + */ + @Override + public Class getRecordType() { + return SysOrgRecord.class; + } + + /** + * The column public.sys_org.id. + */ + public final TableField ID = createField(DSL.name("id"), SQLDataType.VARCHAR(32).nullable(false), this, ""); + + /** + * The column public.sys_org.pid. + */ + public final TableField PID = createField(DSL.name("pid"), SQLDataType.VARCHAR(32).nullable(false), this, ""); + + /** + * The column public.sys_org.chinese_simple_name. + */ + public final TableField CHINESE_SIMPLE_NAME = createField(DSL.name("chinese_simple_name"), SQLDataType.VARCHAR(255).nullable(false), this, ""); + + /** + * The column public.sys_org.english_simple_name. + */ + public final TableField ENGLISH_SIMPLE_NAME = createField(DSL.name("english_simple_name"), SQLDataType.VARCHAR(255), this, ""); + + /** + * The column public.sys_org.chinese_full_name. + */ + public final TableField CHINESE_FULL_NAME = createField(DSL.name("chinese_full_name"), SQLDataType.VARCHAR(255), this, ""); + + /** + * The column public.sys_org.english_full_name. + */ + public final TableField ENGLISH_FULL_NAME = createField(DSL.name("english_full_name"), SQLDataType.VARCHAR(255), this, ""); + + /** + * The column public.sys_org.code. + */ + public final TableField CODE = createField(DSL.name("code"), SQLDataType.VARCHAR(255), this, ""); + + /** + * The column public.sys_org.sort. + */ + public final TableField SORT = createField(DSL.name("sort"), SQLDataType.INTEGER.defaultValue(DSL.field(DSL.raw("0"), SQLDataType.INTEGER)), this, ""); + + /** + * The column public.sys_org.status. + */ + public final TableField STATUS = createField(DSL.name("status"), SQLDataType.INTEGER.defaultValue(DSL.field(DSL.raw("1"), SQLDataType.INTEGER)), this, ""); + + /** + * The column public.sys_org.is_company_department. + */ + public final TableField IS_COMPANY_DEPARTMENT = createField(DSL.name("is_company_department"), SQLDataType.INTEGER.nullable(false), this, ""); + + /** + * The column public.sys_org.enterprise_legal_person. + */ + public final TableField ENTERPRISE_LEGAL_PERSON = createField(DSL.name("enterprise_legal_person"), SQLDataType.VARCHAR(255), this, ""); + + /** + * The column public.sys_org.contact_person. + */ + public final TableField CONTACT_PERSON = createField(DSL.name("contact_person"), SQLDataType.VARCHAR(255), this, ""); + + /** + * The column public.sys_org.contact_phone. + */ + public final TableField CONTACT_PHONE = createField(DSL.name("contact_phone"), SQLDataType.VARCHAR(255), this, ""); + + /** + * The column public.sys_org.remark. + */ + public final TableField REMARK = createField(DSL.name("remark"), SQLDataType.VARCHAR(255), this, ""); + + /** + * The column public.sys_org.create_time. + */ + public final TableField CREATE_TIME = createField(DSL.name("create_time"), SQLDataType.LOCALDATETIME(6), this, ""); + + /** + * The column public.sys_org.create_user. + */ + public final TableField CREATE_USER = createField(DSL.name("create_user"), SQLDataType.VARCHAR(32), this, ""); + + /** + * The column public.sys_org.update_time. + */ + public final TableField UPDATE_TIME = createField(DSL.name("update_time"), SQLDataType.LOCALDATETIME(6), this, ""); + + /** + * The column public.sys_org.update_user. + */ + public final TableField UPDATE_USER = createField(DSL.name("update_user"), SQLDataType.VARCHAR(32), this, ""); + + /** + * The column public.sys_org.name. + */ + public final TableField NAME = createField(DSL.name("name"), SQLDataType.VARCHAR(255), this, ""); + + /** + * The column public.sys_org.industry_name. + */ + public final TableField INDUSTRY_NAME = createField(DSL.name("industry_name"), SQLDataType.VARCHAR(255), this, ""); + + /** + * The column public.sys_org.industry_code. + */ + public final TableField INDUSTRY_CODE = createField(DSL.name("industry_code"), SQLDataType.VARCHAR(32), this, ""); + + /** + * The column public.sys_org.province_code. + */ + public final TableField PROVINCE_CODE = createField(DSL.name("province_code"), SQLDataType.VARCHAR(32), this, ""); + + /** + * The column public.sys_org.city_code. + */ + public final TableField CITY_CODE = createField(DSL.name("city_code"), SQLDataType.VARCHAR(32), this, ""); + + /** + * The column public.sys_org.area_code. + */ + public final TableField AREA_CODE = createField(DSL.name("area_code"), SQLDataType.VARCHAR(32), this, ""); + + /** + * The column public.sys_org.addr. + */ + public final TableField ADDR = createField(DSL.name("addr"), SQLDataType.VARCHAR(255), this, ""); + + /** + * The column public.sys_org.uscc. + */ + public final TableField USCC = createField(DSL.name("uscc"), SQLDataType.VARCHAR(255), this, ""); + + /** + * The column public.sys_org.org_type. + */ + public final TableField ORG_TYPE = createField(DSL.name("org_type"), SQLDataType.VARCHAR(255), this, ""); + + /** + * The column public.sys_org.is_archives_dep. + */ + public final TableField IS_ARCHIVES_DEP = createField(DSL.name("is_archives_dep"), SQLDataType.INTEGER, this, ""); + + /** + * The column public.sys_org.cer_id. + */ + public final TableField CER_ID = createField(DSL.name("cer_id"), SQLDataType.VARCHAR(32), this, ""); + + /** + * The column public.sys_org.is_forbidden. + */ + public final TableField IS_FORBIDDEN = createField(DSL.name("is_forbidden"), SQLDataType.INTEGER.nullable(false).defaultValue(DSL.field(DSL.raw("0"), SQLDataType.INTEGER)), this, ""); + + private SysOrg(Name alias, Table aliased) { + this(alias, aliased, null); + } + + private SysOrg(Name alias, Table aliased, Field[] parameters) { + super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table()); + } + + /** + * Create an aliased public.sys_org table reference + */ + public SysOrg(String alias) { + this(DSL.name(alias), SYS_ORG); + } + + /** + * Create an aliased public.sys_org table reference + */ + public SysOrg(Name alias) { + this(alias, SYS_ORG); + } + + /** + * Create a public.sys_org table reference + */ + public SysOrg() { + this(DSL.name("sys_org"), null); + } + + public SysOrg(Table child, ForeignKey key) { + super(child, key, SYS_ORG); + } + + @Override + public Schema getSchema() { + return aliased() ? null : Public.PUBLIC; + } + + @Override + public UniqueKey getPrimaryKey() { + return Keys.SYS_ORG_PKEY1; + } + + @Override + public SysOrg as(String alias) { + return new SysOrg(DSL.name(alias), this); + } + + @Override + public SysOrg as(Name alias) { + return new SysOrg(alias, this); + } + + @Override + public SysOrg as(Table alias) { + return new SysOrg(alias.getQualifiedName(), this); + } + + /** + * Rename this table + */ + @Override + public SysOrg rename(String name) { + return new SysOrg(DSL.name(name), null); + } + + /** + * Rename this table + */ + @Override + public SysOrg rename(Name name) { + return new SysOrg(name, null); + } + + /** + * Rename this table + */ + @Override + public SysOrg rename(Table name) { + return new SysOrg(name.getQualifiedName(), null); + } +} diff --git a/src/main/java/jj/tech/paolu/repository/jooq/tables/SysRole.java b/src/main/java/jj/tech/paolu/repository/jooq/tables/SysRole.java new file mode 100644 index 0000000..8fe8ac9 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/jooq/tables/SysRole.java @@ -0,0 +1,202 @@ +/* + * This file is generated by jOOQ. + */ +package jj.tech.paolu.repository.jooq.tables; + + +import java.util.function.Function; + +import jj.tech.paolu.repository.jooq.Keys; +import jj.tech.paolu.repository.jooq.Public; +import jj.tech.paolu.repository.jooq.tables.records.SysRoleRecord; + +import org.jooq.Field; +import org.jooq.ForeignKey; +import org.jooq.Function9; +import org.jooq.Name; +import org.jooq.Record; +import org.jooq.Records; +import org.jooq.Row9; +import org.jooq.Schema; +import org.jooq.SelectField; +import org.jooq.Table; +import org.jooq.TableField; +import org.jooq.TableOptions; +import org.jooq.UniqueKey; +import org.jooq.impl.DSL; +import org.jooq.impl.SQLDataType; +import org.jooq.impl.TableImpl; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +public class SysRole extends TableImpl { + + private static final long serialVersionUID = 1L; + + /** + * The reference instance of public.sys_role + */ + public static final SysRole SYS_ROLE = new SysRole(); + + /** + * The class holding records for this type + */ + @Override + public Class getRecordType() { + return SysRoleRecord.class; + } + + /** + * The column public.sys_role.id. + */ + public final TableField ID = createField(DSL.name("id"), SQLDataType.VARCHAR(32).nullable(false), this, ""); + + /** + * The column public.sys_role.rolename. + */ + public final TableField ROLENAME = createField(DSL.name("rolename"), SQLDataType.VARCHAR(255).nullable(false), this, ""); + + /** + * The column public.sys_role.describe. + */ + public final TableField DESCRIBE = createField(DSL.name("describe"), SQLDataType.VARCHAR(255), this, ""); + + /** + * The column public.sys_role.sort. + */ + public final TableField SORT = createField(DSL.name("sort"), SQLDataType.INTEGER.defaultValue(DSL.field(DSL.raw("0"), SQLDataType.INTEGER)), this, ""); + + /** + * The column public.sys_role.is_open. + */ + public final TableField IS_OPEN = createField(DSL.name("is_open"), SQLDataType.INTEGER.defaultValue(DSL.field(DSL.raw("1"), SQLDataType.INTEGER)), this, ""); + + /** + * The column public.sys_role.sign_name. + */ + public final TableField SIGN_NAME = createField(DSL.name("sign_name"), SQLDataType.VARCHAR(255), this, ""); + + /** + * The column public.sys_role.sign_id. + */ + public final TableField SIGN_ID = createField(DSL.name("sign_id"), SQLDataType.VARCHAR(32).nullable(false), this, ""); + + /** + * The column public.sys_role.company_id. + */ + public final TableField COMPANY_ID = createField(DSL.name("company_id"), SQLDataType.VARCHAR(32).nullable(false), this, ""); + + /** + * The column public.sys_role.company_name. + */ + public final TableField COMPANY_NAME = createField(DSL.name("company_name"), SQLDataType.VARCHAR(100).nullable(false), this, ""); + + private SysRole(Name alias, Table aliased) { + this(alias, aliased, null); + } + + private SysRole(Name alias, Table aliased, Field[] parameters) { + super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table()); + } + + /** + * Create an aliased public.sys_role table reference + */ + public SysRole(String alias) { + this(DSL.name(alias), SYS_ROLE); + } + + /** + * Create an aliased public.sys_role table reference + */ + public SysRole(Name alias) { + this(alias, SYS_ROLE); + } + + /** + * Create a public.sys_role table reference + */ + public SysRole() { + this(DSL.name("sys_role"), null); + } + + public SysRole(Table child, ForeignKey key) { + super(child, key, SYS_ROLE); + } + + @Override + public Schema getSchema() { + return aliased() ? null : Public.PUBLIC; + } + + @Override + public UniqueKey getPrimaryKey() { + return Keys.SYS_ROLE_PKEY; + } + + @Override + public SysRole as(String alias) { + return new SysRole(DSL.name(alias), this); + } + + @Override + public SysRole as(Name alias) { + return new SysRole(alias, this); + } + + @Override + public SysRole as(Table alias) { + return new SysRole(alias.getQualifiedName(), this); + } + + /** + * Rename this table + */ + @Override + public SysRole rename(String name) { + return new SysRole(DSL.name(name), null); + } + + /** + * Rename this table + */ + @Override + public SysRole rename(Name name) { + return new SysRole(name, null); + } + + /** + * Rename this table + */ + @Override + public SysRole rename(Table name) { + return new SysRole(name.getQualifiedName(), null); + } + + // ------------------------------------------------------------------------- + // Row9 type methods + // ------------------------------------------------------------------------- + + @Override + public Row9 fieldsRow() { + return (Row9) super.fieldsRow(); + } + + /** + * Convenience mapping calling {@link SelectField#convertFrom(Function)}. + */ + public SelectField mapping(Function9 from) { + return convertFrom(Records.mapping(from)); + } + + /** + * Convenience mapping calling {@link SelectField#convertFrom(Class, + * Function)}. + */ + public SelectField mapping(Class toType, Function9 from) { + return convertFrom(toType, Records.mapping(from)); + } +} diff --git a/src/main/java/jj/tech/paolu/repository/jooq/tables/SysRoleMenu.java b/src/main/java/jj/tech/paolu/repository/jooq/tables/SysRoleMenu.java new file mode 100644 index 0000000..67b70b0 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/jooq/tables/SysRoleMenu.java @@ -0,0 +1,179 @@ +/* + * This file is generated by jOOQ. + */ +package jj.tech.paolu.repository.jooq.tables; + + +import java.util.Arrays; +import java.util.List; +import java.util.function.Function; + +import jj.tech.paolu.repository.jooq.Keys; +import jj.tech.paolu.repository.jooq.Public; +import jj.tech.paolu.repository.jooq.tables.records.SysRoleMenuRecord; + +import org.jooq.Field; +import org.jooq.ForeignKey; +import org.jooq.Function3; +import org.jooq.Name; +import org.jooq.Record; +import org.jooq.Records; +import org.jooq.Row3; +import org.jooq.Schema; +import org.jooq.SelectField; +import org.jooq.Table; +import org.jooq.TableField; +import org.jooq.TableOptions; +import org.jooq.UniqueKey; +import org.jooq.impl.DSL; +import org.jooq.impl.SQLDataType; +import org.jooq.impl.TableImpl; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +public class SysRoleMenu extends TableImpl { + + private static final long serialVersionUID = 1L; + + /** + * The reference instance of public.sys_role_menu + */ + public static final SysRoleMenu SYS_ROLE_MENU = new SysRoleMenu(); + + /** + * The class holding records for this type + */ + @Override + public Class getRecordType() { + return SysRoleMenuRecord.class; + } + + /** + * The column public.sys_role_menu.id. + */ + public final TableField ID = createField(DSL.name("id"), SQLDataType.VARCHAR(32).nullable(false), this, ""); + + /** + * The column public.sys_role_menu.roleid. + */ + public final TableField ROLEID = createField(DSL.name("roleid"), SQLDataType.VARCHAR(32).nullable(false), this, ""); + + /** + * The column public.sys_role_menu.menuid. + */ + public final TableField MENUID = createField(DSL.name("menuid"), SQLDataType.VARCHAR(32).nullable(false), this, ""); + + private SysRoleMenu(Name alias, Table aliased) { + this(alias, aliased, null); + } + + private SysRoleMenu(Name alias, Table aliased, Field[] parameters) { + super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table()); + } + + /** + * Create an aliased public.sys_role_menu table reference + */ + public SysRoleMenu(String alias) { + this(DSL.name(alias), SYS_ROLE_MENU); + } + + /** + * Create an aliased public.sys_role_menu table reference + */ + public SysRoleMenu(Name alias) { + this(alias, SYS_ROLE_MENU); + } + + /** + * Create a public.sys_role_menu table reference + */ + public SysRoleMenu() { + this(DSL.name("sys_role_menu"), null); + } + + public SysRoleMenu(Table child, ForeignKey key) { + super(child, key, SYS_ROLE_MENU); + } + + @Override + public Schema getSchema() { + return aliased() ? null : Public.PUBLIC; + } + + @Override + public UniqueKey getPrimaryKey() { + return Keys.SYS_ROLE_MENU_PKEY; + } + + @Override + public List> getUniqueKeys() { + return Arrays.asList(Keys.SYS_ROLE_MENU_ROLEID_RESID_KEY); + } + + @Override + public SysRoleMenu as(String alias) { + return new SysRoleMenu(DSL.name(alias), this); + } + + @Override + public SysRoleMenu as(Name alias) { + return new SysRoleMenu(alias, this); + } + + @Override + public SysRoleMenu as(Table alias) { + return new SysRoleMenu(alias.getQualifiedName(), this); + } + + /** + * Rename this table + */ + @Override + public SysRoleMenu rename(String name) { + return new SysRoleMenu(DSL.name(name), null); + } + + /** + * Rename this table + */ + @Override + public SysRoleMenu rename(Name name) { + return new SysRoleMenu(name, null); + } + + /** + * Rename this table + */ + @Override + public SysRoleMenu rename(Table name) { + return new SysRoleMenu(name.getQualifiedName(), null); + } + + // ------------------------------------------------------------------------- + // Row3 type methods + // ------------------------------------------------------------------------- + + @Override + public Row3 fieldsRow() { + return (Row3) super.fieldsRow(); + } + + /** + * Convenience mapping calling {@link SelectField#convertFrom(Function)}. + */ + public SelectField mapping(Function3 from) { + return convertFrom(Records.mapping(from)); + } + + /** + * Convenience mapping calling {@link SelectField#convertFrom(Class, + * Function)}. + */ + public SelectField mapping(Class toType, Function3 from) { + return convertFrom(toType, Records.mapping(from)); + } +} diff --git a/src/main/java/jj/tech/paolu/repository/jooq/tables/SysRoleSign.java b/src/main/java/jj/tech/paolu/repository/jooq/tables/SysRoleSign.java new file mode 100644 index 0000000..77eb9a8 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/jooq/tables/SysRoleSign.java @@ -0,0 +1,172 @@ +/* + * This file is generated by jOOQ. + */ +package jj.tech.paolu.repository.jooq.tables; + + +import java.util.function.Function; + +import jj.tech.paolu.repository.jooq.Keys; +import jj.tech.paolu.repository.jooq.Public; +import jj.tech.paolu.repository.jooq.tables.records.SysRoleSignRecord; + +import org.jooq.Field; +import org.jooq.ForeignKey; +import org.jooq.Function3; +import org.jooq.Name; +import org.jooq.Record; +import org.jooq.Records; +import org.jooq.Row3; +import org.jooq.Schema; +import org.jooq.SelectField; +import org.jooq.Table; +import org.jooq.TableField; +import org.jooq.TableOptions; +import org.jooq.UniqueKey; +import org.jooq.impl.DSL; +import org.jooq.impl.SQLDataType; +import org.jooq.impl.TableImpl; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +public class SysRoleSign extends TableImpl { + + private static final long serialVersionUID = 1L; + + /** + * The reference instance of public.sys_role_sign + */ + public static final SysRoleSign SYS_ROLE_SIGN = new SysRoleSign(); + + /** + * The class holding records for this type + */ + @Override + public Class getRecordType() { + return SysRoleSignRecord.class; + } + + /** + * The column public.sys_role_sign.id. + */ + public final TableField ID = createField(DSL.name("id"), SQLDataType.VARCHAR(32).nullable(false), this, ""); + + /** + * The column public.sys_role_sign.sign_name. + */ + public final TableField SIGN_NAME = createField(DSL.name("sign_name"), SQLDataType.VARCHAR(32).nullable(false), this, ""); + + /** + * The column public.sys_role_sign.sign_code. + */ + public final TableField SIGN_CODE = createField(DSL.name("sign_code"), SQLDataType.VARCHAR(32).nullable(false), this, ""); + + private SysRoleSign(Name alias, Table aliased) { + this(alias, aliased, null); + } + + private SysRoleSign(Name alias, Table aliased, Field[] parameters) { + super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table()); + } + + /** + * Create an aliased public.sys_role_sign table reference + */ + public SysRoleSign(String alias) { + this(DSL.name(alias), SYS_ROLE_SIGN); + } + + /** + * Create an aliased public.sys_role_sign table reference + */ + public SysRoleSign(Name alias) { + this(alias, SYS_ROLE_SIGN); + } + + /** + * Create a public.sys_role_sign table reference + */ + public SysRoleSign() { + this(DSL.name("sys_role_sign"), null); + } + + public SysRoleSign(Table child, ForeignKey key) { + super(child, key, SYS_ROLE_SIGN); + } + + @Override + public Schema getSchema() { + return aliased() ? null : Public.PUBLIC; + } + + @Override + public UniqueKey getPrimaryKey() { + return Keys.SYS_ROLE_SIGN_PKEY; + } + + @Override + public SysRoleSign as(String alias) { + return new SysRoleSign(DSL.name(alias), this); + } + + @Override + public SysRoleSign as(Name alias) { + return new SysRoleSign(alias, this); + } + + @Override + public SysRoleSign as(Table alias) { + return new SysRoleSign(alias.getQualifiedName(), this); + } + + /** + * Rename this table + */ + @Override + public SysRoleSign rename(String name) { + return new SysRoleSign(DSL.name(name), null); + } + + /** + * Rename this table + */ + @Override + public SysRoleSign rename(Name name) { + return new SysRoleSign(name, null); + } + + /** + * Rename this table + */ + @Override + public SysRoleSign rename(Table name) { + return new SysRoleSign(name.getQualifiedName(), null); + } + + // ------------------------------------------------------------------------- + // Row3 type methods + // ------------------------------------------------------------------------- + + @Override + public Row3 fieldsRow() { + return (Row3) super.fieldsRow(); + } + + /** + * Convenience mapping calling {@link SelectField#convertFrom(Function)}. + */ + public SelectField mapping(Function3 from) { + return convertFrom(Records.mapping(from)); + } + + /** + * Convenience mapping calling {@link SelectField#convertFrom(Class, + * Function)}. + */ + public SelectField mapping(Class toType, Function3 from) { + return convertFrom(toType, Records.mapping(from)); + } +} diff --git a/src/main/java/jj/tech/paolu/repository/jooq/tables/SysRoleUrl.java b/src/main/java/jj/tech/paolu/repository/jooq/tables/SysRoleUrl.java new file mode 100644 index 0000000..f5961d7 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/jooq/tables/SysRoleUrl.java @@ -0,0 +1,177 @@ +/* + * This file is generated by jOOQ. + */ +package jj.tech.paolu.repository.jooq.tables; + + +import java.util.function.Function; + +import jj.tech.paolu.repository.jooq.Keys; +import jj.tech.paolu.repository.jooq.Public; +import jj.tech.paolu.repository.jooq.tables.records.SysRoleUrlRecord; + +import org.jooq.Field; +import org.jooq.ForeignKey; +import org.jooq.Function4; +import org.jooq.Name; +import org.jooq.Record; +import org.jooq.Records; +import org.jooq.Row4; +import org.jooq.Schema; +import org.jooq.SelectField; +import org.jooq.Table; +import org.jooq.TableField; +import org.jooq.TableOptions; +import org.jooq.UniqueKey; +import org.jooq.impl.DSL; +import org.jooq.impl.SQLDataType; +import org.jooq.impl.TableImpl; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +public class SysRoleUrl extends TableImpl { + + private static final long serialVersionUID = 1L; + + /** + * The reference instance of public.sys_role_url + */ + public static final SysRoleUrl SYS_ROLE_URL = new SysRoleUrl(); + + /** + * The class holding records for this type + */ + @Override + public Class getRecordType() { + return SysRoleUrlRecord.class; + } + + /** + * The column public.sys_role_url.id. + */ + public final TableField ID = createField(DSL.name("id"), SQLDataType.VARCHAR(32).nullable(false), this, ""); + + /** + * The column public.sys_role_url.roleid. + */ + public final TableField ROLEID = createField(DSL.name("roleid"), SQLDataType.VARCHAR(32).nullable(false), this, ""); + + /** + * The column public.sys_role_url.url. + */ + public final TableField URL = createField(DSL.name("url"), SQLDataType.VARCHAR(32).nullable(false), this, ""); + + /** + * The column public.sys_role_url.urltypes. + */ + public final TableField URLTYPES = createField(DSL.name("urltypes"), SQLDataType.INTEGER.nullable(false), this, ""); + + private SysRoleUrl(Name alias, Table aliased) { + this(alias, aliased, null); + } + + private SysRoleUrl(Name alias, Table aliased, Field[] parameters) { + super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table()); + } + + /** + * Create an aliased public.sys_role_url table reference + */ + public SysRoleUrl(String alias) { + this(DSL.name(alias), SYS_ROLE_URL); + } + + /** + * Create an aliased public.sys_role_url table reference + */ + public SysRoleUrl(Name alias) { + this(alias, SYS_ROLE_URL); + } + + /** + * Create a public.sys_role_url table reference + */ + public SysRoleUrl() { + this(DSL.name("sys_role_url"), null); + } + + public SysRoleUrl(Table child, ForeignKey key) { + super(child, key, SYS_ROLE_URL); + } + + @Override + public Schema getSchema() { + return aliased() ? null : Public.PUBLIC; + } + + @Override + public UniqueKey getPrimaryKey() { + return Keys.SYS_ROLE_URL_PKEY; + } + + @Override + public SysRoleUrl as(String alias) { + return new SysRoleUrl(DSL.name(alias), this); + } + + @Override + public SysRoleUrl as(Name alias) { + return new SysRoleUrl(alias, this); + } + + @Override + public SysRoleUrl as(Table alias) { + return new SysRoleUrl(alias.getQualifiedName(), this); + } + + /** + * Rename this table + */ + @Override + public SysRoleUrl rename(String name) { + return new SysRoleUrl(DSL.name(name), null); + } + + /** + * Rename this table + */ + @Override + public SysRoleUrl rename(Name name) { + return new SysRoleUrl(name, null); + } + + /** + * Rename this table + */ + @Override + public SysRoleUrl rename(Table name) { + return new SysRoleUrl(name.getQualifiedName(), null); + } + + // ------------------------------------------------------------------------- + // Row4 type methods + // ------------------------------------------------------------------------- + + @Override + public Row4 fieldsRow() { + return (Row4) super.fieldsRow(); + } + + /** + * Convenience mapping calling {@link SelectField#convertFrom(Function)}. + */ + public SelectField mapping(Function4 from) { + return convertFrom(Records.mapping(from)); + } + + /** + * Convenience mapping calling {@link SelectField#convertFrom(Class, + * Function)}. + */ + public SelectField mapping(Class toType, Function4 from) { + return convertFrom(toType, Records.mapping(from)); + } +} diff --git a/src/main/java/jj/tech/paolu/repository/jooq/tables/SysUrls.java b/src/main/java/jj/tech/paolu/repository/jooq/tables/SysUrls.java new file mode 100644 index 0000000..507baa8 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/jooq/tables/SysUrls.java @@ -0,0 +1,199 @@ +/* + * This file is generated by jOOQ. + */ +package jj.tech.paolu.repository.jooq.tables; + + +import java.util.Arrays; +import java.util.List; +import java.util.function.Function; + +import jj.tech.paolu.repository.jooq.Keys; +import jj.tech.paolu.repository.jooq.Public; +import jj.tech.paolu.repository.jooq.tables.records.SysUrlsRecord; + +import org.jooq.Field; +import org.jooq.ForeignKey; +import org.jooq.Function7; +import org.jooq.Name; +import org.jooq.Record; +import org.jooq.Records; +import org.jooq.Row7; +import org.jooq.Schema; +import org.jooq.SelectField; +import org.jooq.Table; +import org.jooq.TableField; +import org.jooq.TableOptions; +import org.jooq.UniqueKey; +import org.jooq.impl.DSL; +import org.jooq.impl.SQLDataType; +import org.jooq.impl.TableImpl; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +public class SysUrls extends TableImpl { + + private static final long serialVersionUID = 1L; + + /** + * The reference instance of public.sys_urls + */ + public static final SysUrls SYS_URLS = new SysUrls(); + + /** + * The class holding records for this type + */ + @Override + public Class getRecordType() { + return SysUrlsRecord.class; + } + + /** + * The column public.sys_urls.id. + */ + public final TableField ID = createField(DSL.name("id"), SQLDataType.VARCHAR(32).nullable(false), this, ""); + + /** + * The column public.sys_urls.pid. + */ + public final TableField PID = createField(DSL.name("pid"), SQLDataType.VARCHAR(32), this, ""); + + /** + * The column public.sys_urls.types. + */ + public final TableField TYPES = createField(DSL.name("types"), SQLDataType.INTEGER.defaultValue(DSL.field(DSL.raw("1"), SQLDataType.INTEGER)), this, ""); + + /** + * The column public.sys_urls.level. + */ + public final TableField LEVEL = createField(DSL.name("level"), SQLDataType.INTEGER.defaultValue(DSL.field(DSL.raw("0"), SQLDataType.INTEGER)), this, ""); + + /** + * The column public.sys_urls.url. + */ + public final TableField URL = createField(DSL.name("url"), SQLDataType.VARCHAR(255), this, ""); + + /** + * The column public.sys_urls.name. + */ + public final TableField NAME = createField(DSL.name("name"), SQLDataType.VARCHAR(255), this, ""); + + /** + * The column public.sys_urls.method. + */ + public final TableField METHOD = createField(DSL.name("method"), SQLDataType.VARCHAR(255), this, ""); + + private SysUrls(Name alias, Table aliased) { + this(alias, aliased, null); + } + + private SysUrls(Name alias, Table aliased, Field[] parameters) { + super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table()); + } + + /** + * Create an aliased public.sys_urls table reference + */ + public SysUrls(String alias) { + this(DSL.name(alias), SYS_URLS); + } + + /** + * Create an aliased public.sys_urls table reference + */ + public SysUrls(Name alias) { + this(alias, SYS_URLS); + } + + /** + * Create a public.sys_urls table reference + */ + public SysUrls() { + this(DSL.name("sys_urls"), null); + } + + public SysUrls(Table child, ForeignKey key) { + super(child, key, SYS_URLS); + } + + @Override + public Schema getSchema() { + return aliased() ? null : Public.PUBLIC; + } + + @Override + public UniqueKey getPrimaryKey() { + return Keys.SYS_URLS_PKEY; + } + + @Override + public List> getUniqueKeys() { + return Arrays.asList(Keys.SYS_URLS_URL_KEY); + } + + @Override + public SysUrls as(String alias) { + return new SysUrls(DSL.name(alias), this); + } + + @Override + public SysUrls as(Name alias) { + return new SysUrls(alias, this); + } + + @Override + public SysUrls as(Table alias) { + return new SysUrls(alias.getQualifiedName(), this); + } + + /** + * Rename this table + */ + @Override + public SysUrls rename(String name) { + return new SysUrls(DSL.name(name), null); + } + + /** + * Rename this table + */ + @Override + public SysUrls rename(Name name) { + return new SysUrls(name, null); + } + + /** + * Rename this table + */ + @Override + public SysUrls rename(Table name) { + return new SysUrls(name.getQualifiedName(), null); + } + + // ------------------------------------------------------------------------- + // Row7 type methods + // ------------------------------------------------------------------------- + + @Override + public Row7 fieldsRow() { + return (Row7) super.fieldsRow(); + } + + /** + * Convenience mapping calling {@link SelectField#convertFrom(Function)}. + */ + public SelectField mapping(Function7 from) { + return convertFrom(Records.mapping(from)); + } + + /** + * Convenience mapping calling {@link SelectField#convertFrom(Class, + * Function)}. + */ + public SelectField mapping(Class toType, Function7 from) { + return convertFrom(toType, Records.mapping(from)); + } +} diff --git a/src/main/java/jj/tech/paolu/repository/jooq/tables/daos/ArchiveSynLogDao.java b/src/main/java/jj/tech/paolu/repository/jooq/tables/daos/ArchiveSynLogDao.java new file mode 100644 index 0000000..a5ff3a6 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/jooq/tables/daos/ArchiveSynLogDao.java @@ -0,0 +1,255 @@ +/* + * This file is generated by jOOQ. + */ +package jj.tech.paolu.repository.jooq.tables.daos; + + +import java.time.LocalDateTime; +import java.util.List; +import java.util.Optional; + +import jj.tech.paolu.repository.jooq.tables.ArchiveSynLog; +import jj.tech.paolu.repository.jooq.tables.records.ArchiveSynLogRecord; + +import org.jooq.Configuration; +import org.jooq.impl.DAOImpl; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Repository; + + +/** + * 从电子档案系统同步档案目录数据的过程日志 + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +@Repository +public class ArchiveSynLogDao extends DAOImpl { + + /** + * Create a new ArchiveSynLogDao without any configuration + */ + public ArchiveSynLogDao() { + super(ArchiveSynLog.ARCHIVE_SYN_LOG, jj.tech.paolu.repository.jooq.tables.pojos.ArchiveSynLog.class); + } + + /** + * Create a new ArchiveSynLogDao with an attached configuration + */ + @Autowired + public ArchiveSynLogDao(Configuration configuration) { + super(ArchiveSynLog.ARCHIVE_SYN_LOG, jj.tech.paolu.repository.jooq.tables.pojos.ArchiveSynLog.class, configuration); + } + + @Override + public String getId(jj.tech.paolu.repository.jooq.tables.pojos.ArchiveSynLog object) { + return object.getId(); + } + + /** + * Fetch records that have start_time BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfStartTime(LocalDateTime lowerInclusive, LocalDateTime upperInclusive) { + return fetchRange(ArchiveSynLog.ARCHIVE_SYN_LOG.START_TIME, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have start_time IN (values) + */ + public List fetchByStartTime(LocalDateTime... values) { + return fetch(ArchiveSynLog.ARCHIVE_SYN_LOG.START_TIME, values); + } + + /** + * Fetch records that have insert_dir_count BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfInsertDirCount(Long lowerInclusive, Long upperInclusive) { + return fetchRange(ArchiveSynLog.ARCHIVE_SYN_LOG.INSERT_DIR_COUNT, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have insert_dir_count IN (values) + */ + public List fetchByInsertDirCount(Long... values) { + return fetch(ArchiveSynLog.ARCHIVE_SYN_LOG.INSERT_DIR_COUNT, values); + } + + /** + * Fetch records that have update_dir_count BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfUpdateDirCount(Long lowerInclusive, Long upperInclusive) { + return fetchRange(ArchiveSynLog.ARCHIVE_SYN_LOG.UPDATE_DIR_COUNT, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have update_dir_count IN (values) + */ + public List fetchByUpdateDirCount(Long... values) { + return fetch(ArchiveSynLog.ARCHIVE_SYN_LOG.UPDATE_DIR_COUNT, values); + } + + /** + * Fetch records that have insert_dirfile_count BETWEEN lowerInclusive + * AND upperInclusive + */ + public List fetchRangeOfInsertDirfileCount(Long lowerInclusive, Long upperInclusive) { + return fetchRange(ArchiveSynLog.ARCHIVE_SYN_LOG.INSERT_DIRFILE_COUNT, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have insert_dirfile_count IN (values) + */ + public List fetchByInsertDirfileCount(Long... values) { + return fetch(ArchiveSynLog.ARCHIVE_SYN_LOG.INSERT_DIRFILE_COUNT, values); + } + + /** + * Fetch records that have update_dirfile_count BETWEEN lowerInclusive + * AND upperInclusive + */ + public List fetchRangeOfUpdateDirfileCount(Long lowerInclusive, Long upperInclusive) { + return fetchRange(ArchiveSynLog.ARCHIVE_SYN_LOG.UPDATE_DIRFILE_COUNT, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have update_dirfile_count IN (values) + */ + public List fetchByUpdateDirfileCount(Long... values) { + return fetch(ArchiveSynLog.ARCHIVE_SYN_LOG.UPDATE_DIRFILE_COUNT, values); + } + + /** + * Fetch records that have insert_file_count BETWEEN lowerInclusive + * AND upperInclusive + */ + public List fetchRangeOfInsertFileCount(Long lowerInclusive, Long upperInclusive) { + return fetchRange(ArchiveSynLog.ARCHIVE_SYN_LOG.INSERT_FILE_COUNT, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have insert_file_count IN (values) + */ + public List fetchByInsertFileCount(Long... values) { + return fetch(ArchiveSynLog.ARCHIVE_SYN_LOG.INSERT_FILE_COUNT, values); + } + + /** + * Fetch records that have update_file_count BETWEEN lowerInclusive + * AND upperInclusive + */ + public List fetchRangeOfUpdateFileCount(Long lowerInclusive, Long upperInclusive) { + return fetchRange(ArchiveSynLog.ARCHIVE_SYN_LOG.UPDATE_FILE_COUNT, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have update_file_count IN (values) + */ + public List fetchByUpdateFileCount(Long... values) { + return fetch(ArchiveSynLog.ARCHIVE_SYN_LOG.UPDATE_FILE_COUNT, values); + } + + /** + * Fetch records that have description BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfDescription(String lowerInclusive, String upperInclusive) { + return fetchRange(ArchiveSynLog.ARCHIVE_SYN_LOG.DESCRIPTION, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have description IN (values) + */ + public List fetchByDescription(String... values) { + return fetch(ArchiveSynLog.ARCHIVE_SYN_LOG.DESCRIPTION, values); + } + + /** + * Fetch records that have run_result BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfRunResult(String lowerInclusive, String upperInclusive) { + return fetchRange(ArchiveSynLog.ARCHIVE_SYN_LOG.RUN_RESULT, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have run_result IN (values) + */ + public List fetchByRunResult(String... values) { + return fetch(ArchiveSynLog.ARCHIVE_SYN_LOG.RUN_RESULT, values); + } + + /** + * Fetch records that have update_timestamp BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfUpdateTimestamp(Long lowerInclusive, Long upperInclusive) { + return fetchRange(ArchiveSynLog.ARCHIVE_SYN_LOG.UPDATE_TIMESTAMP, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have update_timestamp IN (values) + */ + public List fetchByUpdateTimestamp(Long... values) { + return fetch(ArchiveSynLog.ARCHIVE_SYN_LOG.UPDATE_TIMESTAMP, values); + } + + /** + * Fetch records that have id BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfId(String lowerInclusive, String upperInclusive) { + return fetchRange(ArchiveSynLog.ARCHIVE_SYN_LOG.ID, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have id IN (values) + */ + public List fetchById(String... values) { + return fetch(ArchiveSynLog.ARCHIVE_SYN_LOG.ID, values); + } + + /** + * Fetch a unique record that has id = value + */ + public jj.tech.paolu.repository.jooq.tables.pojos.ArchiveSynLog fetchOneById(String value) { + return fetchOne(ArchiveSynLog.ARCHIVE_SYN_LOG.ID, value); + } + + /** + * Fetch a unique record that has id = value + */ + public Optional fetchOptionalById(String value) { + return fetchOptional(ArchiveSynLog.ARCHIVE_SYN_LOG.ID, value); + } + + /** + * Fetch records that have next_update_timestamp BETWEEN + * lowerInclusive AND upperInclusive + */ + public List fetchRangeOfNextUpdateTimestamp(Long lowerInclusive, Long upperInclusive) { + return fetchRange(ArchiveSynLog.ARCHIVE_SYN_LOG.NEXT_UPDATE_TIMESTAMP, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have next_update_timestamp IN (values) + */ + public List fetchByNextUpdateTimestamp(Long... values) { + return fetch(ArchiveSynLog.ARCHIVE_SYN_LOG.NEXT_UPDATE_TIMESTAMP, values); + } + + /** + * Fetch records that have end_time BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfEndTime(LocalDateTime lowerInclusive, LocalDateTime upperInclusive) { + return fetchRange(ArchiveSynLog.ARCHIVE_SYN_LOG.END_TIME, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have end_time IN (values) + */ + public List fetchByEndTime(LocalDateTime... values) { + return fetch(ArchiveSynLog.ARCHIVE_SYN_LOG.END_TIME, values); + } +} diff --git a/src/main/java/jj/tech/paolu/repository/jooq/tables/daos/CertificateApplyDao.java b/src/main/java/jj/tech/paolu/repository/jooq/tables/daos/CertificateApplyDao.java new file mode 100644 index 0000000..f380f3c --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/jooq/tables/daos/CertificateApplyDao.java @@ -0,0 +1,329 @@ +/* + * This file is generated by jOOQ. + */ +package jj.tech.paolu.repository.jooq.tables.daos; + + +import java.time.LocalDateTime; +import java.util.List; +import java.util.Optional; + +import jj.tech.paolu.repository.jooq.tables.CertificateApply; +import jj.tech.paolu.repository.jooq.tables.records.CertificateApplyRecord; + +import org.jooq.Configuration; +import org.jooq.impl.DAOImpl; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Repository; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +@Repository +public class CertificateApplyDao extends DAOImpl { + + /** + * Create a new CertificateApplyDao without any configuration + */ + public CertificateApplyDao() { + super(CertificateApply.CERTIFICATE_APPLY, jj.tech.paolu.repository.jooq.tables.pojos.CertificateApply.class); + } + + /** + * Create a new CertificateApplyDao with an attached configuration + */ + @Autowired + public CertificateApplyDao(Configuration configuration) { + super(CertificateApply.CERTIFICATE_APPLY, jj.tech.paolu.repository.jooq.tables.pojos.CertificateApply.class, configuration); + } + + @Override + public String getId(jj.tech.paolu.repository.jooq.tables.pojos.CertificateApply object) { + return object.getId(); + } + + /** + * Fetch records that have id BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfId(String lowerInclusive, String upperInclusive) { + return fetchRange(CertificateApply.CERTIFICATE_APPLY.ID, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have id IN (values) + */ + public List fetchById(String... values) { + return fetch(CertificateApply.CERTIFICATE_APPLY.ID, values); + } + + /** + * Fetch a unique record that has id = value + */ + public jj.tech.paolu.repository.jooq.tables.pojos.CertificateApply fetchOneById(String value) { + return fetchOne(CertificateApply.CERTIFICATE_APPLY.ID, value); + } + + /** + * Fetch a unique record that has id = value + */ + public Optional fetchOptionalById(String value) { + return fetchOptional(CertificateApply.CERTIFICATE_APPLY.ID, value); + } + + /** + * Fetch records that have is_org BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfIsOrg(Integer lowerInclusive, Integer upperInclusive) { + return fetchRange(CertificateApply.CERTIFICATE_APPLY.IS_ORG, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have is_org IN (values) + */ + public List fetchByIsOrg(Integer... values) { + return fetch(CertificateApply.CERTIFICATE_APPLY.IS_ORG, values); + } + + /** + * Fetch records that have user_id BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfUserId(String lowerInclusive, String upperInclusive) { + return fetchRange(CertificateApply.CERTIFICATE_APPLY.USER_ID, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have user_id IN (values) + */ + public List fetchByUserId(String... values) { + return fetch(CertificateApply.CERTIFICATE_APPLY.USER_ID, values); + } + + /** + * Fetch records that have user_name BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfUserName(String lowerInclusive, String upperInclusive) { + return fetchRange(CertificateApply.CERTIFICATE_APPLY.USER_NAME, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have user_name IN (values) + */ + public List fetchByUserName(String... values) { + return fetch(CertificateApply.CERTIFICATE_APPLY.USER_NAME, values); + } + + /** + * Fetch records that have user_real_name BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfUserRealName(String lowerInclusive, String upperInclusive) { + return fetchRange(CertificateApply.CERTIFICATE_APPLY.USER_REAL_NAME, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have user_real_name IN (values) + */ + public List fetchByUserRealName(String... values) { + return fetch(CertificateApply.CERTIFICATE_APPLY.USER_REAL_NAME, values); + } + + /** + * Fetch records that have user_phone BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfUserPhone(String lowerInclusive, String upperInclusive) { + return fetchRange(CertificateApply.CERTIFICATE_APPLY.USER_PHONE, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have user_phone IN (values) + */ + public List fetchByUserPhone(String... values) { + return fetch(CertificateApply.CERTIFICATE_APPLY.USER_PHONE, values); + } + + /** + * Fetch records that have user_org_id BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfUserOrgId(String lowerInclusive, String upperInclusive) { + return fetchRange(CertificateApply.CERTIFICATE_APPLY.USER_ORG_ID, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have user_org_id IN (values) + */ + public List fetchByUserOrgId(String... values) { + return fetch(CertificateApply.CERTIFICATE_APPLY.USER_ORG_ID, values); + } + + /** + * Fetch records that have user_org_name BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfUserOrgName(String lowerInclusive, String upperInclusive) { + return fetchRange(CertificateApply.CERTIFICATE_APPLY.USER_ORG_NAME, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have user_org_name IN (values) + */ + public List fetchByUserOrgName(String... values) { + return fetch(CertificateApply.CERTIFICATE_APPLY.USER_ORG_NAME, values); + } + + /** + * Fetch records that have apply_type BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfApplyType(Integer lowerInclusive, Integer upperInclusive) { + return fetchRange(CertificateApply.CERTIFICATE_APPLY.APPLY_TYPE, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have apply_type IN (values) + */ + public List fetchByApplyType(Integer... values) { + return fetch(CertificateApply.CERTIFICATE_APPLY.APPLY_TYPE, values); + } + + /** + * Fetch records that have status BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfStatus(Integer lowerInclusive, Integer upperInclusive) { + return fetchRange(CertificateApply.CERTIFICATE_APPLY.STATUS, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have status IN (values) + */ + public List fetchByStatus(Integer... values) { + return fetch(CertificateApply.CERTIFICATE_APPLY.STATUS, values); + } + + /** + * Fetch records that have apply_time BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfApplyTime(LocalDateTime lowerInclusive, LocalDateTime upperInclusive) { + return fetchRange(CertificateApply.CERTIFICATE_APPLY.APPLY_TIME, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have apply_time IN (values) + */ + public List fetchByApplyTime(LocalDateTime... values) { + return fetch(CertificateApply.CERTIFICATE_APPLY.APPLY_TIME, values); + } + + /** + * Fetch records that have apply_finish_time BETWEEN lowerInclusive + * AND upperInclusive + */ + public List fetchRangeOfApplyFinishTime(LocalDateTime lowerInclusive, LocalDateTime upperInclusive) { + return fetchRange(CertificateApply.CERTIFICATE_APPLY.APPLY_FINISH_TIME, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have apply_finish_time IN (values) + */ + public List fetchByApplyFinishTime(LocalDateTime... values) { + return fetch(CertificateApply.CERTIFICATE_APPLY.APPLY_FINISH_TIME, values); + } + + /** + * Fetch records that have apply_reason BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfApplyReason(String lowerInclusive, String upperInclusive) { + return fetchRange(CertificateApply.CERTIFICATE_APPLY.APPLY_REASON, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have apply_reason IN (values) + */ + public List fetchByApplyReason(String... values) { + return fetch(CertificateApply.CERTIFICATE_APPLY.APPLY_REASON, values); + } + + /** + * Fetch records that have next_check_org_id BETWEEN lowerInclusive + * AND upperInclusive + */ + public List fetchRangeOfNextCheckOrgId(String lowerInclusive, String upperInclusive) { + return fetchRange(CertificateApply.CERTIFICATE_APPLY.NEXT_CHECK_ORG_ID, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have next_check_org_id IN (values) + */ + public List fetchByNextCheckOrgId(String... values) { + return fetch(CertificateApply.CERTIFICATE_APPLY.NEXT_CHECK_ORG_ID, values); + } + + /** + * Fetch records that have end_check_org_id BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfEndCheckOrgId(String lowerInclusive, String upperInclusive) { + return fetchRange(CertificateApply.CERTIFICATE_APPLY.END_CHECK_ORG_ID, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have end_check_org_id IN (values) + */ + public List fetchByEndCheckOrgId(String... values) { + return fetch(CertificateApply.CERTIFICATE_APPLY.END_CHECK_ORG_ID, values); + } + + /** + * Fetch records that have cer_id BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfCerId(String lowerInclusive, String upperInclusive) { + return fetchRange(CertificateApply.CERTIFICATE_APPLY.CER_ID, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have cer_id IN (values) + */ + public List fetchByCerId(String... values) { + return fetch(CertificateApply.CERTIFICATE_APPLY.CER_ID, values); + } + + /** + * Fetch a unique record that has cer_id = value + */ + public jj.tech.paolu.repository.jooq.tables.pojos.CertificateApply fetchOneByCerId(String value) { + return fetchOne(CertificateApply.CERTIFICATE_APPLY.CER_ID, value); + } + + /** + * Fetch a unique record that has cer_id = value + */ + public Optional fetchOptionalByCerId(String value) { + return fetchOptional(CertificateApply.CERTIFICATE_APPLY.CER_ID, value); + } + + /** + * Fetch records that have company_id BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfCompanyId(String lowerInclusive, String upperInclusive) { + return fetchRange(CertificateApply.CERTIFICATE_APPLY.COMPANY_ID, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have company_id IN (values) + */ + public List fetchByCompanyId(String... values) { + return fetch(CertificateApply.CERTIFICATE_APPLY.COMPANY_ID, values); + } +} diff --git a/src/main/java/jj/tech/paolu/repository/jooq/tables/daos/CertificateApplyRecordDao.java b/src/main/java/jj/tech/paolu/repository/jooq/tables/daos/CertificateApplyRecordDao.java new file mode 100644 index 0000000..4e6201e --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/jooq/tables/daos/CertificateApplyRecordDao.java @@ -0,0 +1,287 @@ +/* + * This file is generated by jOOQ. + */ +package jj.tech.paolu.repository.jooq.tables.daos; + + +import java.time.LocalDateTime; +import java.util.List; +import java.util.Optional; + +import jj.tech.paolu.repository.jooq.tables.CertificateApplyRecord; +import jj.tech.paolu.repository.jooq.tables.records.CertificateApplyRecordRecord; + +import org.jooq.Configuration; +import org.jooq.impl.DAOImpl; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Repository; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +@Repository +public class CertificateApplyRecordDao extends DAOImpl { + + /** + * Create a new CertificateApplyRecordDao without any configuration + */ + public CertificateApplyRecordDao() { + super(CertificateApplyRecord.CERTIFICATE_APPLY_RECORD, jj.tech.paolu.repository.jooq.tables.pojos.CertificateApplyRecord.class); + } + + /** + * Create a new CertificateApplyRecordDao with an attached configuration + */ + @Autowired + public CertificateApplyRecordDao(Configuration configuration) { + super(CertificateApplyRecord.CERTIFICATE_APPLY_RECORD, jj.tech.paolu.repository.jooq.tables.pojos.CertificateApplyRecord.class, configuration); + } + + @Override + public String getId(jj.tech.paolu.repository.jooq.tables.pojos.CertificateApplyRecord object) { + return object.getId(); + } + + /** + * Fetch records that have id BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfId(String lowerInclusive, String upperInclusive) { + return fetchRange(CertificateApplyRecord.CERTIFICATE_APPLY_RECORD.ID, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have id IN (values) + */ + public List fetchById(String... values) { + return fetch(CertificateApplyRecord.CERTIFICATE_APPLY_RECORD.ID, values); + } + + /** + * Fetch a unique record that has id = value + */ + public jj.tech.paolu.repository.jooq.tables.pojos.CertificateApplyRecord fetchOneById(String value) { + return fetchOne(CertificateApplyRecord.CERTIFICATE_APPLY_RECORD.ID, value); + } + + /** + * Fetch a unique record that has id = value + */ + public Optional fetchOptionalById(String value) { + return fetchOptional(CertificateApplyRecord.CERTIFICATE_APPLY_RECORD.ID, value); + } + + /** + * Fetch records that have certificate_apply_id BETWEEN lowerInclusive + * AND upperInclusive + */ + public List fetchRangeOfCertificateApplyId(String lowerInclusive, String upperInclusive) { + return fetchRange(CertificateApplyRecord.CERTIFICATE_APPLY_RECORD.CERTIFICATE_APPLY_ID, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have certificate_apply_id IN (values) + */ + public List fetchByCertificateApplyId(String... values) { + return fetch(CertificateApplyRecord.CERTIFICATE_APPLY_RECORD.CERTIFICATE_APPLY_ID, values); + } + + /** + * Fetch records that have certificate_apply_user_id BETWEEN + * lowerInclusive AND upperInclusive + */ + public List fetchRangeOfCertificateApplyUserId(String lowerInclusive, String upperInclusive) { + return fetchRange(CertificateApplyRecord.CERTIFICATE_APPLY_RECORD.CERTIFICATE_APPLY_USER_ID, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have certificate_apply_user_id IN + * (values) + */ + public List fetchByCertificateApplyUserId(String... values) { + return fetch(CertificateApplyRecord.CERTIFICATE_APPLY_RECORD.CERTIFICATE_APPLY_USER_ID, values); + } + + /** + * Fetch records that have certificate_apply_user_org_id BETWEEN + * lowerInclusive AND upperInclusive + */ + public List fetchRangeOfCertificateApplyUserOrgId(String lowerInclusive, String upperInclusive) { + return fetchRange(CertificateApplyRecord.CERTIFICATE_APPLY_RECORD.CERTIFICATE_APPLY_USER_ORG_ID, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have certificate_apply_user_org_id IN + * (values) + */ + public List fetchByCertificateApplyUserOrgId(String... values) { + return fetch(CertificateApplyRecord.CERTIFICATE_APPLY_RECORD.CERTIFICATE_APPLY_USER_ORG_ID, values); + } + + /** + * Fetch records that have is_org BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfIsOrg(Integer lowerInclusive, Integer upperInclusive) { + return fetchRange(CertificateApplyRecord.CERTIFICATE_APPLY_RECORD.IS_ORG, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have is_org IN (values) + */ + public List fetchByIsOrg(Integer... values) { + return fetch(CertificateApplyRecord.CERTIFICATE_APPLY_RECORD.IS_ORG, values); + } + + /** + * Fetch records that have apply_type BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfApplyType(Integer lowerInclusive, Integer upperInclusive) { + return fetchRange(CertificateApplyRecord.CERTIFICATE_APPLY_RECORD.APPLY_TYPE, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have apply_type IN (values) + */ + public List fetchByApplyType(Integer... values) { + return fetch(CertificateApplyRecord.CERTIFICATE_APPLY_RECORD.APPLY_TYPE, values); + } + + /** + * Fetch records that have check_user_id BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfCheckUserId(String lowerInclusive, String upperInclusive) { + return fetchRange(CertificateApplyRecord.CERTIFICATE_APPLY_RECORD.CHECK_USER_ID, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have check_user_id IN (values) + */ + public List fetchByCheckUserId(String... values) { + return fetch(CertificateApplyRecord.CERTIFICATE_APPLY_RECORD.CHECK_USER_ID, values); + } + + /** + * Fetch records that have check_user_name BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfCheckUserName(String lowerInclusive, String upperInclusive) { + return fetchRange(CertificateApplyRecord.CERTIFICATE_APPLY_RECORD.CHECK_USER_NAME, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have check_user_name IN (values) + */ + public List fetchByCheckUserName(String... values) { + return fetch(CertificateApplyRecord.CERTIFICATE_APPLY_RECORD.CHECK_USER_NAME, values); + } + + /** + * Fetch records that have check_org_id BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfCheckOrgId(String lowerInclusive, String upperInclusive) { + return fetchRange(CertificateApplyRecord.CERTIFICATE_APPLY_RECORD.CHECK_ORG_ID, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have check_org_id IN (values) + */ + public List fetchByCheckOrgId(String... values) { + return fetch(CertificateApplyRecord.CERTIFICATE_APPLY_RECORD.CHECK_ORG_ID, values); + } + + /** + * Fetch records that have check_org_name BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfCheckOrgName(String lowerInclusive, String upperInclusive) { + return fetchRange(CertificateApplyRecord.CERTIFICATE_APPLY_RECORD.CHECK_ORG_NAME, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have check_org_name IN (values) + */ + public List fetchByCheckOrgName(String... values) { + return fetch(CertificateApplyRecord.CERTIFICATE_APPLY_RECORD.CHECK_ORG_NAME, values); + } + + /** + * Fetch records that have check_describe BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfCheckDescribe(String lowerInclusive, String upperInclusive) { + return fetchRange(CertificateApplyRecord.CERTIFICATE_APPLY_RECORD.CHECK_DESCRIBE, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have check_describe IN (values) + */ + public List fetchByCheckDescribe(String... values) { + return fetch(CertificateApplyRecord.CERTIFICATE_APPLY_RECORD.CHECK_DESCRIBE, values); + } + + /** + * Fetch records that have check_status BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfCheckStatus(Integer lowerInclusive, Integer upperInclusive) { + return fetchRange(CertificateApplyRecord.CERTIFICATE_APPLY_RECORD.CHECK_STATUS, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have check_status IN (values) + */ + public List fetchByCheckStatus(Integer... values) { + return fetch(CertificateApplyRecord.CERTIFICATE_APPLY_RECORD.CHECK_STATUS, values); + } + + /** + * Fetch records that have check_time BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfCheckTime(LocalDateTime lowerInclusive, LocalDateTime upperInclusive) { + return fetchRange(CertificateApplyRecord.CERTIFICATE_APPLY_RECORD.CHECK_TIME, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have check_time IN (values) + */ + public List fetchByCheckTime(LocalDateTime... values) { + return fetch(CertificateApplyRecord.CERTIFICATE_APPLY_RECORD.CHECK_TIME, values); + } + + /** + * Fetch records that have next_check_org_id BETWEEN lowerInclusive + * AND upperInclusive + */ + public List fetchRangeOfNextCheckOrgId(String lowerInclusive, String upperInclusive) { + return fetchRange(CertificateApplyRecord.CERTIFICATE_APPLY_RECORD.NEXT_CHECK_ORG_ID, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have next_check_org_id IN (values) + */ + public List fetchByNextCheckOrgId(String... values) { + return fetch(CertificateApplyRecord.CERTIFICATE_APPLY_RECORD.NEXT_CHECK_ORG_ID, values); + } + + /** + * Fetch records that have next_check_org_name BETWEEN lowerInclusive + * AND upperInclusive + */ + public List fetchRangeOfNextCheckOrgName(String lowerInclusive, String upperInclusive) { + return fetchRange(CertificateApplyRecord.CERTIFICATE_APPLY_RECORD.NEXT_CHECK_ORG_NAME, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have next_check_org_name IN (values) + */ + public List fetchByNextCheckOrgName(String... values) { + return fetch(CertificateApplyRecord.CERTIFICATE_APPLY_RECORD.NEXT_CHECK_ORG_NAME, values); + } +} diff --git a/src/main/java/jj/tech/paolu/repository/jooq/tables/daos/CertificateDetailDao.java b/src/main/java/jj/tech/paolu/repository/jooq/tables/daos/CertificateDetailDao.java new file mode 100644 index 0000000..2a457ed --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/jooq/tables/daos/CertificateDetailDao.java @@ -0,0 +1,270 @@ +/* + * This file is generated by jOOQ. + */ +package jj.tech.paolu.repository.jooq.tables.daos; + + +import java.time.LocalDateTime; +import java.util.List; +import java.util.Optional; + +import jj.tech.paolu.repository.jooq.tables.CertificateDetail; +import jj.tech.paolu.repository.jooq.tables.records.CertificateDetailRecord; + +import org.jooq.Configuration; +import org.jooq.impl.DAOImpl; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Repository; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +@Repository +public class CertificateDetailDao extends DAOImpl { + + /** + * Create a new CertificateDetailDao without any configuration + */ + public CertificateDetailDao() { + super(CertificateDetail.CERTIFICATE_DETAIL, jj.tech.paolu.repository.jooq.tables.pojos.CertificateDetail.class); + } + + /** + * Create a new CertificateDetailDao with an attached configuration + */ + @Autowired + public CertificateDetailDao(Configuration configuration) { + super(CertificateDetail.CERTIFICATE_DETAIL, jj.tech.paolu.repository.jooq.tables.pojos.CertificateDetail.class, configuration); + } + + @Override + public String getId(jj.tech.paolu.repository.jooq.tables.pojos.CertificateDetail object) { + return object.getId(); + } + + /** + * Fetch records that have id BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfId(String lowerInclusive, String upperInclusive) { + return fetchRange(CertificateDetail.CERTIFICATE_DETAIL.ID, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have id IN (values) + */ + public List fetchById(String... values) { + return fetch(CertificateDetail.CERTIFICATE_DETAIL.ID, values); + } + + /** + * Fetch a unique record that has id = value + */ + public jj.tech.paolu.repository.jooq.tables.pojos.CertificateDetail fetchOneById(String value) { + return fetchOne(CertificateDetail.CERTIFICATE_DETAIL.ID, value); + } + + /** + * Fetch a unique record that has id = value + */ + public Optional fetchOptionalById(String value) { + return fetchOptional(CertificateDetail.CERTIFICATE_DETAIL.ID, value); + } + + /** + * Fetch records that have certificate_apply_id BETWEEN lowerInclusive + * AND upperInclusive + */ + public List fetchRangeOfCertificateApplyId(String lowerInclusive, String upperInclusive) { + return fetchRange(CertificateDetail.CERTIFICATE_DETAIL.CERTIFICATE_APPLY_ID, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have certificate_apply_id IN (values) + */ + public List fetchByCertificateApplyId(String... values) { + return fetch(CertificateDetail.CERTIFICATE_DETAIL.CERTIFICATE_APPLY_ID, values); + } + + /** + * Fetch records that have work_start_time BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfWorkStartTime(LocalDateTime lowerInclusive, LocalDateTime upperInclusive) { + return fetchRange(CertificateDetail.CERTIFICATE_DETAIL.WORK_START_TIME, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have work_start_time IN (values) + */ + public List fetchByWorkStartTime(LocalDateTime... values) { + return fetch(CertificateDetail.CERTIFICATE_DETAIL.WORK_START_TIME, values); + } + + /** + * Fetch records that have work_end_time BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfWorkEndTime(LocalDateTime lowerInclusive, LocalDateTime upperInclusive) { + return fetchRange(CertificateDetail.CERTIFICATE_DETAIL.WORK_END_TIME, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have work_end_time IN (values) + */ + public List fetchByWorkEndTime(LocalDateTime... values) { + return fetch(CertificateDetail.CERTIFICATE_DETAIL.WORK_END_TIME, values); + } + + /** + * Fetch records that have status BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfStatus(Integer lowerInclusive, Integer upperInclusive) { + return fetchRange(CertificateDetail.CERTIFICATE_DETAIL.STATUS, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have status IN (values) + */ + public List fetchByStatus(Integer... values) { + return fetch(CertificateDetail.CERTIFICATE_DETAIL.STATUS, values); + } + + /** + * Fetch records that have cert_file_content BETWEEN lowerInclusive + * AND upperInclusive + */ + public List fetchRangeOfCertFileContent(String lowerInclusive, String upperInclusive) { + return fetchRange(CertificateDetail.CERTIFICATE_DETAIL.CERT_FILE_CONTENT, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have cert_file_content IN (values) + */ + public List fetchByCertFileContent(String... values) { + return fetch(CertificateDetail.CERTIFICATE_DETAIL.CERT_FILE_CONTENT, values); + } + + /** + * Fetch records that have is_up_chain BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfIsUpChain(Integer lowerInclusive, Integer upperInclusive) { + return fetchRange(CertificateDetail.CERTIFICATE_DETAIL.IS_UP_CHAIN, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have is_up_chain IN (values) + */ + public List fetchByIsUpChain(Integer... values) { + return fetch(CertificateDetail.CERTIFICATE_DETAIL.IS_UP_CHAIN, values); + } + + /** + * Fetch records that have weid BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfWeid(String lowerInclusive, String upperInclusive) { + return fetchRange(CertificateDetail.CERTIFICATE_DETAIL.WEID, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have weid IN (values) + */ + public List fetchByWeid(String... values) { + return fetch(CertificateDetail.CERTIFICATE_DETAIL.WEID, values); + } + + /** + * Fetch records that have private_key_hex_str BETWEEN lowerInclusive + * AND upperInclusive + */ + public List fetchRangeOfPrivateKeyHexStr(String lowerInclusive, String upperInclusive) { + return fetchRange(CertificateDetail.CERTIFICATE_DETAIL.PRIVATE_KEY_HEX_STR, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have private_key_hex_str IN (values) + */ + public List fetchByPrivateKeyHexStr(String... values) { + return fetch(CertificateDetail.CERTIFICATE_DETAIL.PRIVATE_KEY_HEX_STR, values); + } + + /** + * Fetch records that have x509_serial_number BETWEEN lowerInclusive + * AND upperInclusive + */ + public List fetchRangeOfX509SerialNumber(String lowerInclusive, String upperInclusive) { + return fetchRange(CertificateDetail.CERTIFICATE_DETAIL.X509_SERIAL_NUMBER, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have x509_serial_number IN (values) + */ + public List fetchByX509SerialNumber(String... values) { + return fetch(CertificateDetail.CERTIFICATE_DETAIL.X509_SERIAL_NUMBER, values); + } + + /** + * Fetch records that have x509_subject BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfX509Subject(String lowerInclusive, String upperInclusive) { + return fetchRange(CertificateDetail.CERTIFICATE_DETAIL.X509_SUBJECT, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have x509_subject IN (values) + */ + public List fetchByX509Subject(String... values) { + return fetch(CertificateDetail.CERTIFICATE_DETAIL.X509_SUBJECT, values); + } + + /** + * Fetch records that have x509_issuer BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfX509Issuer(String lowerInclusive, String upperInclusive) { + return fetchRange(CertificateDetail.CERTIFICATE_DETAIL.X509_ISSUER, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have x509_issuer IN (values) + */ + public List fetchByX509Issuer(String... values) { + return fetch(CertificateDetail.CERTIFICATE_DETAIL.X509_ISSUER, values); + } + + /** + * Fetch records that have x509_public_key BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfX509PublicKey(String lowerInclusive, String upperInclusive) { + return fetchRange(CertificateDetail.CERTIFICATE_DETAIL.X509_PUBLIC_KEY, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have x509_public_key IN (values) + */ + public List fetchByX509PublicKey(String... values) { + return fetch(CertificateDetail.CERTIFICATE_DETAIL.X509_PUBLIC_KEY, values); + } + + /** + * Fetch records that have x509_sig_alg_name BETWEEN lowerInclusive + * AND upperInclusive + */ + public List fetchRangeOfX509SigAlgName(String lowerInclusive, String upperInclusive) { + return fetchRange(CertificateDetail.CERTIFICATE_DETAIL.X509_SIG_ALG_NAME, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have x509_sig_alg_name IN (values) + */ + public List fetchByX509SigAlgName(String... values) { + return fetch(CertificateDetail.CERTIFICATE_DETAIL.X509_SIG_ALG_NAME, values); + } +} diff --git a/src/main/java/jj/tech/paolu/repository/jooq/tables/daos/DecryptLogDao.java b/src/main/java/jj/tech/paolu/repository/jooq/tables/daos/DecryptLogDao.java new file mode 100644 index 0000000..204efce --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/jooq/tables/daos/DecryptLogDao.java @@ -0,0 +1,195 @@ +/* + * This file is generated by jOOQ. + */ +package jj.tech.paolu.repository.jooq.tables.daos; + + +import java.time.LocalDateTime; +import java.util.List; +import java.util.Optional; + +import jj.tech.paolu.repository.jooq.tables.DecryptLog; +import jj.tech.paolu.repository.jooq.tables.records.DecryptLogRecord; + +import org.jooq.Configuration; +import org.jooq.impl.DAOImpl; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Repository; + + +/** + * 解密情况 + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +@Repository +public class DecryptLogDao extends DAOImpl { + + /** + * Create a new DecryptLogDao without any configuration + */ + public DecryptLogDao() { + super(DecryptLog.DECRYPT_LOG, jj.tech.paolu.repository.jooq.tables.pojos.DecryptLog.class); + } + + /** + * Create a new DecryptLogDao with an attached configuration + */ + @Autowired + public DecryptLogDao(Configuration configuration) { + super(DecryptLog.DECRYPT_LOG, jj.tech.paolu.repository.jooq.tables.pojos.DecryptLog.class, configuration); + } + + @Override + public String getId(jj.tech.paolu.repository.jooq.tables.pojos.DecryptLog object) { + return object.getId(); + } + + /** + * Fetch records that have id BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfId(String lowerInclusive, String upperInclusive) { + return fetchRange(DecryptLog.DECRYPT_LOG.ID, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have id IN (values) + */ + public List fetchById(String... values) { + return fetch(DecryptLog.DECRYPT_LOG.ID, values); + } + + /** + * Fetch a unique record that has id = value + */ + public jj.tech.paolu.repository.jooq.tables.pojos.DecryptLog fetchOneById(String value) { + return fetchOne(DecryptLog.DECRYPT_LOG.ID, value); + } + + /** + * Fetch a unique record that has id = value + */ + public Optional fetchOptionalById(String value) { + return fetchOptional(DecryptLog.DECRYPT_LOG.ID, value); + } + + /** + * Fetch records that have weid BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfWeid(String lowerInclusive, String upperInclusive) { + return fetchRange(DecryptLog.DECRYPT_LOG.WEID, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have weid IN (values) + */ + public List fetchByWeid(String... values) { + return fetch(DecryptLog.DECRYPT_LOG.WEID, values); + } + + /** + * Fetch records that have content_type BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfContentType(Integer lowerInclusive, Integer upperInclusive) { + return fetchRange(DecryptLog.DECRYPT_LOG.CONTENT_TYPE, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have content_type IN (values) + */ + public List fetchByContentType(Integer... values) { + return fetch(DecryptLog.DECRYPT_LOG.CONTENT_TYPE, values); + } + + /** + * Fetch records that have content_id BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfContentId(String lowerInclusive, String upperInclusive) { + return fetchRange(DecryptLog.DECRYPT_LOG.CONTENT_ID, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have content_id IN (values) + */ + public List fetchByContentId(String... values) { + return fetch(DecryptLog.DECRYPT_LOG.CONTENT_ID, values); + } + + /** + * Fetch records that have dec_time BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfDecTime(LocalDateTime lowerInclusive, LocalDateTime upperInclusive) { + return fetchRange(DecryptLog.DECRYPT_LOG.DEC_TIME, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have dec_time IN (values) + */ + public List fetchByDecTime(LocalDateTime... values) { + return fetch(DecryptLog.DECRYPT_LOG.DEC_TIME, values); + } + + /** + * Fetch records that have location BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfLocation(String lowerInclusive, String upperInclusive) { + return fetchRange(DecryptLog.DECRYPT_LOG.LOCATION, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have location IN (values) + */ + public List fetchByLocation(String... values) { + return fetch(DecryptLog.DECRYPT_LOG.LOCATION, values); + } + + /** + * Fetch records that have sm9hibeid BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfSm9hibeid(String lowerInclusive, String upperInclusive) { + return fetchRange(DecryptLog.DECRYPT_LOG.SM9HIBEID, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have sm9hibeid IN (values) + */ + public List fetchBySm9hibeid(String... values) { + return fetch(DecryptLog.DECRYPT_LOG.SM9HIBEID, values); + } + + /** + * Fetch records that have status BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfStatus(Integer lowerInclusive, Integer upperInclusive) { + return fetchRange(DecryptLog.DECRYPT_LOG.STATUS, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have status IN (values) + */ + public List fetchByStatus(Integer... values) { + return fetch(DecryptLog.DECRYPT_LOG.STATUS, values); + } + + /** + * Fetch records that have sign BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfSign(String lowerInclusive, String upperInclusive) { + return fetchRange(DecryptLog.DECRYPT_LOG.SIGN, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have sign IN (values) + */ + public List fetchBySign(String... values) { + return fetch(DecryptLog.DECRYPT_LOG.SIGN, values); + } +} diff --git a/src/main/java/jj/tech/paolu/repository/jooq/tables/daos/DownloadLogDao.java b/src/main/java/jj/tech/paolu/repository/jooq/tables/daos/DownloadLogDao.java new file mode 100644 index 0000000..2f6b683 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/jooq/tables/daos/DownloadLogDao.java @@ -0,0 +1,165 @@ +/* + * This file is generated by jOOQ. + */ +package jj.tech.paolu.repository.jooq.tables.daos; + + +import java.time.LocalDateTime; +import java.util.List; +import java.util.Optional; + +import jj.tech.paolu.repository.jooq.tables.DownloadLog; +import jj.tech.paolu.repository.jooq.tables.records.DownloadLogRecord; + +import org.jooq.Configuration; +import org.jooq.impl.DAOImpl; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Repository; + + +/** + * 下载行为记录 + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +@Repository +public class DownloadLogDao extends DAOImpl { + + /** + * Create a new DownloadLogDao without any configuration + */ + public DownloadLogDao() { + super(DownloadLog.DOWNLOAD_LOG, jj.tech.paolu.repository.jooq.tables.pojos.DownloadLog.class); + } + + /** + * Create a new DownloadLogDao with an attached configuration + */ + @Autowired + public DownloadLogDao(Configuration configuration) { + super(DownloadLog.DOWNLOAD_LOG, jj.tech.paolu.repository.jooq.tables.pojos.DownloadLog.class, configuration); + } + + @Override + public String getId(jj.tech.paolu.repository.jooq.tables.pojos.DownloadLog object) { + return object.getId(); + } + + /** + * Fetch records that have id BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfId(String lowerInclusive, String upperInclusive) { + return fetchRange(DownloadLog.DOWNLOAD_LOG.ID, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have id IN (values) + */ + public List fetchById(String... values) { + return fetch(DownloadLog.DOWNLOAD_LOG.ID, values); + } + + /** + * Fetch a unique record that has id = value + */ + public jj.tech.paolu.repository.jooq.tables.pojos.DownloadLog fetchOneById(String value) { + return fetchOne(DownloadLog.DOWNLOAD_LOG.ID, value); + } + + /** + * Fetch a unique record that has id = value + */ + public Optional fetchOptionalById(String value) { + return fetchOptional(DownloadLog.DOWNLOAD_LOG.ID, value); + } + + /** + * Fetch records that have weid BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfWeid(String lowerInclusive, String upperInclusive) { + return fetchRange(DownloadLog.DOWNLOAD_LOG.WEID, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have weid IN (values) + */ + public List fetchByWeid(String... values) { + return fetch(DownloadLog.DOWNLOAD_LOG.WEID, values); + } + + /** + * Fetch records that have downloadtime BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfDownloadtime(LocalDateTime lowerInclusive, LocalDateTime upperInclusive) { + return fetchRange(DownloadLog.DOWNLOAD_LOG.DOWNLOADTIME, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have downloadtime IN (values) + */ + public List fetchByDownloadtime(LocalDateTime... values) { + return fetch(DownloadLog.DOWNLOAD_LOG.DOWNLOADTIME, values); + } + + /** + * Fetch records that have filenum BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfFilenum(Integer lowerInclusive, Integer upperInclusive) { + return fetchRange(DownloadLog.DOWNLOAD_LOG.FILENUM, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have filenum IN (values) + */ + public List fetchByFilenum(Integer... values) { + return fetch(DownloadLog.DOWNLOAD_LOG.FILENUM, values); + } + + /** + * Fetch records that have content_type BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfContentType(Integer lowerInclusive, Integer upperInclusive) { + return fetchRange(DownloadLog.DOWNLOAD_LOG.CONTENT_TYPE, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have content_type IN (values) + */ + public List fetchByContentType(Integer... values) { + return fetch(DownloadLog.DOWNLOAD_LOG.CONTENT_TYPE, values); + } + + /** + * Fetch records that have contentid BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfContentid(String lowerInclusive, String upperInclusive) { + return fetchRange(DownloadLog.DOWNLOAD_LOG.CONTENTID, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have contentid IN (values) + */ + public List fetchByContentid(String... values) { + return fetch(DownloadLog.DOWNLOAD_LOG.CONTENTID, values); + } + + /** + * Fetch records that have sign BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfSign(String lowerInclusive, String upperInclusive) { + return fetchRange(DownloadLog.DOWNLOAD_LOG.SIGN, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have sign IN (values) + */ + public List fetchBySign(String... values) { + return fetch(DownloadLog.DOWNLOAD_LOG.SIGN, values); + } +} diff --git a/src/main/java/jj/tech/paolu/repository/jooq/tables/daos/FilesApplyCheckRecordDao.java b/src/main/java/jj/tech/paolu/repository/jooq/tables/daos/FilesApplyCheckRecordDao.java new file mode 100644 index 0000000..d70e43e --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/jooq/tables/daos/FilesApplyCheckRecordDao.java @@ -0,0 +1,287 @@ +/* + * This file is generated by jOOQ. + */ +package jj.tech.paolu.repository.jooq.tables.daos; + + +import java.time.LocalDateTime; +import java.util.List; +import java.util.Optional; + +import jj.tech.paolu.repository.jooq.tables.FilesApplyCheckRecord; +import jj.tech.paolu.repository.jooq.tables.records.FilesApplyCheckRecordRecord; + +import org.jooq.Configuration; +import org.jooq.impl.DAOImpl; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Repository; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +@Repository +public class FilesApplyCheckRecordDao extends DAOImpl { + + /** + * Create a new FilesApplyCheckRecordDao without any configuration + */ + public FilesApplyCheckRecordDao() { + super(FilesApplyCheckRecord.FILES_APPLY_CHECK_RECORD, jj.tech.paolu.repository.jooq.tables.pojos.FilesApplyCheckRecord.class); + } + + /** + * Create a new FilesApplyCheckRecordDao with an attached configuration + */ + @Autowired + public FilesApplyCheckRecordDao(Configuration configuration) { + super(FilesApplyCheckRecord.FILES_APPLY_CHECK_RECORD, jj.tech.paolu.repository.jooq.tables.pojos.FilesApplyCheckRecord.class, configuration); + } + + @Override + public String getId(jj.tech.paolu.repository.jooq.tables.pojos.FilesApplyCheckRecord object) { + return object.getId(); + } + + /** + * Fetch records that have id BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfId(String lowerInclusive, String upperInclusive) { + return fetchRange(FilesApplyCheckRecord.FILES_APPLY_CHECK_RECORD.ID, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have id IN (values) + */ + public List fetchById(String... values) { + return fetch(FilesApplyCheckRecord.FILES_APPLY_CHECK_RECORD.ID, values); + } + + /** + * Fetch a unique record that has id = value + */ + public jj.tech.paolu.repository.jooq.tables.pojos.FilesApplyCheckRecord fetchOneById(String value) { + return fetchOne(FilesApplyCheckRecord.FILES_APPLY_CHECK_RECORD.ID, value); + } + + /** + * Fetch a unique record that has id = value + */ + public Optional fetchOptionalById(String value) { + return fetchOptional(FilesApplyCheckRecord.FILES_APPLY_CHECK_RECORD.ID, value); + } + + /** + * Fetch records that have files_apply_id BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfFilesApplyId(String lowerInclusive, String upperInclusive) { + return fetchRange(FilesApplyCheckRecord.FILES_APPLY_CHECK_RECORD.FILES_APPLY_ID, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have files_apply_id IN (values) + */ + public List fetchByFilesApplyId(String... values) { + return fetch(FilesApplyCheckRecord.FILES_APPLY_CHECK_RECORD.FILES_APPLY_ID, values); + } + + /** + * Fetch records that have is_apply_provider BETWEEN lowerInclusive + * AND upperInclusive + */ + public List fetchRangeOfIsApplyProvider(Integer lowerInclusive, Integer upperInclusive) { + return fetchRange(FilesApplyCheckRecord.FILES_APPLY_CHECK_RECORD.IS_APPLY_PROVIDER, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have is_apply_provider IN (values) + */ + public List fetchByIsApplyProvider(Integer... values) { + return fetch(FilesApplyCheckRecord.FILES_APPLY_CHECK_RECORD.IS_APPLY_PROVIDER, values); + } + + /** + * Fetch records that have check_user_id BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfCheckUserId(String lowerInclusive, String upperInclusive) { + return fetchRange(FilesApplyCheckRecord.FILES_APPLY_CHECK_RECORD.CHECK_USER_ID, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have check_user_id IN (values) + */ + public List fetchByCheckUserId(String... values) { + return fetch(FilesApplyCheckRecord.FILES_APPLY_CHECK_RECORD.CHECK_USER_ID, values); + } + + /** + * Fetch records that have check_user_name BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfCheckUserName(String lowerInclusive, String upperInclusive) { + return fetchRange(FilesApplyCheckRecord.FILES_APPLY_CHECK_RECORD.CHECK_USER_NAME, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have check_user_name IN (values) + */ + public List fetchByCheckUserName(String... values) { + return fetch(FilesApplyCheckRecord.FILES_APPLY_CHECK_RECORD.CHECK_USER_NAME, values); + } + + /** + * Fetch records that have check_org_id BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfCheckOrgId(String lowerInclusive, String upperInclusive) { + return fetchRange(FilesApplyCheckRecord.FILES_APPLY_CHECK_RECORD.CHECK_ORG_ID, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have check_org_id IN (values) + */ + public List fetchByCheckOrgId(String... values) { + return fetch(FilesApplyCheckRecord.FILES_APPLY_CHECK_RECORD.CHECK_ORG_ID, values); + } + + /** + * Fetch records that have check_org_name BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfCheckOrgName(String lowerInclusive, String upperInclusive) { + return fetchRange(FilesApplyCheckRecord.FILES_APPLY_CHECK_RECORD.CHECK_ORG_NAME, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have check_org_name IN (values) + */ + public List fetchByCheckOrgName(String... values) { + return fetch(FilesApplyCheckRecord.FILES_APPLY_CHECK_RECORD.CHECK_ORG_NAME, values); + } + + /** + * Fetch records that have next_check_org_id BETWEEN lowerInclusive + * AND upperInclusive + */ + public List fetchRangeOfNextCheckOrgId(String lowerInclusive, String upperInclusive) { + return fetchRange(FilesApplyCheckRecord.FILES_APPLY_CHECK_RECORD.NEXT_CHECK_ORG_ID, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have next_check_org_id IN (values) + */ + public List fetchByNextCheckOrgId(String... values) { + return fetch(FilesApplyCheckRecord.FILES_APPLY_CHECK_RECORD.NEXT_CHECK_ORG_ID, values); + } + + /** + * Fetch records that have next_check_org_name BETWEEN lowerInclusive + * AND upperInclusive + */ + public List fetchRangeOfNextCheckOrgName(String lowerInclusive, String upperInclusive) { + return fetchRange(FilesApplyCheckRecord.FILES_APPLY_CHECK_RECORD.NEXT_CHECK_ORG_NAME, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have next_check_org_name IN (values) + */ + public List fetchByNextCheckOrgName(String... values) { + return fetch(FilesApplyCheckRecord.FILES_APPLY_CHECK_RECORD.NEXT_CHECK_ORG_NAME, values); + } + + /** + * Fetch records that have check_describe BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfCheckDescribe(String lowerInclusive, String upperInclusive) { + return fetchRange(FilesApplyCheckRecord.FILES_APPLY_CHECK_RECORD.CHECK_DESCRIBE, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have check_describe IN (values) + */ + public List fetchByCheckDescribe(String... values) { + return fetch(FilesApplyCheckRecord.FILES_APPLY_CHECK_RECORD.CHECK_DESCRIBE, values); + } + + /** + * Fetch records that have check_status BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfCheckStatus(Integer lowerInclusive, Integer upperInclusive) { + return fetchRange(FilesApplyCheckRecord.FILES_APPLY_CHECK_RECORD.CHECK_STATUS, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have check_status IN (values) + */ + public List fetchByCheckStatus(Integer... values) { + return fetch(FilesApplyCheckRecord.FILES_APPLY_CHECK_RECORD.CHECK_STATUS, values); + } + + /** + * Fetch records that have check_time BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfCheckTime(LocalDateTime lowerInclusive, LocalDateTime upperInclusive) { + return fetchRange(FilesApplyCheckRecord.FILES_APPLY_CHECK_RECORD.CHECK_TIME, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have check_time IN (values) + */ + public List fetchByCheckTime(LocalDateTime... values) { + return fetch(FilesApplyCheckRecord.FILES_APPLY_CHECK_RECORD.CHECK_TIME, values); + } + + /** + * Fetch records that have provider_next_check_role_sign_id BETWEEN + * lowerInclusive AND upperInclusive + */ + public List fetchRangeOfProviderNextCheckRoleSignId(String lowerInclusive, String upperInclusive) { + return fetchRange(FilesApplyCheckRecord.FILES_APPLY_CHECK_RECORD.PROVIDER_NEXT_CHECK_ROLE_SIGN_ID, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have provider_next_check_role_sign_id IN + * (values) + */ + public List fetchByProviderNextCheckRoleSignId(String... values) { + return fetch(FilesApplyCheckRecord.FILES_APPLY_CHECK_RECORD.PROVIDER_NEXT_CHECK_ROLE_SIGN_ID, values); + } + + /** + * Fetch records that have provider_next_check_role_sign_name BETWEEN + * lowerInclusive AND upperInclusive + */ + public List fetchRangeOfProviderNextCheckRoleSignName(String lowerInclusive, String upperInclusive) { + return fetchRange(FilesApplyCheckRecord.FILES_APPLY_CHECK_RECORD.PROVIDER_NEXT_CHECK_ROLE_SIGN_NAME, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have provider_next_check_role_sign_name IN + * (values) + */ + public List fetchByProviderNextCheckRoleSignName(String... values) { + return fetch(FilesApplyCheckRecord.FILES_APPLY_CHECK_RECORD.PROVIDER_NEXT_CHECK_ROLE_SIGN_NAME, values); + } + + /** + * Fetch records that have sign BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfSign(String lowerInclusive, String upperInclusive) { + return fetchRange(FilesApplyCheckRecord.FILES_APPLY_CHECK_RECORD.SIGN, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have sign IN (values) + */ + public List fetchBySign(String... values) { + return fetch(FilesApplyCheckRecord.FILES_APPLY_CHECK_RECORD.SIGN, values); + } +} diff --git a/src/main/java/jj/tech/paolu/repository/jooq/tables/daos/FilesApplyDao.java b/src/main/java/jj/tech/paolu/repository/jooq/tables/daos/FilesApplyDao.java new file mode 100644 index 0000000..0a8abc3 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/jooq/tables/daos/FilesApplyDao.java @@ -0,0 +1,776 @@ +/* + * This file is generated by jOOQ. + */ +package jj.tech.paolu.repository.jooq.tables.daos; + + +import java.time.LocalDateTime; +import java.util.List; +import java.util.Optional; + +import jj.tech.paolu.repository.jooq.tables.FilesApply; +import jj.tech.paolu.repository.jooq.tables.records.FilesApplyRecord; + +import org.jooq.Configuration; +import org.jooq.impl.DAOImpl; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Repository; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +@Repository +public class FilesApplyDao extends DAOImpl { + + /** + * Create a new FilesApplyDao without any configuration + */ + public FilesApplyDao() { + super(FilesApply.FILES_APPLY, jj.tech.paolu.repository.jooq.tables.pojos.FilesApply.class); + } + + /** + * Create a new FilesApplyDao with an attached configuration + */ + @Autowired + public FilesApplyDao(Configuration configuration) { + super(FilesApply.FILES_APPLY, jj.tech.paolu.repository.jooq.tables.pojos.FilesApply.class, configuration); + } + + @Override + public String getId(jj.tech.paolu.repository.jooq.tables.pojos.FilesApply object) { + return object.getId(); + } + + /** + * Fetch records that have id BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfId(String lowerInclusive, String upperInclusive) { + return fetchRange(FilesApply.FILES_APPLY.ID, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have id IN (values) + */ + public List fetchById(String... values) { + return fetch(FilesApply.FILES_APPLY.ID, values); + } + + /** + * Fetch a unique record that has id = value + */ + public jj.tech.paolu.repository.jooq.tables.pojos.FilesApply fetchOneById(String value) { + return fetchOne(FilesApply.FILES_APPLY.ID, value); + } + + /** + * Fetch a unique record that has id = value + */ + public Optional fetchOptionalById(String value) { + return fetchOptional(FilesApply.FILES_APPLY.ID, value); + } + + /** + * Fetch records that have apply_user_id BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfApplyUserId(String lowerInclusive, String upperInclusive) { + return fetchRange(FilesApply.FILES_APPLY.APPLY_USER_ID, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have apply_user_id IN (values) + */ + public List fetchByApplyUserId(String... values) { + return fetch(FilesApply.FILES_APPLY.APPLY_USER_ID, values); + } + + /** + * Fetch records that have apply_user_name BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfApplyUserName(String lowerInclusive, String upperInclusive) { + return fetchRange(FilesApply.FILES_APPLY.APPLY_USER_NAME, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have apply_user_name IN (values) + */ + public List fetchByApplyUserName(String... values) { + return fetch(FilesApply.FILES_APPLY.APPLY_USER_NAME, values); + } + + /** + * Fetch records that have apply_user_phone BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfApplyUserPhone(String lowerInclusive, String upperInclusive) { + return fetchRange(FilesApply.FILES_APPLY.APPLY_USER_PHONE, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have apply_user_phone IN (values) + */ + public List fetchByApplyUserPhone(String... values) { + return fetch(FilesApply.FILES_APPLY.APPLY_USER_PHONE, values); + } + + /** + * Fetch records that have apply_user_email BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfApplyUserEmail(String lowerInclusive, String upperInclusive) { + return fetchRange(FilesApply.FILES_APPLY.APPLY_USER_EMAIL, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have apply_user_email IN (values) + */ + public List fetchByApplyUserEmail(String... values) { + return fetch(FilesApply.FILES_APPLY.APPLY_USER_EMAIL, values); + } + + /** + * Fetch records that have apply_org_id BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfApplyOrgId(String lowerInclusive, String upperInclusive) { + return fetchRange(FilesApply.FILES_APPLY.APPLY_ORG_ID, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have apply_org_id IN (values) + */ + public List fetchByApplyOrgId(String... values) { + return fetch(FilesApply.FILES_APPLY.APPLY_ORG_ID, values); + } + + /** + * Fetch records that have apply_org_name BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfApplyOrgName(String lowerInclusive, String upperInclusive) { + return fetchRange(FilesApply.FILES_APPLY.APPLY_ORG_NAME, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have apply_org_name IN (values) + */ + public List fetchByApplyOrgName(String... values) { + return fetch(FilesApply.FILES_APPLY.APPLY_ORG_NAME, values); + } + + /** + * Fetch records that have apply_in_check_user_id BETWEEN + * lowerInclusive AND upperInclusive + */ + public List fetchRangeOfApplyInCheckUserId(String lowerInclusive, String upperInclusive) { + return fetchRange(FilesApply.FILES_APPLY.APPLY_IN_CHECK_USER_ID, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have apply_in_check_user_id IN (values) + */ + public List fetchByApplyInCheckUserId(String... values) { + return fetch(FilesApply.FILES_APPLY.APPLY_IN_CHECK_USER_ID, values); + } + + /** + * Fetch records that have apply_in_check_user_name BETWEEN + * lowerInclusive AND upperInclusive + */ + public List fetchRangeOfApplyInCheckUserName(String lowerInclusive, String upperInclusive) { + return fetchRange(FilesApply.FILES_APPLY.APPLY_IN_CHECK_USER_NAME, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have apply_in_check_user_name IN (values) + */ + public List fetchByApplyInCheckUserName(String... values) { + return fetch(FilesApply.FILES_APPLY.APPLY_IN_CHECK_USER_NAME, values); + } + + /** + * Fetch records that have apply_in_check_org_id BETWEEN + * lowerInclusive AND upperInclusive + */ + public List fetchRangeOfApplyInCheckOrgId(String lowerInclusive, String upperInclusive) { + return fetchRange(FilesApply.FILES_APPLY.APPLY_IN_CHECK_ORG_ID, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have apply_in_check_org_id IN (values) + */ + public List fetchByApplyInCheckOrgId(String... values) { + return fetch(FilesApply.FILES_APPLY.APPLY_IN_CHECK_ORG_ID, values); + } + + /** + * Fetch records that have apply_in_check_org_name BETWEEN + * lowerInclusive AND upperInclusive + */ + public List fetchRangeOfApplyInCheckOrgName(String lowerInclusive, String upperInclusive) { + return fetchRange(FilesApply.FILES_APPLY.APPLY_IN_CHECK_ORG_NAME, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have apply_in_check_org_name IN (values) + */ + public List fetchByApplyInCheckOrgName(String... values) { + return fetch(FilesApply.FILES_APPLY.APPLY_IN_CHECK_ORG_NAME, values); + } + + /** + * Fetch records that have apply_next_check_org_id BETWEEN + * lowerInclusive AND upperInclusive + */ + public List fetchRangeOfApplyNextCheckOrgId(String lowerInclusive, String upperInclusive) { + return fetchRange(FilesApply.FILES_APPLY.APPLY_NEXT_CHECK_ORG_ID, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have apply_next_check_org_id IN (values) + */ + public List fetchByApplyNextCheckOrgId(String... values) { + return fetch(FilesApply.FILES_APPLY.APPLY_NEXT_CHECK_ORG_ID, values); + } + + /** + * Fetch records that have apply_next_check_org_name BETWEEN + * lowerInclusive AND upperInclusive + */ + public List fetchRangeOfApplyNextCheckOrgName(String lowerInclusive, String upperInclusive) { + return fetchRange(FilesApply.FILES_APPLY.APPLY_NEXT_CHECK_ORG_NAME, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have apply_next_check_org_name IN + * (values) + */ + public List fetchByApplyNextCheckOrgName(String... values) { + return fetch(FilesApply.FILES_APPLY.APPLY_NEXT_CHECK_ORG_NAME, values); + } + + /** + * Fetch records that have apply_end_check_user_id BETWEEN + * lowerInclusive AND upperInclusive + */ + public List fetchRangeOfApplyEndCheckUserId(String lowerInclusive, String upperInclusive) { + return fetchRange(FilesApply.FILES_APPLY.APPLY_END_CHECK_USER_ID, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have apply_end_check_user_id IN (values) + */ + public List fetchByApplyEndCheckUserId(String... values) { + return fetch(FilesApply.FILES_APPLY.APPLY_END_CHECK_USER_ID, values); + } + + /** + * Fetch records that have apply_end_check_user_name BETWEEN + * lowerInclusive AND upperInclusive + */ + public List fetchRangeOfApplyEndCheckUserName(String lowerInclusive, String upperInclusive) { + return fetchRange(FilesApply.FILES_APPLY.APPLY_END_CHECK_USER_NAME, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have apply_end_check_user_name IN + * (values) + */ + public List fetchByApplyEndCheckUserName(String... values) { + return fetch(FilesApply.FILES_APPLY.APPLY_END_CHECK_USER_NAME, values); + } + + /** + * Fetch records that have apply_end_check_org_id BETWEEN + * lowerInclusive AND upperInclusive + */ + public List fetchRangeOfApplyEndCheckOrgId(String lowerInclusive, String upperInclusive) { + return fetchRange(FilesApply.FILES_APPLY.APPLY_END_CHECK_ORG_ID, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have apply_end_check_org_id IN (values) + */ + public List fetchByApplyEndCheckOrgId(String... values) { + return fetch(FilesApply.FILES_APPLY.APPLY_END_CHECK_ORG_ID, values); + } + + /** + * Fetch records that have apply_end_check_org_name BETWEEN + * lowerInclusive AND upperInclusive + */ + public List fetchRangeOfApplyEndCheckOrgName(String lowerInclusive, String upperInclusive) { + return fetchRange(FilesApply.FILES_APPLY.APPLY_END_CHECK_ORG_NAME, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have apply_end_check_org_name IN (values) + */ + public List fetchByApplyEndCheckOrgName(String... values) { + return fetch(FilesApply.FILES_APPLY.APPLY_END_CHECK_ORG_NAME, values); + } + + /** + * Fetch records that have apply_days BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfApplyDays(Integer lowerInclusive, Integer upperInclusive) { + return fetchRange(FilesApply.FILES_APPLY.APPLY_DAYS, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have apply_days IN (values) + */ + public List fetchByApplyDays(Integer... values) { + return fetch(FilesApply.FILES_APPLY.APPLY_DAYS, values); + } + + /** + * Fetch records that have apply_feedback BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfApplyFeedback(String lowerInclusive, String upperInclusive) { + return fetchRange(FilesApply.FILES_APPLY.APPLY_FEEDBACK, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have apply_feedback IN (values) + */ + public List fetchByApplyFeedback(String... values) { + return fetch(FilesApply.FILES_APPLY.APPLY_FEEDBACK, values); + } + + /** + * Fetch records that have apply_reason BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfApplyReason(String lowerInclusive, String upperInclusive) { + return fetchRange(FilesApply.FILES_APPLY.APPLY_REASON, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have apply_reason IN (values) + */ + public List fetchByApplyReason(String... values) { + return fetch(FilesApply.FILES_APPLY.APPLY_REASON, values); + } + + /** + * Fetch records that have apply_cancel_reason BETWEEN lowerInclusive + * AND upperInclusive + */ + public List fetchRangeOfApplyCancelReason(String lowerInclusive, String upperInclusive) { + return fetchRange(FilesApply.FILES_APPLY.APPLY_CANCEL_REASON, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have apply_cancel_reason IN (values) + */ + public List fetchByApplyCancelReason(String... values) { + return fetch(FilesApply.FILES_APPLY.APPLY_CANCEL_REASON, values); + } + + /** + * Fetch records that have apply_view_type_print BETWEEN + * lowerInclusive AND upperInclusive + */ + public List fetchRangeOfApplyViewTypePrint(Integer lowerInclusive, Integer upperInclusive) { + return fetchRange(FilesApply.FILES_APPLY.APPLY_VIEW_TYPE_PRINT, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have apply_view_type_print IN (values) + */ + public List fetchByApplyViewTypePrint(Integer... values) { + return fetch(FilesApply.FILES_APPLY.APPLY_VIEW_TYPE_PRINT, values); + } + + /** + * Fetch records that have apply_view_type_online BETWEEN + * lowerInclusive AND upperInclusive + */ + public List fetchRangeOfApplyViewTypeOnline(Integer lowerInclusive, Integer upperInclusive) { + return fetchRange(FilesApply.FILES_APPLY.APPLY_VIEW_TYPE_ONLINE, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have apply_view_type_online IN (values) + */ + public List fetchByApplyViewTypeOnline(Integer... values) { + return fetch(FilesApply.FILES_APPLY.APPLY_VIEW_TYPE_ONLINE, values); + } + + /** + * Fetch records that have apply_file_num BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfApplyFileNum(Integer lowerInclusive, Integer upperInclusive) { + return fetchRange(FilesApply.FILES_APPLY.APPLY_FILE_NUM, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have apply_file_num IN (values) + */ + public List fetchByApplyFileNum(Integer... values) { + return fetch(FilesApply.FILES_APPLY.APPLY_FILE_NUM, values); + } + + /** + * Fetch records that have apply_time BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfApplyTime(LocalDateTime lowerInclusive, LocalDateTime upperInclusive) { + return fetchRange(FilesApply.FILES_APPLY.APPLY_TIME, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have apply_time IN (values) + */ + public List fetchByApplyTime(LocalDateTime... values) { + return fetch(FilesApply.FILES_APPLY.APPLY_TIME, values); + } + + /** + * Fetch records that have apply_check_is_finish BETWEEN + * lowerInclusive AND upperInclusive + */ + public List fetchRangeOfApplyCheckIsFinish(Integer lowerInclusive, Integer upperInclusive) { + return fetchRange(FilesApply.FILES_APPLY.APPLY_CHECK_IS_FINISH, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have apply_check_is_finish IN (values) + */ + public List fetchByApplyCheckIsFinish(Integer... values) { + return fetch(FilesApply.FILES_APPLY.APPLY_CHECK_IS_FINISH, values); + } + + /** + * Fetch records that have provider_org_id BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfProviderOrgId(String lowerInclusive, String upperInclusive) { + return fetchRange(FilesApply.FILES_APPLY.PROVIDER_ORG_ID, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have provider_org_id IN (values) + */ + public List fetchByProviderOrgId(String... values) { + return fetch(FilesApply.FILES_APPLY.PROVIDER_ORG_ID, values); + } + + /** + * Fetch records that have provider_org_name BETWEEN lowerInclusive + * AND upperInclusive + */ + public List fetchRangeOfProviderOrgName(String lowerInclusive, String upperInclusive) { + return fetchRange(FilesApply.FILES_APPLY.PROVIDER_ORG_NAME, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have provider_org_name IN (values) + */ + public List fetchByProviderOrgName(String... values) { + return fetch(FilesApply.FILES_APPLY.PROVIDER_ORG_NAME, values); + } + + /** + * Fetch records that have provider_file_properties BETWEEN + * lowerInclusive AND upperInclusive + */ + public List fetchRangeOfProviderFileProperties(Integer lowerInclusive, Integer upperInclusive) { + return fetchRange(FilesApply.FILES_APPLY.PROVIDER_FILE_PROPERTIES, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have provider_file_properties IN (values) + */ + public List fetchByProviderFileProperties(Integer... values) { + return fetch(FilesApply.FILES_APPLY.PROVIDER_FILE_PROPERTIES, values); + } + + /** + * Fetch records that have provider_use_start_time BETWEEN + * lowerInclusive AND upperInclusive + */ + public List fetchRangeOfProviderUseStartTime(LocalDateTime lowerInclusive, LocalDateTime upperInclusive) { + return fetchRange(FilesApply.FILES_APPLY.PROVIDER_USE_START_TIME, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have provider_use_start_time IN (values) + */ + public List fetchByProviderUseStartTime(LocalDateTime... values) { + return fetch(FilesApply.FILES_APPLY.PROVIDER_USE_START_TIME, values); + } + + /** + * Fetch records that have provider_use_end_time BETWEEN + * lowerInclusive AND upperInclusive + */ + public List fetchRangeOfProviderUseEndTime(LocalDateTime lowerInclusive, LocalDateTime upperInclusive) { + return fetchRange(FilesApply.FILES_APPLY.PROVIDER_USE_END_TIME, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have provider_use_end_time IN (values) + */ + public List fetchByProviderUseEndTime(LocalDateTime... values) { + return fetch(FilesApply.FILES_APPLY.PROVIDER_USE_END_TIME, values); + } + + /** + * Fetch records that have provider_in_check_user_id BETWEEN + * lowerInclusive AND upperInclusive + */ + public List fetchRangeOfProviderInCheckUserId(String lowerInclusive, String upperInclusive) { + return fetchRange(FilesApply.FILES_APPLY.PROVIDER_IN_CHECK_USER_ID, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have provider_in_check_user_id IN + * (values) + */ + public List fetchByProviderInCheckUserId(String... values) { + return fetch(FilesApply.FILES_APPLY.PROVIDER_IN_CHECK_USER_ID, values); + } + + /** + * Fetch records that have provider_in_check_user_name BETWEEN + * lowerInclusive AND upperInclusive + */ + public List fetchRangeOfProviderInCheckUserName(String lowerInclusive, String upperInclusive) { + return fetchRange(FilesApply.FILES_APPLY.PROVIDER_IN_CHECK_USER_NAME, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have provider_in_check_user_name IN + * (values) + */ + public List fetchByProviderInCheckUserName(String... values) { + return fetch(FilesApply.FILES_APPLY.PROVIDER_IN_CHECK_USER_NAME, values); + } + + /** + * Fetch records that have provider_in_check_org_id BETWEEN + * lowerInclusive AND upperInclusive + */ + public List fetchRangeOfProviderInCheckOrgId(String lowerInclusive, String upperInclusive) { + return fetchRange(FilesApply.FILES_APPLY.PROVIDER_IN_CHECK_ORG_ID, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have provider_in_check_org_id IN (values) + */ + public List fetchByProviderInCheckOrgId(String... values) { + return fetch(FilesApply.FILES_APPLY.PROVIDER_IN_CHECK_ORG_ID, values); + } + + /** + * Fetch records that have provider_in_check_org_name BETWEEN + * lowerInclusive AND upperInclusive + */ + public List fetchRangeOfProviderInCheckOrgName(String lowerInclusive, String upperInclusive) { + return fetchRange(FilesApply.FILES_APPLY.PROVIDER_IN_CHECK_ORG_NAME, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have provider_in_check_org_name IN + * (values) + */ + public List fetchByProviderInCheckOrgName(String... values) { + return fetch(FilesApply.FILES_APPLY.PROVIDER_IN_CHECK_ORG_NAME, values); + } + + /** + * Fetch records that have provider_next_check_role_sign_id BETWEEN + * lowerInclusive AND upperInclusive + */ + public List fetchRangeOfProviderNextCheckRoleSignId(String lowerInclusive, String upperInclusive) { + return fetchRange(FilesApply.FILES_APPLY.PROVIDER_NEXT_CHECK_ROLE_SIGN_ID, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have provider_next_check_role_sign_id IN + * (values) + */ + public List fetchByProviderNextCheckRoleSignId(String... values) { + return fetch(FilesApply.FILES_APPLY.PROVIDER_NEXT_CHECK_ROLE_SIGN_ID, values); + } + + /** + * Fetch records that have provider_next_check_role_sign_name BETWEEN + * lowerInclusive AND upperInclusive + */ + public List fetchRangeOfProviderNextCheckRoleSignName(String lowerInclusive, String upperInclusive) { + return fetchRange(FilesApply.FILES_APPLY.PROVIDER_NEXT_CHECK_ROLE_SIGN_NAME, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have provider_next_check_role_sign_name IN + * (values) + */ + public List fetchByProviderNextCheckRoleSignName(String... values) { + return fetch(FilesApply.FILES_APPLY.PROVIDER_NEXT_CHECK_ROLE_SIGN_NAME, values); + } + + /** + * Fetch records that have provider_end_check_user_id BETWEEN + * lowerInclusive AND upperInclusive + */ + public List fetchRangeOfProviderEndCheckUserId(String lowerInclusive, String upperInclusive) { + return fetchRange(FilesApply.FILES_APPLY.PROVIDER_END_CHECK_USER_ID, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have provider_end_check_user_id IN + * (values) + */ + public List fetchByProviderEndCheckUserId(String... values) { + return fetch(FilesApply.FILES_APPLY.PROVIDER_END_CHECK_USER_ID, values); + } + + /** + * Fetch records that have provider_end_check_user_name BETWEEN + * lowerInclusive AND upperInclusive + */ + public List fetchRangeOfProviderEndCheckUserName(String lowerInclusive, String upperInclusive) { + return fetchRange(FilesApply.FILES_APPLY.PROVIDER_END_CHECK_USER_NAME, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have provider_end_check_user_name IN + * (values) + */ + public List fetchByProviderEndCheckUserName(String... values) { + return fetch(FilesApply.FILES_APPLY.PROVIDER_END_CHECK_USER_NAME, values); + } + + /** + * Fetch records that have provider_end_check_org_id BETWEEN + * lowerInclusive AND upperInclusive + */ + public List fetchRangeOfProviderEndCheckOrgId(String lowerInclusive, String upperInclusive) { + return fetchRange(FilesApply.FILES_APPLY.PROVIDER_END_CHECK_ORG_ID, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have provider_end_check_org_id IN + * (values) + */ + public List fetchByProviderEndCheckOrgId(String... values) { + return fetch(FilesApply.FILES_APPLY.PROVIDER_END_CHECK_ORG_ID, values); + } + + /** + * Fetch records that have provider_end_check_org_name BETWEEN + * lowerInclusive AND upperInclusive + */ + public List fetchRangeOfProviderEndCheckOrgName(String lowerInclusive, String upperInclusive) { + return fetchRange(FilesApply.FILES_APPLY.PROVIDER_END_CHECK_ORG_NAME, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have provider_end_check_org_name IN + * (values) + */ + public List fetchByProviderEndCheckOrgName(String... values) { + return fetch(FilesApply.FILES_APPLY.PROVIDER_END_CHECK_ORG_NAME, values); + } + + /** + * Fetch records that have provider_check_is_finish BETWEEN + * lowerInclusive AND upperInclusive + */ + public List fetchRangeOfProviderCheckIsFinish(Integer lowerInclusive, Integer upperInclusive) { + return fetchRange(FilesApply.FILES_APPLY.PROVIDER_CHECK_IS_FINISH, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have provider_check_is_finish IN (values) + */ + public List fetchByProviderCheckIsFinish(Integer... values) { + return fetch(FilesApply.FILES_APPLY.PROVIDER_CHECK_IS_FINISH, values); + } + + /** + * Fetch records that have secret_key BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfSecretKey(String lowerInclusive, String upperInclusive) { + return fetchRange(FilesApply.FILES_APPLY.SECRET_KEY, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have secret_key IN (values) + */ + public List fetchBySecretKey(String... values) { + return fetch(FilesApply.FILES_APPLY.SECRET_KEY, values); + } + + /** + * Fetch records that have status BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfStatus(Integer lowerInclusive, Integer upperInclusive) { + return fetchRange(FilesApply.FILES_APPLY.STATUS, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have status IN (values) + */ + public List fetchByStatus(Integer... values) { + return fetch(FilesApply.FILES_APPLY.STATUS, values); + } + + /** + * Fetch records that have project_id BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfProjectId(String lowerInclusive, String upperInclusive) { + return fetchRange(FilesApply.FILES_APPLY.PROJECT_ID, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have project_id IN (values) + */ + public List fetchByProjectId(String... values) { + return fetch(FilesApply.FILES_APPLY.PROJECT_ID, values); + } + + /** + * Fetch records that have project_name BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfProjectName(String lowerInclusive, String upperInclusive) { + return fetchRange(FilesApply.FILES_APPLY.PROJECT_NAME, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have project_name IN (values) + */ + public List fetchByProjectName(String... values) { + return fetch(FilesApply.FILES_APPLY.PROJECT_NAME, values); + } + + /** + * Fetch records that have sign BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfSign(String lowerInclusive, String upperInclusive) { + return fetchRange(FilesApply.FILES_APPLY.SIGN, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have sign IN (values) + */ + public List fetchBySign(String... values) { + return fetch(FilesApply.FILES_APPLY.SIGN, values); + } +} diff --git a/src/main/java/jj/tech/paolu/repository/jooq/tables/daos/FilesApplyDirectoryDocsDao.java b/src/main/java/jj/tech/paolu/repository/jooq/tables/daos/FilesApplyDirectoryDocsDao.java new file mode 100644 index 0000000..2f7ac65 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/jooq/tables/daos/FilesApplyDirectoryDocsDao.java @@ -0,0 +1,404 @@ +/* + * This file is generated by jOOQ. + */ +package jj.tech.paolu.repository.jooq.tables.daos; + + +import java.util.List; +import java.util.Optional; + +import jj.tech.paolu.repository.jooq.tables.FilesApplyDirectoryDocs; +import jj.tech.paolu.repository.jooq.tables.records.FilesApplyDirectoryDocsRecord; + +import org.jooq.Configuration; +import org.jooq.impl.DAOImpl; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Repository; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +@Repository +public class FilesApplyDirectoryDocsDao extends DAOImpl { + + /** + * Create a new FilesApplyDirectoryDocsDao without any configuration + */ + public FilesApplyDirectoryDocsDao() { + super(FilesApplyDirectoryDocs.FILES_APPLY_DIRECTORY_DOCS, jj.tech.paolu.repository.jooq.tables.pojos.FilesApplyDirectoryDocs.class); + } + + /** + * Create a new FilesApplyDirectoryDocsDao with an attached configuration + */ + @Autowired + public FilesApplyDirectoryDocsDao(Configuration configuration) { + super(FilesApplyDirectoryDocs.FILES_APPLY_DIRECTORY_DOCS, jj.tech.paolu.repository.jooq.tables.pojos.FilesApplyDirectoryDocs.class, configuration); + } + + @Override + public String getId(jj.tech.paolu.repository.jooq.tables.pojos.FilesApplyDirectoryDocs object) { + return object.getId(); + } + + /** + * Fetch records that have id BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfId(String lowerInclusive, String upperInclusive) { + return fetchRange(FilesApplyDirectoryDocs.FILES_APPLY_DIRECTORY_DOCS.ID, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have id IN (values) + */ + public List fetchById(String... values) { + return fetch(FilesApplyDirectoryDocs.FILES_APPLY_DIRECTORY_DOCS.ID, values); + } + + /** + * Fetch a unique record that has id = value + */ + public jj.tech.paolu.repository.jooq.tables.pojos.FilesApplyDirectoryDocs fetchOneById(String value) { + return fetchOne(FilesApplyDirectoryDocs.FILES_APPLY_DIRECTORY_DOCS.ID, value); + } + + /** + * Fetch a unique record that has id = value + */ + public Optional fetchOptionalById(String value) { + return fetchOptional(FilesApplyDirectoryDocs.FILES_APPLY_DIRECTORY_DOCS.ID, value); + } + + /** + * Fetch records that have files_apply_id BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfFilesApplyId(String lowerInclusive, String upperInclusive) { + return fetchRange(FilesApplyDirectoryDocs.FILES_APPLY_DIRECTORY_DOCS.FILES_APPLY_ID, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have files_apply_id IN (values) + */ + public List fetchByFilesApplyId(String... values) { + return fetch(FilesApplyDirectoryDocs.FILES_APPLY_DIRECTORY_DOCS.FILES_APPLY_ID, values); + } + + /** + * Fetch records that have directory_file_id BETWEEN lowerInclusive + * AND upperInclusive + */ + public List fetchRangeOfDirectoryFileId(String lowerInclusive, String upperInclusive) { + return fetchRange(FilesApplyDirectoryDocs.FILES_APPLY_DIRECTORY_DOCS.DIRECTORY_FILE_ID, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have directory_file_id IN (values) + */ + public List fetchByDirectoryFileId(String... values) { + return fetch(FilesApplyDirectoryDocs.FILES_APPLY_DIRECTORY_DOCS.DIRECTORY_FILE_ID, values); + } + + /** + * Fetch records that have directory_file_p_id BETWEEN lowerInclusive + * AND upperInclusive + */ + public List fetchRangeOfDirectoryFilePId(String lowerInclusive, String upperInclusive) { + return fetchRange(FilesApplyDirectoryDocs.FILES_APPLY_DIRECTORY_DOCS.DIRECTORY_FILE_P_ID, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have directory_file_p_id IN (values) + */ + public List fetchByDirectoryFilePId(String... values) { + return fetch(FilesApplyDirectoryDocs.FILES_APPLY_DIRECTORY_DOCS.DIRECTORY_FILE_P_ID, values); + } + + /** + * Fetch records that have filesuper BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfFilesuper(String lowerInclusive, String upperInclusive) { + return fetchRange(FilesApplyDirectoryDocs.FILES_APPLY_DIRECTORY_DOCS.FILESUPER, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have filesuper IN (values) + */ + public List fetchByFilesuper(String... values) { + return fetch(FilesApplyDirectoryDocs.FILES_APPLY_DIRECTORY_DOCS.FILESUPER, values); + } + + /** + * Fetch records that have filecount BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfFilecount(Integer lowerInclusive, Integer upperInclusive) { + return fetchRange(FilesApplyDirectoryDocs.FILES_APPLY_DIRECTORY_DOCS.FILECOUNT, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have filecount IN (values) + */ + public List fetchByFilecount(Integer... values) { + return fetch(FilesApplyDirectoryDocs.FILES_APPLY_DIRECTORY_DOCS.FILECOUNT, values); + } + + /** + * Fetch records that have dutyperson BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfDutyperson(String lowerInclusive, String upperInclusive) { + return fetchRange(FilesApplyDirectoryDocs.FILES_APPLY_DIRECTORY_DOCS.DUTYPERSON, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have dutyperson IN (values) + */ + public List fetchByDutyperson(String... values) { + return fetch(FilesApplyDirectoryDocs.FILES_APPLY_DIRECTORY_DOCS.DUTYPERSON, values); + } + + /** + * Fetch records that have eweavedate BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfEweavedate(String lowerInclusive, String upperInclusive) { + return fetchRange(FilesApplyDirectoryDocs.FILES_APPLY_DIRECTORY_DOCS.EWEAVEDATE, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have eweavedate IN (values) + */ + public List fetchByEweavedate(String... values) { + return fetch(FilesApplyDirectoryDocs.FILES_APPLY_DIRECTORY_DOCS.EWEAVEDATE, values); + } + + /** + * Fetch records that have filepage BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfFilepage(Integer lowerInclusive, Integer upperInclusive) { + return fetchRange(FilesApplyDirectoryDocs.FILES_APPLY_DIRECTORY_DOCS.FILEPAGE, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have filepage IN (values) + */ + public List fetchByFilepage(Integer... values) { + return fetch(FilesApplyDirectoryDocs.FILES_APPLY_DIRECTORY_DOCS.FILEPAGE, values); + } + + /** + * Fetch records that have sortorder BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfSortorder(String lowerInclusive, String upperInclusive) { + return fetchRange(FilesApplyDirectoryDocs.FILES_APPLY_DIRECTORY_DOCS.SORTORDER, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have sortorder IN (values) + */ + public List fetchBySortorder(String... values) { + return fetch(FilesApplyDirectoryDocs.FILES_APPLY_DIRECTORY_DOCS.SORTORDER, values); + } + + /** + * Fetch records that have bpeg BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfBpeg(String lowerInclusive, String upperInclusive) { + return fetchRange(FilesApplyDirectoryDocs.FILES_APPLY_DIRECTORY_DOCS.BPEG, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have bpeg IN (values) + */ + public List fetchByBpeg(String... values) { + return fetch(FilesApplyDirectoryDocs.FILES_APPLY_DIRECTORY_DOCS.BPEG, values); + } + + /** + * Fetch records that have epeg BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfEpeg(String lowerInclusive, String upperInclusive) { + return fetchRange(FilesApplyDirectoryDocs.FILES_APPLY_DIRECTORY_DOCS.EPEG, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have epeg IN (values) + */ + public List fetchByEpeg(String... values) { + return fetch(FilesApplyDirectoryDocs.FILES_APPLY_DIRECTORY_DOCS.EPEG, values); + } + + /** + * Fetch records that have filenum BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfFilenum(String lowerInclusive, String upperInclusive) { + return fetchRange(FilesApplyDirectoryDocs.FILES_APPLY_DIRECTORY_DOCS.FILENUM, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have filenum IN (values) + */ + public List fetchByFilenum(String... values) { + return fetch(FilesApplyDirectoryDocs.FILES_APPLY_DIRECTORY_DOCS.FILENUM, values); + } + + /** + * Fetch records that have remark BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfRemark(String lowerInclusive, String upperInclusive) { + return fetchRange(FilesApplyDirectoryDocs.FILES_APPLY_DIRECTORY_DOCS.REMARK, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have remark IN (values) + */ + public List fetchByRemark(String... values) { + return fetch(FilesApplyDirectoryDocs.FILES_APPLY_DIRECTORY_DOCS.REMARK, values); + } + + /** + * Fetch records that have recordnum BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfRecordnum(String lowerInclusive, String upperInclusive) { + return fetchRange(FilesApplyDirectoryDocs.FILES_APPLY_DIRECTORY_DOCS.RECORDNUM, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have recordnum IN (values) + */ + public List fetchByRecordnum(String... values) { + return fetch(FilesApplyDirectoryDocs.FILES_APPLY_DIRECTORY_DOCS.RECORDNUM, values); + } + + /** + * Fetch records that have piecenumber BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfPiecenumber(String lowerInclusive, String upperInclusive) { + return fetchRange(FilesApplyDirectoryDocs.FILES_APPLY_DIRECTORY_DOCS.PIECENUMBER, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have piecenumber IN (values) + */ + public List fetchByPiecenumber(String... values) { + return fetch(FilesApplyDirectoryDocs.FILES_APPLY_DIRECTORY_DOCS.PIECENUMBER, values); + } + + /** + * Fetch records that have adddate BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfAdddate(String lowerInclusive, String upperInclusive) { + return fetchRange(FilesApplyDirectoryDocs.FILES_APPLY_DIRECTORY_DOCS.ADDDATE, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have adddate IN (values) + */ + public List fetchByAdddate(String... values) { + return fetch(FilesApplyDirectoryDocs.FILES_APPLY_DIRECTORY_DOCS.ADDDATE, values); + } + + /** + * Fetch records that have editdate BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfEditdate(String lowerInclusive, String upperInclusive) { + return fetchRange(FilesApplyDirectoryDocs.FILES_APPLY_DIRECTORY_DOCS.EDITDATE, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have editdate IN (values) + */ + public List fetchByEditdate(String... values) { + return fetch(FilesApplyDirectoryDocs.FILES_APPLY_DIRECTORY_DOCS.EDITDATE, values); + } + + /** + * Fetch records that have time_stamp BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfTimeStamp(String lowerInclusive, String upperInclusive) { + return fetchRange(FilesApplyDirectoryDocs.FILES_APPLY_DIRECTORY_DOCS.TIME_STAMP, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have time_stamp IN (values) + */ + public List fetchByTimeStamp(String... values) { + return fetch(FilesApplyDirectoryDocs.FILES_APPLY_DIRECTORY_DOCS.TIME_STAMP, values); + } + + /** + * Fetch records that have isdel BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfIsdel(Integer lowerInclusive, Integer upperInclusive) { + return fetchRange(FilesApplyDirectoryDocs.FILES_APPLY_DIRECTORY_DOCS.ISDEL, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have isdel IN (values) + */ + public List fetchByIsdel(Integer... values) { + return fetch(FilesApplyDirectoryDocs.FILES_APPLY_DIRECTORY_DOCS.ISDEL, values); + } + + /** + * Fetch records that have catalogpdfurl BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfCatalogpdfurl(String lowerInclusive, String upperInclusive) { + return fetchRange(FilesApplyDirectoryDocs.FILES_APPLY_DIRECTORY_DOCS.CATALOGPDFURL, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have catalogpdfurl IN (values) + */ + public List fetchByCatalogpdfurl(String... values) { + return fetch(FilesApplyDirectoryDocs.FILES_APPLY_DIRECTORY_DOCS.CATALOGPDFURL, values); + } + + /** + * Fetch records that have signtag BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfSigntag(String lowerInclusive, String upperInclusive) { + return fetchRange(FilesApplyDirectoryDocs.FILES_APPLY_DIRECTORY_DOCS.SIGNTAG, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have signtag IN (values) + */ + public List fetchBySigntag(String... values) { + return fetch(FilesApplyDirectoryDocs.FILES_APPLY_DIRECTORY_DOCS.SIGNTAG, values); + } + + /** + * Fetch records that have collecttag BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfCollecttag(String lowerInclusive, String upperInclusive) { + return fetchRange(FilesApplyDirectoryDocs.FILES_APPLY_DIRECTORY_DOCS.COLLECTTAG, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have collecttag IN (values) + */ + public List fetchByCollecttag(String... values) { + return fetch(FilesApplyDirectoryDocs.FILES_APPLY_DIRECTORY_DOCS.COLLECTTAG, values); + } +} diff --git a/src/main/java/jj/tech/paolu/repository/jooq/tables/daos/FilesApplyDocsDao.java b/src/main/java/jj/tech/paolu/repository/jooq/tables/daos/FilesApplyDocsDao.java new file mode 100644 index 0000000..c406a47 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/jooq/tables/daos/FilesApplyDocsDao.java @@ -0,0 +1,374 @@ +/* + * This file is generated by jOOQ. + */ +package jj.tech.paolu.repository.jooq.tables.daos; + + +import java.util.List; +import java.util.Optional; + +import jj.tech.paolu.repository.jooq.tables.FilesApplyDocs; +import jj.tech.paolu.repository.jooq.tables.records.FilesApplyDocsRecord; + +import org.jooq.Configuration; +import org.jooq.impl.DAOImpl; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Repository; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +@Repository +public class FilesApplyDocsDao extends DAOImpl { + + /** + * Create a new FilesApplyDocsDao without any configuration + */ + public FilesApplyDocsDao() { + super(FilesApplyDocs.FILES_APPLY_DOCS, jj.tech.paolu.repository.jooq.tables.pojos.FilesApplyDocs.class); + } + + /** + * Create a new FilesApplyDocsDao with an attached configuration + */ + @Autowired + public FilesApplyDocsDao(Configuration configuration) { + super(FilesApplyDocs.FILES_APPLY_DOCS, jj.tech.paolu.repository.jooq.tables.pojos.FilesApplyDocs.class, configuration); + } + + @Override + public String getId(jj.tech.paolu.repository.jooq.tables.pojos.FilesApplyDocs object) { + return object.getId(); + } + + /** + * Fetch records that have id BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfId(String lowerInclusive, String upperInclusive) { + return fetchRange(FilesApplyDocs.FILES_APPLY_DOCS.ID, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have id IN (values) + */ + public List fetchById(String... values) { + return fetch(FilesApplyDocs.FILES_APPLY_DOCS.ID, values); + } + + /** + * Fetch a unique record that has id = value + */ + public jj.tech.paolu.repository.jooq.tables.pojos.FilesApplyDocs fetchOneById(String value) { + return fetchOne(FilesApplyDocs.FILES_APPLY_DOCS.ID, value); + } + + /** + * Fetch a unique record that has id = value + */ + public Optional fetchOptionalById(String value) { + return fetchOptional(FilesApplyDocs.FILES_APPLY_DOCS.ID, value); + } + + /** + * Fetch records that have files_apply_id BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfFilesApplyId(String lowerInclusive, String upperInclusive) { + return fetchRange(FilesApplyDocs.FILES_APPLY_DOCS.FILES_APPLY_ID, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have files_apply_id IN (values) + */ + public List fetchByFilesApplyId(String... values) { + return fetch(FilesApplyDocs.FILES_APPLY_DOCS.FILES_APPLY_ID, values); + } + + /** + * Fetch records that have syn_file_id BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfSynFileId(String lowerInclusive, String upperInclusive) { + return fetchRange(FilesApplyDocs.FILES_APPLY_DOCS.SYN_FILE_ID, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have syn_file_id IN (values) + */ + public List fetchBySynFileId(String... values) { + return fetch(FilesApplyDocs.FILES_APPLY_DOCS.SYN_FILE_ID, values); + } + + /** + * Fetch records that have syn_file_p_id BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfSynFilePId(String lowerInclusive, String upperInclusive) { + return fetchRange(FilesApplyDocs.FILES_APPLY_DOCS.SYN_FILE_P_ID, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have syn_file_p_id IN (values) + */ + public List fetchBySynFilePId(String... values) { + return fetch(FilesApplyDocs.FILES_APPLY_DOCS.SYN_FILE_P_ID, values); + } + + /** + * Fetch records that have tablenumber BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfTablenumber(String lowerInclusive, String upperInclusive) { + return fetchRange(FilesApplyDocs.FILES_APPLY_DOCS.TABLENUMBER, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have tablenumber IN (values) + */ + public List fetchByTablenumber(String... values) { + return fetch(FilesApplyDocs.FILES_APPLY_DOCS.TABLENUMBER, values); + } + + /** + * Fetch records that have annexname BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfAnnexname(String lowerInclusive, String upperInclusive) { + return fetchRange(FilesApplyDocs.FILES_APPLY_DOCS.ANNEXNAME, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have annexname IN (values) + */ + public List fetchByAnnexname(String... values) { + return fetch(FilesApplyDocs.FILES_APPLY_DOCS.ANNEXNAME, values); + } + + /** + * Fetch records that have projectname BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfProjectname(String lowerInclusive, String upperInclusive) { + return fetchRange(FilesApplyDocs.FILES_APPLY_DOCS.PROJECTNAME, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have projectname IN (values) + */ + public List fetchByProjectname(String... values) { + return fetch(FilesApplyDocs.FILES_APPLY_DOCS.PROJECTNAME, values); + } + + /** + * Fetch records that have eweavedate BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfEweavedate(String lowerInclusive, String upperInclusive) { + return fetchRange(FilesApplyDocs.FILES_APPLY_DOCS.EWEAVEDATE, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have eweavedate IN (values) + */ + public List fetchByEweavedate(String... values) { + return fetch(FilesApplyDocs.FILES_APPLY_DOCS.EWEAVEDATE, values); + } + + /** + * Fetch records that have checkdate BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfCheckdate(String lowerInclusive, String upperInclusive) { + return fetchRange(FilesApplyDocs.FILES_APPLY_DOCS.CHECKDATE, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have checkdate IN (values) + */ + public List fetchByCheckdate(String... values) { + return fetch(FilesApplyDocs.FILES_APPLY_DOCS.CHECKDATE, values); + } + + /** + * Fetch records that have annexpage BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfAnnexpage(Integer lowerInclusive, Integer upperInclusive) { + return fetchRange(FilesApplyDocs.FILES_APPLY_DOCS.ANNEXPAGE, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have annexpage IN (values) + */ + public List fetchByAnnexpage(Integer... values) { + return fetch(FilesApplyDocs.FILES_APPLY_DOCS.ANNEXPAGE, values); + } + + /** + * Fetch records that have sortorder BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfSortorder(String lowerInclusive, String upperInclusive) { + return fetchRange(FilesApplyDocs.FILES_APPLY_DOCS.SORTORDER, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have sortorder IN (values) + */ + public List fetchBySortorder(String... values) { + return fetch(FilesApplyDocs.FILES_APPLY_DOCS.SORTORDER, values); + } + + /** + * Fetch records that have filefrom BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfFilefrom(String lowerInclusive, String upperInclusive) { + return fetchRange(FilesApplyDocs.FILES_APPLY_DOCS.FILEFROM, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have filefrom IN (values) + */ + public List fetchByFilefrom(String... values) { + return fetch(FilesApplyDocs.FILES_APPLY_DOCS.FILEFROM, values); + } + + /** + * Fetch records that have archivestag BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfArchivestag(String lowerInclusive, String upperInclusive) { + return fetchRange(FilesApplyDocs.FILES_APPLY_DOCS.ARCHIVESTAG, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have archivestag IN (values) + */ + public List fetchByArchivestag(String... values) { + return fetch(FilesApplyDocs.FILES_APPLY_DOCS.ARCHIVESTAG, values); + } + + /** + * Fetch records that have adddate BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfAdddate(String lowerInclusive, String upperInclusive) { + return fetchRange(FilesApplyDocs.FILES_APPLY_DOCS.ADDDATE, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have adddate IN (values) + */ + public List fetchByAdddate(String... values) { + return fetch(FilesApplyDocs.FILES_APPLY_DOCS.ADDDATE, values); + } + + /** + * Fetch records that have editdate BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfEditdate(String lowerInclusive, String upperInclusive) { + return fetchRange(FilesApplyDocs.FILES_APPLY_DOCS.EDITDATE, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have editdate IN (values) + */ + public List fetchByEditdate(String... values) { + return fetch(FilesApplyDocs.FILES_APPLY_DOCS.EDITDATE, values); + } + + /** + * Fetch records that have time_stamp BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfTimeStamp(String lowerInclusive, String upperInclusive) { + return fetchRange(FilesApplyDocs.FILES_APPLY_DOCS.TIME_STAMP, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have time_stamp IN (values) + */ + public List fetchByTimeStamp(String... values) { + return fetch(FilesApplyDocs.FILES_APPLY_DOCS.TIME_STAMP, values); + } + + /** + * Fetch records that have isdel BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfIsdel(Integer lowerInclusive, Integer upperInclusive) { + return fetchRange(FilesApplyDocs.FILES_APPLY_DOCS.ISDEL, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have isdel IN (values) + */ + public List fetchByIsdel(Integer... values) { + return fetch(FilesApplyDocs.FILES_APPLY_DOCS.ISDEL, values); + } + + /** + * Fetch records that have downurl BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfDownurl(String lowerInclusive, String upperInclusive) { + return fetchRange(FilesApplyDocs.FILES_APPLY_DOCS.DOWNURL, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have downurl IN (values) + */ + public List fetchByDownurl(String... values) { + return fetch(FilesApplyDocs.FILES_APPLY_DOCS.DOWNURL, values); + } + + /** + * Fetch records that have filesize BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfFilesize(Integer lowerInclusive, Integer upperInclusive) { + return fetchRange(FilesApplyDocs.FILES_APPLY_DOCS.FILESIZE, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have filesize IN (values) + */ + public List fetchByFilesize(Integer... values) { + return fetch(FilesApplyDocs.FILES_APPLY_DOCS.FILESIZE, values); + } + + /** + * Fetch records that have apply_view_type_print BETWEEN + * lowerInclusive AND upperInclusive + */ + public List fetchRangeOfApplyViewTypePrint(Integer lowerInclusive, Integer upperInclusive) { + return fetchRange(FilesApplyDocs.FILES_APPLY_DOCS.APPLY_VIEW_TYPE_PRINT, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have apply_view_type_print IN (values) + */ + public List fetchByApplyViewTypePrint(Integer... values) { + return fetch(FilesApplyDocs.FILES_APPLY_DOCS.APPLY_VIEW_TYPE_PRINT, values); + } + + /** + * Fetch records that have apply_view_type_online BETWEEN + * lowerInclusive AND upperInclusive + */ + public List fetchRangeOfApplyViewTypeOnline(Integer lowerInclusive, Integer upperInclusive) { + return fetchRange(FilesApplyDocs.FILES_APPLY_DOCS.APPLY_VIEW_TYPE_ONLINE, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have apply_view_type_online IN (values) + */ + public List fetchByApplyViewTypeOnline(Integer... values) { + return fetch(FilesApplyDocs.FILES_APPLY_DOCS.APPLY_VIEW_TYPE_ONLINE, values); + } +} diff --git a/src/main/java/jj/tech/paolu/repository/jooq/tables/daos/FilesApplyDownloadRecordDao.java b/src/main/java/jj/tech/paolu/repository/jooq/tables/daos/FilesApplyDownloadRecordDao.java new file mode 100644 index 0000000..947f9e4 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/jooq/tables/daos/FilesApplyDownloadRecordDao.java @@ -0,0 +1,225 @@ +/* + * This file is generated by jOOQ. + */ +package jj.tech.paolu.repository.jooq.tables.daos; + + +import java.time.LocalDateTime; +import java.util.List; +import java.util.Optional; + +import jj.tech.paolu.repository.jooq.tables.FilesApplyDownloadRecord; +import jj.tech.paolu.repository.jooq.tables.records.FilesApplyDownloadRecordRecord; + +import org.jooq.Configuration; +import org.jooq.impl.DAOImpl; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Repository; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +@Repository +public class FilesApplyDownloadRecordDao extends DAOImpl { + + /** + * Create a new FilesApplyDownloadRecordDao without any configuration + */ + public FilesApplyDownloadRecordDao() { + super(FilesApplyDownloadRecord.FILES_APPLY_DOWNLOAD_RECORD, jj.tech.paolu.repository.jooq.tables.pojos.FilesApplyDownloadRecord.class); + } + + /** + * Create a new FilesApplyDownloadRecordDao with an attached configuration + */ + @Autowired + public FilesApplyDownloadRecordDao(Configuration configuration) { + super(FilesApplyDownloadRecord.FILES_APPLY_DOWNLOAD_RECORD, jj.tech.paolu.repository.jooq.tables.pojos.FilesApplyDownloadRecord.class, configuration); + } + + @Override + public String getId(jj.tech.paolu.repository.jooq.tables.pojos.FilesApplyDownloadRecord object) { + return object.getId(); + } + + /** + * Fetch records that have id BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfId(String lowerInclusive, String upperInclusive) { + return fetchRange(FilesApplyDownloadRecord.FILES_APPLY_DOWNLOAD_RECORD.ID, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have id IN (values) + */ + public List fetchById(String... values) { + return fetch(FilesApplyDownloadRecord.FILES_APPLY_DOWNLOAD_RECORD.ID, values); + } + + /** + * Fetch a unique record that has id = value + */ + public jj.tech.paolu.repository.jooq.tables.pojos.FilesApplyDownloadRecord fetchOneById(String value) { + return fetchOne(FilesApplyDownloadRecord.FILES_APPLY_DOWNLOAD_RECORD.ID, value); + } + + /** + * Fetch a unique record that has id = value + */ + public Optional fetchOptionalById(String value) { + return fetchOptional(FilesApplyDownloadRecord.FILES_APPLY_DOWNLOAD_RECORD.ID, value); + } + + /** + * Fetch records that have files_apply_id BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfFilesApplyId(String lowerInclusive, String upperInclusive) { + return fetchRange(FilesApplyDownloadRecord.FILES_APPLY_DOWNLOAD_RECORD.FILES_APPLY_ID, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have files_apply_id IN (values) + */ + public List fetchByFilesApplyId(String... values) { + return fetch(FilesApplyDownloadRecord.FILES_APPLY_DOWNLOAD_RECORD.FILES_APPLY_ID, values); + } + + /** + * Fetch records that have is_dir_file BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfIsDirFile(Integer lowerInclusive, Integer upperInclusive) { + return fetchRange(FilesApplyDownloadRecord.FILES_APPLY_DOWNLOAD_RECORD.IS_DIR_FILE, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have is_dir_file IN (values) + */ + public List fetchByIsDirFile(Integer... values) { + return fetch(FilesApplyDownloadRecord.FILES_APPLY_DOWNLOAD_RECORD.IS_DIR_FILE, values); + } + + /** + * Fetch records that have syn_file_id BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfSynFileId(String lowerInclusive, String upperInclusive) { + return fetchRange(FilesApplyDownloadRecord.FILES_APPLY_DOWNLOAD_RECORD.SYN_FILE_ID, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have syn_file_id IN (values) + */ + public List fetchBySynFileId(String... values) { + return fetch(FilesApplyDownloadRecord.FILES_APPLY_DOWNLOAD_RECORD.SYN_FILE_ID, values); + } + + /** + * Fetch records that have syn_file_p_id BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfSynFilePId(String lowerInclusive, String upperInclusive) { + return fetchRange(FilesApplyDownloadRecord.FILES_APPLY_DOWNLOAD_RECORD.SYN_FILE_P_ID, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have syn_file_p_id IN (values) + */ + public List fetchBySynFilePId(String... values) { + return fetch(FilesApplyDownloadRecord.FILES_APPLY_DOWNLOAD_RECORD.SYN_FILE_P_ID, values); + } + + /** + * Fetch records that have syn_file_name BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfSynFileName(String lowerInclusive, String upperInclusive) { + return fetchRange(FilesApplyDownloadRecord.FILES_APPLY_DOWNLOAD_RECORD.SYN_FILE_NAME, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have syn_file_name IN (values) + */ + public List fetchBySynFileName(String... values) { + return fetch(FilesApplyDownloadRecord.FILES_APPLY_DOWNLOAD_RECORD.SYN_FILE_NAME, values); + } + + /** + * Fetch records that have user_id BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfUserId(String lowerInclusive, String upperInclusive) { + return fetchRange(FilesApplyDownloadRecord.FILES_APPLY_DOWNLOAD_RECORD.USER_ID, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have user_id IN (values) + */ + public List fetchByUserId(String... values) { + return fetch(FilesApplyDownloadRecord.FILES_APPLY_DOWNLOAD_RECORD.USER_ID, values); + } + + /** + * Fetch records that have user_name BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfUserName(String lowerInclusive, String upperInclusive) { + return fetchRange(FilesApplyDownloadRecord.FILES_APPLY_DOWNLOAD_RECORD.USER_NAME, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have user_name IN (values) + */ + public List fetchByUserName(String... values) { + return fetch(FilesApplyDownloadRecord.FILES_APPLY_DOWNLOAD_RECORD.USER_NAME, values); + } + + /** + * Fetch records that have org_id BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfOrgId(String lowerInclusive, String upperInclusive) { + return fetchRange(FilesApplyDownloadRecord.FILES_APPLY_DOWNLOAD_RECORD.ORG_ID, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have org_id IN (values) + */ + public List fetchByOrgId(String... values) { + return fetch(FilesApplyDownloadRecord.FILES_APPLY_DOWNLOAD_RECORD.ORG_ID, values); + } + + /** + * Fetch records that have org_name BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfOrgName(String lowerInclusive, String upperInclusive) { + return fetchRange(FilesApplyDownloadRecord.FILES_APPLY_DOWNLOAD_RECORD.ORG_NAME, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have org_name IN (values) + */ + public List fetchByOrgName(String... values) { + return fetch(FilesApplyDownloadRecord.FILES_APPLY_DOWNLOAD_RECORD.ORG_NAME, values); + } + + /** + * Fetch records that have download_time BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfDownloadTime(LocalDateTime lowerInclusive, LocalDateTime upperInclusive) { + return fetchRange(FilesApplyDownloadRecord.FILES_APPLY_DOWNLOAD_RECORD.DOWNLOAD_TIME, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have download_time IN (values) + */ + public List fetchByDownloadTime(LocalDateTime... values) { + return fetch(FilesApplyDownloadRecord.FILES_APPLY_DOWNLOAD_RECORD.DOWNLOAD_TIME, values); + } +} diff --git a/src/main/java/jj/tech/paolu/repository/jooq/tables/daos/ProjectDao.java b/src/main/java/jj/tech/paolu/repository/jooq/tables/daos/ProjectDao.java new file mode 100644 index 0000000..0754841 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/jooq/tables/daos/ProjectDao.java @@ -0,0 +1,119 @@ +/* + * This file is generated by jOOQ. + */ +package jj.tech.paolu.repository.jooq.tables.daos; + + +import java.util.List; +import java.util.Optional; + +import jj.tech.paolu.repository.jooq.tables.Project; +import jj.tech.paolu.repository.jooq.tables.records.ProjectRecord; + +import org.jooq.Configuration; +import org.jooq.impl.DAOImpl; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Repository; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +@Repository +public class ProjectDao extends DAOImpl { + + /** + * Create a new ProjectDao without any configuration + */ + public ProjectDao() { + super(Project.PROJECT, jj.tech.paolu.repository.jooq.tables.pojos.Project.class); + } + + /** + * Create a new ProjectDao with an attached configuration + */ + @Autowired + public ProjectDao(Configuration configuration) { + super(Project.PROJECT, jj.tech.paolu.repository.jooq.tables.pojos.Project.class, configuration); + } + + @Override + public String getId(jj.tech.paolu.repository.jooq.tables.pojos.Project object) { + return object.getId(); + } + + /** + * Fetch records that have id BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfId(String lowerInclusive, String upperInclusive) { + return fetchRange(Project.PROJECT.ID, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have id IN (values) + */ + public List fetchById(String... values) { + return fetch(Project.PROJECT.ID, values); + } + + /** + * Fetch a unique record that has id = value + */ + public jj.tech.paolu.repository.jooq.tables.pojos.Project fetchOneById(String value) { + return fetchOne(Project.PROJECT.ID, value); + } + + /** + * Fetch a unique record that has id = value + */ + public Optional fetchOptionalById(String value) { + return fetchOptional(Project.PROJECT.ID, value); + } + + /** + * Fetch records that have project_name BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfProjectName(String lowerInclusive, String upperInclusive) { + return fetchRange(Project.PROJECT.PROJECT_NAME, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have project_name IN (values) + */ + public List fetchByProjectName(String... values) { + return fetch(Project.PROJECT.PROJECT_NAME, values); + } + + /** + * Fetch records that have org_id BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfOrgId(String lowerInclusive, String upperInclusive) { + return fetchRange(Project.PROJECT.ORG_ID, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have org_id IN (values) + */ + public List fetchByOrgId(String... values) { + return fetch(Project.PROJECT.ORG_ID, values); + } + + /** + * Fetch records that have org_name BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfOrgName(String lowerInclusive, String upperInclusive) { + return fetchRange(Project.PROJECT.ORG_NAME, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have org_name IN (values) + */ + public List fetchByOrgName(String... values) { + return fetch(Project.PROJECT.ORG_NAME, values); + } +} diff --git a/src/main/java/jj/tech/paolu/repository/jooq/tables/daos/ReadLogDao.java b/src/main/java/jj/tech/paolu/repository/jooq/tables/daos/ReadLogDao.java new file mode 100644 index 0000000..c7bea32 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/jooq/tables/daos/ReadLogDao.java @@ -0,0 +1,255 @@ +/* + * This file is generated by jOOQ. + */ +package jj.tech.paolu.repository.jooq.tables.daos; + + +import java.time.LocalDateTime; +import java.util.List; +import java.util.Optional; + +import jj.tech.paolu.repository.jooq.tables.ReadLog; +import jj.tech.paolu.repository.jooq.tables.records.ReadLogRecord; + +import org.jooq.Configuration; +import org.jooq.impl.DAOImpl; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Repository; + + +/** + * 阅读情况 + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +@Repository +public class ReadLogDao extends DAOImpl { + + /** + * Create a new ReadLogDao without any configuration + */ + public ReadLogDao() { + super(ReadLog.READ_LOG, jj.tech.paolu.repository.jooq.tables.pojos.ReadLog.class); + } + + /** + * Create a new ReadLogDao with an attached configuration + */ + @Autowired + public ReadLogDao(Configuration configuration) { + super(ReadLog.READ_LOG, jj.tech.paolu.repository.jooq.tables.pojos.ReadLog.class, configuration); + } + + @Override + public String getId(jj.tech.paolu.repository.jooq.tables.pojos.ReadLog object) { + return object.getId(); + } + + /** + * Fetch records that have id BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfId(String lowerInclusive, String upperInclusive) { + return fetchRange(ReadLog.READ_LOG.ID, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have id IN (values) + */ + public List fetchById(String... values) { + return fetch(ReadLog.READ_LOG.ID, values); + } + + /** + * Fetch a unique record that has id = value + */ + public jj.tech.paolu.repository.jooq.tables.pojos.ReadLog fetchOneById(String value) { + return fetchOne(ReadLog.READ_LOG.ID, value); + } + + /** + * Fetch a unique record that has id = value + */ + public Optional fetchOptionalById(String value) { + return fetchOptional(ReadLog.READ_LOG.ID, value); + } + + /** + * Fetch records that have weid BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfWeid(String lowerInclusive, String upperInclusive) { + return fetchRange(ReadLog.READ_LOG.WEID, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have weid IN (values) + */ + public List fetchByWeid(String... values) { + return fetch(ReadLog.READ_LOG.WEID, values); + } + + /** + * Fetch records that have content_id BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfContentId(String lowerInclusive, String upperInclusive) { + return fetchRange(ReadLog.READ_LOG.CONTENT_ID, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have content_id IN (values) + */ + public List fetchByContentId(String... values) { + return fetch(ReadLog.READ_LOG.CONTENT_ID, values); + } + + /** + * Fetch records that have starttime BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfStarttime(LocalDateTime lowerInclusive, LocalDateTime upperInclusive) { + return fetchRange(ReadLog.READ_LOG.STARTTIME, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have starttime IN (values) + */ + public List fetchByStarttime(LocalDateTime... values) { + return fetch(ReadLog.READ_LOG.STARTTIME, values); + } + + /** + * Fetch records that have endtime BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfEndtime(LocalDateTime lowerInclusive, LocalDateTime upperInclusive) { + return fetchRange(ReadLog.READ_LOG.ENDTIME, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have endtime IN (values) + */ + public List fetchByEndtime(LocalDateTime... values) { + return fetch(ReadLog.READ_LOG.ENDTIME, values); + } + + /** + * Fetch records that have ip BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfIp(String lowerInclusive, String upperInclusive) { + return fetchRange(ReadLog.READ_LOG.IP, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have ip IN (values) + */ + public List fetchByIp(String... values) { + return fetch(ReadLog.READ_LOG.IP, values); + } + + /** + * Fetch records that have location BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfLocation(String lowerInclusive, String upperInclusive) { + return fetchRange(ReadLog.READ_LOG.LOCATION, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have location IN (values) + */ + public List fetchByLocation(String... values) { + return fetch(ReadLog.READ_LOG.LOCATION, values); + } + + /** + * Fetch records that have downloadtype BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfDownloadtype(Integer lowerInclusive, Integer upperInclusive) { + return fetchRange(ReadLog.READ_LOG.DOWNLOADTYPE, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have downloadtype IN (values) + */ + public List fetchByDownloadtype(Integer... values) { + return fetch(ReadLog.READ_LOG.DOWNLOADTYPE, values); + } + + /** + * Fetch records that have sign BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfSign(String lowerInclusive, String upperInclusive) { + return fetchRange(ReadLog.READ_LOG.SIGN, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have sign IN (values) + */ + public List fetchBySign(String... values) { + return fetch(ReadLog.READ_LOG.SIGN, values); + } + + /** + * Fetch records that have readid BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfReadid(String lowerInclusive, String upperInclusive) { + return fetchRange(ReadLog.READ_LOG.READID, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have readid IN (values) + */ + public List fetchByReadid(String... values) { + return fetch(ReadLog.READ_LOG.READID, values); + } + + /** + * Fetch records that have sm9hibeid BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfSm9hibeid(String lowerInclusive, String upperInclusive) { + return fetchRange(ReadLog.READ_LOG.SM9HIBEID, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have sm9hibeid IN (values) + */ + public List fetchBySm9hibeid(String... values) { + return fetch(ReadLog.READ_LOG.SM9HIBEID, values); + } + + /** + * Fetch records that have content_type BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfContentType(Integer lowerInclusive, Integer upperInclusive) { + return fetchRange(ReadLog.READ_LOG.CONTENT_TYPE, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have content_type IN (values) + */ + public List fetchByContentType(Integer... values) { + return fetch(ReadLog.READ_LOG.CONTENT_TYPE, values); + } + + /** + * Fetch records that have ischeck BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfIscheck(Integer lowerInclusive, Integer upperInclusive) { + return fetchRange(ReadLog.READ_LOG.ISCHECK, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have ischeck IN (values) + */ + public List fetchByIscheck(Integer... values) { + return fetch(ReadLog.READ_LOG.ISCHECK, values); + } +} diff --git a/src/main/java/jj/tech/paolu/repository/jooq/tables/daos/SharedRuleConfigDao.java b/src/main/java/jj/tech/paolu/repository/jooq/tables/daos/SharedRuleConfigDao.java new file mode 100644 index 0000000..c79ec1d --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/jooq/tables/daos/SharedRuleConfigDao.java @@ -0,0 +1,149 @@ +/* + * This file is generated by jOOQ. + */ +package jj.tech.paolu.repository.jooq.tables.daos; + + +import java.util.List; +import java.util.Optional; + +import jj.tech.paolu.repository.jooq.tables.SharedRuleConfig; +import jj.tech.paolu.repository.jooq.tables.records.SharedRuleConfigRecord; + +import org.jooq.Configuration; +import org.jooq.impl.DAOImpl; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Repository; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +@Repository +public class SharedRuleConfigDao extends DAOImpl { + + /** + * Create a new SharedRuleConfigDao without any configuration + */ + public SharedRuleConfigDao() { + super(SharedRuleConfig.SHARED_RULE_CONFIG, jj.tech.paolu.repository.jooq.tables.pojos.SharedRuleConfig.class); + } + + /** + * Create a new SharedRuleConfigDao with an attached configuration + */ + @Autowired + public SharedRuleConfigDao(Configuration configuration) { + super(SharedRuleConfig.SHARED_RULE_CONFIG, jj.tech.paolu.repository.jooq.tables.pojos.SharedRuleConfig.class, configuration); + } + + @Override + public String getId(jj.tech.paolu.repository.jooq.tables.pojos.SharedRuleConfig object) { + return object.getId(); + } + + /** + * Fetch records that have id BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfId(String lowerInclusive, String upperInclusive) { + return fetchRange(SharedRuleConfig.SHARED_RULE_CONFIG.ID, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have id IN (values) + */ + public List fetchById(String... values) { + return fetch(SharedRuleConfig.SHARED_RULE_CONFIG.ID, values); + } + + /** + * Fetch a unique record that has id = value + */ + public jj.tech.paolu.repository.jooq.tables.pojos.SharedRuleConfig fetchOneById(String value) { + return fetchOne(SharedRuleConfig.SHARED_RULE_CONFIG.ID, value); + } + + /** + * Fetch a unique record that has id = value + */ + public Optional fetchOptionalById(String value) { + return fetchOptional(SharedRuleConfig.SHARED_RULE_CONFIG.ID, value); + } + + /** + * Fetch records that have name BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfName(String lowerInclusive, String upperInclusive) { + return fetchRange(SharedRuleConfig.SHARED_RULE_CONFIG.NAME, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have name IN (values) + */ + public List fetchByName(String... values) { + return fetch(SharedRuleConfig.SHARED_RULE_CONFIG.NAME, values); + } + + /** + * Fetch records that have describe BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfDescribe(String lowerInclusive, String upperInclusive) { + return fetchRange(SharedRuleConfig.SHARED_RULE_CONFIG.DESCRIBE, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have describe IN (values) + */ + public List fetchByDescribe(String... values) { + return fetch(SharedRuleConfig.SHARED_RULE_CONFIG.DESCRIBE, values); + } + + /** + * Fetch records that have status BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfStatus(Integer lowerInclusive, Integer upperInclusive) { + return fetchRange(SharedRuleConfig.SHARED_RULE_CONFIG.STATUS, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have status IN (values) + */ + public List fetchByStatus(Integer... values) { + return fetch(SharedRuleConfig.SHARED_RULE_CONFIG.STATUS, values); + } + + /** + * Fetch records that have sort BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfSort(Integer lowerInclusive, Integer upperInclusive) { + return fetchRange(SharedRuleConfig.SHARED_RULE_CONFIG.SORT, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have sort IN (values) + */ + public List fetchBySort(Integer... values) { + return fetch(SharedRuleConfig.SHARED_RULE_CONFIG.SORT, values); + } + + /** + * Fetch records that have project_name BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfProjectName(String lowerInclusive, String upperInclusive) { + return fetchRange(SharedRuleConfig.SHARED_RULE_CONFIG.PROJECT_NAME, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have project_name IN (values) + */ + public List fetchByProjectName(String... values) { + return fetch(SharedRuleConfig.SHARED_RULE_CONFIG.PROJECT_NAME, values); + } +} diff --git a/src/main/java/jj/tech/paolu/repository/jooq/tables/daos/SharedSynAllDao.java b/src/main/java/jj/tech/paolu/repository/jooq/tables/daos/SharedSynAllDao.java new file mode 100644 index 0000000..f533342 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/jooq/tables/daos/SharedSynAllDao.java @@ -0,0 +1,208 @@ +/* + * This file is generated by jOOQ. + */ +package jj.tech.paolu.repository.jooq.tables.daos; + + +import java.util.List; +import java.util.Optional; + +import jj.tech.paolu.repository.jooq.tables.SharedSynAll; +import jj.tech.paolu.repository.jooq.tables.records.SharedSynAllRecord; + +import org.jooq.Configuration; +import org.jooq.impl.DAOImpl; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Repository; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +@Repository +public class SharedSynAllDao extends DAOImpl { + + /** + * Create a new SharedSynAllDao without any configuration + */ + public SharedSynAllDao() { + super(SharedSynAll.SHARED_SYN_ALL, jj.tech.paolu.repository.jooq.tables.pojos.SharedSynAll.class); + } + + /** + * Create a new SharedSynAllDao with an attached configuration + */ + @Autowired + public SharedSynAllDao(Configuration configuration) { + super(SharedSynAll.SHARED_SYN_ALL, jj.tech.paolu.repository.jooq.tables.pojos.SharedSynAll.class, configuration); + } + + @Override + public String getId(jj.tech.paolu.repository.jooq.tables.pojos.SharedSynAll object) { + return object.getId(); + } + + /** + * Fetch records that have id BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfId(String lowerInclusive, String upperInclusive) { + return fetchRange(SharedSynAll.SHARED_SYN_ALL.ID, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have id IN (values) + */ + public List fetchById(String... values) { + return fetch(SharedSynAll.SHARED_SYN_ALL.ID, values); + } + + /** + * Fetch a unique record that has id = value + */ + public jj.tech.paolu.repository.jooq.tables.pojos.SharedSynAll fetchOneById(String value) { + return fetchOne(SharedSynAll.SHARED_SYN_ALL.ID, value); + } + + /** + * Fetch a unique record that has id = value + */ + public Optional fetchOptionalById(String value) { + return fetchOptional(SharedSynAll.SHARED_SYN_ALL.ID, value); + } + + /** + * Fetch records that have syn_id BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfSynId(String lowerInclusive, String upperInclusive) { + return fetchRange(SharedSynAll.SHARED_SYN_ALL.SYN_ID, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have syn_id IN (values) + */ + public List fetchBySynId(String... values) { + return fetch(SharedSynAll.SHARED_SYN_ALL.SYN_ID, values); + } + + /** + * Fetch a unique record that has syn_id = value + */ + public jj.tech.paolu.repository.jooq.tables.pojos.SharedSynAll fetchOneBySynId(String value) { + return fetchOne(SharedSynAll.SHARED_SYN_ALL.SYN_ID, value); + } + + /** + * Fetch a unique record that has syn_id = value + */ + public Optional fetchOptionalBySynId(String value) { + return fetchOptional(SharedSynAll.SHARED_SYN_ALL.SYN_ID, value); + } + + /** + * Fetch records that have syn_type BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfSynType(Integer lowerInclusive, Integer upperInclusive) { + return fetchRange(SharedSynAll.SHARED_SYN_ALL.SYN_TYPE, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have syn_type IN (values) + */ + public List fetchBySynType(Integer... values) { + return fetch(SharedSynAll.SHARED_SYN_ALL.SYN_TYPE, values); + } + + /** + * Fetch records that have is_config_rule BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfIsConfigRule(Integer lowerInclusive, Integer upperInclusive) { + return fetchRange(SharedSynAll.SHARED_SYN_ALL.IS_CONFIG_RULE, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have is_config_rule IN (values) + */ + public List fetchByIsConfigRule(Integer... values) { + return fetch(SharedSynAll.SHARED_SYN_ALL.IS_CONFIG_RULE, values); + } + + /** + * Fetch records that have shared_status BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfSharedStatus(Integer lowerInclusive, Integer upperInclusive) { + return fetchRange(SharedSynAll.SHARED_SYN_ALL.SHARED_STATUS, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have shared_status IN (values) + */ + public List fetchBySharedStatus(Integer... values) { + return fetch(SharedSynAll.SHARED_SYN_ALL.SHARED_STATUS, values); + } + + /** + * Fetch records that have syn_status BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfSynStatus(Integer lowerInclusive, Integer upperInclusive) { + return fetchRange(SharedSynAll.SHARED_SYN_ALL.SYN_STATUS, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have syn_status IN (values) + */ + public List fetchBySynStatus(Integer... values) { + return fetch(SharedSynAll.SHARED_SYN_ALL.SYN_STATUS, values); + } + + /** + * Fetch records that have block_number BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfBlockNumber(String lowerInclusive, String upperInclusive) { + return fetchRange(SharedSynAll.SHARED_SYN_ALL.BLOCK_NUMBER, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have block_number IN (values) + */ + public List fetchByBlockNumber(String... values) { + return fetch(SharedSynAll.SHARED_SYN_ALL.BLOCK_NUMBER, values); + } + + /** + * Fetch records that have block_hash BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfBlockHash(String lowerInclusive, String upperInclusive) { + return fetchRange(SharedSynAll.SHARED_SYN_ALL.BLOCK_HASH, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have block_hash IN (values) + */ + public List fetchByBlockHash(String... values) { + return fetch(SharedSynAll.SHARED_SYN_ALL.BLOCK_HASH, values); + } + + /** + * Fetch records that have block_time BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfBlockTime(String lowerInclusive, String upperInclusive) { + return fetchRange(SharedSynAll.SHARED_SYN_ALL.BLOCK_TIME, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have block_time IN (values) + */ + public List fetchByBlockTime(String... values) { + return fetch(SharedSynAll.SHARED_SYN_ALL.BLOCK_TIME, values); + } +} diff --git a/src/main/java/jj/tech/paolu/repository/jooq/tables/daos/SynDirectoryDao.java b/src/main/java/jj/tech/paolu/repository/jooq/tables/daos/SynDirectoryDao.java new file mode 100644 index 0000000..7b0f109 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/jooq/tables/daos/SynDirectoryDao.java @@ -0,0 +1,179 @@ +/* + * This file is generated by jOOQ. + */ +package jj.tech.paolu.repository.jooq.tables.daos; + + +import java.util.List; +import java.util.Optional; + +import jj.tech.paolu.repository.jooq.tables.SynDirectory; +import jj.tech.paolu.repository.jooq.tables.records.SynDirectoryRecord; + +import org.jooq.Configuration; +import org.jooq.impl.DAOImpl; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Repository; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +@Repository +public class SynDirectoryDao extends DAOImpl { + + /** + * Create a new SynDirectoryDao without any configuration + */ + public SynDirectoryDao() { + super(SynDirectory.SYN_DIRECTORY, jj.tech.paolu.repository.jooq.tables.pojos.SynDirectory.class); + } + + /** + * Create a new SynDirectoryDao with an attached configuration + */ + @Autowired + public SynDirectoryDao(Configuration configuration) { + super(SynDirectory.SYN_DIRECTORY, jj.tech.paolu.repository.jooq.tables.pojos.SynDirectory.class, configuration); + } + + @Override + public String getId(jj.tech.paolu.repository.jooq.tables.pojos.SynDirectory object) { + return object.getId(); + } + + /** + * Fetch records that have id BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfId(String lowerInclusive, String upperInclusive) { + return fetchRange(SynDirectory.SYN_DIRECTORY.ID, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have id IN (values) + */ + public List fetchById(String... values) { + return fetch(SynDirectory.SYN_DIRECTORY.ID, values); + } + + /** + * Fetch a unique record that has id = value + */ + public jj.tech.paolu.repository.jooq.tables.pojos.SynDirectory fetchOneById(String value) { + return fetchOne(SynDirectory.SYN_DIRECTORY.ID, value); + } + + /** + * Fetch a unique record that has id = value + */ + public Optional fetchOptionalById(String value) { + return fetchOptional(SynDirectory.SYN_DIRECTORY.ID, value); + } + + /** + * Fetch records that have p_id BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfPId(String lowerInclusive, String upperInclusive) { + return fetchRange(SynDirectory.SYN_DIRECTORY.P_ID, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have p_id IN (values) + */ + public List fetchByPId(String... values) { + return fetch(SynDirectory.SYN_DIRECTORY.P_ID, values); + } + + /** + * Fetch records that have wbs_id BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfWbsId(String lowerInclusive, String upperInclusive) { + return fetchRange(SynDirectory.SYN_DIRECTORY.WBS_ID, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have wbs_id IN (values) + */ + public List fetchByWbsId(String... values) { + return fetch(SynDirectory.SYN_DIRECTORY.WBS_ID, values); + } + + /** + * Fetch records that have time_stamp BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfTimeStamp(String lowerInclusive, String upperInclusive) { + return fetchRange(SynDirectory.SYN_DIRECTORY.TIME_STAMP, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have time_stamp IN (values) + */ + public List fetchByTimeStamp(String... values) { + return fetch(SynDirectory.SYN_DIRECTORY.TIME_STAMP, values); + } + + /** + * Fetch records that have sortorder BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfSortorder(Integer lowerInclusive, Integer upperInclusive) { + return fetchRange(SynDirectory.SYN_DIRECTORY.SORTORDER, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have sortorder IN (values) + */ + public List fetchBySortorder(Integer... values) { + return fetch(SynDirectory.SYN_DIRECTORY.SORTORDER, values); + } + + /** + * Fetch records that have tname BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfTname(String lowerInclusive, String upperInclusive) { + return fetchRange(SynDirectory.SYN_DIRECTORY.TNAME, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have tname IN (values) + */ + public List fetchByTname(String... values) { + return fetch(SynDirectory.SYN_DIRECTORY.TNAME, values); + } + + /** + * Fetch records that have subjoin BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfSubjoin(Integer lowerInclusive, Integer upperInclusive) { + return fetchRange(SynDirectory.SYN_DIRECTORY.SUBJOIN, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have subjoin IN (values) + */ + public List fetchBySubjoin(Integer... values) { + return fetch(SynDirectory.SYN_DIRECTORY.SUBJOIN, values); + } + + /** + * Fetch records that have isdel BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfIsdel(Integer lowerInclusive, Integer upperInclusive) { + return fetchRange(SynDirectory.SYN_DIRECTORY.ISDEL, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have isdel IN (values) + */ + public List fetchByIsdel(Integer... values) { + return fetch(SynDirectory.SYN_DIRECTORY.ISDEL, values); + } +} diff --git a/src/main/java/jj/tech/paolu/repository/jooq/tables/daos/SynDirectoryFileDao.java b/src/main/java/jj/tech/paolu/repository/jooq/tables/daos/SynDirectoryFileDao.java new file mode 100644 index 0000000..e531712 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/jooq/tables/daos/SynDirectoryFileDao.java @@ -0,0 +1,374 @@ +/* + * This file is generated by jOOQ. + */ +package jj.tech.paolu.repository.jooq.tables.daos; + + +import java.util.List; +import java.util.Optional; + +import jj.tech.paolu.repository.jooq.tables.SynDirectoryFile; +import jj.tech.paolu.repository.jooq.tables.records.SynDirectoryFileRecord; + +import org.jooq.Configuration; +import org.jooq.impl.DAOImpl; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Repository; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +@Repository +public class SynDirectoryFileDao extends DAOImpl { + + /** + * Create a new SynDirectoryFileDao without any configuration + */ + public SynDirectoryFileDao() { + super(SynDirectoryFile.SYN_DIRECTORY_FILE, jj.tech.paolu.repository.jooq.tables.pojos.SynDirectoryFile.class); + } + + /** + * Create a new SynDirectoryFileDao with an attached configuration + */ + @Autowired + public SynDirectoryFileDao(Configuration configuration) { + super(SynDirectoryFile.SYN_DIRECTORY_FILE, jj.tech.paolu.repository.jooq.tables.pojos.SynDirectoryFile.class, configuration); + } + + @Override + public String getId(jj.tech.paolu.repository.jooq.tables.pojos.SynDirectoryFile object) { + return object.getId(); + } + + /** + * Fetch records that have id BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfId(String lowerInclusive, String upperInclusive) { + return fetchRange(SynDirectoryFile.SYN_DIRECTORY_FILE.ID, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have id IN (values) + */ + public List fetchById(String... values) { + return fetch(SynDirectoryFile.SYN_DIRECTORY_FILE.ID, values); + } + + /** + * Fetch a unique record that has id = value + */ + public jj.tech.paolu.repository.jooq.tables.pojos.SynDirectoryFile fetchOneById(String value) { + return fetchOne(SynDirectoryFile.SYN_DIRECTORY_FILE.ID, value); + } + + /** + * Fetch a unique record that has id = value + */ + public Optional fetchOptionalById(String value) { + return fetchOptional(SynDirectoryFile.SYN_DIRECTORY_FILE.ID, value); + } + + /** + * Fetch records that have p_id BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfPId(String lowerInclusive, String upperInclusive) { + return fetchRange(SynDirectoryFile.SYN_DIRECTORY_FILE.P_ID, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have p_id IN (values) + */ + public List fetchByPId(String... values) { + return fetch(SynDirectoryFile.SYN_DIRECTORY_FILE.P_ID, values); + } + + /** + * Fetch records that have filesuper BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfFilesuper(String lowerInclusive, String upperInclusive) { + return fetchRange(SynDirectoryFile.SYN_DIRECTORY_FILE.FILESUPER, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have filesuper IN (values) + */ + public List fetchByFilesuper(String... values) { + return fetch(SynDirectoryFile.SYN_DIRECTORY_FILE.FILESUPER, values); + } + + /** + * Fetch records that have filecount BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfFilecount(Integer lowerInclusive, Integer upperInclusive) { + return fetchRange(SynDirectoryFile.SYN_DIRECTORY_FILE.FILECOUNT, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have filecount IN (values) + */ + public List fetchByFilecount(Integer... values) { + return fetch(SynDirectoryFile.SYN_DIRECTORY_FILE.FILECOUNT, values); + } + + /** + * Fetch records that have dutyperson BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfDutyperson(String lowerInclusive, String upperInclusive) { + return fetchRange(SynDirectoryFile.SYN_DIRECTORY_FILE.DUTYPERSON, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have dutyperson IN (values) + */ + public List fetchByDutyperson(String... values) { + return fetch(SynDirectoryFile.SYN_DIRECTORY_FILE.DUTYPERSON, values); + } + + /** + * Fetch records that have eweavedate BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfEweavedate(String lowerInclusive, String upperInclusive) { + return fetchRange(SynDirectoryFile.SYN_DIRECTORY_FILE.EWEAVEDATE, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have eweavedate IN (values) + */ + public List fetchByEweavedate(String... values) { + return fetch(SynDirectoryFile.SYN_DIRECTORY_FILE.EWEAVEDATE, values); + } + + /** + * Fetch records that have filepage BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfFilepage(Integer lowerInclusive, Integer upperInclusive) { + return fetchRange(SynDirectoryFile.SYN_DIRECTORY_FILE.FILEPAGE, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have filepage IN (values) + */ + public List fetchByFilepage(Integer... values) { + return fetch(SynDirectoryFile.SYN_DIRECTORY_FILE.FILEPAGE, values); + } + + /** + * Fetch records that have sortorder BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfSortorder(String lowerInclusive, String upperInclusive) { + return fetchRange(SynDirectoryFile.SYN_DIRECTORY_FILE.SORTORDER, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have sortorder IN (values) + */ + public List fetchBySortorder(String... values) { + return fetch(SynDirectoryFile.SYN_DIRECTORY_FILE.SORTORDER, values); + } + + /** + * Fetch records that have bpeg BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfBpeg(String lowerInclusive, String upperInclusive) { + return fetchRange(SynDirectoryFile.SYN_DIRECTORY_FILE.BPEG, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have bpeg IN (values) + */ + public List fetchByBpeg(String... values) { + return fetch(SynDirectoryFile.SYN_DIRECTORY_FILE.BPEG, values); + } + + /** + * Fetch records that have epeg BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfEpeg(String lowerInclusive, String upperInclusive) { + return fetchRange(SynDirectoryFile.SYN_DIRECTORY_FILE.EPEG, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have epeg IN (values) + */ + public List fetchByEpeg(String... values) { + return fetch(SynDirectoryFile.SYN_DIRECTORY_FILE.EPEG, values); + } + + /** + * Fetch records that have filenum BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfFilenum(String lowerInclusive, String upperInclusive) { + return fetchRange(SynDirectoryFile.SYN_DIRECTORY_FILE.FILENUM, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have filenum IN (values) + */ + public List fetchByFilenum(String... values) { + return fetch(SynDirectoryFile.SYN_DIRECTORY_FILE.FILENUM, values); + } + + /** + * Fetch records that have remark BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfRemark(String lowerInclusive, String upperInclusive) { + return fetchRange(SynDirectoryFile.SYN_DIRECTORY_FILE.REMARK, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have remark IN (values) + */ + public List fetchByRemark(String... values) { + return fetch(SynDirectoryFile.SYN_DIRECTORY_FILE.REMARK, values); + } + + /** + * Fetch records that have recordnum BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfRecordnum(String lowerInclusive, String upperInclusive) { + return fetchRange(SynDirectoryFile.SYN_DIRECTORY_FILE.RECORDNUM, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have recordnum IN (values) + */ + public List fetchByRecordnum(String... values) { + return fetch(SynDirectoryFile.SYN_DIRECTORY_FILE.RECORDNUM, values); + } + + /** + * Fetch records that have piecenumber BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfPiecenumber(String lowerInclusive, String upperInclusive) { + return fetchRange(SynDirectoryFile.SYN_DIRECTORY_FILE.PIECENUMBER, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have piecenumber IN (values) + */ + public List fetchByPiecenumber(String... values) { + return fetch(SynDirectoryFile.SYN_DIRECTORY_FILE.PIECENUMBER, values); + } + + /** + * Fetch records that have adddate BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfAdddate(String lowerInclusive, String upperInclusive) { + return fetchRange(SynDirectoryFile.SYN_DIRECTORY_FILE.ADDDATE, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have adddate IN (values) + */ + public List fetchByAdddate(String... values) { + return fetch(SynDirectoryFile.SYN_DIRECTORY_FILE.ADDDATE, values); + } + + /** + * Fetch records that have editdate BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfEditdate(String lowerInclusive, String upperInclusive) { + return fetchRange(SynDirectoryFile.SYN_DIRECTORY_FILE.EDITDATE, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have editdate IN (values) + */ + public List fetchByEditdate(String... values) { + return fetch(SynDirectoryFile.SYN_DIRECTORY_FILE.EDITDATE, values); + } + + /** + * Fetch records that have time_stamp BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfTimeStamp(String lowerInclusive, String upperInclusive) { + return fetchRange(SynDirectoryFile.SYN_DIRECTORY_FILE.TIME_STAMP, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have time_stamp IN (values) + */ + public List fetchByTimeStamp(String... values) { + return fetch(SynDirectoryFile.SYN_DIRECTORY_FILE.TIME_STAMP, values); + } + + /** + * Fetch records that have isdel BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfIsdel(Integer lowerInclusive, Integer upperInclusive) { + return fetchRange(SynDirectoryFile.SYN_DIRECTORY_FILE.ISDEL, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have isdel IN (values) + */ + public List fetchByIsdel(Integer... values) { + return fetch(SynDirectoryFile.SYN_DIRECTORY_FILE.ISDEL, values); + } + + /** + * Fetch records that have catalogpdfurl BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfCatalogpdfurl(String lowerInclusive, String upperInclusive) { + return fetchRange(SynDirectoryFile.SYN_DIRECTORY_FILE.CATALOGPDFURL, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have catalogpdfurl IN (values) + */ + public List fetchByCatalogpdfurl(String... values) { + return fetch(SynDirectoryFile.SYN_DIRECTORY_FILE.CATALOGPDFURL, values); + } + + /** + * Fetch records that have signtag BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfSigntag(String lowerInclusive, String upperInclusive) { + return fetchRange(SynDirectoryFile.SYN_DIRECTORY_FILE.SIGNTAG, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have signtag IN (values) + */ + public List fetchBySigntag(String... values) { + return fetch(SynDirectoryFile.SYN_DIRECTORY_FILE.SIGNTAG, values); + } + + /** + * Fetch records that have collecttag BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfCollecttag(String lowerInclusive, String upperInclusive) { + return fetchRange(SynDirectoryFile.SYN_DIRECTORY_FILE.COLLECTTAG, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have collecttag IN (values) + */ + public List fetchByCollecttag(String... values) { + return fetch(SynDirectoryFile.SYN_DIRECTORY_FILE.COLLECTTAG, values); + } +} diff --git a/src/main/java/jj/tech/paolu/repository/jooq/tables/daos/SynFileDao.java b/src/main/java/jj/tech/paolu/repository/jooq/tables/daos/SynFileDao.java new file mode 100644 index 0000000..8fc3a78 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/jooq/tables/daos/SynFileDao.java @@ -0,0 +1,314 @@ +/* + * This file is generated by jOOQ. + */ +package jj.tech.paolu.repository.jooq.tables.daos; + + +import java.util.List; +import java.util.Optional; + +import jj.tech.paolu.repository.jooq.tables.SynFile; +import jj.tech.paolu.repository.jooq.tables.records.SynFileRecord; + +import org.jooq.Configuration; +import org.jooq.impl.DAOImpl; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Repository; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +@Repository +public class SynFileDao extends DAOImpl { + + /** + * Create a new SynFileDao without any configuration + */ + public SynFileDao() { + super(SynFile.SYN_FILE, jj.tech.paolu.repository.jooq.tables.pojos.SynFile.class); + } + + /** + * Create a new SynFileDao with an attached configuration + */ + @Autowired + public SynFileDao(Configuration configuration) { + super(SynFile.SYN_FILE, jj.tech.paolu.repository.jooq.tables.pojos.SynFile.class, configuration); + } + + @Override + public String getId(jj.tech.paolu.repository.jooq.tables.pojos.SynFile object) { + return object.getId(); + } + + /** + * Fetch records that have id BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfId(String lowerInclusive, String upperInclusive) { + return fetchRange(SynFile.SYN_FILE.ID, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have id IN (values) + */ + public List fetchById(String... values) { + return fetch(SynFile.SYN_FILE.ID, values); + } + + /** + * Fetch a unique record that has id = value + */ + public jj.tech.paolu.repository.jooq.tables.pojos.SynFile fetchOneById(String value) { + return fetchOne(SynFile.SYN_FILE.ID, value); + } + + /** + * Fetch a unique record that has id = value + */ + public Optional fetchOptionalById(String value) { + return fetchOptional(SynFile.SYN_FILE.ID, value); + } + + /** + * Fetch records that have p_id BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfPId(String lowerInclusive, String upperInclusive) { + return fetchRange(SynFile.SYN_FILE.P_ID, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have p_id IN (values) + */ + public List fetchByPId(String... values) { + return fetch(SynFile.SYN_FILE.P_ID, values); + } + + /** + * Fetch records that have tablenumber BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfTablenumber(String lowerInclusive, String upperInclusive) { + return fetchRange(SynFile.SYN_FILE.TABLENUMBER, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have tablenumber IN (values) + */ + public List fetchByTablenumber(String... values) { + return fetch(SynFile.SYN_FILE.TABLENUMBER, values); + } + + /** + * Fetch records that have annexname BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfAnnexname(String lowerInclusive, String upperInclusive) { + return fetchRange(SynFile.SYN_FILE.ANNEXNAME, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have annexname IN (values) + */ + public List fetchByAnnexname(String... values) { + return fetch(SynFile.SYN_FILE.ANNEXNAME, values); + } + + /** + * Fetch records that have projectname BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfProjectname(String lowerInclusive, String upperInclusive) { + return fetchRange(SynFile.SYN_FILE.PROJECTNAME, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have projectname IN (values) + */ + public List fetchByProjectname(String... values) { + return fetch(SynFile.SYN_FILE.PROJECTNAME, values); + } + + /** + * Fetch records that have eweavedate BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfEweavedate(String lowerInclusive, String upperInclusive) { + return fetchRange(SynFile.SYN_FILE.EWEAVEDATE, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have eweavedate IN (values) + */ + public List fetchByEweavedate(String... values) { + return fetch(SynFile.SYN_FILE.EWEAVEDATE, values); + } + + /** + * Fetch records that have checkdate BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfCheckdate(String lowerInclusive, String upperInclusive) { + return fetchRange(SynFile.SYN_FILE.CHECKDATE, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have checkdate IN (values) + */ + public List fetchByCheckdate(String... values) { + return fetch(SynFile.SYN_FILE.CHECKDATE, values); + } + + /** + * Fetch records that have annexpage BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfAnnexpage(Integer lowerInclusive, Integer upperInclusive) { + return fetchRange(SynFile.SYN_FILE.ANNEXPAGE, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have annexpage IN (values) + */ + public List fetchByAnnexpage(Integer... values) { + return fetch(SynFile.SYN_FILE.ANNEXPAGE, values); + } + + /** + * Fetch records that have sortorder BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfSortorder(String lowerInclusive, String upperInclusive) { + return fetchRange(SynFile.SYN_FILE.SORTORDER, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have sortorder IN (values) + */ + public List fetchBySortorder(String... values) { + return fetch(SynFile.SYN_FILE.SORTORDER, values); + } + + /** + * Fetch records that have filefrom BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfFilefrom(String lowerInclusive, String upperInclusive) { + return fetchRange(SynFile.SYN_FILE.FILEFROM, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have filefrom IN (values) + */ + public List fetchByFilefrom(String... values) { + return fetch(SynFile.SYN_FILE.FILEFROM, values); + } + + /** + * Fetch records that have archivestag BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfArchivestag(String lowerInclusive, String upperInclusive) { + return fetchRange(SynFile.SYN_FILE.ARCHIVESTAG, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have archivestag IN (values) + */ + public List fetchByArchivestag(String... values) { + return fetch(SynFile.SYN_FILE.ARCHIVESTAG, values); + } + + /** + * Fetch records that have adddate BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfAdddate(String lowerInclusive, String upperInclusive) { + return fetchRange(SynFile.SYN_FILE.ADDDATE, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have adddate IN (values) + */ + public List fetchByAdddate(String... values) { + return fetch(SynFile.SYN_FILE.ADDDATE, values); + } + + /** + * Fetch records that have editdate BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfEditdate(String lowerInclusive, String upperInclusive) { + return fetchRange(SynFile.SYN_FILE.EDITDATE, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have editdate IN (values) + */ + public List fetchByEditdate(String... values) { + return fetch(SynFile.SYN_FILE.EDITDATE, values); + } + + /** + * Fetch records that have time_stamp BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfTimeStamp(String lowerInclusive, String upperInclusive) { + return fetchRange(SynFile.SYN_FILE.TIME_STAMP, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have time_stamp IN (values) + */ + public List fetchByTimeStamp(String... values) { + return fetch(SynFile.SYN_FILE.TIME_STAMP, values); + } + + /** + * Fetch records that have isdel BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfIsdel(Integer lowerInclusive, Integer upperInclusive) { + return fetchRange(SynFile.SYN_FILE.ISDEL, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have isdel IN (values) + */ + public List fetchByIsdel(Integer... values) { + return fetch(SynFile.SYN_FILE.ISDEL, values); + } + + /** + * Fetch records that have downurl BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfDownurl(String lowerInclusive, String upperInclusive) { + return fetchRange(SynFile.SYN_FILE.DOWNURL, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have downurl IN (values) + */ + public List fetchByDownurl(String... values) { + return fetch(SynFile.SYN_FILE.DOWNURL, values); + } + + /** + * Fetch records that have filesize BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfFilesize(Integer lowerInclusive, Integer upperInclusive) { + return fetchRange(SynFile.SYN_FILE.FILESIZE, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have filesize IN (values) + */ + public List fetchByFilesize(Integer... values) { + return fetch(SynFile.SYN_FILE.FILESIZE, values); + } +} diff --git a/src/main/java/jj/tech/paolu/repository/jooq/tables/daos/SysAdminDao.java b/src/main/java/jj/tech/paolu/repository/jooq/tables/daos/SysAdminDao.java new file mode 100644 index 0000000..74111c2 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/jooq/tables/daos/SysAdminDao.java @@ -0,0 +1,283 @@ +/* + * This file is generated by jOOQ. + */ +package jj.tech.paolu.repository.jooq.tables.daos; + + +import java.util.List; +import java.util.Optional; + +import jj.tech.paolu.repository.jooq.tables.SysAdmin; +import jj.tech.paolu.repository.jooq.tables.records.SysAdminRecord; + +import org.jooq.Configuration; +import org.jooq.impl.DAOImpl; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Repository; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +@Repository +public class SysAdminDao extends DAOImpl { + + /** + * Create a new SysAdminDao without any configuration + */ + public SysAdminDao() { + super(SysAdmin.SYS_ADMIN, jj.tech.paolu.repository.jooq.tables.pojos.SysAdmin.class); + } + + /** + * Create a new SysAdminDao with an attached configuration + */ + @Autowired + public SysAdminDao(Configuration configuration) { + super(SysAdmin.SYS_ADMIN, jj.tech.paolu.repository.jooq.tables.pojos.SysAdmin.class, configuration); + } + + @Override + public String getId(jj.tech.paolu.repository.jooq.tables.pojos.SysAdmin object) { + return object.getId(); + } + + /** + * Fetch records that have id BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfId(String lowerInclusive, String upperInclusive) { + return fetchRange(SysAdmin.SYS_ADMIN.ID, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have id IN (values) + */ + public List fetchById(String... values) { + return fetch(SysAdmin.SYS_ADMIN.ID, values); + } + + /** + * Fetch a unique record that has id = value + */ + public jj.tech.paolu.repository.jooq.tables.pojos.SysAdmin fetchOneById(String value) { + return fetchOne(SysAdmin.SYS_ADMIN.ID, value); + } + + /** + * Fetch a unique record that has id = value + */ + public Optional fetchOptionalById(String value) { + return fetchOptional(SysAdmin.SYS_ADMIN.ID, value); + } + + /** + * Fetch records that have org_id BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfOrgId(String lowerInclusive, String upperInclusive) { + return fetchRange(SysAdmin.SYS_ADMIN.ORG_ID, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have org_id IN (values) + */ + public List fetchByOrgId(String... values) { + return fetch(SysAdmin.SYS_ADMIN.ORG_ID, values); + } + + /** + * Fetch records that have realname BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfRealname(String lowerInclusive, String upperInclusive) { + return fetchRange(SysAdmin.SYS_ADMIN.REALNAME, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have realname IN (values) + */ + public List fetchByRealname(String... values) { + return fetch(SysAdmin.SYS_ADMIN.REALNAME, values); + } + + /** + * Fetch records that have username BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfUsername(String lowerInclusive, String upperInclusive) { + return fetchRange(SysAdmin.SYS_ADMIN.USERNAME, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have username IN (values) + */ + public List fetchByUsername(String... values) { + return fetch(SysAdmin.SYS_ADMIN.USERNAME, values); + } + + /** + * Fetch a unique record that has username = value + */ + public jj.tech.paolu.repository.jooq.tables.pojos.SysAdmin fetchOneByUsername(String value) { + return fetchOne(SysAdmin.SYS_ADMIN.USERNAME, value); + } + + /** + * Fetch a unique record that has username = value + */ + public Optional fetchOptionalByUsername(String value) { + return fetchOptional(SysAdmin.SYS_ADMIN.USERNAME, value); + } + + /** + * Fetch records that have password BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfPassword(String lowerInclusive, String upperInclusive) { + return fetchRange(SysAdmin.SYS_ADMIN.PASSWORD, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have password IN (values) + */ + public List fetchByPassword(String... values) { + return fetch(SysAdmin.SYS_ADMIN.PASSWORD, values); + } + + /** + * Fetch records that have phone BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfPhone(String lowerInclusive, String upperInclusive) { + return fetchRange(SysAdmin.SYS_ADMIN.PHONE, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have phone IN (values) + */ + public List fetchByPhone(String... values) { + return fetch(SysAdmin.SYS_ADMIN.PHONE, values); + } + + /** + * Fetch records that have email BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfEmail(String lowerInclusive, String upperInclusive) { + return fetchRange(SysAdmin.SYS_ADMIN.EMAIL, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have email IN (values) + */ + public List fetchByEmail(String... values) { + return fetch(SysAdmin.SYS_ADMIN.EMAIL, values); + } + + /** + * Fetch records that have job BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfJob(String lowerInclusive, String upperInclusive) { + return fetchRange(SysAdmin.SYS_ADMIN.JOB, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have job IN (values) + */ + public List fetchByJob(String... values) { + return fetch(SysAdmin.SYS_ADMIN.JOB, values); + } + + /** + * Fetch records that have gender BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfGender(Integer lowerInclusive, Integer upperInclusive) { + return fetchRange(SysAdmin.SYS_ADMIN.GENDER, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have gender IN (values) + */ + public List fetchByGender(Integer... values) { + return fetch(SysAdmin.SYS_ADMIN.GENDER, values); + } + + /** + * Fetch records that have islock BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfIslock(Integer lowerInclusive, Integer upperInclusive) { + return fetchRange(SysAdmin.SYS_ADMIN.ISLOCK, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have islock IN (values) + */ + public List fetchByIslock(Integer... values) { + return fetch(SysAdmin.SYS_ADMIN.ISLOCK, values); + } + + /** + * Fetch records that have type BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfType(Integer lowerInclusive, Integer upperInclusive) { + return fetchRange(SysAdmin.SYS_ADMIN.TYPE, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have type IN (values) + */ + public List fetchByType(Integer... values) { + return fetch(SysAdmin.SYS_ADMIN.TYPE, values); + } + + /** + * Fetch records that have sort BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfSort(Integer lowerInclusive, Integer upperInclusive) { + return fetchRange(SysAdmin.SYS_ADMIN.SORT, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have sort IN (values) + */ + public List fetchBySort(Integer... values) { + return fetch(SysAdmin.SYS_ADMIN.SORT, values); + } + + /** + * Fetch records that have cer_id BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfCerId(String lowerInclusive, String upperInclusive) { + return fetchRange(SysAdmin.SYS_ADMIN.CER_ID, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have cer_id IN (values) + */ + public List fetchByCerId(String... values) { + return fetch(SysAdmin.SYS_ADMIN.CER_ID, values); + } + + /** + * Fetch records that have company_id BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfCompanyId(String lowerInclusive, String upperInclusive) { + return fetchRange(SysAdmin.SYS_ADMIN.COMPANY_ID, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have company_id IN (values) + */ + public List fetchByCompanyId(String... values) { + return fetch(SysAdmin.SYS_ADMIN.COMPANY_ID, values); + } +} diff --git a/src/main/java/jj/tech/paolu/repository/jooq/tables/daos/SysAdminRoleDao.java b/src/main/java/jj/tech/paolu/repository/jooq/tables/daos/SysAdminRoleDao.java new file mode 100644 index 0000000..40fd005 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/jooq/tables/daos/SysAdminRoleDao.java @@ -0,0 +1,104 @@ +/* + * This file is generated by jOOQ. + */ +package jj.tech.paolu.repository.jooq.tables.daos; + + +import java.util.List; +import java.util.Optional; + +import jj.tech.paolu.repository.jooq.tables.SysAdminRole; +import jj.tech.paolu.repository.jooq.tables.records.SysAdminRoleRecord; + +import org.jooq.Configuration; +import org.jooq.impl.DAOImpl; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Repository; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +@Repository +public class SysAdminRoleDao extends DAOImpl { + + /** + * Create a new SysAdminRoleDao without any configuration + */ + public SysAdminRoleDao() { + super(SysAdminRole.SYS_ADMIN_ROLE, jj.tech.paolu.repository.jooq.tables.pojos.SysAdminRole.class); + } + + /** + * Create a new SysAdminRoleDao with an attached configuration + */ + @Autowired + public SysAdminRoleDao(Configuration configuration) { + super(SysAdminRole.SYS_ADMIN_ROLE, jj.tech.paolu.repository.jooq.tables.pojos.SysAdminRole.class, configuration); + } + + @Override + public String getId(jj.tech.paolu.repository.jooq.tables.pojos.SysAdminRole object) { + return object.getId(); + } + + /** + * Fetch records that have id BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfId(String lowerInclusive, String upperInclusive) { + return fetchRange(SysAdminRole.SYS_ADMIN_ROLE.ID, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have id IN (values) + */ + public List fetchById(String... values) { + return fetch(SysAdminRole.SYS_ADMIN_ROLE.ID, values); + } + + /** + * Fetch a unique record that has id = value + */ + public jj.tech.paolu.repository.jooq.tables.pojos.SysAdminRole fetchOneById(String value) { + return fetchOne(SysAdminRole.SYS_ADMIN_ROLE.ID, value); + } + + /** + * Fetch a unique record that has id = value + */ + public Optional fetchOptionalById(String value) { + return fetchOptional(SysAdminRole.SYS_ADMIN_ROLE.ID, value); + } + + /** + * Fetch records that have adminid BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfAdminid(String lowerInclusive, String upperInclusive) { + return fetchRange(SysAdminRole.SYS_ADMIN_ROLE.ADMINID, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have adminid IN (values) + */ + public List fetchByAdminid(String... values) { + return fetch(SysAdminRole.SYS_ADMIN_ROLE.ADMINID, values); + } + + /** + * Fetch records that have roleid BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfRoleid(String lowerInclusive, String upperInclusive) { + return fetchRange(SysAdminRole.SYS_ADMIN_ROLE.ROLEID, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have roleid IN (values) + */ + public List fetchByRoleid(String... values) { + return fetch(SysAdminRole.SYS_ADMIN_ROLE.ROLEID, values); + } +} diff --git a/src/main/java/jj/tech/paolu/repository/jooq/tables/daos/SysAdminWeidDao.java b/src/main/java/jj/tech/paolu/repository/jooq/tables/daos/SysAdminWeidDao.java new file mode 100644 index 0000000..8c0884d --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/jooq/tables/daos/SysAdminWeidDao.java @@ -0,0 +1,179 @@ +/* + * This file is generated by jOOQ. + */ +package jj.tech.paolu.repository.jooq.tables.daos; + + +import java.time.LocalDateTime; +import java.util.List; +import java.util.Optional; + +import jj.tech.paolu.repository.jooq.tables.SysAdminWeid; +import jj.tech.paolu.repository.jooq.tables.records.SysAdminWeidRecord; + +import org.jooq.Configuration; +import org.jooq.impl.DAOImpl; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Repository; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +@Repository +public class SysAdminWeidDao extends DAOImpl { + + /** + * Create a new SysAdminWeidDao without any configuration + */ + public SysAdminWeidDao() { + super(SysAdminWeid.SYS_ADMIN_WEID, jj.tech.paolu.repository.jooq.tables.pojos.SysAdminWeid.class); + } + + /** + * Create a new SysAdminWeidDao with an attached configuration + */ + @Autowired + public SysAdminWeidDao(Configuration configuration) { + super(SysAdminWeid.SYS_ADMIN_WEID, jj.tech.paolu.repository.jooq.tables.pojos.SysAdminWeid.class, configuration); + } + + @Override + public String getId(jj.tech.paolu.repository.jooq.tables.pojos.SysAdminWeid object) { + return object.getId(); + } + + /** + * Fetch records that have id BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfId(String lowerInclusive, String upperInclusive) { + return fetchRange(SysAdminWeid.SYS_ADMIN_WEID.ID, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have id IN (values) + */ + public List fetchById(String... values) { + return fetch(SysAdminWeid.SYS_ADMIN_WEID.ID, values); + } + + /** + * Fetch a unique record that has id = value + */ + public jj.tech.paolu.repository.jooq.tables.pojos.SysAdminWeid fetchOneById(String value) { + return fetchOne(SysAdminWeid.SYS_ADMIN_WEID.ID, value); + } + + /** + * Fetch a unique record that has id = value + */ + public Optional fetchOptionalById(String value) { + return fetchOptional(SysAdminWeid.SYS_ADMIN_WEID.ID, value); + } + + /** + * Fetch records that have admin_id BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfAdminId(String lowerInclusive, String upperInclusive) { + return fetchRange(SysAdminWeid.SYS_ADMIN_WEID.ADMIN_ID, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have admin_id IN (values) + */ + public List fetchByAdminId(String... values) { + return fetch(SysAdminWeid.SYS_ADMIN_WEID.ADMIN_ID, values); + } + + /** + * Fetch a unique record that has admin_id = value + */ + public jj.tech.paolu.repository.jooq.tables.pojos.SysAdminWeid fetchOneByAdminId(String value) { + return fetchOne(SysAdminWeid.SYS_ADMIN_WEID.ADMIN_ID, value); + } + + /** + * Fetch a unique record that has admin_id = value + */ + public Optional fetchOptionalByAdminId(String value) { + return fetchOptional(SysAdminWeid.SYS_ADMIN_WEID.ADMIN_ID, value); + } + + /** + * Fetch records that have wid BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfWid(String lowerInclusive, String upperInclusive) { + return fetchRange(SysAdminWeid.SYS_ADMIN_WEID.WID, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have wid IN (values) + */ + public List fetchByWid(String... values) { + return fetch(SysAdminWeid.SYS_ADMIN_WEID.WID, values); + } + + /** + * Fetch records that have wprivate_key BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfWprivateKey(String lowerInclusive, String upperInclusive) { + return fetchRange(SysAdminWeid.SYS_ADMIN_WEID.WPRIVATE_KEY, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have wprivate_key IN (values) + */ + public List fetchByWprivateKey(String... values) { + return fetch(SysAdminWeid.SYS_ADMIN_WEID.WPRIVATE_KEY, values); + } + + /** + * Fetch records that have add_time BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfAddTime(LocalDateTime lowerInclusive, LocalDateTime upperInclusive) { + return fetchRange(SysAdminWeid.SYS_ADMIN_WEID.ADD_TIME, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have add_time IN (values) + */ + public List fetchByAddTime(LocalDateTime... values) { + return fetch(SysAdminWeid.SYS_ADMIN_WEID.ADD_TIME, values); + } + + /** + * Fetch records that have certificate_hash BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfCertificateHash(String lowerInclusive, String upperInclusive) { + return fetchRange(SysAdminWeid.SYS_ADMIN_WEID.CERTIFICATE_HASH, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have certificate_hash IN (values) + */ + public List fetchByCertificateHash(String... values) { + return fetch(SysAdminWeid.SYS_ADMIN_WEID.CERTIFICATE_HASH, values); + } + + /** + * Fetch records that have chain_block BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfChainBlock(String lowerInclusive, String upperInclusive) { + return fetchRange(SysAdminWeid.SYS_ADMIN_WEID.CHAIN_BLOCK, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have chain_block IN (values) + */ + public List fetchByChainBlock(String... values) { + return fetch(SysAdminWeid.SYS_ADMIN_WEID.CHAIN_BLOCK, values); + } +} diff --git a/src/main/java/jj/tech/paolu/repository/jooq/tables/daos/SysAreaDao.java b/src/main/java/jj/tech/paolu/repository/jooq/tables/daos/SysAreaDao.java new file mode 100644 index 0000000..a30bf39 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/jooq/tables/daos/SysAreaDao.java @@ -0,0 +1,164 @@ +/* + * This file is generated by jOOQ. + */ +package jj.tech.paolu.repository.jooq.tables.daos; + + +import java.util.List; +import java.util.Optional; + +import jj.tech.paolu.repository.jooq.tables.SysArea; +import jj.tech.paolu.repository.jooq.tables.records.SysAreaRecord; + +import org.jooq.Configuration; +import org.jooq.impl.DAOImpl; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Repository; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +@Repository +public class SysAreaDao extends DAOImpl { + + /** + * Create a new SysAreaDao without any configuration + */ + public SysAreaDao() { + super(SysArea.SYS_AREA, jj.tech.paolu.repository.jooq.tables.pojos.SysArea.class); + } + + /** + * Create a new SysAreaDao with an attached configuration + */ + @Autowired + public SysAreaDao(Configuration configuration) { + super(SysArea.SYS_AREA, jj.tech.paolu.repository.jooq.tables.pojos.SysArea.class, configuration); + } + + @Override + public String getId(jj.tech.paolu.repository.jooq.tables.pojos.SysArea object) { + return object.getId(); + } + + /** + * Fetch records that have id BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfId(String lowerInclusive, String upperInclusive) { + return fetchRange(SysArea.SYS_AREA.ID, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have id IN (values) + */ + public List fetchById(String... values) { + return fetch(SysArea.SYS_AREA.ID, values); + } + + /** + * Fetch a unique record that has id = value + */ + public jj.tech.paolu.repository.jooq.tables.pojos.SysArea fetchOneById(String value) { + return fetchOne(SysArea.SYS_AREA.ID, value); + } + + /** + * Fetch a unique record that has id = value + */ + public Optional fetchOptionalById(String value) { + return fetchOptional(SysArea.SYS_AREA.ID, value); + } + + /** + * Fetch records that have level_code BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfLevelCode(Short lowerInclusive, Short upperInclusive) { + return fetchRange(SysArea.SYS_AREA.LEVEL_CODE, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have level_code IN (values) + */ + public List fetchByLevelCode(Short... values) { + return fetch(SysArea.SYS_AREA.LEVEL_CODE, values); + } + + /** + * Fetch records that have parent_code BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfParentCode(String lowerInclusive, String upperInclusive) { + return fetchRange(SysArea.SYS_AREA.PARENT_CODE, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have parent_code IN (values) + */ + public List fetchByParentCode(String... values) { + return fetch(SysArea.SYS_AREA.PARENT_CODE, values); + } + + /** + * Fetch records that have area_code BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfAreaCode(String lowerInclusive, String upperInclusive) { + return fetchRange(SysArea.SYS_AREA.AREA_CODE, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have area_code IN (values) + */ + public List fetchByAreaCode(String... values) { + return fetch(SysArea.SYS_AREA.AREA_CODE, values); + } + + /** + * Fetch records that have name BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfName(String lowerInclusive, String upperInclusive) { + return fetchRange(SysArea.SYS_AREA.NAME, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have name IN (values) + */ + public List fetchByName(String... values) { + return fetch(SysArea.SYS_AREA.NAME, values); + } + + /** + * Fetch records that have pid BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfPid(String lowerInclusive, String upperInclusive) { + return fetchRange(SysArea.SYS_AREA.PID, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have pid IN (values) + */ + public List fetchByPid(String... values) { + return fetch(SysArea.SYS_AREA.PID, values); + } + + /** + * Fetch records that have pids BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfPids(String lowerInclusive, String upperInclusive) { + return fetchRange(SysArea.SYS_AREA.PIDS, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have pids IN (values) + */ + public List fetchByPids(String... values) { + return fetch(SysArea.SYS_AREA.PIDS, values); + } +} diff --git a/src/main/java/jj/tech/paolu/repository/jooq/tables/daos/SysConfigDao.java b/src/main/java/jj/tech/paolu/repository/jooq/tables/daos/SysConfigDao.java new file mode 100644 index 0000000..4c8cb13 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/jooq/tables/daos/SysConfigDao.java @@ -0,0 +1,179 @@ +/* + * This file is generated by jOOQ. + */ +package jj.tech.paolu.repository.jooq.tables.daos; + + +import java.time.LocalDateTime; +import java.util.List; +import java.util.Optional; + +import jj.tech.paolu.repository.jooq.tables.SysConfig; +import jj.tech.paolu.repository.jooq.tables.records.SysConfigRecord; + +import org.jooq.Configuration; +import org.jooq.impl.DAOImpl; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Repository; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +@Repository +public class SysConfigDao extends DAOImpl { + + /** + * Create a new SysConfigDao without any configuration + */ + public SysConfigDao() { + super(SysConfig.SYS_CONFIG, jj.tech.paolu.repository.jooq.tables.pojos.SysConfig.class); + } + + /** + * Create a new SysConfigDao with an attached configuration + */ + @Autowired + public SysConfigDao(Configuration configuration) { + super(SysConfig.SYS_CONFIG, jj.tech.paolu.repository.jooq.tables.pojos.SysConfig.class, configuration); + } + + @Override + public String getId(jj.tech.paolu.repository.jooq.tables.pojos.SysConfig object) { + return object.getId(); + } + + /** + * Fetch records that have id BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfId(String lowerInclusive, String upperInclusive) { + return fetchRange(SysConfig.SYS_CONFIG.ID, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have id IN (values) + */ + public List fetchById(String... values) { + return fetch(SysConfig.SYS_CONFIG.ID, values); + } + + /** + * Fetch a unique record that has id = value + */ + public jj.tech.paolu.repository.jooq.tables.pojos.SysConfig fetchOneById(String value) { + return fetchOne(SysConfig.SYS_CONFIG.ID, value); + } + + /** + * Fetch a unique record that has id = value + */ + public Optional fetchOptionalById(String value) { + return fetchOptional(SysConfig.SYS_CONFIG.ID, value); + } + + /** + * Fetch records that have subgroup BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfSubgroup(String lowerInclusive, String upperInclusive) { + return fetchRange(SysConfig.SYS_CONFIG.SUBGROUP, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have subgroup IN (values) + */ + public List fetchBySubgroup(String... values) { + return fetch(SysConfig.SYS_CONFIG.SUBGROUP, values); + } + + /** + * Fetch records that have keys BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfKeys(String lowerInclusive, String upperInclusive) { + return fetchRange(SysConfig.SYS_CONFIG.KEYS, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have keys IN (values) + */ + public List fetchByKeys(String... values) { + return fetch(SysConfig.SYS_CONFIG.KEYS, values); + } + + /** + * Fetch a unique record that has keys = value + */ + public jj.tech.paolu.repository.jooq.tables.pojos.SysConfig fetchOneByKeys(String value) { + return fetchOne(SysConfig.SYS_CONFIG.KEYS, value); + } + + /** + * Fetch a unique record that has keys = value + */ + public Optional fetchOptionalByKeys(String value) { + return fetchOptional(SysConfig.SYS_CONFIG.KEYS, value); + } + + /** + * Fetch records that have val BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfVal(String lowerInclusive, String upperInclusive) { + return fetchRange(SysConfig.SYS_CONFIG.VAL, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have val IN (values) + */ + public List fetchByVal(String... values) { + return fetch(SysConfig.SYS_CONFIG.VAL, values); + } + + /** + * Fetch records that have admin_id BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfAdminId(String lowerInclusive, String upperInclusive) { + return fetchRange(SysConfig.SYS_CONFIG.ADMIN_ID, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have admin_id IN (values) + */ + public List fetchByAdminId(String... values) { + return fetch(SysConfig.SYS_CONFIG.ADMIN_ID, values); + } + + /** + * Fetch records that have adminname BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfAdminname(String lowerInclusive, String upperInclusive) { + return fetchRange(SysConfig.SYS_CONFIG.ADMINNAME, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have adminname IN (values) + */ + public List fetchByAdminname(String... values) { + return fetch(SysConfig.SYS_CONFIG.ADMINNAME, values); + } + + /** + * Fetch records that have edittime BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfEdittime(LocalDateTime lowerInclusive, LocalDateTime upperInclusive) { + return fetchRange(SysConfig.SYS_CONFIG.EDITTIME, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have edittime IN (values) + */ + public List fetchByEdittime(LocalDateTime... values) { + return fetch(SysConfig.SYS_CONFIG.EDITTIME, values); + } +} diff --git a/src/main/java/jj/tech/paolu/repository/jooq/tables/daos/SysMenuDao.java b/src/main/java/jj/tech/paolu/repository/jooq/tables/daos/SysMenuDao.java new file mode 100644 index 0000000..fc29aef --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/jooq/tables/daos/SysMenuDao.java @@ -0,0 +1,224 @@ +/* + * This file is generated by jOOQ. + */ +package jj.tech.paolu.repository.jooq.tables.daos; + + +import java.util.List; +import java.util.Optional; + +import jj.tech.paolu.repository.jooq.tables.SysMenu; +import jj.tech.paolu.repository.jooq.tables.records.SysMenuRecord; + +import org.jooq.Configuration; +import org.jooq.impl.DAOImpl; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Repository; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +@Repository +public class SysMenuDao extends DAOImpl { + + /** + * Create a new SysMenuDao without any configuration + */ + public SysMenuDao() { + super(SysMenu.SYS_MENU, jj.tech.paolu.repository.jooq.tables.pojos.SysMenu.class); + } + + /** + * Create a new SysMenuDao with an attached configuration + */ + @Autowired + public SysMenuDao(Configuration configuration) { + super(SysMenu.SYS_MENU, jj.tech.paolu.repository.jooq.tables.pojos.SysMenu.class, configuration); + } + + @Override + public String getId(jj.tech.paolu.repository.jooq.tables.pojos.SysMenu object) { + return object.getId(); + } + + /** + * Fetch records that have id BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfId(String lowerInclusive, String upperInclusive) { + return fetchRange(SysMenu.SYS_MENU.ID, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have id IN (values) + */ + public List fetchById(String... values) { + return fetch(SysMenu.SYS_MENU.ID, values); + } + + /** + * Fetch a unique record that has id = value + */ + public jj.tech.paolu.repository.jooq.tables.pojos.SysMenu fetchOneById(String value) { + return fetchOne(SysMenu.SYS_MENU.ID, value); + } + + /** + * Fetch a unique record that has id = value + */ + public Optional fetchOptionalById(String value) { + return fetchOptional(SysMenu.SYS_MENU.ID, value); + } + + /** + * Fetch records that have parent_id BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfParentId(String lowerInclusive, String upperInclusive) { + return fetchRange(SysMenu.SYS_MENU.PARENT_ID, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have parent_id IN (values) + */ + public List fetchByParentId(String... values) { + return fetch(SysMenu.SYS_MENU.PARENT_ID, values); + } + + /** + * Fetch records that have level BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfLevel(Integer lowerInclusive, Integer upperInclusive) { + return fetchRange(SysMenu.SYS_MENU.LEVEL, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have level IN (values) + */ + public List fetchByLevel(Integer... values) { + return fetch(SysMenu.SYS_MENU.LEVEL, values); + } + + /** + * Fetch records that have name BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfName(String lowerInclusive, String upperInclusive) { + return fetchRange(SysMenu.SYS_MENU.NAME, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have name IN (values) + */ + public List fetchByName(String... values) { + return fetch(SysMenu.SYS_MENU.NAME, values); + } + + /** + * Fetch records that have types BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfTypes(String lowerInclusive, String upperInclusive) { + return fetchRange(SysMenu.SYS_MENU.TYPES, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have types IN (values) + */ + public List fetchByTypes(String... values) { + return fetch(SysMenu.SYS_MENU.TYPES, values); + } + + /** + * Fetch records that have url BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfUrl(String lowerInclusive, String upperInclusive) { + return fetchRange(SysMenu.SYS_MENU.URL, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have url IN (values) + */ + public List fetchByUrl(String... values) { + return fetch(SysMenu.SYS_MENU.URL, values); + } + + /** + * Fetch records that have icon BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfIcon(String lowerInclusive, String upperInclusive) { + return fetchRange(SysMenu.SYS_MENU.ICON, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have icon IN (values) + */ + public List fetchByIcon(String... values) { + return fetch(SysMenu.SYS_MENU.ICON, values); + } + + /** + * Fetch records that have is_open BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfIsOpen(Integer lowerInclusive, Integer upperInclusive) { + return fetchRange(SysMenu.SYS_MENU.IS_OPEN, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have is_open IN (values) + */ + public List fetchByIsOpen(Integer... values) { + return fetch(SysMenu.SYS_MENU.IS_OPEN, values); + } + + /** + * Fetch records that have description BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfDescription(String lowerInclusive, String upperInclusive) { + return fetchRange(SysMenu.SYS_MENU.DESCRIPTION, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have description IN (values) + */ + public List fetchByDescription(String... values) { + return fetch(SysMenu.SYS_MENU.DESCRIPTION, values); + } + + /** + * Fetch records that have sort BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfSort(Integer lowerInclusive, Integer upperInclusive) { + return fetchRange(SysMenu.SYS_MENU.SORT, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have sort IN (values) + */ + public List fetchBySort(Integer... values) { + return fetch(SysMenu.SYS_MENU.SORT, values); + } + + /** + * Fetch records that have parentpath BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfParentpath(String lowerInclusive, String upperInclusive) { + return fetchRange(SysMenu.SYS_MENU.PARENTPATH, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have parentpath IN (values) + */ + public List fetchByParentpath(String... values) { + return fetch(SysMenu.SYS_MENU.PARENTPATH, values); + } +} diff --git a/src/main/java/jj/tech/paolu/repository/jooq/tables/daos/SysOrgDao.java b/src/main/java/jj/tech/paolu/repository/jooq/tables/daos/SysOrgDao.java new file mode 100644 index 0000000..a117e1f --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/jooq/tables/daos/SysOrgDao.java @@ -0,0 +1,510 @@ +/* + * This file is generated by jOOQ. + */ +package jj.tech.paolu.repository.jooq.tables.daos; + + +import java.time.LocalDateTime; +import java.util.List; +import java.util.Optional; + +import jj.tech.paolu.repository.jooq.tables.SysOrg; +import jj.tech.paolu.repository.jooq.tables.records.SysOrgRecord; + +import org.jooq.Configuration; +import org.jooq.impl.DAOImpl; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Repository; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +@Repository +public class SysOrgDao extends DAOImpl { + + /** + * Create a new SysOrgDao without any configuration + */ + public SysOrgDao() { + super(SysOrg.SYS_ORG, jj.tech.paolu.repository.jooq.tables.pojos.SysOrg.class); + } + + /** + * Create a new SysOrgDao with an attached configuration + */ + @Autowired + public SysOrgDao(Configuration configuration) { + super(SysOrg.SYS_ORG, jj.tech.paolu.repository.jooq.tables.pojos.SysOrg.class, configuration); + } + + @Override + public String getId(jj.tech.paolu.repository.jooq.tables.pojos.SysOrg object) { + return object.getId(); + } + + /** + * Fetch records that have id BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfId(String lowerInclusive, String upperInclusive) { + return fetchRange(SysOrg.SYS_ORG.ID, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have id IN (values) + */ + public List fetchById(String... values) { + return fetch(SysOrg.SYS_ORG.ID, values); + } + + /** + * Fetch a unique record that has id = value + */ + public jj.tech.paolu.repository.jooq.tables.pojos.SysOrg fetchOneById(String value) { + return fetchOne(SysOrg.SYS_ORG.ID, value); + } + + /** + * Fetch a unique record that has id = value + */ + public Optional fetchOptionalById(String value) { + return fetchOptional(SysOrg.SYS_ORG.ID, value); + } + + /** + * Fetch records that have pid BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfPid(String lowerInclusive, String upperInclusive) { + return fetchRange(SysOrg.SYS_ORG.PID, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have pid IN (values) + */ + public List fetchByPid(String... values) { + return fetch(SysOrg.SYS_ORG.PID, values); + } + + /** + * Fetch records that have chinese_simple_name BETWEEN lowerInclusive + * AND upperInclusive + */ + public List fetchRangeOfChineseSimpleName(String lowerInclusive, String upperInclusive) { + return fetchRange(SysOrg.SYS_ORG.CHINESE_SIMPLE_NAME, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have chinese_simple_name IN (values) + */ + public List fetchByChineseSimpleName(String... values) { + return fetch(SysOrg.SYS_ORG.CHINESE_SIMPLE_NAME, values); + } + + /** + * Fetch records that have english_simple_name BETWEEN lowerInclusive + * AND upperInclusive + */ + public List fetchRangeOfEnglishSimpleName(String lowerInclusive, String upperInclusive) { + return fetchRange(SysOrg.SYS_ORG.ENGLISH_SIMPLE_NAME, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have english_simple_name IN (values) + */ + public List fetchByEnglishSimpleName(String... values) { + return fetch(SysOrg.SYS_ORG.ENGLISH_SIMPLE_NAME, values); + } + + /** + * Fetch records that have chinese_full_name BETWEEN lowerInclusive + * AND upperInclusive + */ + public List fetchRangeOfChineseFullName(String lowerInclusive, String upperInclusive) { + return fetchRange(SysOrg.SYS_ORG.CHINESE_FULL_NAME, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have chinese_full_name IN (values) + */ + public List fetchByChineseFullName(String... values) { + return fetch(SysOrg.SYS_ORG.CHINESE_FULL_NAME, values); + } + + /** + * Fetch records that have english_full_name BETWEEN lowerInclusive + * AND upperInclusive + */ + public List fetchRangeOfEnglishFullName(String lowerInclusive, String upperInclusive) { + return fetchRange(SysOrg.SYS_ORG.ENGLISH_FULL_NAME, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have english_full_name IN (values) + */ + public List fetchByEnglishFullName(String... values) { + return fetch(SysOrg.SYS_ORG.ENGLISH_FULL_NAME, values); + } + + /** + * Fetch records that have code BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfCode(String lowerInclusive, String upperInclusive) { + return fetchRange(SysOrg.SYS_ORG.CODE, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have code IN (values) + */ + public List fetchByCode(String... values) { + return fetch(SysOrg.SYS_ORG.CODE, values); + } + + /** + * Fetch records that have sort BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfSort(Integer lowerInclusive, Integer upperInclusive) { + return fetchRange(SysOrg.SYS_ORG.SORT, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have sort IN (values) + */ + public List fetchBySort(Integer... values) { + return fetch(SysOrg.SYS_ORG.SORT, values); + } + + /** + * Fetch records that have status BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfStatus(Integer lowerInclusive, Integer upperInclusive) { + return fetchRange(SysOrg.SYS_ORG.STATUS, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have status IN (values) + */ + public List fetchByStatus(Integer... values) { + return fetch(SysOrg.SYS_ORG.STATUS, values); + } + + /** + * Fetch records that have is_company_department BETWEEN + * lowerInclusive AND upperInclusive + */ + public List fetchRangeOfIsCompanyDepartment(Integer lowerInclusive, Integer upperInclusive) { + return fetchRange(SysOrg.SYS_ORG.IS_COMPANY_DEPARTMENT, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have is_company_department IN (values) + */ + public List fetchByIsCompanyDepartment(Integer... values) { + return fetch(SysOrg.SYS_ORG.IS_COMPANY_DEPARTMENT, values); + } + + /** + * Fetch records that have enterprise_legal_person BETWEEN + * lowerInclusive AND upperInclusive + */ + public List fetchRangeOfEnterpriseLegalPerson(String lowerInclusive, String upperInclusive) { + return fetchRange(SysOrg.SYS_ORG.ENTERPRISE_LEGAL_PERSON, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have enterprise_legal_person IN (values) + */ + public List fetchByEnterpriseLegalPerson(String... values) { + return fetch(SysOrg.SYS_ORG.ENTERPRISE_LEGAL_PERSON, values); + } + + /** + * Fetch records that have contact_person BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfContactPerson(String lowerInclusive, String upperInclusive) { + return fetchRange(SysOrg.SYS_ORG.CONTACT_PERSON, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have contact_person IN (values) + */ + public List fetchByContactPerson(String... values) { + return fetch(SysOrg.SYS_ORG.CONTACT_PERSON, values); + } + + /** + * Fetch records that have contact_phone BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfContactPhone(String lowerInclusive, String upperInclusive) { + return fetchRange(SysOrg.SYS_ORG.CONTACT_PHONE, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have contact_phone IN (values) + */ + public List fetchByContactPhone(String... values) { + return fetch(SysOrg.SYS_ORG.CONTACT_PHONE, values); + } + + /** + * Fetch records that have remark BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfRemark(String lowerInclusive, String upperInclusive) { + return fetchRange(SysOrg.SYS_ORG.REMARK, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have remark IN (values) + */ + public List fetchByRemark(String... values) { + return fetch(SysOrg.SYS_ORG.REMARK, values); + } + + /** + * Fetch records that have create_time BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfCreateTime(LocalDateTime lowerInclusive, LocalDateTime upperInclusive) { + return fetchRange(SysOrg.SYS_ORG.CREATE_TIME, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have create_time IN (values) + */ + public List fetchByCreateTime(LocalDateTime... values) { + return fetch(SysOrg.SYS_ORG.CREATE_TIME, values); + } + + /** + * Fetch records that have create_user BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfCreateUser(String lowerInclusive, String upperInclusive) { + return fetchRange(SysOrg.SYS_ORG.CREATE_USER, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have create_user IN (values) + */ + public List fetchByCreateUser(String... values) { + return fetch(SysOrg.SYS_ORG.CREATE_USER, values); + } + + /** + * Fetch records that have update_time BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfUpdateTime(LocalDateTime lowerInclusive, LocalDateTime upperInclusive) { + return fetchRange(SysOrg.SYS_ORG.UPDATE_TIME, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have update_time IN (values) + */ + public List fetchByUpdateTime(LocalDateTime... values) { + return fetch(SysOrg.SYS_ORG.UPDATE_TIME, values); + } + + /** + * Fetch records that have update_user BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfUpdateUser(String lowerInclusive, String upperInclusive) { + return fetchRange(SysOrg.SYS_ORG.UPDATE_USER, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have update_user IN (values) + */ + public List fetchByUpdateUser(String... values) { + return fetch(SysOrg.SYS_ORG.UPDATE_USER, values); + } + + /** + * Fetch records that have name BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfName(String lowerInclusive, String upperInclusive) { + return fetchRange(SysOrg.SYS_ORG.NAME, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have name IN (values) + */ + public List fetchByName(String... values) { + return fetch(SysOrg.SYS_ORG.NAME, values); + } + + /** + * Fetch records that have industry_name BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfIndustryName(String lowerInclusive, String upperInclusive) { + return fetchRange(SysOrg.SYS_ORG.INDUSTRY_NAME, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have industry_name IN (values) + */ + public List fetchByIndustryName(String... values) { + return fetch(SysOrg.SYS_ORG.INDUSTRY_NAME, values); + } + + /** + * Fetch records that have industry_code BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfIndustryCode(String lowerInclusive, String upperInclusive) { + return fetchRange(SysOrg.SYS_ORG.INDUSTRY_CODE, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have industry_code IN (values) + */ + public List fetchByIndustryCode(String... values) { + return fetch(SysOrg.SYS_ORG.INDUSTRY_CODE, values); + } + + /** + * Fetch records that have province_code BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfProvinceCode(String lowerInclusive, String upperInclusive) { + return fetchRange(SysOrg.SYS_ORG.PROVINCE_CODE, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have province_code IN (values) + */ + public List fetchByProvinceCode(String... values) { + return fetch(SysOrg.SYS_ORG.PROVINCE_CODE, values); + } + + /** + * Fetch records that have city_code BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfCityCode(String lowerInclusive, String upperInclusive) { + return fetchRange(SysOrg.SYS_ORG.CITY_CODE, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have city_code IN (values) + */ + public List fetchByCityCode(String... values) { + return fetch(SysOrg.SYS_ORG.CITY_CODE, values); + } + + /** + * Fetch records that have area_code BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfAreaCode(String lowerInclusive, String upperInclusive) { + return fetchRange(SysOrg.SYS_ORG.AREA_CODE, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have area_code IN (values) + */ + public List fetchByAreaCode(String... values) { + return fetch(SysOrg.SYS_ORG.AREA_CODE, values); + } + + /** + * Fetch records that have addr BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfAddr(String lowerInclusive, String upperInclusive) { + return fetchRange(SysOrg.SYS_ORG.ADDR, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have addr IN (values) + */ + public List fetchByAddr(String... values) { + return fetch(SysOrg.SYS_ORG.ADDR, values); + } + + /** + * Fetch records that have uscc BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfUscc(String lowerInclusive, String upperInclusive) { + return fetchRange(SysOrg.SYS_ORG.USCC, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have uscc IN (values) + */ + public List fetchByUscc(String... values) { + return fetch(SysOrg.SYS_ORG.USCC, values); + } + + /** + * Fetch records that have org_type BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfOrgType(String lowerInclusive, String upperInclusive) { + return fetchRange(SysOrg.SYS_ORG.ORG_TYPE, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have org_type IN (values) + */ + public List fetchByOrgType(String... values) { + return fetch(SysOrg.SYS_ORG.ORG_TYPE, values); + } + + /** + * Fetch records that have is_archives_dep BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfIsArchivesDep(Integer lowerInclusive, Integer upperInclusive) { + return fetchRange(SysOrg.SYS_ORG.IS_ARCHIVES_DEP, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have is_archives_dep IN (values) + */ + public List fetchByIsArchivesDep(Integer... values) { + return fetch(SysOrg.SYS_ORG.IS_ARCHIVES_DEP, values); + } + + /** + * Fetch records that have cer_id BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfCerId(String lowerInclusive, String upperInclusive) { + return fetchRange(SysOrg.SYS_ORG.CER_ID, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have cer_id IN (values) + */ + public List fetchByCerId(String... values) { + return fetch(SysOrg.SYS_ORG.CER_ID, values); + } + + /** + * Fetch records that have is_forbidden BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfIsForbidden(Integer lowerInclusive, Integer upperInclusive) { + return fetchRange(SysOrg.SYS_ORG.IS_FORBIDDEN, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have is_forbidden IN (values) + */ + public List fetchByIsForbidden(Integer... values) { + return fetch(SysOrg.SYS_ORG.IS_FORBIDDEN, values); + } +} diff --git a/src/main/java/jj/tech/paolu/repository/jooq/tables/daos/SysRoleDao.java b/src/main/java/jj/tech/paolu/repository/jooq/tables/daos/SysRoleDao.java new file mode 100644 index 0000000..d33f0c8 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/jooq/tables/daos/SysRoleDao.java @@ -0,0 +1,194 @@ +/* + * This file is generated by jOOQ. + */ +package jj.tech.paolu.repository.jooq.tables.daos; + + +import java.util.List; +import java.util.Optional; + +import jj.tech.paolu.repository.jooq.tables.SysRole; +import jj.tech.paolu.repository.jooq.tables.records.SysRoleRecord; + +import org.jooq.Configuration; +import org.jooq.impl.DAOImpl; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Repository; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +@Repository +public class SysRoleDao extends DAOImpl { + + /** + * Create a new SysRoleDao without any configuration + */ + public SysRoleDao() { + super(SysRole.SYS_ROLE, jj.tech.paolu.repository.jooq.tables.pojos.SysRole.class); + } + + /** + * Create a new SysRoleDao with an attached configuration + */ + @Autowired + public SysRoleDao(Configuration configuration) { + super(SysRole.SYS_ROLE, jj.tech.paolu.repository.jooq.tables.pojos.SysRole.class, configuration); + } + + @Override + public String getId(jj.tech.paolu.repository.jooq.tables.pojos.SysRole object) { + return object.getId(); + } + + /** + * Fetch records that have id BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfId(String lowerInclusive, String upperInclusive) { + return fetchRange(SysRole.SYS_ROLE.ID, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have id IN (values) + */ + public List fetchById(String... values) { + return fetch(SysRole.SYS_ROLE.ID, values); + } + + /** + * Fetch a unique record that has id = value + */ + public jj.tech.paolu.repository.jooq.tables.pojos.SysRole fetchOneById(String value) { + return fetchOne(SysRole.SYS_ROLE.ID, value); + } + + /** + * Fetch a unique record that has id = value + */ + public Optional fetchOptionalById(String value) { + return fetchOptional(SysRole.SYS_ROLE.ID, value); + } + + /** + * Fetch records that have rolename BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfRolename(String lowerInclusive, String upperInclusive) { + return fetchRange(SysRole.SYS_ROLE.ROLENAME, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have rolename IN (values) + */ + public List fetchByRolename(String... values) { + return fetch(SysRole.SYS_ROLE.ROLENAME, values); + } + + /** + * Fetch records that have describe BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfDescribe(String lowerInclusive, String upperInclusive) { + return fetchRange(SysRole.SYS_ROLE.DESCRIBE, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have describe IN (values) + */ + public List fetchByDescribe(String... values) { + return fetch(SysRole.SYS_ROLE.DESCRIBE, values); + } + + /** + * Fetch records that have sort BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfSort(Integer lowerInclusive, Integer upperInclusive) { + return fetchRange(SysRole.SYS_ROLE.SORT, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have sort IN (values) + */ + public List fetchBySort(Integer... values) { + return fetch(SysRole.SYS_ROLE.SORT, values); + } + + /** + * Fetch records that have is_open BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfIsOpen(Integer lowerInclusive, Integer upperInclusive) { + return fetchRange(SysRole.SYS_ROLE.IS_OPEN, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have is_open IN (values) + */ + public List fetchByIsOpen(Integer... values) { + return fetch(SysRole.SYS_ROLE.IS_OPEN, values); + } + + /** + * Fetch records that have sign_name BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfSignName(String lowerInclusive, String upperInclusive) { + return fetchRange(SysRole.SYS_ROLE.SIGN_NAME, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have sign_name IN (values) + */ + public List fetchBySignName(String... values) { + return fetch(SysRole.SYS_ROLE.SIGN_NAME, values); + } + + /** + * Fetch records that have sign_id BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfSignId(String lowerInclusive, String upperInclusive) { + return fetchRange(SysRole.SYS_ROLE.SIGN_ID, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have sign_id IN (values) + */ + public List fetchBySignId(String... values) { + return fetch(SysRole.SYS_ROLE.SIGN_ID, values); + } + + /** + * Fetch records that have company_id BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfCompanyId(String lowerInclusive, String upperInclusive) { + return fetchRange(SysRole.SYS_ROLE.COMPANY_ID, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have company_id IN (values) + */ + public List fetchByCompanyId(String... values) { + return fetch(SysRole.SYS_ROLE.COMPANY_ID, values); + } + + /** + * Fetch records that have company_name BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfCompanyName(String lowerInclusive, String upperInclusive) { + return fetchRange(SysRole.SYS_ROLE.COMPANY_NAME, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have company_name IN (values) + */ + public List fetchByCompanyName(String... values) { + return fetch(SysRole.SYS_ROLE.COMPANY_NAME, values); + } +} diff --git a/src/main/java/jj/tech/paolu/repository/jooq/tables/daos/SysRoleMenuDao.java b/src/main/java/jj/tech/paolu/repository/jooq/tables/daos/SysRoleMenuDao.java new file mode 100644 index 0000000..403b318 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/jooq/tables/daos/SysRoleMenuDao.java @@ -0,0 +1,104 @@ +/* + * This file is generated by jOOQ. + */ +package jj.tech.paolu.repository.jooq.tables.daos; + + +import java.util.List; +import java.util.Optional; + +import jj.tech.paolu.repository.jooq.tables.SysRoleMenu; +import jj.tech.paolu.repository.jooq.tables.records.SysRoleMenuRecord; + +import org.jooq.Configuration; +import org.jooq.impl.DAOImpl; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Repository; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +@Repository +public class SysRoleMenuDao extends DAOImpl { + + /** + * Create a new SysRoleMenuDao without any configuration + */ + public SysRoleMenuDao() { + super(SysRoleMenu.SYS_ROLE_MENU, jj.tech.paolu.repository.jooq.tables.pojos.SysRoleMenu.class); + } + + /** + * Create a new SysRoleMenuDao with an attached configuration + */ + @Autowired + public SysRoleMenuDao(Configuration configuration) { + super(SysRoleMenu.SYS_ROLE_MENU, jj.tech.paolu.repository.jooq.tables.pojos.SysRoleMenu.class, configuration); + } + + @Override + public String getId(jj.tech.paolu.repository.jooq.tables.pojos.SysRoleMenu object) { + return object.getId(); + } + + /** + * Fetch records that have id BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfId(String lowerInclusive, String upperInclusive) { + return fetchRange(SysRoleMenu.SYS_ROLE_MENU.ID, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have id IN (values) + */ + public List fetchById(String... values) { + return fetch(SysRoleMenu.SYS_ROLE_MENU.ID, values); + } + + /** + * Fetch a unique record that has id = value + */ + public jj.tech.paolu.repository.jooq.tables.pojos.SysRoleMenu fetchOneById(String value) { + return fetchOne(SysRoleMenu.SYS_ROLE_MENU.ID, value); + } + + /** + * Fetch a unique record that has id = value + */ + public Optional fetchOptionalById(String value) { + return fetchOptional(SysRoleMenu.SYS_ROLE_MENU.ID, value); + } + + /** + * Fetch records that have roleid BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfRoleid(String lowerInclusive, String upperInclusive) { + return fetchRange(SysRoleMenu.SYS_ROLE_MENU.ROLEID, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have roleid IN (values) + */ + public List fetchByRoleid(String... values) { + return fetch(SysRoleMenu.SYS_ROLE_MENU.ROLEID, values); + } + + /** + * Fetch records that have menuid BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfMenuid(String lowerInclusive, String upperInclusive) { + return fetchRange(SysRoleMenu.SYS_ROLE_MENU.MENUID, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have menuid IN (values) + */ + public List fetchByMenuid(String... values) { + return fetch(SysRoleMenu.SYS_ROLE_MENU.MENUID, values); + } +} diff --git a/src/main/java/jj/tech/paolu/repository/jooq/tables/daos/SysRoleSignDao.java b/src/main/java/jj/tech/paolu/repository/jooq/tables/daos/SysRoleSignDao.java new file mode 100644 index 0000000..2806ce4 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/jooq/tables/daos/SysRoleSignDao.java @@ -0,0 +1,104 @@ +/* + * This file is generated by jOOQ. + */ +package jj.tech.paolu.repository.jooq.tables.daos; + + +import java.util.List; +import java.util.Optional; + +import jj.tech.paolu.repository.jooq.tables.SysRoleSign; +import jj.tech.paolu.repository.jooq.tables.records.SysRoleSignRecord; + +import org.jooq.Configuration; +import org.jooq.impl.DAOImpl; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Repository; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +@Repository +public class SysRoleSignDao extends DAOImpl { + + /** + * Create a new SysRoleSignDao without any configuration + */ + public SysRoleSignDao() { + super(SysRoleSign.SYS_ROLE_SIGN, jj.tech.paolu.repository.jooq.tables.pojos.SysRoleSign.class); + } + + /** + * Create a new SysRoleSignDao with an attached configuration + */ + @Autowired + public SysRoleSignDao(Configuration configuration) { + super(SysRoleSign.SYS_ROLE_SIGN, jj.tech.paolu.repository.jooq.tables.pojos.SysRoleSign.class, configuration); + } + + @Override + public String getId(jj.tech.paolu.repository.jooq.tables.pojos.SysRoleSign object) { + return object.getId(); + } + + /** + * Fetch records that have id BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfId(String lowerInclusive, String upperInclusive) { + return fetchRange(SysRoleSign.SYS_ROLE_SIGN.ID, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have id IN (values) + */ + public List fetchById(String... values) { + return fetch(SysRoleSign.SYS_ROLE_SIGN.ID, values); + } + + /** + * Fetch a unique record that has id = value + */ + public jj.tech.paolu.repository.jooq.tables.pojos.SysRoleSign fetchOneById(String value) { + return fetchOne(SysRoleSign.SYS_ROLE_SIGN.ID, value); + } + + /** + * Fetch a unique record that has id = value + */ + public Optional fetchOptionalById(String value) { + return fetchOptional(SysRoleSign.SYS_ROLE_SIGN.ID, value); + } + + /** + * Fetch records that have sign_name BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfSignName(String lowerInclusive, String upperInclusive) { + return fetchRange(SysRoleSign.SYS_ROLE_SIGN.SIGN_NAME, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have sign_name IN (values) + */ + public List fetchBySignName(String... values) { + return fetch(SysRoleSign.SYS_ROLE_SIGN.SIGN_NAME, values); + } + + /** + * Fetch records that have sign_code BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfSignCode(String lowerInclusive, String upperInclusive) { + return fetchRange(SysRoleSign.SYS_ROLE_SIGN.SIGN_CODE, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have sign_code IN (values) + */ + public List fetchBySignCode(String... values) { + return fetch(SysRoleSign.SYS_ROLE_SIGN.SIGN_CODE, values); + } +} diff --git a/src/main/java/jj/tech/paolu/repository/jooq/tables/daos/SysRoleUrlDao.java b/src/main/java/jj/tech/paolu/repository/jooq/tables/daos/SysRoleUrlDao.java new file mode 100644 index 0000000..7ae34b3 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/jooq/tables/daos/SysRoleUrlDao.java @@ -0,0 +1,119 @@ +/* + * This file is generated by jOOQ. + */ +package jj.tech.paolu.repository.jooq.tables.daos; + + +import java.util.List; +import java.util.Optional; + +import jj.tech.paolu.repository.jooq.tables.SysRoleUrl; +import jj.tech.paolu.repository.jooq.tables.records.SysRoleUrlRecord; + +import org.jooq.Configuration; +import org.jooq.impl.DAOImpl; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Repository; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +@Repository +public class SysRoleUrlDao extends DAOImpl { + + /** + * Create a new SysRoleUrlDao without any configuration + */ + public SysRoleUrlDao() { + super(SysRoleUrl.SYS_ROLE_URL, jj.tech.paolu.repository.jooq.tables.pojos.SysRoleUrl.class); + } + + /** + * Create a new SysRoleUrlDao with an attached configuration + */ + @Autowired + public SysRoleUrlDao(Configuration configuration) { + super(SysRoleUrl.SYS_ROLE_URL, jj.tech.paolu.repository.jooq.tables.pojos.SysRoleUrl.class, configuration); + } + + @Override + public String getId(jj.tech.paolu.repository.jooq.tables.pojos.SysRoleUrl object) { + return object.getId(); + } + + /** + * Fetch records that have id BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfId(String lowerInclusive, String upperInclusive) { + return fetchRange(SysRoleUrl.SYS_ROLE_URL.ID, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have id IN (values) + */ + public List fetchById(String... values) { + return fetch(SysRoleUrl.SYS_ROLE_URL.ID, values); + } + + /** + * Fetch a unique record that has id = value + */ + public jj.tech.paolu.repository.jooq.tables.pojos.SysRoleUrl fetchOneById(String value) { + return fetchOne(SysRoleUrl.SYS_ROLE_URL.ID, value); + } + + /** + * Fetch a unique record that has id = value + */ + public Optional fetchOptionalById(String value) { + return fetchOptional(SysRoleUrl.SYS_ROLE_URL.ID, value); + } + + /** + * Fetch records that have roleid BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfRoleid(String lowerInclusive, String upperInclusive) { + return fetchRange(SysRoleUrl.SYS_ROLE_URL.ROLEID, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have roleid IN (values) + */ + public List fetchByRoleid(String... values) { + return fetch(SysRoleUrl.SYS_ROLE_URL.ROLEID, values); + } + + /** + * Fetch records that have url BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfUrl(String lowerInclusive, String upperInclusive) { + return fetchRange(SysRoleUrl.SYS_ROLE_URL.URL, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have url IN (values) + */ + public List fetchByUrl(String... values) { + return fetch(SysRoleUrl.SYS_ROLE_URL.URL, values); + } + + /** + * Fetch records that have urltypes BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfUrltypes(Integer lowerInclusive, Integer upperInclusive) { + return fetchRange(SysRoleUrl.SYS_ROLE_URL.URLTYPES, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have urltypes IN (values) + */ + public List fetchByUrltypes(Integer... values) { + return fetch(SysRoleUrl.SYS_ROLE_URL.URLTYPES, values); + } +} diff --git a/src/main/java/jj/tech/paolu/repository/jooq/tables/daos/SysUrlsDao.java b/src/main/java/jj/tech/paolu/repository/jooq/tables/daos/SysUrlsDao.java new file mode 100644 index 0000000..acd5dcd --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/jooq/tables/daos/SysUrlsDao.java @@ -0,0 +1,178 @@ +/* + * This file is generated by jOOQ. + */ +package jj.tech.paolu.repository.jooq.tables.daos; + + +import java.util.List; +import java.util.Optional; + +import jj.tech.paolu.repository.jooq.tables.SysUrls; +import jj.tech.paolu.repository.jooq.tables.records.SysUrlsRecord; + +import org.jooq.Configuration; +import org.jooq.impl.DAOImpl; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Repository; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +@Repository +public class SysUrlsDao extends DAOImpl { + + /** + * Create a new SysUrlsDao without any configuration + */ + public SysUrlsDao() { + super(SysUrls.SYS_URLS, jj.tech.paolu.repository.jooq.tables.pojos.SysUrls.class); + } + + /** + * Create a new SysUrlsDao with an attached configuration + */ + @Autowired + public SysUrlsDao(Configuration configuration) { + super(SysUrls.SYS_URLS, jj.tech.paolu.repository.jooq.tables.pojos.SysUrls.class, configuration); + } + + @Override + public String getId(jj.tech.paolu.repository.jooq.tables.pojos.SysUrls object) { + return object.getId(); + } + + /** + * Fetch records that have id BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfId(String lowerInclusive, String upperInclusive) { + return fetchRange(SysUrls.SYS_URLS.ID, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have id IN (values) + */ + public List fetchById(String... values) { + return fetch(SysUrls.SYS_URLS.ID, values); + } + + /** + * Fetch a unique record that has id = value + */ + public jj.tech.paolu.repository.jooq.tables.pojos.SysUrls fetchOneById(String value) { + return fetchOne(SysUrls.SYS_URLS.ID, value); + } + + /** + * Fetch a unique record that has id = value + */ + public Optional fetchOptionalById(String value) { + return fetchOptional(SysUrls.SYS_URLS.ID, value); + } + + /** + * Fetch records that have pid BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfPid(String lowerInclusive, String upperInclusive) { + return fetchRange(SysUrls.SYS_URLS.PID, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have pid IN (values) + */ + public List fetchByPid(String... values) { + return fetch(SysUrls.SYS_URLS.PID, values); + } + + /** + * Fetch records that have types BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfTypes(Integer lowerInclusive, Integer upperInclusive) { + return fetchRange(SysUrls.SYS_URLS.TYPES, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have types IN (values) + */ + public List fetchByTypes(Integer... values) { + return fetch(SysUrls.SYS_URLS.TYPES, values); + } + + /** + * Fetch records that have level BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfLevel(Integer lowerInclusive, Integer upperInclusive) { + return fetchRange(SysUrls.SYS_URLS.LEVEL, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have level IN (values) + */ + public List fetchByLevel(Integer... values) { + return fetch(SysUrls.SYS_URLS.LEVEL, values); + } + + /** + * Fetch records that have url BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfUrl(String lowerInclusive, String upperInclusive) { + return fetchRange(SysUrls.SYS_URLS.URL, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have url IN (values) + */ + public List fetchByUrl(String... values) { + return fetch(SysUrls.SYS_URLS.URL, values); + } + + /** + * Fetch a unique record that has url = value + */ + public jj.tech.paolu.repository.jooq.tables.pojos.SysUrls fetchOneByUrl(String value) { + return fetchOne(SysUrls.SYS_URLS.URL, value); + } + + /** + * Fetch a unique record that has url = value + */ + public Optional fetchOptionalByUrl(String value) { + return fetchOptional(SysUrls.SYS_URLS.URL, value); + } + + /** + * Fetch records that have name BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfName(String lowerInclusive, String upperInclusive) { + return fetchRange(SysUrls.SYS_URLS.NAME, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have name IN (values) + */ + public List fetchByName(String... values) { + return fetch(SysUrls.SYS_URLS.NAME, values); + } + + /** + * Fetch records that have method BETWEEN lowerInclusive AND + * upperInclusive + */ + public List fetchRangeOfMethod(String lowerInclusive, String upperInclusive) { + return fetchRange(SysUrls.SYS_URLS.METHOD, lowerInclusive, upperInclusive); + } + + /** + * Fetch records that have method IN (values) + */ + public List fetchByMethod(String... values) { + return fetch(SysUrls.SYS_URLS.METHOD, values); + } +} diff --git a/src/main/java/jj/tech/paolu/repository/jooq/tables/pojos/ArchiveSynLog.java b/src/main/java/jj/tech/paolu/repository/jooq/tables/pojos/ArchiveSynLog.java new file mode 100644 index 0000000..059cb21 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/jooq/tables/pojos/ArchiveSynLog.java @@ -0,0 +1,394 @@ +/* + * This file is generated by jOOQ. + */ +package jj.tech.paolu.repository.jooq.tables.pojos; + + +import java.io.Serializable; +import java.time.LocalDateTime; + + +/** + * 从电子档案系统同步档案目录数据的过程日志 + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +public class ArchiveSynLog implements Serializable { + + private static final long serialVersionUID = 1L; + + private LocalDateTime startTime; + private Long insertDirCount; + private Long updateDirCount; + private Long insertDirfileCount; + private Long updateDirfileCount; + private Long insertFileCount; + private Long updateFileCount; + private String description; + private String runResult; + private Long updateTimestamp; + private String id; + private Long nextUpdateTimestamp; + private LocalDateTime endTime; + + public ArchiveSynLog() {} + + public ArchiveSynLog(ArchiveSynLog value) { + this.startTime = value.startTime; + this.insertDirCount = value.insertDirCount; + this.updateDirCount = value.updateDirCount; + this.insertDirfileCount = value.insertDirfileCount; + this.updateDirfileCount = value.updateDirfileCount; + this.insertFileCount = value.insertFileCount; + this.updateFileCount = value.updateFileCount; + this.description = value.description; + this.runResult = value.runResult; + this.updateTimestamp = value.updateTimestamp; + this.id = value.id; + this.nextUpdateTimestamp = value.nextUpdateTimestamp; + this.endTime = value.endTime; + } + + public ArchiveSynLog( + LocalDateTime startTime, + Long insertDirCount, + Long updateDirCount, + Long insertDirfileCount, + Long updateDirfileCount, + Long insertFileCount, + Long updateFileCount, + String description, + String runResult, + Long updateTimestamp, + String id, + Long nextUpdateTimestamp, + LocalDateTime endTime + ) { + this.startTime = startTime; + this.insertDirCount = insertDirCount; + this.updateDirCount = updateDirCount; + this.insertDirfileCount = insertDirfileCount; + this.updateDirfileCount = updateDirfileCount; + this.insertFileCount = insertFileCount; + this.updateFileCount = updateFileCount; + this.description = description; + this.runResult = runResult; + this.updateTimestamp = updateTimestamp; + this.id = id; + this.nextUpdateTimestamp = nextUpdateTimestamp; + this.endTime = endTime; + } + + /** + * Getter for public.archive_syn_log.start_time. + */ + public LocalDateTime getStartTime() { + return this.startTime; + } + + /** + * Setter for public.archive_syn_log.start_time. + */ + public void setStartTime(LocalDateTime startTime) { + this.startTime = startTime; + } + + /** + * Getter for public.archive_syn_log.insert_dir_count. + */ + public Long getInsertDirCount() { + return this.insertDirCount; + } + + /** + * Setter for public.archive_syn_log.insert_dir_count. + */ + public void setInsertDirCount(Long insertDirCount) { + this.insertDirCount = insertDirCount; + } + + /** + * Getter for public.archive_syn_log.update_dir_count. + */ + public Long getUpdateDirCount() { + return this.updateDirCount; + } + + /** + * Setter for public.archive_syn_log.update_dir_count. + */ + public void setUpdateDirCount(Long updateDirCount) { + this.updateDirCount = updateDirCount; + } + + /** + * Getter for public.archive_syn_log.insert_dirfile_count. + */ + public Long getInsertDirfileCount() { + return this.insertDirfileCount; + } + + /** + * Setter for public.archive_syn_log.insert_dirfile_count. + */ + public void setInsertDirfileCount(Long insertDirfileCount) { + this.insertDirfileCount = insertDirfileCount; + } + + /** + * Getter for public.archive_syn_log.update_dirfile_count. + */ + public Long getUpdateDirfileCount() { + return this.updateDirfileCount; + } + + /** + * Setter for public.archive_syn_log.update_dirfile_count. + */ + public void setUpdateDirfileCount(Long updateDirfileCount) { + this.updateDirfileCount = updateDirfileCount; + } + + /** + * Getter for public.archive_syn_log.insert_file_count. + */ + public Long getInsertFileCount() { + return this.insertFileCount; + } + + /** + * Setter for public.archive_syn_log.insert_file_count. + */ + public void setInsertFileCount(Long insertFileCount) { + this.insertFileCount = insertFileCount; + } + + /** + * Getter for public.archive_syn_log.update_file_count. + */ + public Long getUpdateFileCount() { + return this.updateFileCount; + } + + /** + * Setter for public.archive_syn_log.update_file_count. + */ + public void setUpdateFileCount(Long updateFileCount) { + this.updateFileCount = updateFileCount; + } + + /** + * Getter for public.archive_syn_log.description. + */ + public String getDescription() { + return this.description; + } + + /** + * Setter for public.archive_syn_log.description. + */ + public void setDescription(String description) { + this.description = description; + } + + /** + * Getter for public.archive_syn_log.run_result. + */ + public String getRunResult() { + return this.runResult; + } + + /** + * Setter for public.archive_syn_log.run_result. + */ + public void setRunResult(String runResult) { + this.runResult = runResult; + } + + /** + * Getter for public.archive_syn_log.update_timestamp. + */ + public Long getUpdateTimestamp() { + return this.updateTimestamp; + } + + /** + * Setter for public.archive_syn_log.update_timestamp. + */ + public void setUpdateTimestamp(Long updateTimestamp) { + this.updateTimestamp = updateTimestamp; + } + + /** + * Getter for public.archive_syn_log.id. + */ + public String getId() { + return this.id; + } + + /** + * Setter for public.archive_syn_log.id. + */ + public void setId(String id) { + this.id = id; + } + + /** + * Getter for public.archive_syn_log.next_update_timestamp. + */ + public Long getNextUpdateTimestamp() { + return this.nextUpdateTimestamp; + } + + /** + * Setter for public.archive_syn_log.next_update_timestamp. + */ + public void setNextUpdateTimestamp(Long nextUpdateTimestamp) { + this.nextUpdateTimestamp = nextUpdateTimestamp; + } + + /** + * Getter for public.archive_syn_log.end_time. + */ + public LocalDateTime getEndTime() { + return this.endTime; + } + + /** + * Setter for public.archive_syn_log.end_time. + */ + public void setEndTime(LocalDateTime endTime) { + this.endTime = endTime; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + if (getClass() != obj.getClass()) + return false; + final ArchiveSynLog other = (ArchiveSynLog) obj; + if (this.startTime == null) { + if (other.startTime != null) + return false; + } + else if (!this.startTime.equals(other.startTime)) + return false; + if (this.insertDirCount == null) { + if (other.insertDirCount != null) + return false; + } + else if (!this.insertDirCount.equals(other.insertDirCount)) + return false; + if (this.updateDirCount == null) { + if (other.updateDirCount != null) + return false; + } + else if (!this.updateDirCount.equals(other.updateDirCount)) + return false; + if (this.insertDirfileCount == null) { + if (other.insertDirfileCount != null) + return false; + } + else if (!this.insertDirfileCount.equals(other.insertDirfileCount)) + return false; + if (this.updateDirfileCount == null) { + if (other.updateDirfileCount != null) + return false; + } + else if (!this.updateDirfileCount.equals(other.updateDirfileCount)) + return false; + if (this.insertFileCount == null) { + if (other.insertFileCount != null) + return false; + } + else if (!this.insertFileCount.equals(other.insertFileCount)) + return false; + if (this.updateFileCount == null) { + if (other.updateFileCount != null) + return false; + } + else if (!this.updateFileCount.equals(other.updateFileCount)) + return false; + if (this.description == null) { + if (other.description != null) + return false; + } + else if (!this.description.equals(other.description)) + return false; + if (this.runResult == null) { + if (other.runResult != null) + return false; + } + else if (!this.runResult.equals(other.runResult)) + return false; + if (this.updateTimestamp == null) { + if (other.updateTimestamp != null) + return false; + } + else if (!this.updateTimestamp.equals(other.updateTimestamp)) + return false; + if (this.id == null) { + if (other.id != null) + return false; + } + else if (!this.id.equals(other.id)) + return false; + if (this.nextUpdateTimestamp == null) { + if (other.nextUpdateTimestamp != null) + return false; + } + else if (!this.nextUpdateTimestamp.equals(other.nextUpdateTimestamp)) + return false; + if (this.endTime == null) { + if (other.endTime != null) + return false; + } + else if (!this.endTime.equals(other.endTime)) + return false; + return true; + } + + @Override + public int hashCode() { + final int prime = 31; + int result = 1; + result = prime * result + ((this.startTime == null) ? 0 : this.startTime.hashCode()); + result = prime * result + ((this.insertDirCount == null) ? 0 : this.insertDirCount.hashCode()); + result = prime * result + ((this.updateDirCount == null) ? 0 : this.updateDirCount.hashCode()); + result = prime * result + ((this.insertDirfileCount == null) ? 0 : this.insertDirfileCount.hashCode()); + result = prime * result + ((this.updateDirfileCount == null) ? 0 : this.updateDirfileCount.hashCode()); + result = prime * result + ((this.insertFileCount == null) ? 0 : this.insertFileCount.hashCode()); + result = prime * result + ((this.updateFileCount == null) ? 0 : this.updateFileCount.hashCode()); + result = prime * result + ((this.description == null) ? 0 : this.description.hashCode()); + result = prime * result + ((this.runResult == null) ? 0 : this.runResult.hashCode()); + result = prime * result + ((this.updateTimestamp == null) ? 0 : this.updateTimestamp.hashCode()); + result = prime * result + ((this.id == null) ? 0 : this.id.hashCode()); + result = prime * result + ((this.nextUpdateTimestamp == null) ? 0 : this.nextUpdateTimestamp.hashCode()); + result = prime * result + ((this.endTime == null) ? 0 : this.endTime.hashCode()); + return result; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder("ArchiveSynLog ("); + + sb.append(startTime); + sb.append(", ").append(insertDirCount); + sb.append(", ").append(updateDirCount); + sb.append(", ").append(insertDirfileCount); + sb.append(", ").append(updateDirfileCount); + sb.append(", ").append(insertFileCount); + sb.append(", ").append(updateFileCount); + sb.append(", ").append(description); + sb.append(", ").append(runResult); + sb.append(", ").append(updateTimestamp); + sb.append(", ").append(id); + sb.append(", ").append(nextUpdateTimestamp); + sb.append(", ").append(endTime); + + sb.append(")"); + return sb.toString(); + } +} diff --git a/src/main/java/jj/tech/paolu/repository/jooq/tables/pojos/CertificateApply.java b/src/main/java/jj/tech/paolu/repository/jooq/tables/pojos/CertificateApply.java new file mode 100644 index 0000000..d4a71f0 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/jooq/tables/pojos/CertificateApply.java @@ -0,0 +1,498 @@ +/* + * This file is generated by jOOQ. + */ +package jj.tech.paolu.repository.jooq.tables.pojos; + + +import java.io.Serializable; +import java.time.LocalDateTime; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +public class CertificateApply implements Serializable { + + private static final long serialVersionUID = 1L; + + private String id; + private Integer isOrg; + private String userId; + private String userName; + private String userRealName; + private String userPhone; + private String userOrgId; + private String userOrgName; + private Integer applyType; + private Integer status; + private LocalDateTime applyTime; + private LocalDateTime applyFinishTime; + private String applyReason; + private String nextCheckOrgId; + private String endCheckOrgId; + private String cerId; + private String companyId; + + public CertificateApply() {} + + public CertificateApply(CertificateApply value) { + this.id = value.id; + this.isOrg = value.isOrg; + this.userId = value.userId; + this.userName = value.userName; + this.userRealName = value.userRealName; + this.userPhone = value.userPhone; + this.userOrgId = value.userOrgId; + this.userOrgName = value.userOrgName; + this.applyType = value.applyType; + this.status = value.status; + this.applyTime = value.applyTime; + this.applyFinishTime = value.applyFinishTime; + this.applyReason = value.applyReason; + this.nextCheckOrgId = value.nextCheckOrgId; + this.endCheckOrgId = value.endCheckOrgId; + this.cerId = value.cerId; + this.companyId = value.companyId; + } + + public CertificateApply( + String id, + Integer isOrg, + String userId, + String userName, + String userRealName, + String userPhone, + String userOrgId, + String userOrgName, + Integer applyType, + Integer status, + LocalDateTime applyTime, + LocalDateTime applyFinishTime, + String applyReason, + String nextCheckOrgId, + String endCheckOrgId, + String cerId, + String companyId + ) { + this.id = id; + this.isOrg = isOrg; + this.userId = userId; + this.userName = userName; + this.userRealName = userRealName; + this.userPhone = userPhone; + this.userOrgId = userOrgId; + this.userOrgName = userOrgName; + this.applyType = applyType; + this.status = status; + this.applyTime = applyTime; + this.applyFinishTime = applyFinishTime; + this.applyReason = applyReason; + this.nextCheckOrgId = nextCheckOrgId; + this.endCheckOrgId = endCheckOrgId; + this.cerId = cerId; + this.companyId = companyId; + } + + /** + * Getter for public.certificate_apply.id. + */ + public String getId() { + return this.id; + } + + /** + * Setter for public.certificate_apply.id. + */ + public void setId(String id) { + this.id = id; + } + + /** + * Getter for public.certificate_apply.is_org. + */ + public Integer getIsOrg() { + return this.isOrg; + } + + /** + * Setter for public.certificate_apply.is_org. + */ + public void setIsOrg(Integer isOrg) { + this.isOrg = isOrg; + } + + /** + * Getter for public.certificate_apply.user_id. + */ + public String getUserId() { + return this.userId; + } + + /** + * Setter for public.certificate_apply.user_id. + */ + public void setUserId(String userId) { + this.userId = userId; + } + + /** + * Getter for public.certificate_apply.user_name. + */ + public String getUserName() { + return this.userName; + } + + /** + * Setter for public.certificate_apply.user_name. + */ + public void setUserName(String userName) { + this.userName = userName; + } + + /** + * Getter for public.certificate_apply.user_real_name. + */ + public String getUserRealName() { + return this.userRealName; + } + + /** + * Setter for public.certificate_apply.user_real_name. + */ + public void setUserRealName(String userRealName) { + this.userRealName = userRealName; + } + + /** + * Getter for public.certificate_apply.user_phone. + */ + public String getUserPhone() { + return this.userPhone; + } + + /** + * Setter for public.certificate_apply.user_phone. + */ + public void setUserPhone(String userPhone) { + this.userPhone = userPhone; + } + + /** + * Getter for public.certificate_apply.user_org_id. + */ + public String getUserOrgId() { + return this.userOrgId; + } + + /** + * Setter for public.certificate_apply.user_org_id. + */ + public void setUserOrgId(String userOrgId) { + this.userOrgId = userOrgId; + } + + /** + * Getter for public.certificate_apply.user_org_name. + */ + public String getUserOrgName() { + return this.userOrgName; + } + + /** + * Setter for public.certificate_apply.user_org_name. + */ + public void setUserOrgName(String userOrgName) { + this.userOrgName = userOrgName; + } + + /** + * Getter for public.certificate_apply.apply_type. + */ + public Integer getApplyType() { + return this.applyType; + } + + /** + * Setter for public.certificate_apply.apply_type. + */ + public void setApplyType(Integer applyType) { + this.applyType = applyType; + } + + /** + * Getter for public.certificate_apply.status. + */ + public Integer getStatus() { + return this.status; + } + + /** + * Setter for public.certificate_apply.status. + */ + public void setStatus(Integer status) { + this.status = status; + } + + /** + * Getter for public.certificate_apply.apply_time. + */ + public LocalDateTime getApplyTime() { + return this.applyTime; + } + + /** + * Setter for public.certificate_apply.apply_time. + */ + public void setApplyTime(LocalDateTime applyTime) { + this.applyTime = applyTime; + } + + /** + * Getter for public.certificate_apply.apply_finish_time. + */ + public LocalDateTime getApplyFinishTime() { + return this.applyFinishTime; + } + + /** + * Setter for public.certificate_apply.apply_finish_time. + */ + public void setApplyFinishTime(LocalDateTime applyFinishTime) { + this.applyFinishTime = applyFinishTime; + } + + /** + * Getter for public.certificate_apply.apply_reason. + */ + public String getApplyReason() { + return this.applyReason; + } + + /** + * Setter for public.certificate_apply.apply_reason. + */ + public void setApplyReason(String applyReason) { + this.applyReason = applyReason; + } + + /** + * Getter for public.certificate_apply.next_check_org_id. + */ + public String getNextCheckOrgId() { + return this.nextCheckOrgId; + } + + /** + * Setter for public.certificate_apply.next_check_org_id. + */ + public void setNextCheckOrgId(String nextCheckOrgId) { + this.nextCheckOrgId = nextCheckOrgId; + } + + /** + * Getter for public.certificate_apply.end_check_org_id. + */ + public String getEndCheckOrgId() { + return this.endCheckOrgId; + } + + /** + * Setter for public.certificate_apply.end_check_org_id. + */ + public void setEndCheckOrgId(String endCheckOrgId) { + this.endCheckOrgId = endCheckOrgId; + } + + /** + * Getter for public.certificate_apply.cer_id. + */ + public String getCerId() { + return this.cerId; + } + + /** + * Setter for public.certificate_apply.cer_id. + */ + public void setCerId(String cerId) { + this.cerId = cerId; + } + + /** + * Getter for public.certificate_apply.company_id. + */ + public String getCompanyId() { + return this.companyId; + } + + /** + * Setter for public.certificate_apply.company_id. + */ + public void setCompanyId(String companyId) { + this.companyId = companyId; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + if (getClass() != obj.getClass()) + return false; + final CertificateApply other = (CertificateApply) obj; + if (this.id == null) { + if (other.id != null) + return false; + } + else if (!this.id.equals(other.id)) + return false; + if (this.isOrg == null) { + if (other.isOrg != null) + return false; + } + else if (!this.isOrg.equals(other.isOrg)) + return false; + if (this.userId == null) { + if (other.userId != null) + return false; + } + else if (!this.userId.equals(other.userId)) + return false; + if (this.userName == null) { + if (other.userName != null) + return false; + } + else if (!this.userName.equals(other.userName)) + return false; + if (this.userRealName == null) { + if (other.userRealName != null) + return false; + } + else if (!this.userRealName.equals(other.userRealName)) + return false; + if (this.userPhone == null) { + if (other.userPhone != null) + return false; + } + else if (!this.userPhone.equals(other.userPhone)) + return false; + if (this.userOrgId == null) { + if (other.userOrgId != null) + return false; + } + else if (!this.userOrgId.equals(other.userOrgId)) + return false; + if (this.userOrgName == null) { + if (other.userOrgName != null) + return false; + } + else if (!this.userOrgName.equals(other.userOrgName)) + return false; + if (this.applyType == null) { + if (other.applyType != null) + return false; + } + else if (!this.applyType.equals(other.applyType)) + return false; + if (this.status == null) { + if (other.status != null) + return false; + } + else if (!this.status.equals(other.status)) + return false; + if (this.applyTime == null) { + if (other.applyTime != null) + return false; + } + else if (!this.applyTime.equals(other.applyTime)) + return false; + if (this.applyFinishTime == null) { + if (other.applyFinishTime != null) + return false; + } + else if (!this.applyFinishTime.equals(other.applyFinishTime)) + return false; + if (this.applyReason == null) { + if (other.applyReason != null) + return false; + } + else if (!this.applyReason.equals(other.applyReason)) + return false; + if (this.nextCheckOrgId == null) { + if (other.nextCheckOrgId != null) + return false; + } + else if (!this.nextCheckOrgId.equals(other.nextCheckOrgId)) + return false; + if (this.endCheckOrgId == null) { + if (other.endCheckOrgId != null) + return false; + } + else if (!this.endCheckOrgId.equals(other.endCheckOrgId)) + return false; + if (this.cerId == null) { + if (other.cerId != null) + return false; + } + else if (!this.cerId.equals(other.cerId)) + return false; + if (this.companyId == null) { + if (other.companyId != null) + return false; + } + else if (!this.companyId.equals(other.companyId)) + return false; + return true; + } + + @Override + public int hashCode() { + final int prime = 31; + int result = 1; + result = prime * result + ((this.id == null) ? 0 : this.id.hashCode()); + result = prime * result + ((this.isOrg == null) ? 0 : this.isOrg.hashCode()); + result = prime * result + ((this.userId == null) ? 0 : this.userId.hashCode()); + result = prime * result + ((this.userName == null) ? 0 : this.userName.hashCode()); + result = prime * result + ((this.userRealName == null) ? 0 : this.userRealName.hashCode()); + result = prime * result + ((this.userPhone == null) ? 0 : this.userPhone.hashCode()); + result = prime * result + ((this.userOrgId == null) ? 0 : this.userOrgId.hashCode()); + result = prime * result + ((this.userOrgName == null) ? 0 : this.userOrgName.hashCode()); + result = prime * result + ((this.applyType == null) ? 0 : this.applyType.hashCode()); + result = prime * result + ((this.status == null) ? 0 : this.status.hashCode()); + result = prime * result + ((this.applyTime == null) ? 0 : this.applyTime.hashCode()); + result = prime * result + ((this.applyFinishTime == null) ? 0 : this.applyFinishTime.hashCode()); + result = prime * result + ((this.applyReason == null) ? 0 : this.applyReason.hashCode()); + result = prime * result + ((this.nextCheckOrgId == null) ? 0 : this.nextCheckOrgId.hashCode()); + result = prime * result + ((this.endCheckOrgId == null) ? 0 : this.endCheckOrgId.hashCode()); + result = prime * result + ((this.cerId == null) ? 0 : this.cerId.hashCode()); + result = prime * result + ((this.companyId == null) ? 0 : this.companyId.hashCode()); + return result; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder("CertificateApply ("); + + sb.append(id); + sb.append(", ").append(isOrg); + sb.append(", ").append(userId); + sb.append(", ").append(userName); + sb.append(", ").append(userRealName); + sb.append(", ").append(userPhone); + sb.append(", ").append(userOrgId); + sb.append(", ").append(userOrgName); + sb.append(", ").append(applyType); + sb.append(", ").append(status); + sb.append(", ").append(applyTime); + sb.append(", ").append(applyFinishTime); + sb.append(", ").append(applyReason); + sb.append(", ").append(nextCheckOrgId); + sb.append(", ").append(endCheckOrgId); + sb.append(", ").append(cerId); + sb.append(", ").append(companyId); + + sb.append(")"); + return sb.toString(); + } +} diff --git a/src/main/java/jj/tech/paolu/repository/jooq/tables/pojos/CertificateApplyRecord.java b/src/main/java/jj/tech/paolu/repository/jooq/tables/pojos/CertificateApplyRecord.java new file mode 100644 index 0000000..c0bf958 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/jooq/tables/pojos/CertificateApplyRecord.java @@ -0,0 +1,456 @@ +/* + * This file is generated by jOOQ. + */ +package jj.tech.paolu.repository.jooq.tables.pojos; + + +import java.io.Serializable; +import java.time.LocalDateTime; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +public class CertificateApplyRecord implements Serializable { + + private static final long serialVersionUID = 1L; + + private String id; + private String certificateApplyId; + private String certificateApplyUserId; + private String certificateApplyUserOrgId; + private Integer isOrg; + private Integer applyType; + private String checkUserId; + private String checkUserName; + private String checkOrgId; + private String checkOrgName; + private String checkDescribe; + private Integer checkStatus; + private LocalDateTime checkTime; + private String nextCheckOrgId; + private String nextCheckOrgName; + + public CertificateApplyRecord() {} + + public CertificateApplyRecord(CertificateApplyRecord value) { + this.id = value.id; + this.certificateApplyId = value.certificateApplyId; + this.certificateApplyUserId = value.certificateApplyUserId; + this.certificateApplyUserOrgId = value.certificateApplyUserOrgId; + this.isOrg = value.isOrg; + this.applyType = value.applyType; + this.checkUserId = value.checkUserId; + this.checkUserName = value.checkUserName; + this.checkOrgId = value.checkOrgId; + this.checkOrgName = value.checkOrgName; + this.checkDescribe = value.checkDescribe; + this.checkStatus = value.checkStatus; + this.checkTime = value.checkTime; + this.nextCheckOrgId = value.nextCheckOrgId; + this.nextCheckOrgName = value.nextCheckOrgName; + } + + public CertificateApplyRecord( + String id, + String certificateApplyId, + String certificateApplyUserId, + String certificateApplyUserOrgId, + Integer isOrg, + Integer applyType, + String checkUserId, + String checkUserName, + String checkOrgId, + String checkOrgName, + String checkDescribe, + Integer checkStatus, + LocalDateTime checkTime, + String nextCheckOrgId, + String nextCheckOrgName + ) { + this.id = id; + this.certificateApplyId = certificateApplyId; + this.certificateApplyUserId = certificateApplyUserId; + this.certificateApplyUserOrgId = certificateApplyUserOrgId; + this.isOrg = isOrg; + this.applyType = applyType; + this.checkUserId = checkUserId; + this.checkUserName = checkUserName; + this.checkOrgId = checkOrgId; + this.checkOrgName = checkOrgName; + this.checkDescribe = checkDescribe; + this.checkStatus = checkStatus; + this.checkTime = checkTime; + this.nextCheckOrgId = nextCheckOrgId; + this.nextCheckOrgName = nextCheckOrgName; + } + + /** + * Getter for public.certificate_apply_record.id. + */ + public String getId() { + return this.id; + } + + /** + * Setter for public.certificate_apply_record.id. + */ + public void setId(String id) { + this.id = id; + } + + /** + * Getter for + * public.certificate_apply_record.certificate_apply_id. + */ + public String getCertificateApplyId() { + return this.certificateApplyId; + } + + /** + * Setter for + * public.certificate_apply_record.certificate_apply_id. + */ + public void setCertificateApplyId(String certificateApplyId) { + this.certificateApplyId = certificateApplyId; + } + + /** + * Getter for + * public.certificate_apply_record.certificate_apply_user_id. + */ + public String getCertificateApplyUserId() { + return this.certificateApplyUserId; + } + + /** + * Setter for + * public.certificate_apply_record.certificate_apply_user_id. + */ + public void setCertificateApplyUserId(String certificateApplyUserId) { + this.certificateApplyUserId = certificateApplyUserId; + } + + /** + * Getter for + * public.certificate_apply_record.certificate_apply_user_org_id. + */ + public String getCertificateApplyUserOrgId() { + return this.certificateApplyUserOrgId; + } + + /** + * Setter for + * public.certificate_apply_record.certificate_apply_user_org_id. + */ + public void setCertificateApplyUserOrgId(String certificateApplyUserOrgId) { + this.certificateApplyUserOrgId = certificateApplyUserOrgId; + } + + /** + * Getter for public.certificate_apply_record.is_org. + */ + public Integer getIsOrg() { + return this.isOrg; + } + + /** + * Setter for public.certificate_apply_record.is_org. + */ + public void setIsOrg(Integer isOrg) { + this.isOrg = isOrg; + } + + /** + * Getter for public.certificate_apply_record.apply_type. + */ + public Integer getApplyType() { + return this.applyType; + } + + /** + * Setter for public.certificate_apply_record.apply_type. + */ + public void setApplyType(Integer applyType) { + this.applyType = applyType; + } + + /** + * Getter for public.certificate_apply_record.check_user_id. + */ + public String getCheckUserId() { + return this.checkUserId; + } + + /** + * Setter for public.certificate_apply_record.check_user_id. + */ + public void setCheckUserId(String checkUserId) { + this.checkUserId = checkUserId; + } + + /** + * Getter for public.certificate_apply_record.check_user_name. + */ + public String getCheckUserName() { + return this.checkUserName; + } + + /** + * Setter for public.certificate_apply_record.check_user_name. + */ + public void setCheckUserName(String checkUserName) { + this.checkUserName = checkUserName; + } + + /** + * Getter for public.certificate_apply_record.check_org_id. + */ + public String getCheckOrgId() { + return this.checkOrgId; + } + + /** + * Setter for public.certificate_apply_record.check_org_id. + */ + public void setCheckOrgId(String checkOrgId) { + this.checkOrgId = checkOrgId; + } + + /** + * Getter for public.certificate_apply_record.check_org_name. + */ + public String getCheckOrgName() { + return this.checkOrgName; + } + + /** + * Setter for public.certificate_apply_record.check_org_name. + */ + public void setCheckOrgName(String checkOrgName) { + this.checkOrgName = checkOrgName; + } + + /** + * Getter for public.certificate_apply_record.check_describe. + */ + public String getCheckDescribe() { + return this.checkDescribe; + } + + /** + * Setter for public.certificate_apply_record.check_describe. + */ + public void setCheckDescribe(String checkDescribe) { + this.checkDescribe = checkDescribe; + } + + /** + * Getter for public.certificate_apply_record.check_status. + */ + public Integer getCheckStatus() { + return this.checkStatus; + } + + /** + * Setter for public.certificate_apply_record.check_status. + */ + public void setCheckStatus(Integer checkStatus) { + this.checkStatus = checkStatus; + } + + /** + * Getter for public.certificate_apply_record.check_time. + */ + public LocalDateTime getCheckTime() { + return this.checkTime; + } + + /** + * Setter for public.certificate_apply_record.check_time. + */ + public void setCheckTime(LocalDateTime checkTime) { + this.checkTime = checkTime; + } + + /** + * Getter for + * public.certificate_apply_record.next_check_org_id. + */ + public String getNextCheckOrgId() { + return this.nextCheckOrgId; + } + + /** + * Setter for + * public.certificate_apply_record.next_check_org_id. + */ + public void setNextCheckOrgId(String nextCheckOrgId) { + this.nextCheckOrgId = nextCheckOrgId; + } + + /** + * Getter for + * public.certificate_apply_record.next_check_org_name. + */ + public String getNextCheckOrgName() { + return this.nextCheckOrgName; + } + + /** + * Setter for + * public.certificate_apply_record.next_check_org_name. + */ + public void setNextCheckOrgName(String nextCheckOrgName) { + this.nextCheckOrgName = nextCheckOrgName; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + if (getClass() != obj.getClass()) + return false; + final CertificateApplyRecord other = (CertificateApplyRecord) obj; + if (this.id == null) { + if (other.id != null) + return false; + } + else if (!this.id.equals(other.id)) + return false; + if (this.certificateApplyId == null) { + if (other.certificateApplyId != null) + return false; + } + else if (!this.certificateApplyId.equals(other.certificateApplyId)) + return false; + if (this.certificateApplyUserId == null) { + if (other.certificateApplyUserId != null) + return false; + } + else if (!this.certificateApplyUserId.equals(other.certificateApplyUserId)) + return false; + if (this.certificateApplyUserOrgId == null) { + if (other.certificateApplyUserOrgId != null) + return false; + } + else if (!this.certificateApplyUserOrgId.equals(other.certificateApplyUserOrgId)) + return false; + if (this.isOrg == null) { + if (other.isOrg != null) + return false; + } + else if (!this.isOrg.equals(other.isOrg)) + return false; + if (this.applyType == null) { + if (other.applyType != null) + return false; + } + else if (!this.applyType.equals(other.applyType)) + return false; + if (this.checkUserId == null) { + if (other.checkUserId != null) + return false; + } + else if (!this.checkUserId.equals(other.checkUserId)) + return false; + if (this.checkUserName == null) { + if (other.checkUserName != null) + return false; + } + else if (!this.checkUserName.equals(other.checkUserName)) + return false; + if (this.checkOrgId == null) { + if (other.checkOrgId != null) + return false; + } + else if (!this.checkOrgId.equals(other.checkOrgId)) + return false; + if (this.checkOrgName == null) { + if (other.checkOrgName != null) + return false; + } + else if (!this.checkOrgName.equals(other.checkOrgName)) + return false; + if (this.checkDescribe == null) { + if (other.checkDescribe != null) + return false; + } + else if (!this.checkDescribe.equals(other.checkDescribe)) + return false; + if (this.checkStatus == null) { + if (other.checkStatus != null) + return false; + } + else if (!this.checkStatus.equals(other.checkStatus)) + return false; + if (this.checkTime == null) { + if (other.checkTime != null) + return false; + } + else if (!this.checkTime.equals(other.checkTime)) + return false; + if (this.nextCheckOrgId == null) { + if (other.nextCheckOrgId != null) + return false; + } + else if (!this.nextCheckOrgId.equals(other.nextCheckOrgId)) + return false; + if (this.nextCheckOrgName == null) { + if (other.nextCheckOrgName != null) + return false; + } + else if (!this.nextCheckOrgName.equals(other.nextCheckOrgName)) + return false; + return true; + } + + @Override + public int hashCode() { + final int prime = 31; + int result = 1; + result = prime * result + ((this.id == null) ? 0 : this.id.hashCode()); + result = prime * result + ((this.certificateApplyId == null) ? 0 : this.certificateApplyId.hashCode()); + result = prime * result + ((this.certificateApplyUserId == null) ? 0 : this.certificateApplyUserId.hashCode()); + result = prime * result + ((this.certificateApplyUserOrgId == null) ? 0 : this.certificateApplyUserOrgId.hashCode()); + result = prime * result + ((this.isOrg == null) ? 0 : this.isOrg.hashCode()); + result = prime * result + ((this.applyType == null) ? 0 : this.applyType.hashCode()); + result = prime * result + ((this.checkUserId == null) ? 0 : this.checkUserId.hashCode()); + result = prime * result + ((this.checkUserName == null) ? 0 : this.checkUserName.hashCode()); + result = prime * result + ((this.checkOrgId == null) ? 0 : this.checkOrgId.hashCode()); + result = prime * result + ((this.checkOrgName == null) ? 0 : this.checkOrgName.hashCode()); + result = prime * result + ((this.checkDescribe == null) ? 0 : this.checkDescribe.hashCode()); + result = prime * result + ((this.checkStatus == null) ? 0 : this.checkStatus.hashCode()); + result = prime * result + ((this.checkTime == null) ? 0 : this.checkTime.hashCode()); + result = prime * result + ((this.nextCheckOrgId == null) ? 0 : this.nextCheckOrgId.hashCode()); + result = prime * result + ((this.nextCheckOrgName == null) ? 0 : this.nextCheckOrgName.hashCode()); + return result; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder("CertificateApplyRecord ("); + + sb.append(id); + sb.append(", ").append(certificateApplyId); + sb.append(", ").append(certificateApplyUserId); + sb.append(", ").append(certificateApplyUserOrgId); + sb.append(", ").append(isOrg); + sb.append(", ").append(applyType); + sb.append(", ").append(checkUserId); + sb.append(", ").append(checkUserName); + sb.append(", ").append(checkOrgId); + sb.append(", ").append(checkOrgName); + sb.append(", ").append(checkDescribe); + sb.append(", ").append(checkStatus); + sb.append(", ").append(checkTime); + sb.append(", ").append(nextCheckOrgId); + sb.append(", ").append(nextCheckOrgName); + + sb.append(")"); + return sb.toString(); + } +} diff --git a/src/main/java/jj/tech/paolu/repository/jooq/tables/pojos/CertificateDetail.java b/src/main/java/jj/tech/paolu/repository/jooq/tables/pojos/CertificateDetail.java new file mode 100644 index 0000000..6a8737e --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/jooq/tables/pojos/CertificateDetail.java @@ -0,0 +1,420 @@ +/* + * This file is generated by jOOQ. + */ +package jj.tech.paolu.repository.jooq.tables.pojos; + + +import java.io.Serializable; +import java.time.LocalDateTime; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +public class CertificateDetail implements Serializable { + + private static final long serialVersionUID = 1L; + + private String id; + private String certificateApplyId; + private LocalDateTime workStartTime; + private LocalDateTime workEndTime; + private Integer status; + private String certFileContent; + private Integer isUpChain; + private String weid; + private String privateKeyHexStr; + private String x509SerialNumber; + private String x509Subject; + private String x509Issuer; + private String x509PublicKey; + private String x509SigAlgName; + + public CertificateDetail() {} + + public CertificateDetail(CertificateDetail value) { + this.id = value.id; + this.certificateApplyId = value.certificateApplyId; + this.workStartTime = value.workStartTime; + this.workEndTime = value.workEndTime; + this.status = value.status; + this.certFileContent = value.certFileContent; + this.isUpChain = value.isUpChain; + this.weid = value.weid; + this.privateKeyHexStr = value.privateKeyHexStr; + this.x509SerialNumber = value.x509SerialNumber; + this.x509Subject = value.x509Subject; + this.x509Issuer = value.x509Issuer; + this.x509PublicKey = value.x509PublicKey; + this.x509SigAlgName = value.x509SigAlgName; + } + + public CertificateDetail( + String id, + String certificateApplyId, + LocalDateTime workStartTime, + LocalDateTime workEndTime, + Integer status, + String certFileContent, + Integer isUpChain, + String weid, + String privateKeyHexStr, + String x509SerialNumber, + String x509Subject, + String x509Issuer, + String x509PublicKey, + String x509SigAlgName + ) { + this.id = id; + this.certificateApplyId = certificateApplyId; + this.workStartTime = workStartTime; + this.workEndTime = workEndTime; + this.status = status; + this.certFileContent = certFileContent; + this.isUpChain = isUpChain; + this.weid = weid; + this.privateKeyHexStr = privateKeyHexStr; + this.x509SerialNumber = x509SerialNumber; + this.x509Subject = x509Subject; + this.x509Issuer = x509Issuer; + this.x509PublicKey = x509PublicKey; + this.x509SigAlgName = x509SigAlgName; + } + + /** + * Getter for public.certificate_detail.id. + */ + public String getId() { + return this.id; + } + + /** + * Setter for public.certificate_detail.id. + */ + public void setId(String id) { + this.id = id; + } + + /** + * Getter for public.certificate_detail.certificate_apply_id. + */ + public String getCertificateApplyId() { + return this.certificateApplyId; + } + + /** + * Setter for public.certificate_detail.certificate_apply_id. + */ + public void setCertificateApplyId(String certificateApplyId) { + this.certificateApplyId = certificateApplyId; + } + + /** + * Getter for public.certificate_detail.work_start_time. + */ + public LocalDateTime getWorkStartTime() { + return this.workStartTime; + } + + /** + * Setter for public.certificate_detail.work_start_time. + */ + public void setWorkStartTime(LocalDateTime workStartTime) { + this.workStartTime = workStartTime; + } + + /** + * Getter for public.certificate_detail.work_end_time. + */ + public LocalDateTime getWorkEndTime() { + return this.workEndTime; + } + + /** + * Setter for public.certificate_detail.work_end_time. + */ + public void setWorkEndTime(LocalDateTime workEndTime) { + this.workEndTime = workEndTime; + } + + /** + * Getter for public.certificate_detail.status. + */ + public Integer getStatus() { + return this.status; + } + + /** + * Setter for public.certificate_detail.status. + */ + public void setStatus(Integer status) { + this.status = status; + } + + /** + * Getter for public.certificate_detail.cert_file_content. + */ + public String getCertFileContent() { + return this.certFileContent; + } + + /** + * Setter for public.certificate_detail.cert_file_content. + */ + public void setCertFileContent(String certFileContent) { + this.certFileContent = certFileContent; + } + + /** + * Getter for public.certificate_detail.is_up_chain. + */ + public Integer getIsUpChain() { + return this.isUpChain; + } + + /** + * Setter for public.certificate_detail.is_up_chain. + */ + public void setIsUpChain(Integer isUpChain) { + this.isUpChain = isUpChain; + } + + /** + * Getter for public.certificate_detail.weid. + */ + public String getWeid() { + return this.weid; + } + + /** + * Setter for public.certificate_detail.weid. + */ + public void setWeid(String weid) { + this.weid = weid; + } + + /** + * Getter for public.certificate_detail.private_key_hex_str. + */ + public String getPrivateKeyHexStr() { + return this.privateKeyHexStr; + } + + /** + * Setter for public.certificate_detail.private_key_hex_str. + */ + public void setPrivateKeyHexStr(String privateKeyHexStr) { + this.privateKeyHexStr = privateKeyHexStr; + } + + /** + * Getter for public.certificate_detail.x509_serial_number. + */ + public String getX509SerialNumber() { + return this.x509SerialNumber; + } + + /** + * Setter for public.certificate_detail.x509_serial_number. + */ + public void setX509SerialNumber(String x509SerialNumber) { + this.x509SerialNumber = x509SerialNumber; + } + + /** + * Getter for public.certificate_detail.x509_subject. + */ + public String getX509Subject() { + return this.x509Subject; + } + + /** + * Setter for public.certificate_detail.x509_subject. + */ + public void setX509Subject(String x509Subject) { + this.x509Subject = x509Subject; + } + + /** + * Getter for public.certificate_detail.x509_issuer. + */ + public String getX509Issuer() { + return this.x509Issuer; + } + + /** + * Setter for public.certificate_detail.x509_issuer. + */ + public void setX509Issuer(String x509Issuer) { + this.x509Issuer = x509Issuer; + } + + /** + * Getter for public.certificate_detail.x509_public_key. + */ + public String getX509PublicKey() { + return this.x509PublicKey; + } + + /** + * Setter for public.certificate_detail.x509_public_key. + */ + public void setX509PublicKey(String x509PublicKey) { + this.x509PublicKey = x509PublicKey; + } + + /** + * Getter for public.certificate_detail.x509_sig_alg_name. + */ + public String getX509SigAlgName() { + return this.x509SigAlgName; + } + + /** + * Setter for public.certificate_detail.x509_sig_alg_name. + */ + public void setX509SigAlgName(String x509SigAlgName) { + this.x509SigAlgName = x509SigAlgName; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + if (getClass() != obj.getClass()) + return false; + final CertificateDetail other = (CertificateDetail) obj; + if (this.id == null) { + if (other.id != null) + return false; + } + else if (!this.id.equals(other.id)) + return false; + if (this.certificateApplyId == null) { + if (other.certificateApplyId != null) + return false; + } + else if (!this.certificateApplyId.equals(other.certificateApplyId)) + return false; + if (this.workStartTime == null) { + if (other.workStartTime != null) + return false; + } + else if (!this.workStartTime.equals(other.workStartTime)) + return false; + if (this.workEndTime == null) { + if (other.workEndTime != null) + return false; + } + else if (!this.workEndTime.equals(other.workEndTime)) + return false; + if (this.status == null) { + if (other.status != null) + return false; + } + else if (!this.status.equals(other.status)) + return false; + if (this.certFileContent == null) { + if (other.certFileContent != null) + return false; + } + else if (!this.certFileContent.equals(other.certFileContent)) + return false; + if (this.isUpChain == null) { + if (other.isUpChain != null) + return false; + } + else if (!this.isUpChain.equals(other.isUpChain)) + return false; + if (this.weid == null) { + if (other.weid != null) + return false; + } + else if (!this.weid.equals(other.weid)) + return false; + if (this.privateKeyHexStr == null) { + if (other.privateKeyHexStr != null) + return false; + } + else if (!this.privateKeyHexStr.equals(other.privateKeyHexStr)) + return false; + if (this.x509SerialNumber == null) { + if (other.x509SerialNumber != null) + return false; + } + else if (!this.x509SerialNumber.equals(other.x509SerialNumber)) + return false; + if (this.x509Subject == null) { + if (other.x509Subject != null) + return false; + } + else if (!this.x509Subject.equals(other.x509Subject)) + return false; + if (this.x509Issuer == null) { + if (other.x509Issuer != null) + return false; + } + else if (!this.x509Issuer.equals(other.x509Issuer)) + return false; + if (this.x509PublicKey == null) { + if (other.x509PublicKey != null) + return false; + } + else if (!this.x509PublicKey.equals(other.x509PublicKey)) + return false; + if (this.x509SigAlgName == null) { + if (other.x509SigAlgName != null) + return false; + } + else if (!this.x509SigAlgName.equals(other.x509SigAlgName)) + return false; + return true; + } + + @Override + public int hashCode() { + final int prime = 31; + int result = 1; + result = prime * result + ((this.id == null) ? 0 : this.id.hashCode()); + result = prime * result + ((this.certificateApplyId == null) ? 0 : this.certificateApplyId.hashCode()); + result = prime * result + ((this.workStartTime == null) ? 0 : this.workStartTime.hashCode()); + result = prime * result + ((this.workEndTime == null) ? 0 : this.workEndTime.hashCode()); + result = prime * result + ((this.status == null) ? 0 : this.status.hashCode()); + result = prime * result + ((this.certFileContent == null) ? 0 : this.certFileContent.hashCode()); + result = prime * result + ((this.isUpChain == null) ? 0 : this.isUpChain.hashCode()); + result = prime * result + ((this.weid == null) ? 0 : this.weid.hashCode()); + result = prime * result + ((this.privateKeyHexStr == null) ? 0 : this.privateKeyHexStr.hashCode()); + result = prime * result + ((this.x509SerialNumber == null) ? 0 : this.x509SerialNumber.hashCode()); + result = prime * result + ((this.x509Subject == null) ? 0 : this.x509Subject.hashCode()); + result = prime * result + ((this.x509Issuer == null) ? 0 : this.x509Issuer.hashCode()); + result = prime * result + ((this.x509PublicKey == null) ? 0 : this.x509PublicKey.hashCode()); + result = prime * result + ((this.x509SigAlgName == null) ? 0 : this.x509SigAlgName.hashCode()); + return result; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder("CertificateDetail ("); + + sb.append(id); + sb.append(", ").append(certificateApplyId); + sb.append(", ").append(workStartTime); + sb.append(", ").append(workEndTime); + sb.append(", ").append(status); + sb.append(", ").append(certFileContent); + sb.append(", ").append(isUpChain); + sb.append(", ").append(weid); + sb.append(", ").append(privateKeyHexStr); + sb.append(", ").append(x509SerialNumber); + sb.append(", ").append(x509Subject); + sb.append(", ").append(x509Issuer); + sb.append(", ").append(x509PublicKey); + sb.append(", ").append(x509SigAlgName); + + sb.append(")"); + return sb.toString(); + } +} diff --git a/src/main/java/jj/tech/paolu/repository/jooq/tables/pojos/DecryptLog.java b/src/main/java/jj/tech/paolu/repository/jooq/tables/pojos/DecryptLog.java new file mode 100644 index 0000000..aa37a2c --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/jooq/tables/pojos/DecryptLog.java @@ -0,0 +1,290 @@ +/* + * This file is generated by jOOQ. + */ +package jj.tech.paolu.repository.jooq.tables.pojos; + + +import java.io.Serializable; +import java.time.LocalDateTime; + + +/** + * 解密情况 + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +public class DecryptLog implements Serializable { + + private static final long serialVersionUID = 1L; + + private String id; + private String weid; + private Integer contentType; + private String contentId; + private LocalDateTime decTime; + private String location; + private String sm9hibeid; + private Integer status; + private String sign; + + public DecryptLog() {} + + public DecryptLog(DecryptLog value) { + this.id = value.id; + this.weid = value.weid; + this.contentType = value.contentType; + this.contentId = value.contentId; + this.decTime = value.decTime; + this.location = value.location; + this.sm9hibeid = value.sm9hibeid; + this.status = value.status; + this.sign = value.sign; + } + + public DecryptLog( + String id, + String weid, + Integer contentType, + String contentId, + LocalDateTime decTime, + String location, + String sm9hibeid, + Integer status, + String sign + ) { + this.id = id; + this.weid = weid; + this.contentType = contentType; + this.contentId = contentId; + this.decTime = decTime; + this.location = location; + this.sm9hibeid = sm9hibeid; + this.status = status; + this.sign = sign; + } + + /** + * Getter for public.decrypt_log.id. + */ + public String getId() { + return this.id; + } + + /** + * Setter for public.decrypt_log.id. + */ + public void setId(String id) { + this.id = id; + } + + /** + * Getter for public.decrypt_log.weid. 申请人id + */ + public String getWeid() { + return this.weid; + } + + /** + * Setter for public.decrypt_log.weid. 申请人id + */ + public void setWeid(String weid) { + this.weid = weid; + } + + /** + * Getter for public.decrypt_log.content_type. 档案类型(0件/1件内文件) + */ + public Integer getContentType() { + return this.contentType; + } + + /** + * Setter for public.decrypt_log.content_type. 档案类型(0件/1件内文件) + */ + public void setContentType(Integer contentType) { + this.contentType = contentType; + } + + /** + * Getter for public.decrypt_log.content_id. 档案id + */ + public String getContentId() { + return this.contentId; + } + + /** + * Setter for public.decrypt_log.content_id. 档案id + */ + public void setContentId(String contentId) { + this.contentId = contentId; + } + + /** + * Getter for public.decrypt_log.dec_time. 解密时间 + */ + public LocalDateTime getDecTime() { + return this.decTime; + } + + /** + * Setter for public.decrypt_log.dec_time. 解密时间 + */ + public void setDecTime(LocalDateTime decTime) { + this.decTime = decTime; + } + + /** + * Getter for public.decrypt_log.location. 区域 + */ + public String getLocation() { + return this.location; + } + + /** + * Setter for public.decrypt_log.location. 区域 + */ + public void setLocation(String location) { + this.location = location; + } + + /** + * Getter for public.decrypt_log.sm9hibeid. 秘钥id + */ + public String getSm9hibeid() { + return this.sm9hibeid; + } + + /** + * Setter for public.decrypt_log.sm9hibeid. 秘钥id + */ + public void setSm9hibeid(String sm9hibeid) { + this.sm9hibeid = sm9hibeid; + } + + /** + * Getter for public.decrypt_log.status. 解密结果(0失败1成功) + */ + public Integer getStatus() { + return this.status; + } + + /** + * Setter for public.decrypt_log.status. 解密结果(0失败1成功) + */ + public void setStatus(Integer status) { + this.status = status; + } + + /** + * Getter for public.decrypt_log.sign. 数字签名 + */ + public String getSign() { + return this.sign; + } + + /** + * Setter for public.decrypt_log.sign. 数字签名 + */ + public void setSign(String sign) { + this.sign = sign; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + if (getClass() != obj.getClass()) + return false; + final DecryptLog other = (DecryptLog) obj; + if (this.id == null) { + if (other.id != null) + return false; + } + else if (!this.id.equals(other.id)) + return false; + if (this.weid == null) { + if (other.weid != null) + return false; + } + else if (!this.weid.equals(other.weid)) + return false; + if (this.contentType == null) { + if (other.contentType != null) + return false; + } + else if (!this.contentType.equals(other.contentType)) + return false; + if (this.contentId == null) { + if (other.contentId != null) + return false; + } + else if (!this.contentId.equals(other.contentId)) + return false; + if (this.decTime == null) { + if (other.decTime != null) + return false; + } + else if (!this.decTime.equals(other.decTime)) + return false; + if (this.location == null) { + if (other.location != null) + return false; + } + else if (!this.location.equals(other.location)) + return false; + if (this.sm9hibeid == null) { + if (other.sm9hibeid != null) + return false; + } + else if (!this.sm9hibeid.equals(other.sm9hibeid)) + return false; + if (this.status == null) { + if (other.status != null) + return false; + } + else if (!this.status.equals(other.status)) + return false; + if (this.sign == null) { + if (other.sign != null) + return false; + } + else if (!this.sign.equals(other.sign)) + return false; + return true; + } + + @Override + public int hashCode() { + final int prime = 31; + int result = 1; + result = prime * result + ((this.id == null) ? 0 : this.id.hashCode()); + result = prime * result + ((this.weid == null) ? 0 : this.weid.hashCode()); + result = prime * result + ((this.contentType == null) ? 0 : this.contentType.hashCode()); + result = prime * result + ((this.contentId == null) ? 0 : this.contentId.hashCode()); + result = prime * result + ((this.decTime == null) ? 0 : this.decTime.hashCode()); + result = prime * result + ((this.location == null) ? 0 : this.location.hashCode()); + result = prime * result + ((this.sm9hibeid == null) ? 0 : this.sm9hibeid.hashCode()); + result = prime * result + ((this.status == null) ? 0 : this.status.hashCode()); + result = prime * result + ((this.sign == null) ? 0 : this.sign.hashCode()); + return result; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder("DecryptLog ("); + + sb.append(id); + sb.append(", ").append(weid); + sb.append(", ").append(contentType); + sb.append(", ").append(contentId); + sb.append(", ").append(decTime); + sb.append(", ").append(location); + sb.append(", ").append(sm9hibeid); + sb.append(", ").append(status); + sb.append(", ").append(sign); + + sb.append(")"); + return sb.toString(); + } +} diff --git a/src/main/java/jj/tech/paolu/repository/jooq/tables/pojos/DownloadLog.java b/src/main/java/jj/tech/paolu/repository/jooq/tables/pojos/DownloadLog.java new file mode 100644 index 0000000..0101d9a --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/jooq/tables/pojos/DownloadLog.java @@ -0,0 +1,242 @@ +/* + * This file is generated by jOOQ. + */ +package jj.tech.paolu.repository.jooq.tables.pojos; + + +import java.io.Serializable; +import java.time.LocalDateTime; + + +/** + * 下载行为记录 + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +public class DownloadLog implements Serializable { + + private static final long serialVersionUID = 1L; + + private String id; + private String weid; + private LocalDateTime downloadtime; + private Integer filenum; + private Integer contentType; + private String contentid; + private String sign; + + public DownloadLog() {} + + public DownloadLog(DownloadLog value) { + this.id = value.id; + this.weid = value.weid; + this.downloadtime = value.downloadtime; + this.filenum = value.filenum; + this.contentType = value.contentType; + this.contentid = value.contentid; + this.sign = value.sign; + } + + public DownloadLog( + String id, + String weid, + LocalDateTime downloadtime, + Integer filenum, + Integer contentType, + String contentid, + String sign + ) { + this.id = id; + this.weid = weid; + this.downloadtime = downloadtime; + this.filenum = filenum; + this.contentType = contentType; + this.contentid = contentid; + this.sign = sign; + } + + /** + * Getter for public.download_log.id. + */ + public String getId() { + return this.id; + } + + /** + * Setter for public.download_log.id. + */ + public void setId(String id) { + this.id = id; + } + + /** + * Getter for public.download_log.weid. weid + */ + public String getWeid() { + return this.weid; + } + + /** + * Setter for public.download_log.weid. weid + */ + public void setWeid(String weid) { + this.weid = weid; + } + + /** + * Getter for public.download_log.downloadtime. 下载时间 + */ + public LocalDateTime getDownloadtime() { + return this.downloadtime; + } + + /** + * Setter for public.download_log.downloadtime. 下载时间 + */ + public void setDownloadtime(LocalDateTime downloadtime) { + this.downloadtime = downloadtime; + } + + /** + * Getter for public.download_log.filenum. 下载文件数 + */ + public Integer getFilenum() { + return this.filenum; + } + + /** + * Setter for public.download_log.filenum. 下载文件数 + */ + public void setFilenum(Integer filenum) { + this.filenum = filenum; + } + + /** + * Getter for public.download_log.content_type. + * 下载类型(1文件包/2单个附件(SyncFile)/3单个件(DirecotryFile)) + */ + public Integer getContentType() { + return this.contentType; + } + + /** + * Setter for public.download_log.content_type. + * 下载类型(1文件包/2单个附件(SyncFile)/3单个件(DirecotryFile)) + */ + public void setContentType(Integer contentType) { + this.contentType = contentType; + } + + /** + * Getter for public.download_log.contentid. + * 下载记录ID(如果是单个文件,就取ID,如果是包,就是包内包含的文件的ID列表) + */ + public String getContentid() { + return this.contentid; + } + + /** + * Setter for public.download_log.contentid. + * 下载记录ID(如果是单个文件,就取ID,如果是包,就是包内包含的文件的ID列表) + */ + public void setContentid(String contentid) { + this.contentid = contentid; + } + + /** + * Getter for public.download_log.sign. 数字签名 + */ + public String getSign() { + return this.sign; + } + + /** + * Setter for public.download_log.sign. 数字签名 + */ + public void setSign(String sign) { + this.sign = sign; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + if (getClass() != obj.getClass()) + return false; + final DownloadLog other = (DownloadLog) obj; + if (this.id == null) { + if (other.id != null) + return false; + } + else if (!this.id.equals(other.id)) + return false; + if (this.weid == null) { + if (other.weid != null) + return false; + } + else if (!this.weid.equals(other.weid)) + return false; + if (this.downloadtime == null) { + if (other.downloadtime != null) + return false; + } + else if (!this.downloadtime.equals(other.downloadtime)) + return false; + if (this.filenum == null) { + if (other.filenum != null) + return false; + } + else if (!this.filenum.equals(other.filenum)) + return false; + if (this.contentType == null) { + if (other.contentType != null) + return false; + } + else if (!this.contentType.equals(other.contentType)) + return false; + if (this.contentid == null) { + if (other.contentid != null) + return false; + } + else if (!this.contentid.equals(other.contentid)) + return false; + if (this.sign == null) { + if (other.sign != null) + return false; + } + else if (!this.sign.equals(other.sign)) + return false; + return true; + } + + @Override + public int hashCode() { + final int prime = 31; + int result = 1; + result = prime * result + ((this.id == null) ? 0 : this.id.hashCode()); + result = prime * result + ((this.weid == null) ? 0 : this.weid.hashCode()); + result = prime * result + ((this.downloadtime == null) ? 0 : this.downloadtime.hashCode()); + result = prime * result + ((this.filenum == null) ? 0 : this.filenum.hashCode()); + result = prime * result + ((this.contentType == null) ? 0 : this.contentType.hashCode()); + result = prime * result + ((this.contentid == null) ? 0 : this.contentid.hashCode()); + result = prime * result + ((this.sign == null) ? 0 : this.sign.hashCode()); + return result; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder("DownloadLog ("); + + sb.append(id); + sb.append(", ").append(weid); + sb.append(", ").append(downloadtime); + sb.append(", ").append(filenum); + sb.append(", ").append(contentType); + sb.append(", ").append(contentid); + sb.append(", ").append(sign); + + sb.append(")"); + return sb.toString(); + } +} diff --git a/src/main/java/jj/tech/paolu/repository/jooq/tables/pojos/FilesApply.java b/src/main/java/jj/tech/paolu/repository/jooq/tables/pojos/FilesApply.java new file mode 100644 index 0000000..16432e8 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/jooq/tables/pojos/FilesApply.java @@ -0,0 +1,1282 @@ +/* + * This file is generated by jOOQ. + */ +package jj.tech.paolu.repository.jooq.tables.pojos; + + +import java.io.Serializable; +import java.time.LocalDateTime; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +public class FilesApply implements Serializable { + + private static final long serialVersionUID = 1L; + + private String id; + private String applyUserId; + private String applyUserName; + private String applyUserPhone; + private String applyUserEmail; + private String applyOrgId; + private String applyOrgName; + private String applyInCheckUserId; + private String applyInCheckUserName; + private String applyInCheckOrgId; + private String applyInCheckOrgName; + private String applyNextCheckOrgId; + private String applyNextCheckOrgName; + private String applyEndCheckUserId; + private String applyEndCheckUserName; + private String applyEndCheckOrgId; + private String applyEndCheckOrgName; + private Integer applyDays; + private String applyFeedback; + private String applyReason; + private String applyCancelReason; + private Integer applyViewTypePrint; + private Integer applyViewTypeOnline; + private Integer applyFileNum; + private LocalDateTime applyTime; + private Integer applyCheckIsFinish; + private String providerOrgId; + private String providerOrgName; + private Integer providerFileProperties; + private LocalDateTime providerUseStartTime; + private LocalDateTime providerUseEndTime; + private String providerInCheckUserId; + private String providerInCheckUserName; + private String providerInCheckOrgId; + private String providerInCheckOrgName; + private String providerNextCheckRoleSignId; + private String providerNextCheckRoleSignName; + private String providerEndCheckUserId; + private String providerEndCheckUserName; + private String providerEndCheckOrgId; + private String providerEndCheckOrgName; + private Integer providerCheckIsFinish; + private String secretKey; + private Integer status; + private String projectId; + private String projectName; + private String sign; + + public FilesApply() {} + + public FilesApply(FilesApply value) { + this.id = value.id; + this.applyUserId = value.applyUserId; + this.applyUserName = value.applyUserName; + this.applyUserPhone = value.applyUserPhone; + this.applyUserEmail = value.applyUserEmail; + this.applyOrgId = value.applyOrgId; + this.applyOrgName = value.applyOrgName; + this.applyInCheckUserId = value.applyInCheckUserId; + this.applyInCheckUserName = value.applyInCheckUserName; + this.applyInCheckOrgId = value.applyInCheckOrgId; + this.applyInCheckOrgName = value.applyInCheckOrgName; + this.applyNextCheckOrgId = value.applyNextCheckOrgId; + this.applyNextCheckOrgName = value.applyNextCheckOrgName; + this.applyEndCheckUserId = value.applyEndCheckUserId; + this.applyEndCheckUserName = value.applyEndCheckUserName; + this.applyEndCheckOrgId = value.applyEndCheckOrgId; + this.applyEndCheckOrgName = value.applyEndCheckOrgName; + this.applyDays = value.applyDays; + this.applyFeedback = value.applyFeedback; + this.applyReason = value.applyReason; + this.applyCancelReason = value.applyCancelReason; + this.applyViewTypePrint = value.applyViewTypePrint; + this.applyViewTypeOnline = value.applyViewTypeOnline; + this.applyFileNum = value.applyFileNum; + this.applyTime = value.applyTime; + this.applyCheckIsFinish = value.applyCheckIsFinish; + this.providerOrgId = value.providerOrgId; + this.providerOrgName = value.providerOrgName; + this.providerFileProperties = value.providerFileProperties; + this.providerUseStartTime = value.providerUseStartTime; + this.providerUseEndTime = value.providerUseEndTime; + this.providerInCheckUserId = value.providerInCheckUserId; + this.providerInCheckUserName = value.providerInCheckUserName; + this.providerInCheckOrgId = value.providerInCheckOrgId; + this.providerInCheckOrgName = value.providerInCheckOrgName; + this.providerNextCheckRoleSignId = value.providerNextCheckRoleSignId; + this.providerNextCheckRoleSignName = value.providerNextCheckRoleSignName; + this.providerEndCheckUserId = value.providerEndCheckUserId; + this.providerEndCheckUserName = value.providerEndCheckUserName; + this.providerEndCheckOrgId = value.providerEndCheckOrgId; + this.providerEndCheckOrgName = value.providerEndCheckOrgName; + this.providerCheckIsFinish = value.providerCheckIsFinish; + this.secretKey = value.secretKey; + this.status = value.status; + this.projectId = value.projectId; + this.projectName = value.projectName; + this.sign = value.sign; + } + + public FilesApply( + String id, + String applyUserId, + String applyUserName, + String applyUserPhone, + String applyUserEmail, + String applyOrgId, + String applyOrgName, + String applyInCheckUserId, + String applyInCheckUserName, + String applyInCheckOrgId, + String applyInCheckOrgName, + String applyNextCheckOrgId, + String applyNextCheckOrgName, + String applyEndCheckUserId, + String applyEndCheckUserName, + String applyEndCheckOrgId, + String applyEndCheckOrgName, + Integer applyDays, + String applyFeedback, + String applyReason, + String applyCancelReason, + Integer applyViewTypePrint, + Integer applyViewTypeOnline, + Integer applyFileNum, + LocalDateTime applyTime, + Integer applyCheckIsFinish, + String providerOrgId, + String providerOrgName, + Integer providerFileProperties, + LocalDateTime providerUseStartTime, + LocalDateTime providerUseEndTime, + String providerInCheckUserId, + String providerInCheckUserName, + String providerInCheckOrgId, + String providerInCheckOrgName, + String providerNextCheckRoleSignId, + String providerNextCheckRoleSignName, + String providerEndCheckUserId, + String providerEndCheckUserName, + String providerEndCheckOrgId, + String providerEndCheckOrgName, + Integer providerCheckIsFinish, + String secretKey, + Integer status, + String projectId, + String projectName, + String sign + ) { + this.id = id; + this.applyUserId = applyUserId; + this.applyUserName = applyUserName; + this.applyUserPhone = applyUserPhone; + this.applyUserEmail = applyUserEmail; + this.applyOrgId = applyOrgId; + this.applyOrgName = applyOrgName; + this.applyInCheckUserId = applyInCheckUserId; + this.applyInCheckUserName = applyInCheckUserName; + this.applyInCheckOrgId = applyInCheckOrgId; + this.applyInCheckOrgName = applyInCheckOrgName; + this.applyNextCheckOrgId = applyNextCheckOrgId; + this.applyNextCheckOrgName = applyNextCheckOrgName; + this.applyEndCheckUserId = applyEndCheckUserId; + this.applyEndCheckUserName = applyEndCheckUserName; + this.applyEndCheckOrgId = applyEndCheckOrgId; + this.applyEndCheckOrgName = applyEndCheckOrgName; + this.applyDays = applyDays; + this.applyFeedback = applyFeedback; + this.applyReason = applyReason; + this.applyCancelReason = applyCancelReason; + this.applyViewTypePrint = applyViewTypePrint; + this.applyViewTypeOnline = applyViewTypeOnline; + this.applyFileNum = applyFileNum; + this.applyTime = applyTime; + this.applyCheckIsFinish = applyCheckIsFinish; + this.providerOrgId = providerOrgId; + this.providerOrgName = providerOrgName; + this.providerFileProperties = providerFileProperties; + this.providerUseStartTime = providerUseStartTime; + this.providerUseEndTime = providerUseEndTime; + this.providerInCheckUserId = providerInCheckUserId; + this.providerInCheckUserName = providerInCheckUserName; + this.providerInCheckOrgId = providerInCheckOrgId; + this.providerInCheckOrgName = providerInCheckOrgName; + this.providerNextCheckRoleSignId = providerNextCheckRoleSignId; + this.providerNextCheckRoleSignName = providerNextCheckRoleSignName; + this.providerEndCheckUserId = providerEndCheckUserId; + this.providerEndCheckUserName = providerEndCheckUserName; + this.providerEndCheckOrgId = providerEndCheckOrgId; + this.providerEndCheckOrgName = providerEndCheckOrgName; + this.providerCheckIsFinish = providerCheckIsFinish; + this.secretKey = secretKey; + this.status = status; + this.projectId = projectId; + this.projectName = projectName; + this.sign = sign; + } + + /** + * Getter for public.files_apply.id. + */ + public String getId() { + return this.id; + } + + /** + * Setter for public.files_apply.id. + */ + public void setId(String id) { + this.id = id; + } + + /** + * Getter for public.files_apply.apply_user_id. + */ + public String getApplyUserId() { + return this.applyUserId; + } + + /** + * Setter for public.files_apply.apply_user_id. + */ + public void setApplyUserId(String applyUserId) { + this.applyUserId = applyUserId; + } + + /** + * Getter for public.files_apply.apply_user_name. + */ + public String getApplyUserName() { + return this.applyUserName; + } + + /** + * Setter for public.files_apply.apply_user_name. + */ + public void setApplyUserName(String applyUserName) { + this.applyUserName = applyUserName; + } + + /** + * Getter for public.files_apply.apply_user_phone. + */ + public String getApplyUserPhone() { + return this.applyUserPhone; + } + + /** + * Setter for public.files_apply.apply_user_phone. + */ + public void setApplyUserPhone(String applyUserPhone) { + this.applyUserPhone = applyUserPhone; + } + + /** + * Getter for public.files_apply.apply_user_email. + */ + public String getApplyUserEmail() { + return this.applyUserEmail; + } + + /** + * Setter for public.files_apply.apply_user_email. + */ + public void setApplyUserEmail(String applyUserEmail) { + this.applyUserEmail = applyUserEmail; + } + + /** + * Getter for public.files_apply.apply_org_id. + */ + public String getApplyOrgId() { + return this.applyOrgId; + } + + /** + * Setter for public.files_apply.apply_org_id. + */ + public void setApplyOrgId(String applyOrgId) { + this.applyOrgId = applyOrgId; + } + + /** + * Getter for public.files_apply.apply_org_name. + */ + public String getApplyOrgName() { + return this.applyOrgName; + } + + /** + * Setter for public.files_apply.apply_org_name. + */ + public void setApplyOrgName(String applyOrgName) { + this.applyOrgName = applyOrgName; + } + + /** + * Getter for public.files_apply.apply_in_check_user_id. + */ + public String getApplyInCheckUserId() { + return this.applyInCheckUserId; + } + + /** + * Setter for public.files_apply.apply_in_check_user_id. + */ + public void setApplyInCheckUserId(String applyInCheckUserId) { + this.applyInCheckUserId = applyInCheckUserId; + } + + /** + * Getter for public.files_apply.apply_in_check_user_name. + */ + public String getApplyInCheckUserName() { + return this.applyInCheckUserName; + } + + /** + * Setter for public.files_apply.apply_in_check_user_name. + */ + public void setApplyInCheckUserName(String applyInCheckUserName) { + this.applyInCheckUserName = applyInCheckUserName; + } + + /** + * Getter for public.files_apply.apply_in_check_org_id. + */ + public String getApplyInCheckOrgId() { + return this.applyInCheckOrgId; + } + + /** + * Setter for public.files_apply.apply_in_check_org_id. + */ + public void setApplyInCheckOrgId(String applyInCheckOrgId) { + this.applyInCheckOrgId = applyInCheckOrgId; + } + + /** + * Getter for public.files_apply.apply_in_check_org_name. + */ + public String getApplyInCheckOrgName() { + return this.applyInCheckOrgName; + } + + /** + * Setter for public.files_apply.apply_in_check_org_name. + */ + public void setApplyInCheckOrgName(String applyInCheckOrgName) { + this.applyInCheckOrgName = applyInCheckOrgName; + } + + /** + * Getter for public.files_apply.apply_next_check_org_id. + */ + public String getApplyNextCheckOrgId() { + return this.applyNextCheckOrgId; + } + + /** + * Setter for public.files_apply.apply_next_check_org_id. + */ + public void setApplyNextCheckOrgId(String applyNextCheckOrgId) { + this.applyNextCheckOrgId = applyNextCheckOrgId; + } + + /** + * Getter for public.files_apply.apply_next_check_org_name. + */ + public String getApplyNextCheckOrgName() { + return this.applyNextCheckOrgName; + } + + /** + * Setter for public.files_apply.apply_next_check_org_name. + */ + public void setApplyNextCheckOrgName(String applyNextCheckOrgName) { + this.applyNextCheckOrgName = applyNextCheckOrgName; + } + + /** + * Getter for public.files_apply.apply_end_check_user_id. + */ + public String getApplyEndCheckUserId() { + return this.applyEndCheckUserId; + } + + /** + * Setter for public.files_apply.apply_end_check_user_id. + */ + public void setApplyEndCheckUserId(String applyEndCheckUserId) { + this.applyEndCheckUserId = applyEndCheckUserId; + } + + /** + * Getter for public.files_apply.apply_end_check_user_name. + */ + public String getApplyEndCheckUserName() { + return this.applyEndCheckUserName; + } + + /** + * Setter for public.files_apply.apply_end_check_user_name. + */ + public void setApplyEndCheckUserName(String applyEndCheckUserName) { + this.applyEndCheckUserName = applyEndCheckUserName; + } + + /** + * Getter for public.files_apply.apply_end_check_org_id. + */ + public String getApplyEndCheckOrgId() { + return this.applyEndCheckOrgId; + } + + /** + * Setter for public.files_apply.apply_end_check_org_id. + */ + public void setApplyEndCheckOrgId(String applyEndCheckOrgId) { + this.applyEndCheckOrgId = applyEndCheckOrgId; + } + + /** + * Getter for public.files_apply.apply_end_check_org_name. + */ + public String getApplyEndCheckOrgName() { + return this.applyEndCheckOrgName; + } + + /** + * Setter for public.files_apply.apply_end_check_org_name. + */ + public void setApplyEndCheckOrgName(String applyEndCheckOrgName) { + this.applyEndCheckOrgName = applyEndCheckOrgName; + } + + /** + * Getter for public.files_apply.apply_days. + */ + public Integer getApplyDays() { + return this.applyDays; + } + + /** + * Setter for public.files_apply.apply_days. + */ + public void setApplyDays(Integer applyDays) { + this.applyDays = applyDays; + } + + /** + * Getter for public.files_apply.apply_feedback. + */ + public String getApplyFeedback() { + return this.applyFeedback; + } + + /** + * Setter for public.files_apply.apply_feedback. + */ + public void setApplyFeedback(String applyFeedback) { + this.applyFeedback = applyFeedback; + } + + /** + * Getter for public.files_apply.apply_reason. + */ + public String getApplyReason() { + return this.applyReason; + } + + /** + * Setter for public.files_apply.apply_reason. + */ + public void setApplyReason(String applyReason) { + this.applyReason = applyReason; + } + + /** + * Getter for public.files_apply.apply_cancel_reason. + */ + public String getApplyCancelReason() { + return this.applyCancelReason; + } + + /** + * Setter for public.files_apply.apply_cancel_reason. + */ + public void setApplyCancelReason(String applyCancelReason) { + this.applyCancelReason = applyCancelReason; + } + + /** + * Getter for public.files_apply.apply_view_type_print. + */ + public Integer getApplyViewTypePrint() { + return this.applyViewTypePrint; + } + + /** + * Setter for public.files_apply.apply_view_type_print. + */ + public void setApplyViewTypePrint(Integer applyViewTypePrint) { + this.applyViewTypePrint = applyViewTypePrint; + } + + /** + * Getter for public.files_apply.apply_view_type_online. + */ + public Integer getApplyViewTypeOnline() { + return this.applyViewTypeOnline; + } + + /** + * Setter for public.files_apply.apply_view_type_online. + */ + public void setApplyViewTypeOnline(Integer applyViewTypeOnline) { + this.applyViewTypeOnline = applyViewTypeOnline; + } + + /** + * Getter for public.files_apply.apply_file_num. + */ + public Integer getApplyFileNum() { + return this.applyFileNum; + } + + /** + * Setter for public.files_apply.apply_file_num. + */ + public void setApplyFileNum(Integer applyFileNum) { + this.applyFileNum = applyFileNum; + } + + /** + * Getter for public.files_apply.apply_time. + */ + public LocalDateTime getApplyTime() { + return this.applyTime; + } + + /** + * Setter for public.files_apply.apply_time. + */ + public void setApplyTime(LocalDateTime applyTime) { + this.applyTime = applyTime; + } + + /** + * Getter for public.files_apply.apply_check_is_finish. + */ + public Integer getApplyCheckIsFinish() { + return this.applyCheckIsFinish; + } + + /** + * Setter for public.files_apply.apply_check_is_finish. + */ + public void setApplyCheckIsFinish(Integer applyCheckIsFinish) { + this.applyCheckIsFinish = applyCheckIsFinish; + } + + /** + * Getter for public.files_apply.provider_org_id. + */ + public String getProviderOrgId() { + return this.providerOrgId; + } + + /** + * Setter for public.files_apply.provider_org_id. + */ + public void setProviderOrgId(String providerOrgId) { + this.providerOrgId = providerOrgId; + } + + /** + * Getter for public.files_apply.provider_org_name. + */ + public String getProviderOrgName() { + return this.providerOrgName; + } + + /** + * Setter for public.files_apply.provider_org_name. + */ + public void setProviderOrgName(String providerOrgName) { + this.providerOrgName = providerOrgName; + } + + /** + * Getter for public.files_apply.provider_file_properties. + */ + public Integer getProviderFileProperties() { + return this.providerFileProperties; + } + + /** + * Setter for public.files_apply.provider_file_properties. + */ + public void setProviderFileProperties(Integer providerFileProperties) { + this.providerFileProperties = providerFileProperties; + } + + /** + * Getter for public.files_apply.provider_use_start_time. + */ + public LocalDateTime getProviderUseStartTime() { + return this.providerUseStartTime; + } + + /** + * Setter for public.files_apply.provider_use_start_time. + */ + public void setProviderUseStartTime(LocalDateTime providerUseStartTime) { + this.providerUseStartTime = providerUseStartTime; + } + + /** + * Getter for public.files_apply.provider_use_end_time. + */ + public LocalDateTime getProviderUseEndTime() { + return this.providerUseEndTime; + } + + /** + * Setter for public.files_apply.provider_use_end_time. + */ + public void setProviderUseEndTime(LocalDateTime providerUseEndTime) { + this.providerUseEndTime = providerUseEndTime; + } + + /** + * Getter for public.files_apply.provider_in_check_user_id. + */ + public String getProviderInCheckUserId() { + return this.providerInCheckUserId; + } + + /** + * Setter for public.files_apply.provider_in_check_user_id. + */ + public void setProviderInCheckUserId(String providerInCheckUserId) { + this.providerInCheckUserId = providerInCheckUserId; + } + + /** + * Getter for public.files_apply.provider_in_check_user_name. + */ + public String getProviderInCheckUserName() { + return this.providerInCheckUserName; + } + + /** + * Setter for public.files_apply.provider_in_check_user_name. + */ + public void setProviderInCheckUserName(String providerInCheckUserName) { + this.providerInCheckUserName = providerInCheckUserName; + } + + /** + * Getter for public.files_apply.provider_in_check_org_id. + */ + public String getProviderInCheckOrgId() { + return this.providerInCheckOrgId; + } + + /** + * Setter for public.files_apply.provider_in_check_org_id. + */ + public void setProviderInCheckOrgId(String providerInCheckOrgId) { + this.providerInCheckOrgId = providerInCheckOrgId; + } + + /** + * Getter for public.files_apply.provider_in_check_org_name. + */ + public String getProviderInCheckOrgName() { + return this.providerInCheckOrgName; + } + + /** + * Setter for public.files_apply.provider_in_check_org_name. + */ + public void setProviderInCheckOrgName(String providerInCheckOrgName) { + this.providerInCheckOrgName = providerInCheckOrgName; + } + + /** + * Getter for + * public.files_apply.provider_next_check_role_sign_id. + */ + public String getProviderNextCheckRoleSignId() { + return this.providerNextCheckRoleSignId; + } + + /** + * Setter for + * public.files_apply.provider_next_check_role_sign_id. + */ + public void setProviderNextCheckRoleSignId(String providerNextCheckRoleSignId) { + this.providerNextCheckRoleSignId = providerNextCheckRoleSignId; + } + + /** + * Getter for + * public.files_apply.provider_next_check_role_sign_name. + */ + public String getProviderNextCheckRoleSignName() { + return this.providerNextCheckRoleSignName; + } + + /** + * Setter for + * public.files_apply.provider_next_check_role_sign_name. + */ + public void setProviderNextCheckRoleSignName(String providerNextCheckRoleSignName) { + this.providerNextCheckRoleSignName = providerNextCheckRoleSignName; + } + + /** + * Getter for public.files_apply.provider_end_check_user_id. + */ + public String getProviderEndCheckUserId() { + return this.providerEndCheckUserId; + } + + /** + * Setter for public.files_apply.provider_end_check_user_id. + */ + public void setProviderEndCheckUserId(String providerEndCheckUserId) { + this.providerEndCheckUserId = providerEndCheckUserId; + } + + /** + * Getter for public.files_apply.provider_end_check_user_name. + */ + public String getProviderEndCheckUserName() { + return this.providerEndCheckUserName; + } + + /** + * Setter for public.files_apply.provider_end_check_user_name. + */ + public void setProviderEndCheckUserName(String providerEndCheckUserName) { + this.providerEndCheckUserName = providerEndCheckUserName; + } + + /** + * Getter for public.files_apply.provider_end_check_org_id. + */ + public String getProviderEndCheckOrgId() { + return this.providerEndCheckOrgId; + } + + /** + * Setter for public.files_apply.provider_end_check_org_id. + */ + public void setProviderEndCheckOrgId(String providerEndCheckOrgId) { + this.providerEndCheckOrgId = providerEndCheckOrgId; + } + + /** + * Getter for public.files_apply.provider_end_check_org_name. + */ + public String getProviderEndCheckOrgName() { + return this.providerEndCheckOrgName; + } + + /** + * Setter for public.files_apply.provider_end_check_org_name. + */ + public void setProviderEndCheckOrgName(String providerEndCheckOrgName) { + this.providerEndCheckOrgName = providerEndCheckOrgName; + } + + /** + * Getter for public.files_apply.provider_check_is_finish. + */ + public Integer getProviderCheckIsFinish() { + return this.providerCheckIsFinish; + } + + /** + * Setter for public.files_apply.provider_check_is_finish. + */ + public void setProviderCheckIsFinish(Integer providerCheckIsFinish) { + this.providerCheckIsFinish = providerCheckIsFinish; + } + + /** + * Getter for public.files_apply.secret_key. + */ + public String getSecretKey() { + return this.secretKey; + } + + /** + * Setter for public.files_apply.secret_key. + */ + public void setSecretKey(String secretKey) { + this.secretKey = secretKey; + } + + /** + * Getter for public.files_apply.status. + */ + public Integer getStatus() { + return this.status; + } + + /** + * Setter for public.files_apply.status. + */ + public void setStatus(Integer status) { + this.status = status; + } + + /** + * Getter for public.files_apply.project_id. + */ + public String getProjectId() { + return this.projectId; + } + + /** + * Setter for public.files_apply.project_id. + */ + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + /** + * Getter for public.files_apply.project_name. + */ + public String getProjectName() { + return this.projectName; + } + + /** + * Setter for public.files_apply.project_name. + */ + public void setProjectName(String projectName) { + this.projectName = projectName; + } + + /** + * Getter for public.files_apply.sign. 签名 + */ + public String getSign() { + return this.sign; + } + + /** + * Setter for public.files_apply.sign. 签名 + */ + public void setSign(String sign) { + this.sign = sign; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + if (getClass() != obj.getClass()) + return false; + final FilesApply other = (FilesApply) obj; + if (this.id == null) { + if (other.id != null) + return false; + } + else if (!this.id.equals(other.id)) + return false; + if (this.applyUserId == null) { + if (other.applyUserId != null) + return false; + } + else if (!this.applyUserId.equals(other.applyUserId)) + return false; + if (this.applyUserName == null) { + if (other.applyUserName != null) + return false; + } + else if (!this.applyUserName.equals(other.applyUserName)) + return false; + if (this.applyUserPhone == null) { + if (other.applyUserPhone != null) + return false; + } + else if (!this.applyUserPhone.equals(other.applyUserPhone)) + return false; + if (this.applyUserEmail == null) { + if (other.applyUserEmail != null) + return false; + } + else if (!this.applyUserEmail.equals(other.applyUserEmail)) + return false; + if (this.applyOrgId == null) { + if (other.applyOrgId != null) + return false; + } + else if (!this.applyOrgId.equals(other.applyOrgId)) + return false; + if (this.applyOrgName == null) { + if (other.applyOrgName != null) + return false; + } + else if (!this.applyOrgName.equals(other.applyOrgName)) + return false; + if (this.applyInCheckUserId == null) { + if (other.applyInCheckUserId != null) + return false; + } + else if (!this.applyInCheckUserId.equals(other.applyInCheckUserId)) + return false; + if (this.applyInCheckUserName == null) { + if (other.applyInCheckUserName != null) + return false; + } + else if (!this.applyInCheckUserName.equals(other.applyInCheckUserName)) + return false; + if (this.applyInCheckOrgId == null) { + if (other.applyInCheckOrgId != null) + return false; + } + else if (!this.applyInCheckOrgId.equals(other.applyInCheckOrgId)) + return false; + if (this.applyInCheckOrgName == null) { + if (other.applyInCheckOrgName != null) + return false; + } + else if (!this.applyInCheckOrgName.equals(other.applyInCheckOrgName)) + return false; + if (this.applyNextCheckOrgId == null) { + if (other.applyNextCheckOrgId != null) + return false; + } + else if (!this.applyNextCheckOrgId.equals(other.applyNextCheckOrgId)) + return false; + if (this.applyNextCheckOrgName == null) { + if (other.applyNextCheckOrgName != null) + return false; + } + else if (!this.applyNextCheckOrgName.equals(other.applyNextCheckOrgName)) + return false; + if (this.applyEndCheckUserId == null) { + if (other.applyEndCheckUserId != null) + return false; + } + else if (!this.applyEndCheckUserId.equals(other.applyEndCheckUserId)) + return false; + if (this.applyEndCheckUserName == null) { + if (other.applyEndCheckUserName != null) + return false; + } + else if (!this.applyEndCheckUserName.equals(other.applyEndCheckUserName)) + return false; + if (this.applyEndCheckOrgId == null) { + if (other.applyEndCheckOrgId != null) + return false; + } + else if (!this.applyEndCheckOrgId.equals(other.applyEndCheckOrgId)) + return false; + if (this.applyEndCheckOrgName == null) { + if (other.applyEndCheckOrgName != null) + return false; + } + else if (!this.applyEndCheckOrgName.equals(other.applyEndCheckOrgName)) + return false; + if (this.applyDays == null) { + if (other.applyDays != null) + return false; + } + else if (!this.applyDays.equals(other.applyDays)) + return false; + if (this.applyFeedback == null) { + if (other.applyFeedback != null) + return false; + } + else if (!this.applyFeedback.equals(other.applyFeedback)) + return false; + if (this.applyReason == null) { + if (other.applyReason != null) + return false; + } + else if (!this.applyReason.equals(other.applyReason)) + return false; + if (this.applyCancelReason == null) { + if (other.applyCancelReason != null) + return false; + } + else if (!this.applyCancelReason.equals(other.applyCancelReason)) + return false; + if (this.applyViewTypePrint == null) { + if (other.applyViewTypePrint != null) + return false; + } + else if (!this.applyViewTypePrint.equals(other.applyViewTypePrint)) + return false; + if (this.applyViewTypeOnline == null) { + if (other.applyViewTypeOnline != null) + return false; + } + else if (!this.applyViewTypeOnline.equals(other.applyViewTypeOnline)) + return false; + if (this.applyFileNum == null) { + if (other.applyFileNum != null) + return false; + } + else if (!this.applyFileNum.equals(other.applyFileNum)) + return false; + if (this.applyTime == null) { + if (other.applyTime != null) + return false; + } + else if (!this.applyTime.equals(other.applyTime)) + return false; + if (this.applyCheckIsFinish == null) { + if (other.applyCheckIsFinish != null) + return false; + } + else if (!this.applyCheckIsFinish.equals(other.applyCheckIsFinish)) + return false; + if (this.providerOrgId == null) { + if (other.providerOrgId != null) + return false; + } + else if (!this.providerOrgId.equals(other.providerOrgId)) + return false; + if (this.providerOrgName == null) { + if (other.providerOrgName != null) + return false; + } + else if (!this.providerOrgName.equals(other.providerOrgName)) + return false; + if (this.providerFileProperties == null) { + if (other.providerFileProperties != null) + return false; + } + else if (!this.providerFileProperties.equals(other.providerFileProperties)) + return false; + if (this.providerUseStartTime == null) { + if (other.providerUseStartTime != null) + return false; + } + else if (!this.providerUseStartTime.equals(other.providerUseStartTime)) + return false; + if (this.providerUseEndTime == null) { + if (other.providerUseEndTime != null) + return false; + } + else if (!this.providerUseEndTime.equals(other.providerUseEndTime)) + return false; + if (this.providerInCheckUserId == null) { + if (other.providerInCheckUserId != null) + return false; + } + else if (!this.providerInCheckUserId.equals(other.providerInCheckUserId)) + return false; + if (this.providerInCheckUserName == null) { + if (other.providerInCheckUserName != null) + return false; + } + else if (!this.providerInCheckUserName.equals(other.providerInCheckUserName)) + return false; + if (this.providerInCheckOrgId == null) { + if (other.providerInCheckOrgId != null) + return false; + } + else if (!this.providerInCheckOrgId.equals(other.providerInCheckOrgId)) + return false; + if (this.providerInCheckOrgName == null) { + if (other.providerInCheckOrgName != null) + return false; + } + else if (!this.providerInCheckOrgName.equals(other.providerInCheckOrgName)) + return false; + if (this.providerNextCheckRoleSignId == null) { + if (other.providerNextCheckRoleSignId != null) + return false; + } + else if (!this.providerNextCheckRoleSignId.equals(other.providerNextCheckRoleSignId)) + return false; + if (this.providerNextCheckRoleSignName == null) { + if (other.providerNextCheckRoleSignName != null) + return false; + } + else if (!this.providerNextCheckRoleSignName.equals(other.providerNextCheckRoleSignName)) + return false; + if (this.providerEndCheckUserId == null) { + if (other.providerEndCheckUserId != null) + return false; + } + else if (!this.providerEndCheckUserId.equals(other.providerEndCheckUserId)) + return false; + if (this.providerEndCheckUserName == null) { + if (other.providerEndCheckUserName != null) + return false; + } + else if (!this.providerEndCheckUserName.equals(other.providerEndCheckUserName)) + return false; + if (this.providerEndCheckOrgId == null) { + if (other.providerEndCheckOrgId != null) + return false; + } + else if (!this.providerEndCheckOrgId.equals(other.providerEndCheckOrgId)) + return false; + if (this.providerEndCheckOrgName == null) { + if (other.providerEndCheckOrgName != null) + return false; + } + else if (!this.providerEndCheckOrgName.equals(other.providerEndCheckOrgName)) + return false; + if (this.providerCheckIsFinish == null) { + if (other.providerCheckIsFinish != null) + return false; + } + else if (!this.providerCheckIsFinish.equals(other.providerCheckIsFinish)) + return false; + if (this.secretKey == null) { + if (other.secretKey != null) + return false; + } + else if (!this.secretKey.equals(other.secretKey)) + return false; + if (this.status == null) { + if (other.status != null) + return false; + } + else if (!this.status.equals(other.status)) + return false; + if (this.projectId == null) { + if (other.projectId != null) + return false; + } + else if (!this.projectId.equals(other.projectId)) + return false; + if (this.projectName == null) { + if (other.projectName != null) + return false; + } + else if (!this.projectName.equals(other.projectName)) + return false; + if (this.sign == null) { + if (other.sign != null) + return false; + } + else if (!this.sign.equals(other.sign)) + return false; + return true; + } + + @Override + public int hashCode() { + final int prime = 31; + int result = 1; + result = prime * result + ((this.id == null) ? 0 : this.id.hashCode()); + result = prime * result + ((this.applyUserId == null) ? 0 : this.applyUserId.hashCode()); + result = prime * result + ((this.applyUserName == null) ? 0 : this.applyUserName.hashCode()); + result = prime * result + ((this.applyUserPhone == null) ? 0 : this.applyUserPhone.hashCode()); + result = prime * result + ((this.applyUserEmail == null) ? 0 : this.applyUserEmail.hashCode()); + result = prime * result + ((this.applyOrgId == null) ? 0 : this.applyOrgId.hashCode()); + result = prime * result + ((this.applyOrgName == null) ? 0 : this.applyOrgName.hashCode()); + result = prime * result + ((this.applyInCheckUserId == null) ? 0 : this.applyInCheckUserId.hashCode()); + result = prime * result + ((this.applyInCheckUserName == null) ? 0 : this.applyInCheckUserName.hashCode()); + result = prime * result + ((this.applyInCheckOrgId == null) ? 0 : this.applyInCheckOrgId.hashCode()); + result = prime * result + ((this.applyInCheckOrgName == null) ? 0 : this.applyInCheckOrgName.hashCode()); + result = prime * result + ((this.applyNextCheckOrgId == null) ? 0 : this.applyNextCheckOrgId.hashCode()); + result = prime * result + ((this.applyNextCheckOrgName == null) ? 0 : this.applyNextCheckOrgName.hashCode()); + result = prime * result + ((this.applyEndCheckUserId == null) ? 0 : this.applyEndCheckUserId.hashCode()); + result = prime * result + ((this.applyEndCheckUserName == null) ? 0 : this.applyEndCheckUserName.hashCode()); + result = prime * result + ((this.applyEndCheckOrgId == null) ? 0 : this.applyEndCheckOrgId.hashCode()); + result = prime * result + ((this.applyEndCheckOrgName == null) ? 0 : this.applyEndCheckOrgName.hashCode()); + result = prime * result + ((this.applyDays == null) ? 0 : this.applyDays.hashCode()); + result = prime * result + ((this.applyFeedback == null) ? 0 : this.applyFeedback.hashCode()); + result = prime * result + ((this.applyReason == null) ? 0 : this.applyReason.hashCode()); + result = prime * result + ((this.applyCancelReason == null) ? 0 : this.applyCancelReason.hashCode()); + result = prime * result + ((this.applyViewTypePrint == null) ? 0 : this.applyViewTypePrint.hashCode()); + result = prime * result + ((this.applyViewTypeOnline == null) ? 0 : this.applyViewTypeOnline.hashCode()); + result = prime * result + ((this.applyFileNum == null) ? 0 : this.applyFileNum.hashCode()); + result = prime * result + ((this.applyTime == null) ? 0 : this.applyTime.hashCode()); + result = prime * result + ((this.applyCheckIsFinish == null) ? 0 : this.applyCheckIsFinish.hashCode()); + result = prime * result + ((this.providerOrgId == null) ? 0 : this.providerOrgId.hashCode()); + result = prime * result + ((this.providerOrgName == null) ? 0 : this.providerOrgName.hashCode()); + result = prime * result + ((this.providerFileProperties == null) ? 0 : this.providerFileProperties.hashCode()); + result = prime * result + ((this.providerUseStartTime == null) ? 0 : this.providerUseStartTime.hashCode()); + result = prime * result + ((this.providerUseEndTime == null) ? 0 : this.providerUseEndTime.hashCode()); + result = prime * result + ((this.providerInCheckUserId == null) ? 0 : this.providerInCheckUserId.hashCode()); + result = prime * result + ((this.providerInCheckUserName == null) ? 0 : this.providerInCheckUserName.hashCode()); + result = prime * result + ((this.providerInCheckOrgId == null) ? 0 : this.providerInCheckOrgId.hashCode()); + result = prime * result + ((this.providerInCheckOrgName == null) ? 0 : this.providerInCheckOrgName.hashCode()); + result = prime * result + ((this.providerNextCheckRoleSignId == null) ? 0 : this.providerNextCheckRoleSignId.hashCode()); + result = prime * result + ((this.providerNextCheckRoleSignName == null) ? 0 : this.providerNextCheckRoleSignName.hashCode()); + result = prime * result + ((this.providerEndCheckUserId == null) ? 0 : this.providerEndCheckUserId.hashCode()); + result = prime * result + ((this.providerEndCheckUserName == null) ? 0 : this.providerEndCheckUserName.hashCode()); + result = prime * result + ((this.providerEndCheckOrgId == null) ? 0 : this.providerEndCheckOrgId.hashCode()); + result = prime * result + ((this.providerEndCheckOrgName == null) ? 0 : this.providerEndCheckOrgName.hashCode()); + result = prime * result + ((this.providerCheckIsFinish == null) ? 0 : this.providerCheckIsFinish.hashCode()); + result = prime * result + ((this.secretKey == null) ? 0 : this.secretKey.hashCode()); + result = prime * result + ((this.status == null) ? 0 : this.status.hashCode()); + result = prime * result + ((this.projectId == null) ? 0 : this.projectId.hashCode()); + result = prime * result + ((this.projectName == null) ? 0 : this.projectName.hashCode()); + result = prime * result + ((this.sign == null) ? 0 : this.sign.hashCode()); + return result; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder("FilesApply ("); + + sb.append(id); + sb.append(", ").append(applyUserId); + sb.append(", ").append(applyUserName); + sb.append(", ").append(applyUserPhone); + sb.append(", ").append(applyUserEmail); + sb.append(", ").append(applyOrgId); + sb.append(", ").append(applyOrgName); + sb.append(", ").append(applyInCheckUserId); + sb.append(", ").append(applyInCheckUserName); + sb.append(", ").append(applyInCheckOrgId); + sb.append(", ").append(applyInCheckOrgName); + sb.append(", ").append(applyNextCheckOrgId); + sb.append(", ").append(applyNextCheckOrgName); + sb.append(", ").append(applyEndCheckUserId); + sb.append(", ").append(applyEndCheckUserName); + sb.append(", ").append(applyEndCheckOrgId); + sb.append(", ").append(applyEndCheckOrgName); + sb.append(", ").append(applyDays); + sb.append(", ").append(applyFeedback); + sb.append(", ").append(applyReason); + sb.append(", ").append(applyCancelReason); + sb.append(", ").append(applyViewTypePrint); + sb.append(", ").append(applyViewTypeOnline); + sb.append(", ").append(applyFileNum); + sb.append(", ").append(applyTime); + sb.append(", ").append(applyCheckIsFinish); + sb.append(", ").append(providerOrgId); + sb.append(", ").append(providerOrgName); + sb.append(", ").append(providerFileProperties); + sb.append(", ").append(providerUseStartTime); + sb.append(", ").append(providerUseEndTime); + sb.append(", ").append(providerInCheckUserId); + sb.append(", ").append(providerInCheckUserName); + sb.append(", ").append(providerInCheckOrgId); + sb.append(", ").append(providerInCheckOrgName); + sb.append(", ").append(providerNextCheckRoleSignId); + sb.append(", ").append(providerNextCheckRoleSignName); + sb.append(", ").append(providerEndCheckUserId); + sb.append(", ").append(providerEndCheckUserName); + sb.append(", ").append(providerEndCheckOrgId); + sb.append(", ").append(providerEndCheckOrgName); + sb.append(", ").append(providerCheckIsFinish); + sb.append(", ").append(secretKey); + sb.append(", ").append(status); + sb.append(", ").append(projectId); + sb.append(", ").append(projectName); + sb.append(", ").append(sign); + + sb.append(")"); + return sb.toString(); + } +} diff --git a/src/main/java/jj/tech/paolu/repository/jooq/tables/pojos/FilesApplyCheckRecord.java b/src/main/java/jj/tech/paolu/repository/jooq/tables/pojos/FilesApplyCheckRecord.java new file mode 100644 index 0000000..2b538aa --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/jooq/tables/pojos/FilesApplyCheckRecord.java @@ -0,0 +1,456 @@ +/* + * This file is generated by jOOQ. + */ +package jj.tech.paolu.repository.jooq.tables.pojos; + + +import java.io.Serializable; +import java.time.LocalDateTime; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +public class FilesApplyCheckRecord implements Serializable { + + private static final long serialVersionUID = 1L; + + private String id; + private String filesApplyId; + private Integer isApplyProvider; + private String checkUserId; + private String checkUserName; + private String checkOrgId; + private String checkOrgName; + private String nextCheckOrgId; + private String nextCheckOrgName; + private String checkDescribe; + private Integer checkStatus; + private LocalDateTime checkTime; + private String providerNextCheckRoleSignId; + private String providerNextCheckRoleSignName; + private String sign; + + public FilesApplyCheckRecord() {} + + public FilesApplyCheckRecord(FilesApplyCheckRecord value) { + this.id = value.id; + this.filesApplyId = value.filesApplyId; + this.isApplyProvider = value.isApplyProvider; + this.checkUserId = value.checkUserId; + this.checkUserName = value.checkUserName; + this.checkOrgId = value.checkOrgId; + this.checkOrgName = value.checkOrgName; + this.nextCheckOrgId = value.nextCheckOrgId; + this.nextCheckOrgName = value.nextCheckOrgName; + this.checkDescribe = value.checkDescribe; + this.checkStatus = value.checkStatus; + this.checkTime = value.checkTime; + this.providerNextCheckRoleSignId = value.providerNextCheckRoleSignId; + this.providerNextCheckRoleSignName = value.providerNextCheckRoleSignName; + this.sign = value.sign; + } + + public FilesApplyCheckRecord( + String id, + String filesApplyId, + Integer isApplyProvider, + String checkUserId, + String checkUserName, + String checkOrgId, + String checkOrgName, + String nextCheckOrgId, + String nextCheckOrgName, + String checkDescribe, + Integer checkStatus, + LocalDateTime checkTime, + String providerNextCheckRoleSignId, + String providerNextCheckRoleSignName, + String sign + ) { + this.id = id; + this.filesApplyId = filesApplyId; + this.isApplyProvider = isApplyProvider; + this.checkUserId = checkUserId; + this.checkUserName = checkUserName; + this.checkOrgId = checkOrgId; + this.checkOrgName = checkOrgName; + this.nextCheckOrgId = nextCheckOrgId; + this.nextCheckOrgName = nextCheckOrgName; + this.checkDescribe = checkDescribe; + this.checkStatus = checkStatus; + this.checkTime = checkTime; + this.providerNextCheckRoleSignId = providerNextCheckRoleSignId; + this.providerNextCheckRoleSignName = providerNextCheckRoleSignName; + this.sign = sign; + } + + /** + * Getter for public.files_apply_check_record.id. + */ + public String getId() { + return this.id; + } + + /** + * Setter for public.files_apply_check_record.id. + */ + public void setId(String id) { + this.id = id; + } + + /** + * Getter for public.files_apply_check_record.files_apply_id. + */ + public String getFilesApplyId() { + return this.filesApplyId; + } + + /** + * Setter for public.files_apply_check_record.files_apply_id. + */ + public void setFilesApplyId(String filesApplyId) { + this.filesApplyId = filesApplyId; + } + + /** + * Getter for + * public.files_apply_check_record.is_apply_provider. + */ + public Integer getIsApplyProvider() { + return this.isApplyProvider; + } + + /** + * Setter for + * public.files_apply_check_record.is_apply_provider. + */ + public void setIsApplyProvider(Integer isApplyProvider) { + this.isApplyProvider = isApplyProvider; + } + + /** + * Getter for public.files_apply_check_record.check_user_id. + */ + public String getCheckUserId() { + return this.checkUserId; + } + + /** + * Setter for public.files_apply_check_record.check_user_id. + */ + public void setCheckUserId(String checkUserId) { + this.checkUserId = checkUserId; + } + + /** + * Getter for public.files_apply_check_record.check_user_name. + */ + public String getCheckUserName() { + return this.checkUserName; + } + + /** + * Setter for public.files_apply_check_record.check_user_name. + */ + public void setCheckUserName(String checkUserName) { + this.checkUserName = checkUserName; + } + + /** + * Getter for public.files_apply_check_record.check_org_id. + */ + public String getCheckOrgId() { + return this.checkOrgId; + } + + /** + * Setter for public.files_apply_check_record.check_org_id. + */ + public void setCheckOrgId(String checkOrgId) { + this.checkOrgId = checkOrgId; + } + + /** + * Getter for public.files_apply_check_record.check_org_name. + */ + public String getCheckOrgName() { + return this.checkOrgName; + } + + /** + * Setter for public.files_apply_check_record.check_org_name. + */ + public void setCheckOrgName(String checkOrgName) { + this.checkOrgName = checkOrgName; + } + + /** + * Getter for + * public.files_apply_check_record.next_check_org_id. + */ + public String getNextCheckOrgId() { + return this.nextCheckOrgId; + } + + /** + * Setter for + * public.files_apply_check_record.next_check_org_id. + */ + public void setNextCheckOrgId(String nextCheckOrgId) { + this.nextCheckOrgId = nextCheckOrgId; + } + + /** + * Getter for + * public.files_apply_check_record.next_check_org_name. + */ + public String getNextCheckOrgName() { + return this.nextCheckOrgName; + } + + /** + * Setter for + * public.files_apply_check_record.next_check_org_name. + */ + public void setNextCheckOrgName(String nextCheckOrgName) { + this.nextCheckOrgName = nextCheckOrgName; + } + + /** + * Getter for public.files_apply_check_record.check_describe. + */ + public String getCheckDescribe() { + return this.checkDescribe; + } + + /** + * Setter for public.files_apply_check_record.check_describe. + */ + public void setCheckDescribe(String checkDescribe) { + this.checkDescribe = checkDescribe; + } + + /** + * Getter for public.files_apply_check_record.check_status. + */ + public Integer getCheckStatus() { + return this.checkStatus; + } + + /** + * Setter for public.files_apply_check_record.check_status. + */ + public void setCheckStatus(Integer checkStatus) { + this.checkStatus = checkStatus; + } + + /** + * Getter for public.files_apply_check_record.check_time. + */ + public LocalDateTime getCheckTime() { + return this.checkTime; + } + + /** + * Setter for public.files_apply_check_record.check_time. + */ + public void setCheckTime(LocalDateTime checkTime) { + this.checkTime = checkTime; + } + + /** + * Getter for + * public.files_apply_check_record.provider_next_check_role_sign_id. + */ + public String getProviderNextCheckRoleSignId() { + return this.providerNextCheckRoleSignId; + } + + /** + * Setter for + * public.files_apply_check_record.provider_next_check_role_sign_id. + */ + public void setProviderNextCheckRoleSignId(String providerNextCheckRoleSignId) { + this.providerNextCheckRoleSignId = providerNextCheckRoleSignId; + } + + /** + * Getter for + * public.files_apply_check_record.provider_next_check_role_sign_name. + */ + public String getProviderNextCheckRoleSignName() { + return this.providerNextCheckRoleSignName; + } + + /** + * Setter for + * public.files_apply_check_record.provider_next_check_role_sign_name. + */ + public void setProviderNextCheckRoleSignName(String providerNextCheckRoleSignName) { + this.providerNextCheckRoleSignName = providerNextCheckRoleSignName; + } + + /** + * Getter for public.files_apply_check_record.sign. + */ + public String getSign() { + return this.sign; + } + + /** + * Setter for public.files_apply_check_record.sign. + */ + public void setSign(String sign) { + this.sign = sign; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + if (getClass() != obj.getClass()) + return false; + final FilesApplyCheckRecord other = (FilesApplyCheckRecord) obj; + if (this.id == null) { + if (other.id != null) + return false; + } + else if (!this.id.equals(other.id)) + return false; + if (this.filesApplyId == null) { + if (other.filesApplyId != null) + return false; + } + else if (!this.filesApplyId.equals(other.filesApplyId)) + return false; + if (this.isApplyProvider == null) { + if (other.isApplyProvider != null) + return false; + } + else if (!this.isApplyProvider.equals(other.isApplyProvider)) + return false; + if (this.checkUserId == null) { + if (other.checkUserId != null) + return false; + } + else if (!this.checkUserId.equals(other.checkUserId)) + return false; + if (this.checkUserName == null) { + if (other.checkUserName != null) + return false; + } + else if (!this.checkUserName.equals(other.checkUserName)) + return false; + if (this.checkOrgId == null) { + if (other.checkOrgId != null) + return false; + } + else if (!this.checkOrgId.equals(other.checkOrgId)) + return false; + if (this.checkOrgName == null) { + if (other.checkOrgName != null) + return false; + } + else if (!this.checkOrgName.equals(other.checkOrgName)) + return false; + if (this.nextCheckOrgId == null) { + if (other.nextCheckOrgId != null) + return false; + } + else if (!this.nextCheckOrgId.equals(other.nextCheckOrgId)) + return false; + if (this.nextCheckOrgName == null) { + if (other.nextCheckOrgName != null) + return false; + } + else if (!this.nextCheckOrgName.equals(other.nextCheckOrgName)) + return false; + if (this.checkDescribe == null) { + if (other.checkDescribe != null) + return false; + } + else if (!this.checkDescribe.equals(other.checkDescribe)) + return false; + if (this.checkStatus == null) { + if (other.checkStatus != null) + return false; + } + else if (!this.checkStatus.equals(other.checkStatus)) + return false; + if (this.checkTime == null) { + if (other.checkTime != null) + return false; + } + else if (!this.checkTime.equals(other.checkTime)) + return false; + if (this.providerNextCheckRoleSignId == null) { + if (other.providerNextCheckRoleSignId != null) + return false; + } + else if (!this.providerNextCheckRoleSignId.equals(other.providerNextCheckRoleSignId)) + return false; + if (this.providerNextCheckRoleSignName == null) { + if (other.providerNextCheckRoleSignName != null) + return false; + } + else if (!this.providerNextCheckRoleSignName.equals(other.providerNextCheckRoleSignName)) + return false; + if (this.sign == null) { + if (other.sign != null) + return false; + } + else if (!this.sign.equals(other.sign)) + return false; + return true; + } + + @Override + public int hashCode() { + final int prime = 31; + int result = 1; + result = prime * result + ((this.id == null) ? 0 : this.id.hashCode()); + result = prime * result + ((this.filesApplyId == null) ? 0 : this.filesApplyId.hashCode()); + result = prime * result + ((this.isApplyProvider == null) ? 0 : this.isApplyProvider.hashCode()); + result = prime * result + ((this.checkUserId == null) ? 0 : this.checkUserId.hashCode()); + result = prime * result + ((this.checkUserName == null) ? 0 : this.checkUserName.hashCode()); + result = prime * result + ((this.checkOrgId == null) ? 0 : this.checkOrgId.hashCode()); + result = prime * result + ((this.checkOrgName == null) ? 0 : this.checkOrgName.hashCode()); + result = prime * result + ((this.nextCheckOrgId == null) ? 0 : this.nextCheckOrgId.hashCode()); + result = prime * result + ((this.nextCheckOrgName == null) ? 0 : this.nextCheckOrgName.hashCode()); + result = prime * result + ((this.checkDescribe == null) ? 0 : this.checkDescribe.hashCode()); + result = prime * result + ((this.checkStatus == null) ? 0 : this.checkStatus.hashCode()); + result = prime * result + ((this.checkTime == null) ? 0 : this.checkTime.hashCode()); + result = prime * result + ((this.providerNextCheckRoleSignId == null) ? 0 : this.providerNextCheckRoleSignId.hashCode()); + result = prime * result + ((this.providerNextCheckRoleSignName == null) ? 0 : this.providerNextCheckRoleSignName.hashCode()); + result = prime * result + ((this.sign == null) ? 0 : this.sign.hashCode()); + return result; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder("FilesApplyCheckRecord ("); + + sb.append(id); + sb.append(", ").append(filesApplyId); + sb.append(", ").append(isApplyProvider); + sb.append(", ").append(checkUserId); + sb.append(", ").append(checkUserName); + sb.append(", ").append(checkOrgId); + sb.append(", ").append(checkOrgName); + sb.append(", ").append(nextCheckOrgId); + sb.append(", ").append(nextCheckOrgName); + sb.append(", ").append(checkDescribe); + sb.append(", ").append(checkStatus); + sb.append(", ").append(checkTime); + sb.append(", ").append(providerNextCheckRoleSignId); + sb.append(", ").append(providerNextCheckRoleSignName); + sb.append(", ").append(sign); + + sb.append(")"); + return sb.toString(); + } +} diff --git a/src/main/java/jj/tech/paolu/repository/jooq/tables/pojos/FilesApplyDirectoryDocs.java b/src/main/java/jj/tech/paolu/repository/jooq/tables/pojos/FilesApplyDirectoryDocs.java new file mode 100644 index 0000000..ac24c10 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/jooq/tables/pojos/FilesApplyDirectoryDocs.java @@ -0,0 +1,657 @@ +/* + * This file is generated by jOOQ. + */ +package jj.tech.paolu.repository.jooq.tables.pojos; + + +import java.io.Serializable; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +public class FilesApplyDirectoryDocs implements Serializable { + + private static final long serialVersionUID = 1L; + + private String id; + private String filesApplyId; + private String directoryFileId; + private String directoryFilePId; + private String filesuper; + private Integer filecount; + private String dutyperson; + private String eweavedate; + private Integer filepage; + private String sortorder; + private String bpeg; + private String epeg; + private String filenum; + private String remark; + private String recordnum; + private String piecenumber; + private String adddate; + private String editdate; + private String timeStamp; + private Integer isdel; + private String catalogpdfurl; + private String signtag; + private String collecttag; + + public FilesApplyDirectoryDocs() {} + + public FilesApplyDirectoryDocs(FilesApplyDirectoryDocs value) { + this.id = value.id; + this.filesApplyId = value.filesApplyId; + this.directoryFileId = value.directoryFileId; + this.directoryFilePId = value.directoryFilePId; + this.filesuper = value.filesuper; + this.filecount = value.filecount; + this.dutyperson = value.dutyperson; + this.eweavedate = value.eweavedate; + this.filepage = value.filepage; + this.sortorder = value.sortorder; + this.bpeg = value.bpeg; + this.epeg = value.epeg; + this.filenum = value.filenum; + this.remark = value.remark; + this.recordnum = value.recordnum; + this.piecenumber = value.piecenumber; + this.adddate = value.adddate; + this.editdate = value.editdate; + this.timeStamp = value.timeStamp; + this.isdel = value.isdel; + this.catalogpdfurl = value.catalogpdfurl; + this.signtag = value.signtag; + this.collecttag = value.collecttag; + } + + public FilesApplyDirectoryDocs( + String id, + String filesApplyId, + String directoryFileId, + String directoryFilePId, + String filesuper, + Integer filecount, + String dutyperson, + String eweavedate, + Integer filepage, + String sortorder, + String bpeg, + String epeg, + String filenum, + String remark, + String recordnum, + String piecenumber, + String adddate, + String editdate, + String timeStamp, + Integer isdel, + String catalogpdfurl, + String signtag, + String collecttag + ) { + this.id = id; + this.filesApplyId = filesApplyId; + this.directoryFileId = directoryFileId; + this.directoryFilePId = directoryFilePId; + this.filesuper = filesuper; + this.filecount = filecount; + this.dutyperson = dutyperson; + this.eweavedate = eweavedate; + this.filepage = filepage; + this.sortorder = sortorder; + this.bpeg = bpeg; + this.epeg = epeg; + this.filenum = filenum; + this.remark = remark; + this.recordnum = recordnum; + this.piecenumber = piecenumber; + this.adddate = adddate; + this.editdate = editdate; + this.timeStamp = timeStamp; + this.isdel = isdel; + this.catalogpdfurl = catalogpdfurl; + this.signtag = signtag; + this.collecttag = collecttag; + } + + /** + * Getter for public.files_apply_directory_docs.id. + */ + public String getId() { + return this.id; + } + + /** + * Setter for public.files_apply_directory_docs.id. + */ + public void setId(String id) { + this.id = id; + } + + /** + * Getter for public.files_apply_directory_docs.files_apply_id. + */ + public String getFilesApplyId() { + return this.filesApplyId; + } + + /** + * Setter for public.files_apply_directory_docs.files_apply_id. + */ + public void setFilesApplyId(String filesApplyId) { + this.filesApplyId = filesApplyId; + } + + /** + * Getter for + * public.files_apply_directory_docs.directory_file_id. + */ + public String getDirectoryFileId() { + return this.directoryFileId; + } + + /** + * Setter for + * public.files_apply_directory_docs.directory_file_id. + */ + public void setDirectoryFileId(String directoryFileId) { + this.directoryFileId = directoryFileId; + } + + /** + * Getter for + * public.files_apply_directory_docs.directory_file_p_id. + */ + public String getDirectoryFilePId() { + return this.directoryFilePId; + } + + /** + * Setter for + * public.files_apply_directory_docs.directory_file_p_id. + */ + public void setDirectoryFilePId(String directoryFilePId) { + this.directoryFilePId = directoryFilePId; + } + + /** + * Getter for public.files_apply_directory_docs.filesuper. + */ + public String getFilesuper() { + return this.filesuper; + } + + /** + * Setter for public.files_apply_directory_docs.filesuper. + */ + public void setFilesuper(String filesuper) { + this.filesuper = filesuper; + } + + /** + * Getter for public.files_apply_directory_docs.filecount. + */ + public Integer getFilecount() { + return this.filecount; + } + + /** + * Setter for public.files_apply_directory_docs.filecount. + */ + public void setFilecount(Integer filecount) { + this.filecount = filecount; + } + + /** + * Getter for public.files_apply_directory_docs.dutyperson. + */ + public String getDutyperson() { + return this.dutyperson; + } + + /** + * Setter for public.files_apply_directory_docs.dutyperson. + */ + public void setDutyperson(String dutyperson) { + this.dutyperson = dutyperson; + } + + /** + * Getter for public.files_apply_directory_docs.eweavedate. + */ + public String getEweavedate() { + return this.eweavedate; + } + + /** + * Setter for public.files_apply_directory_docs.eweavedate. + */ + public void setEweavedate(String eweavedate) { + this.eweavedate = eweavedate; + } + + /** + * Getter for public.files_apply_directory_docs.filepage. + */ + public Integer getFilepage() { + return this.filepage; + } + + /** + * Setter for public.files_apply_directory_docs.filepage. + */ + public void setFilepage(Integer filepage) { + this.filepage = filepage; + } + + /** + * Getter for public.files_apply_directory_docs.sortorder. + */ + public String getSortorder() { + return this.sortorder; + } + + /** + * Setter for public.files_apply_directory_docs.sortorder. + */ + public void setSortorder(String sortorder) { + this.sortorder = sortorder; + } + + /** + * Getter for public.files_apply_directory_docs.bpeg. + */ + public String getBpeg() { + return this.bpeg; + } + + /** + * Setter for public.files_apply_directory_docs.bpeg. + */ + public void setBpeg(String bpeg) { + this.bpeg = bpeg; + } + + /** + * Getter for public.files_apply_directory_docs.epeg. + */ + public String getEpeg() { + return this.epeg; + } + + /** + * Setter for public.files_apply_directory_docs.epeg. + */ + public void setEpeg(String epeg) { + this.epeg = epeg; + } + + /** + * Getter for public.files_apply_directory_docs.filenum. + */ + public String getFilenum() { + return this.filenum; + } + + /** + * Setter for public.files_apply_directory_docs.filenum. + */ + public void setFilenum(String filenum) { + this.filenum = filenum; + } + + /** + * Getter for public.files_apply_directory_docs.remark. + */ + public String getRemark() { + return this.remark; + } + + /** + * Setter for public.files_apply_directory_docs.remark. + */ + public void setRemark(String remark) { + this.remark = remark; + } + + /** + * Getter for public.files_apply_directory_docs.recordnum. + */ + public String getRecordnum() { + return this.recordnum; + } + + /** + * Setter for public.files_apply_directory_docs.recordnum. + */ + public void setRecordnum(String recordnum) { + this.recordnum = recordnum; + } + + /** + * Getter for public.files_apply_directory_docs.piecenumber. + */ + public String getPiecenumber() { + return this.piecenumber; + } + + /** + * Setter for public.files_apply_directory_docs.piecenumber. + */ + public void setPiecenumber(String piecenumber) { + this.piecenumber = piecenumber; + } + + /** + * Getter for public.files_apply_directory_docs.adddate. + */ + public String getAdddate() { + return this.adddate; + } + + /** + * Setter for public.files_apply_directory_docs.adddate. + */ + public void setAdddate(String adddate) { + this.adddate = adddate; + } + + /** + * Getter for public.files_apply_directory_docs.editdate. + */ + public String getEditdate() { + return this.editdate; + } + + /** + * Setter for public.files_apply_directory_docs.editdate. + */ + public void setEditdate(String editdate) { + this.editdate = editdate; + } + + /** + * Getter for public.files_apply_directory_docs.time_stamp. + */ + public String getTimeStamp() { + return this.timeStamp; + } + + /** + * Setter for public.files_apply_directory_docs.time_stamp. + */ + public void setTimeStamp(String timeStamp) { + this.timeStamp = timeStamp; + } + + /** + * Getter for public.files_apply_directory_docs.isdel. + */ + public Integer getIsdel() { + return this.isdel; + } + + /** + * Setter for public.files_apply_directory_docs.isdel. + */ + public void setIsdel(Integer isdel) { + this.isdel = isdel; + } + + /** + * Getter for public.files_apply_directory_docs.catalogpdfurl. + */ + public String getCatalogpdfurl() { + return this.catalogpdfurl; + } + + /** + * Setter for public.files_apply_directory_docs.catalogpdfurl. + */ + public void setCatalogpdfurl(String catalogpdfurl) { + this.catalogpdfurl = catalogpdfurl; + } + + /** + * Getter for public.files_apply_directory_docs.signtag. + */ + public String getSigntag() { + return this.signtag; + } + + /** + * Setter for public.files_apply_directory_docs.signtag. + */ + public void setSigntag(String signtag) { + this.signtag = signtag; + } + + /** + * Getter for public.files_apply_directory_docs.collecttag. + */ + public String getCollecttag() { + return this.collecttag; + } + + /** + * Setter for public.files_apply_directory_docs.collecttag. + */ + public void setCollecttag(String collecttag) { + this.collecttag = collecttag; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + if (getClass() != obj.getClass()) + return false; + final FilesApplyDirectoryDocs other = (FilesApplyDirectoryDocs) obj; + if (this.id == null) { + if (other.id != null) + return false; + } + else if (!this.id.equals(other.id)) + return false; + if (this.filesApplyId == null) { + if (other.filesApplyId != null) + return false; + } + else if (!this.filesApplyId.equals(other.filesApplyId)) + return false; + if (this.directoryFileId == null) { + if (other.directoryFileId != null) + return false; + } + else if (!this.directoryFileId.equals(other.directoryFileId)) + return false; + if (this.directoryFilePId == null) { + if (other.directoryFilePId != null) + return false; + } + else if (!this.directoryFilePId.equals(other.directoryFilePId)) + return false; + if (this.filesuper == null) { + if (other.filesuper != null) + return false; + } + else if (!this.filesuper.equals(other.filesuper)) + return false; + if (this.filecount == null) { + if (other.filecount != null) + return false; + } + else if (!this.filecount.equals(other.filecount)) + return false; + if (this.dutyperson == null) { + if (other.dutyperson != null) + return false; + } + else if (!this.dutyperson.equals(other.dutyperson)) + return false; + if (this.eweavedate == null) { + if (other.eweavedate != null) + return false; + } + else if (!this.eweavedate.equals(other.eweavedate)) + return false; + if (this.filepage == null) { + if (other.filepage != null) + return false; + } + else if (!this.filepage.equals(other.filepage)) + return false; + if (this.sortorder == null) { + if (other.sortorder != null) + return false; + } + else if (!this.sortorder.equals(other.sortorder)) + return false; + if (this.bpeg == null) { + if (other.bpeg != null) + return false; + } + else if (!this.bpeg.equals(other.bpeg)) + return false; + if (this.epeg == null) { + if (other.epeg != null) + return false; + } + else if (!this.epeg.equals(other.epeg)) + return false; + if (this.filenum == null) { + if (other.filenum != null) + return false; + } + else if (!this.filenum.equals(other.filenum)) + return false; + if (this.remark == null) { + if (other.remark != null) + return false; + } + else if (!this.remark.equals(other.remark)) + return false; + if (this.recordnum == null) { + if (other.recordnum != null) + return false; + } + else if (!this.recordnum.equals(other.recordnum)) + return false; + if (this.piecenumber == null) { + if (other.piecenumber != null) + return false; + } + else if (!this.piecenumber.equals(other.piecenumber)) + return false; + if (this.adddate == null) { + if (other.adddate != null) + return false; + } + else if (!this.adddate.equals(other.adddate)) + return false; + if (this.editdate == null) { + if (other.editdate != null) + return false; + } + else if (!this.editdate.equals(other.editdate)) + return false; + if (this.timeStamp == null) { + if (other.timeStamp != null) + return false; + } + else if (!this.timeStamp.equals(other.timeStamp)) + return false; + if (this.isdel == null) { + if (other.isdel != null) + return false; + } + else if (!this.isdel.equals(other.isdel)) + return false; + if (this.catalogpdfurl == null) { + if (other.catalogpdfurl != null) + return false; + } + else if (!this.catalogpdfurl.equals(other.catalogpdfurl)) + return false; + if (this.signtag == null) { + if (other.signtag != null) + return false; + } + else if (!this.signtag.equals(other.signtag)) + return false; + if (this.collecttag == null) { + if (other.collecttag != null) + return false; + } + else if (!this.collecttag.equals(other.collecttag)) + return false; + return true; + } + + @Override + public int hashCode() { + final int prime = 31; + int result = 1; + result = prime * result + ((this.id == null) ? 0 : this.id.hashCode()); + result = prime * result + ((this.filesApplyId == null) ? 0 : this.filesApplyId.hashCode()); + result = prime * result + ((this.directoryFileId == null) ? 0 : this.directoryFileId.hashCode()); + result = prime * result + ((this.directoryFilePId == null) ? 0 : this.directoryFilePId.hashCode()); + result = prime * result + ((this.filesuper == null) ? 0 : this.filesuper.hashCode()); + result = prime * result + ((this.filecount == null) ? 0 : this.filecount.hashCode()); + result = prime * result + ((this.dutyperson == null) ? 0 : this.dutyperson.hashCode()); + result = prime * result + ((this.eweavedate == null) ? 0 : this.eweavedate.hashCode()); + result = prime * result + ((this.filepage == null) ? 0 : this.filepage.hashCode()); + result = prime * result + ((this.sortorder == null) ? 0 : this.sortorder.hashCode()); + result = prime * result + ((this.bpeg == null) ? 0 : this.bpeg.hashCode()); + result = prime * result + ((this.epeg == null) ? 0 : this.epeg.hashCode()); + result = prime * result + ((this.filenum == null) ? 0 : this.filenum.hashCode()); + result = prime * result + ((this.remark == null) ? 0 : this.remark.hashCode()); + result = prime * result + ((this.recordnum == null) ? 0 : this.recordnum.hashCode()); + result = prime * result + ((this.piecenumber == null) ? 0 : this.piecenumber.hashCode()); + result = prime * result + ((this.adddate == null) ? 0 : this.adddate.hashCode()); + result = prime * result + ((this.editdate == null) ? 0 : this.editdate.hashCode()); + result = prime * result + ((this.timeStamp == null) ? 0 : this.timeStamp.hashCode()); + result = prime * result + ((this.isdel == null) ? 0 : this.isdel.hashCode()); + result = prime * result + ((this.catalogpdfurl == null) ? 0 : this.catalogpdfurl.hashCode()); + result = prime * result + ((this.signtag == null) ? 0 : this.signtag.hashCode()); + result = prime * result + ((this.collecttag == null) ? 0 : this.collecttag.hashCode()); + return result; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder("FilesApplyDirectoryDocs ("); + + sb.append(id); + sb.append(", ").append(filesApplyId); + sb.append(", ").append(directoryFileId); + sb.append(", ").append(directoryFilePId); + sb.append(", ").append(filesuper); + sb.append(", ").append(filecount); + sb.append(", ").append(dutyperson); + sb.append(", ").append(eweavedate); + sb.append(", ").append(filepage); + sb.append(", ").append(sortorder); + sb.append(", ").append(bpeg); + sb.append(", ").append(epeg); + sb.append(", ").append(filenum); + sb.append(", ").append(remark); + sb.append(", ").append(recordnum); + sb.append(", ").append(piecenumber); + sb.append(", ").append(adddate); + sb.append(", ").append(editdate); + sb.append(", ").append(timeStamp); + sb.append(", ").append(isdel); + sb.append(", ").append(catalogpdfurl); + sb.append(", ").append(signtag); + sb.append(", ").append(collecttag); + + sb.append(")"); + return sb.toString(); + } +} diff --git a/src/main/java/jj/tech/paolu/repository/jooq/tables/pojos/FilesApplyDocs.java b/src/main/java/jj/tech/paolu/repository/jooq/tables/pojos/FilesApplyDocs.java new file mode 100644 index 0000000..dcc21e8 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/jooq/tables/pojos/FilesApplyDocs.java @@ -0,0 +1,601 @@ +/* + * This file is generated by jOOQ. + */ +package jj.tech.paolu.repository.jooq.tables.pojos; + + +import java.io.Serializable; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +public class FilesApplyDocs implements Serializable { + + private static final long serialVersionUID = 1L; + + private String id; + private String filesApplyId; + private String synFileId; + private String synFilePId; + private String tablenumber; + private String annexname; + private String projectname; + private String eweavedate; + private String checkdate; + private Integer annexpage; + private String sortorder; + private String filefrom; + private String archivestag; + private String adddate; + private String editdate; + private String timeStamp; + private Integer isdel; + private String downurl; + private Integer filesize; + private Integer applyViewTypePrint; + private Integer applyViewTypeOnline; + + public FilesApplyDocs() {} + + public FilesApplyDocs(FilesApplyDocs value) { + this.id = value.id; + this.filesApplyId = value.filesApplyId; + this.synFileId = value.synFileId; + this.synFilePId = value.synFilePId; + this.tablenumber = value.tablenumber; + this.annexname = value.annexname; + this.projectname = value.projectname; + this.eweavedate = value.eweavedate; + this.checkdate = value.checkdate; + this.annexpage = value.annexpage; + this.sortorder = value.sortorder; + this.filefrom = value.filefrom; + this.archivestag = value.archivestag; + this.adddate = value.adddate; + this.editdate = value.editdate; + this.timeStamp = value.timeStamp; + this.isdel = value.isdel; + this.downurl = value.downurl; + this.filesize = value.filesize; + this.applyViewTypePrint = value.applyViewTypePrint; + this.applyViewTypeOnline = value.applyViewTypeOnline; + } + + public FilesApplyDocs( + String id, + String filesApplyId, + String synFileId, + String synFilePId, + String tablenumber, + String annexname, + String projectname, + String eweavedate, + String checkdate, + Integer annexpage, + String sortorder, + String filefrom, + String archivestag, + String adddate, + String editdate, + String timeStamp, + Integer isdel, + String downurl, + Integer filesize, + Integer applyViewTypePrint, + Integer applyViewTypeOnline + ) { + this.id = id; + this.filesApplyId = filesApplyId; + this.synFileId = synFileId; + this.synFilePId = synFilePId; + this.tablenumber = tablenumber; + this.annexname = annexname; + this.projectname = projectname; + this.eweavedate = eweavedate; + this.checkdate = checkdate; + this.annexpage = annexpage; + this.sortorder = sortorder; + this.filefrom = filefrom; + this.archivestag = archivestag; + this.adddate = adddate; + this.editdate = editdate; + this.timeStamp = timeStamp; + this.isdel = isdel; + this.downurl = downurl; + this.filesize = filesize; + this.applyViewTypePrint = applyViewTypePrint; + this.applyViewTypeOnline = applyViewTypeOnline; + } + + /** + * Getter for public.files_apply_docs.id. + */ + public String getId() { + return this.id; + } + + /** + * Setter for public.files_apply_docs.id. + */ + public void setId(String id) { + this.id = id; + } + + /** + * Getter for public.files_apply_docs.files_apply_id. + */ + public String getFilesApplyId() { + return this.filesApplyId; + } + + /** + * Setter for public.files_apply_docs.files_apply_id. + */ + public void setFilesApplyId(String filesApplyId) { + this.filesApplyId = filesApplyId; + } + + /** + * Getter for public.files_apply_docs.syn_file_id. + */ + public String getSynFileId() { + return this.synFileId; + } + + /** + * Setter for public.files_apply_docs.syn_file_id. + */ + public void setSynFileId(String synFileId) { + this.synFileId = synFileId; + } + + /** + * Getter for public.files_apply_docs.syn_file_p_id. + */ + public String getSynFilePId() { + return this.synFilePId; + } + + /** + * Setter for public.files_apply_docs.syn_file_p_id. + */ + public void setSynFilePId(String synFilePId) { + this.synFilePId = synFilePId; + } + + /** + * Getter for public.files_apply_docs.tablenumber. + */ + public String getTablenumber() { + return this.tablenumber; + } + + /** + * Setter for public.files_apply_docs.tablenumber. + */ + public void setTablenumber(String tablenumber) { + this.tablenumber = tablenumber; + } + + /** + * Getter for public.files_apply_docs.annexname. + */ + public String getAnnexname() { + return this.annexname; + } + + /** + * Setter for public.files_apply_docs.annexname. + */ + public void setAnnexname(String annexname) { + this.annexname = annexname; + } + + /** + * Getter for public.files_apply_docs.projectname. + */ + public String getProjectname() { + return this.projectname; + } + + /** + * Setter for public.files_apply_docs.projectname. + */ + public void setProjectname(String projectname) { + this.projectname = projectname; + } + + /** + * Getter for public.files_apply_docs.eweavedate. + */ + public String getEweavedate() { + return this.eweavedate; + } + + /** + * Setter for public.files_apply_docs.eweavedate. + */ + public void setEweavedate(String eweavedate) { + this.eweavedate = eweavedate; + } + + /** + * Getter for public.files_apply_docs.checkdate. + */ + public String getCheckdate() { + return this.checkdate; + } + + /** + * Setter for public.files_apply_docs.checkdate. + */ + public void setCheckdate(String checkdate) { + this.checkdate = checkdate; + } + + /** + * Getter for public.files_apply_docs.annexpage. + */ + public Integer getAnnexpage() { + return this.annexpage; + } + + /** + * Setter for public.files_apply_docs.annexpage. + */ + public void setAnnexpage(Integer annexpage) { + this.annexpage = annexpage; + } + + /** + * Getter for public.files_apply_docs.sortorder. + */ + public String getSortorder() { + return this.sortorder; + } + + /** + * Setter for public.files_apply_docs.sortorder. + */ + public void setSortorder(String sortorder) { + this.sortorder = sortorder; + } + + /** + * Getter for public.files_apply_docs.filefrom. + */ + public String getFilefrom() { + return this.filefrom; + } + + /** + * Setter for public.files_apply_docs.filefrom. + */ + public void setFilefrom(String filefrom) { + this.filefrom = filefrom; + } + + /** + * Getter for public.files_apply_docs.archivestag. + */ + public String getArchivestag() { + return this.archivestag; + } + + /** + * Setter for public.files_apply_docs.archivestag. + */ + public void setArchivestag(String archivestag) { + this.archivestag = archivestag; + } + + /** + * Getter for public.files_apply_docs.adddate. + */ + public String getAdddate() { + return this.adddate; + } + + /** + * Setter for public.files_apply_docs.adddate. + */ + public void setAdddate(String adddate) { + this.adddate = adddate; + } + + /** + * Getter for public.files_apply_docs.editdate. + */ + public String getEditdate() { + return this.editdate; + } + + /** + * Setter for public.files_apply_docs.editdate. + */ + public void setEditdate(String editdate) { + this.editdate = editdate; + } + + /** + * Getter for public.files_apply_docs.time_stamp. + */ + public String getTimeStamp() { + return this.timeStamp; + } + + /** + * Setter for public.files_apply_docs.time_stamp. + */ + public void setTimeStamp(String timeStamp) { + this.timeStamp = timeStamp; + } + + /** + * Getter for public.files_apply_docs.isdel. + */ + public Integer getIsdel() { + return this.isdel; + } + + /** + * Setter for public.files_apply_docs.isdel. + */ + public void setIsdel(Integer isdel) { + this.isdel = isdel; + } + + /** + * Getter for public.files_apply_docs.downurl. + */ + public String getDownurl() { + return this.downurl; + } + + /** + * Setter for public.files_apply_docs.downurl. + */ + public void setDownurl(String downurl) { + this.downurl = downurl; + } + + /** + * Getter for public.files_apply_docs.filesize. + */ + public Integer getFilesize() { + return this.filesize; + } + + /** + * Setter for public.files_apply_docs.filesize. + */ + public void setFilesize(Integer filesize) { + this.filesize = filesize; + } + + /** + * Getter for public.files_apply_docs.apply_view_type_print. + */ + public Integer getApplyViewTypePrint() { + return this.applyViewTypePrint; + } + + /** + * Setter for public.files_apply_docs.apply_view_type_print. + */ + public void setApplyViewTypePrint(Integer applyViewTypePrint) { + this.applyViewTypePrint = applyViewTypePrint; + } + + /** + * Getter for public.files_apply_docs.apply_view_type_online. + */ + public Integer getApplyViewTypeOnline() { + return this.applyViewTypeOnline; + } + + /** + * Setter for public.files_apply_docs.apply_view_type_online. + */ + public void setApplyViewTypeOnline(Integer applyViewTypeOnline) { + this.applyViewTypeOnline = applyViewTypeOnline; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + if (getClass() != obj.getClass()) + return false; + final FilesApplyDocs other = (FilesApplyDocs) obj; + if (this.id == null) { + if (other.id != null) + return false; + } + else if (!this.id.equals(other.id)) + return false; + if (this.filesApplyId == null) { + if (other.filesApplyId != null) + return false; + } + else if (!this.filesApplyId.equals(other.filesApplyId)) + return false; + if (this.synFileId == null) { + if (other.synFileId != null) + return false; + } + else if (!this.synFileId.equals(other.synFileId)) + return false; + if (this.synFilePId == null) { + if (other.synFilePId != null) + return false; + } + else if (!this.synFilePId.equals(other.synFilePId)) + return false; + if (this.tablenumber == null) { + if (other.tablenumber != null) + return false; + } + else if (!this.tablenumber.equals(other.tablenumber)) + return false; + if (this.annexname == null) { + if (other.annexname != null) + return false; + } + else if (!this.annexname.equals(other.annexname)) + return false; + if (this.projectname == null) { + if (other.projectname != null) + return false; + } + else if (!this.projectname.equals(other.projectname)) + return false; + if (this.eweavedate == null) { + if (other.eweavedate != null) + return false; + } + else if (!this.eweavedate.equals(other.eweavedate)) + return false; + if (this.checkdate == null) { + if (other.checkdate != null) + return false; + } + else if (!this.checkdate.equals(other.checkdate)) + return false; + if (this.annexpage == null) { + if (other.annexpage != null) + return false; + } + else if (!this.annexpage.equals(other.annexpage)) + return false; + if (this.sortorder == null) { + if (other.sortorder != null) + return false; + } + else if (!this.sortorder.equals(other.sortorder)) + return false; + if (this.filefrom == null) { + if (other.filefrom != null) + return false; + } + else if (!this.filefrom.equals(other.filefrom)) + return false; + if (this.archivestag == null) { + if (other.archivestag != null) + return false; + } + else if (!this.archivestag.equals(other.archivestag)) + return false; + if (this.adddate == null) { + if (other.adddate != null) + return false; + } + else if (!this.adddate.equals(other.adddate)) + return false; + if (this.editdate == null) { + if (other.editdate != null) + return false; + } + else if (!this.editdate.equals(other.editdate)) + return false; + if (this.timeStamp == null) { + if (other.timeStamp != null) + return false; + } + else if (!this.timeStamp.equals(other.timeStamp)) + return false; + if (this.isdel == null) { + if (other.isdel != null) + return false; + } + else if (!this.isdel.equals(other.isdel)) + return false; + if (this.downurl == null) { + if (other.downurl != null) + return false; + } + else if (!this.downurl.equals(other.downurl)) + return false; + if (this.filesize == null) { + if (other.filesize != null) + return false; + } + else if (!this.filesize.equals(other.filesize)) + return false; + if (this.applyViewTypePrint == null) { + if (other.applyViewTypePrint != null) + return false; + } + else if (!this.applyViewTypePrint.equals(other.applyViewTypePrint)) + return false; + if (this.applyViewTypeOnline == null) { + if (other.applyViewTypeOnline != null) + return false; + } + else if (!this.applyViewTypeOnline.equals(other.applyViewTypeOnline)) + return false; + return true; + } + + @Override + public int hashCode() { + final int prime = 31; + int result = 1; + result = prime * result + ((this.id == null) ? 0 : this.id.hashCode()); + result = prime * result + ((this.filesApplyId == null) ? 0 : this.filesApplyId.hashCode()); + result = prime * result + ((this.synFileId == null) ? 0 : this.synFileId.hashCode()); + result = prime * result + ((this.synFilePId == null) ? 0 : this.synFilePId.hashCode()); + result = prime * result + ((this.tablenumber == null) ? 0 : this.tablenumber.hashCode()); + result = prime * result + ((this.annexname == null) ? 0 : this.annexname.hashCode()); + result = prime * result + ((this.projectname == null) ? 0 : this.projectname.hashCode()); + result = prime * result + ((this.eweavedate == null) ? 0 : this.eweavedate.hashCode()); + result = prime * result + ((this.checkdate == null) ? 0 : this.checkdate.hashCode()); + result = prime * result + ((this.annexpage == null) ? 0 : this.annexpage.hashCode()); + result = prime * result + ((this.sortorder == null) ? 0 : this.sortorder.hashCode()); + result = prime * result + ((this.filefrom == null) ? 0 : this.filefrom.hashCode()); + result = prime * result + ((this.archivestag == null) ? 0 : this.archivestag.hashCode()); + result = prime * result + ((this.adddate == null) ? 0 : this.adddate.hashCode()); + result = prime * result + ((this.editdate == null) ? 0 : this.editdate.hashCode()); + result = prime * result + ((this.timeStamp == null) ? 0 : this.timeStamp.hashCode()); + result = prime * result + ((this.isdel == null) ? 0 : this.isdel.hashCode()); + result = prime * result + ((this.downurl == null) ? 0 : this.downurl.hashCode()); + result = prime * result + ((this.filesize == null) ? 0 : this.filesize.hashCode()); + result = prime * result + ((this.applyViewTypePrint == null) ? 0 : this.applyViewTypePrint.hashCode()); + result = prime * result + ((this.applyViewTypeOnline == null) ? 0 : this.applyViewTypeOnline.hashCode()); + return result; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder("FilesApplyDocs ("); + + sb.append(id); + sb.append(", ").append(filesApplyId); + sb.append(", ").append(synFileId); + sb.append(", ").append(synFilePId); + sb.append(", ").append(tablenumber); + sb.append(", ").append(annexname); + sb.append(", ").append(projectname); + sb.append(", ").append(eweavedate); + sb.append(", ").append(checkdate); + sb.append(", ").append(annexpage); + sb.append(", ").append(sortorder); + sb.append(", ").append(filefrom); + sb.append(", ").append(archivestag); + sb.append(", ").append(adddate); + sb.append(", ").append(editdate); + sb.append(", ").append(timeStamp); + sb.append(", ").append(isdel); + sb.append(", ").append(downurl); + sb.append(", ").append(filesize); + sb.append(", ").append(applyViewTypePrint); + sb.append(", ").append(applyViewTypeOnline); + + sb.append(")"); + return sb.toString(); + } +} diff --git a/src/main/java/jj/tech/paolu/repository/jooq/tables/pojos/FilesApplyDownloadRecord.java b/src/main/java/jj/tech/paolu/repository/jooq/tables/pojos/FilesApplyDownloadRecord.java new file mode 100644 index 0000000..d8eb959 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/jooq/tables/pojos/FilesApplyDownloadRecord.java @@ -0,0 +1,344 @@ +/* + * This file is generated by jOOQ. + */ +package jj.tech.paolu.repository.jooq.tables.pojos; + + +import java.io.Serializable; +import java.time.LocalDateTime; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +public class FilesApplyDownloadRecord implements Serializable { + + private static final long serialVersionUID = 1L; + + private String id; + private String filesApplyId; + private Integer isDirFile; + private String synFileId; + private String synFilePId; + private String synFileName; + private String userId; + private String userName; + private String orgId; + private String orgName; + private LocalDateTime downloadTime; + + public FilesApplyDownloadRecord() {} + + public FilesApplyDownloadRecord(FilesApplyDownloadRecord value) { + this.id = value.id; + this.filesApplyId = value.filesApplyId; + this.isDirFile = value.isDirFile; + this.synFileId = value.synFileId; + this.synFilePId = value.synFilePId; + this.synFileName = value.synFileName; + this.userId = value.userId; + this.userName = value.userName; + this.orgId = value.orgId; + this.orgName = value.orgName; + this.downloadTime = value.downloadTime; + } + + public FilesApplyDownloadRecord( + String id, + String filesApplyId, + Integer isDirFile, + String synFileId, + String synFilePId, + String synFileName, + String userId, + String userName, + String orgId, + String orgName, + LocalDateTime downloadTime + ) { + this.id = id; + this.filesApplyId = filesApplyId; + this.isDirFile = isDirFile; + this.synFileId = synFileId; + this.synFilePId = synFilePId; + this.synFileName = synFileName; + this.userId = userId; + this.userName = userName; + this.orgId = orgId; + this.orgName = orgName; + this.downloadTime = downloadTime; + } + + /** + * Getter for public.files_apply_download_record.id. + */ + public String getId() { + return this.id; + } + + /** + * Setter for public.files_apply_download_record.id. + */ + public void setId(String id) { + this.id = id; + } + + /** + * Getter for + * public.files_apply_download_record.files_apply_id. + */ + public String getFilesApplyId() { + return this.filesApplyId; + } + + /** + * Setter for + * public.files_apply_download_record.files_apply_id. + */ + public void setFilesApplyId(String filesApplyId) { + this.filesApplyId = filesApplyId; + } + + /** + * Getter for public.files_apply_download_record.is_dir_file. + */ + public Integer getIsDirFile() { + return this.isDirFile; + } + + /** + * Setter for public.files_apply_download_record.is_dir_file. + */ + public void setIsDirFile(Integer isDirFile) { + this.isDirFile = isDirFile; + } + + /** + * Getter for public.files_apply_download_record.syn_file_id. + */ + public String getSynFileId() { + return this.synFileId; + } + + /** + * Setter for public.files_apply_download_record.syn_file_id. + */ + public void setSynFileId(String synFileId) { + this.synFileId = synFileId; + } + + /** + * Getter for public.files_apply_download_record.syn_file_p_id. + */ + public String getSynFilePId() { + return this.synFilePId; + } + + /** + * Setter for public.files_apply_download_record.syn_file_p_id. + */ + public void setSynFilePId(String synFilePId) { + this.synFilePId = synFilePId; + } + + /** + * Getter for public.files_apply_download_record.syn_file_name. + */ + public String getSynFileName() { + return this.synFileName; + } + + /** + * Setter for public.files_apply_download_record.syn_file_name. + */ + public void setSynFileName(String synFileName) { + this.synFileName = synFileName; + } + + /** + * Getter for public.files_apply_download_record.user_id. + */ + public String getUserId() { + return this.userId; + } + + /** + * Setter for public.files_apply_download_record.user_id. + */ + public void setUserId(String userId) { + this.userId = userId; + } + + /** + * Getter for public.files_apply_download_record.user_name. + */ + public String getUserName() { + return this.userName; + } + + /** + * Setter for public.files_apply_download_record.user_name. + */ + public void setUserName(String userName) { + this.userName = userName; + } + + /** + * Getter for public.files_apply_download_record.org_id. + */ + public String getOrgId() { + return this.orgId; + } + + /** + * Setter for public.files_apply_download_record.org_id. + */ + public void setOrgId(String orgId) { + this.orgId = orgId; + } + + /** + * Getter for public.files_apply_download_record.org_name. + */ + public String getOrgName() { + return this.orgName; + } + + /** + * Setter for public.files_apply_download_record.org_name. + */ + public void setOrgName(String orgName) { + this.orgName = orgName; + } + + /** + * Getter for public.files_apply_download_record.download_time. + */ + public LocalDateTime getDownloadTime() { + return this.downloadTime; + } + + /** + * Setter for public.files_apply_download_record.download_time. + */ + public void setDownloadTime(LocalDateTime downloadTime) { + this.downloadTime = downloadTime; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + if (getClass() != obj.getClass()) + return false; + final FilesApplyDownloadRecord other = (FilesApplyDownloadRecord) obj; + if (this.id == null) { + if (other.id != null) + return false; + } + else if (!this.id.equals(other.id)) + return false; + if (this.filesApplyId == null) { + if (other.filesApplyId != null) + return false; + } + else if (!this.filesApplyId.equals(other.filesApplyId)) + return false; + if (this.isDirFile == null) { + if (other.isDirFile != null) + return false; + } + else if (!this.isDirFile.equals(other.isDirFile)) + return false; + if (this.synFileId == null) { + if (other.synFileId != null) + return false; + } + else if (!this.synFileId.equals(other.synFileId)) + return false; + if (this.synFilePId == null) { + if (other.synFilePId != null) + return false; + } + else if (!this.synFilePId.equals(other.synFilePId)) + return false; + if (this.synFileName == null) { + if (other.synFileName != null) + return false; + } + else if (!this.synFileName.equals(other.synFileName)) + return false; + if (this.userId == null) { + if (other.userId != null) + return false; + } + else if (!this.userId.equals(other.userId)) + return false; + if (this.userName == null) { + if (other.userName != null) + return false; + } + else if (!this.userName.equals(other.userName)) + return false; + if (this.orgId == null) { + if (other.orgId != null) + return false; + } + else if (!this.orgId.equals(other.orgId)) + return false; + if (this.orgName == null) { + if (other.orgName != null) + return false; + } + else if (!this.orgName.equals(other.orgName)) + return false; + if (this.downloadTime == null) { + if (other.downloadTime != null) + return false; + } + else if (!this.downloadTime.equals(other.downloadTime)) + return false; + return true; + } + + @Override + public int hashCode() { + final int prime = 31; + int result = 1; + result = prime * result + ((this.id == null) ? 0 : this.id.hashCode()); + result = prime * result + ((this.filesApplyId == null) ? 0 : this.filesApplyId.hashCode()); + result = prime * result + ((this.isDirFile == null) ? 0 : this.isDirFile.hashCode()); + result = prime * result + ((this.synFileId == null) ? 0 : this.synFileId.hashCode()); + result = prime * result + ((this.synFilePId == null) ? 0 : this.synFilePId.hashCode()); + result = prime * result + ((this.synFileName == null) ? 0 : this.synFileName.hashCode()); + result = prime * result + ((this.userId == null) ? 0 : this.userId.hashCode()); + result = prime * result + ((this.userName == null) ? 0 : this.userName.hashCode()); + result = prime * result + ((this.orgId == null) ? 0 : this.orgId.hashCode()); + result = prime * result + ((this.orgName == null) ? 0 : this.orgName.hashCode()); + result = prime * result + ((this.downloadTime == null) ? 0 : this.downloadTime.hashCode()); + return result; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder("FilesApplyDownloadRecord ("); + + sb.append(id); + sb.append(", ").append(filesApplyId); + sb.append(", ").append(isDirFile); + sb.append(", ").append(synFileId); + sb.append(", ").append(synFilePId); + sb.append(", ").append(synFileName); + sb.append(", ").append(userId); + sb.append(", ").append(userName); + sb.append(", ").append(orgId); + sb.append(", ").append(orgName); + sb.append(", ").append(downloadTime); + + sb.append(")"); + return sb.toString(); + } +} diff --git a/src/main/java/jj/tech/paolu/repository/jooq/tables/pojos/Project.java b/src/main/java/jj/tech/paolu/repository/jooq/tables/pojos/Project.java new file mode 100644 index 0000000..5e32e43 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/jooq/tables/pojos/Project.java @@ -0,0 +1,159 @@ +/* + * This file is generated by jOOQ. + */ +package jj.tech.paolu.repository.jooq.tables.pojos; + + +import java.io.Serializable; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +public class Project implements Serializable { + + private static final long serialVersionUID = 1L; + + private String id; + private String projectName; + private String orgId; + private String orgName; + + public Project() {} + + public Project(Project value) { + this.id = value.id; + this.projectName = value.projectName; + this.orgId = value.orgId; + this.orgName = value.orgName; + } + + public Project( + String id, + String projectName, + String orgId, + String orgName + ) { + this.id = id; + this.projectName = projectName; + this.orgId = orgId; + this.orgName = orgName; + } + + /** + * Getter for public.project.id. + */ + public String getId() { + return this.id; + } + + /** + * Setter for public.project.id. + */ + public void setId(String id) { + this.id = id; + } + + /** + * Getter for public.project.project_name. + */ + public String getProjectName() { + return this.projectName; + } + + /** + * Setter for public.project.project_name. + */ + public void setProjectName(String projectName) { + this.projectName = projectName; + } + + /** + * Getter for public.project.org_id. + */ + public String getOrgId() { + return this.orgId; + } + + /** + * Setter for public.project.org_id. + */ + public void setOrgId(String orgId) { + this.orgId = orgId; + } + + /** + * Getter for public.project.org_name. + */ + public String getOrgName() { + return this.orgName; + } + + /** + * Setter for public.project.org_name. + */ + public void setOrgName(String orgName) { + this.orgName = orgName; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + if (getClass() != obj.getClass()) + return false; + final Project other = (Project) obj; + if (this.id == null) { + if (other.id != null) + return false; + } + else if (!this.id.equals(other.id)) + return false; + if (this.projectName == null) { + if (other.projectName != null) + return false; + } + else if (!this.projectName.equals(other.projectName)) + return false; + if (this.orgId == null) { + if (other.orgId != null) + return false; + } + else if (!this.orgId.equals(other.orgId)) + return false; + if (this.orgName == null) { + if (other.orgName != null) + return false; + } + else if (!this.orgName.equals(other.orgName)) + return false; + return true; + } + + @Override + public int hashCode() { + final int prime = 31; + int result = 1; + result = prime * result + ((this.id == null) ? 0 : this.id.hashCode()); + result = prime * result + ((this.projectName == null) ? 0 : this.projectName.hashCode()); + result = prime * result + ((this.orgId == null) ? 0 : this.orgId.hashCode()); + result = prime * result + ((this.orgName == null) ? 0 : this.orgName.hashCode()); + return result; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder("Project ("); + + sb.append(id); + sb.append(", ").append(projectName); + sb.append(", ").append(orgId); + sb.append(", ").append(orgName); + + sb.append(")"); + return sb.toString(); + } +} diff --git a/src/main/java/jj/tech/paolu/repository/jooq/tables/pojos/ReadLog.java b/src/main/java/jj/tech/paolu/repository/jooq/tables/pojos/ReadLog.java new file mode 100644 index 0000000..3ca6334 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/jooq/tables/pojos/ReadLog.java @@ -0,0 +1,394 @@ +/* + * This file is generated by jOOQ. + */ +package jj.tech.paolu.repository.jooq.tables.pojos; + + +import java.io.Serializable; +import java.time.LocalDateTime; + + +/** + * 阅读情况 + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +public class ReadLog implements Serializable { + + private static final long serialVersionUID = 1L; + + private String id; + private String weid; + private String contentId; + private LocalDateTime starttime; + private LocalDateTime endtime; + private String ip; + private String location; + private Integer downloadtype; + private String sign; + private String readid; + private String sm9hibeid; + private Integer contentType; + private Integer ischeck; + + public ReadLog() {} + + public ReadLog(ReadLog value) { + this.id = value.id; + this.weid = value.weid; + this.contentId = value.contentId; + this.starttime = value.starttime; + this.endtime = value.endtime; + this.ip = value.ip; + this.location = value.location; + this.downloadtype = value.downloadtype; + this.sign = value.sign; + this.readid = value.readid; + this.sm9hibeid = value.sm9hibeid; + this.contentType = value.contentType; + this.ischeck = value.ischeck; + } + + public ReadLog( + String id, + String weid, + String contentId, + LocalDateTime starttime, + LocalDateTime endtime, + String ip, + String location, + Integer downloadtype, + String sign, + String readid, + String sm9hibeid, + Integer contentType, + Integer ischeck + ) { + this.id = id; + this.weid = weid; + this.contentId = contentId; + this.starttime = starttime; + this.endtime = endtime; + this.ip = ip; + this.location = location; + this.downloadtype = downloadtype; + this.sign = sign; + this.readid = readid; + this.sm9hibeid = sm9hibeid; + this.contentType = contentType; + this.ischeck = ischeck; + } + + /** + * Getter for public.read_log.id. + */ + public String getId() { + return this.id; + } + + /** + * Setter for public.read_log.id. + */ + public void setId(String id) { + this.id = id; + } + + /** + * Getter for public.read_log.weid. 申请人id + */ + public String getWeid() { + return this.weid; + } + + /** + * Setter for public.read_log.weid. 申请人id + */ + public void setWeid(String weid) { + this.weid = weid; + } + + /** + * Getter for public.read_log.content_id. 档案id + */ + public String getContentId() { + return this.contentId; + } + + /** + * Setter for public.read_log.content_id. 档案id + */ + public void setContentId(String contentId) { + this.contentId = contentId; + } + + /** + * Getter for public.read_log.starttime. 开始时间 + */ + public LocalDateTime getStarttime() { + return this.starttime; + } + + /** + * Setter for public.read_log.starttime. 开始时间 + */ + public void setStarttime(LocalDateTime starttime) { + this.starttime = starttime; + } + + /** + * Getter for public.read_log.endtime. 结束时间 + */ + public LocalDateTime getEndtime() { + return this.endtime; + } + + /** + * Setter for public.read_log.endtime. 结束时间 + */ + public void setEndtime(LocalDateTime endtime) { + this.endtime = endtime; + } + + /** + * Getter for public.read_log.ip. ip地址 + */ + public String getIp() { + return this.ip; + } + + /** + * Setter for public.read_log.ip. ip地址 + */ + public void setIp(String ip) { + this.ip = ip; + } + + /** + * Getter for public.read_log.location. 区域 + */ + public String getLocation() { + return this.location; + } + + /** + * Setter for public.read_log.location. 区域 + */ + public void setLocation(String location) { + this.location = location; + } + + /** + * Getter for public.read_log.downloadtype. 下载类型(1文件包/0单文件) + */ + public Integer getDownloadtype() { + return this.downloadtype; + } + + /** + * Setter for public.read_log.downloadtype. 下载类型(1文件包/0单文件) + */ + public void setDownloadtype(Integer downloadtype) { + this.downloadtype = downloadtype; + } + + /** + * Getter for public.read_log.sign. 数字签名 + */ + public String getSign() { + return this.sign; + } + + /** + * Setter for public.read_log.sign. 数字签名 + */ + public void setSign(String sign) { + this.sign = sign; + } + + /** + * Getter for public.read_log.readid. 一次阅读凭证id + */ + public String getReadid() { + return this.readid; + } + + /** + * Setter for public.read_log.readid. 一次阅读凭证id + */ + public void setReadid(String readid) { + this.readid = readid; + } + + /** + * Getter for public.read_log.sm9hibeid. 秘钥id + */ + public String getSm9hibeid() { + return this.sm9hibeid; + } + + /** + * Setter for public.read_log.sm9hibeid. 秘钥id + */ + public void setSm9hibeid(String sm9hibeid) { + this.sm9hibeid = sm9hibeid; + } + + /** + * Getter for public.read_log.content_type. 档案类型 + */ + public Integer getContentType() { + return this.contentType; + } + + /** + * Setter for public.read_log.content_type. 档案类型 + */ + public void setContentType(Integer contentType) { + this.contentType = contentType; + } + + /** + * Getter for public.read_log.ischeck. 是否上链(1是,0否) + */ + public Integer getIscheck() { + return this.ischeck; + } + + /** + * Setter for public.read_log.ischeck. 是否上链(1是,0否) + */ + public void setIscheck(Integer ischeck) { + this.ischeck = ischeck; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + if (getClass() != obj.getClass()) + return false; + final ReadLog other = (ReadLog) obj; + if (this.id == null) { + if (other.id != null) + return false; + } + else if (!this.id.equals(other.id)) + return false; + if (this.weid == null) { + if (other.weid != null) + return false; + } + else if (!this.weid.equals(other.weid)) + return false; + if (this.contentId == null) { + if (other.contentId != null) + return false; + } + else if (!this.contentId.equals(other.contentId)) + return false; + if (this.starttime == null) { + if (other.starttime != null) + return false; + } + else if (!this.starttime.equals(other.starttime)) + return false; + if (this.endtime == null) { + if (other.endtime != null) + return false; + } + else if (!this.endtime.equals(other.endtime)) + return false; + if (this.ip == null) { + if (other.ip != null) + return false; + } + else if (!this.ip.equals(other.ip)) + return false; + if (this.location == null) { + if (other.location != null) + return false; + } + else if (!this.location.equals(other.location)) + return false; + if (this.downloadtype == null) { + if (other.downloadtype != null) + return false; + } + else if (!this.downloadtype.equals(other.downloadtype)) + return false; + if (this.sign == null) { + if (other.sign != null) + return false; + } + else if (!this.sign.equals(other.sign)) + return false; + if (this.readid == null) { + if (other.readid != null) + return false; + } + else if (!this.readid.equals(other.readid)) + return false; + if (this.sm9hibeid == null) { + if (other.sm9hibeid != null) + return false; + } + else if (!this.sm9hibeid.equals(other.sm9hibeid)) + return false; + if (this.contentType == null) { + if (other.contentType != null) + return false; + } + else if (!this.contentType.equals(other.contentType)) + return false; + if (this.ischeck == null) { + if (other.ischeck != null) + return false; + } + else if (!this.ischeck.equals(other.ischeck)) + return false; + return true; + } + + @Override + public int hashCode() { + final int prime = 31; + int result = 1; + result = prime * result + ((this.id == null) ? 0 : this.id.hashCode()); + result = prime * result + ((this.weid == null) ? 0 : this.weid.hashCode()); + result = prime * result + ((this.contentId == null) ? 0 : this.contentId.hashCode()); + result = prime * result + ((this.starttime == null) ? 0 : this.starttime.hashCode()); + result = prime * result + ((this.endtime == null) ? 0 : this.endtime.hashCode()); + result = prime * result + ((this.ip == null) ? 0 : this.ip.hashCode()); + result = prime * result + ((this.location == null) ? 0 : this.location.hashCode()); + result = prime * result + ((this.downloadtype == null) ? 0 : this.downloadtype.hashCode()); + result = prime * result + ((this.sign == null) ? 0 : this.sign.hashCode()); + result = prime * result + ((this.readid == null) ? 0 : this.readid.hashCode()); + result = prime * result + ((this.sm9hibeid == null) ? 0 : this.sm9hibeid.hashCode()); + result = prime * result + ((this.contentType == null) ? 0 : this.contentType.hashCode()); + result = prime * result + ((this.ischeck == null) ? 0 : this.ischeck.hashCode()); + return result; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder("ReadLog ("); + + sb.append(id); + sb.append(", ").append(weid); + sb.append(", ").append(contentId); + sb.append(", ").append(starttime); + sb.append(", ").append(endtime); + sb.append(", ").append(ip); + sb.append(", ").append(location); + sb.append(", ").append(downloadtype); + sb.append(", ").append(sign); + sb.append(", ").append(readid); + sb.append(", ").append(sm9hibeid); + sb.append(", ").append(contentType); + sb.append(", ").append(ischeck); + + sb.append(")"); + return sb.toString(); + } +} diff --git a/src/main/java/jj/tech/paolu/repository/jooq/tables/pojos/SharedRuleConfig.java b/src/main/java/jj/tech/paolu/repository/jooq/tables/pojos/SharedRuleConfig.java new file mode 100644 index 0000000..836d415 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/jooq/tables/pojos/SharedRuleConfig.java @@ -0,0 +1,211 @@ +/* + * This file is generated by jOOQ. + */ +package jj.tech.paolu.repository.jooq.tables.pojos; + + +import java.io.Serializable; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +public class SharedRuleConfig implements Serializable { + + private static final long serialVersionUID = 1L; + + private String id; + private String name; + private String describe; + private Integer status; + private Integer sort; + private String projectName; + + public SharedRuleConfig() {} + + public SharedRuleConfig(SharedRuleConfig value) { + this.id = value.id; + this.name = value.name; + this.describe = value.describe; + this.status = value.status; + this.sort = value.sort; + this.projectName = value.projectName; + } + + public SharedRuleConfig( + String id, + String name, + String describe, + Integer status, + Integer sort, + String projectName + ) { + this.id = id; + this.name = name; + this.describe = describe; + this.status = status; + this.sort = sort; + this.projectName = projectName; + } + + /** + * Getter for public.shared_rule_config.id. + */ + public String getId() { + return this.id; + } + + /** + * Setter for public.shared_rule_config.id. + */ + public void setId(String id) { + this.id = id; + } + + /** + * Getter for public.shared_rule_config.name. + */ + public String getName() { + return this.name; + } + + /** + * Setter for public.shared_rule_config.name. + */ + public void setName(String name) { + this.name = name; + } + + /** + * Getter for public.shared_rule_config.describe. + */ + public String getDescribe() { + return this.describe; + } + + /** + * Setter for public.shared_rule_config.describe. + */ + public void setDescribe(String describe) { + this.describe = describe; + } + + /** + * Getter for public.shared_rule_config.status. + */ + public Integer getStatus() { + return this.status; + } + + /** + * Setter for public.shared_rule_config.status. + */ + public void setStatus(Integer status) { + this.status = status; + } + + /** + * Getter for public.shared_rule_config.sort. + */ + public Integer getSort() { + return this.sort; + } + + /** + * Setter for public.shared_rule_config.sort. + */ + public void setSort(Integer sort) { + this.sort = sort; + } + + /** + * Getter for public.shared_rule_config.project_name. + */ + public String getProjectName() { + return this.projectName; + } + + /** + * Setter for public.shared_rule_config.project_name. + */ + public void setProjectName(String projectName) { + this.projectName = projectName; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + if (getClass() != obj.getClass()) + return false; + final SharedRuleConfig other = (SharedRuleConfig) obj; + if (this.id == null) { + if (other.id != null) + return false; + } + else if (!this.id.equals(other.id)) + return false; + if (this.name == null) { + if (other.name != null) + return false; + } + else if (!this.name.equals(other.name)) + return false; + if (this.describe == null) { + if (other.describe != null) + return false; + } + else if (!this.describe.equals(other.describe)) + return false; + if (this.status == null) { + if (other.status != null) + return false; + } + else if (!this.status.equals(other.status)) + return false; + if (this.sort == null) { + if (other.sort != null) + return false; + } + else if (!this.sort.equals(other.sort)) + return false; + if (this.projectName == null) { + if (other.projectName != null) + return false; + } + else if (!this.projectName.equals(other.projectName)) + return false; + return true; + } + + @Override + public int hashCode() { + final int prime = 31; + int result = 1; + result = prime * result + ((this.id == null) ? 0 : this.id.hashCode()); + result = prime * result + ((this.name == null) ? 0 : this.name.hashCode()); + result = prime * result + ((this.describe == null) ? 0 : this.describe.hashCode()); + result = prime * result + ((this.status == null) ? 0 : this.status.hashCode()); + result = prime * result + ((this.sort == null) ? 0 : this.sort.hashCode()); + result = prime * result + ((this.projectName == null) ? 0 : this.projectName.hashCode()); + return result; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder("SharedRuleConfig ("); + + sb.append(id); + sb.append(", ").append(name); + sb.append(", ").append(describe); + sb.append(", ").append(status); + sb.append(", ").append(sort); + sb.append(", ").append(projectName); + + sb.append(")"); + return sb.toString(); + } +} diff --git a/src/main/java/jj/tech/paolu/repository/jooq/tables/pojos/SharedSynAll.java b/src/main/java/jj/tech/paolu/repository/jooq/tables/pojos/SharedSynAll.java new file mode 100644 index 0000000..e836fd6 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/jooq/tables/pojos/SharedSynAll.java @@ -0,0 +1,289 @@ +/* + * This file is generated by jOOQ. + */ +package jj.tech.paolu.repository.jooq.tables.pojos; + + +import java.io.Serializable; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +public class SharedSynAll implements Serializable { + + private static final long serialVersionUID = 1L; + + private String id; + private String synId; + private Integer synType; + private Integer isConfigRule; + private Integer sharedStatus; + private Integer synStatus; + private String blockNumber; + private String blockHash; + private String blockTime; + + public SharedSynAll() {} + + public SharedSynAll(SharedSynAll value) { + this.id = value.id; + this.synId = value.synId; + this.synType = value.synType; + this.isConfigRule = value.isConfigRule; + this.sharedStatus = value.sharedStatus; + this.synStatus = value.synStatus; + this.blockNumber = value.blockNumber; + this.blockHash = value.blockHash; + this.blockTime = value.blockTime; + } + + public SharedSynAll( + String id, + String synId, + Integer synType, + Integer isConfigRule, + Integer sharedStatus, + Integer synStatus, + String blockNumber, + String blockHash, + String blockTime + ) { + this.id = id; + this.synId = synId; + this.synType = synType; + this.isConfigRule = isConfigRule; + this.sharedStatus = sharedStatus; + this.synStatus = synStatus; + this.blockNumber = blockNumber; + this.blockHash = blockHash; + this.blockTime = blockTime; + } + + /** + * Getter for public.shared_syn_all.id. + */ + public String getId() { + return this.id; + } + + /** + * Setter for public.shared_syn_all.id. + */ + public void setId(String id) { + this.id = id; + } + + /** + * Getter for public.shared_syn_all.syn_id. + */ + public String getSynId() { + return this.synId; + } + + /** + * Setter for public.shared_syn_all.syn_id. + */ + public void setSynId(String synId) { + this.synId = synId; + } + + /** + * Getter for public.shared_syn_all.syn_type. + */ + public Integer getSynType() { + return this.synType; + } + + /** + * Setter for public.shared_syn_all.syn_type. + */ + public void setSynType(Integer synType) { + this.synType = synType; + } + + /** + * Getter for public.shared_syn_all.is_config_rule. + */ + public Integer getIsConfigRule() { + return this.isConfigRule; + } + + /** + * Setter for public.shared_syn_all.is_config_rule. + */ + public void setIsConfigRule(Integer isConfigRule) { + this.isConfigRule = isConfigRule; + } + + /** + * Getter for public.shared_syn_all.shared_status. + */ + public Integer getSharedStatus() { + return this.sharedStatus; + } + + /** + * Setter for public.shared_syn_all.shared_status. + */ + public void setSharedStatus(Integer sharedStatus) { + this.sharedStatus = sharedStatus; + } + + /** + * Getter for public.shared_syn_all.syn_status. + */ + public Integer getSynStatus() { + return this.synStatus; + } + + /** + * Setter for public.shared_syn_all.syn_status. + */ + public void setSynStatus(Integer synStatus) { + this.synStatus = synStatus; + } + + /** + * Getter for public.shared_syn_all.block_number. + */ + public String getBlockNumber() { + return this.blockNumber; + } + + /** + * Setter for public.shared_syn_all.block_number. + */ + public void setBlockNumber(String blockNumber) { + this.blockNumber = blockNumber; + } + + /** + * Getter for public.shared_syn_all.block_hash. + */ + public String getBlockHash() { + return this.blockHash; + } + + /** + * Setter for public.shared_syn_all.block_hash. + */ + public void setBlockHash(String blockHash) { + this.blockHash = blockHash; + } + + /** + * Getter for public.shared_syn_all.block_time. + */ + public String getBlockTime() { + return this.blockTime; + } + + /** + * Setter for public.shared_syn_all.block_time. + */ + public void setBlockTime(String blockTime) { + this.blockTime = blockTime; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + if (getClass() != obj.getClass()) + return false; + final SharedSynAll other = (SharedSynAll) obj; + if (this.id == null) { + if (other.id != null) + return false; + } + else if (!this.id.equals(other.id)) + return false; + if (this.synId == null) { + if (other.synId != null) + return false; + } + else if (!this.synId.equals(other.synId)) + return false; + if (this.synType == null) { + if (other.synType != null) + return false; + } + else if (!this.synType.equals(other.synType)) + return false; + if (this.isConfigRule == null) { + if (other.isConfigRule != null) + return false; + } + else if (!this.isConfigRule.equals(other.isConfigRule)) + return false; + if (this.sharedStatus == null) { + if (other.sharedStatus != null) + return false; + } + else if (!this.sharedStatus.equals(other.sharedStatus)) + return false; + if (this.synStatus == null) { + if (other.synStatus != null) + return false; + } + else if (!this.synStatus.equals(other.synStatus)) + return false; + if (this.blockNumber == null) { + if (other.blockNumber != null) + return false; + } + else if (!this.blockNumber.equals(other.blockNumber)) + return false; + if (this.blockHash == null) { + if (other.blockHash != null) + return false; + } + else if (!this.blockHash.equals(other.blockHash)) + return false; + if (this.blockTime == null) { + if (other.blockTime != null) + return false; + } + else if (!this.blockTime.equals(other.blockTime)) + return false; + return true; + } + + @Override + public int hashCode() { + final int prime = 31; + int result = 1; + result = prime * result + ((this.id == null) ? 0 : this.id.hashCode()); + result = prime * result + ((this.synId == null) ? 0 : this.synId.hashCode()); + result = prime * result + ((this.synType == null) ? 0 : this.synType.hashCode()); + result = prime * result + ((this.isConfigRule == null) ? 0 : this.isConfigRule.hashCode()); + result = prime * result + ((this.sharedStatus == null) ? 0 : this.sharedStatus.hashCode()); + result = prime * result + ((this.synStatus == null) ? 0 : this.synStatus.hashCode()); + result = prime * result + ((this.blockNumber == null) ? 0 : this.blockNumber.hashCode()); + result = prime * result + ((this.blockHash == null) ? 0 : this.blockHash.hashCode()); + result = prime * result + ((this.blockTime == null) ? 0 : this.blockTime.hashCode()); + return result; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder("SharedSynAll ("); + + sb.append(id); + sb.append(", ").append(synId); + sb.append(", ").append(synType); + sb.append(", ").append(isConfigRule); + sb.append(", ").append(sharedStatus); + sb.append(", ").append(synStatus); + sb.append(", ").append(blockNumber); + sb.append(", ").append(blockHash); + sb.append(", ").append(blockTime); + + sb.append(")"); + return sb.toString(); + } +} diff --git a/src/main/java/jj/tech/paolu/repository/jooq/tables/pojos/SynDirectory.java b/src/main/java/jj/tech/paolu/repository/jooq/tables/pojos/SynDirectory.java new file mode 100644 index 0000000..8c957d3 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/jooq/tables/pojos/SynDirectory.java @@ -0,0 +1,263 @@ +/* + * This file is generated by jOOQ. + */ +package jj.tech.paolu.repository.jooq.tables.pojos; + + +import java.io.Serializable; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +public class SynDirectory implements Serializable { + + private static final long serialVersionUID = 1L; + + private String id; + private String pId; + private String wbsId; + private String timeStamp; + private Integer sortorder; + private String tname; + private Integer subjoin; + private Integer isdel; + + public SynDirectory() {} + + public SynDirectory(SynDirectory value) { + this.id = value.id; + this.pId = value.pId; + this.wbsId = value.wbsId; + this.timeStamp = value.timeStamp; + this.sortorder = value.sortorder; + this.tname = value.tname; + this.subjoin = value.subjoin; + this.isdel = value.isdel; + } + + public SynDirectory( + String id, + String pId, + String wbsId, + String timeStamp, + Integer sortorder, + String tname, + Integer subjoin, + Integer isdel + ) { + this.id = id; + this.pId = pId; + this.wbsId = wbsId; + this.timeStamp = timeStamp; + this.sortorder = sortorder; + this.tname = tname; + this.subjoin = subjoin; + this.isdel = isdel; + } + + /** + * Getter for public.syn_directory.id. + */ + public String getId() { + return this.id; + } + + /** + * Setter for public.syn_directory.id. + */ + public void setId(String id) { + this.id = id; + } + + /** + * Getter for public.syn_directory.p_id. + */ + public String getPId() { + return this.pId; + } + + /** + * Setter for public.syn_directory.p_id. + */ + public void setPId(String pId) { + this.pId = pId; + } + + /** + * Getter for public.syn_directory.wbs_id. + */ + public String getWbsId() { + return this.wbsId; + } + + /** + * Setter for public.syn_directory.wbs_id. + */ + public void setWbsId(String wbsId) { + this.wbsId = wbsId; + } + + /** + * Getter for public.syn_directory.time_stamp. + */ + public String getTimeStamp() { + return this.timeStamp; + } + + /** + * Setter for public.syn_directory.time_stamp. + */ + public void setTimeStamp(String timeStamp) { + this.timeStamp = timeStamp; + } + + /** + * Getter for public.syn_directory.sortorder. + */ + public Integer getSortorder() { + return this.sortorder; + } + + /** + * Setter for public.syn_directory.sortorder. + */ + public void setSortorder(Integer sortorder) { + this.sortorder = sortorder; + } + + /** + * Getter for public.syn_directory.tname. + */ + public String getTname() { + return this.tname; + } + + /** + * Setter for public.syn_directory.tname. + */ + public void setTname(String tname) { + this.tname = tname; + } + + /** + * Getter for public.syn_directory.subjoin. + */ + public Integer getSubjoin() { + return this.subjoin; + } + + /** + * Setter for public.syn_directory.subjoin. + */ + public void setSubjoin(Integer subjoin) { + this.subjoin = subjoin; + } + + /** + * Getter for public.syn_directory.isdel. + */ + public Integer getIsdel() { + return this.isdel; + } + + /** + * Setter for public.syn_directory.isdel. + */ + public void setIsdel(Integer isdel) { + this.isdel = isdel; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + if (getClass() != obj.getClass()) + return false; + final SynDirectory other = (SynDirectory) obj; + if (this.id == null) { + if (other.id != null) + return false; + } + else if (!this.id.equals(other.id)) + return false; + if (this.pId == null) { + if (other.pId != null) + return false; + } + else if (!this.pId.equals(other.pId)) + return false; + if (this.wbsId == null) { + if (other.wbsId != null) + return false; + } + else if (!this.wbsId.equals(other.wbsId)) + return false; + if (this.timeStamp == null) { + if (other.timeStamp != null) + return false; + } + else if (!this.timeStamp.equals(other.timeStamp)) + return false; + if (this.sortorder == null) { + if (other.sortorder != null) + return false; + } + else if (!this.sortorder.equals(other.sortorder)) + return false; + if (this.tname == null) { + if (other.tname != null) + return false; + } + else if (!this.tname.equals(other.tname)) + return false; + if (this.subjoin == null) { + if (other.subjoin != null) + return false; + } + else if (!this.subjoin.equals(other.subjoin)) + return false; + if (this.isdel == null) { + if (other.isdel != null) + return false; + } + else if (!this.isdel.equals(other.isdel)) + return false; + return true; + } + + @Override + public int hashCode() { + final int prime = 31; + int result = 1; + result = prime * result + ((this.id == null) ? 0 : this.id.hashCode()); + result = prime * result + ((this.pId == null) ? 0 : this.pId.hashCode()); + result = prime * result + ((this.wbsId == null) ? 0 : this.wbsId.hashCode()); + result = prime * result + ((this.timeStamp == null) ? 0 : this.timeStamp.hashCode()); + result = prime * result + ((this.sortorder == null) ? 0 : this.sortorder.hashCode()); + result = prime * result + ((this.tname == null) ? 0 : this.tname.hashCode()); + result = prime * result + ((this.subjoin == null) ? 0 : this.subjoin.hashCode()); + result = prime * result + ((this.isdel == null) ? 0 : this.isdel.hashCode()); + return result; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder("SynDirectory ("); + + sb.append(id); + sb.append(", ").append(pId); + sb.append(", ").append(wbsId); + sb.append(", ").append(timeStamp); + sb.append(", ").append(sortorder); + sb.append(", ").append(tname); + sb.append(", ").append(subjoin); + sb.append(", ").append(isdel); + + sb.append(")"); + return sb.toString(); + } +} diff --git a/src/main/java/jj/tech/paolu/repository/jooq/tables/pojos/SynDirectoryFile.java b/src/main/java/jj/tech/paolu/repository/jooq/tables/pojos/SynDirectoryFile.java new file mode 100644 index 0000000..d680cce --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/jooq/tables/pojos/SynDirectoryFile.java @@ -0,0 +1,601 @@ +/* + * This file is generated by jOOQ. + */ +package jj.tech.paolu.repository.jooq.tables.pojos; + + +import java.io.Serializable; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +public class SynDirectoryFile implements Serializable { + + private static final long serialVersionUID = 1L; + + private String id; + private String pId; + private String filesuper; + private Integer filecount; + private String dutyperson; + private String eweavedate; + private Integer filepage; + private String sortorder; + private String bpeg; + private String epeg; + private String filenum; + private String remark; + private String recordnum; + private String piecenumber; + private String adddate; + private String editdate; + private String timeStamp; + private Integer isdel; + private String catalogpdfurl; + private String signtag; + private String collecttag; + + public SynDirectoryFile() {} + + public SynDirectoryFile(SynDirectoryFile value) { + this.id = value.id; + this.pId = value.pId; + this.filesuper = value.filesuper; + this.filecount = value.filecount; + this.dutyperson = value.dutyperson; + this.eweavedate = value.eweavedate; + this.filepage = value.filepage; + this.sortorder = value.sortorder; + this.bpeg = value.bpeg; + this.epeg = value.epeg; + this.filenum = value.filenum; + this.remark = value.remark; + this.recordnum = value.recordnum; + this.piecenumber = value.piecenumber; + this.adddate = value.adddate; + this.editdate = value.editdate; + this.timeStamp = value.timeStamp; + this.isdel = value.isdel; + this.catalogpdfurl = value.catalogpdfurl; + this.signtag = value.signtag; + this.collecttag = value.collecttag; + } + + public SynDirectoryFile( + String id, + String pId, + String filesuper, + Integer filecount, + String dutyperson, + String eweavedate, + Integer filepage, + String sortorder, + String bpeg, + String epeg, + String filenum, + String remark, + String recordnum, + String piecenumber, + String adddate, + String editdate, + String timeStamp, + Integer isdel, + String catalogpdfurl, + String signtag, + String collecttag + ) { + this.id = id; + this.pId = pId; + this.filesuper = filesuper; + this.filecount = filecount; + this.dutyperson = dutyperson; + this.eweavedate = eweavedate; + this.filepage = filepage; + this.sortorder = sortorder; + this.bpeg = bpeg; + this.epeg = epeg; + this.filenum = filenum; + this.remark = remark; + this.recordnum = recordnum; + this.piecenumber = piecenumber; + this.adddate = adddate; + this.editdate = editdate; + this.timeStamp = timeStamp; + this.isdel = isdel; + this.catalogpdfurl = catalogpdfurl; + this.signtag = signtag; + this.collecttag = collecttag; + } + + /** + * Getter for public.syn_directory_file.id. + */ + public String getId() { + return this.id; + } + + /** + * Setter for public.syn_directory_file.id. + */ + public void setId(String id) { + this.id = id; + } + + /** + * Getter for public.syn_directory_file.p_id. + */ + public String getPId() { + return this.pId; + } + + /** + * Setter for public.syn_directory_file.p_id. + */ + public void setPId(String pId) { + this.pId = pId; + } + + /** + * Getter for public.syn_directory_file.filesuper. + */ + public String getFilesuper() { + return this.filesuper; + } + + /** + * Setter for public.syn_directory_file.filesuper. + */ + public void setFilesuper(String filesuper) { + this.filesuper = filesuper; + } + + /** + * Getter for public.syn_directory_file.filecount. + */ + public Integer getFilecount() { + return this.filecount; + } + + /** + * Setter for public.syn_directory_file.filecount. + */ + public void setFilecount(Integer filecount) { + this.filecount = filecount; + } + + /** + * Getter for public.syn_directory_file.dutyperson. + */ + public String getDutyperson() { + return this.dutyperson; + } + + /** + * Setter for public.syn_directory_file.dutyperson. + */ + public void setDutyperson(String dutyperson) { + this.dutyperson = dutyperson; + } + + /** + * Getter for public.syn_directory_file.eweavedate. + */ + public String getEweavedate() { + return this.eweavedate; + } + + /** + * Setter for public.syn_directory_file.eweavedate. + */ + public void setEweavedate(String eweavedate) { + this.eweavedate = eweavedate; + } + + /** + * Getter for public.syn_directory_file.filepage. + */ + public Integer getFilepage() { + return this.filepage; + } + + /** + * Setter for public.syn_directory_file.filepage. + */ + public void setFilepage(Integer filepage) { + this.filepage = filepage; + } + + /** + * Getter for public.syn_directory_file.sortorder. + */ + public String getSortorder() { + return this.sortorder; + } + + /** + * Setter for public.syn_directory_file.sortorder. + */ + public void setSortorder(String sortorder) { + this.sortorder = sortorder; + } + + /** + * Getter for public.syn_directory_file.bpeg. + */ + public String getBpeg() { + return this.bpeg; + } + + /** + * Setter for public.syn_directory_file.bpeg. + */ + public void setBpeg(String bpeg) { + this.bpeg = bpeg; + } + + /** + * Getter for public.syn_directory_file.epeg. + */ + public String getEpeg() { + return this.epeg; + } + + /** + * Setter for public.syn_directory_file.epeg. + */ + public void setEpeg(String epeg) { + this.epeg = epeg; + } + + /** + * Getter for public.syn_directory_file.filenum. + */ + public String getFilenum() { + return this.filenum; + } + + /** + * Setter for public.syn_directory_file.filenum. + */ + public void setFilenum(String filenum) { + this.filenum = filenum; + } + + /** + * Getter for public.syn_directory_file.remark. + */ + public String getRemark() { + return this.remark; + } + + /** + * Setter for public.syn_directory_file.remark. + */ + public void setRemark(String remark) { + this.remark = remark; + } + + /** + * Getter for public.syn_directory_file.recordnum. + */ + public String getRecordnum() { + return this.recordnum; + } + + /** + * Setter for public.syn_directory_file.recordnum. + */ + public void setRecordnum(String recordnum) { + this.recordnum = recordnum; + } + + /** + * Getter for public.syn_directory_file.piecenumber. + */ + public String getPiecenumber() { + return this.piecenumber; + } + + /** + * Setter for public.syn_directory_file.piecenumber. + */ + public void setPiecenumber(String piecenumber) { + this.piecenumber = piecenumber; + } + + /** + * Getter for public.syn_directory_file.adddate. + */ + public String getAdddate() { + return this.adddate; + } + + /** + * Setter for public.syn_directory_file.adddate. + */ + public void setAdddate(String adddate) { + this.adddate = adddate; + } + + /** + * Getter for public.syn_directory_file.editdate. + */ + public String getEditdate() { + return this.editdate; + } + + /** + * Setter for public.syn_directory_file.editdate. + */ + public void setEditdate(String editdate) { + this.editdate = editdate; + } + + /** + * Getter for public.syn_directory_file.time_stamp. + */ + public String getTimeStamp() { + return this.timeStamp; + } + + /** + * Setter for public.syn_directory_file.time_stamp. + */ + public void setTimeStamp(String timeStamp) { + this.timeStamp = timeStamp; + } + + /** + * Getter for public.syn_directory_file.isdel. + */ + public Integer getIsdel() { + return this.isdel; + } + + /** + * Setter for public.syn_directory_file.isdel. + */ + public void setIsdel(Integer isdel) { + this.isdel = isdel; + } + + /** + * Getter for public.syn_directory_file.catalogpdfurl. + */ + public String getCatalogpdfurl() { + return this.catalogpdfurl; + } + + /** + * Setter for public.syn_directory_file.catalogpdfurl. + */ + public void setCatalogpdfurl(String catalogpdfurl) { + this.catalogpdfurl = catalogpdfurl; + } + + /** + * Getter for public.syn_directory_file.signtag. + */ + public String getSigntag() { + return this.signtag; + } + + /** + * Setter for public.syn_directory_file.signtag. + */ + public void setSigntag(String signtag) { + this.signtag = signtag; + } + + /** + * Getter for public.syn_directory_file.collecttag. + */ + public String getCollecttag() { + return this.collecttag; + } + + /** + * Setter for public.syn_directory_file.collecttag. + */ + public void setCollecttag(String collecttag) { + this.collecttag = collecttag; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + if (getClass() != obj.getClass()) + return false; + final SynDirectoryFile other = (SynDirectoryFile) obj; + if (this.id == null) { + if (other.id != null) + return false; + } + else if (!this.id.equals(other.id)) + return false; + if (this.pId == null) { + if (other.pId != null) + return false; + } + else if (!this.pId.equals(other.pId)) + return false; + if (this.filesuper == null) { + if (other.filesuper != null) + return false; + } + else if (!this.filesuper.equals(other.filesuper)) + return false; + if (this.filecount == null) { + if (other.filecount != null) + return false; + } + else if (!this.filecount.equals(other.filecount)) + return false; + if (this.dutyperson == null) { + if (other.dutyperson != null) + return false; + } + else if (!this.dutyperson.equals(other.dutyperson)) + return false; + if (this.eweavedate == null) { + if (other.eweavedate != null) + return false; + } + else if (!this.eweavedate.equals(other.eweavedate)) + return false; + if (this.filepage == null) { + if (other.filepage != null) + return false; + } + else if (!this.filepage.equals(other.filepage)) + return false; + if (this.sortorder == null) { + if (other.sortorder != null) + return false; + } + else if (!this.sortorder.equals(other.sortorder)) + return false; + if (this.bpeg == null) { + if (other.bpeg != null) + return false; + } + else if (!this.bpeg.equals(other.bpeg)) + return false; + if (this.epeg == null) { + if (other.epeg != null) + return false; + } + else if (!this.epeg.equals(other.epeg)) + return false; + if (this.filenum == null) { + if (other.filenum != null) + return false; + } + else if (!this.filenum.equals(other.filenum)) + return false; + if (this.remark == null) { + if (other.remark != null) + return false; + } + else if (!this.remark.equals(other.remark)) + return false; + if (this.recordnum == null) { + if (other.recordnum != null) + return false; + } + else if (!this.recordnum.equals(other.recordnum)) + return false; + if (this.piecenumber == null) { + if (other.piecenumber != null) + return false; + } + else if (!this.piecenumber.equals(other.piecenumber)) + return false; + if (this.adddate == null) { + if (other.adddate != null) + return false; + } + else if (!this.adddate.equals(other.adddate)) + return false; + if (this.editdate == null) { + if (other.editdate != null) + return false; + } + else if (!this.editdate.equals(other.editdate)) + return false; + if (this.timeStamp == null) { + if (other.timeStamp != null) + return false; + } + else if (!this.timeStamp.equals(other.timeStamp)) + return false; + if (this.isdel == null) { + if (other.isdel != null) + return false; + } + else if (!this.isdel.equals(other.isdel)) + return false; + if (this.catalogpdfurl == null) { + if (other.catalogpdfurl != null) + return false; + } + else if (!this.catalogpdfurl.equals(other.catalogpdfurl)) + return false; + if (this.signtag == null) { + if (other.signtag != null) + return false; + } + else if (!this.signtag.equals(other.signtag)) + return false; + if (this.collecttag == null) { + if (other.collecttag != null) + return false; + } + else if (!this.collecttag.equals(other.collecttag)) + return false; + return true; + } + + @Override + public int hashCode() { + final int prime = 31; + int result = 1; + result = prime * result + ((this.id == null) ? 0 : this.id.hashCode()); + result = prime * result + ((this.pId == null) ? 0 : this.pId.hashCode()); + result = prime * result + ((this.filesuper == null) ? 0 : this.filesuper.hashCode()); + result = prime * result + ((this.filecount == null) ? 0 : this.filecount.hashCode()); + result = prime * result + ((this.dutyperson == null) ? 0 : this.dutyperson.hashCode()); + result = prime * result + ((this.eweavedate == null) ? 0 : this.eweavedate.hashCode()); + result = prime * result + ((this.filepage == null) ? 0 : this.filepage.hashCode()); + result = prime * result + ((this.sortorder == null) ? 0 : this.sortorder.hashCode()); + result = prime * result + ((this.bpeg == null) ? 0 : this.bpeg.hashCode()); + result = prime * result + ((this.epeg == null) ? 0 : this.epeg.hashCode()); + result = prime * result + ((this.filenum == null) ? 0 : this.filenum.hashCode()); + result = prime * result + ((this.remark == null) ? 0 : this.remark.hashCode()); + result = prime * result + ((this.recordnum == null) ? 0 : this.recordnum.hashCode()); + result = prime * result + ((this.piecenumber == null) ? 0 : this.piecenumber.hashCode()); + result = prime * result + ((this.adddate == null) ? 0 : this.adddate.hashCode()); + result = prime * result + ((this.editdate == null) ? 0 : this.editdate.hashCode()); + result = prime * result + ((this.timeStamp == null) ? 0 : this.timeStamp.hashCode()); + result = prime * result + ((this.isdel == null) ? 0 : this.isdel.hashCode()); + result = prime * result + ((this.catalogpdfurl == null) ? 0 : this.catalogpdfurl.hashCode()); + result = prime * result + ((this.signtag == null) ? 0 : this.signtag.hashCode()); + result = prime * result + ((this.collecttag == null) ? 0 : this.collecttag.hashCode()); + return result; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder("SynDirectoryFile ("); + + sb.append(id); + sb.append(", ").append(pId); + sb.append(", ").append(filesuper); + sb.append(", ").append(filecount); + sb.append(", ").append(dutyperson); + sb.append(", ").append(eweavedate); + sb.append(", ").append(filepage); + sb.append(", ").append(sortorder); + sb.append(", ").append(bpeg); + sb.append(", ").append(epeg); + sb.append(", ").append(filenum); + sb.append(", ").append(remark); + sb.append(", ").append(recordnum); + sb.append(", ").append(piecenumber); + sb.append(", ").append(adddate); + sb.append(", ").append(editdate); + sb.append(", ").append(timeStamp); + sb.append(", ").append(isdel); + sb.append(", ").append(catalogpdfurl); + sb.append(", ").append(signtag); + sb.append(", ").append(collecttag); + + sb.append(")"); + return sb.toString(); + } +} diff --git a/src/main/java/jj/tech/paolu/repository/jooq/tables/pojos/SynFile.java b/src/main/java/jj/tech/paolu/repository/jooq/tables/pojos/SynFile.java new file mode 100644 index 0000000..4ed47ec --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/jooq/tables/pojos/SynFile.java @@ -0,0 +1,497 @@ +/* + * This file is generated by jOOQ. + */ +package jj.tech.paolu.repository.jooq.tables.pojos; + + +import java.io.Serializable; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +public class SynFile implements Serializable { + + private static final long serialVersionUID = 1L; + + private String id; + private String pId; + private String tablenumber; + private String annexname; + private String projectname; + private String eweavedate; + private String checkdate; + private Integer annexpage; + private String sortorder; + private String filefrom; + private String archivestag; + private String adddate; + private String editdate; + private String timeStamp; + private Integer isdel; + private String downurl; + private Integer filesize; + + public SynFile() {} + + public SynFile(SynFile value) { + this.id = value.id; + this.pId = value.pId; + this.tablenumber = value.tablenumber; + this.annexname = value.annexname; + this.projectname = value.projectname; + this.eweavedate = value.eweavedate; + this.checkdate = value.checkdate; + this.annexpage = value.annexpage; + this.sortorder = value.sortorder; + this.filefrom = value.filefrom; + this.archivestag = value.archivestag; + this.adddate = value.adddate; + this.editdate = value.editdate; + this.timeStamp = value.timeStamp; + this.isdel = value.isdel; + this.downurl = value.downurl; + this.filesize = value.filesize; + } + + public SynFile( + String id, + String pId, + String tablenumber, + String annexname, + String projectname, + String eweavedate, + String checkdate, + Integer annexpage, + String sortorder, + String filefrom, + String archivestag, + String adddate, + String editdate, + String timeStamp, + Integer isdel, + String downurl, + Integer filesize + ) { + this.id = id; + this.pId = pId; + this.tablenumber = tablenumber; + this.annexname = annexname; + this.projectname = projectname; + this.eweavedate = eweavedate; + this.checkdate = checkdate; + this.annexpage = annexpage; + this.sortorder = sortorder; + this.filefrom = filefrom; + this.archivestag = archivestag; + this.adddate = adddate; + this.editdate = editdate; + this.timeStamp = timeStamp; + this.isdel = isdel; + this.downurl = downurl; + this.filesize = filesize; + } + + /** + * Getter for public.syn_file.id. + */ + public String getId() { + return this.id; + } + + /** + * Setter for public.syn_file.id. + */ + public void setId(String id) { + this.id = id; + } + + /** + * Getter for public.syn_file.p_id. + */ + public String getPId() { + return this.pId; + } + + /** + * Setter for public.syn_file.p_id. + */ + public void setPId(String pId) { + this.pId = pId; + } + + /** + * Getter for public.syn_file.tablenumber. + */ + public String getTablenumber() { + return this.tablenumber; + } + + /** + * Setter for public.syn_file.tablenumber. + */ + public void setTablenumber(String tablenumber) { + this.tablenumber = tablenumber; + } + + /** + * Getter for public.syn_file.annexname. + */ + public String getAnnexname() { + return this.annexname; + } + + /** + * Setter for public.syn_file.annexname. + */ + public void setAnnexname(String annexname) { + this.annexname = annexname; + } + + /** + * Getter for public.syn_file.projectname. + */ + public String getProjectname() { + return this.projectname; + } + + /** + * Setter for public.syn_file.projectname. + */ + public void setProjectname(String projectname) { + this.projectname = projectname; + } + + /** + * Getter for public.syn_file.eweavedate. + */ + public String getEweavedate() { + return this.eweavedate; + } + + /** + * Setter for public.syn_file.eweavedate. + */ + public void setEweavedate(String eweavedate) { + this.eweavedate = eweavedate; + } + + /** + * Getter for public.syn_file.checkdate. + */ + public String getCheckdate() { + return this.checkdate; + } + + /** + * Setter for public.syn_file.checkdate. + */ + public void setCheckdate(String checkdate) { + this.checkdate = checkdate; + } + + /** + * Getter for public.syn_file.annexpage. + */ + public Integer getAnnexpage() { + return this.annexpage; + } + + /** + * Setter for public.syn_file.annexpage. + */ + public void setAnnexpage(Integer annexpage) { + this.annexpage = annexpage; + } + + /** + * Getter for public.syn_file.sortorder. + */ + public String getSortorder() { + return this.sortorder; + } + + /** + * Setter for public.syn_file.sortorder. + */ + public void setSortorder(String sortorder) { + this.sortorder = sortorder; + } + + /** + * Getter for public.syn_file.filefrom. + */ + public String getFilefrom() { + return this.filefrom; + } + + /** + * Setter for public.syn_file.filefrom. + */ + public void setFilefrom(String filefrom) { + this.filefrom = filefrom; + } + + /** + * Getter for public.syn_file.archivestag. + */ + public String getArchivestag() { + return this.archivestag; + } + + /** + * Setter for public.syn_file.archivestag. + */ + public void setArchivestag(String archivestag) { + this.archivestag = archivestag; + } + + /** + * Getter for public.syn_file.adddate. + */ + public String getAdddate() { + return this.adddate; + } + + /** + * Setter for public.syn_file.adddate. + */ + public void setAdddate(String adddate) { + this.adddate = adddate; + } + + /** + * Getter for public.syn_file.editdate. + */ + public String getEditdate() { + return this.editdate; + } + + /** + * Setter for public.syn_file.editdate. + */ + public void setEditdate(String editdate) { + this.editdate = editdate; + } + + /** + * Getter for public.syn_file.time_stamp. + */ + public String getTimeStamp() { + return this.timeStamp; + } + + /** + * Setter for public.syn_file.time_stamp. + */ + public void setTimeStamp(String timeStamp) { + this.timeStamp = timeStamp; + } + + /** + * Getter for public.syn_file.isdel. + */ + public Integer getIsdel() { + return this.isdel; + } + + /** + * Setter for public.syn_file.isdel. + */ + public void setIsdel(Integer isdel) { + this.isdel = isdel; + } + + /** + * Getter for public.syn_file.downurl. + */ + public String getDownurl() { + return this.downurl; + } + + /** + * Setter for public.syn_file.downurl. + */ + public void setDownurl(String downurl) { + this.downurl = downurl; + } + + /** + * Getter for public.syn_file.filesize. + */ + public Integer getFilesize() { + return this.filesize; + } + + /** + * Setter for public.syn_file.filesize. + */ + public void setFilesize(Integer filesize) { + this.filesize = filesize; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + if (getClass() != obj.getClass()) + return false; + final SynFile other = (SynFile) obj; + if (this.id == null) { + if (other.id != null) + return false; + } + else if (!this.id.equals(other.id)) + return false; + if (this.pId == null) { + if (other.pId != null) + return false; + } + else if (!this.pId.equals(other.pId)) + return false; + if (this.tablenumber == null) { + if (other.tablenumber != null) + return false; + } + else if (!this.tablenumber.equals(other.tablenumber)) + return false; + if (this.annexname == null) { + if (other.annexname != null) + return false; + } + else if (!this.annexname.equals(other.annexname)) + return false; + if (this.projectname == null) { + if (other.projectname != null) + return false; + } + else if (!this.projectname.equals(other.projectname)) + return false; + if (this.eweavedate == null) { + if (other.eweavedate != null) + return false; + } + else if (!this.eweavedate.equals(other.eweavedate)) + return false; + if (this.checkdate == null) { + if (other.checkdate != null) + return false; + } + else if (!this.checkdate.equals(other.checkdate)) + return false; + if (this.annexpage == null) { + if (other.annexpage != null) + return false; + } + else if (!this.annexpage.equals(other.annexpage)) + return false; + if (this.sortorder == null) { + if (other.sortorder != null) + return false; + } + else if (!this.sortorder.equals(other.sortorder)) + return false; + if (this.filefrom == null) { + if (other.filefrom != null) + return false; + } + else if (!this.filefrom.equals(other.filefrom)) + return false; + if (this.archivestag == null) { + if (other.archivestag != null) + return false; + } + else if (!this.archivestag.equals(other.archivestag)) + return false; + if (this.adddate == null) { + if (other.adddate != null) + return false; + } + else if (!this.adddate.equals(other.adddate)) + return false; + if (this.editdate == null) { + if (other.editdate != null) + return false; + } + else if (!this.editdate.equals(other.editdate)) + return false; + if (this.timeStamp == null) { + if (other.timeStamp != null) + return false; + } + else if (!this.timeStamp.equals(other.timeStamp)) + return false; + if (this.isdel == null) { + if (other.isdel != null) + return false; + } + else if (!this.isdel.equals(other.isdel)) + return false; + if (this.downurl == null) { + if (other.downurl != null) + return false; + } + else if (!this.downurl.equals(other.downurl)) + return false; + if (this.filesize == null) { + if (other.filesize != null) + return false; + } + else if (!this.filesize.equals(other.filesize)) + return false; + return true; + } + + @Override + public int hashCode() { + final int prime = 31; + int result = 1; + result = prime * result + ((this.id == null) ? 0 : this.id.hashCode()); + result = prime * result + ((this.pId == null) ? 0 : this.pId.hashCode()); + result = prime * result + ((this.tablenumber == null) ? 0 : this.tablenumber.hashCode()); + result = prime * result + ((this.annexname == null) ? 0 : this.annexname.hashCode()); + result = prime * result + ((this.projectname == null) ? 0 : this.projectname.hashCode()); + result = prime * result + ((this.eweavedate == null) ? 0 : this.eweavedate.hashCode()); + result = prime * result + ((this.checkdate == null) ? 0 : this.checkdate.hashCode()); + result = prime * result + ((this.annexpage == null) ? 0 : this.annexpage.hashCode()); + result = prime * result + ((this.sortorder == null) ? 0 : this.sortorder.hashCode()); + result = prime * result + ((this.filefrom == null) ? 0 : this.filefrom.hashCode()); + result = prime * result + ((this.archivestag == null) ? 0 : this.archivestag.hashCode()); + result = prime * result + ((this.adddate == null) ? 0 : this.adddate.hashCode()); + result = prime * result + ((this.editdate == null) ? 0 : this.editdate.hashCode()); + result = prime * result + ((this.timeStamp == null) ? 0 : this.timeStamp.hashCode()); + result = prime * result + ((this.isdel == null) ? 0 : this.isdel.hashCode()); + result = prime * result + ((this.downurl == null) ? 0 : this.downurl.hashCode()); + result = prime * result + ((this.filesize == null) ? 0 : this.filesize.hashCode()); + return result; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder("SynFile ("); + + sb.append(id); + sb.append(", ").append(pId); + sb.append(", ").append(tablenumber); + sb.append(", ").append(annexname); + sb.append(", ").append(projectname); + sb.append(", ").append(eweavedate); + sb.append(", ").append(checkdate); + sb.append(", ").append(annexpage); + sb.append(", ").append(sortorder); + sb.append(", ").append(filefrom); + sb.append(", ").append(archivestag); + sb.append(", ").append(adddate); + sb.append(", ").append(editdate); + sb.append(", ").append(timeStamp); + sb.append(", ").append(isdel); + sb.append(", ").append(downurl); + sb.append(", ").append(filesize); + + sb.append(")"); + return sb.toString(); + } +} diff --git a/src/main/java/jj/tech/paolu/repository/jooq/tables/pojos/SysAdmin.java b/src/main/java/jj/tech/paolu/repository/jooq/tables/pojos/SysAdmin.java new file mode 100644 index 0000000..586ca50 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/jooq/tables/pojos/SysAdmin.java @@ -0,0 +1,419 @@ +/* + * This file is generated by jOOQ. + */ +package jj.tech.paolu.repository.jooq.tables.pojos; + + +import java.io.Serializable; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +public class SysAdmin implements Serializable { + + private static final long serialVersionUID = 1L; + + private String id; + private String orgId; + private String realname; + private String username; + private String password; + private String phone; + private String email; + private String job; + private Integer gender; + private Integer islock; + private Integer type; + private Integer sort; + private String cerId; + private String companyId; + + public SysAdmin() {} + + public SysAdmin(SysAdmin value) { + this.id = value.id; + this.orgId = value.orgId; + this.realname = value.realname; + this.username = value.username; + this.password = value.password; + this.phone = value.phone; + this.email = value.email; + this.job = value.job; + this.gender = value.gender; + this.islock = value.islock; + this.type = value.type; + this.sort = value.sort; + this.cerId = value.cerId; + this.companyId = value.companyId; + } + + public SysAdmin( + String id, + String orgId, + String realname, + String username, + String password, + String phone, + String email, + String job, + Integer gender, + Integer islock, + Integer type, + Integer sort, + String cerId, + String companyId + ) { + this.id = id; + this.orgId = orgId; + this.realname = realname; + this.username = username; + this.password = password; + this.phone = phone; + this.email = email; + this.job = job; + this.gender = gender; + this.islock = islock; + this.type = type; + this.sort = sort; + this.cerId = cerId; + this.companyId = companyId; + } + + /** + * Getter for public.sys_admin.id. + */ + public String getId() { + return this.id; + } + + /** + * Setter for public.sys_admin.id. + */ + public void setId(String id) { + this.id = id; + } + + /** + * Getter for public.sys_admin.org_id. + */ + public String getOrgId() { + return this.orgId; + } + + /** + * Setter for public.sys_admin.org_id. + */ + public void setOrgId(String orgId) { + this.orgId = orgId; + } + + /** + * Getter for public.sys_admin.realname. + */ + public String getRealname() { + return this.realname; + } + + /** + * Setter for public.sys_admin.realname. + */ + public void setRealname(String realname) { + this.realname = realname; + } + + /** + * Getter for public.sys_admin.username. + */ + public String getUsername() { + return this.username; + } + + /** + * Setter for public.sys_admin.username. + */ + public void setUsername(String username) { + this.username = username; + } + + /** + * Getter for public.sys_admin.password. + */ + public String getPassword() { + return this.password; + } + + /** + * Setter for public.sys_admin.password. + */ + public void setPassword(String password) { + this.password = password; + } + + /** + * Getter for public.sys_admin.phone. + */ + public String getPhone() { + return this.phone; + } + + /** + * Setter for public.sys_admin.phone. + */ + public void setPhone(String phone) { + this.phone = phone; + } + + /** + * Getter for public.sys_admin.email. + */ + public String getEmail() { + return this.email; + } + + /** + * Setter for public.sys_admin.email. + */ + public void setEmail(String email) { + this.email = email; + } + + /** + * Getter for public.sys_admin.job. + */ + public String getJob() { + return this.job; + } + + /** + * Setter for public.sys_admin.job. + */ + public void setJob(String job) { + this.job = job; + } + + /** + * Getter for public.sys_admin.gender. + */ + public Integer getGender() { + return this.gender; + } + + /** + * Setter for public.sys_admin.gender. + */ + public void setGender(Integer gender) { + this.gender = gender; + } + + /** + * Getter for public.sys_admin.islock. + */ + public Integer getIslock() { + return this.islock; + } + + /** + * Setter for public.sys_admin.islock. + */ + public void setIslock(Integer islock) { + this.islock = islock; + } + + /** + * Getter for public.sys_admin.type. + */ + public Integer getType() { + return this.type; + } + + /** + * Setter for public.sys_admin.type. + */ + public void setType(Integer type) { + this.type = type; + } + + /** + * Getter for public.sys_admin.sort. + */ + public Integer getSort() { + return this.sort; + } + + /** + * Setter for public.sys_admin.sort. + */ + public void setSort(Integer sort) { + this.sort = sort; + } + + /** + * Getter for public.sys_admin.cer_id. + */ + public String getCerId() { + return this.cerId; + } + + /** + * Setter for public.sys_admin.cer_id. + */ + public void setCerId(String cerId) { + this.cerId = cerId; + } + + /** + * Getter for public.sys_admin.company_id. 公司ID,组织ID的最高级 + */ + public String getCompanyId() { + return this.companyId; + } + + /** + * Setter for public.sys_admin.company_id. 公司ID,组织ID的最高级 + */ + public void setCompanyId(String companyId) { + this.companyId = companyId; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + if (getClass() != obj.getClass()) + return false; + final SysAdmin other = (SysAdmin) obj; + if (this.id == null) { + if (other.id != null) + return false; + } + else if (!this.id.equals(other.id)) + return false; + if (this.orgId == null) { + if (other.orgId != null) + return false; + } + else if (!this.orgId.equals(other.orgId)) + return false; + if (this.realname == null) { + if (other.realname != null) + return false; + } + else if (!this.realname.equals(other.realname)) + return false; + if (this.username == null) { + if (other.username != null) + return false; + } + else if (!this.username.equals(other.username)) + return false; + if (this.password == null) { + if (other.password != null) + return false; + } + else if (!this.password.equals(other.password)) + return false; + if (this.phone == null) { + if (other.phone != null) + return false; + } + else if (!this.phone.equals(other.phone)) + return false; + if (this.email == null) { + if (other.email != null) + return false; + } + else if (!this.email.equals(other.email)) + return false; + if (this.job == null) { + if (other.job != null) + return false; + } + else if (!this.job.equals(other.job)) + return false; + if (this.gender == null) { + if (other.gender != null) + return false; + } + else if (!this.gender.equals(other.gender)) + return false; + if (this.islock == null) { + if (other.islock != null) + return false; + } + else if (!this.islock.equals(other.islock)) + return false; + if (this.type == null) { + if (other.type != null) + return false; + } + else if (!this.type.equals(other.type)) + return false; + if (this.sort == null) { + if (other.sort != null) + return false; + } + else if (!this.sort.equals(other.sort)) + return false; + if (this.cerId == null) { + if (other.cerId != null) + return false; + } + else if (!this.cerId.equals(other.cerId)) + return false; + if (this.companyId == null) { + if (other.companyId != null) + return false; + } + else if (!this.companyId.equals(other.companyId)) + return false; + return true; + } + + @Override + public int hashCode() { + final int prime = 31; + int result = 1; + result = prime * result + ((this.id == null) ? 0 : this.id.hashCode()); + result = prime * result + ((this.orgId == null) ? 0 : this.orgId.hashCode()); + result = prime * result + ((this.realname == null) ? 0 : this.realname.hashCode()); + result = prime * result + ((this.username == null) ? 0 : this.username.hashCode()); + result = prime * result + ((this.password == null) ? 0 : this.password.hashCode()); + result = prime * result + ((this.phone == null) ? 0 : this.phone.hashCode()); + result = prime * result + ((this.email == null) ? 0 : this.email.hashCode()); + result = prime * result + ((this.job == null) ? 0 : this.job.hashCode()); + result = prime * result + ((this.gender == null) ? 0 : this.gender.hashCode()); + result = prime * result + ((this.islock == null) ? 0 : this.islock.hashCode()); + result = prime * result + ((this.type == null) ? 0 : this.type.hashCode()); + result = prime * result + ((this.sort == null) ? 0 : this.sort.hashCode()); + result = prime * result + ((this.cerId == null) ? 0 : this.cerId.hashCode()); + result = prime * result + ((this.companyId == null) ? 0 : this.companyId.hashCode()); + return result; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder("SysAdmin ("); + + sb.append(id); + sb.append(", ").append(orgId); + sb.append(", ").append(realname); + sb.append(", ").append(username); + sb.append(", ").append(password); + sb.append(", ").append(phone); + sb.append(", ").append(email); + sb.append(", ").append(job); + sb.append(", ").append(gender); + sb.append(", ").append(islock); + sb.append(", ").append(type); + sb.append(", ").append(sort); + sb.append(", ").append(cerId); + sb.append(", ").append(companyId); + + sb.append(")"); + return sb.toString(); + } +} diff --git a/src/main/java/jj/tech/paolu/repository/jooq/tables/pojos/SysAdminRole.java b/src/main/java/jj/tech/paolu/repository/jooq/tables/pojos/SysAdminRole.java new file mode 100644 index 0000000..e4b6ba5 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/jooq/tables/pojos/SysAdminRole.java @@ -0,0 +1,133 @@ +/* + * This file is generated by jOOQ. + */ +package jj.tech.paolu.repository.jooq.tables.pojos; + + +import java.io.Serializable; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +public class SysAdminRole implements Serializable { + + private static final long serialVersionUID = 1L; + + private String id; + private String adminid; + private String roleid; + + public SysAdminRole() {} + + public SysAdminRole(SysAdminRole value) { + this.id = value.id; + this.adminid = value.adminid; + this.roleid = value.roleid; + } + + public SysAdminRole( + String id, + String adminid, + String roleid + ) { + this.id = id; + this.adminid = adminid; + this.roleid = roleid; + } + + /** + * Getter for public.sys_admin_role.id. + */ + public String getId() { + return this.id; + } + + /** + * Setter for public.sys_admin_role.id. + */ + public void setId(String id) { + this.id = id; + } + + /** + * Getter for public.sys_admin_role.adminid. + */ + public String getAdminid() { + return this.adminid; + } + + /** + * Setter for public.sys_admin_role.adminid. + */ + public void setAdminid(String adminid) { + this.adminid = adminid; + } + + /** + * Getter for public.sys_admin_role.roleid. + */ + public String getRoleid() { + return this.roleid; + } + + /** + * Setter for public.sys_admin_role.roleid. + */ + public void setRoleid(String roleid) { + this.roleid = roleid; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + if (getClass() != obj.getClass()) + return false; + final SysAdminRole other = (SysAdminRole) obj; + if (this.id == null) { + if (other.id != null) + return false; + } + else if (!this.id.equals(other.id)) + return false; + if (this.adminid == null) { + if (other.adminid != null) + return false; + } + else if (!this.adminid.equals(other.adminid)) + return false; + if (this.roleid == null) { + if (other.roleid != null) + return false; + } + else if (!this.roleid.equals(other.roleid)) + return false; + return true; + } + + @Override + public int hashCode() { + final int prime = 31; + int result = 1; + result = prime * result + ((this.id == null) ? 0 : this.id.hashCode()); + result = prime * result + ((this.adminid == null) ? 0 : this.adminid.hashCode()); + result = prime * result + ((this.roleid == null) ? 0 : this.roleid.hashCode()); + return result; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder("SysAdminRole ("); + + sb.append(id); + sb.append(", ").append(adminid); + sb.append(", ").append(roleid); + + sb.append(")"); + return sb.toString(); + } +} diff --git a/src/main/java/jj/tech/paolu/repository/jooq/tables/pojos/SysAdminWeid.java b/src/main/java/jj/tech/paolu/repository/jooq/tables/pojos/SysAdminWeid.java new file mode 100644 index 0000000..1b650bd --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/jooq/tables/pojos/SysAdminWeid.java @@ -0,0 +1,238 @@ +/* + * This file is generated by jOOQ. + */ +package jj.tech.paolu.repository.jooq.tables.pojos; + + +import java.io.Serializable; +import java.time.LocalDateTime; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +public class SysAdminWeid implements Serializable { + + private static final long serialVersionUID = 1L; + + private String id; + private String adminId; + private String wid; + private String wprivateKey; + private LocalDateTime addTime; + private String certificateHash; + private String chainBlock; + + public SysAdminWeid() {} + + public SysAdminWeid(SysAdminWeid value) { + this.id = value.id; + this.adminId = value.adminId; + this.wid = value.wid; + this.wprivateKey = value.wprivateKey; + this.addTime = value.addTime; + this.certificateHash = value.certificateHash; + this.chainBlock = value.chainBlock; + } + + public SysAdminWeid( + String id, + String adminId, + String wid, + String wprivateKey, + LocalDateTime addTime, + String certificateHash, + String chainBlock + ) { + this.id = id; + this.adminId = adminId; + this.wid = wid; + this.wprivateKey = wprivateKey; + this.addTime = addTime; + this.certificateHash = certificateHash; + this.chainBlock = chainBlock; + } + + /** + * Getter for public.sys_admin_weid.id. + */ + public String getId() { + return this.id; + } + + /** + * Setter for public.sys_admin_weid.id. + */ + public void setId(String id) { + this.id = id; + } + + /** + * Getter for public.sys_admin_weid.admin_id. + */ + public String getAdminId() { + return this.adminId; + } + + /** + * Setter for public.sys_admin_weid.admin_id. + */ + public void setAdminId(String adminId) { + this.adminId = adminId; + } + + /** + * Getter for public.sys_admin_weid.wid. + */ + public String getWid() { + return this.wid; + } + + /** + * Setter for public.sys_admin_weid.wid. + */ + public void setWid(String wid) { + this.wid = wid; + } + + /** + * Getter for public.sys_admin_weid.wprivate_key. + */ + public String getWprivateKey() { + return this.wprivateKey; + } + + /** + * Setter for public.sys_admin_weid.wprivate_key. + */ + public void setWprivateKey(String wprivateKey) { + this.wprivateKey = wprivateKey; + } + + /** + * Getter for public.sys_admin_weid.add_time. + */ + public LocalDateTime getAddTime() { + return this.addTime; + } + + /** + * Setter for public.sys_admin_weid.add_time. + */ + public void setAddTime(LocalDateTime addTime) { + this.addTime = addTime; + } + + /** + * Getter for public.sys_admin_weid.certificate_hash. 存证哈希 + */ + public String getCertificateHash() { + return this.certificateHash; + } + + /** + * Setter for public.sys_admin_weid.certificate_hash. 存证哈希 + */ + public void setCertificateHash(String certificateHash) { + this.certificateHash = certificateHash; + } + + /** + * Getter for public.sys_admin_weid.chain_block. + */ + public String getChainBlock() { + return this.chainBlock; + } + + /** + * Setter for public.sys_admin_weid.chain_block. + */ + public void setChainBlock(String chainBlock) { + this.chainBlock = chainBlock; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + if (getClass() != obj.getClass()) + return false; + final SysAdminWeid other = (SysAdminWeid) obj; + if (this.id == null) { + if (other.id != null) + return false; + } + else if (!this.id.equals(other.id)) + return false; + if (this.adminId == null) { + if (other.adminId != null) + return false; + } + else if (!this.adminId.equals(other.adminId)) + return false; + if (this.wid == null) { + if (other.wid != null) + return false; + } + else if (!this.wid.equals(other.wid)) + return false; + if (this.wprivateKey == null) { + if (other.wprivateKey != null) + return false; + } + else if (!this.wprivateKey.equals(other.wprivateKey)) + return false; + if (this.addTime == null) { + if (other.addTime != null) + return false; + } + else if (!this.addTime.equals(other.addTime)) + return false; + if (this.certificateHash == null) { + if (other.certificateHash != null) + return false; + } + else if (!this.certificateHash.equals(other.certificateHash)) + return false; + if (this.chainBlock == null) { + if (other.chainBlock != null) + return false; + } + else if (!this.chainBlock.equals(other.chainBlock)) + return false; + return true; + } + + @Override + public int hashCode() { + final int prime = 31; + int result = 1; + result = prime * result + ((this.id == null) ? 0 : this.id.hashCode()); + result = prime * result + ((this.adminId == null) ? 0 : this.adminId.hashCode()); + result = prime * result + ((this.wid == null) ? 0 : this.wid.hashCode()); + result = prime * result + ((this.wprivateKey == null) ? 0 : this.wprivateKey.hashCode()); + result = prime * result + ((this.addTime == null) ? 0 : this.addTime.hashCode()); + result = prime * result + ((this.certificateHash == null) ? 0 : this.certificateHash.hashCode()); + result = prime * result + ((this.chainBlock == null) ? 0 : this.chainBlock.hashCode()); + return result; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder("SysAdminWeid ("); + + sb.append(id); + sb.append(", ").append(adminId); + sb.append(", ").append(wid); + sb.append(", ").append(wprivateKey); + sb.append(", ").append(addTime); + sb.append(", ").append(certificateHash); + sb.append(", ").append(chainBlock); + + sb.append(")"); + return sb.toString(); + } +} diff --git a/src/main/java/jj/tech/paolu/repository/jooq/tables/pojos/SysArea.java b/src/main/java/jj/tech/paolu/repository/jooq/tables/pojos/SysArea.java new file mode 100644 index 0000000..cf97620 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/jooq/tables/pojos/SysArea.java @@ -0,0 +1,237 @@ +/* + * This file is generated by jOOQ. + */ +package jj.tech.paolu.repository.jooq.tables.pojos; + + +import java.io.Serializable; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +public class SysArea implements Serializable { + + private static final long serialVersionUID = 1L; + + private String id; + private Short levelCode; + private String parentCode; + private String areaCode; + private String name; + private String pid; + private String pids; + + public SysArea() {} + + public SysArea(SysArea value) { + this.id = value.id; + this.levelCode = value.levelCode; + this.parentCode = value.parentCode; + this.areaCode = value.areaCode; + this.name = value.name; + this.pid = value.pid; + this.pids = value.pids; + } + + public SysArea( + String id, + Short levelCode, + String parentCode, + String areaCode, + String name, + String pid, + String pids + ) { + this.id = id; + this.levelCode = levelCode; + this.parentCode = parentCode; + this.areaCode = areaCode; + this.name = name; + this.pid = pid; + this.pids = pids; + } + + /** + * Getter for public.sys_area.id. + */ + public String getId() { + return this.id; + } + + /** + * Setter for public.sys_area.id. + */ + public void setId(String id) { + this.id = id; + } + + /** + * Getter for public.sys_area.level_code. + */ + public Short getLevelCode() { + return this.levelCode; + } + + /** + * Setter for public.sys_area.level_code. + */ + public void setLevelCode(Short levelCode) { + this.levelCode = levelCode; + } + + /** + * Getter for public.sys_area.parent_code. + */ + public String getParentCode() { + return this.parentCode; + } + + /** + * Setter for public.sys_area.parent_code. + */ + public void setParentCode(String parentCode) { + this.parentCode = parentCode; + } + + /** + * Getter for public.sys_area.area_code. + */ + public String getAreaCode() { + return this.areaCode; + } + + /** + * Setter for public.sys_area.area_code. + */ + public void setAreaCode(String areaCode) { + this.areaCode = areaCode; + } + + /** + * Getter for public.sys_area.name. + */ + public String getName() { + return this.name; + } + + /** + * Setter for public.sys_area.name. + */ + public void setName(String name) { + this.name = name; + } + + /** + * Getter for public.sys_area.pid. + */ + public String getPid() { + return this.pid; + } + + /** + * Setter for public.sys_area.pid. + */ + public void setPid(String pid) { + this.pid = pid; + } + + /** + * Getter for public.sys_area.pids. + */ + public String getPids() { + return this.pids; + } + + /** + * Setter for public.sys_area.pids. + */ + public void setPids(String pids) { + this.pids = pids; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + if (getClass() != obj.getClass()) + return false; + final SysArea other = (SysArea) obj; + if (this.id == null) { + if (other.id != null) + return false; + } + else if (!this.id.equals(other.id)) + return false; + if (this.levelCode == null) { + if (other.levelCode != null) + return false; + } + else if (!this.levelCode.equals(other.levelCode)) + return false; + if (this.parentCode == null) { + if (other.parentCode != null) + return false; + } + else if (!this.parentCode.equals(other.parentCode)) + return false; + if (this.areaCode == null) { + if (other.areaCode != null) + return false; + } + else if (!this.areaCode.equals(other.areaCode)) + return false; + if (this.name == null) { + if (other.name != null) + return false; + } + else if (!this.name.equals(other.name)) + return false; + if (this.pid == null) { + if (other.pid != null) + return false; + } + else if (!this.pid.equals(other.pid)) + return false; + if (this.pids == null) { + if (other.pids != null) + return false; + } + else if (!this.pids.equals(other.pids)) + return false; + return true; + } + + @Override + public int hashCode() { + final int prime = 31; + int result = 1; + result = prime * result + ((this.id == null) ? 0 : this.id.hashCode()); + result = prime * result + ((this.levelCode == null) ? 0 : this.levelCode.hashCode()); + result = prime * result + ((this.parentCode == null) ? 0 : this.parentCode.hashCode()); + result = prime * result + ((this.areaCode == null) ? 0 : this.areaCode.hashCode()); + result = prime * result + ((this.name == null) ? 0 : this.name.hashCode()); + result = prime * result + ((this.pid == null) ? 0 : this.pid.hashCode()); + result = prime * result + ((this.pids == null) ? 0 : this.pids.hashCode()); + return result; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder("SysArea ("); + + sb.append(id); + sb.append(", ").append(levelCode); + sb.append(", ").append(parentCode); + sb.append(", ").append(areaCode); + sb.append(", ").append(name); + sb.append(", ").append(pid); + sb.append(", ").append(pids); + + sb.append(")"); + return sb.toString(); + } +} diff --git a/src/main/java/jj/tech/paolu/repository/jooq/tables/pojos/SysConfig.java b/src/main/java/jj/tech/paolu/repository/jooq/tables/pojos/SysConfig.java new file mode 100644 index 0000000..59f9419 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/jooq/tables/pojos/SysConfig.java @@ -0,0 +1,238 @@ +/* + * This file is generated by jOOQ. + */ +package jj.tech.paolu.repository.jooq.tables.pojos; + + +import java.io.Serializable; +import java.time.LocalDateTime; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +public class SysConfig implements Serializable { + + private static final long serialVersionUID = 1L; + + private String id; + private String subgroup; + private String keys; + private String val; + private String adminId; + private String adminname; + private LocalDateTime edittime; + + public SysConfig() {} + + public SysConfig(SysConfig value) { + this.id = value.id; + this.subgroup = value.subgroup; + this.keys = value.keys; + this.val = value.val; + this.adminId = value.adminId; + this.adminname = value.adminname; + this.edittime = value.edittime; + } + + public SysConfig( + String id, + String subgroup, + String keys, + String val, + String adminId, + String adminname, + LocalDateTime edittime + ) { + this.id = id; + this.subgroup = subgroup; + this.keys = keys; + this.val = val; + this.adminId = adminId; + this.adminname = adminname; + this.edittime = edittime; + } + + /** + * Getter for public.sys_config.id. + */ + public String getId() { + return this.id; + } + + /** + * Setter for public.sys_config.id. + */ + public void setId(String id) { + this.id = id; + } + + /** + * Getter for public.sys_config.subgroup. + */ + public String getSubgroup() { + return this.subgroup; + } + + /** + * Setter for public.sys_config.subgroup. + */ + public void setSubgroup(String subgroup) { + this.subgroup = subgroup; + } + + /** + * Getter for public.sys_config.keys. + */ + public String getKeys() { + return this.keys; + } + + /** + * Setter for public.sys_config.keys. + */ + public void setKeys(String keys) { + this.keys = keys; + } + + /** + * Getter for public.sys_config.val. + */ + public String getVal() { + return this.val; + } + + /** + * Setter for public.sys_config.val. + */ + public void setVal(String val) { + this.val = val; + } + + /** + * Getter for public.sys_config.admin_id. + */ + public String getAdminId() { + return this.adminId; + } + + /** + * Setter for public.sys_config.admin_id. + */ + public void setAdminId(String adminId) { + this.adminId = adminId; + } + + /** + * Getter for public.sys_config.adminname. + */ + public String getAdminname() { + return this.adminname; + } + + /** + * Setter for public.sys_config.adminname. + */ + public void setAdminname(String adminname) { + this.adminname = adminname; + } + + /** + * Getter for public.sys_config.edittime. + */ + public LocalDateTime getEdittime() { + return this.edittime; + } + + /** + * Setter for public.sys_config.edittime. + */ + public void setEdittime(LocalDateTime edittime) { + this.edittime = edittime; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + if (getClass() != obj.getClass()) + return false; + final SysConfig other = (SysConfig) obj; + if (this.id == null) { + if (other.id != null) + return false; + } + else if (!this.id.equals(other.id)) + return false; + if (this.subgroup == null) { + if (other.subgroup != null) + return false; + } + else if (!this.subgroup.equals(other.subgroup)) + return false; + if (this.keys == null) { + if (other.keys != null) + return false; + } + else if (!this.keys.equals(other.keys)) + return false; + if (this.val == null) { + if (other.val != null) + return false; + } + else if (!this.val.equals(other.val)) + return false; + if (this.adminId == null) { + if (other.adminId != null) + return false; + } + else if (!this.adminId.equals(other.adminId)) + return false; + if (this.adminname == null) { + if (other.adminname != null) + return false; + } + else if (!this.adminname.equals(other.adminname)) + return false; + if (this.edittime == null) { + if (other.edittime != null) + return false; + } + else if (!this.edittime.equals(other.edittime)) + return false; + return true; + } + + @Override + public int hashCode() { + final int prime = 31; + int result = 1; + result = prime * result + ((this.id == null) ? 0 : this.id.hashCode()); + result = prime * result + ((this.subgroup == null) ? 0 : this.subgroup.hashCode()); + result = prime * result + ((this.keys == null) ? 0 : this.keys.hashCode()); + result = prime * result + ((this.val == null) ? 0 : this.val.hashCode()); + result = prime * result + ((this.adminId == null) ? 0 : this.adminId.hashCode()); + result = prime * result + ((this.adminname == null) ? 0 : this.adminname.hashCode()); + result = prime * result + ((this.edittime == null) ? 0 : this.edittime.hashCode()); + return result; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder("SysConfig ("); + + sb.append(id); + sb.append(", ").append(subgroup); + sb.append(", ").append(keys); + sb.append(", ").append(val); + sb.append(", ").append(adminId); + sb.append(", ").append(adminname); + sb.append(", ").append(edittime); + + sb.append(")"); + return sb.toString(); + } +} diff --git a/src/main/java/jj/tech/paolu/repository/jooq/tables/pojos/SysMenu.java b/src/main/java/jj/tech/paolu/repository/jooq/tables/pojos/SysMenu.java new file mode 100644 index 0000000..6694996 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/jooq/tables/pojos/SysMenu.java @@ -0,0 +1,341 @@ +/* + * This file is generated by jOOQ. + */ +package jj.tech.paolu.repository.jooq.tables.pojos; + + +import java.io.Serializable; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +public class SysMenu implements Serializable { + + private static final long serialVersionUID = 1L; + + private String id; + private String parentId; + private Integer level; + private String name; + private String types; + private String url; + private String icon; + private Integer isOpen; + private String description; + private Integer sort; + private String parentpath; + + public SysMenu() {} + + public SysMenu(SysMenu value) { + this.id = value.id; + this.parentId = value.parentId; + this.level = value.level; + this.name = value.name; + this.types = value.types; + this.url = value.url; + this.icon = value.icon; + this.isOpen = value.isOpen; + this.description = value.description; + this.sort = value.sort; + this.parentpath = value.parentpath; + } + + public SysMenu( + String id, + String parentId, + Integer level, + String name, + String types, + String url, + String icon, + Integer isOpen, + String description, + Integer sort, + String parentpath + ) { + this.id = id; + this.parentId = parentId; + this.level = level; + this.name = name; + this.types = types; + this.url = url; + this.icon = icon; + this.isOpen = isOpen; + this.description = description; + this.sort = sort; + this.parentpath = parentpath; + } + + /** + * Getter for public.sys_menu.id. + */ + public String getId() { + return this.id; + } + + /** + * Setter for public.sys_menu.id. + */ + public void setId(String id) { + this.id = id; + } + + /** + * Getter for public.sys_menu.parent_id. + */ + public String getParentId() { + return this.parentId; + } + + /** + * Setter for public.sys_menu.parent_id. + */ + public void setParentId(String parentId) { + this.parentId = parentId; + } + + /** + * Getter for public.sys_menu.level. + */ + public Integer getLevel() { + return this.level; + } + + /** + * Setter for public.sys_menu.level. + */ + public void setLevel(Integer level) { + this.level = level; + } + + /** + * Getter for public.sys_menu.name. + */ + public String getName() { + return this.name; + } + + /** + * Setter for public.sys_menu.name. + */ + public void setName(String name) { + this.name = name; + } + + /** + * Getter for public.sys_menu.types. + */ + public String getTypes() { + return this.types; + } + + /** + * Setter for public.sys_menu.types. + */ + public void setTypes(String types) { + this.types = types; + } + + /** + * Getter for public.sys_menu.url. + */ + public String getUrl() { + return this.url; + } + + /** + * Setter for public.sys_menu.url. + */ + public void setUrl(String url) { + this.url = url; + } + + /** + * Getter for public.sys_menu.icon. + */ + public String getIcon() { + return this.icon; + } + + /** + * Setter for public.sys_menu.icon. + */ + public void setIcon(String icon) { + this.icon = icon; + } + + /** + * Getter for public.sys_menu.is_open. + */ + public Integer getIsOpen() { + return this.isOpen; + } + + /** + * Setter for public.sys_menu.is_open. + */ + public void setIsOpen(Integer isOpen) { + this.isOpen = isOpen; + } + + /** + * Getter for public.sys_menu.description. + */ + public String getDescription() { + return this.description; + } + + /** + * Setter for public.sys_menu.description. + */ + public void setDescription(String description) { + this.description = description; + } + + /** + * Getter for public.sys_menu.sort. + */ + public Integer getSort() { + return this.sort; + } + + /** + * Setter for public.sys_menu.sort. + */ + public void setSort(Integer sort) { + this.sort = sort; + } + + /** + * Getter for public.sys_menu.parentpath. + */ + public String getParentpath() { + return this.parentpath; + } + + /** + * Setter for public.sys_menu.parentpath. + */ + public void setParentpath(String parentpath) { + this.parentpath = parentpath; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + if (getClass() != obj.getClass()) + return false; + final SysMenu other = (SysMenu) obj; + if (this.id == null) { + if (other.id != null) + return false; + } + else if (!this.id.equals(other.id)) + return false; + if (this.parentId == null) { + if (other.parentId != null) + return false; + } + else if (!this.parentId.equals(other.parentId)) + return false; + if (this.level == null) { + if (other.level != null) + return false; + } + else if (!this.level.equals(other.level)) + return false; + if (this.name == null) { + if (other.name != null) + return false; + } + else if (!this.name.equals(other.name)) + return false; + if (this.types == null) { + if (other.types != null) + return false; + } + else if (!this.types.equals(other.types)) + return false; + if (this.url == null) { + if (other.url != null) + return false; + } + else if (!this.url.equals(other.url)) + return false; + if (this.icon == null) { + if (other.icon != null) + return false; + } + else if (!this.icon.equals(other.icon)) + return false; + if (this.isOpen == null) { + if (other.isOpen != null) + return false; + } + else if (!this.isOpen.equals(other.isOpen)) + return false; + if (this.description == null) { + if (other.description != null) + return false; + } + else if (!this.description.equals(other.description)) + return false; + if (this.sort == null) { + if (other.sort != null) + return false; + } + else if (!this.sort.equals(other.sort)) + return false; + if (this.parentpath == null) { + if (other.parentpath != null) + return false; + } + else if (!this.parentpath.equals(other.parentpath)) + return false; + return true; + } + + @Override + public int hashCode() { + final int prime = 31; + int result = 1; + result = prime * result + ((this.id == null) ? 0 : this.id.hashCode()); + result = prime * result + ((this.parentId == null) ? 0 : this.parentId.hashCode()); + result = prime * result + ((this.level == null) ? 0 : this.level.hashCode()); + result = prime * result + ((this.name == null) ? 0 : this.name.hashCode()); + result = prime * result + ((this.types == null) ? 0 : this.types.hashCode()); + result = prime * result + ((this.url == null) ? 0 : this.url.hashCode()); + result = prime * result + ((this.icon == null) ? 0 : this.icon.hashCode()); + result = prime * result + ((this.isOpen == null) ? 0 : this.isOpen.hashCode()); + result = prime * result + ((this.description == null) ? 0 : this.description.hashCode()); + result = prime * result + ((this.sort == null) ? 0 : this.sort.hashCode()); + result = prime * result + ((this.parentpath == null) ? 0 : this.parentpath.hashCode()); + return result; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder("SysMenu ("); + + sb.append(id); + sb.append(", ").append(parentId); + sb.append(", ").append(level); + sb.append(", ").append(name); + sb.append(", ").append(types); + sb.append(", ").append(url); + sb.append(", ").append(icon); + sb.append(", ").append(isOpen); + sb.append(", ").append(description); + sb.append(", ").append(sort); + sb.append(", ").append(parentpath); + + sb.append(")"); + return sb.toString(); + } +} diff --git a/src/main/java/jj/tech/paolu/repository/jooq/tables/pojos/SysOrg.java b/src/main/java/jj/tech/paolu/repository/jooq/tables/pojos/SysOrg.java new file mode 100644 index 0000000..7021ab2 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/jooq/tables/pojos/SysOrg.java @@ -0,0 +1,836 @@ +/* + * This file is generated by jOOQ. + */ +package jj.tech.paolu.repository.jooq.tables.pojos; + + +import java.io.Serializable; +import java.time.LocalDateTime; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +public class SysOrg implements Serializable { + + private static final long serialVersionUID = 1L; + + private String id; + private String pid; + private String chineseSimpleName; + private String englishSimpleName; + private String chineseFullName; + private String englishFullName; + private String code; + private Integer sort; + private Integer status; + private Integer isCompanyDepartment; + private String enterpriseLegalPerson; + private String contactPerson; + private String contactPhone; + private String remark; + private LocalDateTime createTime; + private String createUser; + private LocalDateTime updateTime; + private String updateUser; + private String name; + private String industryName; + private String industryCode; + private String provinceCode; + private String cityCode; + private String areaCode; + private String addr; + private String uscc; + private String orgType; + private Integer isArchivesDep; + private String cerId; + private Integer isForbidden; + + public SysOrg() {} + + public SysOrg(SysOrg value) { + this.id = value.id; + this.pid = value.pid; + this.chineseSimpleName = value.chineseSimpleName; + this.englishSimpleName = value.englishSimpleName; + this.chineseFullName = value.chineseFullName; + this.englishFullName = value.englishFullName; + this.code = value.code; + this.sort = value.sort; + this.status = value.status; + this.isCompanyDepartment = value.isCompanyDepartment; + this.enterpriseLegalPerson = value.enterpriseLegalPerson; + this.contactPerson = value.contactPerson; + this.contactPhone = value.contactPhone; + this.remark = value.remark; + this.createTime = value.createTime; + this.createUser = value.createUser; + this.updateTime = value.updateTime; + this.updateUser = value.updateUser; + this.name = value.name; + this.industryName = value.industryName; + this.industryCode = value.industryCode; + this.provinceCode = value.provinceCode; + this.cityCode = value.cityCode; + this.areaCode = value.areaCode; + this.addr = value.addr; + this.uscc = value.uscc; + this.orgType = value.orgType; + this.isArchivesDep = value.isArchivesDep; + this.cerId = value.cerId; + this.isForbidden = value.isForbidden; + } + + public SysOrg( + String id, + String pid, + String chineseSimpleName, + String englishSimpleName, + String chineseFullName, + String englishFullName, + String code, + Integer sort, + Integer status, + Integer isCompanyDepartment, + String enterpriseLegalPerson, + String contactPerson, + String contactPhone, + String remark, + LocalDateTime createTime, + String createUser, + LocalDateTime updateTime, + String updateUser, + String name, + String industryName, + String industryCode, + String provinceCode, + String cityCode, + String areaCode, + String addr, + String uscc, + String orgType, + Integer isArchivesDep, + String cerId, + Integer isForbidden + ) { + this.id = id; + this.pid = pid; + this.chineseSimpleName = chineseSimpleName; + this.englishSimpleName = englishSimpleName; + this.chineseFullName = chineseFullName; + this.englishFullName = englishFullName; + this.code = code; + this.sort = sort; + this.status = status; + this.isCompanyDepartment = isCompanyDepartment; + this.enterpriseLegalPerson = enterpriseLegalPerson; + this.contactPerson = contactPerson; + this.contactPhone = contactPhone; + this.remark = remark; + this.createTime = createTime; + this.createUser = createUser; + this.updateTime = updateTime; + this.updateUser = updateUser; + this.name = name; + this.industryName = industryName; + this.industryCode = industryCode; + this.provinceCode = provinceCode; + this.cityCode = cityCode; + this.areaCode = areaCode; + this.addr = addr; + this.uscc = uscc; + this.orgType = orgType; + this.isArchivesDep = isArchivesDep; + this.cerId = cerId; + this.isForbidden = isForbidden; + } + + /** + * Getter for public.sys_org.id. + */ + public String getId() { + return this.id; + } + + /** + * Setter for public.sys_org.id. + */ + public void setId(String id) { + this.id = id; + } + + /** + * Getter for public.sys_org.pid. + */ + public String getPid() { + return this.pid; + } + + /** + * Setter for public.sys_org.pid. + */ + public void setPid(String pid) { + this.pid = pid; + } + + /** + * Getter for public.sys_org.chinese_simple_name. + */ + public String getChineseSimpleName() { + return this.chineseSimpleName; + } + + /** + * Setter for public.sys_org.chinese_simple_name. + */ + public void setChineseSimpleName(String chineseSimpleName) { + this.chineseSimpleName = chineseSimpleName; + } + + /** + * Getter for public.sys_org.english_simple_name. + */ + public String getEnglishSimpleName() { + return this.englishSimpleName; + } + + /** + * Setter for public.sys_org.english_simple_name. + */ + public void setEnglishSimpleName(String englishSimpleName) { + this.englishSimpleName = englishSimpleName; + } + + /** + * Getter for public.sys_org.chinese_full_name. + */ + public String getChineseFullName() { + return this.chineseFullName; + } + + /** + * Setter for public.sys_org.chinese_full_name. + */ + public void setChineseFullName(String chineseFullName) { + this.chineseFullName = chineseFullName; + } + + /** + * Getter for public.sys_org.english_full_name. + */ + public String getEnglishFullName() { + return this.englishFullName; + } + + /** + * Setter for public.sys_org.english_full_name. + */ + public void setEnglishFullName(String englishFullName) { + this.englishFullName = englishFullName; + } + + /** + * Getter for public.sys_org.code. + */ + public String getCode() { + return this.code; + } + + /** + * Setter for public.sys_org.code. + */ + public void setCode(String code) { + this.code = code; + } + + /** + * Getter for public.sys_org.sort. + */ + public Integer getSort() { + return this.sort; + } + + /** + * Setter for public.sys_org.sort. + */ + public void setSort(Integer sort) { + this.sort = sort; + } + + /** + * Getter for public.sys_org.status. + */ + public Integer getStatus() { + return this.status; + } + + /** + * Setter for public.sys_org.status. + */ + public void setStatus(Integer status) { + this.status = status; + } + + /** + * Getter for public.sys_org.is_company_department. + */ + public Integer getIsCompanyDepartment() { + return this.isCompanyDepartment; + } + + /** + * Setter for public.sys_org.is_company_department. + */ + public void setIsCompanyDepartment(Integer isCompanyDepartment) { + this.isCompanyDepartment = isCompanyDepartment; + } + + /** + * Getter for public.sys_org.enterprise_legal_person. + */ + public String getEnterpriseLegalPerson() { + return this.enterpriseLegalPerson; + } + + /** + * Setter for public.sys_org.enterprise_legal_person. + */ + public void setEnterpriseLegalPerson(String enterpriseLegalPerson) { + this.enterpriseLegalPerson = enterpriseLegalPerson; + } + + /** + * Getter for public.sys_org.contact_person. + */ + public String getContactPerson() { + return this.contactPerson; + } + + /** + * Setter for public.sys_org.contact_person. + */ + public void setContactPerson(String contactPerson) { + this.contactPerson = contactPerson; + } + + /** + * Getter for public.sys_org.contact_phone. + */ + public String getContactPhone() { + return this.contactPhone; + } + + /** + * Setter for public.sys_org.contact_phone. + */ + public void setContactPhone(String contactPhone) { + this.contactPhone = contactPhone; + } + + /** + * Getter for public.sys_org.remark. + */ + public String getRemark() { + return this.remark; + } + + /** + * Setter for public.sys_org.remark. + */ + public void setRemark(String remark) { + this.remark = remark; + } + + /** + * Getter for public.sys_org.create_time. + */ + public LocalDateTime getCreateTime() { + return this.createTime; + } + + /** + * Setter for public.sys_org.create_time. + */ + public void setCreateTime(LocalDateTime createTime) { + this.createTime = createTime; + } + + /** + * Getter for public.sys_org.create_user. + */ + public String getCreateUser() { + return this.createUser; + } + + /** + * Setter for public.sys_org.create_user. + */ + public void setCreateUser(String createUser) { + this.createUser = createUser; + } + + /** + * Getter for public.sys_org.update_time. + */ + public LocalDateTime getUpdateTime() { + return this.updateTime; + } + + /** + * Setter for public.sys_org.update_time. + */ + public void setUpdateTime(LocalDateTime updateTime) { + this.updateTime = updateTime; + } + + /** + * Getter for public.sys_org.update_user. + */ + public String getUpdateUser() { + return this.updateUser; + } + + /** + * Setter for public.sys_org.update_user. + */ + public void setUpdateUser(String updateUser) { + this.updateUser = updateUser; + } + + /** + * Getter for public.sys_org.name. + */ + public String getName() { + return this.name; + } + + /** + * Setter for public.sys_org.name. + */ + public void setName(String name) { + this.name = name; + } + + /** + * Getter for public.sys_org.industry_name. + */ + public String getIndustryName() { + return this.industryName; + } + + /** + * Setter for public.sys_org.industry_name. + */ + public void setIndustryName(String industryName) { + this.industryName = industryName; + } + + /** + * Getter for public.sys_org.industry_code. + */ + public String getIndustryCode() { + return this.industryCode; + } + + /** + * Setter for public.sys_org.industry_code. + */ + public void setIndustryCode(String industryCode) { + this.industryCode = industryCode; + } + + /** + * Getter for public.sys_org.province_code. + */ + public String getProvinceCode() { + return this.provinceCode; + } + + /** + * Setter for public.sys_org.province_code. + */ + public void setProvinceCode(String provinceCode) { + this.provinceCode = provinceCode; + } + + /** + * Getter for public.sys_org.city_code. + */ + public String getCityCode() { + return this.cityCode; + } + + /** + * Setter for public.sys_org.city_code. + */ + public void setCityCode(String cityCode) { + this.cityCode = cityCode; + } + + /** + * Getter for public.sys_org.area_code. + */ + public String getAreaCode() { + return this.areaCode; + } + + /** + * Setter for public.sys_org.area_code. + */ + public void setAreaCode(String areaCode) { + this.areaCode = areaCode; + } + + /** + * Getter for public.sys_org.addr. + */ + public String getAddr() { + return this.addr; + } + + /** + * Setter for public.sys_org.addr. + */ + public void setAddr(String addr) { + this.addr = addr; + } + + /** + * Getter for public.sys_org.uscc. + */ + public String getUscc() { + return this.uscc; + } + + /** + * Setter for public.sys_org.uscc. + */ + public void setUscc(String uscc) { + this.uscc = uscc; + } + + /** + * Getter for public.sys_org.org_type. + */ + public String getOrgType() { + return this.orgType; + } + + /** + * Setter for public.sys_org.org_type. + */ + public void setOrgType(String orgType) { + this.orgType = orgType; + } + + /** + * Getter for public.sys_org.is_archives_dep. + */ + public Integer getIsArchivesDep() { + return this.isArchivesDep; + } + + /** + * Setter for public.sys_org.is_archives_dep. + */ + public void setIsArchivesDep(Integer isArchivesDep) { + this.isArchivesDep = isArchivesDep; + } + + /** + * Getter for public.sys_org.cer_id. + */ + public String getCerId() { + return this.cerId; + } + + /** + * Setter for public.sys_org.cer_id. + */ + public void setCerId(String cerId) { + this.cerId = cerId; + } + + /** + * Getter for public.sys_org.is_forbidden. + */ + public Integer getIsForbidden() { + return this.isForbidden; + } + + /** + * Setter for public.sys_org.is_forbidden. + */ + public void setIsForbidden(Integer isForbidden) { + this.isForbidden = isForbidden; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + if (getClass() != obj.getClass()) + return false; + final SysOrg other = (SysOrg) obj; + if (this.id == null) { + if (other.id != null) + return false; + } + else if (!this.id.equals(other.id)) + return false; + if (this.pid == null) { + if (other.pid != null) + return false; + } + else if (!this.pid.equals(other.pid)) + return false; + if (this.chineseSimpleName == null) { + if (other.chineseSimpleName != null) + return false; + } + else if (!this.chineseSimpleName.equals(other.chineseSimpleName)) + return false; + if (this.englishSimpleName == null) { + if (other.englishSimpleName != null) + return false; + } + else if (!this.englishSimpleName.equals(other.englishSimpleName)) + return false; + if (this.chineseFullName == null) { + if (other.chineseFullName != null) + return false; + } + else if (!this.chineseFullName.equals(other.chineseFullName)) + return false; + if (this.englishFullName == null) { + if (other.englishFullName != null) + return false; + } + else if (!this.englishFullName.equals(other.englishFullName)) + return false; + if (this.code == null) { + if (other.code != null) + return false; + } + else if (!this.code.equals(other.code)) + return false; + if (this.sort == null) { + if (other.sort != null) + return false; + } + else if (!this.sort.equals(other.sort)) + return false; + if (this.status == null) { + if (other.status != null) + return false; + } + else if (!this.status.equals(other.status)) + return false; + if (this.isCompanyDepartment == null) { + if (other.isCompanyDepartment != null) + return false; + } + else if (!this.isCompanyDepartment.equals(other.isCompanyDepartment)) + return false; + if (this.enterpriseLegalPerson == null) { + if (other.enterpriseLegalPerson != null) + return false; + } + else if (!this.enterpriseLegalPerson.equals(other.enterpriseLegalPerson)) + return false; + if (this.contactPerson == null) { + if (other.contactPerson != null) + return false; + } + else if (!this.contactPerson.equals(other.contactPerson)) + return false; + if (this.contactPhone == null) { + if (other.contactPhone != null) + return false; + } + else if (!this.contactPhone.equals(other.contactPhone)) + return false; + if (this.remark == null) { + if (other.remark != null) + return false; + } + else if (!this.remark.equals(other.remark)) + return false; + if (this.createTime == null) { + if (other.createTime != null) + return false; + } + else if (!this.createTime.equals(other.createTime)) + return false; + if (this.createUser == null) { + if (other.createUser != null) + return false; + } + else if (!this.createUser.equals(other.createUser)) + return false; + if (this.updateTime == null) { + if (other.updateTime != null) + return false; + } + else if (!this.updateTime.equals(other.updateTime)) + return false; + if (this.updateUser == null) { + if (other.updateUser != null) + return false; + } + else if (!this.updateUser.equals(other.updateUser)) + return false; + if (this.name == null) { + if (other.name != null) + return false; + } + else if (!this.name.equals(other.name)) + return false; + if (this.industryName == null) { + if (other.industryName != null) + return false; + } + else if (!this.industryName.equals(other.industryName)) + return false; + if (this.industryCode == null) { + if (other.industryCode != null) + return false; + } + else if (!this.industryCode.equals(other.industryCode)) + return false; + if (this.provinceCode == null) { + if (other.provinceCode != null) + return false; + } + else if (!this.provinceCode.equals(other.provinceCode)) + return false; + if (this.cityCode == null) { + if (other.cityCode != null) + return false; + } + else if (!this.cityCode.equals(other.cityCode)) + return false; + if (this.areaCode == null) { + if (other.areaCode != null) + return false; + } + else if (!this.areaCode.equals(other.areaCode)) + return false; + if (this.addr == null) { + if (other.addr != null) + return false; + } + else if (!this.addr.equals(other.addr)) + return false; + if (this.uscc == null) { + if (other.uscc != null) + return false; + } + else if (!this.uscc.equals(other.uscc)) + return false; + if (this.orgType == null) { + if (other.orgType != null) + return false; + } + else if (!this.orgType.equals(other.orgType)) + return false; + if (this.isArchivesDep == null) { + if (other.isArchivesDep != null) + return false; + } + else if (!this.isArchivesDep.equals(other.isArchivesDep)) + return false; + if (this.cerId == null) { + if (other.cerId != null) + return false; + } + else if (!this.cerId.equals(other.cerId)) + return false; + if (this.isForbidden == null) { + if (other.isForbidden != null) + return false; + } + else if (!this.isForbidden.equals(other.isForbidden)) + return false; + return true; + } + + @Override + public int hashCode() { + final int prime = 31; + int result = 1; + result = prime * result + ((this.id == null) ? 0 : this.id.hashCode()); + result = prime * result + ((this.pid == null) ? 0 : this.pid.hashCode()); + result = prime * result + ((this.chineseSimpleName == null) ? 0 : this.chineseSimpleName.hashCode()); + result = prime * result + ((this.englishSimpleName == null) ? 0 : this.englishSimpleName.hashCode()); + result = prime * result + ((this.chineseFullName == null) ? 0 : this.chineseFullName.hashCode()); + result = prime * result + ((this.englishFullName == null) ? 0 : this.englishFullName.hashCode()); + result = prime * result + ((this.code == null) ? 0 : this.code.hashCode()); + result = prime * result + ((this.sort == null) ? 0 : this.sort.hashCode()); + result = prime * result + ((this.status == null) ? 0 : this.status.hashCode()); + result = prime * result + ((this.isCompanyDepartment == null) ? 0 : this.isCompanyDepartment.hashCode()); + result = prime * result + ((this.enterpriseLegalPerson == null) ? 0 : this.enterpriseLegalPerson.hashCode()); + result = prime * result + ((this.contactPerson == null) ? 0 : this.contactPerson.hashCode()); + result = prime * result + ((this.contactPhone == null) ? 0 : this.contactPhone.hashCode()); + result = prime * result + ((this.remark == null) ? 0 : this.remark.hashCode()); + result = prime * result + ((this.createTime == null) ? 0 : this.createTime.hashCode()); + result = prime * result + ((this.createUser == null) ? 0 : this.createUser.hashCode()); + result = prime * result + ((this.updateTime == null) ? 0 : this.updateTime.hashCode()); + result = prime * result + ((this.updateUser == null) ? 0 : this.updateUser.hashCode()); + result = prime * result + ((this.name == null) ? 0 : this.name.hashCode()); + result = prime * result + ((this.industryName == null) ? 0 : this.industryName.hashCode()); + result = prime * result + ((this.industryCode == null) ? 0 : this.industryCode.hashCode()); + result = prime * result + ((this.provinceCode == null) ? 0 : this.provinceCode.hashCode()); + result = prime * result + ((this.cityCode == null) ? 0 : this.cityCode.hashCode()); + result = prime * result + ((this.areaCode == null) ? 0 : this.areaCode.hashCode()); + result = prime * result + ((this.addr == null) ? 0 : this.addr.hashCode()); + result = prime * result + ((this.uscc == null) ? 0 : this.uscc.hashCode()); + result = prime * result + ((this.orgType == null) ? 0 : this.orgType.hashCode()); + result = prime * result + ((this.isArchivesDep == null) ? 0 : this.isArchivesDep.hashCode()); + result = prime * result + ((this.cerId == null) ? 0 : this.cerId.hashCode()); + result = prime * result + ((this.isForbidden == null) ? 0 : this.isForbidden.hashCode()); + return result; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder("SysOrg ("); + + sb.append(id); + sb.append(", ").append(pid); + sb.append(", ").append(chineseSimpleName); + sb.append(", ").append(englishSimpleName); + sb.append(", ").append(chineseFullName); + sb.append(", ").append(englishFullName); + sb.append(", ").append(code); + sb.append(", ").append(sort); + sb.append(", ").append(status); + sb.append(", ").append(isCompanyDepartment); + sb.append(", ").append(enterpriseLegalPerson); + sb.append(", ").append(contactPerson); + sb.append(", ").append(contactPhone); + sb.append(", ").append(remark); + sb.append(", ").append(createTime); + sb.append(", ").append(createUser); + sb.append(", ").append(updateTime); + sb.append(", ").append(updateUser); + sb.append(", ").append(name); + sb.append(", ").append(industryName); + sb.append(", ").append(industryCode); + sb.append(", ").append(provinceCode); + sb.append(", ").append(cityCode); + sb.append(", ").append(areaCode); + sb.append(", ").append(addr); + sb.append(", ").append(uscc); + sb.append(", ").append(orgType); + sb.append(", ").append(isArchivesDep); + sb.append(", ").append(cerId); + sb.append(", ").append(isForbidden); + + sb.append(")"); + return sb.toString(); + } +} diff --git a/src/main/java/jj/tech/paolu/repository/jooq/tables/pojos/SysRole.java b/src/main/java/jj/tech/paolu/repository/jooq/tables/pojos/SysRole.java new file mode 100644 index 0000000..4c7eb97 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/jooq/tables/pojos/SysRole.java @@ -0,0 +1,289 @@ +/* + * This file is generated by jOOQ. + */ +package jj.tech.paolu.repository.jooq.tables.pojos; + + +import java.io.Serializable; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +public class SysRole implements Serializable { + + private static final long serialVersionUID = 1L; + + private String id; + private String rolename; + private String describe; + private Integer sort; + private Integer isOpen; + private String signName; + private String signId; + private String companyId; + private String companyName; + + public SysRole() {} + + public SysRole(SysRole value) { + this.id = value.id; + this.rolename = value.rolename; + this.describe = value.describe; + this.sort = value.sort; + this.isOpen = value.isOpen; + this.signName = value.signName; + this.signId = value.signId; + this.companyId = value.companyId; + this.companyName = value.companyName; + } + + public SysRole( + String id, + String rolename, + String describe, + Integer sort, + Integer isOpen, + String signName, + String signId, + String companyId, + String companyName + ) { + this.id = id; + this.rolename = rolename; + this.describe = describe; + this.sort = sort; + this.isOpen = isOpen; + this.signName = signName; + this.signId = signId; + this.companyId = companyId; + this.companyName = companyName; + } + + /** + * Getter for public.sys_role.id. + */ + public String getId() { + return this.id; + } + + /** + * Setter for public.sys_role.id. + */ + public void setId(String id) { + this.id = id; + } + + /** + * Getter for public.sys_role.rolename. + */ + public String getRolename() { + return this.rolename; + } + + /** + * Setter for public.sys_role.rolename. + */ + public void setRolename(String rolename) { + this.rolename = rolename; + } + + /** + * Getter for public.sys_role.describe. + */ + public String getDescribe() { + return this.describe; + } + + /** + * Setter for public.sys_role.describe. + */ + public void setDescribe(String describe) { + this.describe = describe; + } + + /** + * Getter for public.sys_role.sort. + */ + public Integer getSort() { + return this.sort; + } + + /** + * Setter for public.sys_role.sort. + */ + public void setSort(Integer sort) { + this.sort = sort; + } + + /** + * Getter for public.sys_role.is_open. + */ + public Integer getIsOpen() { + return this.isOpen; + } + + /** + * Setter for public.sys_role.is_open. + */ + public void setIsOpen(Integer isOpen) { + this.isOpen = isOpen; + } + + /** + * Getter for public.sys_role.sign_name. + */ + public String getSignName() { + return this.signName; + } + + /** + * Setter for public.sys_role.sign_name. + */ + public void setSignName(String signName) { + this.signName = signName; + } + + /** + * Getter for public.sys_role.sign_id. + */ + public String getSignId() { + return this.signId; + } + + /** + * Setter for public.sys_role.sign_id. + */ + public void setSignId(String signId) { + this.signId = signId; + } + + /** + * Getter for public.sys_role.company_id. + */ + public String getCompanyId() { + return this.companyId; + } + + /** + * Setter for public.sys_role.company_id. + */ + public void setCompanyId(String companyId) { + this.companyId = companyId; + } + + /** + * Getter for public.sys_role.company_name. + */ + public String getCompanyName() { + return this.companyName; + } + + /** + * Setter for public.sys_role.company_name. + */ + public void setCompanyName(String companyName) { + this.companyName = companyName; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + if (getClass() != obj.getClass()) + return false; + final SysRole other = (SysRole) obj; + if (this.id == null) { + if (other.id != null) + return false; + } + else if (!this.id.equals(other.id)) + return false; + if (this.rolename == null) { + if (other.rolename != null) + return false; + } + else if (!this.rolename.equals(other.rolename)) + return false; + if (this.describe == null) { + if (other.describe != null) + return false; + } + else if (!this.describe.equals(other.describe)) + return false; + if (this.sort == null) { + if (other.sort != null) + return false; + } + else if (!this.sort.equals(other.sort)) + return false; + if (this.isOpen == null) { + if (other.isOpen != null) + return false; + } + else if (!this.isOpen.equals(other.isOpen)) + return false; + if (this.signName == null) { + if (other.signName != null) + return false; + } + else if (!this.signName.equals(other.signName)) + return false; + if (this.signId == null) { + if (other.signId != null) + return false; + } + else if (!this.signId.equals(other.signId)) + return false; + if (this.companyId == null) { + if (other.companyId != null) + return false; + } + else if (!this.companyId.equals(other.companyId)) + return false; + if (this.companyName == null) { + if (other.companyName != null) + return false; + } + else if (!this.companyName.equals(other.companyName)) + return false; + return true; + } + + @Override + public int hashCode() { + final int prime = 31; + int result = 1; + result = prime * result + ((this.id == null) ? 0 : this.id.hashCode()); + result = prime * result + ((this.rolename == null) ? 0 : this.rolename.hashCode()); + result = prime * result + ((this.describe == null) ? 0 : this.describe.hashCode()); + result = prime * result + ((this.sort == null) ? 0 : this.sort.hashCode()); + result = prime * result + ((this.isOpen == null) ? 0 : this.isOpen.hashCode()); + result = prime * result + ((this.signName == null) ? 0 : this.signName.hashCode()); + result = prime * result + ((this.signId == null) ? 0 : this.signId.hashCode()); + result = prime * result + ((this.companyId == null) ? 0 : this.companyId.hashCode()); + result = prime * result + ((this.companyName == null) ? 0 : this.companyName.hashCode()); + return result; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder("SysRole ("); + + sb.append(id); + sb.append(", ").append(rolename); + sb.append(", ").append(describe); + sb.append(", ").append(sort); + sb.append(", ").append(isOpen); + sb.append(", ").append(signName); + sb.append(", ").append(signId); + sb.append(", ").append(companyId); + sb.append(", ").append(companyName); + + sb.append(")"); + return sb.toString(); + } +} diff --git a/src/main/java/jj/tech/paolu/repository/jooq/tables/pojos/SysRoleMenu.java b/src/main/java/jj/tech/paolu/repository/jooq/tables/pojos/SysRoleMenu.java new file mode 100644 index 0000000..6566037 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/jooq/tables/pojos/SysRoleMenu.java @@ -0,0 +1,133 @@ +/* + * This file is generated by jOOQ. + */ +package jj.tech.paolu.repository.jooq.tables.pojos; + + +import java.io.Serializable; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +public class SysRoleMenu implements Serializable { + + private static final long serialVersionUID = 1L; + + private String id; + private String roleid; + private String menuid; + + public SysRoleMenu() {} + + public SysRoleMenu(SysRoleMenu value) { + this.id = value.id; + this.roleid = value.roleid; + this.menuid = value.menuid; + } + + public SysRoleMenu( + String id, + String roleid, + String menuid + ) { + this.id = id; + this.roleid = roleid; + this.menuid = menuid; + } + + /** + * Getter for public.sys_role_menu.id. + */ + public String getId() { + return this.id; + } + + /** + * Setter for public.sys_role_menu.id. + */ + public void setId(String id) { + this.id = id; + } + + /** + * Getter for public.sys_role_menu.roleid. + */ + public String getRoleid() { + return this.roleid; + } + + /** + * Setter for public.sys_role_menu.roleid. + */ + public void setRoleid(String roleid) { + this.roleid = roleid; + } + + /** + * Getter for public.sys_role_menu.menuid. + */ + public String getMenuid() { + return this.menuid; + } + + /** + * Setter for public.sys_role_menu.menuid. + */ + public void setMenuid(String menuid) { + this.menuid = menuid; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + if (getClass() != obj.getClass()) + return false; + final SysRoleMenu other = (SysRoleMenu) obj; + if (this.id == null) { + if (other.id != null) + return false; + } + else if (!this.id.equals(other.id)) + return false; + if (this.roleid == null) { + if (other.roleid != null) + return false; + } + else if (!this.roleid.equals(other.roleid)) + return false; + if (this.menuid == null) { + if (other.menuid != null) + return false; + } + else if (!this.menuid.equals(other.menuid)) + return false; + return true; + } + + @Override + public int hashCode() { + final int prime = 31; + int result = 1; + result = prime * result + ((this.id == null) ? 0 : this.id.hashCode()); + result = prime * result + ((this.roleid == null) ? 0 : this.roleid.hashCode()); + result = prime * result + ((this.menuid == null) ? 0 : this.menuid.hashCode()); + return result; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder("SysRoleMenu ("); + + sb.append(id); + sb.append(", ").append(roleid); + sb.append(", ").append(menuid); + + sb.append(")"); + return sb.toString(); + } +} diff --git a/src/main/java/jj/tech/paolu/repository/jooq/tables/pojos/SysRoleSign.java b/src/main/java/jj/tech/paolu/repository/jooq/tables/pojos/SysRoleSign.java new file mode 100644 index 0000000..c2314c0 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/jooq/tables/pojos/SysRoleSign.java @@ -0,0 +1,133 @@ +/* + * This file is generated by jOOQ. + */ +package jj.tech.paolu.repository.jooq.tables.pojos; + + +import java.io.Serializable; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +public class SysRoleSign implements Serializable { + + private static final long serialVersionUID = 1L; + + private String id; + private String signName; + private String signCode; + + public SysRoleSign() {} + + public SysRoleSign(SysRoleSign value) { + this.id = value.id; + this.signName = value.signName; + this.signCode = value.signCode; + } + + public SysRoleSign( + String id, + String signName, + String signCode + ) { + this.id = id; + this.signName = signName; + this.signCode = signCode; + } + + /** + * Getter for public.sys_role_sign.id. + */ + public String getId() { + return this.id; + } + + /** + * Setter for public.sys_role_sign.id. + */ + public void setId(String id) { + this.id = id; + } + + /** + * Getter for public.sys_role_sign.sign_name. + */ + public String getSignName() { + return this.signName; + } + + /** + * Setter for public.sys_role_sign.sign_name. + */ + public void setSignName(String signName) { + this.signName = signName; + } + + /** + * Getter for public.sys_role_sign.sign_code. + */ + public String getSignCode() { + return this.signCode; + } + + /** + * Setter for public.sys_role_sign.sign_code. + */ + public void setSignCode(String signCode) { + this.signCode = signCode; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + if (getClass() != obj.getClass()) + return false; + final SysRoleSign other = (SysRoleSign) obj; + if (this.id == null) { + if (other.id != null) + return false; + } + else if (!this.id.equals(other.id)) + return false; + if (this.signName == null) { + if (other.signName != null) + return false; + } + else if (!this.signName.equals(other.signName)) + return false; + if (this.signCode == null) { + if (other.signCode != null) + return false; + } + else if (!this.signCode.equals(other.signCode)) + return false; + return true; + } + + @Override + public int hashCode() { + final int prime = 31; + int result = 1; + result = prime * result + ((this.id == null) ? 0 : this.id.hashCode()); + result = prime * result + ((this.signName == null) ? 0 : this.signName.hashCode()); + result = prime * result + ((this.signCode == null) ? 0 : this.signCode.hashCode()); + return result; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder("SysRoleSign ("); + + sb.append(id); + sb.append(", ").append(signName); + sb.append(", ").append(signCode); + + sb.append(")"); + return sb.toString(); + } +} diff --git a/src/main/java/jj/tech/paolu/repository/jooq/tables/pojos/SysRoleUrl.java b/src/main/java/jj/tech/paolu/repository/jooq/tables/pojos/SysRoleUrl.java new file mode 100644 index 0000000..0d5c33e --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/jooq/tables/pojos/SysRoleUrl.java @@ -0,0 +1,159 @@ +/* + * This file is generated by jOOQ. + */ +package jj.tech.paolu.repository.jooq.tables.pojos; + + +import java.io.Serializable; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +public class SysRoleUrl implements Serializable { + + private static final long serialVersionUID = 1L; + + private String id; + private String roleid; + private String url; + private Integer urltypes; + + public SysRoleUrl() {} + + public SysRoleUrl(SysRoleUrl value) { + this.id = value.id; + this.roleid = value.roleid; + this.url = value.url; + this.urltypes = value.urltypes; + } + + public SysRoleUrl( + String id, + String roleid, + String url, + Integer urltypes + ) { + this.id = id; + this.roleid = roleid; + this.url = url; + this.urltypes = urltypes; + } + + /** + * Getter for public.sys_role_url.id. + */ + public String getId() { + return this.id; + } + + /** + * Setter for public.sys_role_url.id. + */ + public void setId(String id) { + this.id = id; + } + + /** + * Getter for public.sys_role_url.roleid. + */ + public String getRoleid() { + return this.roleid; + } + + /** + * Setter for public.sys_role_url.roleid. + */ + public void setRoleid(String roleid) { + this.roleid = roleid; + } + + /** + * Getter for public.sys_role_url.url. + */ + public String getUrl() { + return this.url; + } + + /** + * Setter for public.sys_role_url.url. + */ + public void setUrl(String url) { + this.url = url; + } + + /** + * Getter for public.sys_role_url.urltypes. + */ + public Integer getUrltypes() { + return this.urltypes; + } + + /** + * Setter for public.sys_role_url.urltypes. + */ + public void setUrltypes(Integer urltypes) { + this.urltypes = urltypes; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + if (getClass() != obj.getClass()) + return false; + final SysRoleUrl other = (SysRoleUrl) obj; + if (this.id == null) { + if (other.id != null) + return false; + } + else if (!this.id.equals(other.id)) + return false; + if (this.roleid == null) { + if (other.roleid != null) + return false; + } + else if (!this.roleid.equals(other.roleid)) + return false; + if (this.url == null) { + if (other.url != null) + return false; + } + else if (!this.url.equals(other.url)) + return false; + if (this.urltypes == null) { + if (other.urltypes != null) + return false; + } + else if (!this.urltypes.equals(other.urltypes)) + return false; + return true; + } + + @Override + public int hashCode() { + final int prime = 31; + int result = 1; + result = prime * result + ((this.id == null) ? 0 : this.id.hashCode()); + result = prime * result + ((this.roleid == null) ? 0 : this.roleid.hashCode()); + result = prime * result + ((this.url == null) ? 0 : this.url.hashCode()); + result = prime * result + ((this.urltypes == null) ? 0 : this.urltypes.hashCode()); + return result; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder("SysRoleUrl ("); + + sb.append(id); + sb.append(", ").append(roleid); + sb.append(", ").append(url); + sb.append(", ").append(urltypes); + + sb.append(")"); + return sb.toString(); + } +} diff --git a/src/main/java/jj/tech/paolu/repository/jooq/tables/pojos/SysUrls.java b/src/main/java/jj/tech/paolu/repository/jooq/tables/pojos/SysUrls.java new file mode 100644 index 0000000..e2299d1 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/jooq/tables/pojos/SysUrls.java @@ -0,0 +1,237 @@ +/* + * This file is generated by jOOQ. + */ +package jj.tech.paolu.repository.jooq.tables.pojos; + + +import java.io.Serializable; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +public class SysUrls implements Serializable { + + private static final long serialVersionUID = 1L; + + private String id; + private String pid; + private Integer types; + private Integer level; + private String url; + private String name; + private String method; + + public SysUrls() {} + + public SysUrls(SysUrls value) { + this.id = value.id; + this.pid = value.pid; + this.types = value.types; + this.level = value.level; + this.url = value.url; + this.name = value.name; + this.method = value.method; + } + + public SysUrls( + String id, + String pid, + Integer types, + Integer level, + String url, + String name, + String method + ) { + this.id = id; + this.pid = pid; + this.types = types; + this.level = level; + this.url = url; + this.name = name; + this.method = method; + } + + /** + * Getter for public.sys_urls.id. + */ + public String getId() { + return this.id; + } + + /** + * Setter for public.sys_urls.id. + */ + public void setId(String id) { + this.id = id; + } + + /** + * Getter for public.sys_urls.pid. + */ + public String getPid() { + return this.pid; + } + + /** + * Setter for public.sys_urls.pid. + */ + public void setPid(String pid) { + this.pid = pid; + } + + /** + * Getter for public.sys_urls.types. + */ + public Integer getTypes() { + return this.types; + } + + /** + * Setter for public.sys_urls.types. + */ + public void setTypes(Integer types) { + this.types = types; + } + + /** + * Getter for public.sys_urls.level. + */ + public Integer getLevel() { + return this.level; + } + + /** + * Setter for public.sys_urls.level. + */ + public void setLevel(Integer level) { + this.level = level; + } + + /** + * Getter for public.sys_urls.url. + */ + public String getUrl() { + return this.url; + } + + /** + * Setter for public.sys_urls.url. + */ + public void setUrl(String url) { + this.url = url; + } + + /** + * Getter for public.sys_urls.name. + */ + public String getName() { + return this.name; + } + + /** + * Setter for public.sys_urls.name. + */ + public void setName(String name) { + this.name = name; + } + + /** + * Getter for public.sys_urls.method. + */ + public String getMethod() { + return this.method; + } + + /** + * Setter for public.sys_urls.method. + */ + public void setMethod(String method) { + this.method = method; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + if (getClass() != obj.getClass()) + return false; + final SysUrls other = (SysUrls) obj; + if (this.id == null) { + if (other.id != null) + return false; + } + else if (!this.id.equals(other.id)) + return false; + if (this.pid == null) { + if (other.pid != null) + return false; + } + else if (!this.pid.equals(other.pid)) + return false; + if (this.types == null) { + if (other.types != null) + return false; + } + else if (!this.types.equals(other.types)) + return false; + if (this.level == null) { + if (other.level != null) + return false; + } + else if (!this.level.equals(other.level)) + return false; + if (this.url == null) { + if (other.url != null) + return false; + } + else if (!this.url.equals(other.url)) + return false; + if (this.name == null) { + if (other.name != null) + return false; + } + else if (!this.name.equals(other.name)) + return false; + if (this.method == null) { + if (other.method != null) + return false; + } + else if (!this.method.equals(other.method)) + return false; + return true; + } + + @Override + public int hashCode() { + final int prime = 31; + int result = 1; + result = prime * result + ((this.id == null) ? 0 : this.id.hashCode()); + result = prime * result + ((this.pid == null) ? 0 : this.pid.hashCode()); + result = prime * result + ((this.types == null) ? 0 : this.types.hashCode()); + result = prime * result + ((this.level == null) ? 0 : this.level.hashCode()); + result = prime * result + ((this.url == null) ? 0 : this.url.hashCode()); + result = prime * result + ((this.name == null) ? 0 : this.name.hashCode()); + result = prime * result + ((this.method == null) ? 0 : this.method.hashCode()); + return result; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder("SysUrls ("); + + sb.append(id); + sb.append(", ").append(pid); + sb.append(", ").append(types); + sb.append(", ").append(level); + sb.append(", ").append(url); + sb.append(", ").append(name); + sb.append(", ").append(method); + + sb.append(")"); + return sb.toString(); + } +} diff --git a/src/main/java/jj/tech/paolu/repository/jooq/tables/records/ArchiveSynLogRecord.java b/src/main/java/jj/tech/paolu/repository/jooq/tables/records/ArchiveSynLogRecord.java new file mode 100644 index 0000000..65e3a61 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/jooq/tables/records/ArchiveSynLogRecord.java @@ -0,0 +1,578 @@ +/* + * This file is generated by jOOQ. + */ +package jj.tech.paolu.repository.jooq.tables.records; + + +import java.time.LocalDateTime; + +import jj.tech.paolu.repository.jooq.tables.ArchiveSynLog; + +import org.jooq.Field; +import org.jooq.Record1; +import org.jooq.Record13; +import org.jooq.Row13; +import org.jooq.impl.UpdatableRecordImpl; + + +/** + * 从电子档案系统同步档案目录数据的过程日志 + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +public class ArchiveSynLogRecord extends UpdatableRecordImpl implements Record13 { + + private static final long serialVersionUID = 1L; + + /** + * Setter for public.archive_syn_log.start_time. + */ + public void setStartTime(LocalDateTime value) { + set(0, value); + } + + /** + * Getter for public.archive_syn_log.start_time. + */ + public LocalDateTime getStartTime() { + return (LocalDateTime) get(0); + } + + /** + * Setter for public.archive_syn_log.insert_dir_count. + */ + public void setInsertDirCount(Long value) { + set(1, value); + } + + /** + * Getter for public.archive_syn_log.insert_dir_count. + */ + public Long getInsertDirCount() { + return (Long) get(1); + } + + /** + * Setter for public.archive_syn_log.update_dir_count. + */ + public void setUpdateDirCount(Long value) { + set(2, value); + } + + /** + * Getter for public.archive_syn_log.update_dir_count. + */ + public Long getUpdateDirCount() { + return (Long) get(2); + } + + /** + * Setter for public.archive_syn_log.insert_dirfile_count. + */ + public void setInsertDirfileCount(Long value) { + set(3, value); + } + + /** + * Getter for public.archive_syn_log.insert_dirfile_count. + */ + public Long getInsertDirfileCount() { + return (Long) get(3); + } + + /** + * Setter for public.archive_syn_log.update_dirfile_count. + */ + public void setUpdateDirfileCount(Long value) { + set(4, value); + } + + /** + * Getter for public.archive_syn_log.update_dirfile_count. + */ + public Long getUpdateDirfileCount() { + return (Long) get(4); + } + + /** + * Setter for public.archive_syn_log.insert_file_count. + */ + public void setInsertFileCount(Long value) { + set(5, value); + } + + /** + * Getter for public.archive_syn_log.insert_file_count. + */ + public Long getInsertFileCount() { + return (Long) get(5); + } + + /** + * Setter for public.archive_syn_log.update_file_count. + */ + public void setUpdateFileCount(Long value) { + set(6, value); + } + + /** + * Getter for public.archive_syn_log.update_file_count. + */ + public Long getUpdateFileCount() { + return (Long) get(6); + } + + /** + * Setter for public.archive_syn_log.description. + */ + public void setDescription(String value) { + set(7, value); + } + + /** + * Getter for public.archive_syn_log.description. + */ + public String getDescription() { + return (String) get(7); + } + + /** + * Setter for public.archive_syn_log.run_result. + */ + public void setRunResult(String value) { + set(8, value); + } + + /** + * Getter for public.archive_syn_log.run_result. + */ + public String getRunResult() { + return (String) get(8); + } + + /** + * Setter for public.archive_syn_log.update_timestamp. + */ + public void setUpdateTimestamp(Long value) { + set(9, value); + } + + /** + * Getter for public.archive_syn_log.update_timestamp. + */ + public Long getUpdateTimestamp() { + return (Long) get(9); + } + + /** + * Setter for public.archive_syn_log.id. + */ + public void setId(String value) { + set(10, value); + } + + /** + * Getter for public.archive_syn_log.id. + */ + public String getId() { + return (String) get(10); + } + + /** + * Setter for public.archive_syn_log.next_update_timestamp. + */ + public void setNextUpdateTimestamp(Long value) { + set(11, value); + } + + /** + * Getter for public.archive_syn_log.next_update_timestamp. + */ + public Long getNextUpdateTimestamp() { + return (Long) get(11); + } + + /** + * Setter for public.archive_syn_log.end_time. + */ + public void setEndTime(LocalDateTime value) { + set(12, value); + } + + /** + * Getter for public.archive_syn_log.end_time. + */ + public LocalDateTime getEndTime() { + return (LocalDateTime) get(12); + } + + // ------------------------------------------------------------------------- + // Primary key information + // ------------------------------------------------------------------------- + + @Override + public Record1 key() { + return (Record1) super.key(); + } + + // ------------------------------------------------------------------------- + // Record13 type implementation + // ------------------------------------------------------------------------- + + @Override + public Row13 fieldsRow() { + return (Row13) super.fieldsRow(); + } + + @Override + public Row13 valuesRow() { + return (Row13) super.valuesRow(); + } + + @Override + public Field field1() { + return ArchiveSynLog.ARCHIVE_SYN_LOG.START_TIME; + } + + @Override + public Field field2() { + return ArchiveSynLog.ARCHIVE_SYN_LOG.INSERT_DIR_COUNT; + } + + @Override + public Field field3() { + return ArchiveSynLog.ARCHIVE_SYN_LOG.UPDATE_DIR_COUNT; + } + + @Override + public Field field4() { + return ArchiveSynLog.ARCHIVE_SYN_LOG.INSERT_DIRFILE_COUNT; + } + + @Override + public Field field5() { + return ArchiveSynLog.ARCHIVE_SYN_LOG.UPDATE_DIRFILE_COUNT; + } + + @Override + public Field field6() { + return ArchiveSynLog.ARCHIVE_SYN_LOG.INSERT_FILE_COUNT; + } + + @Override + public Field field7() { + return ArchiveSynLog.ARCHIVE_SYN_LOG.UPDATE_FILE_COUNT; + } + + @Override + public Field field8() { + return ArchiveSynLog.ARCHIVE_SYN_LOG.DESCRIPTION; + } + + @Override + public Field field9() { + return ArchiveSynLog.ARCHIVE_SYN_LOG.RUN_RESULT; + } + + @Override + public Field field10() { + return ArchiveSynLog.ARCHIVE_SYN_LOG.UPDATE_TIMESTAMP; + } + + @Override + public Field field11() { + return ArchiveSynLog.ARCHIVE_SYN_LOG.ID; + } + + @Override + public Field field12() { + return ArchiveSynLog.ARCHIVE_SYN_LOG.NEXT_UPDATE_TIMESTAMP; + } + + @Override + public Field field13() { + return ArchiveSynLog.ARCHIVE_SYN_LOG.END_TIME; + } + + @Override + public LocalDateTime component1() { + return getStartTime(); + } + + @Override + public Long component2() { + return getInsertDirCount(); + } + + @Override + public Long component3() { + return getUpdateDirCount(); + } + + @Override + public Long component4() { + return getInsertDirfileCount(); + } + + @Override + public Long component5() { + return getUpdateDirfileCount(); + } + + @Override + public Long component6() { + return getInsertFileCount(); + } + + @Override + public Long component7() { + return getUpdateFileCount(); + } + + @Override + public String component8() { + return getDescription(); + } + + @Override + public String component9() { + return getRunResult(); + } + + @Override + public Long component10() { + return getUpdateTimestamp(); + } + + @Override + public String component11() { + return getId(); + } + + @Override + public Long component12() { + return getNextUpdateTimestamp(); + } + + @Override + public LocalDateTime component13() { + return getEndTime(); + } + + @Override + public LocalDateTime value1() { + return getStartTime(); + } + + @Override + public Long value2() { + return getInsertDirCount(); + } + + @Override + public Long value3() { + return getUpdateDirCount(); + } + + @Override + public Long value4() { + return getInsertDirfileCount(); + } + + @Override + public Long value5() { + return getUpdateDirfileCount(); + } + + @Override + public Long value6() { + return getInsertFileCount(); + } + + @Override + public Long value7() { + return getUpdateFileCount(); + } + + @Override + public String value8() { + return getDescription(); + } + + @Override + public String value9() { + return getRunResult(); + } + + @Override + public Long value10() { + return getUpdateTimestamp(); + } + + @Override + public String value11() { + return getId(); + } + + @Override + public Long value12() { + return getNextUpdateTimestamp(); + } + + @Override + public LocalDateTime value13() { + return getEndTime(); + } + + @Override + public ArchiveSynLogRecord value1(LocalDateTime value) { + setStartTime(value); + return this; + } + + @Override + public ArchiveSynLogRecord value2(Long value) { + setInsertDirCount(value); + return this; + } + + @Override + public ArchiveSynLogRecord value3(Long value) { + setUpdateDirCount(value); + return this; + } + + @Override + public ArchiveSynLogRecord value4(Long value) { + setInsertDirfileCount(value); + return this; + } + + @Override + public ArchiveSynLogRecord value5(Long value) { + setUpdateDirfileCount(value); + return this; + } + + @Override + public ArchiveSynLogRecord value6(Long value) { + setInsertFileCount(value); + return this; + } + + @Override + public ArchiveSynLogRecord value7(Long value) { + setUpdateFileCount(value); + return this; + } + + @Override + public ArchiveSynLogRecord value8(String value) { + setDescription(value); + return this; + } + + @Override + public ArchiveSynLogRecord value9(String value) { + setRunResult(value); + return this; + } + + @Override + public ArchiveSynLogRecord value10(Long value) { + setUpdateTimestamp(value); + return this; + } + + @Override + public ArchiveSynLogRecord value11(String value) { + setId(value); + return this; + } + + @Override + public ArchiveSynLogRecord value12(Long value) { + setNextUpdateTimestamp(value); + return this; + } + + @Override + public ArchiveSynLogRecord value13(LocalDateTime value) { + setEndTime(value); + return this; + } + + @Override + public ArchiveSynLogRecord values(LocalDateTime value1, Long value2, Long value3, Long value4, Long value5, Long value6, Long value7, String value8, String value9, Long value10, String value11, Long value12, LocalDateTime value13) { + value1(value1); + value2(value2); + value3(value3); + value4(value4); + value5(value5); + value6(value6); + value7(value7); + value8(value8); + value9(value9); + value10(value10); + value11(value11); + value12(value12); + value13(value13); + return this; + } + + // ------------------------------------------------------------------------- + // Constructors + // ------------------------------------------------------------------------- + + /** + * Create a detached ArchiveSynLogRecord + */ + public ArchiveSynLogRecord() { + super(ArchiveSynLog.ARCHIVE_SYN_LOG); + } + + /** + * Create a detached, initialised ArchiveSynLogRecord + */ + public ArchiveSynLogRecord(LocalDateTime startTime, Long insertDirCount, Long updateDirCount, Long insertDirfileCount, Long updateDirfileCount, Long insertFileCount, Long updateFileCount, String description, String runResult, Long updateTimestamp, String id, Long nextUpdateTimestamp, LocalDateTime endTime) { + super(ArchiveSynLog.ARCHIVE_SYN_LOG); + + setStartTime(startTime); + setInsertDirCount(insertDirCount); + setUpdateDirCount(updateDirCount); + setInsertDirfileCount(insertDirfileCount); + setUpdateDirfileCount(updateDirfileCount); + setInsertFileCount(insertFileCount); + setUpdateFileCount(updateFileCount); + setDescription(description); + setRunResult(runResult); + setUpdateTimestamp(updateTimestamp); + setId(id); + setNextUpdateTimestamp(nextUpdateTimestamp); + setEndTime(endTime); + resetChangedOnNotNull(); + } + + /** + * Create a detached, initialised ArchiveSynLogRecord + */ + public ArchiveSynLogRecord(jj.tech.paolu.repository.jooq.tables.pojos.ArchiveSynLog value) { + super(ArchiveSynLog.ARCHIVE_SYN_LOG); + + if (value != null) { + setStartTime(value.getStartTime()); + setInsertDirCount(value.getInsertDirCount()); + setUpdateDirCount(value.getUpdateDirCount()); + setInsertDirfileCount(value.getInsertDirfileCount()); + setUpdateDirfileCount(value.getUpdateDirfileCount()); + setInsertFileCount(value.getInsertFileCount()); + setUpdateFileCount(value.getUpdateFileCount()); + setDescription(value.getDescription()); + setRunResult(value.getRunResult()); + setUpdateTimestamp(value.getUpdateTimestamp()); + setId(value.getId()); + setNextUpdateTimestamp(value.getNextUpdateTimestamp()); + setEndTime(value.getEndTime()); + resetChangedOnNotNull(); + } + } +} diff --git a/src/main/java/jj/tech/paolu/repository/jooq/tables/records/CertificateApplyRecord.java b/src/main/java/jj/tech/paolu/repository/jooq/tables/records/CertificateApplyRecord.java new file mode 100644 index 0000000..a887258 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/jooq/tables/records/CertificateApplyRecord.java @@ -0,0 +1,730 @@ +/* + * This file is generated by jOOQ. + */ +package jj.tech.paolu.repository.jooq.tables.records; + + +import java.time.LocalDateTime; + +import jj.tech.paolu.repository.jooq.tables.CertificateApply; + +import org.jooq.Field; +import org.jooq.Record1; +import org.jooq.Record17; +import org.jooq.Row17; +import org.jooq.impl.UpdatableRecordImpl; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +public class CertificateApplyRecord extends UpdatableRecordImpl implements Record17 { + + private static final long serialVersionUID = 1L; + + /** + * Setter for public.certificate_apply.id. + */ + public void setId(String value) { + set(0, value); + } + + /** + * Getter for public.certificate_apply.id. + */ + public String getId() { + return (String) get(0); + } + + /** + * Setter for public.certificate_apply.is_org. + */ + public void setIsOrg(Integer value) { + set(1, value); + } + + /** + * Getter for public.certificate_apply.is_org. + */ + public Integer getIsOrg() { + return (Integer) get(1); + } + + /** + * Setter for public.certificate_apply.user_id. + */ + public void setUserId(String value) { + set(2, value); + } + + /** + * Getter for public.certificate_apply.user_id. + */ + public String getUserId() { + return (String) get(2); + } + + /** + * Setter for public.certificate_apply.user_name. + */ + public void setUserName(String value) { + set(3, value); + } + + /** + * Getter for public.certificate_apply.user_name. + */ + public String getUserName() { + return (String) get(3); + } + + /** + * Setter for public.certificate_apply.user_real_name. + */ + public void setUserRealName(String value) { + set(4, value); + } + + /** + * Getter for public.certificate_apply.user_real_name. + */ + public String getUserRealName() { + return (String) get(4); + } + + /** + * Setter for public.certificate_apply.user_phone. + */ + public void setUserPhone(String value) { + set(5, value); + } + + /** + * Getter for public.certificate_apply.user_phone. + */ + public String getUserPhone() { + return (String) get(5); + } + + /** + * Setter for public.certificate_apply.user_org_id. + */ + public void setUserOrgId(String value) { + set(6, value); + } + + /** + * Getter for public.certificate_apply.user_org_id. + */ + public String getUserOrgId() { + return (String) get(6); + } + + /** + * Setter for public.certificate_apply.user_org_name. + */ + public void setUserOrgName(String value) { + set(7, value); + } + + /** + * Getter for public.certificate_apply.user_org_name. + */ + public String getUserOrgName() { + return (String) get(7); + } + + /** + * Setter for public.certificate_apply.apply_type. + */ + public void setApplyType(Integer value) { + set(8, value); + } + + /** + * Getter for public.certificate_apply.apply_type. + */ + public Integer getApplyType() { + return (Integer) get(8); + } + + /** + * Setter for public.certificate_apply.status. + */ + public void setStatus(Integer value) { + set(9, value); + } + + /** + * Getter for public.certificate_apply.status. + */ + public Integer getStatus() { + return (Integer) get(9); + } + + /** + * Setter for public.certificate_apply.apply_time. + */ + public void setApplyTime(LocalDateTime value) { + set(10, value); + } + + /** + * Getter for public.certificate_apply.apply_time. + */ + public LocalDateTime getApplyTime() { + return (LocalDateTime) get(10); + } + + /** + * Setter for public.certificate_apply.apply_finish_time. + */ + public void setApplyFinishTime(LocalDateTime value) { + set(11, value); + } + + /** + * Getter for public.certificate_apply.apply_finish_time. + */ + public LocalDateTime getApplyFinishTime() { + return (LocalDateTime) get(11); + } + + /** + * Setter for public.certificate_apply.apply_reason. + */ + public void setApplyReason(String value) { + set(12, value); + } + + /** + * Getter for public.certificate_apply.apply_reason. + */ + public String getApplyReason() { + return (String) get(12); + } + + /** + * Setter for public.certificate_apply.next_check_org_id. + */ + public void setNextCheckOrgId(String value) { + set(13, value); + } + + /** + * Getter for public.certificate_apply.next_check_org_id. + */ + public String getNextCheckOrgId() { + return (String) get(13); + } + + /** + * Setter for public.certificate_apply.end_check_org_id. + */ + public void setEndCheckOrgId(String value) { + set(14, value); + } + + /** + * Getter for public.certificate_apply.end_check_org_id. + */ + public String getEndCheckOrgId() { + return (String) get(14); + } + + /** + * Setter for public.certificate_apply.cer_id. + */ + public void setCerId(String value) { + set(15, value); + } + + /** + * Getter for public.certificate_apply.cer_id. + */ + public String getCerId() { + return (String) get(15); + } + + /** + * Setter for public.certificate_apply.company_id. + */ + public void setCompanyId(String value) { + set(16, value); + } + + /** + * Getter for public.certificate_apply.company_id. + */ + public String getCompanyId() { + return (String) get(16); + } + + // ------------------------------------------------------------------------- + // Primary key information + // ------------------------------------------------------------------------- + + @Override + public Record1 key() { + return (Record1) super.key(); + } + + // ------------------------------------------------------------------------- + // Record17 type implementation + // ------------------------------------------------------------------------- + + @Override + public Row17 fieldsRow() { + return (Row17) super.fieldsRow(); + } + + @Override + public Row17 valuesRow() { + return (Row17) super.valuesRow(); + } + + @Override + public Field field1() { + return CertificateApply.CERTIFICATE_APPLY.ID; + } + + @Override + public Field field2() { + return CertificateApply.CERTIFICATE_APPLY.IS_ORG; + } + + @Override + public Field field3() { + return CertificateApply.CERTIFICATE_APPLY.USER_ID; + } + + @Override + public Field field4() { + return CertificateApply.CERTIFICATE_APPLY.USER_NAME; + } + + @Override + public Field field5() { + return CertificateApply.CERTIFICATE_APPLY.USER_REAL_NAME; + } + + @Override + public Field field6() { + return CertificateApply.CERTIFICATE_APPLY.USER_PHONE; + } + + @Override + public Field field7() { + return CertificateApply.CERTIFICATE_APPLY.USER_ORG_ID; + } + + @Override + public Field field8() { + return CertificateApply.CERTIFICATE_APPLY.USER_ORG_NAME; + } + + @Override + public Field field9() { + return CertificateApply.CERTIFICATE_APPLY.APPLY_TYPE; + } + + @Override + public Field field10() { + return CertificateApply.CERTIFICATE_APPLY.STATUS; + } + + @Override + public Field field11() { + return CertificateApply.CERTIFICATE_APPLY.APPLY_TIME; + } + + @Override + public Field field12() { + return CertificateApply.CERTIFICATE_APPLY.APPLY_FINISH_TIME; + } + + @Override + public Field field13() { + return CertificateApply.CERTIFICATE_APPLY.APPLY_REASON; + } + + @Override + public Field field14() { + return CertificateApply.CERTIFICATE_APPLY.NEXT_CHECK_ORG_ID; + } + + @Override + public Field field15() { + return CertificateApply.CERTIFICATE_APPLY.END_CHECK_ORG_ID; + } + + @Override + public Field field16() { + return CertificateApply.CERTIFICATE_APPLY.CER_ID; + } + + @Override + public Field field17() { + return CertificateApply.CERTIFICATE_APPLY.COMPANY_ID; + } + + @Override + public String component1() { + return getId(); + } + + @Override + public Integer component2() { + return getIsOrg(); + } + + @Override + public String component3() { + return getUserId(); + } + + @Override + public String component4() { + return getUserName(); + } + + @Override + public String component5() { + return getUserRealName(); + } + + @Override + public String component6() { + return getUserPhone(); + } + + @Override + public String component7() { + return getUserOrgId(); + } + + @Override + public String component8() { + return getUserOrgName(); + } + + @Override + public Integer component9() { + return getApplyType(); + } + + @Override + public Integer component10() { + return getStatus(); + } + + @Override + public LocalDateTime component11() { + return getApplyTime(); + } + + @Override + public LocalDateTime component12() { + return getApplyFinishTime(); + } + + @Override + public String component13() { + return getApplyReason(); + } + + @Override + public String component14() { + return getNextCheckOrgId(); + } + + @Override + public String component15() { + return getEndCheckOrgId(); + } + + @Override + public String component16() { + return getCerId(); + } + + @Override + public String component17() { + return getCompanyId(); + } + + @Override + public String value1() { + return getId(); + } + + @Override + public Integer value2() { + return getIsOrg(); + } + + @Override + public String value3() { + return getUserId(); + } + + @Override + public String value4() { + return getUserName(); + } + + @Override + public String value5() { + return getUserRealName(); + } + + @Override + public String value6() { + return getUserPhone(); + } + + @Override + public String value7() { + return getUserOrgId(); + } + + @Override + public String value8() { + return getUserOrgName(); + } + + @Override + public Integer value9() { + return getApplyType(); + } + + @Override + public Integer value10() { + return getStatus(); + } + + @Override + public LocalDateTime value11() { + return getApplyTime(); + } + + @Override + public LocalDateTime value12() { + return getApplyFinishTime(); + } + + @Override + public String value13() { + return getApplyReason(); + } + + @Override + public String value14() { + return getNextCheckOrgId(); + } + + @Override + public String value15() { + return getEndCheckOrgId(); + } + + @Override + public String value16() { + return getCerId(); + } + + @Override + public String value17() { + return getCompanyId(); + } + + @Override + public CertificateApplyRecord value1(String value) { + setId(value); + return this; + } + + @Override + public CertificateApplyRecord value2(Integer value) { + setIsOrg(value); + return this; + } + + @Override + public CertificateApplyRecord value3(String value) { + setUserId(value); + return this; + } + + @Override + public CertificateApplyRecord value4(String value) { + setUserName(value); + return this; + } + + @Override + public CertificateApplyRecord value5(String value) { + setUserRealName(value); + return this; + } + + @Override + public CertificateApplyRecord value6(String value) { + setUserPhone(value); + return this; + } + + @Override + public CertificateApplyRecord value7(String value) { + setUserOrgId(value); + return this; + } + + @Override + public CertificateApplyRecord value8(String value) { + setUserOrgName(value); + return this; + } + + @Override + public CertificateApplyRecord value9(Integer value) { + setApplyType(value); + return this; + } + + @Override + public CertificateApplyRecord value10(Integer value) { + setStatus(value); + return this; + } + + @Override + public CertificateApplyRecord value11(LocalDateTime value) { + setApplyTime(value); + return this; + } + + @Override + public CertificateApplyRecord value12(LocalDateTime value) { + setApplyFinishTime(value); + return this; + } + + @Override + public CertificateApplyRecord value13(String value) { + setApplyReason(value); + return this; + } + + @Override + public CertificateApplyRecord value14(String value) { + setNextCheckOrgId(value); + return this; + } + + @Override + public CertificateApplyRecord value15(String value) { + setEndCheckOrgId(value); + return this; + } + + @Override + public CertificateApplyRecord value16(String value) { + setCerId(value); + return this; + } + + @Override + public CertificateApplyRecord value17(String value) { + setCompanyId(value); + return this; + } + + @Override + public CertificateApplyRecord values(String value1, Integer value2, String value3, String value4, String value5, String value6, String value7, String value8, Integer value9, Integer value10, LocalDateTime value11, LocalDateTime value12, String value13, String value14, String value15, String value16, String value17) { + value1(value1); + value2(value2); + value3(value3); + value4(value4); + value5(value5); + value6(value6); + value7(value7); + value8(value8); + value9(value9); + value10(value10); + value11(value11); + value12(value12); + value13(value13); + value14(value14); + value15(value15); + value16(value16); + value17(value17); + return this; + } + + // ------------------------------------------------------------------------- + // Constructors + // ------------------------------------------------------------------------- + + /** + * Create a detached CertificateApplyRecord + */ + public CertificateApplyRecord() { + super(CertificateApply.CERTIFICATE_APPLY); + } + + /** + * Create a detached, initialised CertificateApplyRecord + */ + public CertificateApplyRecord(String id, Integer isOrg, String userId, String userName, String userRealName, String userPhone, String userOrgId, String userOrgName, Integer applyType, Integer status, LocalDateTime applyTime, LocalDateTime applyFinishTime, String applyReason, String nextCheckOrgId, String endCheckOrgId, String cerId, String companyId) { + super(CertificateApply.CERTIFICATE_APPLY); + + setId(id); + setIsOrg(isOrg); + setUserId(userId); + setUserName(userName); + setUserRealName(userRealName); + setUserPhone(userPhone); + setUserOrgId(userOrgId); + setUserOrgName(userOrgName); + setApplyType(applyType); + setStatus(status); + setApplyTime(applyTime); + setApplyFinishTime(applyFinishTime); + setApplyReason(applyReason); + setNextCheckOrgId(nextCheckOrgId); + setEndCheckOrgId(endCheckOrgId); + setCerId(cerId); + setCompanyId(companyId); + resetChangedOnNotNull(); + } + + /** + * Create a detached, initialised CertificateApplyRecord + */ + public CertificateApplyRecord(jj.tech.paolu.repository.jooq.tables.pojos.CertificateApply value) { + super(CertificateApply.CERTIFICATE_APPLY); + + if (value != null) { + setId(value.getId()); + setIsOrg(value.getIsOrg()); + setUserId(value.getUserId()); + setUserName(value.getUserName()); + setUserRealName(value.getUserRealName()); + setUserPhone(value.getUserPhone()); + setUserOrgId(value.getUserOrgId()); + setUserOrgName(value.getUserOrgName()); + setApplyType(value.getApplyType()); + setStatus(value.getStatus()); + setApplyTime(value.getApplyTime()); + setApplyFinishTime(value.getApplyFinishTime()); + setApplyReason(value.getApplyReason()); + setNextCheckOrgId(value.getNextCheckOrgId()); + setEndCheckOrgId(value.getEndCheckOrgId()); + setCerId(value.getCerId()); + setCompanyId(value.getCompanyId()); + resetChangedOnNotNull(); + } + } +} diff --git a/src/main/java/jj/tech/paolu/repository/jooq/tables/records/CertificateApplyRecordRecord.java b/src/main/java/jj/tech/paolu/repository/jooq/tables/records/CertificateApplyRecordRecord.java new file mode 100644 index 0000000..933d680 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/jooq/tables/records/CertificateApplyRecordRecord.java @@ -0,0 +1,664 @@ +/* + * This file is generated by jOOQ. + */ +package jj.tech.paolu.repository.jooq.tables.records; + + +import java.time.LocalDateTime; + +import jj.tech.paolu.repository.jooq.tables.CertificateApplyRecord; + +import org.jooq.Field; +import org.jooq.Record1; +import org.jooq.Record15; +import org.jooq.Row15; +import org.jooq.impl.UpdatableRecordImpl; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +public class CertificateApplyRecordRecord extends UpdatableRecordImpl implements Record15 { + + private static final long serialVersionUID = 1L; + + /** + * Setter for public.certificate_apply_record.id. + */ + public void setId(String value) { + set(0, value); + } + + /** + * Getter for public.certificate_apply_record.id. + */ + public String getId() { + return (String) get(0); + } + + /** + * Setter for + * public.certificate_apply_record.certificate_apply_id. + */ + public void setCertificateApplyId(String value) { + set(1, value); + } + + /** + * Getter for + * public.certificate_apply_record.certificate_apply_id. + */ + public String getCertificateApplyId() { + return (String) get(1); + } + + /** + * Setter for + * public.certificate_apply_record.certificate_apply_user_id. + */ + public void setCertificateApplyUserId(String value) { + set(2, value); + } + + /** + * Getter for + * public.certificate_apply_record.certificate_apply_user_id. + */ + public String getCertificateApplyUserId() { + return (String) get(2); + } + + /** + * Setter for + * public.certificate_apply_record.certificate_apply_user_org_id. + */ + public void setCertificateApplyUserOrgId(String value) { + set(3, value); + } + + /** + * Getter for + * public.certificate_apply_record.certificate_apply_user_org_id. + */ + public String getCertificateApplyUserOrgId() { + return (String) get(3); + } + + /** + * Setter for public.certificate_apply_record.is_org. + */ + public void setIsOrg(Integer value) { + set(4, value); + } + + /** + * Getter for public.certificate_apply_record.is_org. + */ + public Integer getIsOrg() { + return (Integer) get(4); + } + + /** + * Setter for public.certificate_apply_record.apply_type. + */ + public void setApplyType(Integer value) { + set(5, value); + } + + /** + * Getter for public.certificate_apply_record.apply_type. + */ + public Integer getApplyType() { + return (Integer) get(5); + } + + /** + * Setter for public.certificate_apply_record.check_user_id. + */ + public void setCheckUserId(String value) { + set(6, value); + } + + /** + * Getter for public.certificate_apply_record.check_user_id. + */ + public String getCheckUserId() { + return (String) get(6); + } + + /** + * Setter for public.certificate_apply_record.check_user_name. + */ + public void setCheckUserName(String value) { + set(7, value); + } + + /** + * Getter for public.certificate_apply_record.check_user_name. + */ + public String getCheckUserName() { + return (String) get(7); + } + + /** + * Setter for public.certificate_apply_record.check_org_id. + */ + public void setCheckOrgId(String value) { + set(8, value); + } + + /** + * Getter for public.certificate_apply_record.check_org_id. + */ + public String getCheckOrgId() { + return (String) get(8); + } + + /** + * Setter for public.certificate_apply_record.check_org_name. + */ + public void setCheckOrgName(String value) { + set(9, value); + } + + /** + * Getter for public.certificate_apply_record.check_org_name. + */ + public String getCheckOrgName() { + return (String) get(9); + } + + /** + * Setter for public.certificate_apply_record.check_describe. + */ + public void setCheckDescribe(String value) { + set(10, value); + } + + /** + * Getter for public.certificate_apply_record.check_describe. + */ + public String getCheckDescribe() { + return (String) get(10); + } + + /** + * Setter for public.certificate_apply_record.check_status. + */ + public void setCheckStatus(Integer value) { + set(11, value); + } + + /** + * Getter for public.certificate_apply_record.check_status. + */ + public Integer getCheckStatus() { + return (Integer) get(11); + } + + /** + * Setter for public.certificate_apply_record.check_time. + */ + public void setCheckTime(LocalDateTime value) { + set(12, value); + } + + /** + * Getter for public.certificate_apply_record.check_time. + */ + public LocalDateTime getCheckTime() { + return (LocalDateTime) get(12); + } + + /** + * Setter for + * public.certificate_apply_record.next_check_org_id. + */ + public void setNextCheckOrgId(String value) { + set(13, value); + } + + /** + * Getter for + * public.certificate_apply_record.next_check_org_id. + */ + public String getNextCheckOrgId() { + return (String) get(13); + } + + /** + * Setter for + * public.certificate_apply_record.next_check_org_name. + */ + public void setNextCheckOrgName(String value) { + set(14, value); + } + + /** + * Getter for + * public.certificate_apply_record.next_check_org_name. + */ + public String getNextCheckOrgName() { + return (String) get(14); + } + + // ------------------------------------------------------------------------- + // Primary key information + // ------------------------------------------------------------------------- + + @Override + public Record1 key() { + return (Record1) super.key(); + } + + // ------------------------------------------------------------------------- + // Record15 type implementation + // ------------------------------------------------------------------------- + + @Override + public Row15 fieldsRow() { + return (Row15) super.fieldsRow(); + } + + @Override + public Row15 valuesRow() { + return (Row15) super.valuesRow(); + } + + @Override + public Field field1() { + return CertificateApplyRecord.CERTIFICATE_APPLY_RECORD.ID; + } + + @Override + public Field field2() { + return CertificateApplyRecord.CERTIFICATE_APPLY_RECORD.CERTIFICATE_APPLY_ID; + } + + @Override + public Field field3() { + return CertificateApplyRecord.CERTIFICATE_APPLY_RECORD.CERTIFICATE_APPLY_USER_ID; + } + + @Override + public Field field4() { + return CertificateApplyRecord.CERTIFICATE_APPLY_RECORD.CERTIFICATE_APPLY_USER_ORG_ID; + } + + @Override + public Field field5() { + return CertificateApplyRecord.CERTIFICATE_APPLY_RECORD.IS_ORG; + } + + @Override + public Field field6() { + return CertificateApplyRecord.CERTIFICATE_APPLY_RECORD.APPLY_TYPE; + } + + @Override + public Field field7() { + return CertificateApplyRecord.CERTIFICATE_APPLY_RECORD.CHECK_USER_ID; + } + + @Override + public Field field8() { + return CertificateApplyRecord.CERTIFICATE_APPLY_RECORD.CHECK_USER_NAME; + } + + @Override + public Field field9() { + return CertificateApplyRecord.CERTIFICATE_APPLY_RECORD.CHECK_ORG_ID; + } + + @Override + public Field field10() { + return CertificateApplyRecord.CERTIFICATE_APPLY_RECORD.CHECK_ORG_NAME; + } + + @Override + public Field field11() { + return CertificateApplyRecord.CERTIFICATE_APPLY_RECORD.CHECK_DESCRIBE; + } + + @Override + public Field field12() { + return CertificateApplyRecord.CERTIFICATE_APPLY_RECORD.CHECK_STATUS; + } + + @Override + public Field field13() { + return CertificateApplyRecord.CERTIFICATE_APPLY_RECORD.CHECK_TIME; + } + + @Override + public Field field14() { + return CertificateApplyRecord.CERTIFICATE_APPLY_RECORD.NEXT_CHECK_ORG_ID; + } + + @Override + public Field field15() { + return CertificateApplyRecord.CERTIFICATE_APPLY_RECORD.NEXT_CHECK_ORG_NAME; + } + + @Override + public String component1() { + return getId(); + } + + @Override + public String component2() { + return getCertificateApplyId(); + } + + @Override + public String component3() { + return getCertificateApplyUserId(); + } + + @Override + public String component4() { + return getCertificateApplyUserOrgId(); + } + + @Override + public Integer component5() { + return getIsOrg(); + } + + @Override + public Integer component6() { + return getApplyType(); + } + + @Override + public String component7() { + return getCheckUserId(); + } + + @Override + public String component8() { + return getCheckUserName(); + } + + @Override + public String component9() { + return getCheckOrgId(); + } + + @Override + public String component10() { + return getCheckOrgName(); + } + + @Override + public String component11() { + return getCheckDescribe(); + } + + @Override + public Integer component12() { + return getCheckStatus(); + } + + @Override + public LocalDateTime component13() { + return getCheckTime(); + } + + @Override + public String component14() { + return getNextCheckOrgId(); + } + + @Override + public String component15() { + return getNextCheckOrgName(); + } + + @Override + public String value1() { + return getId(); + } + + @Override + public String value2() { + return getCertificateApplyId(); + } + + @Override + public String value3() { + return getCertificateApplyUserId(); + } + + @Override + public String value4() { + return getCertificateApplyUserOrgId(); + } + + @Override + public Integer value5() { + return getIsOrg(); + } + + @Override + public Integer value6() { + return getApplyType(); + } + + @Override + public String value7() { + return getCheckUserId(); + } + + @Override + public String value8() { + return getCheckUserName(); + } + + @Override + public String value9() { + return getCheckOrgId(); + } + + @Override + public String value10() { + return getCheckOrgName(); + } + + @Override + public String value11() { + return getCheckDescribe(); + } + + @Override + public Integer value12() { + return getCheckStatus(); + } + + @Override + public LocalDateTime value13() { + return getCheckTime(); + } + + @Override + public String value14() { + return getNextCheckOrgId(); + } + + @Override + public String value15() { + return getNextCheckOrgName(); + } + + @Override + public CertificateApplyRecordRecord value1(String value) { + setId(value); + return this; + } + + @Override + public CertificateApplyRecordRecord value2(String value) { + setCertificateApplyId(value); + return this; + } + + @Override + public CertificateApplyRecordRecord value3(String value) { + setCertificateApplyUserId(value); + return this; + } + + @Override + public CertificateApplyRecordRecord value4(String value) { + setCertificateApplyUserOrgId(value); + return this; + } + + @Override + public CertificateApplyRecordRecord value5(Integer value) { + setIsOrg(value); + return this; + } + + @Override + public CertificateApplyRecordRecord value6(Integer value) { + setApplyType(value); + return this; + } + + @Override + public CertificateApplyRecordRecord value7(String value) { + setCheckUserId(value); + return this; + } + + @Override + public CertificateApplyRecordRecord value8(String value) { + setCheckUserName(value); + return this; + } + + @Override + public CertificateApplyRecordRecord value9(String value) { + setCheckOrgId(value); + return this; + } + + @Override + public CertificateApplyRecordRecord value10(String value) { + setCheckOrgName(value); + return this; + } + + @Override + public CertificateApplyRecordRecord value11(String value) { + setCheckDescribe(value); + return this; + } + + @Override + public CertificateApplyRecordRecord value12(Integer value) { + setCheckStatus(value); + return this; + } + + @Override + public CertificateApplyRecordRecord value13(LocalDateTime value) { + setCheckTime(value); + return this; + } + + @Override + public CertificateApplyRecordRecord value14(String value) { + setNextCheckOrgId(value); + return this; + } + + @Override + public CertificateApplyRecordRecord value15(String value) { + setNextCheckOrgName(value); + return this; + } + + @Override + public CertificateApplyRecordRecord values(String value1, String value2, String value3, String value4, Integer value5, Integer value6, String value7, String value8, String value9, String value10, String value11, Integer value12, LocalDateTime value13, String value14, String value15) { + value1(value1); + value2(value2); + value3(value3); + value4(value4); + value5(value5); + value6(value6); + value7(value7); + value8(value8); + value9(value9); + value10(value10); + value11(value11); + value12(value12); + value13(value13); + value14(value14); + value15(value15); + return this; + } + + // ------------------------------------------------------------------------- + // Constructors + // ------------------------------------------------------------------------- + + /** + * Create a detached CertificateApplyRecordRecord + */ + public CertificateApplyRecordRecord() { + super(CertificateApplyRecord.CERTIFICATE_APPLY_RECORD); + } + + /** + * Create a detached, initialised CertificateApplyRecordRecord + */ + public CertificateApplyRecordRecord(String id, String certificateApplyId, String certificateApplyUserId, String certificateApplyUserOrgId, Integer isOrg, Integer applyType, String checkUserId, String checkUserName, String checkOrgId, String checkOrgName, String checkDescribe, Integer checkStatus, LocalDateTime checkTime, String nextCheckOrgId, String nextCheckOrgName) { + super(CertificateApplyRecord.CERTIFICATE_APPLY_RECORD); + + setId(id); + setCertificateApplyId(certificateApplyId); + setCertificateApplyUserId(certificateApplyUserId); + setCertificateApplyUserOrgId(certificateApplyUserOrgId); + setIsOrg(isOrg); + setApplyType(applyType); + setCheckUserId(checkUserId); + setCheckUserName(checkUserName); + setCheckOrgId(checkOrgId); + setCheckOrgName(checkOrgName); + setCheckDescribe(checkDescribe); + setCheckStatus(checkStatus); + setCheckTime(checkTime); + setNextCheckOrgId(nextCheckOrgId); + setNextCheckOrgName(nextCheckOrgName); + resetChangedOnNotNull(); + } + + /** + * Create a detached, initialised CertificateApplyRecordRecord + */ + public CertificateApplyRecordRecord(jj.tech.paolu.repository.jooq.tables.pojos.CertificateApplyRecord value) { + super(CertificateApplyRecord.CERTIFICATE_APPLY_RECORD); + + if (value != null) { + setId(value.getId()); + setCertificateApplyId(value.getCertificateApplyId()); + setCertificateApplyUserId(value.getCertificateApplyUserId()); + setCertificateApplyUserOrgId(value.getCertificateApplyUserOrgId()); + setIsOrg(value.getIsOrg()); + setApplyType(value.getApplyType()); + setCheckUserId(value.getCheckUserId()); + setCheckUserName(value.getCheckUserName()); + setCheckOrgId(value.getCheckOrgId()); + setCheckOrgName(value.getCheckOrgName()); + setCheckDescribe(value.getCheckDescribe()); + setCheckStatus(value.getCheckStatus()); + setCheckTime(value.getCheckTime()); + setNextCheckOrgId(value.getNextCheckOrgId()); + setNextCheckOrgName(value.getNextCheckOrgName()); + resetChangedOnNotNull(); + } + } +} diff --git a/src/main/java/jj/tech/paolu/repository/jooq/tables/records/CertificateDetailRecord.java b/src/main/java/jj/tech/paolu/repository/jooq/tables/records/CertificateDetailRecord.java new file mode 100644 index 0000000..151af39 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/jooq/tables/records/CertificateDetailRecord.java @@ -0,0 +1,616 @@ +/* + * This file is generated by jOOQ. + */ +package jj.tech.paolu.repository.jooq.tables.records; + + +import java.time.LocalDateTime; + +import jj.tech.paolu.repository.jooq.tables.CertificateDetail; + +import org.jooq.Field; +import org.jooq.Record1; +import org.jooq.Record14; +import org.jooq.Row14; +import org.jooq.impl.UpdatableRecordImpl; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +public class CertificateDetailRecord extends UpdatableRecordImpl implements Record14 { + + private static final long serialVersionUID = 1L; + + /** + * Setter for public.certificate_detail.id. + */ + public void setId(String value) { + set(0, value); + } + + /** + * Getter for public.certificate_detail.id. + */ + public String getId() { + return (String) get(0); + } + + /** + * Setter for public.certificate_detail.certificate_apply_id. + */ + public void setCertificateApplyId(String value) { + set(1, value); + } + + /** + * Getter for public.certificate_detail.certificate_apply_id. + */ + public String getCertificateApplyId() { + return (String) get(1); + } + + /** + * Setter for public.certificate_detail.work_start_time. + */ + public void setWorkStartTime(LocalDateTime value) { + set(2, value); + } + + /** + * Getter for public.certificate_detail.work_start_time. + */ + public LocalDateTime getWorkStartTime() { + return (LocalDateTime) get(2); + } + + /** + * Setter for public.certificate_detail.work_end_time. + */ + public void setWorkEndTime(LocalDateTime value) { + set(3, value); + } + + /** + * Getter for public.certificate_detail.work_end_time. + */ + public LocalDateTime getWorkEndTime() { + return (LocalDateTime) get(3); + } + + /** + * Setter for public.certificate_detail.status. + */ + public void setStatus(Integer value) { + set(4, value); + } + + /** + * Getter for public.certificate_detail.status. + */ + public Integer getStatus() { + return (Integer) get(4); + } + + /** + * Setter for public.certificate_detail.cert_file_content. + */ + public void setCertFileContent(String value) { + set(5, value); + } + + /** + * Getter for public.certificate_detail.cert_file_content. + */ + public String getCertFileContent() { + return (String) get(5); + } + + /** + * Setter for public.certificate_detail.is_up_chain. + */ + public void setIsUpChain(Integer value) { + set(6, value); + } + + /** + * Getter for public.certificate_detail.is_up_chain. + */ + public Integer getIsUpChain() { + return (Integer) get(6); + } + + /** + * Setter for public.certificate_detail.weid. + */ + public void setWeid(String value) { + set(7, value); + } + + /** + * Getter for public.certificate_detail.weid. + */ + public String getWeid() { + return (String) get(7); + } + + /** + * Setter for public.certificate_detail.private_key_hex_str. + */ + public void setPrivateKeyHexStr(String value) { + set(8, value); + } + + /** + * Getter for public.certificate_detail.private_key_hex_str. + */ + public String getPrivateKeyHexStr() { + return (String) get(8); + } + + /** + * Setter for public.certificate_detail.x509_serial_number. + */ + public void setX509SerialNumber(String value) { + set(9, value); + } + + /** + * Getter for public.certificate_detail.x509_serial_number. + */ + public String getX509SerialNumber() { + return (String) get(9); + } + + /** + * Setter for public.certificate_detail.x509_subject. + */ + public void setX509Subject(String value) { + set(10, value); + } + + /** + * Getter for public.certificate_detail.x509_subject. + */ + public String getX509Subject() { + return (String) get(10); + } + + /** + * Setter for public.certificate_detail.x509_issuer. + */ + public void setX509Issuer(String value) { + set(11, value); + } + + /** + * Getter for public.certificate_detail.x509_issuer. + */ + public String getX509Issuer() { + return (String) get(11); + } + + /** + * Setter for public.certificate_detail.x509_public_key. + */ + public void setX509PublicKey(String value) { + set(12, value); + } + + /** + * Getter for public.certificate_detail.x509_public_key. + */ + public String getX509PublicKey() { + return (String) get(12); + } + + /** + * Setter for public.certificate_detail.x509_sig_alg_name. + */ + public void setX509SigAlgName(String value) { + set(13, value); + } + + /** + * Getter for public.certificate_detail.x509_sig_alg_name. + */ + public String getX509SigAlgName() { + return (String) get(13); + } + + // ------------------------------------------------------------------------- + // Primary key information + // ------------------------------------------------------------------------- + + @Override + public Record1 key() { + return (Record1) super.key(); + } + + // ------------------------------------------------------------------------- + // Record14 type implementation + // ------------------------------------------------------------------------- + + @Override + public Row14 fieldsRow() { + return (Row14) super.fieldsRow(); + } + + @Override + public Row14 valuesRow() { + return (Row14) super.valuesRow(); + } + + @Override + public Field field1() { + return CertificateDetail.CERTIFICATE_DETAIL.ID; + } + + @Override + public Field field2() { + return CertificateDetail.CERTIFICATE_DETAIL.CERTIFICATE_APPLY_ID; + } + + @Override + public Field field3() { + return CertificateDetail.CERTIFICATE_DETAIL.WORK_START_TIME; + } + + @Override + public Field field4() { + return CertificateDetail.CERTIFICATE_DETAIL.WORK_END_TIME; + } + + @Override + public Field field5() { + return CertificateDetail.CERTIFICATE_DETAIL.STATUS; + } + + @Override + public Field field6() { + return CertificateDetail.CERTIFICATE_DETAIL.CERT_FILE_CONTENT; + } + + @Override + public Field field7() { + return CertificateDetail.CERTIFICATE_DETAIL.IS_UP_CHAIN; + } + + @Override + public Field field8() { + return CertificateDetail.CERTIFICATE_DETAIL.WEID; + } + + @Override + public Field field9() { + return CertificateDetail.CERTIFICATE_DETAIL.PRIVATE_KEY_HEX_STR; + } + + @Override + public Field field10() { + return CertificateDetail.CERTIFICATE_DETAIL.X509_SERIAL_NUMBER; + } + + @Override + public Field field11() { + return CertificateDetail.CERTIFICATE_DETAIL.X509_SUBJECT; + } + + @Override + public Field field12() { + return CertificateDetail.CERTIFICATE_DETAIL.X509_ISSUER; + } + + @Override + public Field field13() { + return CertificateDetail.CERTIFICATE_DETAIL.X509_PUBLIC_KEY; + } + + @Override + public Field field14() { + return CertificateDetail.CERTIFICATE_DETAIL.X509_SIG_ALG_NAME; + } + + @Override + public String component1() { + return getId(); + } + + @Override + public String component2() { + return getCertificateApplyId(); + } + + @Override + public LocalDateTime component3() { + return getWorkStartTime(); + } + + @Override + public LocalDateTime component4() { + return getWorkEndTime(); + } + + @Override + public Integer component5() { + return getStatus(); + } + + @Override + public String component6() { + return getCertFileContent(); + } + + @Override + public Integer component7() { + return getIsUpChain(); + } + + @Override + public String component8() { + return getWeid(); + } + + @Override + public String component9() { + return getPrivateKeyHexStr(); + } + + @Override + public String component10() { + return getX509SerialNumber(); + } + + @Override + public String component11() { + return getX509Subject(); + } + + @Override + public String component12() { + return getX509Issuer(); + } + + @Override + public String component13() { + return getX509PublicKey(); + } + + @Override + public String component14() { + return getX509SigAlgName(); + } + + @Override + public String value1() { + return getId(); + } + + @Override + public String value2() { + return getCertificateApplyId(); + } + + @Override + public LocalDateTime value3() { + return getWorkStartTime(); + } + + @Override + public LocalDateTime value4() { + return getWorkEndTime(); + } + + @Override + public Integer value5() { + return getStatus(); + } + + @Override + public String value6() { + return getCertFileContent(); + } + + @Override + public Integer value7() { + return getIsUpChain(); + } + + @Override + public String value8() { + return getWeid(); + } + + @Override + public String value9() { + return getPrivateKeyHexStr(); + } + + @Override + public String value10() { + return getX509SerialNumber(); + } + + @Override + public String value11() { + return getX509Subject(); + } + + @Override + public String value12() { + return getX509Issuer(); + } + + @Override + public String value13() { + return getX509PublicKey(); + } + + @Override + public String value14() { + return getX509SigAlgName(); + } + + @Override + public CertificateDetailRecord value1(String value) { + setId(value); + return this; + } + + @Override + public CertificateDetailRecord value2(String value) { + setCertificateApplyId(value); + return this; + } + + @Override + public CertificateDetailRecord value3(LocalDateTime value) { + setWorkStartTime(value); + return this; + } + + @Override + public CertificateDetailRecord value4(LocalDateTime value) { + setWorkEndTime(value); + return this; + } + + @Override + public CertificateDetailRecord value5(Integer value) { + setStatus(value); + return this; + } + + @Override + public CertificateDetailRecord value6(String value) { + setCertFileContent(value); + return this; + } + + @Override + public CertificateDetailRecord value7(Integer value) { + setIsUpChain(value); + return this; + } + + @Override + public CertificateDetailRecord value8(String value) { + setWeid(value); + return this; + } + + @Override + public CertificateDetailRecord value9(String value) { + setPrivateKeyHexStr(value); + return this; + } + + @Override + public CertificateDetailRecord value10(String value) { + setX509SerialNumber(value); + return this; + } + + @Override + public CertificateDetailRecord value11(String value) { + setX509Subject(value); + return this; + } + + @Override + public CertificateDetailRecord value12(String value) { + setX509Issuer(value); + return this; + } + + @Override + public CertificateDetailRecord value13(String value) { + setX509PublicKey(value); + return this; + } + + @Override + public CertificateDetailRecord value14(String value) { + setX509SigAlgName(value); + return this; + } + + @Override + public CertificateDetailRecord values(String value1, String value2, LocalDateTime value3, LocalDateTime value4, Integer value5, String value6, Integer value7, String value8, String value9, String value10, String value11, String value12, String value13, String value14) { + value1(value1); + value2(value2); + value3(value3); + value4(value4); + value5(value5); + value6(value6); + value7(value7); + value8(value8); + value9(value9); + value10(value10); + value11(value11); + value12(value12); + value13(value13); + value14(value14); + return this; + } + + // ------------------------------------------------------------------------- + // Constructors + // ------------------------------------------------------------------------- + + /** + * Create a detached CertificateDetailRecord + */ + public CertificateDetailRecord() { + super(CertificateDetail.CERTIFICATE_DETAIL); + } + + /** + * Create a detached, initialised CertificateDetailRecord + */ + public CertificateDetailRecord(String id, String certificateApplyId, LocalDateTime workStartTime, LocalDateTime workEndTime, Integer status, String certFileContent, Integer isUpChain, String weid, String privateKeyHexStr, String x509SerialNumber, String x509Subject, String x509Issuer, String x509PublicKey, String x509SigAlgName) { + super(CertificateDetail.CERTIFICATE_DETAIL); + + setId(id); + setCertificateApplyId(certificateApplyId); + setWorkStartTime(workStartTime); + setWorkEndTime(workEndTime); + setStatus(status); + setCertFileContent(certFileContent); + setIsUpChain(isUpChain); + setWeid(weid); + setPrivateKeyHexStr(privateKeyHexStr); + setX509SerialNumber(x509SerialNumber); + setX509Subject(x509Subject); + setX509Issuer(x509Issuer); + setX509PublicKey(x509PublicKey); + setX509SigAlgName(x509SigAlgName); + resetChangedOnNotNull(); + } + + /** + * Create a detached, initialised CertificateDetailRecord + */ + public CertificateDetailRecord(jj.tech.paolu.repository.jooq.tables.pojos.CertificateDetail value) { + super(CertificateDetail.CERTIFICATE_DETAIL); + + if (value != null) { + setId(value.getId()); + setCertificateApplyId(value.getCertificateApplyId()); + setWorkStartTime(value.getWorkStartTime()); + setWorkEndTime(value.getWorkEndTime()); + setStatus(value.getStatus()); + setCertFileContent(value.getCertFileContent()); + setIsUpChain(value.getIsUpChain()); + setWeid(value.getWeid()); + setPrivateKeyHexStr(value.getPrivateKeyHexStr()); + setX509SerialNumber(value.getX509SerialNumber()); + setX509Subject(value.getX509Subject()); + setX509Issuer(value.getX509Issuer()); + setX509PublicKey(value.getX509PublicKey()); + setX509SigAlgName(value.getX509SigAlgName()); + resetChangedOnNotNull(); + } + } +} diff --git a/src/main/java/jj/tech/paolu/repository/jooq/tables/records/DecryptLogRecord.java b/src/main/java/jj/tech/paolu/repository/jooq/tables/records/DecryptLogRecord.java new file mode 100644 index 0000000..53b2e33 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/jooq/tables/records/DecryptLogRecord.java @@ -0,0 +1,426 @@ +/* + * This file is generated by jOOQ. + */ +package jj.tech.paolu.repository.jooq.tables.records; + + +import java.time.LocalDateTime; + +import jj.tech.paolu.repository.jooq.tables.DecryptLog; + +import org.jooq.Field; +import org.jooq.Record1; +import org.jooq.Record9; +import org.jooq.Row9; +import org.jooq.impl.UpdatableRecordImpl; + + +/** + * 解密情况 + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +public class DecryptLogRecord extends UpdatableRecordImpl implements Record9 { + + private static final long serialVersionUID = 1L; + + /** + * Setter for public.decrypt_log.id. + */ + public void setId(String value) { + set(0, value); + } + + /** + * Getter for public.decrypt_log.id. + */ + public String getId() { + return (String) get(0); + } + + /** + * Setter for public.decrypt_log.weid. 申请人id + */ + public void setWeid(String value) { + set(1, value); + } + + /** + * Getter for public.decrypt_log.weid. 申请人id + */ + public String getWeid() { + return (String) get(1); + } + + /** + * Setter for public.decrypt_log.content_type. 档案类型(0件/1件内文件) + */ + public void setContentType(Integer value) { + set(2, value); + } + + /** + * Getter for public.decrypt_log.content_type. 档案类型(0件/1件内文件) + */ + public Integer getContentType() { + return (Integer) get(2); + } + + /** + * Setter for public.decrypt_log.content_id. 档案id + */ + public void setContentId(String value) { + set(3, value); + } + + /** + * Getter for public.decrypt_log.content_id. 档案id + */ + public String getContentId() { + return (String) get(3); + } + + /** + * Setter for public.decrypt_log.dec_time. 解密时间 + */ + public void setDecTime(LocalDateTime value) { + set(4, value); + } + + /** + * Getter for public.decrypt_log.dec_time. 解密时间 + */ + public LocalDateTime getDecTime() { + return (LocalDateTime) get(4); + } + + /** + * Setter for public.decrypt_log.location. 区域 + */ + public void setLocation(String value) { + set(5, value); + } + + /** + * Getter for public.decrypt_log.location. 区域 + */ + public String getLocation() { + return (String) get(5); + } + + /** + * Setter for public.decrypt_log.sm9hibeid. 秘钥id + */ + public void setSm9hibeid(String value) { + set(6, value); + } + + /** + * Getter for public.decrypt_log.sm9hibeid. 秘钥id + */ + public String getSm9hibeid() { + return (String) get(6); + } + + /** + * Setter for public.decrypt_log.status. 解密结果(0失败1成功) + */ + public void setStatus(Integer value) { + set(7, value); + } + + /** + * Getter for public.decrypt_log.status. 解密结果(0失败1成功) + */ + public Integer getStatus() { + return (Integer) get(7); + } + + /** + * Setter for public.decrypt_log.sign. 数字签名 + */ + public void setSign(String value) { + set(8, value); + } + + /** + * Getter for public.decrypt_log.sign. 数字签名 + */ + public String getSign() { + return (String) get(8); + } + + // ------------------------------------------------------------------------- + // Primary key information + // ------------------------------------------------------------------------- + + @Override + public Record1 key() { + return (Record1) super.key(); + } + + // ------------------------------------------------------------------------- + // Record9 type implementation + // ------------------------------------------------------------------------- + + @Override + public Row9 fieldsRow() { + return (Row9) super.fieldsRow(); + } + + @Override + public Row9 valuesRow() { + return (Row9) super.valuesRow(); + } + + @Override + public Field field1() { + return DecryptLog.DECRYPT_LOG.ID; + } + + @Override + public Field field2() { + return DecryptLog.DECRYPT_LOG.WEID; + } + + @Override + public Field field3() { + return DecryptLog.DECRYPT_LOG.CONTENT_TYPE; + } + + @Override + public Field field4() { + return DecryptLog.DECRYPT_LOG.CONTENT_ID; + } + + @Override + public Field field5() { + return DecryptLog.DECRYPT_LOG.DEC_TIME; + } + + @Override + public Field field6() { + return DecryptLog.DECRYPT_LOG.LOCATION; + } + + @Override + public Field field7() { + return DecryptLog.DECRYPT_LOG.SM9HIBEID; + } + + @Override + public Field field8() { + return DecryptLog.DECRYPT_LOG.STATUS; + } + + @Override + public Field field9() { + return DecryptLog.DECRYPT_LOG.SIGN; + } + + @Override + public String component1() { + return getId(); + } + + @Override + public String component2() { + return getWeid(); + } + + @Override + public Integer component3() { + return getContentType(); + } + + @Override + public String component4() { + return getContentId(); + } + + @Override + public LocalDateTime component5() { + return getDecTime(); + } + + @Override + public String component6() { + return getLocation(); + } + + @Override + public String component7() { + return getSm9hibeid(); + } + + @Override + public Integer component8() { + return getStatus(); + } + + @Override + public String component9() { + return getSign(); + } + + @Override + public String value1() { + return getId(); + } + + @Override + public String value2() { + return getWeid(); + } + + @Override + public Integer value3() { + return getContentType(); + } + + @Override + public String value4() { + return getContentId(); + } + + @Override + public LocalDateTime value5() { + return getDecTime(); + } + + @Override + public String value6() { + return getLocation(); + } + + @Override + public String value7() { + return getSm9hibeid(); + } + + @Override + public Integer value8() { + return getStatus(); + } + + @Override + public String value9() { + return getSign(); + } + + @Override + public DecryptLogRecord value1(String value) { + setId(value); + return this; + } + + @Override + public DecryptLogRecord value2(String value) { + setWeid(value); + return this; + } + + @Override + public DecryptLogRecord value3(Integer value) { + setContentType(value); + return this; + } + + @Override + public DecryptLogRecord value4(String value) { + setContentId(value); + return this; + } + + @Override + public DecryptLogRecord value5(LocalDateTime value) { + setDecTime(value); + return this; + } + + @Override + public DecryptLogRecord value6(String value) { + setLocation(value); + return this; + } + + @Override + public DecryptLogRecord value7(String value) { + setSm9hibeid(value); + return this; + } + + @Override + public DecryptLogRecord value8(Integer value) { + setStatus(value); + return this; + } + + @Override + public DecryptLogRecord value9(String value) { + setSign(value); + return this; + } + + @Override + public DecryptLogRecord values(String value1, String value2, Integer value3, String value4, LocalDateTime value5, String value6, String value7, Integer value8, String value9) { + value1(value1); + value2(value2); + value3(value3); + value4(value4); + value5(value5); + value6(value6); + value7(value7); + value8(value8); + value9(value9); + return this; + } + + // ------------------------------------------------------------------------- + // Constructors + // ------------------------------------------------------------------------- + + /** + * Create a detached DecryptLogRecord + */ + public DecryptLogRecord() { + super(DecryptLog.DECRYPT_LOG); + } + + /** + * Create a detached, initialised DecryptLogRecord + */ + public DecryptLogRecord(String id, String weid, Integer contentType, String contentId, LocalDateTime decTime, String location, String sm9hibeid, Integer status, String sign) { + super(DecryptLog.DECRYPT_LOG); + + setId(id); + setWeid(weid); + setContentType(contentType); + setContentId(contentId); + setDecTime(decTime); + setLocation(location); + setSm9hibeid(sm9hibeid); + setStatus(status); + setSign(sign); + resetChangedOnNotNull(); + } + + /** + * Create a detached, initialised DecryptLogRecord + */ + public DecryptLogRecord(jj.tech.paolu.repository.jooq.tables.pojos.DecryptLog value) { + super(DecryptLog.DECRYPT_LOG); + + if (value != null) { + setId(value.getId()); + setWeid(value.getWeid()); + setContentType(value.getContentType()); + setContentId(value.getContentId()); + setDecTime(value.getDecTime()); + setLocation(value.getLocation()); + setSm9hibeid(value.getSm9hibeid()); + setStatus(value.getStatus()); + setSign(value.getSign()); + resetChangedOnNotNull(); + } + } +} diff --git a/src/main/java/jj/tech/paolu/repository/jooq/tables/records/DownloadLogRecord.java b/src/main/java/jj/tech/paolu/repository/jooq/tables/records/DownloadLogRecord.java new file mode 100644 index 0000000..82ef3bf --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/jooq/tables/records/DownloadLogRecord.java @@ -0,0 +1,354 @@ +/* + * This file is generated by jOOQ. + */ +package jj.tech.paolu.repository.jooq.tables.records; + + +import java.time.LocalDateTime; + +import jj.tech.paolu.repository.jooq.tables.DownloadLog; + +import org.jooq.Field; +import org.jooq.Record1; +import org.jooq.Record7; +import org.jooq.Row7; +import org.jooq.impl.UpdatableRecordImpl; + + +/** + * 下载行为记录 + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +public class DownloadLogRecord extends UpdatableRecordImpl implements Record7 { + + private static final long serialVersionUID = 1L; + + /** + * Setter for public.download_log.id. + */ + public void setId(String value) { + set(0, value); + } + + /** + * Getter for public.download_log.id. + */ + public String getId() { + return (String) get(0); + } + + /** + * Setter for public.download_log.weid. weid + */ + public void setWeid(String value) { + set(1, value); + } + + /** + * Getter for public.download_log.weid. weid + */ + public String getWeid() { + return (String) get(1); + } + + /** + * Setter for public.download_log.downloadtime. 下载时间 + */ + public void setDownloadtime(LocalDateTime value) { + set(2, value); + } + + /** + * Getter for public.download_log.downloadtime. 下载时间 + */ + public LocalDateTime getDownloadtime() { + return (LocalDateTime) get(2); + } + + /** + * Setter for public.download_log.filenum. 下载文件数 + */ + public void setFilenum(Integer value) { + set(3, value); + } + + /** + * Getter for public.download_log.filenum. 下载文件数 + */ + public Integer getFilenum() { + return (Integer) get(3); + } + + /** + * Setter for public.download_log.content_type. + * 下载类型(1文件包/2单个附件(SyncFile)/3单个件(DirecotryFile)) + */ + public void setContentType(Integer value) { + set(4, value); + } + + /** + * Getter for public.download_log.content_type. + * 下载类型(1文件包/2单个附件(SyncFile)/3单个件(DirecotryFile)) + */ + public Integer getContentType() { + return (Integer) get(4); + } + + /** + * Setter for public.download_log.contentid. + * 下载记录ID(如果是单个文件,就取ID,如果是包,就是包内包含的文件的ID列表) + */ + public void setContentid(String value) { + set(5, value); + } + + /** + * Getter for public.download_log.contentid. + * 下载记录ID(如果是单个文件,就取ID,如果是包,就是包内包含的文件的ID列表) + */ + public String getContentid() { + return (String) get(5); + } + + /** + * Setter for public.download_log.sign. 数字签名 + */ + public void setSign(String value) { + set(6, value); + } + + /** + * Getter for public.download_log.sign. 数字签名 + */ + public String getSign() { + return (String) get(6); + } + + // ------------------------------------------------------------------------- + // Primary key information + // ------------------------------------------------------------------------- + + @Override + public Record1 key() { + return (Record1) super.key(); + } + + // ------------------------------------------------------------------------- + // Record7 type implementation + // ------------------------------------------------------------------------- + + @Override + public Row7 fieldsRow() { + return (Row7) super.fieldsRow(); + } + + @Override + public Row7 valuesRow() { + return (Row7) super.valuesRow(); + } + + @Override + public Field field1() { + return DownloadLog.DOWNLOAD_LOG.ID; + } + + @Override + public Field field2() { + return DownloadLog.DOWNLOAD_LOG.WEID; + } + + @Override + public Field field3() { + return DownloadLog.DOWNLOAD_LOG.DOWNLOADTIME; + } + + @Override + public Field field4() { + return DownloadLog.DOWNLOAD_LOG.FILENUM; + } + + @Override + public Field field5() { + return DownloadLog.DOWNLOAD_LOG.CONTENT_TYPE; + } + + @Override + public Field field6() { + return DownloadLog.DOWNLOAD_LOG.CONTENTID; + } + + @Override + public Field field7() { + return DownloadLog.DOWNLOAD_LOG.SIGN; + } + + @Override + public String component1() { + return getId(); + } + + @Override + public String component2() { + return getWeid(); + } + + @Override + public LocalDateTime component3() { + return getDownloadtime(); + } + + @Override + public Integer component4() { + return getFilenum(); + } + + @Override + public Integer component5() { + return getContentType(); + } + + @Override + public String component6() { + return getContentid(); + } + + @Override + public String component7() { + return getSign(); + } + + @Override + public String value1() { + return getId(); + } + + @Override + public String value2() { + return getWeid(); + } + + @Override + public LocalDateTime value3() { + return getDownloadtime(); + } + + @Override + public Integer value4() { + return getFilenum(); + } + + @Override + public Integer value5() { + return getContentType(); + } + + @Override + public String value6() { + return getContentid(); + } + + @Override + public String value7() { + return getSign(); + } + + @Override + public DownloadLogRecord value1(String value) { + setId(value); + return this; + } + + @Override + public DownloadLogRecord value2(String value) { + setWeid(value); + return this; + } + + @Override + public DownloadLogRecord value3(LocalDateTime value) { + setDownloadtime(value); + return this; + } + + @Override + public DownloadLogRecord value4(Integer value) { + setFilenum(value); + return this; + } + + @Override + public DownloadLogRecord value5(Integer value) { + setContentType(value); + return this; + } + + @Override + public DownloadLogRecord value6(String value) { + setContentid(value); + return this; + } + + @Override + public DownloadLogRecord value7(String value) { + setSign(value); + return this; + } + + @Override + public DownloadLogRecord values(String value1, String value2, LocalDateTime value3, Integer value4, Integer value5, String value6, String value7) { + value1(value1); + value2(value2); + value3(value3); + value4(value4); + value5(value5); + value6(value6); + value7(value7); + return this; + } + + // ------------------------------------------------------------------------- + // Constructors + // ------------------------------------------------------------------------- + + /** + * Create a detached DownloadLogRecord + */ + public DownloadLogRecord() { + super(DownloadLog.DOWNLOAD_LOG); + } + + /** + * Create a detached, initialised DownloadLogRecord + */ + public DownloadLogRecord(String id, String weid, LocalDateTime downloadtime, Integer filenum, Integer contentType, String contentid, String sign) { + super(DownloadLog.DOWNLOAD_LOG); + + setId(id); + setWeid(weid); + setDownloadtime(downloadtime); + setFilenum(filenum); + setContentType(contentType); + setContentid(contentid); + setSign(sign); + resetChangedOnNotNull(); + } + + /** + * Create a detached, initialised DownloadLogRecord + */ + public DownloadLogRecord(jj.tech.paolu.repository.jooq.tables.pojos.DownloadLog value) { + super(DownloadLog.DOWNLOAD_LOG); + + if (value != null) { + setId(value.getId()); + setWeid(value.getWeid()); + setDownloadtime(value.getDownloadtime()); + setFilenum(value.getFilenum()); + setContentType(value.getContentType()); + setContentid(value.getContentid()); + setSign(value.getSign()); + resetChangedOnNotNull(); + } + } +} diff --git a/src/main/java/jj/tech/paolu/repository/jooq/tables/records/FilesApplyCheckRecordRecord.java b/src/main/java/jj/tech/paolu/repository/jooq/tables/records/FilesApplyCheckRecordRecord.java new file mode 100644 index 0000000..61518e3 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/jooq/tables/records/FilesApplyCheckRecordRecord.java @@ -0,0 +1,664 @@ +/* + * This file is generated by jOOQ. + */ +package jj.tech.paolu.repository.jooq.tables.records; + + +import java.time.LocalDateTime; + +import jj.tech.paolu.repository.jooq.tables.FilesApplyCheckRecord; + +import org.jooq.Field; +import org.jooq.Record1; +import org.jooq.Record15; +import org.jooq.Row15; +import org.jooq.impl.UpdatableRecordImpl; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +public class FilesApplyCheckRecordRecord extends UpdatableRecordImpl implements Record15 { + + private static final long serialVersionUID = 1L; + + /** + * Setter for public.files_apply_check_record.id. + */ + public void setId(String value) { + set(0, value); + } + + /** + * Getter for public.files_apply_check_record.id. + */ + public String getId() { + return (String) get(0); + } + + /** + * Setter for public.files_apply_check_record.files_apply_id. + */ + public void setFilesApplyId(String value) { + set(1, value); + } + + /** + * Getter for public.files_apply_check_record.files_apply_id. + */ + public String getFilesApplyId() { + return (String) get(1); + } + + /** + * Setter for + * public.files_apply_check_record.is_apply_provider. + */ + public void setIsApplyProvider(Integer value) { + set(2, value); + } + + /** + * Getter for + * public.files_apply_check_record.is_apply_provider. + */ + public Integer getIsApplyProvider() { + return (Integer) get(2); + } + + /** + * Setter for public.files_apply_check_record.check_user_id. + */ + public void setCheckUserId(String value) { + set(3, value); + } + + /** + * Getter for public.files_apply_check_record.check_user_id. + */ + public String getCheckUserId() { + return (String) get(3); + } + + /** + * Setter for public.files_apply_check_record.check_user_name. + */ + public void setCheckUserName(String value) { + set(4, value); + } + + /** + * Getter for public.files_apply_check_record.check_user_name. + */ + public String getCheckUserName() { + return (String) get(4); + } + + /** + * Setter for public.files_apply_check_record.check_org_id. + */ + public void setCheckOrgId(String value) { + set(5, value); + } + + /** + * Getter for public.files_apply_check_record.check_org_id. + */ + public String getCheckOrgId() { + return (String) get(5); + } + + /** + * Setter for public.files_apply_check_record.check_org_name. + */ + public void setCheckOrgName(String value) { + set(6, value); + } + + /** + * Getter for public.files_apply_check_record.check_org_name. + */ + public String getCheckOrgName() { + return (String) get(6); + } + + /** + * Setter for + * public.files_apply_check_record.next_check_org_id. + */ + public void setNextCheckOrgId(String value) { + set(7, value); + } + + /** + * Getter for + * public.files_apply_check_record.next_check_org_id. + */ + public String getNextCheckOrgId() { + return (String) get(7); + } + + /** + * Setter for + * public.files_apply_check_record.next_check_org_name. + */ + public void setNextCheckOrgName(String value) { + set(8, value); + } + + /** + * Getter for + * public.files_apply_check_record.next_check_org_name. + */ + public String getNextCheckOrgName() { + return (String) get(8); + } + + /** + * Setter for public.files_apply_check_record.check_describe. + */ + public void setCheckDescribe(String value) { + set(9, value); + } + + /** + * Getter for public.files_apply_check_record.check_describe. + */ + public String getCheckDescribe() { + return (String) get(9); + } + + /** + * Setter for public.files_apply_check_record.check_status. + */ + public void setCheckStatus(Integer value) { + set(10, value); + } + + /** + * Getter for public.files_apply_check_record.check_status. + */ + public Integer getCheckStatus() { + return (Integer) get(10); + } + + /** + * Setter for public.files_apply_check_record.check_time. + */ + public void setCheckTime(LocalDateTime value) { + set(11, value); + } + + /** + * Getter for public.files_apply_check_record.check_time. + */ + public LocalDateTime getCheckTime() { + return (LocalDateTime) get(11); + } + + /** + * Setter for + * public.files_apply_check_record.provider_next_check_role_sign_id. + */ + public void setProviderNextCheckRoleSignId(String value) { + set(12, value); + } + + /** + * Getter for + * public.files_apply_check_record.provider_next_check_role_sign_id. + */ + public String getProviderNextCheckRoleSignId() { + return (String) get(12); + } + + /** + * Setter for + * public.files_apply_check_record.provider_next_check_role_sign_name. + */ + public void setProviderNextCheckRoleSignName(String value) { + set(13, value); + } + + /** + * Getter for + * public.files_apply_check_record.provider_next_check_role_sign_name. + */ + public String getProviderNextCheckRoleSignName() { + return (String) get(13); + } + + /** + * Setter for public.files_apply_check_record.sign. + */ + public void setSign(String value) { + set(14, value); + } + + /** + * Getter for public.files_apply_check_record.sign. + */ + public String getSign() { + return (String) get(14); + } + + // ------------------------------------------------------------------------- + // Primary key information + // ------------------------------------------------------------------------- + + @Override + public Record1 key() { + return (Record1) super.key(); + } + + // ------------------------------------------------------------------------- + // Record15 type implementation + // ------------------------------------------------------------------------- + + @Override + public Row15 fieldsRow() { + return (Row15) super.fieldsRow(); + } + + @Override + public Row15 valuesRow() { + return (Row15) super.valuesRow(); + } + + @Override + public Field field1() { + return FilesApplyCheckRecord.FILES_APPLY_CHECK_RECORD.ID; + } + + @Override + public Field field2() { + return FilesApplyCheckRecord.FILES_APPLY_CHECK_RECORD.FILES_APPLY_ID; + } + + @Override + public Field field3() { + return FilesApplyCheckRecord.FILES_APPLY_CHECK_RECORD.IS_APPLY_PROVIDER; + } + + @Override + public Field field4() { + return FilesApplyCheckRecord.FILES_APPLY_CHECK_RECORD.CHECK_USER_ID; + } + + @Override + public Field field5() { + return FilesApplyCheckRecord.FILES_APPLY_CHECK_RECORD.CHECK_USER_NAME; + } + + @Override + public Field field6() { + return FilesApplyCheckRecord.FILES_APPLY_CHECK_RECORD.CHECK_ORG_ID; + } + + @Override + public Field field7() { + return FilesApplyCheckRecord.FILES_APPLY_CHECK_RECORD.CHECK_ORG_NAME; + } + + @Override + public Field field8() { + return FilesApplyCheckRecord.FILES_APPLY_CHECK_RECORD.NEXT_CHECK_ORG_ID; + } + + @Override + public Field field9() { + return FilesApplyCheckRecord.FILES_APPLY_CHECK_RECORD.NEXT_CHECK_ORG_NAME; + } + + @Override + public Field field10() { + return FilesApplyCheckRecord.FILES_APPLY_CHECK_RECORD.CHECK_DESCRIBE; + } + + @Override + public Field field11() { + return FilesApplyCheckRecord.FILES_APPLY_CHECK_RECORD.CHECK_STATUS; + } + + @Override + public Field field12() { + return FilesApplyCheckRecord.FILES_APPLY_CHECK_RECORD.CHECK_TIME; + } + + @Override + public Field field13() { + return FilesApplyCheckRecord.FILES_APPLY_CHECK_RECORD.PROVIDER_NEXT_CHECK_ROLE_SIGN_ID; + } + + @Override + public Field field14() { + return FilesApplyCheckRecord.FILES_APPLY_CHECK_RECORD.PROVIDER_NEXT_CHECK_ROLE_SIGN_NAME; + } + + @Override + public Field field15() { + return FilesApplyCheckRecord.FILES_APPLY_CHECK_RECORD.SIGN; + } + + @Override + public String component1() { + return getId(); + } + + @Override + public String component2() { + return getFilesApplyId(); + } + + @Override + public Integer component3() { + return getIsApplyProvider(); + } + + @Override + public String component4() { + return getCheckUserId(); + } + + @Override + public String component5() { + return getCheckUserName(); + } + + @Override + public String component6() { + return getCheckOrgId(); + } + + @Override + public String component7() { + return getCheckOrgName(); + } + + @Override + public String component8() { + return getNextCheckOrgId(); + } + + @Override + public String component9() { + return getNextCheckOrgName(); + } + + @Override + public String component10() { + return getCheckDescribe(); + } + + @Override + public Integer component11() { + return getCheckStatus(); + } + + @Override + public LocalDateTime component12() { + return getCheckTime(); + } + + @Override + public String component13() { + return getProviderNextCheckRoleSignId(); + } + + @Override + public String component14() { + return getProviderNextCheckRoleSignName(); + } + + @Override + public String component15() { + return getSign(); + } + + @Override + public String value1() { + return getId(); + } + + @Override + public String value2() { + return getFilesApplyId(); + } + + @Override + public Integer value3() { + return getIsApplyProvider(); + } + + @Override + public String value4() { + return getCheckUserId(); + } + + @Override + public String value5() { + return getCheckUserName(); + } + + @Override + public String value6() { + return getCheckOrgId(); + } + + @Override + public String value7() { + return getCheckOrgName(); + } + + @Override + public String value8() { + return getNextCheckOrgId(); + } + + @Override + public String value9() { + return getNextCheckOrgName(); + } + + @Override + public String value10() { + return getCheckDescribe(); + } + + @Override + public Integer value11() { + return getCheckStatus(); + } + + @Override + public LocalDateTime value12() { + return getCheckTime(); + } + + @Override + public String value13() { + return getProviderNextCheckRoleSignId(); + } + + @Override + public String value14() { + return getProviderNextCheckRoleSignName(); + } + + @Override + public String value15() { + return getSign(); + } + + @Override + public FilesApplyCheckRecordRecord value1(String value) { + setId(value); + return this; + } + + @Override + public FilesApplyCheckRecordRecord value2(String value) { + setFilesApplyId(value); + return this; + } + + @Override + public FilesApplyCheckRecordRecord value3(Integer value) { + setIsApplyProvider(value); + return this; + } + + @Override + public FilesApplyCheckRecordRecord value4(String value) { + setCheckUserId(value); + return this; + } + + @Override + public FilesApplyCheckRecordRecord value5(String value) { + setCheckUserName(value); + return this; + } + + @Override + public FilesApplyCheckRecordRecord value6(String value) { + setCheckOrgId(value); + return this; + } + + @Override + public FilesApplyCheckRecordRecord value7(String value) { + setCheckOrgName(value); + return this; + } + + @Override + public FilesApplyCheckRecordRecord value8(String value) { + setNextCheckOrgId(value); + return this; + } + + @Override + public FilesApplyCheckRecordRecord value9(String value) { + setNextCheckOrgName(value); + return this; + } + + @Override + public FilesApplyCheckRecordRecord value10(String value) { + setCheckDescribe(value); + return this; + } + + @Override + public FilesApplyCheckRecordRecord value11(Integer value) { + setCheckStatus(value); + return this; + } + + @Override + public FilesApplyCheckRecordRecord value12(LocalDateTime value) { + setCheckTime(value); + return this; + } + + @Override + public FilesApplyCheckRecordRecord value13(String value) { + setProviderNextCheckRoleSignId(value); + return this; + } + + @Override + public FilesApplyCheckRecordRecord value14(String value) { + setProviderNextCheckRoleSignName(value); + return this; + } + + @Override + public FilesApplyCheckRecordRecord value15(String value) { + setSign(value); + return this; + } + + @Override + public FilesApplyCheckRecordRecord values(String value1, String value2, Integer value3, String value4, String value5, String value6, String value7, String value8, String value9, String value10, Integer value11, LocalDateTime value12, String value13, String value14, String value15) { + value1(value1); + value2(value2); + value3(value3); + value4(value4); + value5(value5); + value6(value6); + value7(value7); + value8(value8); + value9(value9); + value10(value10); + value11(value11); + value12(value12); + value13(value13); + value14(value14); + value15(value15); + return this; + } + + // ------------------------------------------------------------------------- + // Constructors + // ------------------------------------------------------------------------- + + /** + * Create a detached FilesApplyCheckRecordRecord + */ + public FilesApplyCheckRecordRecord() { + super(FilesApplyCheckRecord.FILES_APPLY_CHECK_RECORD); + } + + /** + * Create a detached, initialised FilesApplyCheckRecordRecord + */ + public FilesApplyCheckRecordRecord(String id, String filesApplyId, Integer isApplyProvider, String checkUserId, String checkUserName, String checkOrgId, String checkOrgName, String nextCheckOrgId, String nextCheckOrgName, String checkDescribe, Integer checkStatus, LocalDateTime checkTime, String providerNextCheckRoleSignId, String providerNextCheckRoleSignName, String sign) { + super(FilesApplyCheckRecord.FILES_APPLY_CHECK_RECORD); + + setId(id); + setFilesApplyId(filesApplyId); + setIsApplyProvider(isApplyProvider); + setCheckUserId(checkUserId); + setCheckUserName(checkUserName); + setCheckOrgId(checkOrgId); + setCheckOrgName(checkOrgName); + setNextCheckOrgId(nextCheckOrgId); + setNextCheckOrgName(nextCheckOrgName); + setCheckDescribe(checkDescribe); + setCheckStatus(checkStatus); + setCheckTime(checkTime); + setProviderNextCheckRoleSignId(providerNextCheckRoleSignId); + setProviderNextCheckRoleSignName(providerNextCheckRoleSignName); + setSign(sign); + resetChangedOnNotNull(); + } + + /** + * Create a detached, initialised FilesApplyCheckRecordRecord + */ + public FilesApplyCheckRecordRecord(jj.tech.paolu.repository.jooq.tables.pojos.FilesApplyCheckRecord value) { + super(FilesApplyCheckRecord.FILES_APPLY_CHECK_RECORD); + + if (value != null) { + setId(value.getId()); + setFilesApplyId(value.getFilesApplyId()); + setIsApplyProvider(value.getIsApplyProvider()); + setCheckUserId(value.getCheckUserId()); + setCheckUserName(value.getCheckUserName()); + setCheckOrgId(value.getCheckOrgId()); + setCheckOrgName(value.getCheckOrgName()); + setNextCheckOrgId(value.getNextCheckOrgId()); + setNextCheckOrgName(value.getNextCheckOrgName()); + setCheckDescribe(value.getCheckDescribe()); + setCheckStatus(value.getCheckStatus()); + setCheckTime(value.getCheckTime()); + setProviderNextCheckRoleSignId(value.getProviderNextCheckRoleSignId()); + setProviderNextCheckRoleSignName(value.getProviderNextCheckRoleSignName()); + setSign(value.getSign()); + resetChangedOnNotNull(); + } + } +} diff --git a/src/main/java/jj/tech/paolu/repository/jooq/tables/records/FilesApplyDirectoryDocsRecord.java b/src/main/java/jj/tech/paolu/repository/jooq/tables/records/FilesApplyDirectoryDocsRecord.java new file mode 100644 index 0000000..6a1774f --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/jooq/tables/records/FilesApplyDirectoryDocsRecord.java @@ -0,0 +1,432 @@ +/* + * This file is generated by jOOQ. + */ +package jj.tech.paolu.repository.jooq.tables.records; + + +import jj.tech.paolu.repository.jooq.tables.FilesApplyDirectoryDocs; + +import org.jooq.Record1; +import org.jooq.impl.UpdatableRecordImpl; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +public class FilesApplyDirectoryDocsRecord extends UpdatableRecordImpl { + + private static final long serialVersionUID = 1L; + + /** + * Setter for public.files_apply_directory_docs.id. + */ + public void setId(String value) { + set(0, value); + } + + /** + * Getter for public.files_apply_directory_docs.id. + */ + public String getId() { + return (String) get(0); + } + + /** + * Setter for public.files_apply_directory_docs.files_apply_id. + */ + public void setFilesApplyId(String value) { + set(1, value); + } + + /** + * Getter for public.files_apply_directory_docs.files_apply_id. + */ + public String getFilesApplyId() { + return (String) get(1); + } + + /** + * Setter for + * public.files_apply_directory_docs.directory_file_id. + */ + public void setDirectoryFileId(String value) { + set(2, value); + } + + /** + * Getter for + * public.files_apply_directory_docs.directory_file_id. + */ + public String getDirectoryFileId() { + return (String) get(2); + } + + /** + * Setter for + * public.files_apply_directory_docs.directory_file_p_id. + */ + public void setDirectoryFilePId(String value) { + set(3, value); + } + + /** + * Getter for + * public.files_apply_directory_docs.directory_file_p_id. + */ + public String getDirectoryFilePId() { + return (String) get(3); + } + + /** + * Setter for public.files_apply_directory_docs.filesuper. + */ + public void setFilesuper(String value) { + set(4, value); + } + + /** + * Getter for public.files_apply_directory_docs.filesuper. + */ + public String getFilesuper() { + return (String) get(4); + } + + /** + * Setter for public.files_apply_directory_docs.filecount. + */ + public void setFilecount(Integer value) { + set(5, value); + } + + /** + * Getter for public.files_apply_directory_docs.filecount. + */ + public Integer getFilecount() { + return (Integer) get(5); + } + + /** + * Setter for public.files_apply_directory_docs.dutyperson. + */ + public void setDutyperson(String value) { + set(6, value); + } + + /** + * Getter for public.files_apply_directory_docs.dutyperson. + */ + public String getDutyperson() { + return (String) get(6); + } + + /** + * Setter for public.files_apply_directory_docs.eweavedate. + */ + public void setEweavedate(String value) { + set(7, value); + } + + /** + * Getter for public.files_apply_directory_docs.eweavedate. + */ + public String getEweavedate() { + return (String) get(7); + } + + /** + * Setter for public.files_apply_directory_docs.filepage. + */ + public void setFilepage(Integer value) { + set(8, value); + } + + /** + * Getter for public.files_apply_directory_docs.filepage. + */ + public Integer getFilepage() { + return (Integer) get(8); + } + + /** + * Setter for public.files_apply_directory_docs.sortorder. + */ + public void setSortorder(String value) { + set(9, value); + } + + /** + * Getter for public.files_apply_directory_docs.sortorder. + */ + public String getSortorder() { + return (String) get(9); + } + + /** + * Setter for public.files_apply_directory_docs.bpeg. + */ + public void setBpeg(String value) { + set(10, value); + } + + /** + * Getter for public.files_apply_directory_docs.bpeg. + */ + public String getBpeg() { + return (String) get(10); + } + + /** + * Setter for public.files_apply_directory_docs.epeg. + */ + public void setEpeg(String value) { + set(11, value); + } + + /** + * Getter for public.files_apply_directory_docs.epeg. + */ + public String getEpeg() { + return (String) get(11); + } + + /** + * Setter for public.files_apply_directory_docs.filenum. + */ + public void setFilenum(String value) { + set(12, value); + } + + /** + * Getter for public.files_apply_directory_docs.filenum. + */ + public String getFilenum() { + return (String) get(12); + } + + /** + * Setter for public.files_apply_directory_docs.remark. + */ + public void setRemark(String value) { + set(13, value); + } + + /** + * Getter for public.files_apply_directory_docs.remark. + */ + public String getRemark() { + return (String) get(13); + } + + /** + * Setter for public.files_apply_directory_docs.recordnum. + */ + public void setRecordnum(String value) { + set(14, value); + } + + /** + * Getter for public.files_apply_directory_docs.recordnum. + */ + public String getRecordnum() { + return (String) get(14); + } + + /** + * Setter for public.files_apply_directory_docs.piecenumber. + */ + public void setPiecenumber(String value) { + set(15, value); + } + + /** + * Getter for public.files_apply_directory_docs.piecenumber. + */ + public String getPiecenumber() { + return (String) get(15); + } + + /** + * Setter for public.files_apply_directory_docs.adddate. + */ + public void setAdddate(String value) { + set(16, value); + } + + /** + * Getter for public.files_apply_directory_docs.adddate. + */ + public String getAdddate() { + return (String) get(16); + } + + /** + * Setter for public.files_apply_directory_docs.editdate. + */ + public void setEditdate(String value) { + set(17, value); + } + + /** + * Getter for public.files_apply_directory_docs.editdate. + */ + public String getEditdate() { + return (String) get(17); + } + + /** + * Setter for public.files_apply_directory_docs.time_stamp. + */ + public void setTimeStamp(String value) { + set(18, value); + } + + /** + * Getter for public.files_apply_directory_docs.time_stamp. + */ + public String getTimeStamp() { + return (String) get(18); + } + + /** + * Setter for public.files_apply_directory_docs.isdel. + */ + public void setIsdel(Integer value) { + set(19, value); + } + + /** + * Getter for public.files_apply_directory_docs.isdel. + */ + public Integer getIsdel() { + return (Integer) get(19); + } + + /** + * Setter for public.files_apply_directory_docs.catalogpdfurl. + */ + public void setCatalogpdfurl(String value) { + set(20, value); + } + + /** + * Getter for public.files_apply_directory_docs.catalogpdfurl. + */ + public String getCatalogpdfurl() { + return (String) get(20); + } + + /** + * Setter for public.files_apply_directory_docs.signtag. + */ + public void setSigntag(String value) { + set(21, value); + } + + /** + * Getter for public.files_apply_directory_docs.signtag. + */ + public String getSigntag() { + return (String) get(21); + } + + /** + * Setter for public.files_apply_directory_docs.collecttag. + */ + public void setCollecttag(String value) { + set(22, value); + } + + /** + * Getter for public.files_apply_directory_docs.collecttag. + */ + public String getCollecttag() { + return (String) get(22); + } + + // ------------------------------------------------------------------------- + // Primary key information + // ------------------------------------------------------------------------- + + @Override + public Record1 key() { + return (Record1) super.key(); + } + + // ------------------------------------------------------------------------- + // Constructors + // ------------------------------------------------------------------------- + + /** + * Create a detached FilesApplyDirectoryDocsRecord + */ + public FilesApplyDirectoryDocsRecord() { + super(FilesApplyDirectoryDocs.FILES_APPLY_DIRECTORY_DOCS); + } + + /** + * Create a detached, initialised FilesApplyDirectoryDocsRecord + */ + public FilesApplyDirectoryDocsRecord(String id, String filesApplyId, String directoryFileId, String directoryFilePId, String filesuper, Integer filecount, String dutyperson, String eweavedate, Integer filepage, String sortorder, String bpeg, String epeg, String filenum, String remark, String recordnum, String piecenumber, String adddate, String editdate, String timeStamp, Integer isdel, String catalogpdfurl, String signtag, String collecttag) { + super(FilesApplyDirectoryDocs.FILES_APPLY_DIRECTORY_DOCS); + + setId(id); + setFilesApplyId(filesApplyId); + setDirectoryFileId(directoryFileId); + setDirectoryFilePId(directoryFilePId); + setFilesuper(filesuper); + setFilecount(filecount); + setDutyperson(dutyperson); + setEweavedate(eweavedate); + setFilepage(filepage); + setSortorder(sortorder); + setBpeg(bpeg); + setEpeg(epeg); + setFilenum(filenum); + setRemark(remark); + setRecordnum(recordnum); + setPiecenumber(piecenumber); + setAdddate(adddate); + setEditdate(editdate); + setTimeStamp(timeStamp); + setIsdel(isdel); + setCatalogpdfurl(catalogpdfurl); + setSigntag(signtag); + setCollecttag(collecttag); + resetChangedOnNotNull(); + } + + /** + * Create a detached, initialised FilesApplyDirectoryDocsRecord + */ + public FilesApplyDirectoryDocsRecord(jj.tech.paolu.repository.jooq.tables.pojos.FilesApplyDirectoryDocs value) { + super(FilesApplyDirectoryDocs.FILES_APPLY_DIRECTORY_DOCS); + + if (value != null) { + setId(value.getId()); + setFilesApplyId(value.getFilesApplyId()); + setDirectoryFileId(value.getDirectoryFileId()); + setDirectoryFilePId(value.getDirectoryFilePId()); + setFilesuper(value.getFilesuper()); + setFilecount(value.getFilecount()); + setDutyperson(value.getDutyperson()); + setEweavedate(value.getEweavedate()); + setFilepage(value.getFilepage()); + setSortorder(value.getSortorder()); + setBpeg(value.getBpeg()); + setEpeg(value.getEpeg()); + setFilenum(value.getFilenum()); + setRemark(value.getRemark()); + setRecordnum(value.getRecordnum()); + setPiecenumber(value.getPiecenumber()); + setAdddate(value.getAdddate()); + setEditdate(value.getEditdate()); + setTimeStamp(value.getTimeStamp()); + setIsdel(value.getIsdel()); + setCatalogpdfurl(value.getCatalogpdfurl()); + setSigntag(value.getSigntag()); + setCollecttag(value.getCollecttag()); + resetChangedOnNotNull(); + } + } +} diff --git a/src/main/java/jj/tech/paolu/repository/jooq/tables/records/FilesApplyDocsRecord.java b/src/main/java/jj/tech/paolu/repository/jooq/tables/records/FilesApplyDocsRecord.java new file mode 100644 index 0000000..8265738 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/jooq/tables/records/FilesApplyDocsRecord.java @@ -0,0 +1,880 @@ +/* + * This file is generated by jOOQ. + */ +package jj.tech.paolu.repository.jooq.tables.records; + + +import jj.tech.paolu.repository.jooq.tables.FilesApplyDocs; + +import org.jooq.Field; +import org.jooq.Record1; +import org.jooq.Record21; +import org.jooq.Row21; +import org.jooq.impl.UpdatableRecordImpl; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +public class FilesApplyDocsRecord extends UpdatableRecordImpl implements Record21 { + + private static final long serialVersionUID = 1L; + + /** + * Setter for public.files_apply_docs.id. + */ + public void setId(String value) { + set(0, value); + } + + /** + * Getter for public.files_apply_docs.id. + */ + public String getId() { + return (String) get(0); + } + + /** + * Setter for public.files_apply_docs.files_apply_id. + */ + public void setFilesApplyId(String value) { + set(1, value); + } + + /** + * Getter for public.files_apply_docs.files_apply_id. + */ + public String getFilesApplyId() { + return (String) get(1); + } + + /** + * Setter for public.files_apply_docs.syn_file_id. + */ + public void setSynFileId(String value) { + set(2, value); + } + + /** + * Getter for public.files_apply_docs.syn_file_id. + */ + public String getSynFileId() { + return (String) get(2); + } + + /** + * Setter for public.files_apply_docs.syn_file_p_id. + */ + public void setSynFilePId(String value) { + set(3, value); + } + + /** + * Getter for public.files_apply_docs.syn_file_p_id. + */ + public String getSynFilePId() { + return (String) get(3); + } + + /** + * Setter for public.files_apply_docs.tablenumber. + */ + public void setTablenumber(String value) { + set(4, value); + } + + /** + * Getter for public.files_apply_docs.tablenumber. + */ + public String getTablenumber() { + return (String) get(4); + } + + /** + * Setter for public.files_apply_docs.annexname. + */ + public void setAnnexname(String value) { + set(5, value); + } + + /** + * Getter for public.files_apply_docs.annexname. + */ + public String getAnnexname() { + return (String) get(5); + } + + /** + * Setter for public.files_apply_docs.projectname. + */ + public void setProjectname(String value) { + set(6, value); + } + + /** + * Getter for public.files_apply_docs.projectname. + */ + public String getProjectname() { + return (String) get(6); + } + + /** + * Setter for public.files_apply_docs.eweavedate. + */ + public void setEweavedate(String value) { + set(7, value); + } + + /** + * Getter for public.files_apply_docs.eweavedate. + */ + public String getEweavedate() { + return (String) get(7); + } + + /** + * Setter for public.files_apply_docs.checkdate. + */ + public void setCheckdate(String value) { + set(8, value); + } + + /** + * Getter for public.files_apply_docs.checkdate. + */ + public String getCheckdate() { + return (String) get(8); + } + + /** + * Setter for public.files_apply_docs.annexpage. + */ + public void setAnnexpage(Integer value) { + set(9, value); + } + + /** + * Getter for public.files_apply_docs.annexpage. + */ + public Integer getAnnexpage() { + return (Integer) get(9); + } + + /** + * Setter for public.files_apply_docs.sortorder. + */ + public void setSortorder(String value) { + set(10, value); + } + + /** + * Getter for public.files_apply_docs.sortorder. + */ + public String getSortorder() { + return (String) get(10); + } + + /** + * Setter for public.files_apply_docs.filefrom. + */ + public void setFilefrom(String value) { + set(11, value); + } + + /** + * Getter for public.files_apply_docs.filefrom. + */ + public String getFilefrom() { + return (String) get(11); + } + + /** + * Setter for public.files_apply_docs.archivestag. + */ + public void setArchivestag(String value) { + set(12, value); + } + + /** + * Getter for public.files_apply_docs.archivestag. + */ + public String getArchivestag() { + return (String) get(12); + } + + /** + * Setter for public.files_apply_docs.adddate. + */ + public void setAdddate(String value) { + set(13, value); + } + + /** + * Getter for public.files_apply_docs.adddate. + */ + public String getAdddate() { + return (String) get(13); + } + + /** + * Setter for public.files_apply_docs.editdate. + */ + public void setEditdate(String value) { + set(14, value); + } + + /** + * Getter for public.files_apply_docs.editdate. + */ + public String getEditdate() { + return (String) get(14); + } + + /** + * Setter for public.files_apply_docs.time_stamp. + */ + public void setTimeStamp(String value) { + set(15, value); + } + + /** + * Getter for public.files_apply_docs.time_stamp. + */ + public String getTimeStamp() { + return (String) get(15); + } + + /** + * Setter for public.files_apply_docs.isdel. + */ + public void setIsdel(Integer value) { + set(16, value); + } + + /** + * Getter for public.files_apply_docs.isdel. + */ + public Integer getIsdel() { + return (Integer) get(16); + } + + /** + * Setter for public.files_apply_docs.downurl. + */ + public void setDownurl(String value) { + set(17, value); + } + + /** + * Getter for public.files_apply_docs.downurl. + */ + public String getDownurl() { + return (String) get(17); + } + + /** + * Setter for public.files_apply_docs.filesize. + */ + public void setFilesize(Integer value) { + set(18, value); + } + + /** + * Getter for public.files_apply_docs.filesize. + */ + public Integer getFilesize() { + return (Integer) get(18); + } + + /** + * Setter for public.files_apply_docs.apply_view_type_print. + */ + public void setApplyViewTypePrint(Integer value) { + set(19, value); + } + + /** + * Getter for public.files_apply_docs.apply_view_type_print. + */ + public Integer getApplyViewTypePrint() { + return (Integer) get(19); + } + + /** + * Setter for public.files_apply_docs.apply_view_type_online. + */ + public void setApplyViewTypeOnline(Integer value) { + set(20, value); + } + + /** + * Getter for public.files_apply_docs.apply_view_type_online. + */ + public Integer getApplyViewTypeOnline() { + return (Integer) get(20); + } + + // ------------------------------------------------------------------------- + // Primary key information + // ------------------------------------------------------------------------- + + @Override + public Record1 key() { + return (Record1) super.key(); + } + + // ------------------------------------------------------------------------- + // Record21 type implementation + // ------------------------------------------------------------------------- + + @Override + public Row21 fieldsRow() { + return (Row21) super.fieldsRow(); + } + + @Override + public Row21 valuesRow() { + return (Row21) super.valuesRow(); + } + + @Override + public Field field1() { + return FilesApplyDocs.FILES_APPLY_DOCS.ID; + } + + @Override + public Field field2() { + return FilesApplyDocs.FILES_APPLY_DOCS.FILES_APPLY_ID; + } + + @Override + public Field field3() { + return FilesApplyDocs.FILES_APPLY_DOCS.SYN_FILE_ID; + } + + @Override + public Field field4() { + return FilesApplyDocs.FILES_APPLY_DOCS.SYN_FILE_P_ID; + } + + @Override + public Field field5() { + return FilesApplyDocs.FILES_APPLY_DOCS.TABLENUMBER; + } + + @Override + public Field field6() { + return FilesApplyDocs.FILES_APPLY_DOCS.ANNEXNAME; + } + + @Override + public Field field7() { + return FilesApplyDocs.FILES_APPLY_DOCS.PROJECTNAME; + } + + @Override + public Field field8() { + return FilesApplyDocs.FILES_APPLY_DOCS.EWEAVEDATE; + } + + @Override + public Field field9() { + return FilesApplyDocs.FILES_APPLY_DOCS.CHECKDATE; + } + + @Override + public Field field10() { + return FilesApplyDocs.FILES_APPLY_DOCS.ANNEXPAGE; + } + + @Override + public Field field11() { + return FilesApplyDocs.FILES_APPLY_DOCS.SORTORDER; + } + + @Override + public Field field12() { + return FilesApplyDocs.FILES_APPLY_DOCS.FILEFROM; + } + + @Override + public Field field13() { + return FilesApplyDocs.FILES_APPLY_DOCS.ARCHIVESTAG; + } + + @Override + public Field field14() { + return FilesApplyDocs.FILES_APPLY_DOCS.ADDDATE; + } + + @Override + public Field field15() { + return FilesApplyDocs.FILES_APPLY_DOCS.EDITDATE; + } + + @Override + public Field field16() { + return FilesApplyDocs.FILES_APPLY_DOCS.TIME_STAMP; + } + + @Override + public Field field17() { + return FilesApplyDocs.FILES_APPLY_DOCS.ISDEL; + } + + @Override + public Field field18() { + return FilesApplyDocs.FILES_APPLY_DOCS.DOWNURL; + } + + @Override + public Field field19() { + return FilesApplyDocs.FILES_APPLY_DOCS.FILESIZE; + } + + @Override + public Field field20() { + return FilesApplyDocs.FILES_APPLY_DOCS.APPLY_VIEW_TYPE_PRINT; + } + + @Override + public Field field21() { + return FilesApplyDocs.FILES_APPLY_DOCS.APPLY_VIEW_TYPE_ONLINE; + } + + @Override + public String component1() { + return getId(); + } + + @Override + public String component2() { + return getFilesApplyId(); + } + + @Override + public String component3() { + return getSynFileId(); + } + + @Override + public String component4() { + return getSynFilePId(); + } + + @Override + public String component5() { + return getTablenumber(); + } + + @Override + public String component6() { + return getAnnexname(); + } + + @Override + public String component7() { + return getProjectname(); + } + + @Override + public String component8() { + return getEweavedate(); + } + + @Override + public String component9() { + return getCheckdate(); + } + + @Override + public Integer component10() { + return getAnnexpage(); + } + + @Override + public String component11() { + return getSortorder(); + } + + @Override + public String component12() { + return getFilefrom(); + } + + @Override + public String component13() { + return getArchivestag(); + } + + @Override + public String component14() { + return getAdddate(); + } + + @Override + public String component15() { + return getEditdate(); + } + + @Override + public String component16() { + return getTimeStamp(); + } + + @Override + public Integer component17() { + return getIsdel(); + } + + @Override + public String component18() { + return getDownurl(); + } + + @Override + public Integer component19() { + return getFilesize(); + } + + @Override + public Integer component20() { + return getApplyViewTypePrint(); + } + + @Override + public Integer component21() { + return getApplyViewTypeOnline(); + } + + @Override + public String value1() { + return getId(); + } + + @Override + public String value2() { + return getFilesApplyId(); + } + + @Override + public String value3() { + return getSynFileId(); + } + + @Override + public String value4() { + return getSynFilePId(); + } + + @Override + public String value5() { + return getTablenumber(); + } + + @Override + public String value6() { + return getAnnexname(); + } + + @Override + public String value7() { + return getProjectname(); + } + + @Override + public String value8() { + return getEweavedate(); + } + + @Override + public String value9() { + return getCheckdate(); + } + + @Override + public Integer value10() { + return getAnnexpage(); + } + + @Override + public String value11() { + return getSortorder(); + } + + @Override + public String value12() { + return getFilefrom(); + } + + @Override + public String value13() { + return getArchivestag(); + } + + @Override + public String value14() { + return getAdddate(); + } + + @Override + public String value15() { + return getEditdate(); + } + + @Override + public String value16() { + return getTimeStamp(); + } + + @Override + public Integer value17() { + return getIsdel(); + } + + @Override + public String value18() { + return getDownurl(); + } + + @Override + public Integer value19() { + return getFilesize(); + } + + @Override + public Integer value20() { + return getApplyViewTypePrint(); + } + + @Override + public Integer value21() { + return getApplyViewTypeOnline(); + } + + @Override + public FilesApplyDocsRecord value1(String value) { + setId(value); + return this; + } + + @Override + public FilesApplyDocsRecord value2(String value) { + setFilesApplyId(value); + return this; + } + + @Override + public FilesApplyDocsRecord value3(String value) { + setSynFileId(value); + return this; + } + + @Override + public FilesApplyDocsRecord value4(String value) { + setSynFilePId(value); + return this; + } + + @Override + public FilesApplyDocsRecord value5(String value) { + setTablenumber(value); + return this; + } + + @Override + public FilesApplyDocsRecord value6(String value) { + setAnnexname(value); + return this; + } + + @Override + public FilesApplyDocsRecord value7(String value) { + setProjectname(value); + return this; + } + + @Override + public FilesApplyDocsRecord value8(String value) { + setEweavedate(value); + return this; + } + + @Override + public FilesApplyDocsRecord value9(String value) { + setCheckdate(value); + return this; + } + + @Override + public FilesApplyDocsRecord value10(Integer value) { + setAnnexpage(value); + return this; + } + + @Override + public FilesApplyDocsRecord value11(String value) { + setSortorder(value); + return this; + } + + @Override + public FilesApplyDocsRecord value12(String value) { + setFilefrom(value); + return this; + } + + @Override + public FilesApplyDocsRecord value13(String value) { + setArchivestag(value); + return this; + } + + @Override + public FilesApplyDocsRecord value14(String value) { + setAdddate(value); + return this; + } + + @Override + public FilesApplyDocsRecord value15(String value) { + setEditdate(value); + return this; + } + + @Override + public FilesApplyDocsRecord value16(String value) { + setTimeStamp(value); + return this; + } + + @Override + public FilesApplyDocsRecord value17(Integer value) { + setIsdel(value); + return this; + } + + @Override + public FilesApplyDocsRecord value18(String value) { + setDownurl(value); + return this; + } + + @Override + public FilesApplyDocsRecord value19(Integer value) { + setFilesize(value); + return this; + } + + @Override + public FilesApplyDocsRecord value20(Integer value) { + setApplyViewTypePrint(value); + return this; + } + + @Override + public FilesApplyDocsRecord value21(Integer value) { + setApplyViewTypeOnline(value); + return this; + } + + @Override + public FilesApplyDocsRecord values(String value1, String value2, String value3, String value4, String value5, String value6, String value7, String value8, String value9, Integer value10, String value11, String value12, String value13, String value14, String value15, String value16, Integer value17, String value18, Integer value19, Integer value20, Integer value21) { + value1(value1); + value2(value2); + value3(value3); + value4(value4); + value5(value5); + value6(value6); + value7(value7); + value8(value8); + value9(value9); + value10(value10); + value11(value11); + value12(value12); + value13(value13); + value14(value14); + value15(value15); + value16(value16); + value17(value17); + value18(value18); + value19(value19); + value20(value20); + value21(value21); + return this; + } + + // ------------------------------------------------------------------------- + // Constructors + // ------------------------------------------------------------------------- + + /** + * Create a detached FilesApplyDocsRecord + */ + public FilesApplyDocsRecord() { + super(FilesApplyDocs.FILES_APPLY_DOCS); + } + + /** + * Create a detached, initialised FilesApplyDocsRecord + */ + public FilesApplyDocsRecord(String id, String filesApplyId, String synFileId, String synFilePId, String tablenumber, String annexname, String projectname, String eweavedate, String checkdate, Integer annexpage, String sortorder, String filefrom, String archivestag, String adddate, String editdate, String timeStamp, Integer isdel, String downurl, Integer filesize, Integer applyViewTypePrint, Integer applyViewTypeOnline) { + super(FilesApplyDocs.FILES_APPLY_DOCS); + + setId(id); + setFilesApplyId(filesApplyId); + setSynFileId(synFileId); + setSynFilePId(synFilePId); + setTablenumber(tablenumber); + setAnnexname(annexname); + setProjectname(projectname); + setEweavedate(eweavedate); + setCheckdate(checkdate); + setAnnexpage(annexpage); + setSortorder(sortorder); + setFilefrom(filefrom); + setArchivestag(archivestag); + setAdddate(adddate); + setEditdate(editdate); + setTimeStamp(timeStamp); + setIsdel(isdel); + setDownurl(downurl); + setFilesize(filesize); + setApplyViewTypePrint(applyViewTypePrint); + setApplyViewTypeOnline(applyViewTypeOnline); + resetChangedOnNotNull(); + } + + /** + * Create a detached, initialised FilesApplyDocsRecord + */ + public FilesApplyDocsRecord(jj.tech.paolu.repository.jooq.tables.pojos.FilesApplyDocs value) { + super(FilesApplyDocs.FILES_APPLY_DOCS); + + if (value != null) { + setId(value.getId()); + setFilesApplyId(value.getFilesApplyId()); + setSynFileId(value.getSynFileId()); + setSynFilePId(value.getSynFilePId()); + setTablenumber(value.getTablenumber()); + setAnnexname(value.getAnnexname()); + setProjectname(value.getProjectname()); + setEweavedate(value.getEweavedate()); + setCheckdate(value.getCheckdate()); + setAnnexpage(value.getAnnexpage()); + setSortorder(value.getSortorder()); + setFilefrom(value.getFilefrom()); + setArchivestag(value.getArchivestag()); + setAdddate(value.getAdddate()); + setEditdate(value.getEditdate()); + setTimeStamp(value.getTimeStamp()); + setIsdel(value.getIsdel()); + setDownurl(value.getDownurl()); + setFilesize(value.getFilesize()); + setApplyViewTypePrint(value.getApplyViewTypePrint()); + setApplyViewTypeOnline(value.getApplyViewTypeOnline()); + resetChangedOnNotNull(); + } + } +} diff --git a/src/main/java/jj/tech/paolu/repository/jooq/tables/records/FilesApplyDownloadRecordRecord.java b/src/main/java/jj/tech/paolu/repository/jooq/tables/records/FilesApplyDownloadRecordRecord.java new file mode 100644 index 0000000..a2000d6 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/jooq/tables/records/FilesApplyDownloadRecordRecord.java @@ -0,0 +1,504 @@ +/* + * This file is generated by jOOQ. + */ +package jj.tech.paolu.repository.jooq.tables.records; + + +import java.time.LocalDateTime; + +import jj.tech.paolu.repository.jooq.tables.FilesApplyDownloadRecord; + +import org.jooq.Field; +import org.jooq.Record1; +import org.jooq.Record11; +import org.jooq.Row11; +import org.jooq.impl.UpdatableRecordImpl; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +public class FilesApplyDownloadRecordRecord extends UpdatableRecordImpl implements Record11 { + + private static final long serialVersionUID = 1L; + + /** + * Setter for public.files_apply_download_record.id. + */ + public void setId(String value) { + set(0, value); + } + + /** + * Getter for public.files_apply_download_record.id. + */ + public String getId() { + return (String) get(0); + } + + /** + * Setter for + * public.files_apply_download_record.files_apply_id. + */ + public void setFilesApplyId(String value) { + set(1, value); + } + + /** + * Getter for + * public.files_apply_download_record.files_apply_id. + */ + public String getFilesApplyId() { + return (String) get(1); + } + + /** + * Setter for public.files_apply_download_record.is_dir_file. + */ + public void setIsDirFile(Integer value) { + set(2, value); + } + + /** + * Getter for public.files_apply_download_record.is_dir_file. + */ + public Integer getIsDirFile() { + return (Integer) get(2); + } + + /** + * Setter for public.files_apply_download_record.syn_file_id. + */ + public void setSynFileId(String value) { + set(3, value); + } + + /** + * Getter for public.files_apply_download_record.syn_file_id. + */ + public String getSynFileId() { + return (String) get(3); + } + + /** + * Setter for public.files_apply_download_record.syn_file_p_id. + */ + public void setSynFilePId(String value) { + set(4, value); + } + + /** + * Getter for public.files_apply_download_record.syn_file_p_id. + */ + public String getSynFilePId() { + return (String) get(4); + } + + /** + * Setter for public.files_apply_download_record.syn_file_name. + */ + public void setSynFileName(String value) { + set(5, value); + } + + /** + * Getter for public.files_apply_download_record.syn_file_name. + */ + public String getSynFileName() { + return (String) get(5); + } + + /** + * Setter for public.files_apply_download_record.user_id. + */ + public void setUserId(String value) { + set(6, value); + } + + /** + * Getter for public.files_apply_download_record.user_id. + */ + public String getUserId() { + return (String) get(6); + } + + /** + * Setter for public.files_apply_download_record.user_name. + */ + public void setUserName(String value) { + set(7, value); + } + + /** + * Getter for public.files_apply_download_record.user_name. + */ + public String getUserName() { + return (String) get(7); + } + + /** + * Setter for public.files_apply_download_record.org_id. + */ + public void setOrgId(String value) { + set(8, value); + } + + /** + * Getter for public.files_apply_download_record.org_id. + */ + public String getOrgId() { + return (String) get(8); + } + + /** + * Setter for public.files_apply_download_record.org_name. + */ + public void setOrgName(String value) { + set(9, value); + } + + /** + * Getter for public.files_apply_download_record.org_name. + */ + public String getOrgName() { + return (String) get(9); + } + + /** + * Setter for public.files_apply_download_record.download_time. + */ + public void setDownloadTime(LocalDateTime value) { + set(10, value); + } + + /** + * Getter for public.files_apply_download_record.download_time. + */ + public LocalDateTime getDownloadTime() { + return (LocalDateTime) get(10); + } + + // ------------------------------------------------------------------------- + // Primary key information + // ------------------------------------------------------------------------- + + @Override + public Record1 key() { + return (Record1) super.key(); + } + + // ------------------------------------------------------------------------- + // Record11 type implementation + // ------------------------------------------------------------------------- + + @Override + public Row11 fieldsRow() { + return (Row11) super.fieldsRow(); + } + + @Override + public Row11 valuesRow() { + return (Row11) super.valuesRow(); + } + + @Override + public Field field1() { + return FilesApplyDownloadRecord.FILES_APPLY_DOWNLOAD_RECORD.ID; + } + + @Override + public Field field2() { + return FilesApplyDownloadRecord.FILES_APPLY_DOWNLOAD_RECORD.FILES_APPLY_ID; + } + + @Override + public Field field3() { + return FilesApplyDownloadRecord.FILES_APPLY_DOWNLOAD_RECORD.IS_DIR_FILE; + } + + @Override + public Field field4() { + return FilesApplyDownloadRecord.FILES_APPLY_DOWNLOAD_RECORD.SYN_FILE_ID; + } + + @Override + public Field field5() { + return FilesApplyDownloadRecord.FILES_APPLY_DOWNLOAD_RECORD.SYN_FILE_P_ID; + } + + @Override + public Field field6() { + return FilesApplyDownloadRecord.FILES_APPLY_DOWNLOAD_RECORD.SYN_FILE_NAME; + } + + @Override + public Field field7() { + return FilesApplyDownloadRecord.FILES_APPLY_DOWNLOAD_RECORD.USER_ID; + } + + @Override + public Field field8() { + return FilesApplyDownloadRecord.FILES_APPLY_DOWNLOAD_RECORD.USER_NAME; + } + + @Override + public Field field9() { + return FilesApplyDownloadRecord.FILES_APPLY_DOWNLOAD_RECORD.ORG_ID; + } + + @Override + public Field field10() { + return FilesApplyDownloadRecord.FILES_APPLY_DOWNLOAD_RECORD.ORG_NAME; + } + + @Override + public Field field11() { + return FilesApplyDownloadRecord.FILES_APPLY_DOWNLOAD_RECORD.DOWNLOAD_TIME; + } + + @Override + public String component1() { + return getId(); + } + + @Override + public String component2() { + return getFilesApplyId(); + } + + @Override + public Integer component3() { + return getIsDirFile(); + } + + @Override + public String component4() { + return getSynFileId(); + } + + @Override + public String component5() { + return getSynFilePId(); + } + + @Override + public String component6() { + return getSynFileName(); + } + + @Override + public String component7() { + return getUserId(); + } + + @Override + public String component8() { + return getUserName(); + } + + @Override + public String component9() { + return getOrgId(); + } + + @Override + public String component10() { + return getOrgName(); + } + + @Override + public LocalDateTime component11() { + return getDownloadTime(); + } + + @Override + public String value1() { + return getId(); + } + + @Override + public String value2() { + return getFilesApplyId(); + } + + @Override + public Integer value3() { + return getIsDirFile(); + } + + @Override + public String value4() { + return getSynFileId(); + } + + @Override + public String value5() { + return getSynFilePId(); + } + + @Override + public String value6() { + return getSynFileName(); + } + + @Override + public String value7() { + return getUserId(); + } + + @Override + public String value8() { + return getUserName(); + } + + @Override + public String value9() { + return getOrgId(); + } + + @Override + public String value10() { + return getOrgName(); + } + + @Override + public LocalDateTime value11() { + return getDownloadTime(); + } + + @Override + public FilesApplyDownloadRecordRecord value1(String value) { + setId(value); + return this; + } + + @Override + public FilesApplyDownloadRecordRecord value2(String value) { + setFilesApplyId(value); + return this; + } + + @Override + public FilesApplyDownloadRecordRecord value3(Integer value) { + setIsDirFile(value); + return this; + } + + @Override + public FilesApplyDownloadRecordRecord value4(String value) { + setSynFileId(value); + return this; + } + + @Override + public FilesApplyDownloadRecordRecord value5(String value) { + setSynFilePId(value); + return this; + } + + @Override + public FilesApplyDownloadRecordRecord value6(String value) { + setSynFileName(value); + return this; + } + + @Override + public FilesApplyDownloadRecordRecord value7(String value) { + setUserId(value); + return this; + } + + @Override + public FilesApplyDownloadRecordRecord value8(String value) { + setUserName(value); + return this; + } + + @Override + public FilesApplyDownloadRecordRecord value9(String value) { + setOrgId(value); + return this; + } + + @Override + public FilesApplyDownloadRecordRecord value10(String value) { + setOrgName(value); + return this; + } + + @Override + public FilesApplyDownloadRecordRecord value11(LocalDateTime value) { + setDownloadTime(value); + return this; + } + + @Override + public FilesApplyDownloadRecordRecord values(String value1, String value2, Integer value3, String value4, String value5, String value6, String value7, String value8, String value9, String value10, LocalDateTime value11) { + value1(value1); + value2(value2); + value3(value3); + value4(value4); + value5(value5); + value6(value6); + value7(value7); + value8(value8); + value9(value9); + value10(value10); + value11(value11); + return this; + } + + // ------------------------------------------------------------------------- + // Constructors + // ------------------------------------------------------------------------- + + /** + * Create a detached FilesApplyDownloadRecordRecord + */ + public FilesApplyDownloadRecordRecord() { + super(FilesApplyDownloadRecord.FILES_APPLY_DOWNLOAD_RECORD); + } + + /** + * Create a detached, initialised FilesApplyDownloadRecordRecord + */ + public FilesApplyDownloadRecordRecord(String id, String filesApplyId, Integer isDirFile, String synFileId, String synFilePId, String synFileName, String userId, String userName, String orgId, String orgName, LocalDateTime downloadTime) { + super(FilesApplyDownloadRecord.FILES_APPLY_DOWNLOAD_RECORD); + + setId(id); + setFilesApplyId(filesApplyId); + setIsDirFile(isDirFile); + setSynFileId(synFileId); + setSynFilePId(synFilePId); + setSynFileName(synFileName); + setUserId(userId); + setUserName(userName); + setOrgId(orgId); + setOrgName(orgName); + setDownloadTime(downloadTime); + resetChangedOnNotNull(); + } + + /** + * Create a detached, initialised FilesApplyDownloadRecordRecord + */ + public FilesApplyDownloadRecordRecord(jj.tech.paolu.repository.jooq.tables.pojos.FilesApplyDownloadRecord value) { + super(FilesApplyDownloadRecord.FILES_APPLY_DOWNLOAD_RECORD); + + if (value != null) { + setId(value.getId()); + setFilesApplyId(value.getFilesApplyId()); + setIsDirFile(value.getIsDirFile()); + setSynFileId(value.getSynFileId()); + setSynFilePId(value.getSynFilePId()); + setSynFileName(value.getSynFileName()); + setUserId(value.getUserId()); + setUserName(value.getUserName()); + setOrgId(value.getOrgId()); + setOrgName(value.getOrgName()); + setDownloadTime(value.getDownloadTime()); + resetChangedOnNotNull(); + } + } +} diff --git a/src/main/java/jj/tech/paolu/repository/jooq/tables/records/FilesApplyRecord.java b/src/main/java/jj/tech/paolu/repository/jooq/tables/records/FilesApplyRecord.java new file mode 100644 index 0000000..5051412 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/jooq/tables/records/FilesApplyRecord.java @@ -0,0 +1,818 @@ +/* + * This file is generated by jOOQ. + */ +package jj.tech.paolu.repository.jooq.tables.records; + + +import java.time.LocalDateTime; + +import jj.tech.paolu.repository.jooq.tables.FilesApply; + +import org.jooq.Record1; +import org.jooq.impl.UpdatableRecordImpl; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +public class FilesApplyRecord extends UpdatableRecordImpl { + + private static final long serialVersionUID = 1L; + + /** + * Setter for public.files_apply.id. + */ + public void setId(String value) { + set(0, value); + } + + /** + * Getter for public.files_apply.id. + */ + public String getId() { + return (String) get(0); + } + + /** + * Setter for public.files_apply.apply_user_id. + */ + public void setApplyUserId(String value) { + set(1, value); + } + + /** + * Getter for public.files_apply.apply_user_id. + */ + public String getApplyUserId() { + return (String) get(1); + } + + /** + * Setter for public.files_apply.apply_user_name. + */ + public void setApplyUserName(String value) { + set(2, value); + } + + /** + * Getter for public.files_apply.apply_user_name. + */ + public String getApplyUserName() { + return (String) get(2); + } + + /** + * Setter for public.files_apply.apply_user_phone. + */ + public void setApplyUserPhone(String value) { + set(3, value); + } + + /** + * Getter for public.files_apply.apply_user_phone. + */ + public String getApplyUserPhone() { + return (String) get(3); + } + + /** + * Setter for public.files_apply.apply_user_email. + */ + public void setApplyUserEmail(String value) { + set(4, value); + } + + /** + * Getter for public.files_apply.apply_user_email. + */ + public String getApplyUserEmail() { + return (String) get(4); + } + + /** + * Setter for public.files_apply.apply_org_id. + */ + public void setApplyOrgId(String value) { + set(5, value); + } + + /** + * Getter for public.files_apply.apply_org_id. + */ + public String getApplyOrgId() { + return (String) get(5); + } + + /** + * Setter for public.files_apply.apply_org_name. + */ + public void setApplyOrgName(String value) { + set(6, value); + } + + /** + * Getter for public.files_apply.apply_org_name. + */ + public String getApplyOrgName() { + return (String) get(6); + } + + /** + * Setter for public.files_apply.apply_in_check_user_id. + */ + public void setApplyInCheckUserId(String value) { + set(7, value); + } + + /** + * Getter for public.files_apply.apply_in_check_user_id. + */ + public String getApplyInCheckUserId() { + return (String) get(7); + } + + /** + * Setter for public.files_apply.apply_in_check_user_name. + */ + public void setApplyInCheckUserName(String value) { + set(8, value); + } + + /** + * Getter for public.files_apply.apply_in_check_user_name. + */ + public String getApplyInCheckUserName() { + return (String) get(8); + } + + /** + * Setter for public.files_apply.apply_in_check_org_id. + */ + public void setApplyInCheckOrgId(String value) { + set(9, value); + } + + /** + * Getter for public.files_apply.apply_in_check_org_id. + */ + public String getApplyInCheckOrgId() { + return (String) get(9); + } + + /** + * Setter for public.files_apply.apply_in_check_org_name. + */ + public void setApplyInCheckOrgName(String value) { + set(10, value); + } + + /** + * Getter for public.files_apply.apply_in_check_org_name. + */ + public String getApplyInCheckOrgName() { + return (String) get(10); + } + + /** + * Setter for public.files_apply.apply_next_check_org_id. + */ + public void setApplyNextCheckOrgId(String value) { + set(11, value); + } + + /** + * Getter for public.files_apply.apply_next_check_org_id. + */ + public String getApplyNextCheckOrgId() { + return (String) get(11); + } + + /** + * Setter for public.files_apply.apply_next_check_org_name. + */ + public void setApplyNextCheckOrgName(String value) { + set(12, value); + } + + /** + * Getter for public.files_apply.apply_next_check_org_name. + */ + public String getApplyNextCheckOrgName() { + return (String) get(12); + } + + /** + * Setter for public.files_apply.apply_end_check_user_id. + */ + public void setApplyEndCheckUserId(String value) { + set(13, value); + } + + /** + * Getter for public.files_apply.apply_end_check_user_id. + */ + public String getApplyEndCheckUserId() { + return (String) get(13); + } + + /** + * Setter for public.files_apply.apply_end_check_user_name. + */ + public void setApplyEndCheckUserName(String value) { + set(14, value); + } + + /** + * Getter for public.files_apply.apply_end_check_user_name. + */ + public String getApplyEndCheckUserName() { + return (String) get(14); + } + + /** + * Setter for public.files_apply.apply_end_check_org_id. + */ + public void setApplyEndCheckOrgId(String value) { + set(15, value); + } + + /** + * Getter for public.files_apply.apply_end_check_org_id. + */ + public String getApplyEndCheckOrgId() { + return (String) get(15); + } + + /** + * Setter for public.files_apply.apply_end_check_org_name. + */ + public void setApplyEndCheckOrgName(String value) { + set(16, value); + } + + /** + * Getter for public.files_apply.apply_end_check_org_name. + */ + public String getApplyEndCheckOrgName() { + return (String) get(16); + } + + /** + * Setter for public.files_apply.apply_days. + */ + public void setApplyDays(Integer value) { + set(17, value); + } + + /** + * Getter for public.files_apply.apply_days. + */ + public Integer getApplyDays() { + return (Integer) get(17); + } + + /** + * Setter for public.files_apply.apply_feedback. + */ + public void setApplyFeedback(String value) { + set(18, value); + } + + /** + * Getter for public.files_apply.apply_feedback. + */ + public String getApplyFeedback() { + return (String) get(18); + } + + /** + * Setter for public.files_apply.apply_reason. + */ + public void setApplyReason(String value) { + set(19, value); + } + + /** + * Getter for public.files_apply.apply_reason. + */ + public String getApplyReason() { + return (String) get(19); + } + + /** + * Setter for public.files_apply.apply_cancel_reason. + */ + public void setApplyCancelReason(String value) { + set(20, value); + } + + /** + * Getter for public.files_apply.apply_cancel_reason. + */ + public String getApplyCancelReason() { + return (String) get(20); + } + + /** + * Setter for public.files_apply.apply_view_type_print. + */ + public void setApplyViewTypePrint(Integer value) { + set(21, value); + } + + /** + * Getter for public.files_apply.apply_view_type_print. + */ + public Integer getApplyViewTypePrint() { + return (Integer) get(21); + } + + /** + * Setter for public.files_apply.apply_view_type_online. + */ + public void setApplyViewTypeOnline(Integer value) { + set(22, value); + } + + /** + * Getter for public.files_apply.apply_view_type_online. + */ + public Integer getApplyViewTypeOnline() { + return (Integer) get(22); + } + + /** + * Setter for public.files_apply.apply_file_num. + */ + public void setApplyFileNum(Integer value) { + set(23, value); + } + + /** + * Getter for public.files_apply.apply_file_num. + */ + public Integer getApplyFileNum() { + return (Integer) get(23); + } + + /** + * Setter for public.files_apply.apply_time. + */ + public void setApplyTime(LocalDateTime value) { + set(24, value); + } + + /** + * Getter for public.files_apply.apply_time. + */ + public LocalDateTime getApplyTime() { + return (LocalDateTime) get(24); + } + + /** + * Setter for public.files_apply.apply_check_is_finish. + */ + public void setApplyCheckIsFinish(Integer value) { + set(25, value); + } + + /** + * Getter for public.files_apply.apply_check_is_finish. + */ + public Integer getApplyCheckIsFinish() { + return (Integer) get(25); + } + + /** + * Setter for public.files_apply.provider_org_id. + */ + public void setProviderOrgId(String value) { + set(26, value); + } + + /** + * Getter for public.files_apply.provider_org_id. + */ + public String getProviderOrgId() { + return (String) get(26); + } + + /** + * Setter for public.files_apply.provider_org_name. + */ + public void setProviderOrgName(String value) { + set(27, value); + } + + /** + * Getter for public.files_apply.provider_org_name. + */ + public String getProviderOrgName() { + return (String) get(27); + } + + /** + * Setter for public.files_apply.provider_file_properties. + */ + public void setProviderFileProperties(Integer value) { + set(28, value); + } + + /** + * Getter for public.files_apply.provider_file_properties. + */ + public Integer getProviderFileProperties() { + return (Integer) get(28); + } + + /** + * Setter for public.files_apply.provider_use_start_time. + */ + public void setProviderUseStartTime(LocalDateTime value) { + set(29, value); + } + + /** + * Getter for public.files_apply.provider_use_start_time. + */ + public LocalDateTime getProviderUseStartTime() { + return (LocalDateTime) get(29); + } + + /** + * Setter for public.files_apply.provider_use_end_time. + */ + public void setProviderUseEndTime(LocalDateTime value) { + set(30, value); + } + + /** + * Getter for public.files_apply.provider_use_end_time. + */ + public LocalDateTime getProviderUseEndTime() { + return (LocalDateTime) get(30); + } + + /** + * Setter for public.files_apply.provider_in_check_user_id. + */ + public void setProviderInCheckUserId(String value) { + set(31, value); + } + + /** + * Getter for public.files_apply.provider_in_check_user_id. + */ + public String getProviderInCheckUserId() { + return (String) get(31); + } + + /** + * Setter for public.files_apply.provider_in_check_user_name. + */ + public void setProviderInCheckUserName(String value) { + set(32, value); + } + + /** + * Getter for public.files_apply.provider_in_check_user_name. + */ + public String getProviderInCheckUserName() { + return (String) get(32); + } + + /** + * Setter for public.files_apply.provider_in_check_org_id. + */ + public void setProviderInCheckOrgId(String value) { + set(33, value); + } + + /** + * Getter for public.files_apply.provider_in_check_org_id. + */ + public String getProviderInCheckOrgId() { + return (String) get(33); + } + + /** + * Setter for public.files_apply.provider_in_check_org_name. + */ + public void setProviderInCheckOrgName(String value) { + set(34, value); + } + + /** + * Getter for public.files_apply.provider_in_check_org_name. + */ + public String getProviderInCheckOrgName() { + return (String) get(34); + } + + /** + * Setter for + * public.files_apply.provider_next_check_role_sign_id. + */ + public void setProviderNextCheckRoleSignId(String value) { + set(35, value); + } + + /** + * Getter for + * public.files_apply.provider_next_check_role_sign_id. + */ + public String getProviderNextCheckRoleSignId() { + return (String) get(35); + } + + /** + * Setter for + * public.files_apply.provider_next_check_role_sign_name. + */ + public void setProviderNextCheckRoleSignName(String value) { + set(36, value); + } + + /** + * Getter for + * public.files_apply.provider_next_check_role_sign_name. + */ + public String getProviderNextCheckRoleSignName() { + return (String) get(36); + } + + /** + * Setter for public.files_apply.provider_end_check_user_id. + */ + public void setProviderEndCheckUserId(String value) { + set(37, value); + } + + /** + * Getter for public.files_apply.provider_end_check_user_id. + */ + public String getProviderEndCheckUserId() { + return (String) get(37); + } + + /** + * Setter for public.files_apply.provider_end_check_user_name. + */ + public void setProviderEndCheckUserName(String value) { + set(38, value); + } + + /** + * Getter for public.files_apply.provider_end_check_user_name. + */ + public String getProviderEndCheckUserName() { + return (String) get(38); + } + + /** + * Setter for public.files_apply.provider_end_check_org_id. + */ + public void setProviderEndCheckOrgId(String value) { + set(39, value); + } + + /** + * Getter for public.files_apply.provider_end_check_org_id. + */ + public String getProviderEndCheckOrgId() { + return (String) get(39); + } + + /** + * Setter for public.files_apply.provider_end_check_org_name. + */ + public void setProviderEndCheckOrgName(String value) { + set(40, value); + } + + /** + * Getter for public.files_apply.provider_end_check_org_name. + */ + public String getProviderEndCheckOrgName() { + return (String) get(40); + } + + /** + * Setter for public.files_apply.provider_check_is_finish. + */ + public void setProviderCheckIsFinish(Integer value) { + set(41, value); + } + + /** + * Getter for public.files_apply.provider_check_is_finish. + */ + public Integer getProviderCheckIsFinish() { + return (Integer) get(41); + } + + /** + * Setter for public.files_apply.secret_key. + */ + public void setSecretKey(String value) { + set(42, value); + } + + /** + * Getter for public.files_apply.secret_key. + */ + public String getSecretKey() { + return (String) get(42); + } + + /** + * Setter for public.files_apply.status. + */ + public void setStatus(Integer value) { + set(43, value); + } + + /** + * Getter for public.files_apply.status. + */ + public Integer getStatus() { + return (Integer) get(43); + } + + /** + * Setter for public.files_apply.project_id. + */ + public void setProjectId(String value) { + set(44, value); + } + + /** + * Getter for public.files_apply.project_id. + */ + public String getProjectId() { + return (String) get(44); + } + + /** + * Setter for public.files_apply.project_name. + */ + public void setProjectName(String value) { + set(45, value); + } + + /** + * Getter for public.files_apply.project_name. + */ + public String getProjectName() { + return (String) get(45); + } + + /** + * Setter for public.files_apply.sign. 签名 + */ + public void setSign(String value) { + set(46, value); + } + + /** + * Getter for public.files_apply.sign. 签名 + */ + public String getSign() { + return (String) get(46); + } + + // ------------------------------------------------------------------------- + // Primary key information + // ------------------------------------------------------------------------- + + @Override + public Record1 key() { + return (Record1) super.key(); + } + + // ------------------------------------------------------------------------- + // Constructors + // ------------------------------------------------------------------------- + + /** + * Create a detached FilesApplyRecord + */ + public FilesApplyRecord() { + super(FilesApply.FILES_APPLY); + } + + /** + * Create a detached, initialised FilesApplyRecord + */ + public FilesApplyRecord(String id, String applyUserId, String applyUserName, String applyUserPhone, String applyUserEmail, String applyOrgId, String applyOrgName, String applyInCheckUserId, String applyInCheckUserName, String applyInCheckOrgId, String applyInCheckOrgName, String applyNextCheckOrgId, String applyNextCheckOrgName, String applyEndCheckUserId, String applyEndCheckUserName, String applyEndCheckOrgId, String applyEndCheckOrgName, Integer applyDays, String applyFeedback, String applyReason, String applyCancelReason, Integer applyViewTypePrint, Integer applyViewTypeOnline, Integer applyFileNum, LocalDateTime applyTime, Integer applyCheckIsFinish, String providerOrgId, String providerOrgName, Integer providerFileProperties, LocalDateTime providerUseStartTime, LocalDateTime providerUseEndTime, String providerInCheckUserId, String providerInCheckUserName, String providerInCheckOrgId, String providerInCheckOrgName, String providerNextCheckRoleSignId, String providerNextCheckRoleSignName, String providerEndCheckUserId, String providerEndCheckUserName, String providerEndCheckOrgId, String providerEndCheckOrgName, Integer providerCheckIsFinish, String secretKey, Integer status, String projectId, String projectName, String sign) { + super(FilesApply.FILES_APPLY); + + setId(id); + setApplyUserId(applyUserId); + setApplyUserName(applyUserName); + setApplyUserPhone(applyUserPhone); + setApplyUserEmail(applyUserEmail); + setApplyOrgId(applyOrgId); + setApplyOrgName(applyOrgName); + setApplyInCheckUserId(applyInCheckUserId); + setApplyInCheckUserName(applyInCheckUserName); + setApplyInCheckOrgId(applyInCheckOrgId); + setApplyInCheckOrgName(applyInCheckOrgName); + setApplyNextCheckOrgId(applyNextCheckOrgId); + setApplyNextCheckOrgName(applyNextCheckOrgName); + setApplyEndCheckUserId(applyEndCheckUserId); + setApplyEndCheckUserName(applyEndCheckUserName); + setApplyEndCheckOrgId(applyEndCheckOrgId); + setApplyEndCheckOrgName(applyEndCheckOrgName); + setApplyDays(applyDays); + setApplyFeedback(applyFeedback); + setApplyReason(applyReason); + setApplyCancelReason(applyCancelReason); + setApplyViewTypePrint(applyViewTypePrint); + setApplyViewTypeOnline(applyViewTypeOnline); + setApplyFileNum(applyFileNum); + setApplyTime(applyTime); + setApplyCheckIsFinish(applyCheckIsFinish); + setProviderOrgId(providerOrgId); + setProviderOrgName(providerOrgName); + setProviderFileProperties(providerFileProperties); + setProviderUseStartTime(providerUseStartTime); + setProviderUseEndTime(providerUseEndTime); + setProviderInCheckUserId(providerInCheckUserId); + setProviderInCheckUserName(providerInCheckUserName); + setProviderInCheckOrgId(providerInCheckOrgId); + setProviderInCheckOrgName(providerInCheckOrgName); + setProviderNextCheckRoleSignId(providerNextCheckRoleSignId); + setProviderNextCheckRoleSignName(providerNextCheckRoleSignName); + setProviderEndCheckUserId(providerEndCheckUserId); + setProviderEndCheckUserName(providerEndCheckUserName); + setProviderEndCheckOrgId(providerEndCheckOrgId); + setProviderEndCheckOrgName(providerEndCheckOrgName); + setProviderCheckIsFinish(providerCheckIsFinish); + setSecretKey(secretKey); + setStatus(status); + setProjectId(projectId); + setProjectName(projectName); + setSign(sign); + resetChangedOnNotNull(); + } + + /** + * Create a detached, initialised FilesApplyRecord + */ + public FilesApplyRecord(jj.tech.paolu.repository.jooq.tables.pojos.FilesApply value) { + super(FilesApply.FILES_APPLY); + + if (value != null) { + setId(value.getId()); + setApplyUserId(value.getApplyUserId()); + setApplyUserName(value.getApplyUserName()); + setApplyUserPhone(value.getApplyUserPhone()); + setApplyUserEmail(value.getApplyUserEmail()); + setApplyOrgId(value.getApplyOrgId()); + setApplyOrgName(value.getApplyOrgName()); + setApplyInCheckUserId(value.getApplyInCheckUserId()); + setApplyInCheckUserName(value.getApplyInCheckUserName()); + setApplyInCheckOrgId(value.getApplyInCheckOrgId()); + setApplyInCheckOrgName(value.getApplyInCheckOrgName()); + setApplyNextCheckOrgId(value.getApplyNextCheckOrgId()); + setApplyNextCheckOrgName(value.getApplyNextCheckOrgName()); + setApplyEndCheckUserId(value.getApplyEndCheckUserId()); + setApplyEndCheckUserName(value.getApplyEndCheckUserName()); + setApplyEndCheckOrgId(value.getApplyEndCheckOrgId()); + setApplyEndCheckOrgName(value.getApplyEndCheckOrgName()); + setApplyDays(value.getApplyDays()); + setApplyFeedback(value.getApplyFeedback()); + setApplyReason(value.getApplyReason()); + setApplyCancelReason(value.getApplyCancelReason()); + setApplyViewTypePrint(value.getApplyViewTypePrint()); + setApplyViewTypeOnline(value.getApplyViewTypeOnline()); + setApplyFileNum(value.getApplyFileNum()); + setApplyTime(value.getApplyTime()); + setApplyCheckIsFinish(value.getApplyCheckIsFinish()); + setProviderOrgId(value.getProviderOrgId()); + setProviderOrgName(value.getProviderOrgName()); + setProviderFileProperties(value.getProviderFileProperties()); + setProviderUseStartTime(value.getProviderUseStartTime()); + setProviderUseEndTime(value.getProviderUseEndTime()); + setProviderInCheckUserId(value.getProviderInCheckUserId()); + setProviderInCheckUserName(value.getProviderInCheckUserName()); + setProviderInCheckOrgId(value.getProviderInCheckOrgId()); + setProviderInCheckOrgName(value.getProviderInCheckOrgName()); + setProviderNextCheckRoleSignId(value.getProviderNextCheckRoleSignId()); + setProviderNextCheckRoleSignName(value.getProviderNextCheckRoleSignName()); + setProviderEndCheckUserId(value.getProviderEndCheckUserId()); + setProviderEndCheckUserName(value.getProviderEndCheckUserName()); + setProviderEndCheckOrgId(value.getProviderEndCheckOrgId()); + setProviderEndCheckOrgName(value.getProviderEndCheckOrgName()); + setProviderCheckIsFinish(value.getProviderCheckIsFinish()); + setSecretKey(value.getSecretKey()); + setStatus(value.getStatus()); + setProjectId(value.getProjectId()); + setProjectName(value.getProjectName()); + setSign(value.getSign()); + resetChangedOnNotNull(); + } + } +} diff --git a/src/main/java/jj/tech/paolu/repository/jooq/tables/records/ProjectRecord.java b/src/main/java/jj/tech/paolu/repository/jooq/tables/records/ProjectRecord.java new file mode 100644 index 0000000..c177744 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/jooq/tables/records/ProjectRecord.java @@ -0,0 +1,234 @@ +/* + * This file is generated by jOOQ. + */ +package jj.tech.paolu.repository.jooq.tables.records; + + +import jj.tech.paolu.repository.jooq.tables.Project; + +import org.jooq.Field; +import org.jooq.Record1; +import org.jooq.Record4; +import org.jooq.Row4; +import org.jooq.impl.UpdatableRecordImpl; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +public class ProjectRecord extends UpdatableRecordImpl implements Record4 { + + private static final long serialVersionUID = 1L; + + /** + * Setter for public.project.id. + */ + public void setId(String value) { + set(0, value); + } + + /** + * Getter for public.project.id. + */ + public String getId() { + return (String) get(0); + } + + /** + * Setter for public.project.project_name. + */ + public void setProjectName(String value) { + set(1, value); + } + + /** + * Getter for public.project.project_name. + */ + public String getProjectName() { + return (String) get(1); + } + + /** + * Setter for public.project.org_id. + */ + public void setOrgId(String value) { + set(2, value); + } + + /** + * Getter for public.project.org_id. + */ + public String getOrgId() { + return (String) get(2); + } + + /** + * Setter for public.project.org_name. + */ + public void setOrgName(String value) { + set(3, value); + } + + /** + * Getter for public.project.org_name. + */ + public String getOrgName() { + return (String) get(3); + } + + // ------------------------------------------------------------------------- + // Primary key information + // ------------------------------------------------------------------------- + + @Override + public Record1 key() { + return (Record1) super.key(); + } + + // ------------------------------------------------------------------------- + // Record4 type implementation + // ------------------------------------------------------------------------- + + @Override + public Row4 fieldsRow() { + return (Row4) super.fieldsRow(); + } + + @Override + public Row4 valuesRow() { + return (Row4) super.valuesRow(); + } + + @Override + public Field field1() { + return Project.PROJECT.ID; + } + + @Override + public Field field2() { + return Project.PROJECT.PROJECT_NAME; + } + + @Override + public Field field3() { + return Project.PROJECT.ORG_ID; + } + + @Override + public Field field4() { + return Project.PROJECT.ORG_NAME; + } + + @Override + public String component1() { + return getId(); + } + + @Override + public String component2() { + return getProjectName(); + } + + @Override + public String component3() { + return getOrgId(); + } + + @Override + public String component4() { + return getOrgName(); + } + + @Override + public String value1() { + return getId(); + } + + @Override + public String value2() { + return getProjectName(); + } + + @Override + public String value3() { + return getOrgId(); + } + + @Override + public String value4() { + return getOrgName(); + } + + @Override + public ProjectRecord value1(String value) { + setId(value); + return this; + } + + @Override + public ProjectRecord value2(String value) { + setProjectName(value); + return this; + } + + @Override + public ProjectRecord value3(String value) { + setOrgId(value); + return this; + } + + @Override + public ProjectRecord value4(String value) { + setOrgName(value); + return this; + } + + @Override + public ProjectRecord values(String value1, String value2, String value3, String value4) { + value1(value1); + value2(value2); + value3(value3); + value4(value4); + return this; + } + + // ------------------------------------------------------------------------- + // Constructors + // ------------------------------------------------------------------------- + + /** + * Create a detached ProjectRecord + */ + public ProjectRecord() { + super(Project.PROJECT); + } + + /** + * Create a detached, initialised ProjectRecord + */ + public ProjectRecord(String id, String projectName, String orgId, String orgName) { + super(Project.PROJECT); + + setId(id); + setProjectName(projectName); + setOrgId(orgId); + setOrgName(orgName); + resetChangedOnNotNull(); + } + + /** + * Create a detached, initialised ProjectRecord + */ + public ProjectRecord(jj.tech.paolu.repository.jooq.tables.pojos.Project value) { + super(Project.PROJECT); + + if (value != null) { + setId(value.getId()); + setProjectName(value.getProjectName()); + setOrgId(value.getOrgId()); + setOrgName(value.getOrgName()); + resetChangedOnNotNull(); + } + } +} diff --git a/src/main/java/jj/tech/paolu/repository/jooq/tables/records/ReadLogRecord.java b/src/main/java/jj/tech/paolu/repository/jooq/tables/records/ReadLogRecord.java new file mode 100644 index 0000000..9161726 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/jooq/tables/records/ReadLogRecord.java @@ -0,0 +1,578 @@ +/* + * This file is generated by jOOQ. + */ +package jj.tech.paolu.repository.jooq.tables.records; + + +import java.time.LocalDateTime; + +import jj.tech.paolu.repository.jooq.tables.ReadLog; + +import org.jooq.Field; +import org.jooq.Record1; +import org.jooq.Record13; +import org.jooq.Row13; +import org.jooq.impl.UpdatableRecordImpl; + + +/** + * 阅读情况 + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +public class ReadLogRecord extends UpdatableRecordImpl implements Record13 { + + private static final long serialVersionUID = 1L; + + /** + * Setter for public.read_log.id. + */ + public void setId(String value) { + set(0, value); + } + + /** + * Getter for public.read_log.id. + */ + public String getId() { + return (String) get(0); + } + + /** + * Setter for public.read_log.weid. 申请人id + */ + public void setWeid(String value) { + set(1, value); + } + + /** + * Getter for public.read_log.weid. 申请人id + */ + public String getWeid() { + return (String) get(1); + } + + /** + * Setter for public.read_log.content_id. 档案id + */ + public void setContentId(String value) { + set(2, value); + } + + /** + * Getter for public.read_log.content_id. 档案id + */ + public String getContentId() { + return (String) get(2); + } + + /** + * Setter for public.read_log.starttime. 开始时间 + */ + public void setStarttime(LocalDateTime value) { + set(3, value); + } + + /** + * Getter for public.read_log.starttime. 开始时间 + */ + public LocalDateTime getStarttime() { + return (LocalDateTime) get(3); + } + + /** + * Setter for public.read_log.endtime. 结束时间 + */ + public void setEndtime(LocalDateTime value) { + set(4, value); + } + + /** + * Getter for public.read_log.endtime. 结束时间 + */ + public LocalDateTime getEndtime() { + return (LocalDateTime) get(4); + } + + /** + * Setter for public.read_log.ip. ip地址 + */ + public void setIp(String value) { + set(5, value); + } + + /** + * Getter for public.read_log.ip. ip地址 + */ + public String getIp() { + return (String) get(5); + } + + /** + * Setter for public.read_log.location. 区域 + */ + public void setLocation(String value) { + set(6, value); + } + + /** + * Getter for public.read_log.location. 区域 + */ + public String getLocation() { + return (String) get(6); + } + + /** + * Setter for public.read_log.downloadtype. 下载类型(1文件包/0单文件) + */ + public void setDownloadtype(Integer value) { + set(7, value); + } + + /** + * Getter for public.read_log.downloadtype. 下载类型(1文件包/0单文件) + */ + public Integer getDownloadtype() { + return (Integer) get(7); + } + + /** + * Setter for public.read_log.sign. 数字签名 + */ + public void setSign(String value) { + set(8, value); + } + + /** + * Getter for public.read_log.sign. 数字签名 + */ + public String getSign() { + return (String) get(8); + } + + /** + * Setter for public.read_log.readid. 一次阅读凭证id + */ + public void setReadid(String value) { + set(9, value); + } + + /** + * Getter for public.read_log.readid. 一次阅读凭证id + */ + public String getReadid() { + return (String) get(9); + } + + /** + * Setter for public.read_log.sm9hibeid. 秘钥id + */ + public void setSm9hibeid(String value) { + set(10, value); + } + + /** + * Getter for public.read_log.sm9hibeid. 秘钥id + */ + public String getSm9hibeid() { + return (String) get(10); + } + + /** + * Setter for public.read_log.content_type. 档案类型 + */ + public void setContentType(Integer value) { + set(11, value); + } + + /** + * Getter for public.read_log.content_type. 档案类型 + */ + public Integer getContentType() { + return (Integer) get(11); + } + + /** + * Setter for public.read_log.ischeck. 是否上链(1是,0否) + */ + public void setIscheck(Integer value) { + set(12, value); + } + + /** + * Getter for public.read_log.ischeck. 是否上链(1是,0否) + */ + public Integer getIscheck() { + return (Integer) get(12); + } + + // ------------------------------------------------------------------------- + // Primary key information + // ------------------------------------------------------------------------- + + @Override + public Record1 key() { + return (Record1) super.key(); + } + + // ------------------------------------------------------------------------- + // Record13 type implementation + // ------------------------------------------------------------------------- + + @Override + public Row13 fieldsRow() { + return (Row13) super.fieldsRow(); + } + + @Override + public Row13 valuesRow() { + return (Row13) super.valuesRow(); + } + + @Override + public Field field1() { + return ReadLog.READ_LOG.ID; + } + + @Override + public Field field2() { + return ReadLog.READ_LOG.WEID; + } + + @Override + public Field field3() { + return ReadLog.READ_LOG.CONTENT_ID; + } + + @Override + public Field field4() { + return ReadLog.READ_LOG.STARTTIME; + } + + @Override + public Field field5() { + return ReadLog.READ_LOG.ENDTIME; + } + + @Override + public Field field6() { + return ReadLog.READ_LOG.IP; + } + + @Override + public Field field7() { + return ReadLog.READ_LOG.LOCATION; + } + + @Override + public Field field8() { + return ReadLog.READ_LOG.DOWNLOADTYPE; + } + + @Override + public Field field9() { + return ReadLog.READ_LOG.SIGN; + } + + @Override + public Field field10() { + return ReadLog.READ_LOG.READID; + } + + @Override + public Field field11() { + return ReadLog.READ_LOG.SM9HIBEID; + } + + @Override + public Field field12() { + return ReadLog.READ_LOG.CONTENT_TYPE; + } + + @Override + public Field field13() { + return ReadLog.READ_LOG.ISCHECK; + } + + @Override + public String component1() { + return getId(); + } + + @Override + public String component2() { + return getWeid(); + } + + @Override + public String component3() { + return getContentId(); + } + + @Override + public LocalDateTime component4() { + return getStarttime(); + } + + @Override + public LocalDateTime component5() { + return getEndtime(); + } + + @Override + public String component6() { + return getIp(); + } + + @Override + public String component7() { + return getLocation(); + } + + @Override + public Integer component8() { + return getDownloadtype(); + } + + @Override + public String component9() { + return getSign(); + } + + @Override + public String component10() { + return getReadid(); + } + + @Override + public String component11() { + return getSm9hibeid(); + } + + @Override + public Integer component12() { + return getContentType(); + } + + @Override + public Integer component13() { + return getIscheck(); + } + + @Override + public String value1() { + return getId(); + } + + @Override + public String value2() { + return getWeid(); + } + + @Override + public String value3() { + return getContentId(); + } + + @Override + public LocalDateTime value4() { + return getStarttime(); + } + + @Override + public LocalDateTime value5() { + return getEndtime(); + } + + @Override + public String value6() { + return getIp(); + } + + @Override + public String value7() { + return getLocation(); + } + + @Override + public Integer value8() { + return getDownloadtype(); + } + + @Override + public String value9() { + return getSign(); + } + + @Override + public String value10() { + return getReadid(); + } + + @Override + public String value11() { + return getSm9hibeid(); + } + + @Override + public Integer value12() { + return getContentType(); + } + + @Override + public Integer value13() { + return getIscheck(); + } + + @Override + public ReadLogRecord value1(String value) { + setId(value); + return this; + } + + @Override + public ReadLogRecord value2(String value) { + setWeid(value); + return this; + } + + @Override + public ReadLogRecord value3(String value) { + setContentId(value); + return this; + } + + @Override + public ReadLogRecord value4(LocalDateTime value) { + setStarttime(value); + return this; + } + + @Override + public ReadLogRecord value5(LocalDateTime value) { + setEndtime(value); + return this; + } + + @Override + public ReadLogRecord value6(String value) { + setIp(value); + return this; + } + + @Override + public ReadLogRecord value7(String value) { + setLocation(value); + return this; + } + + @Override + public ReadLogRecord value8(Integer value) { + setDownloadtype(value); + return this; + } + + @Override + public ReadLogRecord value9(String value) { + setSign(value); + return this; + } + + @Override + public ReadLogRecord value10(String value) { + setReadid(value); + return this; + } + + @Override + public ReadLogRecord value11(String value) { + setSm9hibeid(value); + return this; + } + + @Override + public ReadLogRecord value12(Integer value) { + setContentType(value); + return this; + } + + @Override + public ReadLogRecord value13(Integer value) { + setIscheck(value); + return this; + } + + @Override + public ReadLogRecord values(String value1, String value2, String value3, LocalDateTime value4, LocalDateTime value5, String value6, String value7, Integer value8, String value9, String value10, String value11, Integer value12, Integer value13) { + value1(value1); + value2(value2); + value3(value3); + value4(value4); + value5(value5); + value6(value6); + value7(value7); + value8(value8); + value9(value9); + value10(value10); + value11(value11); + value12(value12); + value13(value13); + return this; + } + + // ------------------------------------------------------------------------- + // Constructors + // ------------------------------------------------------------------------- + + /** + * Create a detached ReadLogRecord + */ + public ReadLogRecord() { + super(ReadLog.READ_LOG); + } + + /** + * Create a detached, initialised ReadLogRecord + */ + public ReadLogRecord(String id, String weid, String contentId, LocalDateTime starttime, LocalDateTime endtime, String ip, String location, Integer downloadtype, String sign, String readid, String sm9hibeid, Integer contentType, Integer ischeck) { + super(ReadLog.READ_LOG); + + setId(id); + setWeid(weid); + setContentId(contentId); + setStarttime(starttime); + setEndtime(endtime); + setIp(ip); + setLocation(location); + setDownloadtype(downloadtype); + setSign(sign); + setReadid(readid); + setSm9hibeid(sm9hibeid); + setContentType(contentType); + setIscheck(ischeck); + resetChangedOnNotNull(); + } + + /** + * Create a detached, initialised ReadLogRecord + */ + public ReadLogRecord(jj.tech.paolu.repository.jooq.tables.pojos.ReadLog value) { + super(ReadLog.READ_LOG); + + if (value != null) { + setId(value.getId()); + setWeid(value.getWeid()); + setContentId(value.getContentId()); + setStarttime(value.getStarttime()); + setEndtime(value.getEndtime()); + setIp(value.getIp()); + setLocation(value.getLocation()); + setDownloadtype(value.getDownloadtype()); + setSign(value.getSign()); + setReadid(value.getReadid()); + setSm9hibeid(value.getSm9hibeid()); + setContentType(value.getContentType()); + setIscheck(value.getIscheck()); + resetChangedOnNotNull(); + } + } +} diff --git a/src/main/java/jj/tech/paolu/repository/jooq/tables/records/SharedRuleConfigRecord.java b/src/main/java/jj/tech/paolu/repository/jooq/tables/records/SharedRuleConfigRecord.java new file mode 100644 index 0000000..8856e4d --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/jooq/tables/records/SharedRuleConfigRecord.java @@ -0,0 +1,310 @@ +/* + * This file is generated by jOOQ. + */ +package jj.tech.paolu.repository.jooq.tables.records; + + +import jj.tech.paolu.repository.jooq.tables.SharedRuleConfig; + +import org.jooq.Field; +import org.jooq.Record1; +import org.jooq.Record6; +import org.jooq.Row6; +import org.jooq.impl.UpdatableRecordImpl; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +public class SharedRuleConfigRecord extends UpdatableRecordImpl implements Record6 { + + private static final long serialVersionUID = 1L; + + /** + * Setter for public.shared_rule_config.id. + */ + public void setId(String value) { + set(0, value); + } + + /** + * Getter for public.shared_rule_config.id. + */ + public String getId() { + return (String) get(0); + } + + /** + * Setter for public.shared_rule_config.name. + */ + public void setName(String value) { + set(1, value); + } + + /** + * Getter for public.shared_rule_config.name. + */ + public String getName() { + return (String) get(1); + } + + /** + * Setter for public.shared_rule_config.describe. + */ + public void setDescribe(String value) { + set(2, value); + } + + /** + * Getter for public.shared_rule_config.describe. + */ + public String getDescribe() { + return (String) get(2); + } + + /** + * Setter for public.shared_rule_config.status. + */ + public void setStatus(Integer value) { + set(3, value); + } + + /** + * Getter for public.shared_rule_config.status. + */ + public Integer getStatus() { + return (Integer) get(3); + } + + /** + * Setter for public.shared_rule_config.sort. + */ + public void setSort(Integer value) { + set(4, value); + } + + /** + * Getter for public.shared_rule_config.sort. + */ + public Integer getSort() { + return (Integer) get(4); + } + + /** + * Setter for public.shared_rule_config.project_name. + */ + public void setProjectName(String value) { + set(5, value); + } + + /** + * Getter for public.shared_rule_config.project_name. + */ + public String getProjectName() { + return (String) get(5); + } + + // ------------------------------------------------------------------------- + // Primary key information + // ------------------------------------------------------------------------- + + @Override + public Record1 key() { + return (Record1) super.key(); + } + + // ------------------------------------------------------------------------- + // Record6 type implementation + // ------------------------------------------------------------------------- + + @Override + public Row6 fieldsRow() { + return (Row6) super.fieldsRow(); + } + + @Override + public Row6 valuesRow() { + return (Row6) super.valuesRow(); + } + + @Override + public Field field1() { + return SharedRuleConfig.SHARED_RULE_CONFIG.ID; + } + + @Override + public Field field2() { + return SharedRuleConfig.SHARED_RULE_CONFIG.NAME; + } + + @Override + public Field field3() { + return SharedRuleConfig.SHARED_RULE_CONFIG.DESCRIBE; + } + + @Override + public Field field4() { + return SharedRuleConfig.SHARED_RULE_CONFIG.STATUS; + } + + @Override + public Field field5() { + return SharedRuleConfig.SHARED_RULE_CONFIG.SORT; + } + + @Override + public Field field6() { + return SharedRuleConfig.SHARED_RULE_CONFIG.PROJECT_NAME; + } + + @Override + public String component1() { + return getId(); + } + + @Override + public String component2() { + return getName(); + } + + @Override + public String component3() { + return getDescribe(); + } + + @Override + public Integer component4() { + return getStatus(); + } + + @Override + public Integer component5() { + return getSort(); + } + + @Override + public String component6() { + return getProjectName(); + } + + @Override + public String value1() { + return getId(); + } + + @Override + public String value2() { + return getName(); + } + + @Override + public String value3() { + return getDescribe(); + } + + @Override + public Integer value4() { + return getStatus(); + } + + @Override + public Integer value5() { + return getSort(); + } + + @Override + public String value6() { + return getProjectName(); + } + + @Override + public SharedRuleConfigRecord value1(String value) { + setId(value); + return this; + } + + @Override + public SharedRuleConfigRecord value2(String value) { + setName(value); + return this; + } + + @Override + public SharedRuleConfigRecord value3(String value) { + setDescribe(value); + return this; + } + + @Override + public SharedRuleConfigRecord value4(Integer value) { + setStatus(value); + return this; + } + + @Override + public SharedRuleConfigRecord value5(Integer value) { + setSort(value); + return this; + } + + @Override + public SharedRuleConfigRecord value6(String value) { + setProjectName(value); + return this; + } + + @Override + public SharedRuleConfigRecord values(String value1, String value2, String value3, Integer value4, Integer value5, String value6) { + value1(value1); + value2(value2); + value3(value3); + value4(value4); + value5(value5); + value6(value6); + return this; + } + + // ------------------------------------------------------------------------- + // Constructors + // ------------------------------------------------------------------------- + + /** + * Create a detached SharedRuleConfigRecord + */ + public SharedRuleConfigRecord() { + super(SharedRuleConfig.SHARED_RULE_CONFIG); + } + + /** + * Create a detached, initialised SharedRuleConfigRecord + */ + public SharedRuleConfigRecord(String id, String name, String describe, Integer status, Integer sort, String projectName) { + super(SharedRuleConfig.SHARED_RULE_CONFIG); + + setId(id); + setName(name); + setDescribe(describe); + setStatus(status); + setSort(sort); + setProjectName(projectName); + resetChangedOnNotNull(); + } + + /** + * Create a detached, initialised SharedRuleConfigRecord + */ + public SharedRuleConfigRecord(jj.tech.paolu.repository.jooq.tables.pojos.SharedRuleConfig value) { + super(SharedRuleConfig.SHARED_RULE_CONFIG); + + if (value != null) { + setId(value.getId()); + setName(value.getName()); + setDescribe(value.getDescribe()); + setStatus(value.getStatus()); + setSort(value.getSort()); + setProjectName(value.getProjectName()); + resetChangedOnNotNull(); + } + } +} diff --git a/src/main/java/jj/tech/paolu/repository/jooq/tables/records/SharedSynAllRecord.java b/src/main/java/jj/tech/paolu/repository/jooq/tables/records/SharedSynAllRecord.java new file mode 100644 index 0000000..fff4d15 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/jooq/tables/records/SharedSynAllRecord.java @@ -0,0 +1,424 @@ +/* + * This file is generated by jOOQ. + */ +package jj.tech.paolu.repository.jooq.tables.records; + + +import jj.tech.paolu.repository.jooq.tables.SharedSynAll; + +import org.jooq.Field; +import org.jooq.Record1; +import org.jooq.Record9; +import org.jooq.Row9; +import org.jooq.impl.UpdatableRecordImpl; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +public class SharedSynAllRecord extends UpdatableRecordImpl implements Record9 { + + private static final long serialVersionUID = 1L; + + /** + * Setter for public.shared_syn_all.id. + */ + public void setId(String value) { + set(0, value); + } + + /** + * Getter for public.shared_syn_all.id. + */ + public String getId() { + return (String) get(0); + } + + /** + * Setter for public.shared_syn_all.syn_id. + */ + public void setSynId(String value) { + set(1, value); + } + + /** + * Getter for public.shared_syn_all.syn_id. + */ + public String getSynId() { + return (String) get(1); + } + + /** + * Setter for public.shared_syn_all.syn_type. + */ + public void setSynType(Integer value) { + set(2, value); + } + + /** + * Getter for public.shared_syn_all.syn_type. + */ + public Integer getSynType() { + return (Integer) get(2); + } + + /** + * Setter for public.shared_syn_all.is_config_rule. + */ + public void setIsConfigRule(Integer value) { + set(3, value); + } + + /** + * Getter for public.shared_syn_all.is_config_rule. + */ + public Integer getIsConfigRule() { + return (Integer) get(3); + } + + /** + * Setter for public.shared_syn_all.shared_status. + */ + public void setSharedStatus(Integer value) { + set(4, value); + } + + /** + * Getter for public.shared_syn_all.shared_status. + */ + public Integer getSharedStatus() { + return (Integer) get(4); + } + + /** + * Setter for public.shared_syn_all.syn_status. + */ + public void setSynStatus(Integer value) { + set(5, value); + } + + /** + * Getter for public.shared_syn_all.syn_status. + */ + public Integer getSynStatus() { + return (Integer) get(5); + } + + /** + * Setter for public.shared_syn_all.block_number. + */ + public void setBlockNumber(String value) { + set(6, value); + } + + /** + * Getter for public.shared_syn_all.block_number. + */ + public String getBlockNumber() { + return (String) get(6); + } + + /** + * Setter for public.shared_syn_all.block_hash. + */ + public void setBlockHash(String value) { + set(7, value); + } + + /** + * Getter for public.shared_syn_all.block_hash. + */ + public String getBlockHash() { + return (String) get(7); + } + + /** + * Setter for public.shared_syn_all.block_time. + */ + public void setBlockTime(String value) { + set(8, value); + } + + /** + * Getter for public.shared_syn_all.block_time. + */ + public String getBlockTime() { + return (String) get(8); + } + + // ------------------------------------------------------------------------- + // Primary key information + // ------------------------------------------------------------------------- + + @Override + public Record1 key() { + return (Record1) super.key(); + } + + // ------------------------------------------------------------------------- + // Record9 type implementation + // ------------------------------------------------------------------------- + + @Override + public Row9 fieldsRow() { + return (Row9) super.fieldsRow(); + } + + @Override + public Row9 valuesRow() { + return (Row9) super.valuesRow(); + } + + @Override + public Field field1() { + return SharedSynAll.SHARED_SYN_ALL.ID; + } + + @Override + public Field field2() { + return SharedSynAll.SHARED_SYN_ALL.SYN_ID; + } + + @Override + public Field field3() { + return SharedSynAll.SHARED_SYN_ALL.SYN_TYPE; + } + + @Override + public Field field4() { + return SharedSynAll.SHARED_SYN_ALL.IS_CONFIG_RULE; + } + + @Override + public Field field5() { + return SharedSynAll.SHARED_SYN_ALL.SHARED_STATUS; + } + + @Override + public Field field6() { + return SharedSynAll.SHARED_SYN_ALL.SYN_STATUS; + } + + @Override + public Field field7() { + return SharedSynAll.SHARED_SYN_ALL.BLOCK_NUMBER; + } + + @Override + public Field field8() { + return SharedSynAll.SHARED_SYN_ALL.BLOCK_HASH; + } + + @Override + public Field field9() { + return SharedSynAll.SHARED_SYN_ALL.BLOCK_TIME; + } + + @Override + public String component1() { + return getId(); + } + + @Override + public String component2() { + return getSynId(); + } + + @Override + public Integer component3() { + return getSynType(); + } + + @Override + public Integer component4() { + return getIsConfigRule(); + } + + @Override + public Integer component5() { + return getSharedStatus(); + } + + @Override + public Integer component6() { + return getSynStatus(); + } + + @Override + public String component7() { + return getBlockNumber(); + } + + @Override + public String component8() { + return getBlockHash(); + } + + @Override + public String component9() { + return getBlockTime(); + } + + @Override + public String value1() { + return getId(); + } + + @Override + public String value2() { + return getSynId(); + } + + @Override + public Integer value3() { + return getSynType(); + } + + @Override + public Integer value4() { + return getIsConfigRule(); + } + + @Override + public Integer value5() { + return getSharedStatus(); + } + + @Override + public Integer value6() { + return getSynStatus(); + } + + @Override + public String value7() { + return getBlockNumber(); + } + + @Override + public String value8() { + return getBlockHash(); + } + + @Override + public String value9() { + return getBlockTime(); + } + + @Override + public SharedSynAllRecord value1(String value) { + setId(value); + return this; + } + + @Override + public SharedSynAllRecord value2(String value) { + setSynId(value); + return this; + } + + @Override + public SharedSynAllRecord value3(Integer value) { + setSynType(value); + return this; + } + + @Override + public SharedSynAllRecord value4(Integer value) { + setIsConfigRule(value); + return this; + } + + @Override + public SharedSynAllRecord value5(Integer value) { + setSharedStatus(value); + return this; + } + + @Override + public SharedSynAllRecord value6(Integer value) { + setSynStatus(value); + return this; + } + + @Override + public SharedSynAllRecord value7(String value) { + setBlockNumber(value); + return this; + } + + @Override + public SharedSynAllRecord value8(String value) { + setBlockHash(value); + return this; + } + + @Override + public SharedSynAllRecord value9(String value) { + setBlockTime(value); + return this; + } + + @Override + public SharedSynAllRecord values(String value1, String value2, Integer value3, Integer value4, Integer value5, Integer value6, String value7, String value8, String value9) { + value1(value1); + value2(value2); + value3(value3); + value4(value4); + value5(value5); + value6(value6); + value7(value7); + value8(value8); + value9(value9); + return this; + } + + // ------------------------------------------------------------------------- + // Constructors + // ------------------------------------------------------------------------- + + /** + * Create a detached SharedSynAllRecord + */ + public SharedSynAllRecord() { + super(SharedSynAll.SHARED_SYN_ALL); + } + + /** + * Create a detached, initialised SharedSynAllRecord + */ + public SharedSynAllRecord(String id, String synId, Integer synType, Integer isConfigRule, Integer sharedStatus, Integer synStatus, String blockNumber, String blockHash, String blockTime) { + super(SharedSynAll.SHARED_SYN_ALL); + + setId(id); + setSynId(synId); + setSynType(synType); + setIsConfigRule(isConfigRule); + setSharedStatus(sharedStatus); + setSynStatus(synStatus); + setBlockNumber(blockNumber); + setBlockHash(blockHash); + setBlockTime(blockTime); + resetChangedOnNotNull(); + } + + /** + * Create a detached, initialised SharedSynAllRecord + */ + public SharedSynAllRecord(jj.tech.paolu.repository.jooq.tables.pojos.SharedSynAll value) { + super(SharedSynAll.SHARED_SYN_ALL); + + if (value != null) { + setId(value.getId()); + setSynId(value.getSynId()); + setSynType(value.getSynType()); + setIsConfigRule(value.getIsConfigRule()); + setSharedStatus(value.getSharedStatus()); + setSynStatus(value.getSynStatus()); + setBlockNumber(value.getBlockNumber()); + setBlockHash(value.getBlockHash()); + setBlockTime(value.getBlockTime()); + resetChangedOnNotNull(); + } + } +} diff --git a/src/main/java/jj/tech/paolu/repository/jooq/tables/records/SynDirectoryFileRecord.java b/src/main/java/jj/tech/paolu/repository/jooq/tables/records/SynDirectoryFileRecord.java new file mode 100644 index 0000000..6d6881b --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/jooq/tables/records/SynDirectoryFileRecord.java @@ -0,0 +1,880 @@ +/* + * This file is generated by jOOQ. + */ +package jj.tech.paolu.repository.jooq.tables.records; + + +import jj.tech.paolu.repository.jooq.tables.SynDirectoryFile; + +import org.jooq.Field; +import org.jooq.Record1; +import org.jooq.Record21; +import org.jooq.Row21; +import org.jooq.impl.UpdatableRecordImpl; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +public class SynDirectoryFileRecord extends UpdatableRecordImpl implements Record21 { + + private static final long serialVersionUID = 1L; + + /** + * Setter for public.syn_directory_file.id. + */ + public void setId(String value) { + set(0, value); + } + + /** + * Getter for public.syn_directory_file.id. + */ + public String getId() { + return (String) get(0); + } + + /** + * Setter for public.syn_directory_file.p_id. + */ + public void setPId(String value) { + set(1, value); + } + + /** + * Getter for public.syn_directory_file.p_id. + */ + public String getPId() { + return (String) get(1); + } + + /** + * Setter for public.syn_directory_file.filesuper. + */ + public void setFilesuper(String value) { + set(2, value); + } + + /** + * Getter for public.syn_directory_file.filesuper. + */ + public String getFilesuper() { + return (String) get(2); + } + + /** + * Setter for public.syn_directory_file.filecount. + */ + public void setFilecount(Integer value) { + set(3, value); + } + + /** + * Getter for public.syn_directory_file.filecount. + */ + public Integer getFilecount() { + return (Integer) get(3); + } + + /** + * Setter for public.syn_directory_file.dutyperson. + */ + public void setDutyperson(String value) { + set(4, value); + } + + /** + * Getter for public.syn_directory_file.dutyperson. + */ + public String getDutyperson() { + return (String) get(4); + } + + /** + * Setter for public.syn_directory_file.eweavedate. + */ + public void setEweavedate(String value) { + set(5, value); + } + + /** + * Getter for public.syn_directory_file.eweavedate. + */ + public String getEweavedate() { + return (String) get(5); + } + + /** + * Setter for public.syn_directory_file.filepage. + */ + public void setFilepage(Integer value) { + set(6, value); + } + + /** + * Getter for public.syn_directory_file.filepage. + */ + public Integer getFilepage() { + return (Integer) get(6); + } + + /** + * Setter for public.syn_directory_file.sortorder. + */ + public void setSortorder(String value) { + set(7, value); + } + + /** + * Getter for public.syn_directory_file.sortorder. + */ + public String getSortorder() { + return (String) get(7); + } + + /** + * Setter for public.syn_directory_file.bpeg. + */ + public void setBpeg(String value) { + set(8, value); + } + + /** + * Getter for public.syn_directory_file.bpeg. + */ + public String getBpeg() { + return (String) get(8); + } + + /** + * Setter for public.syn_directory_file.epeg. + */ + public void setEpeg(String value) { + set(9, value); + } + + /** + * Getter for public.syn_directory_file.epeg. + */ + public String getEpeg() { + return (String) get(9); + } + + /** + * Setter for public.syn_directory_file.filenum. + */ + public void setFilenum(String value) { + set(10, value); + } + + /** + * Getter for public.syn_directory_file.filenum. + */ + public String getFilenum() { + return (String) get(10); + } + + /** + * Setter for public.syn_directory_file.remark. + */ + public void setRemark(String value) { + set(11, value); + } + + /** + * Getter for public.syn_directory_file.remark. + */ + public String getRemark() { + return (String) get(11); + } + + /** + * Setter for public.syn_directory_file.recordnum. + */ + public void setRecordnum(String value) { + set(12, value); + } + + /** + * Getter for public.syn_directory_file.recordnum. + */ + public String getRecordnum() { + return (String) get(12); + } + + /** + * Setter for public.syn_directory_file.piecenumber. + */ + public void setPiecenumber(String value) { + set(13, value); + } + + /** + * Getter for public.syn_directory_file.piecenumber. + */ + public String getPiecenumber() { + return (String) get(13); + } + + /** + * Setter for public.syn_directory_file.adddate. + */ + public void setAdddate(String value) { + set(14, value); + } + + /** + * Getter for public.syn_directory_file.adddate. + */ + public String getAdddate() { + return (String) get(14); + } + + /** + * Setter for public.syn_directory_file.editdate. + */ + public void setEditdate(String value) { + set(15, value); + } + + /** + * Getter for public.syn_directory_file.editdate. + */ + public String getEditdate() { + return (String) get(15); + } + + /** + * Setter for public.syn_directory_file.time_stamp. + */ + public void setTimeStamp(String value) { + set(16, value); + } + + /** + * Getter for public.syn_directory_file.time_stamp. + */ + public String getTimeStamp() { + return (String) get(16); + } + + /** + * Setter for public.syn_directory_file.isdel. + */ + public void setIsdel(Integer value) { + set(17, value); + } + + /** + * Getter for public.syn_directory_file.isdel. + */ + public Integer getIsdel() { + return (Integer) get(17); + } + + /** + * Setter for public.syn_directory_file.catalogpdfurl. + */ + public void setCatalogpdfurl(String value) { + set(18, value); + } + + /** + * Getter for public.syn_directory_file.catalogpdfurl. + */ + public String getCatalogpdfurl() { + return (String) get(18); + } + + /** + * Setter for public.syn_directory_file.signtag. + */ + public void setSigntag(String value) { + set(19, value); + } + + /** + * Getter for public.syn_directory_file.signtag. + */ + public String getSigntag() { + return (String) get(19); + } + + /** + * Setter for public.syn_directory_file.collecttag. + */ + public void setCollecttag(String value) { + set(20, value); + } + + /** + * Getter for public.syn_directory_file.collecttag. + */ + public String getCollecttag() { + return (String) get(20); + } + + // ------------------------------------------------------------------------- + // Primary key information + // ------------------------------------------------------------------------- + + @Override + public Record1 key() { + return (Record1) super.key(); + } + + // ------------------------------------------------------------------------- + // Record21 type implementation + // ------------------------------------------------------------------------- + + @Override + public Row21 fieldsRow() { + return (Row21) super.fieldsRow(); + } + + @Override + public Row21 valuesRow() { + return (Row21) super.valuesRow(); + } + + @Override + public Field field1() { + return SynDirectoryFile.SYN_DIRECTORY_FILE.ID; + } + + @Override + public Field field2() { + return SynDirectoryFile.SYN_DIRECTORY_FILE.P_ID; + } + + @Override + public Field field3() { + return SynDirectoryFile.SYN_DIRECTORY_FILE.FILESUPER; + } + + @Override + public Field field4() { + return SynDirectoryFile.SYN_DIRECTORY_FILE.FILECOUNT; + } + + @Override + public Field field5() { + return SynDirectoryFile.SYN_DIRECTORY_FILE.DUTYPERSON; + } + + @Override + public Field field6() { + return SynDirectoryFile.SYN_DIRECTORY_FILE.EWEAVEDATE; + } + + @Override + public Field field7() { + return SynDirectoryFile.SYN_DIRECTORY_FILE.FILEPAGE; + } + + @Override + public Field field8() { + return SynDirectoryFile.SYN_DIRECTORY_FILE.SORTORDER; + } + + @Override + public Field field9() { + return SynDirectoryFile.SYN_DIRECTORY_FILE.BPEG; + } + + @Override + public Field field10() { + return SynDirectoryFile.SYN_DIRECTORY_FILE.EPEG; + } + + @Override + public Field field11() { + return SynDirectoryFile.SYN_DIRECTORY_FILE.FILENUM; + } + + @Override + public Field field12() { + return SynDirectoryFile.SYN_DIRECTORY_FILE.REMARK; + } + + @Override + public Field field13() { + return SynDirectoryFile.SYN_DIRECTORY_FILE.RECORDNUM; + } + + @Override + public Field field14() { + return SynDirectoryFile.SYN_DIRECTORY_FILE.PIECENUMBER; + } + + @Override + public Field field15() { + return SynDirectoryFile.SYN_DIRECTORY_FILE.ADDDATE; + } + + @Override + public Field field16() { + return SynDirectoryFile.SYN_DIRECTORY_FILE.EDITDATE; + } + + @Override + public Field field17() { + return SynDirectoryFile.SYN_DIRECTORY_FILE.TIME_STAMP; + } + + @Override + public Field field18() { + return SynDirectoryFile.SYN_DIRECTORY_FILE.ISDEL; + } + + @Override + public Field field19() { + return SynDirectoryFile.SYN_DIRECTORY_FILE.CATALOGPDFURL; + } + + @Override + public Field field20() { + return SynDirectoryFile.SYN_DIRECTORY_FILE.SIGNTAG; + } + + @Override + public Field field21() { + return SynDirectoryFile.SYN_DIRECTORY_FILE.COLLECTTAG; + } + + @Override + public String component1() { + return getId(); + } + + @Override + public String component2() { + return getPId(); + } + + @Override + public String component3() { + return getFilesuper(); + } + + @Override + public Integer component4() { + return getFilecount(); + } + + @Override + public String component5() { + return getDutyperson(); + } + + @Override + public String component6() { + return getEweavedate(); + } + + @Override + public Integer component7() { + return getFilepage(); + } + + @Override + public String component8() { + return getSortorder(); + } + + @Override + public String component9() { + return getBpeg(); + } + + @Override + public String component10() { + return getEpeg(); + } + + @Override + public String component11() { + return getFilenum(); + } + + @Override + public String component12() { + return getRemark(); + } + + @Override + public String component13() { + return getRecordnum(); + } + + @Override + public String component14() { + return getPiecenumber(); + } + + @Override + public String component15() { + return getAdddate(); + } + + @Override + public String component16() { + return getEditdate(); + } + + @Override + public String component17() { + return getTimeStamp(); + } + + @Override + public Integer component18() { + return getIsdel(); + } + + @Override + public String component19() { + return getCatalogpdfurl(); + } + + @Override + public String component20() { + return getSigntag(); + } + + @Override + public String component21() { + return getCollecttag(); + } + + @Override + public String value1() { + return getId(); + } + + @Override + public String value2() { + return getPId(); + } + + @Override + public String value3() { + return getFilesuper(); + } + + @Override + public Integer value4() { + return getFilecount(); + } + + @Override + public String value5() { + return getDutyperson(); + } + + @Override + public String value6() { + return getEweavedate(); + } + + @Override + public Integer value7() { + return getFilepage(); + } + + @Override + public String value8() { + return getSortorder(); + } + + @Override + public String value9() { + return getBpeg(); + } + + @Override + public String value10() { + return getEpeg(); + } + + @Override + public String value11() { + return getFilenum(); + } + + @Override + public String value12() { + return getRemark(); + } + + @Override + public String value13() { + return getRecordnum(); + } + + @Override + public String value14() { + return getPiecenumber(); + } + + @Override + public String value15() { + return getAdddate(); + } + + @Override + public String value16() { + return getEditdate(); + } + + @Override + public String value17() { + return getTimeStamp(); + } + + @Override + public Integer value18() { + return getIsdel(); + } + + @Override + public String value19() { + return getCatalogpdfurl(); + } + + @Override + public String value20() { + return getSigntag(); + } + + @Override + public String value21() { + return getCollecttag(); + } + + @Override + public SynDirectoryFileRecord value1(String value) { + setId(value); + return this; + } + + @Override + public SynDirectoryFileRecord value2(String value) { + setPId(value); + return this; + } + + @Override + public SynDirectoryFileRecord value3(String value) { + setFilesuper(value); + return this; + } + + @Override + public SynDirectoryFileRecord value4(Integer value) { + setFilecount(value); + return this; + } + + @Override + public SynDirectoryFileRecord value5(String value) { + setDutyperson(value); + return this; + } + + @Override + public SynDirectoryFileRecord value6(String value) { + setEweavedate(value); + return this; + } + + @Override + public SynDirectoryFileRecord value7(Integer value) { + setFilepage(value); + return this; + } + + @Override + public SynDirectoryFileRecord value8(String value) { + setSortorder(value); + return this; + } + + @Override + public SynDirectoryFileRecord value9(String value) { + setBpeg(value); + return this; + } + + @Override + public SynDirectoryFileRecord value10(String value) { + setEpeg(value); + return this; + } + + @Override + public SynDirectoryFileRecord value11(String value) { + setFilenum(value); + return this; + } + + @Override + public SynDirectoryFileRecord value12(String value) { + setRemark(value); + return this; + } + + @Override + public SynDirectoryFileRecord value13(String value) { + setRecordnum(value); + return this; + } + + @Override + public SynDirectoryFileRecord value14(String value) { + setPiecenumber(value); + return this; + } + + @Override + public SynDirectoryFileRecord value15(String value) { + setAdddate(value); + return this; + } + + @Override + public SynDirectoryFileRecord value16(String value) { + setEditdate(value); + return this; + } + + @Override + public SynDirectoryFileRecord value17(String value) { + setTimeStamp(value); + return this; + } + + @Override + public SynDirectoryFileRecord value18(Integer value) { + setIsdel(value); + return this; + } + + @Override + public SynDirectoryFileRecord value19(String value) { + setCatalogpdfurl(value); + return this; + } + + @Override + public SynDirectoryFileRecord value20(String value) { + setSigntag(value); + return this; + } + + @Override + public SynDirectoryFileRecord value21(String value) { + setCollecttag(value); + return this; + } + + @Override + public SynDirectoryFileRecord values(String value1, String value2, String value3, Integer value4, String value5, String value6, Integer value7, String value8, String value9, String value10, String value11, String value12, String value13, String value14, String value15, String value16, String value17, Integer value18, String value19, String value20, String value21) { + value1(value1); + value2(value2); + value3(value3); + value4(value4); + value5(value5); + value6(value6); + value7(value7); + value8(value8); + value9(value9); + value10(value10); + value11(value11); + value12(value12); + value13(value13); + value14(value14); + value15(value15); + value16(value16); + value17(value17); + value18(value18); + value19(value19); + value20(value20); + value21(value21); + return this; + } + + // ------------------------------------------------------------------------- + // Constructors + // ------------------------------------------------------------------------- + + /** + * Create a detached SynDirectoryFileRecord + */ + public SynDirectoryFileRecord() { + super(SynDirectoryFile.SYN_DIRECTORY_FILE); + } + + /** + * Create a detached, initialised SynDirectoryFileRecord + */ + public SynDirectoryFileRecord(String id, String pId, String filesuper, Integer filecount, String dutyperson, String eweavedate, Integer filepage, String sortorder, String bpeg, String epeg, String filenum, String remark, String recordnum, String piecenumber, String adddate, String editdate, String timeStamp, Integer isdel, String catalogpdfurl, String signtag, String collecttag) { + super(SynDirectoryFile.SYN_DIRECTORY_FILE); + + setId(id); + setPId(pId); + setFilesuper(filesuper); + setFilecount(filecount); + setDutyperson(dutyperson); + setEweavedate(eweavedate); + setFilepage(filepage); + setSortorder(sortorder); + setBpeg(bpeg); + setEpeg(epeg); + setFilenum(filenum); + setRemark(remark); + setRecordnum(recordnum); + setPiecenumber(piecenumber); + setAdddate(adddate); + setEditdate(editdate); + setTimeStamp(timeStamp); + setIsdel(isdel); + setCatalogpdfurl(catalogpdfurl); + setSigntag(signtag); + setCollecttag(collecttag); + resetChangedOnNotNull(); + } + + /** + * Create a detached, initialised SynDirectoryFileRecord + */ + public SynDirectoryFileRecord(jj.tech.paolu.repository.jooq.tables.pojos.SynDirectoryFile value) { + super(SynDirectoryFile.SYN_DIRECTORY_FILE); + + if (value != null) { + setId(value.getId()); + setPId(value.getPId()); + setFilesuper(value.getFilesuper()); + setFilecount(value.getFilecount()); + setDutyperson(value.getDutyperson()); + setEweavedate(value.getEweavedate()); + setFilepage(value.getFilepage()); + setSortorder(value.getSortorder()); + setBpeg(value.getBpeg()); + setEpeg(value.getEpeg()); + setFilenum(value.getFilenum()); + setRemark(value.getRemark()); + setRecordnum(value.getRecordnum()); + setPiecenumber(value.getPiecenumber()); + setAdddate(value.getAdddate()); + setEditdate(value.getEditdate()); + setTimeStamp(value.getTimeStamp()); + setIsdel(value.getIsdel()); + setCatalogpdfurl(value.getCatalogpdfurl()); + setSigntag(value.getSigntag()); + setCollecttag(value.getCollecttag()); + resetChangedOnNotNull(); + } + } +} diff --git a/src/main/java/jj/tech/paolu/repository/jooq/tables/records/SynDirectoryRecord.java b/src/main/java/jj/tech/paolu/repository/jooq/tables/records/SynDirectoryRecord.java new file mode 100644 index 0000000..67c664e --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/jooq/tables/records/SynDirectoryRecord.java @@ -0,0 +1,386 @@ +/* + * This file is generated by jOOQ. + */ +package jj.tech.paolu.repository.jooq.tables.records; + + +import jj.tech.paolu.repository.jooq.tables.SynDirectory; + +import org.jooq.Field; +import org.jooq.Record1; +import org.jooq.Record8; +import org.jooq.Row8; +import org.jooq.impl.UpdatableRecordImpl; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +public class SynDirectoryRecord extends UpdatableRecordImpl implements Record8 { + + private static final long serialVersionUID = 1L; + + /** + * Setter for public.syn_directory.id. + */ + public void setId(String value) { + set(0, value); + } + + /** + * Getter for public.syn_directory.id. + */ + public String getId() { + return (String) get(0); + } + + /** + * Setter for public.syn_directory.p_id. + */ + public void setPId(String value) { + set(1, value); + } + + /** + * Getter for public.syn_directory.p_id. + */ + public String getPId() { + return (String) get(1); + } + + /** + * Setter for public.syn_directory.wbs_id. + */ + public void setWbsId(String value) { + set(2, value); + } + + /** + * Getter for public.syn_directory.wbs_id. + */ + public String getWbsId() { + return (String) get(2); + } + + /** + * Setter for public.syn_directory.time_stamp. + */ + public void setTimeStamp(String value) { + set(3, value); + } + + /** + * Getter for public.syn_directory.time_stamp. + */ + public String getTimeStamp() { + return (String) get(3); + } + + /** + * Setter for public.syn_directory.sortorder. + */ + public void setSortorder(Integer value) { + set(4, value); + } + + /** + * Getter for public.syn_directory.sortorder. + */ + public Integer getSortorder() { + return (Integer) get(4); + } + + /** + * Setter for public.syn_directory.tname. + */ + public void setTname(String value) { + set(5, value); + } + + /** + * Getter for public.syn_directory.tname. + */ + public String getTname() { + return (String) get(5); + } + + /** + * Setter for public.syn_directory.subjoin. + */ + public void setSubjoin(Integer value) { + set(6, value); + } + + /** + * Getter for public.syn_directory.subjoin. + */ + public Integer getSubjoin() { + return (Integer) get(6); + } + + /** + * Setter for public.syn_directory.isdel. + */ + public void setIsdel(Integer value) { + set(7, value); + } + + /** + * Getter for public.syn_directory.isdel. + */ + public Integer getIsdel() { + return (Integer) get(7); + } + + // ------------------------------------------------------------------------- + // Primary key information + // ------------------------------------------------------------------------- + + @Override + public Record1 key() { + return (Record1) super.key(); + } + + // ------------------------------------------------------------------------- + // Record8 type implementation + // ------------------------------------------------------------------------- + + @Override + public Row8 fieldsRow() { + return (Row8) super.fieldsRow(); + } + + @Override + public Row8 valuesRow() { + return (Row8) super.valuesRow(); + } + + @Override + public Field field1() { + return SynDirectory.SYN_DIRECTORY.ID; + } + + @Override + public Field field2() { + return SynDirectory.SYN_DIRECTORY.P_ID; + } + + @Override + public Field field3() { + return SynDirectory.SYN_DIRECTORY.WBS_ID; + } + + @Override + public Field field4() { + return SynDirectory.SYN_DIRECTORY.TIME_STAMP; + } + + @Override + public Field field5() { + return SynDirectory.SYN_DIRECTORY.SORTORDER; + } + + @Override + public Field field6() { + return SynDirectory.SYN_DIRECTORY.TNAME; + } + + @Override + public Field field7() { + return SynDirectory.SYN_DIRECTORY.SUBJOIN; + } + + @Override + public Field field8() { + return SynDirectory.SYN_DIRECTORY.ISDEL; + } + + @Override + public String component1() { + return getId(); + } + + @Override + public String component2() { + return getPId(); + } + + @Override + public String component3() { + return getWbsId(); + } + + @Override + public String component4() { + return getTimeStamp(); + } + + @Override + public Integer component5() { + return getSortorder(); + } + + @Override + public String component6() { + return getTname(); + } + + @Override + public Integer component7() { + return getSubjoin(); + } + + @Override + public Integer component8() { + return getIsdel(); + } + + @Override + public String value1() { + return getId(); + } + + @Override + public String value2() { + return getPId(); + } + + @Override + public String value3() { + return getWbsId(); + } + + @Override + public String value4() { + return getTimeStamp(); + } + + @Override + public Integer value5() { + return getSortorder(); + } + + @Override + public String value6() { + return getTname(); + } + + @Override + public Integer value7() { + return getSubjoin(); + } + + @Override + public Integer value8() { + return getIsdel(); + } + + @Override + public SynDirectoryRecord value1(String value) { + setId(value); + return this; + } + + @Override + public SynDirectoryRecord value2(String value) { + setPId(value); + return this; + } + + @Override + public SynDirectoryRecord value3(String value) { + setWbsId(value); + return this; + } + + @Override + public SynDirectoryRecord value4(String value) { + setTimeStamp(value); + return this; + } + + @Override + public SynDirectoryRecord value5(Integer value) { + setSortorder(value); + return this; + } + + @Override + public SynDirectoryRecord value6(String value) { + setTname(value); + return this; + } + + @Override + public SynDirectoryRecord value7(Integer value) { + setSubjoin(value); + return this; + } + + @Override + public SynDirectoryRecord value8(Integer value) { + setIsdel(value); + return this; + } + + @Override + public SynDirectoryRecord values(String value1, String value2, String value3, String value4, Integer value5, String value6, Integer value7, Integer value8) { + value1(value1); + value2(value2); + value3(value3); + value4(value4); + value5(value5); + value6(value6); + value7(value7); + value8(value8); + return this; + } + + // ------------------------------------------------------------------------- + // Constructors + // ------------------------------------------------------------------------- + + /** + * Create a detached SynDirectoryRecord + */ + public SynDirectoryRecord() { + super(SynDirectory.SYN_DIRECTORY); + } + + /** + * Create a detached, initialised SynDirectoryRecord + */ + public SynDirectoryRecord(String id, String pId, String wbsId, String timeStamp, Integer sortorder, String tname, Integer subjoin, Integer isdel) { + super(SynDirectory.SYN_DIRECTORY); + + setId(id); + setPId(pId); + setWbsId(wbsId); + setTimeStamp(timeStamp); + setSortorder(sortorder); + setTname(tname); + setSubjoin(subjoin); + setIsdel(isdel); + resetChangedOnNotNull(); + } + + /** + * Create a detached, initialised SynDirectoryRecord + */ + public SynDirectoryRecord(jj.tech.paolu.repository.jooq.tables.pojos.SynDirectory value) { + super(SynDirectory.SYN_DIRECTORY); + + if (value != null) { + setId(value.getId()); + setPId(value.getPId()); + setWbsId(value.getWbsId()); + setTimeStamp(value.getTimeStamp()); + setSortorder(value.getSortorder()); + setTname(value.getTname()); + setSubjoin(value.getSubjoin()); + setIsdel(value.getIsdel()); + resetChangedOnNotNull(); + } + } +} diff --git a/src/main/java/jj/tech/paolu/repository/jooq/tables/records/SynFileRecord.java b/src/main/java/jj/tech/paolu/repository/jooq/tables/records/SynFileRecord.java new file mode 100644 index 0000000..76d5e0f --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/jooq/tables/records/SynFileRecord.java @@ -0,0 +1,728 @@ +/* + * This file is generated by jOOQ. + */ +package jj.tech.paolu.repository.jooq.tables.records; + + +import jj.tech.paolu.repository.jooq.tables.SynFile; + +import org.jooq.Field; +import org.jooq.Record1; +import org.jooq.Record17; +import org.jooq.Row17; +import org.jooq.impl.UpdatableRecordImpl; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +public class SynFileRecord extends UpdatableRecordImpl implements Record17 { + + private static final long serialVersionUID = 1L; + + /** + * Setter for public.syn_file.id. + */ + public void setId(String value) { + set(0, value); + } + + /** + * Getter for public.syn_file.id. + */ + public String getId() { + return (String) get(0); + } + + /** + * Setter for public.syn_file.p_id. + */ + public void setPId(String value) { + set(1, value); + } + + /** + * Getter for public.syn_file.p_id. + */ + public String getPId() { + return (String) get(1); + } + + /** + * Setter for public.syn_file.tablenumber. + */ + public void setTablenumber(String value) { + set(2, value); + } + + /** + * Getter for public.syn_file.tablenumber. + */ + public String getTablenumber() { + return (String) get(2); + } + + /** + * Setter for public.syn_file.annexname. + */ + public void setAnnexname(String value) { + set(3, value); + } + + /** + * Getter for public.syn_file.annexname. + */ + public String getAnnexname() { + return (String) get(3); + } + + /** + * Setter for public.syn_file.projectname. + */ + public void setProjectname(String value) { + set(4, value); + } + + /** + * Getter for public.syn_file.projectname. + */ + public String getProjectname() { + return (String) get(4); + } + + /** + * Setter for public.syn_file.eweavedate. + */ + public void setEweavedate(String value) { + set(5, value); + } + + /** + * Getter for public.syn_file.eweavedate. + */ + public String getEweavedate() { + return (String) get(5); + } + + /** + * Setter for public.syn_file.checkdate. + */ + public void setCheckdate(String value) { + set(6, value); + } + + /** + * Getter for public.syn_file.checkdate. + */ + public String getCheckdate() { + return (String) get(6); + } + + /** + * Setter for public.syn_file.annexpage. + */ + public void setAnnexpage(Integer value) { + set(7, value); + } + + /** + * Getter for public.syn_file.annexpage. + */ + public Integer getAnnexpage() { + return (Integer) get(7); + } + + /** + * Setter for public.syn_file.sortorder. + */ + public void setSortorder(String value) { + set(8, value); + } + + /** + * Getter for public.syn_file.sortorder. + */ + public String getSortorder() { + return (String) get(8); + } + + /** + * Setter for public.syn_file.filefrom. + */ + public void setFilefrom(String value) { + set(9, value); + } + + /** + * Getter for public.syn_file.filefrom. + */ + public String getFilefrom() { + return (String) get(9); + } + + /** + * Setter for public.syn_file.archivestag. + */ + public void setArchivestag(String value) { + set(10, value); + } + + /** + * Getter for public.syn_file.archivestag. + */ + public String getArchivestag() { + return (String) get(10); + } + + /** + * Setter for public.syn_file.adddate. + */ + public void setAdddate(String value) { + set(11, value); + } + + /** + * Getter for public.syn_file.adddate. + */ + public String getAdddate() { + return (String) get(11); + } + + /** + * Setter for public.syn_file.editdate. + */ + public void setEditdate(String value) { + set(12, value); + } + + /** + * Getter for public.syn_file.editdate. + */ + public String getEditdate() { + return (String) get(12); + } + + /** + * Setter for public.syn_file.time_stamp. + */ + public void setTimeStamp(String value) { + set(13, value); + } + + /** + * Getter for public.syn_file.time_stamp. + */ + public String getTimeStamp() { + return (String) get(13); + } + + /** + * Setter for public.syn_file.isdel. + */ + public void setIsdel(Integer value) { + set(14, value); + } + + /** + * Getter for public.syn_file.isdel. + */ + public Integer getIsdel() { + return (Integer) get(14); + } + + /** + * Setter for public.syn_file.downurl. + */ + public void setDownurl(String value) { + set(15, value); + } + + /** + * Getter for public.syn_file.downurl. + */ + public String getDownurl() { + return (String) get(15); + } + + /** + * Setter for public.syn_file.filesize. + */ + public void setFilesize(Integer value) { + set(16, value); + } + + /** + * Getter for public.syn_file.filesize. + */ + public Integer getFilesize() { + return (Integer) get(16); + } + + // ------------------------------------------------------------------------- + // Primary key information + // ------------------------------------------------------------------------- + + @Override + public Record1 key() { + return (Record1) super.key(); + } + + // ------------------------------------------------------------------------- + // Record17 type implementation + // ------------------------------------------------------------------------- + + @Override + public Row17 fieldsRow() { + return (Row17) super.fieldsRow(); + } + + @Override + public Row17 valuesRow() { + return (Row17) super.valuesRow(); + } + + @Override + public Field field1() { + return SynFile.SYN_FILE.ID; + } + + @Override + public Field field2() { + return SynFile.SYN_FILE.P_ID; + } + + @Override + public Field field3() { + return SynFile.SYN_FILE.TABLENUMBER; + } + + @Override + public Field field4() { + return SynFile.SYN_FILE.ANNEXNAME; + } + + @Override + public Field field5() { + return SynFile.SYN_FILE.PROJECTNAME; + } + + @Override + public Field field6() { + return SynFile.SYN_FILE.EWEAVEDATE; + } + + @Override + public Field field7() { + return SynFile.SYN_FILE.CHECKDATE; + } + + @Override + public Field field8() { + return SynFile.SYN_FILE.ANNEXPAGE; + } + + @Override + public Field field9() { + return SynFile.SYN_FILE.SORTORDER; + } + + @Override + public Field field10() { + return SynFile.SYN_FILE.FILEFROM; + } + + @Override + public Field field11() { + return SynFile.SYN_FILE.ARCHIVESTAG; + } + + @Override + public Field field12() { + return SynFile.SYN_FILE.ADDDATE; + } + + @Override + public Field field13() { + return SynFile.SYN_FILE.EDITDATE; + } + + @Override + public Field field14() { + return SynFile.SYN_FILE.TIME_STAMP; + } + + @Override + public Field field15() { + return SynFile.SYN_FILE.ISDEL; + } + + @Override + public Field field16() { + return SynFile.SYN_FILE.DOWNURL; + } + + @Override + public Field field17() { + return SynFile.SYN_FILE.FILESIZE; + } + + @Override + public String component1() { + return getId(); + } + + @Override + public String component2() { + return getPId(); + } + + @Override + public String component3() { + return getTablenumber(); + } + + @Override + public String component4() { + return getAnnexname(); + } + + @Override + public String component5() { + return getProjectname(); + } + + @Override + public String component6() { + return getEweavedate(); + } + + @Override + public String component7() { + return getCheckdate(); + } + + @Override + public Integer component8() { + return getAnnexpage(); + } + + @Override + public String component9() { + return getSortorder(); + } + + @Override + public String component10() { + return getFilefrom(); + } + + @Override + public String component11() { + return getArchivestag(); + } + + @Override + public String component12() { + return getAdddate(); + } + + @Override + public String component13() { + return getEditdate(); + } + + @Override + public String component14() { + return getTimeStamp(); + } + + @Override + public Integer component15() { + return getIsdel(); + } + + @Override + public String component16() { + return getDownurl(); + } + + @Override + public Integer component17() { + return getFilesize(); + } + + @Override + public String value1() { + return getId(); + } + + @Override + public String value2() { + return getPId(); + } + + @Override + public String value3() { + return getTablenumber(); + } + + @Override + public String value4() { + return getAnnexname(); + } + + @Override + public String value5() { + return getProjectname(); + } + + @Override + public String value6() { + return getEweavedate(); + } + + @Override + public String value7() { + return getCheckdate(); + } + + @Override + public Integer value8() { + return getAnnexpage(); + } + + @Override + public String value9() { + return getSortorder(); + } + + @Override + public String value10() { + return getFilefrom(); + } + + @Override + public String value11() { + return getArchivestag(); + } + + @Override + public String value12() { + return getAdddate(); + } + + @Override + public String value13() { + return getEditdate(); + } + + @Override + public String value14() { + return getTimeStamp(); + } + + @Override + public Integer value15() { + return getIsdel(); + } + + @Override + public String value16() { + return getDownurl(); + } + + @Override + public Integer value17() { + return getFilesize(); + } + + @Override + public SynFileRecord value1(String value) { + setId(value); + return this; + } + + @Override + public SynFileRecord value2(String value) { + setPId(value); + return this; + } + + @Override + public SynFileRecord value3(String value) { + setTablenumber(value); + return this; + } + + @Override + public SynFileRecord value4(String value) { + setAnnexname(value); + return this; + } + + @Override + public SynFileRecord value5(String value) { + setProjectname(value); + return this; + } + + @Override + public SynFileRecord value6(String value) { + setEweavedate(value); + return this; + } + + @Override + public SynFileRecord value7(String value) { + setCheckdate(value); + return this; + } + + @Override + public SynFileRecord value8(Integer value) { + setAnnexpage(value); + return this; + } + + @Override + public SynFileRecord value9(String value) { + setSortorder(value); + return this; + } + + @Override + public SynFileRecord value10(String value) { + setFilefrom(value); + return this; + } + + @Override + public SynFileRecord value11(String value) { + setArchivestag(value); + return this; + } + + @Override + public SynFileRecord value12(String value) { + setAdddate(value); + return this; + } + + @Override + public SynFileRecord value13(String value) { + setEditdate(value); + return this; + } + + @Override + public SynFileRecord value14(String value) { + setTimeStamp(value); + return this; + } + + @Override + public SynFileRecord value15(Integer value) { + setIsdel(value); + return this; + } + + @Override + public SynFileRecord value16(String value) { + setDownurl(value); + return this; + } + + @Override + public SynFileRecord value17(Integer value) { + setFilesize(value); + return this; + } + + @Override + public SynFileRecord values(String value1, String value2, String value3, String value4, String value5, String value6, String value7, Integer value8, String value9, String value10, String value11, String value12, String value13, String value14, Integer value15, String value16, Integer value17) { + value1(value1); + value2(value2); + value3(value3); + value4(value4); + value5(value5); + value6(value6); + value7(value7); + value8(value8); + value9(value9); + value10(value10); + value11(value11); + value12(value12); + value13(value13); + value14(value14); + value15(value15); + value16(value16); + value17(value17); + return this; + } + + // ------------------------------------------------------------------------- + // Constructors + // ------------------------------------------------------------------------- + + /** + * Create a detached SynFileRecord + */ + public SynFileRecord() { + super(SynFile.SYN_FILE); + } + + /** + * Create a detached, initialised SynFileRecord + */ + public SynFileRecord(String id, String pId, String tablenumber, String annexname, String projectname, String eweavedate, String checkdate, Integer annexpage, String sortorder, String filefrom, String archivestag, String adddate, String editdate, String timeStamp, Integer isdel, String downurl, Integer filesize) { + super(SynFile.SYN_FILE); + + setId(id); + setPId(pId); + setTablenumber(tablenumber); + setAnnexname(annexname); + setProjectname(projectname); + setEweavedate(eweavedate); + setCheckdate(checkdate); + setAnnexpage(annexpage); + setSortorder(sortorder); + setFilefrom(filefrom); + setArchivestag(archivestag); + setAdddate(adddate); + setEditdate(editdate); + setTimeStamp(timeStamp); + setIsdel(isdel); + setDownurl(downurl); + setFilesize(filesize); + resetChangedOnNotNull(); + } + + /** + * Create a detached, initialised SynFileRecord + */ + public SynFileRecord(jj.tech.paolu.repository.jooq.tables.pojos.SynFile value) { + super(SynFile.SYN_FILE); + + if (value != null) { + setId(value.getId()); + setPId(value.getPId()); + setTablenumber(value.getTablenumber()); + setAnnexname(value.getAnnexname()); + setProjectname(value.getProjectname()); + setEweavedate(value.getEweavedate()); + setCheckdate(value.getCheckdate()); + setAnnexpage(value.getAnnexpage()); + setSortorder(value.getSortorder()); + setFilefrom(value.getFilefrom()); + setArchivestag(value.getArchivestag()); + setAdddate(value.getAdddate()); + setEditdate(value.getEditdate()); + setTimeStamp(value.getTimeStamp()); + setIsdel(value.getIsdel()); + setDownurl(value.getDownurl()); + setFilesize(value.getFilesize()); + resetChangedOnNotNull(); + } + } +} diff --git a/src/main/java/jj/tech/paolu/repository/jooq/tables/records/SysAdminRecord.java b/src/main/java/jj/tech/paolu/repository/jooq/tables/records/SysAdminRecord.java new file mode 100644 index 0000000..ece259b --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/jooq/tables/records/SysAdminRecord.java @@ -0,0 +1,614 @@ +/* + * This file is generated by jOOQ. + */ +package jj.tech.paolu.repository.jooq.tables.records; + + +import jj.tech.paolu.repository.jooq.tables.SysAdmin; + +import org.jooq.Field; +import org.jooq.Record1; +import org.jooq.Record14; +import org.jooq.Row14; +import org.jooq.impl.UpdatableRecordImpl; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +public class SysAdminRecord extends UpdatableRecordImpl implements Record14 { + + private static final long serialVersionUID = 1L; + + /** + * Setter for public.sys_admin.id. + */ + public void setId(String value) { + set(0, value); + } + + /** + * Getter for public.sys_admin.id. + */ + public String getId() { + return (String) get(0); + } + + /** + * Setter for public.sys_admin.org_id. + */ + public void setOrgId(String value) { + set(1, value); + } + + /** + * Getter for public.sys_admin.org_id. + */ + public String getOrgId() { + return (String) get(1); + } + + /** + * Setter for public.sys_admin.realname. + */ + public void setRealname(String value) { + set(2, value); + } + + /** + * Getter for public.sys_admin.realname. + */ + public String getRealname() { + return (String) get(2); + } + + /** + * Setter for public.sys_admin.username. + */ + public void setUsername(String value) { + set(3, value); + } + + /** + * Getter for public.sys_admin.username. + */ + public String getUsername() { + return (String) get(3); + } + + /** + * Setter for public.sys_admin.password. + */ + public void setPassword(String value) { + set(4, value); + } + + /** + * Getter for public.sys_admin.password. + */ + public String getPassword() { + return (String) get(4); + } + + /** + * Setter for public.sys_admin.phone. + */ + public void setPhone(String value) { + set(5, value); + } + + /** + * Getter for public.sys_admin.phone. + */ + public String getPhone() { + return (String) get(5); + } + + /** + * Setter for public.sys_admin.email. + */ + public void setEmail(String value) { + set(6, value); + } + + /** + * Getter for public.sys_admin.email. + */ + public String getEmail() { + return (String) get(6); + } + + /** + * Setter for public.sys_admin.job. + */ + public void setJob(String value) { + set(7, value); + } + + /** + * Getter for public.sys_admin.job. + */ + public String getJob() { + return (String) get(7); + } + + /** + * Setter for public.sys_admin.gender. + */ + public void setGender(Integer value) { + set(8, value); + } + + /** + * Getter for public.sys_admin.gender. + */ + public Integer getGender() { + return (Integer) get(8); + } + + /** + * Setter for public.sys_admin.islock. + */ + public void setIslock(Integer value) { + set(9, value); + } + + /** + * Getter for public.sys_admin.islock. + */ + public Integer getIslock() { + return (Integer) get(9); + } + + /** + * Setter for public.sys_admin.type. + */ + public void setType(Integer value) { + set(10, value); + } + + /** + * Getter for public.sys_admin.type. + */ + public Integer getType() { + return (Integer) get(10); + } + + /** + * Setter for public.sys_admin.sort. + */ + public void setSort(Integer value) { + set(11, value); + } + + /** + * Getter for public.sys_admin.sort. + */ + public Integer getSort() { + return (Integer) get(11); + } + + /** + * Setter for public.sys_admin.cer_id. + */ + public void setCerId(String value) { + set(12, value); + } + + /** + * Getter for public.sys_admin.cer_id. + */ + public String getCerId() { + return (String) get(12); + } + + /** + * Setter for public.sys_admin.company_id. 公司ID,组织ID的最高级 + */ + public void setCompanyId(String value) { + set(13, value); + } + + /** + * Getter for public.sys_admin.company_id. 公司ID,组织ID的最高级 + */ + public String getCompanyId() { + return (String) get(13); + } + + // ------------------------------------------------------------------------- + // Primary key information + // ------------------------------------------------------------------------- + + @Override + public Record1 key() { + return (Record1) super.key(); + } + + // ------------------------------------------------------------------------- + // Record14 type implementation + // ------------------------------------------------------------------------- + + @Override + public Row14 fieldsRow() { + return (Row14) super.fieldsRow(); + } + + @Override + public Row14 valuesRow() { + return (Row14) super.valuesRow(); + } + + @Override + public Field field1() { + return SysAdmin.SYS_ADMIN.ID; + } + + @Override + public Field field2() { + return SysAdmin.SYS_ADMIN.ORG_ID; + } + + @Override + public Field field3() { + return SysAdmin.SYS_ADMIN.REALNAME; + } + + @Override + public Field field4() { + return SysAdmin.SYS_ADMIN.USERNAME; + } + + @Override + public Field field5() { + return SysAdmin.SYS_ADMIN.PASSWORD; + } + + @Override + public Field field6() { + return SysAdmin.SYS_ADMIN.PHONE; + } + + @Override + public Field field7() { + return SysAdmin.SYS_ADMIN.EMAIL; + } + + @Override + public Field field8() { + return SysAdmin.SYS_ADMIN.JOB; + } + + @Override + public Field field9() { + return SysAdmin.SYS_ADMIN.GENDER; + } + + @Override + public Field field10() { + return SysAdmin.SYS_ADMIN.ISLOCK; + } + + @Override + public Field field11() { + return SysAdmin.SYS_ADMIN.TYPE; + } + + @Override + public Field field12() { + return SysAdmin.SYS_ADMIN.SORT; + } + + @Override + public Field field13() { + return SysAdmin.SYS_ADMIN.CER_ID; + } + + @Override + public Field field14() { + return SysAdmin.SYS_ADMIN.COMPANY_ID; + } + + @Override + public String component1() { + return getId(); + } + + @Override + public String component2() { + return getOrgId(); + } + + @Override + public String component3() { + return getRealname(); + } + + @Override + public String component4() { + return getUsername(); + } + + @Override + public String component5() { + return getPassword(); + } + + @Override + public String component6() { + return getPhone(); + } + + @Override + public String component7() { + return getEmail(); + } + + @Override + public String component8() { + return getJob(); + } + + @Override + public Integer component9() { + return getGender(); + } + + @Override + public Integer component10() { + return getIslock(); + } + + @Override + public Integer component11() { + return getType(); + } + + @Override + public Integer component12() { + return getSort(); + } + + @Override + public String component13() { + return getCerId(); + } + + @Override + public String component14() { + return getCompanyId(); + } + + @Override + public String value1() { + return getId(); + } + + @Override + public String value2() { + return getOrgId(); + } + + @Override + public String value3() { + return getRealname(); + } + + @Override + public String value4() { + return getUsername(); + } + + @Override + public String value5() { + return getPassword(); + } + + @Override + public String value6() { + return getPhone(); + } + + @Override + public String value7() { + return getEmail(); + } + + @Override + public String value8() { + return getJob(); + } + + @Override + public Integer value9() { + return getGender(); + } + + @Override + public Integer value10() { + return getIslock(); + } + + @Override + public Integer value11() { + return getType(); + } + + @Override + public Integer value12() { + return getSort(); + } + + @Override + public String value13() { + return getCerId(); + } + + @Override + public String value14() { + return getCompanyId(); + } + + @Override + public SysAdminRecord value1(String value) { + setId(value); + return this; + } + + @Override + public SysAdminRecord value2(String value) { + setOrgId(value); + return this; + } + + @Override + public SysAdminRecord value3(String value) { + setRealname(value); + return this; + } + + @Override + public SysAdminRecord value4(String value) { + setUsername(value); + return this; + } + + @Override + public SysAdminRecord value5(String value) { + setPassword(value); + return this; + } + + @Override + public SysAdminRecord value6(String value) { + setPhone(value); + return this; + } + + @Override + public SysAdminRecord value7(String value) { + setEmail(value); + return this; + } + + @Override + public SysAdminRecord value8(String value) { + setJob(value); + return this; + } + + @Override + public SysAdminRecord value9(Integer value) { + setGender(value); + return this; + } + + @Override + public SysAdminRecord value10(Integer value) { + setIslock(value); + return this; + } + + @Override + public SysAdminRecord value11(Integer value) { + setType(value); + return this; + } + + @Override + public SysAdminRecord value12(Integer value) { + setSort(value); + return this; + } + + @Override + public SysAdminRecord value13(String value) { + setCerId(value); + return this; + } + + @Override + public SysAdminRecord value14(String value) { + setCompanyId(value); + return this; + } + + @Override + public SysAdminRecord values(String value1, String value2, String value3, String value4, String value5, String value6, String value7, String value8, Integer value9, Integer value10, Integer value11, Integer value12, String value13, String value14) { + value1(value1); + value2(value2); + value3(value3); + value4(value4); + value5(value5); + value6(value6); + value7(value7); + value8(value8); + value9(value9); + value10(value10); + value11(value11); + value12(value12); + value13(value13); + value14(value14); + return this; + } + + // ------------------------------------------------------------------------- + // Constructors + // ------------------------------------------------------------------------- + + /** + * Create a detached SysAdminRecord + */ + public SysAdminRecord() { + super(SysAdmin.SYS_ADMIN); + } + + /** + * Create a detached, initialised SysAdminRecord + */ + public SysAdminRecord(String id, String orgId, String realname, String username, String password, String phone, String email, String job, Integer gender, Integer islock, Integer type, Integer sort, String cerId, String companyId) { + super(SysAdmin.SYS_ADMIN); + + setId(id); + setOrgId(orgId); + setRealname(realname); + setUsername(username); + setPassword(password); + setPhone(phone); + setEmail(email); + setJob(job); + setGender(gender); + setIslock(islock); + setType(type); + setSort(sort); + setCerId(cerId); + setCompanyId(companyId); + resetChangedOnNotNull(); + } + + /** + * Create a detached, initialised SysAdminRecord + */ + public SysAdminRecord(jj.tech.paolu.repository.jooq.tables.pojos.SysAdmin value) { + super(SysAdmin.SYS_ADMIN); + + if (value != null) { + setId(value.getId()); + setOrgId(value.getOrgId()); + setRealname(value.getRealname()); + setUsername(value.getUsername()); + setPassword(value.getPassword()); + setPhone(value.getPhone()); + setEmail(value.getEmail()); + setJob(value.getJob()); + setGender(value.getGender()); + setIslock(value.getIslock()); + setType(value.getType()); + setSort(value.getSort()); + setCerId(value.getCerId()); + setCompanyId(value.getCompanyId()); + resetChangedOnNotNull(); + } + } +} diff --git a/src/main/java/jj/tech/paolu/repository/jooq/tables/records/SysAdminRoleRecord.java b/src/main/java/jj/tech/paolu/repository/jooq/tables/records/SysAdminRoleRecord.java new file mode 100644 index 0000000..2e1a206 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/jooq/tables/records/SysAdminRoleRecord.java @@ -0,0 +1,196 @@ +/* + * This file is generated by jOOQ. + */ +package jj.tech.paolu.repository.jooq.tables.records; + + +import jj.tech.paolu.repository.jooq.tables.SysAdminRole; + +import org.jooq.Field; +import org.jooq.Record1; +import org.jooq.Record3; +import org.jooq.Row3; +import org.jooq.impl.UpdatableRecordImpl; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +public class SysAdminRoleRecord extends UpdatableRecordImpl implements Record3 { + + private static final long serialVersionUID = 1L; + + /** + * Setter for public.sys_admin_role.id. + */ + public void setId(String value) { + set(0, value); + } + + /** + * Getter for public.sys_admin_role.id. + */ + public String getId() { + return (String) get(0); + } + + /** + * Setter for public.sys_admin_role.adminid. + */ + public void setAdminid(String value) { + set(1, value); + } + + /** + * Getter for public.sys_admin_role.adminid. + */ + public String getAdminid() { + return (String) get(1); + } + + /** + * Setter for public.sys_admin_role.roleid. + */ + public void setRoleid(String value) { + set(2, value); + } + + /** + * Getter for public.sys_admin_role.roleid. + */ + public String getRoleid() { + return (String) get(2); + } + + // ------------------------------------------------------------------------- + // Primary key information + // ------------------------------------------------------------------------- + + @Override + public Record1 key() { + return (Record1) super.key(); + } + + // ------------------------------------------------------------------------- + // Record3 type implementation + // ------------------------------------------------------------------------- + + @Override + public Row3 fieldsRow() { + return (Row3) super.fieldsRow(); + } + + @Override + public Row3 valuesRow() { + return (Row3) super.valuesRow(); + } + + @Override + public Field field1() { + return SysAdminRole.SYS_ADMIN_ROLE.ID; + } + + @Override + public Field field2() { + return SysAdminRole.SYS_ADMIN_ROLE.ADMINID; + } + + @Override + public Field field3() { + return SysAdminRole.SYS_ADMIN_ROLE.ROLEID; + } + + @Override + public String component1() { + return getId(); + } + + @Override + public String component2() { + return getAdminid(); + } + + @Override + public String component3() { + return getRoleid(); + } + + @Override + public String value1() { + return getId(); + } + + @Override + public String value2() { + return getAdminid(); + } + + @Override + public String value3() { + return getRoleid(); + } + + @Override + public SysAdminRoleRecord value1(String value) { + setId(value); + return this; + } + + @Override + public SysAdminRoleRecord value2(String value) { + setAdminid(value); + return this; + } + + @Override + public SysAdminRoleRecord value3(String value) { + setRoleid(value); + return this; + } + + @Override + public SysAdminRoleRecord values(String value1, String value2, String value3) { + value1(value1); + value2(value2); + value3(value3); + return this; + } + + // ------------------------------------------------------------------------- + // Constructors + // ------------------------------------------------------------------------- + + /** + * Create a detached SysAdminRoleRecord + */ + public SysAdminRoleRecord() { + super(SysAdminRole.SYS_ADMIN_ROLE); + } + + /** + * Create a detached, initialised SysAdminRoleRecord + */ + public SysAdminRoleRecord(String id, String adminid, String roleid) { + super(SysAdminRole.SYS_ADMIN_ROLE); + + setId(id); + setAdminid(adminid); + setRoleid(roleid); + resetChangedOnNotNull(); + } + + /** + * Create a detached, initialised SysAdminRoleRecord + */ + public SysAdminRoleRecord(jj.tech.paolu.repository.jooq.tables.pojos.SysAdminRole value) { + super(SysAdminRole.SYS_ADMIN_ROLE); + + if (value != null) { + setId(value.getId()); + setAdminid(value.getAdminid()); + setRoleid(value.getRoleid()); + resetChangedOnNotNull(); + } + } +} diff --git a/src/main/java/jj/tech/paolu/repository/jooq/tables/records/SysAdminWeidRecord.java b/src/main/java/jj/tech/paolu/repository/jooq/tables/records/SysAdminWeidRecord.java new file mode 100644 index 0000000..53399e4 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/jooq/tables/records/SysAdminWeidRecord.java @@ -0,0 +1,350 @@ +/* + * This file is generated by jOOQ. + */ +package jj.tech.paolu.repository.jooq.tables.records; + + +import java.time.LocalDateTime; + +import jj.tech.paolu.repository.jooq.tables.SysAdminWeid; + +import org.jooq.Field; +import org.jooq.Record1; +import org.jooq.Record7; +import org.jooq.Row7; +import org.jooq.impl.UpdatableRecordImpl; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +public class SysAdminWeidRecord extends UpdatableRecordImpl implements Record7 { + + private static final long serialVersionUID = 1L; + + /** + * Setter for public.sys_admin_weid.id. + */ + public void setId(String value) { + set(0, value); + } + + /** + * Getter for public.sys_admin_weid.id. + */ + public String getId() { + return (String) get(0); + } + + /** + * Setter for public.sys_admin_weid.admin_id. + */ + public void setAdminId(String value) { + set(1, value); + } + + /** + * Getter for public.sys_admin_weid.admin_id. + */ + public String getAdminId() { + return (String) get(1); + } + + /** + * Setter for public.sys_admin_weid.wid. + */ + public void setWid(String value) { + set(2, value); + } + + /** + * Getter for public.sys_admin_weid.wid. + */ + public String getWid() { + return (String) get(2); + } + + /** + * Setter for public.sys_admin_weid.wprivate_key. + */ + public void setWprivateKey(String value) { + set(3, value); + } + + /** + * Getter for public.sys_admin_weid.wprivate_key. + */ + public String getWprivateKey() { + return (String) get(3); + } + + /** + * Setter for public.sys_admin_weid.add_time. + */ + public void setAddTime(LocalDateTime value) { + set(4, value); + } + + /** + * Getter for public.sys_admin_weid.add_time. + */ + public LocalDateTime getAddTime() { + return (LocalDateTime) get(4); + } + + /** + * Setter for public.sys_admin_weid.certificate_hash. 存证哈希 + */ + public void setCertificateHash(String value) { + set(5, value); + } + + /** + * Getter for public.sys_admin_weid.certificate_hash. 存证哈希 + */ + public String getCertificateHash() { + return (String) get(5); + } + + /** + * Setter for public.sys_admin_weid.chain_block. + */ + public void setChainBlock(String value) { + set(6, value); + } + + /** + * Getter for public.sys_admin_weid.chain_block. + */ + public String getChainBlock() { + return (String) get(6); + } + + // ------------------------------------------------------------------------- + // Primary key information + // ------------------------------------------------------------------------- + + @Override + public Record1 key() { + return (Record1) super.key(); + } + + // ------------------------------------------------------------------------- + // Record7 type implementation + // ------------------------------------------------------------------------- + + @Override + public Row7 fieldsRow() { + return (Row7) super.fieldsRow(); + } + + @Override + public Row7 valuesRow() { + return (Row7) super.valuesRow(); + } + + @Override + public Field field1() { + return SysAdminWeid.SYS_ADMIN_WEID.ID; + } + + @Override + public Field field2() { + return SysAdminWeid.SYS_ADMIN_WEID.ADMIN_ID; + } + + @Override + public Field field3() { + return SysAdminWeid.SYS_ADMIN_WEID.WID; + } + + @Override + public Field field4() { + return SysAdminWeid.SYS_ADMIN_WEID.WPRIVATE_KEY; + } + + @Override + public Field field5() { + return SysAdminWeid.SYS_ADMIN_WEID.ADD_TIME; + } + + @Override + public Field field6() { + return SysAdminWeid.SYS_ADMIN_WEID.CERTIFICATE_HASH; + } + + @Override + public Field field7() { + return SysAdminWeid.SYS_ADMIN_WEID.CHAIN_BLOCK; + } + + @Override + public String component1() { + return getId(); + } + + @Override + public String component2() { + return getAdminId(); + } + + @Override + public String component3() { + return getWid(); + } + + @Override + public String component4() { + return getWprivateKey(); + } + + @Override + public LocalDateTime component5() { + return getAddTime(); + } + + @Override + public String component6() { + return getCertificateHash(); + } + + @Override + public String component7() { + return getChainBlock(); + } + + @Override + public String value1() { + return getId(); + } + + @Override + public String value2() { + return getAdminId(); + } + + @Override + public String value3() { + return getWid(); + } + + @Override + public String value4() { + return getWprivateKey(); + } + + @Override + public LocalDateTime value5() { + return getAddTime(); + } + + @Override + public String value6() { + return getCertificateHash(); + } + + @Override + public String value7() { + return getChainBlock(); + } + + @Override + public SysAdminWeidRecord value1(String value) { + setId(value); + return this; + } + + @Override + public SysAdminWeidRecord value2(String value) { + setAdminId(value); + return this; + } + + @Override + public SysAdminWeidRecord value3(String value) { + setWid(value); + return this; + } + + @Override + public SysAdminWeidRecord value4(String value) { + setWprivateKey(value); + return this; + } + + @Override + public SysAdminWeidRecord value5(LocalDateTime value) { + setAddTime(value); + return this; + } + + @Override + public SysAdminWeidRecord value6(String value) { + setCertificateHash(value); + return this; + } + + @Override + public SysAdminWeidRecord value7(String value) { + setChainBlock(value); + return this; + } + + @Override + public SysAdminWeidRecord values(String value1, String value2, String value3, String value4, LocalDateTime value5, String value6, String value7) { + value1(value1); + value2(value2); + value3(value3); + value4(value4); + value5(value5); + value6(value6); + value7(value7); + return this; + } + + // ------------------------------------------------------------------------- + // Constructors + // ------------------------------------------------------------------------- + + /** + * Create a detached SysAdminWeidRecord + */ + public SysAdminWeidRecord() { + super(SysAdminWeid.SYS_ADMIN_WEID); + } + + /** + * Create a detached, initialised SysAdminWeidRecord + */ + public SysAdminWeidRecord(String id, String adminId, String wid, String wprivateKey, LocalDateTime addTime, String certificateHash, String chainBlock) { + super(SysAdminWeid.SYS_ADMIN_WEID); + + setId(id); + setAdminId(adminId); + setWid(wid); + setWprivateKey(wprivateKey); + setAddTime(addTime); + setCertificateHash(certificateHash); + setChainBlock(chainBlock); + resetChangedOnNotNull(); + } + + /** + * Create a detached, initialised SysAdminWeidRecord + */ + public SysAdminWeidRecord(jj.tech.paolu.repository.jooq.tables.pojos.SysAdminWeid value) { + super(SysAdminWeid.SYS_ADMIN_WEID); + + if (value != null) { + setId(value.getId()); + setAdminId(value.getAdminId()); + setWid(value.getWid()); + setWprivateKey(value.getWprivateKey()); + setAddTime(value.getAddTime()); + setCertificateHash(value.getCertificateHash()); + setChainBlock(value.getChainBlock()); + resetChangedOnNotNull(); + } + } +} diff --git a/src/main/java/jj/tech/paolu/repository/jooq/tables/records/SysAreaRecord.java b/src/main/java/jj/tech/paolu/repository/jooq/tables/records/SysAreaRecord.java new file mode 100644 index 0000000..918a0a3 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/jooq/tables/records/SysAreaRecord.java @@ -0,0 +1,348 @@ +/* + * This file is generated by jOOQ. + */ +package jj.tech.paolu.repository.jooq.tables.records; + + +import jj.tech.paolu.repository.jooq.tables.SysArea; + +import org.jooq.Field; +import org.jooq.Record1; +import org.jooq.Record7; +import org.jooq.Row7; +import org.jooq.impl.UpdatableRecordImpl; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +public class SysAreaRecord extends UpdatableRecordImpl implements Record7 { + + private static final long serialVersionUID = 1L; + + /** + * Setter for public.sys_area.id. + */ + public void setId(String value) { + set(0, value); + } + + /** + * Getter for public.sys_area.id. + */ + public String getId() { + return (String) get(0); + } + + /** + * Setter for public.sys_area.level_code. + */ + public void setLevelCode(Short value) { + set(1, value); + } + + /** + * Getter for public.sys_area.level_code. + */ + public Short getLevelCode() { + return (Short) get(1); + } + + /** + * Setter for public.sys_area.parent_code. + */ + public void setParentCode(String value) { + set(2, value); + } + + /** + * Getter for public.sys_area.parent_code. + */ + public String getParentCode() { + return (String) get(2); + } + + /** + * Setter for public.sys_area.area_code. + */ + public void setAreaCode(String value) { + set(3, value); + } + + /** + * Getter for public.sys_area.area_code. + */ + public String getAreaCode() { + return (String) get(3); + } + + /** + * Setter for public.sys_area.name. + */ + public void setName(String value) { + set(4, value); + } + + /** + * Getter for public.sys_area.name. + */ + public String getName() { + return (String) get(4); + } + + /** + * Setter for public.sys_area.pid. + */ + public void setPid(String value) { + set(5, value); + } + + /** + * Getter for public.sys_area.pid. + */ + public String getPid() { + return (String) get(5); + } + + /** + * Setter for public.sys_area.pids. + */ + public void setPids(String value) { + set(6, value); + } + + /** + * Getter for public.sys_area.pids. + */ + public String getPids() { + return (String) get(6); + } + + // ------------------------------------------------------------------------- + // Primary key information + // ------------------------------------------------------------------------- + + @Override + public Record1 key() { + return (Record1) super.key(); + } + + // ------------------------------------------------------------------------- + // Record7 type implementation + // ------------------------------------------------------------------------- + + @Override + public Row7 fieldsRow() { + return (Row7) super.fieldsRow(); + } + + @Override + public Row7 valuesRow() { + return (Row7) super.valuesRow(); + } + + @Override + public Field field1() { + return SysArea.SYS_AREA.ID; + } + + @Override + public Field field2() { + return SysArea.SYS_AREA.LEVEL_CODE; + } + + @Override + public Field field3() { + return SysArea.SYS_AREA.PARENT_CODE; + } + + @Override + public Field field4() { + return SysArea.SYS_AREA.AREA_CODE; + } + + @Override + public Field field5() { + return SysArea.SYS_AREA.NAME; + } + + @Override + public Field field6() { + return SysArea.SYS_AREA.PID; + } + + @Override + public Field field7() { + return SysArea.SYS_AREA.PIDS; + } + + @Override + public String component1() { + return getId(); + } + + @Override + public Short component2() { + return getLevelCode(); + } + + @Override + public String component3() { + return getParentCode(); + } + + @Override + public String component4() { + return getAreaCode(); + } + + @Override + public String component5() { + return getName(); + } + + @Override + public String component6() { + return getPid(); + } + + @Override + public String component7() { + return getPids(); + } + + @Override + public String value1() { + return getId(); + } + + @Override + public Short value2() { + return getLevelCode(); + } + + @Override + public String value3() { + return getParentCode(); + } + + @Override + public String value4() { + return getAreaCode(); + } + + @Override + public String value5() { + return getName(); + } + + @Override + public String value6() { + return getPid(); + } + + @Override + public String value7() { + return getPids(); + } + + @Override + public SysAreaRecord value1(String value) { + setId(value); + return this; + } + + @Override + public SysAreaRecord value2(Short value) { + setLevelCode(value); + return this; + } + + @Override + public SysAreaRecord value3(String value) { + setParentCode(value); + return this; + } + + @Override + public SysAreaRecord value4(String value) { + setAreaCode(value); + return this; + } + + @Override + public SysAreaRecord value5(String value) { + setName(value); + return this; + } + + @Override + public SysAreaRecord value6(String value) { + setPid(value); + return this; + } + + @Override + public SysAreaRecord value7(String value) { + setPids(value); + return this; + } + + @Override + public SysAreaRecord values(String value1, Short value2, String value3, String value4, String value5, String value6, String value7) { + value1(value1); + value2(value2); + value3(value3); + value4(value4); + value5(value5); + value6(value6); + value7(value7); + return this; + } + + // ------------------------------------------------------------------------- + // Constructors + // ------------------------------------------------------------------------- + + /** + * Create a detached SysAreaRecord + */ + public SysAreaRecord() { + super(SysArea.SYS_AREA); + } + + /** + * Create a detached, initialised SysAreaRecord + */ + public SysAreaRecord(String id, Short levelCode, String parentCode, String areaCode, String name, String pid, String pids) { + super(SysArea.SYS_AREA); + + setId(id); + setLevelCode(levelCode); + setParentCode(parentCode); + setAreaCode(areaCode); + setName(name); + setPid(pid); + setPids(pids); + resetChangedOnNotNull(); + } + + /** + * Create a detached, initialised SysAreaRecord + */ + public SysAreaRecord(jj.tech.paolu.repository.jooq.tables.pojos.SysArea value) { + super(SysArea.SYS_AREA); + + if (value != null) { + setId(value.getId()); + setLevelCode(value.getLevelCode()); + setParentCode(value.getParentCode()); + setAreaCode(value.getAreaCode()); + setName(value.getName()); + setPid(value.getPid()); + setPids(value.getPids()); + resetChangedOnNotNull(); + } + } +} diff --git a/src/main/java/jj/tech/paolu/repository/jooq/tables/records/SysConfigRecord.java b/src/main/java/jj/tech/paolu/repository/jooq/tables/records/SysConfigRecord.java new file mode 100644 index 0000000..b1b62c1 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/jooq/tables/records/SysConfigRecord.java @@ -0,0 +1,350 @@ +/* + * This file is generated by jOOQ. + */ +package jj.tech.paolu.repository.jooq.tables.records; + + +import java.time.LocalDateTime; + +import jj.tech.paolu.repository.jooq.tables.SysConfig; + +import org.jooq.Field; +import org.jooq.Record1; +import org.jooq.Record7; +import org.jooq.Row7; +import org.jooq.impl.UpdatableRecordImpl; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +public class SysConfigRecord extends UpdatableRecordImpl implements Record7 { + + private static final long serialVersionUID = 1L; + + /** + * Setter for public.sys_config.id. + */ + public void setId(String value) { + set(0, value); + } + + /** + * Getter for public.sys_config.id. + */ + public String getId() { + return (String) get(0); + } + + /** + * Setter for public.sys_config.subgroup. + */ + public void setSubgroup(String value) { + set(1, value); + } + + /** + * Getter for public.sys_config.subgroup. + */ + public String getSubgroup() { + return (String) get(1); + } + + /** + * Setter for public.sys_config.keys. + */ + public void setKeys(String value) { + set(2, value); + } + + /** + * Getter for public.sys_config.keys. + */ + public String getKeys() { + return (String) get(2); + } + + /** + * Setter for public.sys_config.val. + */ + public void setVal(String value) { + set(3, value); + } + + /** + * Getter for public.sys_config.val. + */ + public String getVal() { + return (String) get(3); + } + + /** + * Setter for public.sys_config.admin_id. + */ + public void setAdminId(String value) { + set(4, value); + } + + /** + * Getter for public.sys_config.admin_id. + */ + public String getAdminId() { + return (String) get(4); + } + + /** + * Setter for public.sys_config.adminname. + */ + public void setAdminname(String value) { + set(5, value); + } + + /** + * Getter for public.sys_config.adminname. + */ + public String getAdminname() { + return (String) get(5); + } + + /** + * Setter for public.sys_config.edittime. + */ + public void setEdittime(LocalDateTime value) { + set(6, value); + } + + /** + * Getter for public.sys_config.edittime. + */ + public LocalDateTime getEdittime() { + return (LocalDateTime) get(6); + } + + // ------------------------------------------------------------------------- + // Primary key information + // ------------------------------------------------------------------------- + + @Override + public Record1 key() { + return (Record1) super.key(); + } + + // ------------------------------------------------------------------------- + // Record7 type implementation + // ------------------------------------------------------------------------- + + @Override + public Row7 fieldsRow() { + return (Row7) super.fieldsRow(); + } + + @Override + public Row7 valuesRow() { + return (Row7) super.valuesRow(); + } + + @Override + public Field field1() { + return SysConfig.SYS_CONFIG.ID; + } + + @Override + public Field field2() { + return SysConfig.SYS_CONFIG.SUBGROUP; + } + + @Override + public Field field3() { + return SysConfig.SYS_CONFIG.KEYS; + } + + @Override + public Field field4() { + return SysConfig.SYS_CONFIG.VAL; + } + + @Override + public Field field5() { + return SysConfig.SYS_CONFIG.ADMIN_ID; + } + + @Override + public Field field6() { + return SysConfig.SYS_CONFIG.ADMINNAME; + } + + @Override + public Field field7() { + return SysConfig.SYS_CONFIG.EDITTIME; + } + + @Override + public String component1() { + return getId(); + } + + @Override + public String component2() { + return getSubgroup(); + } + + @Override + public String component3() { + return getKeys(); + } + + @Override + public String component4() { + return getVal(); + } + + @Override + public String component5() { + return getAdminId(); + } + + @Override + public String component6() { + return getAdminname(); + } + + @Override + public LocalDateTime component7() { + return getEdittime(); + } + + @Override + public String value1() { + return getId(); + } + + @Override + public String value2() { + return getSubgroup(); + } + + @Override + public String value3() { + return getKeys(); + } + + @Override + public String value4() { + return getVal(); + } + + @Override + public String value5() { + return getAdminId(); + } + + @Override + public String value6() { + return getAdminname(); + } + + @Override + public LocalDateTime value7() { + return getEdittime(); + } + + @Override + public SysConfigRecord value1(String value) { + setId(value); + return this; + } + + @Override + public SysConfigRecord value2(String value) { + setSubgroup(value); + return this; + } + + @Override + public SysConfigRecord value3(String value) { + setKeys(value); + return this; + } + + @Override + public SysConfigRecord value4(String value) { + setVal(value); + return this; + } + + @Override + public SysConfigRecord value5(String value) { + setAdminId(value); + return this; + } + + @Override + public SysConfigRecord value6(String value) { + setAdminname(value); + return this; + } + + @Override + public SysConfigRecord value7(LocalDateTime value) { + setEdittime(value); + return this; + } + + @Override + public SysConfigRecord values(String value1, String value2, String value3, String value4, String value5, String value6, LocalDateTime value7) { + value1(value1); + value2(value2); + value3(value3); + value4(value4); + value5(value5); + value6(value6); + value7(value7); + return this; + } + + // ------------------------------------------------------------------------- + // Constructors + // ------------------------------------------------------------------------- + + /** + * Create a detached SysConfigRecord + */ + public SysConfigRecord() { + super(SysConfig.SYS_CONFIG); + } + + /** + * Create a detached, initialised SysConfigRecord + */ + public SysConfigRecord(String id, String subgroup, String keys, String val, String adminId, String adminname, LocalDateTime edittime) { + super(SysConfig.SYS_CONFIG); + + setId(id); + setSubgroup(subgroup); + setKeys(keys); + setVal(val); + setAdminId(adminId); + setAdminname(adminname); + setEdittime(edittime); + resetChangedOnNotNull(); + } + + /** + * Create a detached, initialised SysConfigRecord + */ + public SysConfigRecord(jj.tech.paolu.repository.jooq.tables.pojos.SysConfig value) { + super(SysConfig.SYS_CONFIG); + + if (value != null) { + setId(value.getId()); + setSubgroup(value.getSubgroup()); + setKeys(value.getKeys()); + setVal(value.getVal()); + setAdminId(value.getAdminId()); + setAdminname(value.getAdminname()); + setEdittime(value.getEdittime()); + resetChangedOnNotNull(); + } + } +} diff --git a/src/main/java/jj/tech/paolu/repository/jooq/tables/records/SysMenuRecord.java b/src/main/java/jj/tech/paolu/repository/jooq/tables/records/SysMenuRecord.java new file mode 100644 index 0000000..926d773 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/jooq/tables/records/SysMenuRecord.java @@ -0,0 +1,500 @@ +/* + * This file is generated by jOOQ. + */ +package jj.tech.paolu.repository.jooq.tables.records; + + +import jj.tech.paolu.repository.jooq.tables.SysMenu; + +import org.jooq.Field; +import org.jooq.Record1; +import org.jooq.Record11; +import org.jooq.Row11; +import org.jooq.impl.UpdatableRecordImpl; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +public class SysMenuRecord extends UpdatableRecordImpl implements Record11 { + + private static final long serialVersionUID = 1L; + + /** + * Setter for public.sys_menu.id. + */ + public void setId(String value) { + set(0, value); + } + + /** + * Getter for public.sys_menu.id. + */ + public String getId() { + return (String) get(0); + } + + /** + * Setter for public.sys_menu.parent_id. + */ + public void setParentId(String value) { + set(1, value); + } + + /** + * Getter for public.sys_menu.parent_id. + */ + public String getParentId() { + return (String) get(1); + } + + /** + * Setter for public.sys_menu.level. + */ + public void setLevel(Integer value) { + set(2, value); + } + + /** + * Getter for public.sys_menu.level. + */ + public Integer getLevel() { + return (Integer) get(2); + } + + /** + * Setter for public.sys_menu.name. + */ + public void setName(String value) { + set(3, value); + } + + /** + * Getter for public.sys_menu.name. + */ + public String getName() { + return (String) get(3); + } + + /** + * Setter for public.sys_menu.types. + */ + public void setTypes(String value) { + set(4, value); + } + + /** + * Getter for public.sys_menu.types. + */ + public String getTypes() { + return (String) get(4); + } + + /** + * Setter for public.sys_menu.url. + */ + public void setUrl(String value) { + set(5, value); + } + + /** + * Getter for public.sys_menu.url. + */ + public String getUrl() { + return (String) get(5); + } + + /** + * Setter for public.sys_menu.icon. + */ + public void setIcon(String value) { + set(6, value); + } + + /** + * Getter for public.sys_menu.icon. + */ + public String getIcon() { + return (String) get(6); + } + + /** + * Setter for public.sys_menu.is_open. + */ + public void setIsOpen(Integer value) { + set(7, value); + } + + /** + * Getter for public.sys_menu.is_open. + */ + public Integer getIsOpen() { + return (Integer) get(7); + } + + /** + * Setter for public.sys_menu.description. + */ + public void setDescription(String value) { + set(8, value); + } + + /** + * Getter for public.sys_menu.description. + */ + public String getDescription() { + return (String) get(8); + } + + /** + * Setter for public.sys_menu.sort. + */ + public void setSort(Integer value) { + set(9, value); + } + + /** + * Getter for public.sys_menu.sort. + */ + public Integer getSort() { + return (Integer) get(9); + } + + /** + * Setter for public.sys_menu.parentpath. + */ + public void setParentpath(String value) { + set(10, value); + } + + /** + * Getter for public.sys_menu.parentpath. + */ + public String getParentpath() { + return (String) get(10); + } + + // ------------------------------------------------------------------------- + // Primary key information + // ------------------------------------------------------------------------- + + @Override + public Record1 key() { + return (Record1) super.key(); + } + + // ------------------------------------------------------------------------- + // Record11 type implementation + // ------------------------------------------------------------------------- + + @Override + public Row11 fieldsRow() { + return (Row11) super.fieldsRow(); + } + + @Override + public Row11 valuesRow() { + return (Row11) super.valuesRow(); + } + + @Override + public Field field1() { + return SysMenu.SYS_MENU.ID; + } + + @Override + public Field field2() { + return SysMenu.SYS_MENU.PARENT_ID; + } + + @Override + public Field field3() { + return SysMenu.SYS_MENU.LEVEL; + } + + @Override + public Field field4() { + return SysMenu.SYS_MENU.NAME; + } + + @Override + public Field field5() { + return SysMenu.SYS_MENU.TYPES; + } + + @Override + public Field field6() { + return SysMenu.SYS_MENU.URL; + } + + @Override + public Field field7() { + return SysMenu.SYS_MENU.ICON; + } + + @Override + public Field field8() { + return SysMenu.SYS_MENU.IS_OPEN; + } + + @Override + public Field field9() { + return SysMenu.SYS_MENU.DESCRIPTION; + } + + @Override + public Field field10() { + return SysMenu.SYS_MENU.SORT; + } + + @Override + public Field field11() { + return SysMenu.SYS_MENU.PARENTPATH; + } + + @Override + public String component1() { + return getId(); + } + + @Override + public String component2() { + return getParentId(); + } + + @Override + public Integer component3() { + return getLevel(); + } + + @Override + public String component4() { + return getName(); + } + + @Override + public String component5() { + return getTypes(); + } + + @Override + public String component6() { + return getUrl(); + } + + @Override + public String component7() { + return getIcon(); + } + + @Override + public Integer component8() { + return getIsOpen(); + } + + @Override + public String component9() { + return getDescription(); + } + + @Override + public Integer component10() { + return getSort(); + } + + @Override + public String component11() { + return getParentpath(); + } + + @Override + public String value1() { + return getId(); + } + + @Override + public String value2() { + return getParentId(); + } + + @Override + public Integer value3() { + return getLevel(); + } + + @Override + public String value4() { + return getName(); + } + + @Override + public String value5() { + return getTypes(); + } + + @Override + public String value6() { + return getUrl(); + } + + @Override + public String value7() { + return getIcon(); + } + + @Override + public Integer value8() { + return getIsOpen(); + } + + @Override + public String value9() { + return getDescription(); + } + + @Override + public Integer value10() { + return getSort(); + } + + @Override + public String value11() { + return getParentpath(); + } + + @Override + public SysMenuRecord value1(String value) { + setId(value); + return this; + } + + @Override + public SysMenuRecord value2(String value) { + setParentId(value); + return this; + } + + @Override + public SysMenuRecord value3(Integer value) { + setLevel(value); + return this; + } + + @Override + public SysMenuRecord value4(String value) { + setName(value); + return this; + } + + @Override + public SysMenuRecord value5(String value) { + setTypes(value); + return this; + } + + @Override + public SysMenuRecord value6(String value) { + setUrl(value); + return this; + } + + @Override + public SysMenuRecord value7(String value) { + setIcon(value); + return this; + } + + @Override + public SysMenuRecord value8(Integer value) { + setIsOpen(value); + return this; + } + + @Override + public SysMenuRecord value9(String value) { + setDescription(value); + return this; + } + + @Override + public SysMenuRecord value10(Integer value) { + setSort(value); + return this; + } + + @Override + public SysMenuRecord value11(String value) { + setParentpath(value); + return this; + } + + @Override + public SysMenuRecord values(String value1, String value2, Integer value3, String value4, String value5, String value6, String value7, Integer value8, String value9, Integer value10, String value11) { + value1(value1); + value2(value2); + value3(value3); + value4(value4); + value5(value5); + value6(value6); + value7(value7); + value8(value8); + value9(value9); + value10(value10); + value11(value11); + return this; + } + + // ------------------------------------------------------------------------- + // Constructors + // ------------------------------------------------------------------------- + + /** + * Create a detached SysMenuRecord + */ + public SysMenuRecord() { + super(SysMenu.SYS_MENU); + } + + /** + * Create a detached, initialised SysMenuRecord + */ + public SysMenuRecord(String id, String parentId, Integer level, String name, String types, String url, String icon, Integer isOpen, String description, Integer sort, String parentpath) { + super(SysMenu.SYS_MENU); + + setId(id); + setParentId(parentId); + setLevel(level); + setName(name); + setTypes(types); + setUrl(url); + setIcon(icon); + setIsOpen(isOpen); + setDescription(description); + setSort(sort); + setParentpath(parentpath); + resetChangedOnNotNull(); + } + + /** + * Create a detached, initialised SysMenuRecord + */ + public SysMenuRecord(jj.tech.paolu.repository.jooq.tables.pojos.SysMenu value) { + super(SysMenu.SYS_MENU); + + if (value != null) { + setId(value.getId()); + setParentId(value.getParentId()); + setLevel(value.getLevel()); + setName(value.getName()); + setTypes(value.getTypes()); + setUrl(value.getUrl()); + setIcon(value.getIcon()); + setIsOpen(value.getIsOpen()); + setDescription(value.getDescription()); + setSort(value.getSort()); + setParentpath(value.getParentpath()); + resetChangedOnNotNull(); + } + } +} diff --git a/src/main/java/jj/tech/paolu/repository/jooq/tables/records/SysOrgRecord.java b/src/main/java/jj/tech/paolu/repository/jooq/tables/records/SysOrgRecord.java new file mode 100644 index 0000000..5e1910b --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/jooq/tables/records/SysOrgRecord.java @@ -0,0 +1,542 @@ +/* + * This file is generated by jOOQ. + */ +package jj.tech.paolu.repository.jooq.tables.records; + + +import java.time.LocalDateTime; + +import jj.tech.paolu.repository.jooq.tables.SysOrg; + +import org.jooq.Record1; +import org.jooq.impl.UpdatableRecordImpl; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +public class SysOrgRecord extends UpdatableRecordImpl { + + private static final long serialVersionUID = 1L; + + /** + * Setter for public.sys_org.id. + */ + public void setId(String value) { + set(0, value); + } + + /** + * Getter for public.sys_org.id. + */ + public String getId() { + return (String) get(0); + } + + /** + * Setter for public.sys_org.pid. + */ + public void setPid(String value) { + set(1, value); + } + + /** + * Getter for public.sys_org.pid. + */ + public String getPid() { + return (String) get(1); + } + + /** + * Setter for public.sys_org.chinese_simple_name. + */ + public void setChineseSimpleName(String value) { + set(2, value); + } + + /** + * Getter for public.sys_org.chinese_simple_name. + */ + public String getChineseSimpleName() { + return (String) get(2); + } + + /** + * Setter for public.sys_org.english_simple_name. + */ + public void setEnglishSimpleName(String value) { + set(3, value); + } + + /** + * Getter for public.sys_org.english_simple_name. + */ + public String getEnglishSimpleName() { + return (String) get(3); + } + + /** + * Setter for public.sys_org.chinese_full_name. + */ + public void setChineseFullName(String value) { + set(4, value); + } + + /** + * Getter for public.sys_org.chinese_full_name. + */ + public String getChineseFullName() { + return (String) get(4); + } + + /** + * Setter for public.sys_org.english_full_name. + */ + public void setEnglishFullName(String value) { + set(5, value); + } + + /** + * Getter for public.sys_org.english_full_name. + */ + public String getEnglishFullName() { + return (String) get(5); + } + + /** + * Setter for public.sys_org.code. + */ + public void setCode(String value) { + set(6, value); + } + + /** + * Getter for public.sys_org.code. + */ + public String getCode() { + return (String) get(6); + } + + /** + * Setter for public.sys_org.sort. + */ + public void setSort(Integer value) { + set(7, value); + } + + /** + * Getter for public.sys_org.sort. + */ + public Integer getSort() { + return (Integer) get(7); + } + + /** + * Setter for public.sys_org.status. + */ + public void setStatus(Integer value) { + set(8, value); + } + + /** + * Getter for public.sys_org.status. + */ + public Integer getStatus() { + return (Integer) get(8); + } + + /** + * Setter for public.sys_org.is_company_department. + */ + public void setIsCompanyDepartment(Integer value) { + set(9, value); + } + + /** + * Getter for public.sys_org.is_company_department. + */ + public Integer getIsCompanyDepartment() { + return (Integer) get(9); + } + + /** + * Setter for public.sys_org.enterprise_legal_person. + */ + public void setEnterpriseLegalPerson(String value) { + set(10, value); + } + + /** + * Getter for public.sys_org.enterprise_legal_person. + */ + public String getEnterpriseLegalPerson() { + return (String) get(10); + } + + /** + * Setter for public.sys_org.contact_person. + */ + public void setContactPerson(String value) { + set(11, value); + } + + /** + * Getter for public.sys_org.contact_person. + */ + public String getContactPerson() { + return (String) get(11); + } + + /** + * Setter for public.sys_org.contact_phone. + */ + public void setContactPhone(String value) { + set(12, value); + } + + /** + * Getter for public.sys_org.contact_phone. + */ + public String getContactPhone() { + return (String) get(12); + } + + /** + * Setter for public.sys_org.remark. + */ + public void setRemark(String value) { + set(13, value); + } + + /** + * Getter for public.sys_org.remark. + */ + public String getRemark() { + return (String) get(13); + } + + /** + * Setter for public.sys_org.create_time. + */ + public void setCreateTime(LocalDateTime value) { + set(14, value); + } + + /** + * Getter for public.sys_org.create_time. + */ + public LocalDateTime getCreateTime() { + return (LocalDateTime) get(14); + } + + /** + * Setter for public.sys_org.create_user. + */ + public void setCreateUser(String value) { + set(15, value); + } + + /** + * Getter for public.sys_org.create_user. + */ + public String getCreateUser() { + return (String) get(15); + } + + /** + * Setter for public.sys_org.update_time. + */ + public void setUpdateTime(LocalDateTime value) { + set(16, value); + } + + /** + * Getter for public.sys_org.update_time. + */ + public LocalDateTime getUpdateTime() { + return (LocalDateTime) get(16); + } + + /** + * Setter for public.sys_org.update_user. + */ + public void setUpdateUser(String value) { + set(17, value); + } + + /** + * Getter for public.sys_org.update_user. + */ + public String getUpdateUser() { + return (String) get(17); + } + + /** + * Setter for public.sys_org.name. + */ + public void setName(String value) { + set(18, value); + } + + /** + * Getter for public.sys_org.name. + */ + public String getName() { + return (String) get(18); + } + + /** + * Setter for public.sys_org.industry_name. + */ + public void setIndustryName(String value) { + set(19, value); + } + + /** + * Getter for public.sys_org.industry_name. + */ + public String getIndustryName() { + return (String) get(19); + } + + /** + * Setter for public.sys_org.industry_code. + */ + public void setIndustryCode(String value) { + set(20, value); + } + + /** + * Getter for public.sys_org.industry_code. + */ + public String getIndustryCode() { + return (String) get(20); + } + + /** + * Setter for public.sys_org.province_code. + */ + public void setProvinceCode(String value) { + set(21, value); + } + + /** + * Getter for public.sys_org.province_code. + */ + public String getProvinceCode() { + return (String) get(21); + } + + /** + * Setter for public.sys_org.city_code. + */ + public void setCityCode(String value) { + set(22, value); + } + + /** + * Getter for public.sys_org.city_code. + */ + public String getCityCode() { + return (String) get(22); + } + + /** + * Setter for public.sys_org.area_code. + */ + public void setAreaCode(String value) { + set(23, value); + } + + /** + * Getter for public.sys_org.area_code. + */ + public String getAreaCode() { + return (String) get(23); + } + + /** + * Setter for public.sys_org.addr. + */ + public void setAddr(String value) { + set(24, value); + } + + /** + * Getter for public.sys_org.addr. + */ + public String getAddr() { + return (String) get(24); + } + + /** + * Setter for public.sys_org.uscc. + */ + public void setUscc(String value) { + set(25, value); + } + + /** + * Getter for public.sys_org.uscc. + */ + public String getUscc() { + return (String) get(25); + } + + /** + * Setter for public.sys_org.org_type. + */ + public void setOrgType(String value) { + set(26, value); + } + + /** + * Getter for public.sys_org.org_type. + */ + public String getOrgType() { + return (String) get(26); + } + + /** + * Setter for public.sys_org.is_archives_dep. + */ + public void setIsArchivesDep(Integer value) { + set(27, value); + } + + /** + * Getter for public.sys_org.is_archives_dep. + */ + public Integer getIsArchivesDep() { + return (Integer) get(27); + } + + /** + * Setter for public.sys_org.cer_id. + */ + public void setCerId(String value) { + set(28, value); + } + + /** + * Getter for public.sys_org.cer_id. + */ + public String getCerId() { + return (String) get(28); + } + + /** + * Setter for public.sys_org.is_forbidden. + */ + public void setIsForbidden(Integer value) { + set(29, value); + } + + /** + * Getter for public.sys_org.is_forbidden. + */ + public Integer getIsForbidden() { + return (Integer) get(29); + } + + // ------------------------------------------------------------------------- + // Primary key information + // ------------------------------------------------------------------------- + + @Override + public Record1 key() { + return (Record1) super.key(); + } + + // ------------------------------------------------------------------------- + // Constructors + // ------------------------------------------------------------------------- + + /** + * Create a detached SysOrgRecord + */ + public SysOrgRecord() { + super(SysOrg.SYS_ORG); + } + + /** + * Create a detached, initialised SysOrgRecord + */ + public SysOrgRecord(String id, String pid, String chineseSimpleName, String englishSimpleName, String chineseFullName, String englishFullName, String code, Integer sort, Integer status, Integer isCompanyDepartment, String enterpriseLegalPerson, String contactPerson, String contactPhone, String remark, LocalDateTime createTime, String createUser, LocalDateTime updateTime, String updateUser, String name, String industryName, String industryCode, String provinceCode, String cityCode, String areaCode, String addr, String uscc, String orgType, Integer isArchivesDep, String cerId, Integer isForbidden) { + super(SysOrg.SYS_ORG); + + setId(id); + setPid(pid); + setChineseSimpleName(chineseSimpleName); + setEnglishSimpleName(englishSimpleName); + setChineseFullName(chineseFullName); + setEnglishFullName(englishFullName); + setCode(code); + setSort(sort); + setStatus(status); + setIsCompanyDepartment(isCompanyDepartment); + setEnterpriseLegalPerson(enterpriseLegalPerson); + setContactPerson(contactPerson); + setContactPhone(contactPhone); + setRemark(remark); + setCreateTime(createTime); + setCreateUser(createUser); + setUpdateTime(updateTime); + setUpdateUser(updateUser); + setName(name); + setIndustryName(industryName); + setIndustryCode(industryCode); + setProvinceCode(provinceCode); + setCityCode(cityCode); + setAreaCode(areaCode); + setAddr(addr); + setUscc(uscc); + setOrgType(orgType); + setIsArchivesDep(isArchivesDep); + setCerId(cerId); + setIsForbidden(isForbidden); + resetChangedOnNotNull(); + } + + /** + * Create a detached, initialised SysOrgRecord + */ + public SysOrgRecord(jj.tech.paolu.repository.jooq.tables.pojos.SysOrg value) { + super(SysOrg.SYS_ORG); + + if (value != null) { + setId(value.getId()); + setPid(value.getPid()); + setChineseSimpleName(value.getChineseSimpleName()); + setEnglishSimpleName(value.getEnglishSimpleName()); + setChineseFullName(value.getChineseFullName()); + setEnglishFullName(value.getEnglishFullName()); + setCode(value.getCode()); + setSort(value.getSort()); + setStatus(value.getStatus()); + setIsCompanyDepartment(value.getIsCompanyDepartment()); + setEnterpriseLegalPerson(value.getEnterpriseLegalPerson()); + setContactPerson(value.getContactPerson()); + setContactPhone(value.getContactPhone()); + setRemark(value.getRemark()); + setCreateTime(value.getCreateTime()); + setCreateUser(value.getCreateUser()); + setUpdateTime(value.getUpdateTime()); + setUpdateUser(value.getUpdateUser()); + setName(value.getName()); + setIndustryName(value.getIndustryName()); + setIndustryCode(value.getIndustryCode()); + setProvinceCode(value.getProvinceCode()); + setCityCode(value.getCityCode()); + setAreaCode(value.getAreaCode()); + setAddr(value.getAddr()); + setUscc(value.getUscc()); + setOrgType(value.getOrgType()); + setIsArchivesDep(value.getIsArchivesDep()); + setCerId(value.getCerId()); + setIsForbidden(value.getIsForbidden()); + resetChangedOnNotNull(); + } + } +} diff --git a/src/main/java/jj/tech/paolu/repository/jooq/tables/records/SysRoleMenuRecord.java b/src/main/java/jj/tech/paolu/repository/jooq/tables/records/SysRoleMenuRecord.java new file mode 100644 index 0000000..efe8c04 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/jooq/tables/records/SysRoleMenuRecord.java @@ -0,0 +1,196 @@ +/* + * This file is generated by jOOQ. + */ +package jj.tech.paolu.repository.jooq.tables.records; + + +import jj.tech.paolu.repository.jooq.tables.SysRoleMenu; + +import org.jooq.Field; +import org.jooq.Record1; +import org.jooq.Record3; +import org.jooq.Row3; +import org.jooq.impl.UpdatableRecordImpl; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +public class SysRoleMenuRecord extends UpdatableRecordImpl implements Record3 { + + private static final long serialVersionUID = 1L; + + /** + * Setter for public.sys_role_menu.id. + */ + public void setId(String value) { + set(0, value); + } + + /** + * Getter for public.sys_role_menu.id. + */ + public String getId() { + return (String) get(0); + } + + /** + * Setter for public.sys_role_menu.roleid. + */ + public void setRoleid(String value) { + set(1, value); + } + + /** + * Getter for public.sys_role_menu.roleid. + */ + public String getRoleid() { + return (String) get(1); + } + + /** + * Setter for public.sys_role_menu.menuid. + */ + public void setMenuid(String value) { + set(2, value); + } + + /** + * Getter for public.sys_role_menu.menuid. + */ + public String getMenuid() { + return (String) get(2); + } + + // ------------------------------------------------------------------------- + // Primary key information + // ------------------------------------------------------------------------- + + @Override + public Record1 key() { + return (Record1) super.key(); + } + + // ------------------------------------------------------------------------- + // Record3 type implementation + // ------------------------------------------------------------------------- + + @Override + public Row3 fieldsRow() { + return (Row3) super.fieldsRow(); + } + + @Override + public Row3 valuesRow() { + return (Row3) super.valuesRow(); + } + + @Override + public Field field1() { + return SysRoleMenu.SYS_ROLE_MENU.ID; + } + + @Override + public Field field2() { + return SysRoleMenu.SYS_ROLE_MENU.ROLEID; + } + + @Override + public Field field3() { + return SysRoleMenu.SYS_ROLE_MENU.MENUID; + } + + @Override + public String component1() { + return getId(); + } + + @Override + public String component2() { + return getRoleid(); + } + + @Override + public String component3() { + return getMenuid(); + } + + @Override + public String value1() { + return getId(); + } + + @Override + public String value2() { + return getRoleid(); + } + + @Override + public String value3() { + return getMenuid(); + } + + @Override + public SysRoleMenuRecord value1(String value) { + setId(value); + return this; + } + + @Override + public SysRoleMenuRecord value2(String value) { + setRoleid(value); + return this; + } + + @Override + public SysRoleMenuRecord value3(String value) { + setMenuid(value); + return this; + } + + @Override + public SysRoleMenuRecord values(String value1, String value2, String value3) { + value1(value1); + value2(value2); + value3(value3); + return this; + } + + // ------------------------------------------------------------------------- + // Constructors + // ------------------------------------------------------------------------- + + /** + * Create a detached SysRoleMenuRecord + */ + public SysRoleMenuRecord() { + super(SysRoleMenu.SYS_ROLE_MENU); + } + + /** + * Create a detached, initialised SysRoleMenuRecord + */ + public SysRoleMenuRecord(String id, String roleid, String menuid) { + super(SysRoleMenu.SYS_ROLE_MENU); + + setId(id); + setRoleid(roleid); + setMenuid(menuid); + resetChangedOnNotNull(); + } + + /** + * Create a detached, initialised SysRoleMenuRecord + */ + public SysRoleMenuRecord(jj.tech.paolu.repository.jooq.tables.pojos.SysRoleMenu value) { + super(SysRoleMenu.SYS_ROLE_MENU); + + if (value != null) { + setId(value.getId()); + setRoleid(value.getRoleid()); + setMenuid(value.getMenuid()); + resetChangedOnNotNull(); + } + } +} diff --git a/src/main/java/jj/tech/paolu/repository/jooq/tables/records/SysRoleRecord.java b/src/main/java/jj/tech/paolu/repository/jooq/tables/records/SysRoleRecord.java new file mode 100644 index 0000000..43b69cb --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/jooq/tables/records/SysRoleRecord.java @@ -0,0 +1,424 @@ +/* + * This file is generated by jOOQ. + */ +package jj.tech.paolu.repository.jooq.tables.records; + + +import jj.tech.paolu.repository.jooq.tables.SysRole; + +import org.jooq.Field; +import org.jooq.Record1; +import org.jooq.Record9; +import org.jooq.Row9; +import org.jooq.impl.UpdatableRecordImpl; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +public class SysRoleRecord extends UpdatableRecordImpl implements Record9 { + + private static final long serialVersionUID = 1L; + + /** + * Setter for public.sys_role.id. + */ + public void setId(String value) { + set(0, value); + } + + /** + * Getter for public.sys_role.id. + */ + public String getId() { + return (String) get(0); + } + + /** + * Setter for public.sys_role.rolename. + */ + public void setRolename(String value) { + set(1, value); + } + + /** + * Getter for public.sys_role.rolename. + */ + public String getRolename() { + return (String) get(1); + } + + /** + * Setter for public.sys_role.describe. + */ + public void setDescribe(String value) { + set(2, value); + } + + /** + * Getter for public.sys_role.describe. + */ + public String getDescribe() { + return (String) get(2); + } + + /** + * Setter for public.sys_role.sort. + */ + public void setSort(Integer value) { + set(3, value); + } + + /** + * Getter for public.sys_role.sort. + */ + public Integer getSort() { + return (Integer) get(3); + } + + /** + * Setter for public.sys_role.is_open. + */ + public void setIsOpen(Integer value) { + set(4, value); + } + + /** + * Getter for public.sys_role.is_open. + */ + public Integer getIsOpen() { + return (Integer) get(4); + } + + /** + * Setter for public.sys_role.sign_name. + */ + public void setSignName(String value) { + set(5, value); + } + + /** + * Getter for public.sys_role.sign_name. + */ + public String getSignName() { + return (String) get(5); + } + + /** + * Setter for public.sys_role.sign_id. + */ + public void setSignId(String value) { + set(6, value); + } + + /** + * Getter for public.sys_role.sign_id. + */ + public String getSignId() { + return (String) get(6); + } + + /** + * Setter for public.sys_role.company_id. + */ + public void setCompanyId(String value) { + set(7, value); + } + + /** + * Getter for public.sys_role.company_id. + */ + public String getCompanyId() { + return (String) get(7); + } + + /** + * Setter for public.sys_role.company_name. + */ + public void setCompanyName(String value) { + set(8, value); + } + + /** + * Getter for public.sys_role.company_name. + */ + public String getCompanyName() { + return (String) get(8); + } + + // ------------------------------------------------------------------------- + // Primary key information + // ------------------------------------------------------------------------- + + @Override + public Record1 key() { + return (Record1) super.key(); + } + + // ------------------------------------------------------------------------- + // Record9 type implementation + // ------------------------------------------------------------------------- + + @Override + public Row9 fieldsRow() { + return (Row9) super.fieldsRow(); + } + + @Override + public Row9 valuesRow() { + return (Row9) super.valuesRow(); + } + + @Override + public Field field1() { + return SysRole.SYS_ROLE.ID; + } + + @Override + public Field field2() { + return SysRole.SYS_ROLE.ROLENAME; + } + + @Override + public Field field3() { + return SysRole.SYS_ROLE.DESCRIBE; + } + + @Override + public Field field4() { + return SysRole.SYS_ROLE.SORT; + } + + @Override + public Field field5() { + return SysRole.SYS_ROLE.IS_OPEN; + } + + @Override + public Field field6() { + return SysRole.SYS_ROLE.SIGN_NAME; + } + + @Override + public Field field7() { + return SysRole.SYS_ROLE.SIGN_ID; + } + + @Override + public Field field8() { + return SysRole.SYS_ROLE.COMPANY_ID; + } + + @Override + public Field field9() { + return SysRole.SYS_ROLE.COMPANY_NAME; + } + + @Override + public String component1() { + return getId(); + } + + @Override + public String component2() { + return getRolename(); + } + + @Override + public String component3() { + return getDescribe(); + } + + @Override + public Integer component4() { + return getSort(); + } + + @Override + public Integer component5() { + return getIsOpen(); + } + + @Override + public String component6() { + return getSignName(); + } + + @Override + public String component7() { + return getSignId(); + } + + @Override + public String component8() { + return getCompanyId(); + } + + @Override + public String component9() { + return getCompanyName(); + } + + @Override + public String value1() { + return getId(); + } + + @Override + public String value2() { + return getRolename(); + } + + @Override + public String value3() { + return getDescribe(); + } + + @Override + public Integer value4() { + return getSort(); + } + + @Override + public Integer value5() { + return getIsOpen(); + } + + @Override + public String value6() { + return getSignName(); + } + + @Override + public String value7() { + return getSignId(); + } + + @Override + public String value8() { + return getCompanyId(); + } + + @Override + public String value9() { + return getCompanyName(); + } + + @Override + public SysRoleRecord value1(String value) { + setId(value); + return this; + } + + @Override + public SysRoleRecord value2(String value) { + setRolename(value); + return this; + } + + @Override + public SysRoleRecord value3(String value) { + setDescribe(value); + return this; + } + + @Override + public SysRoleRecord value4(Integer value) { + setSort(value); + return this; + } + + @Override + public SysRoleRecord value5(Integer value) { + setIsOpen(value); + return this; + } + + @Override + public SysRoleRecord value6(String value) { + setSignName(value); + return this; + } + + @Override + public SysRoleRecord value7(String value) { + setSignId(value); + return this; + } + + @Override + public SysRoleRecord value8(String value) { + setCompanyId(value); + return this; + } + + @Override + public SysRoleRecord value9(String value) { + setCompanyName(value); + return this; + } + + @Override + public SysRoleRecord values(String value1, String value2, String value3, Integer value4, Integer value5, String value6, String value7, String value8, String value9) { + value1(value1); + value2(value2); + value3(value3); + value4(value4); + value5(value5); + value6(value6); + value7(value7); + value8(value8); + value9(value9); + return this; + } + + // ------------------------------------------------------------------------- + // Constructors + // ------------------------------------------------------------------------- + + /** + * Create a detached SysRoleRecord + */ + public SysRoleRecord() { + super(SysRole.SYS_ROLE); + } + + /** + * Create a detached, initialised SysRoleRecord + */ + public SysRoleRecord(String id, String rolename, String describe, Integer sort, Integer isOpen, String signName, String signId, String companyId, String companyName) { + super(SysRole.SYS_ROLE); + + setId(id); + setRolename(rolename); + setDescribe(describe); + setSort(sort); + setIsOpen(isOpen); + setSignName(signName); + setSignId(signId); + setCompanyId(companyId); + setCompanyName(companyName); + resetChangedOnNotNull(); + } + + /** + * Create a detached, initialised SysRoleRecord + */ + public SysRoleRecord(jj.tech.paolu.repository.jooq.tables.pojos.SysRole value) { + super(SysRole.SYS_ROLE); + + if (value != null) { + setId(value.getId()); + setRolename(value.getRolename()); + setDescribe(value.getDescribe()); + setSort(value.getSort()); + setIsOpen(value.getIsOpen()); + setSignName(value.getSignName()); + setSignId(value.getSignId()); + setCompanyId(value.getCompanyId()); + setCompanyName(value.getCompanyName()); + resetChangedOnNotNull(); + } + } +} diff --git a/src/main/java/jj/tech/paolu/repository/jooq/tables/records/SysRoleSignRecord.java b/src/main/java/jj/tech/paolu/repository/jooq/tables/records/SysRoleSignRecord.java new file mode 100644 index 0000000..e969247 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/jooq/tables/records/SysRoleSignRecord.java @@ -0,0 +1,196 @@ +/* + * This file is generated by jOOQ. + */ +package jj.tech.paolu.repository.jooq.tables.records; + + +import jj.tech.paolu.repository.jooq.tables.SysRoleSign; + +import org.jooq.Field; +import org.jooq.Record1; +import org.jooq.Record3; +import org.jooq.Row3; +import org.jooq.impl.UpdatableRecordImpl; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +public class SysRoleSignRecord extends UpdatableRecordImpl implements Record3 { + + private static final long serialVersionUID = 1L; + + /** + * Setter for public.sys_role_sign.id. + */ + public void setId(String value) { + set(0, value); + } + + /** + * Getter for public.sys_role_sign.id. + */ + public String getId() { + return (String) get(0); + } + + /** + * Setter for public.sys_role_sign.sign_name. + */ + public void setSignName(String value) { + set(1, value); + } + + /** + * Getter for public.sys_role_sign.sign_name. + */ + public String getSignName() { + return (String) get(1); + } + + /** + * Setter for public.sys_role_sign.sign_code. + */ + public void setSignCode(String value) { + set(2, value); + } + + /** + * Getter for public.sys_role_sign.sign_code. + */ + public String getSignCode() { + return (String) get(2); + } + + // ------------------------------------------------------------------------- + // Primary key information + // ------------------------------------------------------------------------- + + @Override + public Record1 key() { + return (Record1) super.key(); + } + + // ------------------------------------------------------------------------- + // Record3 type implementation + // ------------------------------------------------------------------------- + + @Override + public Row3 fieldsRow() { + return (Row3) super.fieldsRow(); + } + + @Override + public Row3 valuesRow() { + return (Row3) super.valuesRow(); + } + + @Override + public Field field1() { + return SysRoleSign.SYS_ROLE_SIGN.ID; + } + + @Override + public Field field2() { + return SysRoleSign.SYS_ROLE_SIGN.SIGN_NAME; + } + + @Override + public Field field3() { + return SysRoleSign.SYS_ROLE_SIGN.SIGN_CODE; + } + + @Override + public String component1() { + return getId(); + } + + @Override + public String component2() { + return getSignName(); + } + + @Override + public String component3() { + return getSignCode(); + } + + @Override + public String value1() { + return getId(); + } + + @Override + public String value2() { + return getSignName(); + } + + @Override + public String value3() { + return getSignCode(); + } + + @Override + public SysRoleSignRecord value1(String value) { + setId(value); + return this; + } + + @Override + public SysRoleSignRecord value2(String value) { + setSignName(value); + return this; + } + + @Override + public SysRoleSignRecord value3(String value) { + setSignCode(value); + return this; + } + + @Override + public SysRoleSignRecord values(String value1, String value2, String value3) { + value1(value1); + value2(value2); + value3(value3); + return this; + } + + // ------------------------------------------------------------------------- + // Constructors + // ------------------------------------------------------------------------- + + /** + * Create a detached SysRoleSignRecord + */ + public SysRoleSignRecord() { + super(SysRoleSign.SYS_ROLE_SIGN); + } + + /** + * Create a detached, initialised SysRoleSignRecord + */ + public SysRoleSignRecord(String id, String signName, String signCode) { + super(SysRoleSign.SYS_ROLE_SIGN); + + setId(id); + setSignName(signName); + setSignCode(signCode); + resetChangedOnNotNull(); + } + + /** + * Create a detached, initialised SysRoleSignRecord + */ + public SysRoleSignRecord(jj.tech.paolu.repository.jooq.tables.pojos.SysRoleSign value) { + super(SysRoleSign.SYS_ROLE_SIGN); + + if (value != null) { + setId(value.getId()); + setSignName(value.getSignName()); + setSignCode(value.getSignCode()); + resetChangedOnNotNull(); + } + } +} diff --git a/src/main/java/jj/tech/paolu/repository/jooq/tables/records/SysRoleUrlRecord.java b/src/main/java/jj/tech/paolu/repository/jooq/tables/records/SysRoleUrlRecord.java new file mode 100644 index 0000000..b027a8f --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/jooq/tables/records/SysRoleUrlRecord.java @@ -0,0 +1,234 @@ +/* + * This file is generated by jOOQ. + */ +package jj.tech.paolu.repository.jooq.tables.records; + + +import jj.tech.paolu.repository.jooq.tables.SysRoleUrl; + +import org.jooq.Field; +import org.jooq.Record1; +import org.jooq.Record4; +import org.jooq.Row4; +import org.jooq.impl.UpdatableRecordImpl; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +public class SysRoleUrlRecord extends UpdatableRecordImpl implements Record4 { + + private static final long serialVersionUID = 1L; + + /** + * Setter for public.sys_role_url.id. + */ + public void setId(String value) { + set(0, value); + } + + /** + * Getter for public.sys_role_url.id. + */ + public String getId() { + return (String) get(0); + } + + /** + * Setter for public.sys_role_url.roleid. + */ + public void setRoleid(String value) { + set(1, value); + } + + /** + * Getter for public.sys_role_url.roleid. + */ + public String getRoleid() { + return (String) get(1); + } + + /** + * Setter for public.sys_role_url.url. + */ + public void setUrl(String value) { + set(2, value); + } + + /** + * Getter for public.sys_role_url.url. + */ + public String getUrl() { + return (String) get(2); + } + + /** + * Setter for public.sys_role_url.urltypes. + */ + public void setUrltypes(Integer value) { + set(3, value); + } + + /** + * Getter for public.sys_role_url.urltypes. + */ + public Integer getUrltypes() { + return (Integer) get(3); + } + + // ------------------------------------------------------------------------- + // Primary key information + // ------------------------------------------------------------------------- + + @Override + public Record1 key() { + return (Record1) super.key(); + } + + // ------------------------------------------------------------------------- + // Record4 type implementation + // ------------------------------------------------------------------------- + + @Override + public Row4 fieldsRow() { + return (Row4) super.fieldsRow(); + } + + @Override + public Row4 valuesRow() { + return (Row4) super.valuesRow(); + } + + @Override + public Field field1() { + return SysRoleUrl.SYS_ROLE_URL.ID; + } + + @Override + public Field field2() { + return SysRoleUrl.SYS_ROLE_URL.ROLEID; + } + + @Override + public Field field3() { + return SysRoleUrl.SYS_ROLE_URL.URL; + } + + @Override + public Field field4() { + return SysRoleUrl.SYS_ROLE_URL.URLTYPES; + } + + @Override + public String component1() { + return getId(); + } + + @Override + public String component2() { + return getRoleid(); + } + + @Override + public String component3() { + return getUrl(); + } + + @Override + public Integer component4() { + return getUrltypes(); + } + + @Override + public String value1() { + return getId(); + } + + @Override + public String value2() { + return getRoleid(); + } + + @Override + public String value3() { + return getUrl(); + } + + @Override + public Integer value4() { + return getUrltypes(); + } + + @Override + public SysRoleUrlRecord value1(String value) { + setId(value); + return this; + } + + @Override + public SysRoleUrlRecord value2(String value) { + setRoleid(value); + return this; + } + + @Override + public SysRoleUrlRecord value3(String value) { + setUrl(value); + return this; + } + + @Override + public SysRoleUrlRecord value4(Integer value) { + setUrltypes(value); + return this; + } + + @Override + public SysRoleUrlRecord values(String value1, String value2, String value3, Integer value4) { + value1(value1); + value2(value2); + value3(value3); + value4(value4); + return this; + } + + // ------------------------------------------------------------------------- + // Constructors + // ------------------------------------------------------------------------- + + /** + * Create a detached SysRoleUrlRecord + */ + public SysRoleUrlRecord() { + super(SysRoleUrl.SYS_ROLE_URL); + } + + /** + * Create a detached, initialised SysRoleUrlRecord + */ + public SysRoleUrlRecord(String id, String roleid, String url, Integer urltypes) { + super(SysRoleUrl.SYS_ROLE_URL); + + setId(id); + setRoleid(roleid); + setUrl(url); + setUrltypes(urltypes); + resetChangedOnNotNull(); + } + + /** + * Create a detached, initialised SysRoleUrlRecord + */ + public SysRoleUrlRecord(jj.tech.paolu.repository.jooq.tables.pojos.SysRoleUrl value) { + super(SysRoleUrl.SYS_ROLE_URL); + + if (value != null) { + setId(value.getId()); + setRoleid(value.getRoleid()); + setUrl(value.getUrl()); + setUrltypes(value.getUrltypes()); + resetChangedOnNotNull(); + } + } +} diff --git a/src/main/java/jj/tech/paolu/repository/jooq/tables/records/SysUrlsRecord.java b/src/main/java/jj/tech/paolu/repository/jooq/tables/records/SysUrlsRecord.java new file mode 100644 index 0000000..623785a --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/jooq/tables/records/SysUrlsRecord.java @@ -0,0 +1,348 @@ +/* + * This file is generated by jOOQ. + */ +package jj.tech.paolu.repository.jooq.tables.records; + + +import jj.tech.paolu.repository.jooq.tables.SysUrls; + +import org.jooq.Field; +import org.jooq.Record1; +import org.jooq.Record7; +import org.jooq.Row7; +import org.jooq.impl.UpdatableRecordImpl; + + +/** + * This class is generated by jOOQ. + */ +@SuppressWarnings({ "all", "unchecked", "rawtypes" }) +public class SysUrlsRecord extends UpdatableRecordImpl implements Record7 { + + private static final long serialVersionUID = 1L; + + /** + * Setter for public.sys_urls.id. + */ + public void setId(String value) { + set(0, value); + } + + /** + * Getter for public.sys_urls.id. + */ + public String getId() { + return (String) get(0); + } + + /** + * Setter for public.sys_urls.pid. + */ + public void setPid(String value) { + set(1, value); + } + + /** + * Getter for public.sys_urls.pid. + */ + public String getPid() { + return (String) get(1); + } + + /** + * Setter for public.sys_urls.types. + */ + public void setTypes(Integer value) { + set(2, value); + } + + /** + * Getter for public.sys_urls.types. + */ + public Integer getTypes() { + return (Integer) get(2); + } + + /** + * Setter for public.sys_urls.level. + */ + public void setLevel(Integer value) { + set(3, value); + } + + /** + * Getter for public.sys_urls.level. + */ + public Integer getLevel() { + return (Integer) get(3); + } + + /** + * Setter for public.sys_urls.url. + */ + public void setUrl(String value) { + set(4, value); + } + + /** + * Getter for public.sys_urls.url. + */ + public String getUrl() { + return (String) get(4); + } + + /** + * Setter for public.sys_urls.name. + */ + public void setName(String value) { + set(5, value); + } + + /** + * Getter for public.sys_urls.name. + */ + public String getName() { + return (String) get(5); + } + + /** + * Setter for public.sys_urls.method. + */ + public void setMethod(String value) { + set(6, value); + } + + /** + * Getter for public.sys_urls.method. + */ + public String getMethod() { + return (String) get(6); + } + + // ------------------------------------------------------------------------- + // Primary key information + // ------------------------------------------------------------------------- + + @Override + public Record1 key() { + return (Record1) super.key(); + } + + // ------------------------------------------------------------------------- + // Record7 type implementation + // ------------------------------------------------------------------------- + + @Override + public Row7 fieldsRow() { + return (Row7) super.fieldsRow(); + } + + @Override + public Row7 valuesRow() { + return (Row7) super.valuesRow(); + } + + @Override + public Field field1() { + return SysUrls.SYS_URLS.ID; + } + + @Override + public Field field2() { + return SysUrls.SYS_URLS.PID; + } + + @Override + public Field field3() { + return SysUrls.SYS_URLS.TYPES; + } + + @Override + public Field field4() { + return SysUrls.SYS_URLS.LEVEL; + } + + @Override + public Field field5() { + return SysUrls.SYS_URLS.URL; + } + + @Override + public Field field6() { + return SysUrls.SYS_URLS.NAME; + } + + @Override + public Field field7() { + return SysUrls.SYS_URLS.METHOD; + } + + @Override + public String component1() { + return getId(); + } + + @Override + public String component2() { + return getPid(); + } + + @Override + public Integer component3() { + return getTypes(); + } + + @Override + public Integer component4() { + return getLevel(); + } + + @Override + public String component5() { + return getUrl(); + } + + @Override + public String component6() { + return getName(); + } + + @Override + public String component7() { + return getMethod(); + } + + @Override + public String value1() { + return getId(); + } + + @Override + public String value2() { + return getPid(); + } + + @Override + public Integer value3() { + return getTypes(); + } + + @Override + public Integer value4() { + return getLevel(); + } + + @Override + public String value5() { + return getUrl(); + } + + @Override + public String value6() { + return getName(); + } + + @Override + public String value7() { + return getMethod(); + } + + @Override + public SysUrlsRecord value1(String value) { + setId(value); + return this; + } + + @Override + public SysUrlsRecord value2(String value) { + setPid(value); + return this; + } + + @Override + public SysUrlsRecord value3(Integer value) { + setTypes(value); + return this; + } + + @Override + public SysUrlsRecord value4(Integer value) { + setLevel(value); + return this; + } + + @Override + public SysUrlsRecord value5(String value) { + setUrl(value); + return this; + } + + @Override + public SysUrlsRecord value6(String value) { + setName(value); + return this; + } + + @Override + public SysUrlsRecord value7(String value) { + setMethod(value); + return this; + } + + @Override + public SysUrlsRecord values(String value1, String value2, Integer value3, Integer value4, String value5, String value6, String value7) { + value1(value1); + value2(value2); + value3(value3); + value4(value4); + value5(value5); + value6(value6); + value7(value7); + return this; + } + + // ------------------------------------------------------------------------- + // Constructors + // ------------------------------------------------------------------------- + + /** + * Create a detached SysUrlsRecord + */ + public SysUrlsRecord() { + super(SysUrls.SYS_URLS); + } + + /** + * Create a detached, initialised SysUrlsRecord + */ + public SysUrlsRecord(String id, String pid, Integer types, Integer level, String url, String name, String method) { + super(SysUrls.SYS_URLS); + + setId(id); + setPid(pid); + setTypes(types); + setLevel(level); + setUrl(url); + setName(name); + setMethod(method); + resetChangedOnNotNull(); + } + + /** + * Create a detached, initialised SysUrlsRecord + */ + public SysUrlsRecord(jj.tech.paolu.repository.jooq.tables.pojos.SysUrls value) { + super(SysUrls.SYS_URLS); + + if (value != null) { + setId(value.getId()); + setPid(value.getPid()); + setTypes(value.getTypes()); + setLevel(value.getLevel()); + setUrl(value.getUrl()); + setName(value.getName()); + setMethod(value.getMethod()); + resetChangedOnNotNull(); + } + } +} diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/control/ArchiveSynLogController.java b/src/main/java/jj/tech/paolu/repository/mybatis/control/ArchiveSynLogController.java new file mode 100644 index 0000000..4710a9b --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/control/ArchiveSynLogController.java @@ -0,0 +1,37 @@ +package jj.tech.paolu.repository.mybatis.control; + +import jj.tech.paolu.repository.mybatis.dao.ArchiveSynLogMapper; +import jj.tech.paolu.repository.mybatis.entity.ArchiveSynLog; +import jj.tech.paolu.utils.IDHelp; +import jj.tech.paolu.utils.R; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; + +@RestController +@RequestMapping("mybatis/archiveSynLog") +public class ArchiveSynLogController { + + @Autowired + public ArchiveSynLogMapper archiveSynLogMapper; + + @PostMapping("findById/{id}") + public Object findById(@PathVariable("id") String id) { + return R.SUCCESS(archiveSynLogMapper.selectByPrimaryKey(id).orElse(null)); + } + + @PostMapping("delete/{id}") + public Object delete(@PathVariable("id") String id) { + return R.SUCCESS(archiveSynLogMapper.deleteByPrimaryKey(id)); + } + + @PostMapping("save") + public Object save(@RequestBody ArchiveSynLog record) { + record.setId(IDHelp.getInstance().nextId()); + return R.SUCCESS(archiveSynLogMapper.insertSelective(record)); + } + + @PostMapping("update") + public Object update(@RequestBody ArchiveSynLog record) { + return R.SUCCESS(archiveSynLogMapper.updateByPrimaryKeySelective(record)); + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/control/ArchiveSynLogDetailController.java b/src/main/java/jj/tech/paolu/repository/mybatis/control/ArchiveSynLogDetailController.java new file mode 100644 index 0000000..342fae0 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/control/ArchiveSynLogDetailController.java @@ -0,0 +1,37 @@ +package jj.tech.paolu.repository.mybatis.control; + +import jj.tech.paolu.repository.mybatis.dao.ArchiveSynLogDetailMapper; +import jj.tech.paolu.repository.mybatis.entity.ArchiveSynLogDetail; +import jj.tech.paolu.utils.IDHelp; +import jj.tech.paolu.utils.R; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; + +@RestController +@RequestMapping("mybatis/archiveSynLogDetail") +public class ArchiveSynLogDetailController { + + @Autowired + public ArchiveSynLogDetailMapper archiveSynLogDetailMapper; + + @PostMapping("findById/{id}") + public Object findById(@PathVariable("id") String id) { + return R.SUCCESS(archiveSynLogDetailMapper.selectByPrimaryKey(id).orElse(null)); + } + + @PostMapping("delete/{id}") + public Object delete(@PathVariable("id") String id) { + return R.SUCCESS(archiveSynLogDetailMapper.deleteByPrimaryKey(id)); + } + + @PostMapping("save") + public Object save(@RequestBody ArchiveSynLogDetail record) { + record.setId(IDHelp.getInstance().nextId()); + return R.SUCCESS(archiveSynLogDetailMapper.insertSelective(record)); + } + + @PostMapping("update") + public Object update(@RequestBody ArchiveSynLogDetail record) { + return R.SUCCESS(archiveSynLogDetailMapper.updateByPrimaryKeySelective(record)); + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/control/ArchiveSynTimestampController.java b/src/main/java/jj/tech/paolu/repository/mybatis/control/ArchiveSynTimestampController.java new file mode 100644 index 0000000..44c4f59 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/control/ArchiveSynTimestampController.java @@ -0,0 +1,31 @@ +package jj.tech.paolu.repository.mybatis.control; + +import jj.tech.paolu.repository.mybatis.dao.ArchiveSynTimestampMapper; +import jj.tech.paolu.repository.mybatis.entity.ArchiveSynTimestamp; +import jj.tech.paolu.utils.IDHelp; +import jj.tech.paolu.utils.R; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; + +@RestController +@RequestMapping("mybatis/archiveSynTimestamp") +public class ArchiveSynTimestampController { + + @Autowired + public ArchiveSynTimestampMapper archiveSynTimestampMapper; + + @PostMapping("findById/{node_id}/{node_type}") + public Object findById(@PathVariable("node_id") String node_id, @PathVariable("node_type") Integer node_type) { + return R.SUCCESS(archiveSynTimestampMapper.selectByPrimaryKey(node_id,node_type).orElse(null)); + } + + @PostMapping("delete/{node_id}/{node_type}") + public Object delete(@PathVariable("node_id") String node_id, @PathVariable("node_type") Integer node_type) { + return R.SUCCESS(archiveSynTimestampMapper.deleteByPrimaryKey(node_id,node_type)); + } + + @PostMapping("update") + public Object update(@RequestBody ArchiveSynTimestamp record) { + return R.SUCCESS(archiveSynTimestampMapper.updateByPrimaryKeySelective(record)); + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/control/CertificateApplyController.java b/src/main/java/jj/tech/paolu/repository/mybatis/control/CertificateApplyController.java new file mode 100644 index 0000000..b5b694f --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/control/CertificateApplyController.java @@ -0,0 +1,37 @@ +package jj.tech.paolu.repository.mybatis.control; + +import jj.tech.paolu.repository.mybatis.dao.CertificateApplyMapper; +import jj.tech.paolu.repository.mybatis.entity.CertificateApply; +import jj.tech.paolu.utils.IDHelp; +import jj.tech.paolu.utils.R; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; + +@RestController +@RequestMapping("mybatis/certificateApply") +public class CertificateApplyController { + + @Autowired + public CertificateApplyMapper certificateApplyMapper; + + @PostMapping("findById/{id}") + public Object findById(@PathVariable("id") String id) { + return R.SUCCESS(certificateApplyMapper.selectByPrimaryKey(id).orElse(null)); + } + + @PostMapping("delete/{id}") + public Object delete(@PathVariable("id") String id) { + return R.SUCCESS(certificateApplyMapper.deleteByPrimaryKey(id)); + } + + @PostMapping("save") + public Object save(@RequestBody CertificateApply record) { + record.setId(IDHelp.getInstance().nextId()); + return R.SUCCESS(certificateApplyMapper.insertSelective(record)); + } + + @PostMapping("update") + public Object update(@RequestBody CertificateApply record) { + return R.SUCCESS(certificateApplyMapper.updateByPrimaryKeySelective(record)); + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/control/CertificateApplyRecordController.java b/src/main/java/jj/tech/paolu/repository/mybatis/control/CertificateApplyRecordController.java new file mode 100644 index 0000000..d2d42af --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/control/CertificateApplyRecordController.java @@ -0,0 +1,37 @@ +package jj.tech.paolu.repository.mybatis.control; + +import jj.tech.paolu.repository.mybatis.dao.CertificateApplyRecordMapper; +import jj.tech.paolu.repository.mybatis.entity.CertificateApplyRecord; +import jj.tech.paolu.utils.IDHelp; +import jj.tech.paolu.utils.R; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; + +@RestController +@RequestMapping("mybatis/certificateApplyRecord") +public class CertificateApplyRecordController { + + @Autowired + public CertificateApplyRecordMapper certificateApplyRecordMapper; + + @PostMapping("findById/{id}") + public Object findById(@PathVariable("id") String id) { + return R.SUCCESS(certificateApplyRecordMapper.selectByPrimaryKey(id).orElse(null)); + } + + @PostMapping("delete/{id}") + public Object delete(@PathVariable("id") String id) { + return R.SUCCESS(certificateApplyRecordMapper.deleteByPrimaryKey(id)); + } + + @PostMapping("save") + public Object save(@RequestBody CertificateApplyRecord record) { + record.setId(IDHelp.getInstance().nextId()); + return R.SUCCESS(certificateApplyRecordMapper.insertSelective(record)); + } + + @PostMapping("update") + public Object update(@RequestBody CertificateApplyRecord record) { + return R.SUCCESS(certificateApplyRecordMapper.updateByPrimaryKeySelective(record)); + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/control/CertificateDetailController.java b/src/main/java/jj/tech/paolu/repository/mybatis/control/CertificateDetailController.java new file mode 100644 index 0000000..bd7563b --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/control/CertificateDetailController.java @@ -0,0 +1,37 @@ +package jj.tech.paolu.repository.mybatis.control; + +import jj.tech.paolu.repository.mybatis.dao.CertificateDetailMapper; +import jj.tech.paolu.repository.mybatis.entity.CertificateDetail; +import jj.tech.paolu.utils.IDHelp; +import jj.tech.paolu.utils.R; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; + +@RestController +@RequestMapping("mybatis/certificateDetail") +public class CertificateDetailController { + + @Autowired + public CertificateDetailMapper certificateDetailMapper; + + @PostMapping("findById/{id}") + public Object findById(@PathVariable("id") String id) { + return R.SUCCESS(certificateDetailMapper.selectByPrimaryKey(id).orElse(null)); + } + + @PostMapping("delete/{id}") + public Object delete(@PathVariable("id") String id) { + return R.SUCCESS(certificateDetailMapper.deleteByPrimaryKey(id)); + } + + @PostMapping("save") + public Object save(@RequestBody CertificateDetail record) { + record.setId(IDHelp.getInstance().nextId()); + return R.SUCCESS(certificateDetailMapper.insertSelective(record)); + } + + @PostMapping("update") + public Object update(@RequestBody CertificateDetail record) { + return R.SUCCESS(certificateDetailMapper.updateByPrimaryKeySelective(record)); + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/control/DecryptLogController.java b/src/main/java/jj/tech/paolu/repository/mybatis/control/DecryptLogController.java new file mode 100644 index 0000000..b682895 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/control/DecryptLogController.java @@ -0,0 +1,37 @@ +package jj.tech.paolu.repository.mybatis.control; + +import jj.tech.paolu.repository.mybatis.dao.DecryptLogMapper; +import jj.tech.paolu.repository.mybatis.entity.DecryptLog; +import jj.tech.paolu.utils.IDHelp; +import jj.tech.paolu.utils.R; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; + +@RestController +@RequestMapping("mybatis/decryptLog") +public class DecryptLogController { + + @Autowired + public DecryptLogMapper decryptLogMapper; + + @PostMapping("findById/{id}") + public Object findById(@PathVariable("id") String id) { + return R.SUCCESS(decryptLogMapper.selectByPrimaryKey(id).orElse(null)); + } + + @PostMapping("delete/{id}") + public Object delete(@PathVariable("id") String id) { + return R.SUCCESS(decryptLogMapper.deleteByPrimaryKey(id)); + } + + @PostMapping("save") + public Object save(@RequestBody DecryptLog record) { + record.setId(IDHelp.getInstance().nextId()); + return R.SUCCESS(decryptLogMapper.insertSelective(record)); + } + + @PostMapping("update") + public Object update(@RequestBody DecryptLog record) { + return R.SUCCESS(decryptLogMapper.updateByPrimaryKeySelective(record)); + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/control/DownloadLogController.java b/src/main/java/jj/tech/paolu/repository/mybatis/control/DownloadLogController.java new file mode 100644 index 0000000..cc4d587 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/control/DownloadLogController.java @@ -0,0 +1,37 @@ +package jj.tech.paolu.repository.mybatis.control; + +import jj.tech.paolu.repository.mybatis.dao.DownloadLogMapper; +import jj.tech.paolu.repository.mybatis.entity.DownloadLog; +import jj.tech.paolu.utils.IDHelp; +import jj.tech.paolu.utils.R; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; + +@RestController +@RequestMapping("mybatis/downloadLog") +public class DownloadLogController { + + @Autowired + public DownloadLogMapper downloadLogMapper; + + @PostMapping("findById/{id}") + public Object findById(@PathVariable("id") String id) { + return R.SUCCESS(downloadLogMapper.selectByPrimaryKey(id).orElse(null)); + } + + @PostMapping("delete/{id}") + public Object delete(@PathVariable("id") String id) { + return R.SUCCESS(downloadLogMapper.deleteByPrimaryKey(id)); + } + + @PostMapping("save") + public Object save(@RequestBody DownloadLog record) { + record.setId(IDHelp.getInstance().nextId()); + return R.SUCCESS(downloadLogMapper.insertSelective(record)); + } + + @PostMapping("update") + public Object update(@RequestBody DownloadLog record) { + return R.SUCCESS(downloadLogMapper.updateByPrimaryKeySelective(record)); + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/control/FilesApplyCheckRecordController.java b/src/main/java/jj/tech/paolu/repository/mybatis/control/FilesApplyCheckRecordController.java new file mode 100644 index 0000000..5c13cf4 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/control/FilesApplyCheckRecordController.java @@ -0,0 +1,37 @@ +package jj.tech.paolu.repository.mybatis.control; + +import jj.tech.paolu.repository.mybatis.dao.FilesApplyCheckRecordMapper; +import jj.tech.paolu.repository.mybatis.entity.FilesApplyCheckRecord; +import jj.tech.paolu.utils.IDHelp; +import jj.tech.paolu.utils.R; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; + +@RestController +@RequestMapping("mybatis/filesApplyCheckRecord") +public class FilesApplyCheckRecordController { + + @Autowired + public FilesApplyCheckRecordMapper filesApplyCheckRecordMapper; + + @PostMapping("findById/{id}") + public Object findById(@PathVariable("id") String id) { + return R.SUCCESS(filesApplyCheckRecordMapper.selectByPrimaryKey(id).orElse(null)); + } + + @PostMapping("delete/{id}") + public Object delete(@PathVariable("id") String id) { + return R.SUCCESS(filesApplyCheckRecordMapper.deleteByPrimaryKey(id)); + } + + @PostMapping("save") + public Object save(@RequestBody FilesApplyCheckRecord record) { + record.setId(IDHelp.getInstance().nextId()); + return R.SUCCESS(filesApplyCheckRecordMapper.insertSelective(record)); + } + + @PostMapping("update") + public Object update(@RequestBody FilesApplyCheckRecord record) { + return R.SUCCESS(filesApplyCheckRecordMapper.updateByPrimaryKeySelective(record)); + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/control/FilesApplyController.java b/src/main/java/jj/tech/paolu/repository/mybatis/control/FilesApplyController.java new file mode 100644 index 0000000..0e68789 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/control/FilesApplyController.java @@ -0,0 +1,37 @@ +package jj.tech.paolu.repository.mybatis.control; + +import jj.tech.paolu.repository.mybatis.dao.FilesApplyMapper; +import jj.tech.paolu.repository.mybatis.entity.FilesApply; +import jj.tech.paolu.utils.IDHelp; +import jj.tech.paolu.utils.R; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; + +@RestController +@RequestMapping("mybatis/filesApply") +public class FilesApplyController { + + @Autowired + public FilesApplyMapper filesApplyMapper; + + @PostMapping("findById/{id}") + public Object findById(@PathVariable("id") String id) { + return R.SUCCESS(filesApplyMapper.selectByPrimaryKey(id).orElse(null)); + } + + @PostMapping("delete/{id}") + public Object delete(@PathVariable("id") String id) { + return R.SUCCESS(filesApplyMapper.deleteByPrimaryKey(id)); + } + + @PostMapping("save") + public Object save(@RequestBody FilesApply record) { + record.setId(IDHelp.getInstance().nextId()); + return R.SUCCESS(filesApplyMapper.insertSelective(record)); + } + + @PostMapping("update") + public Object update(@RequestBody FilesApply record) { + return R.SUCCESS(filesApplyMapper.updateByPrimaryKeySelective(record)); + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/control/FilesApplyDirectoryDocsController.java b/src/main/java/jj/tech/paolu/repository/mybatis/control/FilesApplyDirectoryDocsController.java new file mode 100644 index 0000000..99e7435 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/control/FilesApplyDirectoryDocsController.java @@ -0,0 +1,37 @@ +package jj.tech.paolu.repository.mybatis.control; + +import jj.tech.paolu.repository.mybatis.dao.FilesApplyDirectoryDocsMapper; +import jj.tech.paolu.repository.mybatis.entity.FilesApplyDirectoryDocs; +import jj.tech.paolu.utils.IDHelp; +import jj.tech.paolu.utils.R; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; + +@RestController +@RequestMapping("mybatis/filesApplyDirectoryDocs") +public class FilesApplyDirectoryDocsController { + + @Autowired + public FilesApplyDirectoryDocsMapper filesApplyDirectoryDocsMapper; + + @PostMapping("findById/{id}") + public Object findById(@PathVariable("id") String id) { + return R.SUCCESS(filesApplyDirectoryDocsMapper.selectByPrimaryKey(id).orElse(null)); + } + + @PostMapping("delete/{id}") + public Object delete(@PathVariable("id") String id) { + return R.SUCCESS(filesApplyDirectoryDocsMapper.deleteByPrimaryKey(id)); + } + + @PostMapping("save") + public Object save(@RequestBody FilesApplyDirectoryDocs record) { + record.setId(IDHelp.getInstance().nextId()); + return R.SUCCESS(filesApplyDirectoryDocsMapper.insertSelective(record)); + } + + @PostMapping("update") + public Object update(@RequestBody FilesApplyDirectoryDocs record) { + return R.SUCCESS(filesApplyDirectoryDocsMapper.updateByPrimaryKeySelective(record)); + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/control/FilesApplyDocsController.java b/src/main/java/jj/tech/paolu/repository/mybatis/control/FilesApplyDocsController.java new file mode 100644 index 0000000..799f481 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/control/FilesApplyDocsController.java @@ -0,0 +1,37 @@ +package jj.tech.paolu.repository.mybatis.control; + +import jj.tech.paolu.repository.mybatis.dao.FilesApplyDocsMapper; +import jj.tech.paolu.repository.mybatis.entity.FilesApplyDocs; +import jj.tech.paolu.utils.IDHelp; +import jj.tech.paolu.utils.R; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; + +@RestController +@RequestMapping("mybatis/filesApplyDocs") +public class FilesApplyDocsController { + + @Autowired + public FilesApplyDocsMapper filesApplyDocsMapper; + + @PostMapping("findById/{id}") + public Object findById(@PathVariable("id") String id) { + return R.SUCCESS(filesApplyDocsMapper.selectByPrimaryKey(id).orElse(null)); + } + + @PostMapping("delete/{id}") + public Object delete(@PathVariable("id") String id) { + return R.SUCCESS(filesApplyDocsMapper.deleteByPrimaryKey(id)); + } + + @PostMapping("save") + public Object save(@RequestBody FilesApplyDocs record) { + record.setId(IDHelp.getInstance().nextId()); + return R.SUCCESS(filesApplyDocsMapper.insertSelective(record)); + } + + @PostMapping("update") + public Object update(@RequestBody FilesApplyDocs record) { + return R.SUCCESS(filesApplyDocsMapper.updateByPrimaryKeySelective(record)); + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/control/FilesApplyDownloadRecordController.java b/src/main/java/jj/tech/paolu/repository/mybatis/control/FilesApplyDownloadRecordController.java new file mode 100644 index 0000000..e7a6f8e --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/control/FilesApplyDownloadRecordController.java @@ -0,0 +1,37 @@ +package jj.tech.paolu.repository.mybatis.control; + +import jj.tech.paolu.repository.mybatis.dao.FilesApplyDownloadRecordMapper; +import jj.tech.paolu.repository.mybatis.entity.FilesApplyDownloadRecord; +import jj.tech.paolu.utils.IDHelp; +import jj.tech.paolu.utils.R; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; + +@RestController +@RequestMapping("mybatis/filesApplyDownloadRecord") +public class FilesApplyDownloadRecordController { + + @Autowired + public FilesApplyDownloadRecordMapper filesApplyDownloadRecordMapper; + + @PostMapping("findById/{id}") + public Object findById(@PathVariable("id") String id) { + return R.SUCCESS(filesApplyDownloadRecordMapper.selectByPrimaryKey(id).orElse(null)); + } + + @PostMapping("delete/{id}") + public Object delete(@PathVariable("id") String id) { + return R.SUCCESS(filesApplyDownloadRecordMapper.deleteByPrimaryKey(id)); + } + + @PostMapping("save") + public Object save(@RequestBody FilesApplyDownloadRecord record) { + record.setId(IDHelp.getInstance().nextId()); + return R.SUCCESS(filesApplyDownloadRecordMapper.insertSelective(record)); + } + + @PostMapping("update") + public Object update(@RequestBody FilesApplyDownloadRecord record) { + return R.SUCCESS(filesApplyDownloadRecordMapper.updateByPrimaryKeySelective(record)); + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/control/PreShareDirectoryFileTagController.java b/src/main/java/jj/tech/paolu/repository/mybatis/control/PreShareDirectoryFileTagController.java new file mode 100644 index 0000000..06bada4 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/control/PreShareDirectoryFileTagController.java @@ -0,0 +1,37 @@ +package jj.tech.paolu.repository.mybatis.control; + +import jj.tech.paolu.repository.mybatis.dao.PreShareDirectoryFileTagMapper; +import jj.tech.paolu.repository.mybatis.entity.PreShareDirectoryFileTag; +import jj.tech.paolu.utils.IDHelp; +import jj.tech.paolu.utils.R; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; + +@RestController +@RequestMapping("mybatis/preShareDirectoryFileTag") +public class PreShareDirectoryFileTagController { + + @Autowired + public PreShareDirectoryFileTagMapper preShareDirectoryFileTagMapper; + + @PostMapping("findById/{id}") + public Object findById(@PathVariable("id") String id) { + return R.SUCCESS(preShareDirectoryFileTagMapper.selectByPrimaryKey(id).orElse(null)); + } + + @PostMapping("delete/{id}") + public Object delete(@PathVariable("id") String id) { + return R.SUCCESS(preShareDirectoryFileTagMapper.deleteByPrimaryKey(id)); + } + + @PostMapping("save") + public Object save(@RequestBody PreShareDirectoryFileTag record) { + record.setId(IDHelp.getInstance().nextId()); + return R.SUCCESS(preShareDirectoryFileTagMapper.insertSelective(record)); + } + + @PostMapping("update") + public Object update(@RequestBody PreShareDirectoryFileTag record) { + return R.SUCCESS(preShareDirectoryFileTagMapper.updateByPrimaryKeySelective(record)); + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/control/PreShareDirectoryTagController.java b/src/main/java/jj/tech/paolu/repository/mybatis/control/PreShareDirectoryTagController.java new file mode 100644 index 0000000..cbdd47d --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/control/PreShareDirectoryTagController.java @@ -0,0 +1,37 @@ +package jj.tech.paolu.repository.mybatis.control; + +import jj.tech.paolu.repository.mybatis.dao.PreShareDirectoryTagMapper; +import jj.tech.paolu.repository.mybatis.entity.PreShareDirectoryTag; +import jj.tech.paolu.utils.IDHelp; +import jj.tech.paolu.utils.R; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; + +@RestController +@RequestMapping("mybatis/preShareDirectoryTag") +public class PreShareDirectoryTagController { + + @Autowired + public PreShareDirectoryTagMapper preShareDirectoryTagMapper; + + @PostMapping("findById/{id}") + public Object findById(@PathVariable("id") String id) { + return R.SUCCESS(preShareDirectoryTagMapper.selectByPrimaryKey(id).orElse(null)); + } + + @PostMapping("delete/{id}") + public Object delete(@PathVariable("id") String id) { + return R.SUCCESS(preShareDirectoryTagMapper.deleteByPrimaryKey(id)); + } + + @PostMapping("save") + public Object save(@RequestBody PreShareDirectoryTag record) { + record.setId(IDHelp.getInstance().nextId()); + return R.SUCCESS(preShareDirectoryTagMapper.insertSelective(record)); + } + + @PostMapping("update") + public Object update(@RequestBody PreShareDirectoryTag record) { + return R.SUCCESS(preShareDirectoryTagMapper.updateByPrimaryKeySelective(record)); + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/control/PreShareFileTagController.java b/src/main/java/jj/tech/paolu/repository/mybatis/control/PreShareFileTagController.java new file mode 100644 index 0000000..3334f2e --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/control/PreShareFileTagController.java @@ -0,0 +1,37 @@ +package jj.tech.paolu.repository.mybatis.control; + +import jj.tech.paolu.repository.mybatis.dao.PreShareFileTagMapper; +import jj.tech.paolu.repository.mybatis.entity.PreShareFileTag; +import jj.tech.paolu.utils.IDHelp; +import jj.tech.paolu.utils.R; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; + +@RestController +@RequestMapping("mybatis/preShareFileTag") +public class PreShareFileTagController { + + @Autowired + public PreShareFileTagMapper preShareFileTagMapper; + + @PostMapping("findById/{id}") + public Object findById(@PathVariable("id") String id) { + return R.SUCCESS(preShareFileTagMapper.selectByPrimaryKey(id).orElse(null)); + } + + @PostMapping("delete/{id}") + public Object delete(@PathVariable("id") String id) { + return R.SUCCESS(preShareFileTagMapper.deleteByPrimaryKey(id)); + } + + @PostMapping("save") + public Object save(@RequestBody PreShareFileTag record) { + record.setId(IDHelp.getInstance().nextId()); + return R.SUCCESS(preShareFileTagMapper.insertSelective(record)); + } + + @PostMapping("update") + public Object update(@RequestBody PreShareFileTag record) { + return R.SUCCESS(preShareFileTagMapper.updateByPrimaryKeySelective(record)); + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/control/ProjectController.java b/src/main/java/jj/tech/paolu/repository/mybatis/control/ProjectController.java new file mode 100644 index 0000000..e13fdfb --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/control/ProjectController.java @@ -0,0 +1,37 @@ +package jj.tech.paolu.repository.mybatis.control; + +import jj.tech.paolu.repository.mybatis.dao.ProjectMapper; +import jj.tech.paolu.repository.mybatis.entity.Project; +import jj.tech.paolu.utils.IDHelp; +import jj.tech.paolu.utils.R; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; + +@RestController +@RequestMapping("mybatis/project") +public class ProjectController { + + @Autowired + public ProjectMapper projectMapper; + + @PostMapping("findById/{id}") + public Object findById(@PathVariable("id") String id) { + return R.SUCCESS(projectMapper.selectByPrimaryKey(id).orElse(null)); + } + + @PostMapping("delete/{id}") + public Object delete(@PathVariable("id") String id) { + return R.SUCCESS(projectMapper.deleteByPrimaryKey(id)); + } + + @PostMapping("save") + public Object save(@RequestBody Project record) { + record.setId(IDHelp.getInstance().nextId()); + return R.SUCCESS(projectMapper.insertSelective(record)); + } + + @PostMapping("update") + public Object update(@RequestBody Project record) { + return R.SUCCESS(projectMapper.updateByPrimaryKeySelective(record)); + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/control/ProviderController.java b/src/main/java/jj/tech/paolu/repository/mybatis/control/ProviderController.java new file mode 100644 index 0000000..05921f8 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/control/ProviderController.java @@ -0,0 +1,37 @@ +package jj.tech.paolu.repository.mybatis.control; + +import jj.tech.paolu.repository.mybatis.dao.ProviderMapper; +import jj.tech.paolu.repository.mybatis.entity.Provider; +import jj.tech.paolu.utils.IDHelp; +import jj.tech.paolu.utils.R; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; + +@RestController +@RequestMapping("mybatis/provider") +public class ProviderController { + + @Autowired + public ProviderMapper providerMapper; + + @PostMapping("findById/{id}") + public Object findById(@PathVariable("id") String id) { + return R.SUCCESS(providerMapper.selectByPrimaryKey(id).orElse(null)); + } + + @PostMapping("delete/{id}") + public Object delete(@PathVariable("id") String id) { + return R.SUCCESS(providerMapper.deleteByPrimaryKey(id)); + } + + @PostMapping("save") + public Object save(@RequestBody Provider record) { + record.setId(IDHelp.getInstance().nextId()); + return R.SUCCESS(providerMapper.insertSelective(record)); + } + + @PostMapping("update") + public Object update(@RequestBody Provider record) { + return R.SUCCESS(providerMapper.updateByPrimaryKeySelective(record)); + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/control/ReadLogController.java b/src/main/java/jj/tech/paolu/repository/mybatis/control/ReadLogController.java new file mode 100644 index 0000000..79bf408 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/control/ReadLogController.java @@ -0,0 +1,37 @@ +package jj.tech.paolu.repository.mybatis.control; + +import jj.tech.paolu.repository.mybatis.dao.ReadLogMapper; +import jj.tech.paolu.repository.mybatis.entity.ReadLog; +import jj.tech.paolu.utils.IDHelp; +import jj.tech.paolu.utils.R; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; + +@RestController +@RequestMapping("mybatis/readLog") +public class ReadLogController { + + @Autowired + public ReadLogMapper readLogMapper; + + @PostMapping("findById/{id}") + public Object findById(@PathVariable("id") String id) { + return R.SUCCESS(readLogMapper.selectByPrimaryKey(id).orElse(null)); + } + + @PostMapping("delete/{id}") + public Object delete(@PathVariable("id") String id) { + return R.SUCCESS(readLogMapper.deleteByPrimaryKey(id)); + } + + @PostMapping("save") + public Object save(@RequestBody ReadLog record) { + record.setId(IDHelp.getInstance().nextId()); + return R.SUCCESS(readLogMapper.insertSelective(record)); + } + + @PostMapping("update") + public Object update(@RequestBody ReadLog record) { + return R.SUCCESS(readLogMapper.updateByPrimaryKeySelective(record)); + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/control/ShareDirectoryController.java b/src/main/java/jj/tech/paolu/repository/mybatis/control/ShareDirectoryController.java new file mode 100644 index 0000000..0c0c531 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/control/ShareDirectoryController.java @@ -0,0 +1,37 @@ +package jj.tech.paolu.repository.mybatis.control; + +import jj.tech.paolu.repository.mybatis.dao.ShareDirectoryMapper; +import jj.tech.paolu.repository.mybatis.entity.ShareDirectory; +import jj.tech.paolu.utils.IDHelp; +import jj.tech.paolu.utils.R; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; + +@RestController +@RequestMapping("mybatis/shareDirectory") +public class ShareDirectoryController { + + @Autowired + public ShareDirectoryMapper shareDirectoryMapper; + + @PostMapping("findById/{id}") + public Object findById(@PathVariable("id") String id) { + return R.SUCCESS(shareDirectoryMapper.selectByPrimaryKey(id).orElse(null)); + } + + @PostMapping("delete/{id}") + public Object delete(@PathVariable("id") String id) { + return R.SUCCESS(shareDirectoryMapper.deleteByPrimaryKey(id)); + } + + @PostMapping("save") + public Object save(@RequestBody ShareDirectory record) { + record.setId(IDHelp.getInstance().nextId()); + return R.SUCCESS(shareDirectoryMapper.insertSelective(record)); + } + + @PostMapping("update") + public Object update(@RequestBody ShareDirectory record) { + return R.SUCCESS(shareDirectoryMapper.updateByPrimaryKeySelective(record)); + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/control/ShareDirectoryFileController.java b/src/main/java/jj/tech/paolu/repository/mybatis/control/ShareDirectoryFileController.java new file mode 100644 index 0000000..6b4b3d4 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/control/ShareDirectoryFileController.java @@ -0,0 +1,37 @@ +package jj.tech.paolu.repository.mybatis.control; + +import jj.tech.paolu.repository.mybatis.dao.ShareDirectoryFileMapper; +import jj.tech.paolu.repository.mybatis.entity.ShareDirectoryFile; +import jj.tech.paolu.utils.IDHelp; +import jj.tech.paolu.utils.R; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; + +@RestController +@RequestMapping("mybatis/shareDirectoryFile") +public class ShareDirectoryFileController { + + @Autowired + public ShareDirectoryFileMapper shareDirectoryFileMapper; + + @PostMapping("findById/{id}") + public Object findById(@PathVariable("id") String id) { + return R.SUCCESS(shareDirectoryFileMapper.selectByPrimaryKey(id).orElse(null)); + } + + @PostMapping("delete/{id}") + public Object delete(@PathVariable("id") String id) { + return R.SUCCESS(shareDirectoryFileMapper.deleteByPrimaryKey(id)); + } + + @PostMapping("save") + public Object save(@RequestBody ShareDirectoryFile record) { + record.setId(IDHelp.getInstance().nextId()); + return R.SUCCESS(shareDirectoryFileMapper.insertSelective(record)); + } + + @PostMapping("update") + public Object update(@RequestBody ShareDirectoryFile record) { + return R.SUCCESS(shareDirectoryFileMapper.updateByPrimaryKeySelective(record)); + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/control/ShareFileController.java b/src/main/java/jj/tech/paolu/repository/mybatis/control/ShareFileController.java new file mode 100644 index 0000000..476cc14 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/control/ShareFileController.java @@ -0,0 +1,37 @@ +package jj.tech.paolu.repository.mybatis.control; + +import jj.tech.paolu.repository.mybatis.dao.ShareFileMapper; +import jj.tech.paolu.repository.mybatis.entity.ShareFile; +import jj.tech.paolu.utils.IDHelp; +import jj.tech.paolu.utils.R; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; + +@RestController +@RequestMapping("mybatis/shareFile") +public class ShareFileController { + + @Autowired + public ShareFileMapper shareFileMapper; + + @PostMapping("findById/{id}") + public Object findById(@PathVariable("id") String id) { + return R.SUCCESS(shareFileMapper.selectByPrimaryKey(id).orElse(null)); + } + + @PostMapping("delete/{id}") + public Object delete(@PathVariable("id") String id) { + return R.SUCCESS(shareFileMapper.deleteByPrimaryKey(id)); + } + + @PostMapping("save") + public Object save(@RequestBody ShareFile record) { + record.setId(IDHelp.getInstance().nextId()); + return R.SUCCESS(shareFileMapper.insertSelective(record)); + } + + @PostMapping("update") + public Object update(@RequestBody ShareFile record) { + return R.SUCCESS(shareFileMapper.updateByPrimaryKeySelective(record)); + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/control/SharedElementUpdateDetailController.java b/src/main/java/jj/tech/paolu/repository/mybatis/control/SharedElementUpdateDetailController.java new file mode 100644 index 0000000..217a911 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/control/SharedElementUpdateDetailController.java @@ -0,0 +1,37 @@ +package jj.tech.paolu.repository.mybatis.control; + +import jj.tech.paolu.repository.mybatis.dao.SharedElementUpdateDetailMapper; +import jj.tech.paolu.repository.mybatis.entity.SharedElementUpdateDetail; +import jj.tech.paolu.utils.IDHelp; +import jj.tech.paolu.utils.R; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; + +@RestController +@RequestMapping("mybatis/sharedElementUpdateDetail") +public class SharedElementUpdateDetailController { + + @Autowired + public SharedElementUpdateDetailMapper sharedElementUpdateDetailMapper; + + @PostMapping("findById/{id}") + public Object findById(@PathVariable("id") String id) { + return R.SUCCESS(sharedElementUpdateDetailMapper.selectByPrimaryKey(id).orElse(null)); + } + + @PostMapping("delete/{id}") + public Object delete(@PathVariable("id") String id) { + return R.SUCCESS(sharedElementUpdateDetailMapper.deleteByPrimaryKey(id)); + } + + @PostMapping("save") + public Object save(@RequestBody SharedElementUpdateDetail record) { + record.setId(IDHelp.getInstance().nextId()); + return R.SUCCESS(sharedElementUpdateDetailMapper.insertSelective(record)); + } + + @PostMapping("update") + public Object update(@RequestBody SharedElementUpdateDetail record) { + return R.SUCCESS(sharedElementUpdateDetailMapper.updateByPrimaryKeySelective(record)); + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/control/SharedElementUpdateRecordController.java b/src/main/java/jj/tech/paolu/repository/mybatis/control/SharedElementUpdateRecordController.java new file mode 100644 index 0000000..252750c --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/control/SharedElementUpdateRecordController.java @@ -0,0 +1,37 @@ +package jj.tech.paolu.repository.mybatis.control; + +import jj.tech.paolu.repository.mybatis.dao.SharedElementUpdateRecordMapper; +import jj.tech.paolu.repository.mybatis.entity.SharedElementUpdateRecord; +import jj.tech.paolu.utils.IDHelp; +import jj.tech.paolu.utils.R; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; + +@RestController +@RequestMapping("mybatis/sharedElementUpdateRecord") +public class SharedElementUpdateRecordController { + + @Autowired + public SharedElementUpdateRecordMapper sharedElementUpdateRecordMapper; + + @PostMapping("findById/{id}") + public Object findById(@PathVariable("id") String id) { + return R.SUCCESS(sharedElementUpdateRecordMapper.selectByPrimaryKey(id).orElse(null)); + } + + @PostMapping("delete/{id}") + public Object delete(@PathVariable("id") String id) { + return R.SUCCESS(sharedElementUpdateRecordMapper.deleteByPrimaryKey(id)); + } + + @PostMapping("save") + public Object save(@RequestBody SharedElementUpdateRecord record) { + record.setId(IDHelp.getInstance().nextId()); + return R.SUCCESS(sharedElementUpdateRecordMapper.insertSelective(record)); + } + + @PostMapping("update") + public Object update(@RequestBody SharedElementUpdateRecord record) { + return R.SUCCESS(sharedElementUpdateRecordMapper.updateByPrimaryKeySelective(record)); + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/control/SharedRuleConfigController.java b/src/main/java/jj/tech/paolu/repository/mybatis/control/SharedRuleConfigController.java new file mode 100644 index 0000000..871827e --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/control/SharedRuleConfigController.java @@ -0,0 +1,37 @@ +package jj.tech.paolu.repository.mybatis.control; + +import jj.tech.paolu.repository.mybatis.dao.SharedRuleConfigMapper; +import jj.tech.paolu.repository.mybatis.entity.SharedRuleConfig; +import jj.tech.paolu.utils.IDHelp; +import jj.tech.paolu.utils.R; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; + +@RestController +@RequestMapping("mybatis/sharedRuleConfig") +public class SharedRuleConfigController { + + @Autowired + public SharedRuleConfigMapper sharedRuleConfigMapper; + + @PostMapping("findById/{id}") + public Object findById(@PathVariable("id") String id) { + return R.SUCCESS(sharedRuleConfigMapper.selectByPrimaryKey(id).orElse(null)); + } + + @PostMapping("delete/{id}") + public Object delete(@PathVariable("id") String id) { + return R.SUCCESS(sharedRuleConfigMapper.deleteByPrimaryKey(id)); + } + + @PostMapping("save") + public Object save(@RequestBody SharedRuleConfig record) { + record.setId(IDHelp.getInstance().nextId()); + return R.SUCCESS(sharedRuleConfigMapper.insertSelective(record)); + } + + @PostMapping("update") + public Object update(@RequestBody SharedRuleConfig record) { + return R.SUCCESS(sharedRuleConfigMapper.updateByPrimaryKeySelective(record)); + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/control/SharedSynAllController.java b/src/main/java/jj/tech/paolu/repository/mybatis/control/SharedSynAllController.java new file mode 100644 index 0000000..73ba5b0 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/control/SharedSynAllController.java @@ -0,0 +1,37 @@ +package jj.tech.paolu.repository.mybatis.control; + +import jj.tech.paolu.repository.mybatis.dao.SharedSynAllMapper; +import jj.tech.paolu.repository.mybatis.entity.SharedSynAll; +import jj.tech.paolu.utils.IDHelp; +import jj.tech.paolu.utils.R; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; + +@RestController +@RequestMapping("mybatis/sharedSynAll") +public class SharedSynAllController { + + @Autowired + public SharedSynAllMapper sharedSynAllMapper; + + @PostMapping("findById/{id}") + public Object findById(@PathVariable("id") String id) { + return R.SUCCESS(sharedSynAllMapper.selectByPrimaryKey(id).orElse(null)); + } + + @PostMapping("delete/{id}") + public Object delete(@PathVariable("id") String id) { + return R.SUCCESS(sharedSynAllMapper.deleteByPrimaryKey(id)); + } + + @PostMapping("save") + public Object save(@RequestBody SharedSynAll record) { + record.setId(IDHelp.getInstance().nextId()); + return R.SUCCESS(sharedSynAllMapper.insertSelective(record)); + } + + @PostMapping("update") + public Object update(@RequestBody SharedSynAll record) { + return R.SUCCESS(sharedSynAllMapper.updateByPrimaryKeySelective(record)); + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/control/SynDirectoryController.java b/src/main/java/jj/tech/paolu/repository/mybatis/control/SynDirectoryController.java new file mode 100644 index 0000000..9838314 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/control/SynDirectoryController.java @@ -0,0 +1,37 @@ +package jj.tech.paolu.repository.mybatis.control; + +import jj.tech.paolu.repository.mybatis.dao.SynDirectoryMapper; +import jj.tech.paolu.repository.mybatis.entity.SynDirectory; +import jj.tech.paolu.utils.IDHelp; +import jj.tech.paolu.utils.R; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; + +@RestController +@RequestMapping("mybatis/synDirectory") +public class SynDirectoryController { + + @Autowired + public SynDirectoryMapper synDirectoryMapper; + + @PostMapping("findById/{id}") + public Object findById(@PathVariable("id") String id) { + return R.SUCCESS(synDirectoryMapper.selectByPrimaryKey(id).orElse(null)); + } + + @PostMapping("delete/{id}") + public Object delete(@PathVariable("id") String id) { + return R.SUCCESS(synDirectoryMapper.deleteByPrimaryKey(id)); + } + + @PostMapping("save") + public Object save(@RequestBody SynDirectory record) { + record.setId(IDHelp.getInstance().nextId()); + return R.SUCCESS(synDirectoryMapper.insertSelective(record)); + } + + @PostMapping("update") + public Object update(@RequestBody SynDirectory record) { + return R.SUCCESS(synDirectoryMapper.updateByPrimaryKeySelective(record)); + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/control/SynDirectoryFileController.java b/src/main/java/jj/tech/paolu/repository/mybatis/control/SynDirectoryFileController.java new file mode 100644 index 0000000..b293ea5 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/control/SynDirectoryFileController.java @@ -0,0 +1,37 @@ +package jj.tech.paolu.repository.mybatis.control; + +import jj.tech.paolu.repository.mybatis.dao.SynDirectoryFileMapper; +import jj.tech.paolu.repository.mybatis.entity.SynDirectoryFile; +import jj.tech.paolu.utils.IDHelp; +import jj.tech.paolu.utils.R; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; + +@RestController +@RequestMapping("mybatis/synDirectoryFile") +public class SynDirectoryFileController { + + @Autowired + public SynDirectoryFileMapper synDirectoryFileMapper; + + @PostMapping("findById/{id}") + public Object findById(@PathVariable("id") String id) { + return R.SUCCESS(synDirectoryFileMapper.selectByPrimaryKey(id).orElse(null)); + } + + @PostMapping("delete/{id}") + public Object delete(@PathVariable("id") String id) { + return R.SUCCESS(synDirectoryFileMapper.deleteByPrimaryKey(id)); + } + + @PostMapping("save") + public Object save(@RequestBody SynDirectoryFile record) { + record.setId(IDHelp.getInstance().nextId()); + return R.SUCCESS(synDirectoryFileMapper.insertSelective(record)); + } + + @PostMapping("update") + public Object update(@RequestBody SynDirectoryFile record) { + return R.SUCCESS(synDirectoryFileMapper.updateByPrimaryKeySelective(record)); + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/control/SynFileController.java b/src/main/java/jj/tech/paolu/repository/mybatis/control/SynFileController.java new file mode 100644 index 0000000..72f4879 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/control/SynFileController.java @@ -0,0 +1,37 @@ +package jj.tech.paolu.repository.mybatis.control; + +import jj.tech.paolu.repository.mybatis.dao.SynFileMapper; +import jj.tech.paolu.repository.mybatis.entity.SynFile; +import jj.tech.paolu.utils.IDHelp; +import jj.tech.paolu.utils.R; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; + +@RestController +@RequestMapping("mybatis/synFile") +public class SynFileController { + + @Autowired + public SynFileMapper synFileMapper; + + @PostMapping("findById/{id}") + public Object findById(@PathVariable("id") String id) { + return R.SUCCESS(synFileMapper.selectByPrimaryKey(id).orElse(null)); + } + + @PostMapping("delete/{id}") + public Object delete(@PathVariable("id") String id) { + return R.SUCCESS(synFileMapper.deleteByPrimaryKey(id)); + } + + @PostMapping("save") + public Object save(@RequestBody SynFile record) { + record.setId(IDHelp.getInstance().nextId()); + return R.SUCCESS(synFileMapper.insertSelective(record)); + } + + @PostMapping("update") + public Object update(@RequestBody SynFile record) { + return R.SUCCESS(synFileMapper.updateByPrimaryKeySelective(record)); + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/control/Sync2blockchainTaskController.java b/src/main/java/jj/tech/paolu/repository/mybatis/control/Sync2blockchainTaskController.java new file mode 100644 index 0000000..4fb9f9f --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/control/Sync2blockchainTaskController.java @@ -0,0 +1,37 @@ +package jj.tech.paolu.repository.mybatis.control; + +import jj.tech.paolu.repository.mybatis.dao.Sync2blockchainTaskMapper; +import jj.tech.paolu.repository.mybatis.entity.Sync2blockchainTask; +import jj.tech.paolu.utils.IDHelp; +import jj.tech.paolu.utils.R; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; + +@RestController +@RequestMapping("mybatis/sync2blockchainTask") +public class Sync2blockchainTaskController { + + @Autowired + public Sync2blockchainTaskMapper sync2blockchainTaskMapper; + + @PostMapping("findById/{id}") + public Object findById(@PathVariable("id") String id) { + return R.SUCCESS(sync2blockchainTaskMapper.selectByPrimaryKey(id).orElse(null)); + } + + @PostMapping("delete/{id}") + public Object delete(@PathVariable("id") String id) { + return R.SUCCESS(sync2blockchainTaskMapper.deleteByPrimaryKey(id)); + } + + @PostMapping("save") + public Object save(@RequestBody Sync2blockchainTask record) { + record.setId(IDHelp.getInstance().nextId()); + return R.SUCCESS(sync2blockchainTaskMapper.insertSelective(record)); + } + + @PostMapping("update") + public Object update(@RequestBody Sync2blockchainTask record) { + return R.SUCCESS(sync2blockchainTaskMapper.updateByPrimaryKeySelective(record)); + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/control/SysAdminController.java b/src/main/java/jj/tech/paolu/repository/mybatis/control/SysAdminController.java new file mode 100644 index 0000000..ffafb2f --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/control/SysAdminController.java @@ -0,0 +1,37 @@ +package jj.tech.paolu.repository.mybatis.control; + +import jj.tech.paolu.repository.mybatis.dao.SysAdminMapper; +import jj.tech.paolu.repository.mybatis.entity.SysAdmin; +import jj.tech.paolu.utils.IDHelp; +import jj.tech.paolu.utils.R; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; + +@RestController +@RequestMapping("mybatis/sysAdmin") +public class SysAdminController { + + @Autowired + public SysAdminMapper sysAdminMapper; + + @PostMapping("findById/{id}") + public Object findById(@PathVariable("id") String id) { + return R.SUCCESS(sysAdminMapper.selectByPrimaryKey(id).orElse(null)); + } + + @PostMapping("delete/{id}") + public Object delete(@PathVariable("id") String id) { + return R.SUCCESS(sysAdminMapper.deleteByPrimaryKey(id)); + } + + @PostMapping("save") + public Object save(@RequestBody SysAdmin record) { + record.setId(IDHelp.getInstance().nextId()); + return R.SUCCESS(sysAdminMapper.insertSelective(record)); + } + + @PostMapping("update") + public Object update(@RequestBody SysAdmin record) { + return R.SUCCESS(sysAdminMapper.updateByPrimaryKeySelective(record)); + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/control/SysAdminRoleController.java b/src/main/java/jj/tech/paolu/repository/mybatis/control/SysAdminRoleController.java new file mode 100644 index 0000000..3081580 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/control/SysAdminRoleController.java @@ -0,0 +1,37 @@ +package jj.tech.paolu.repository.mybatis.control; + +import jj.tech.paolu.repository.mybatis.dao.SysAdminRoleMapper; +import jj.tech.paolu.repository.mybatis.entity.SysAdminRole; +import jj.tech.paolu.utils.IDHelp; +import jj.tech.paolu.utils.R; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; + +@RestController +@RequestMapping("mybatis/sysAdminRole") +public class SysAdminRoleController { + + @Autowired + public SysAdminRoleMapper sysAdminRoleMapper; + + @PostMapping("findById/{id}") + public Object findById(@PathVariable("id") String id) { + return R.SUCCESS(sysAdminRoleMapper.selectByPrimaryKey(id).orElse(null)); + } + + @PostMapping("delete/{id}") + public Object delete(@PathVariable("id") String id) { + return R.SUCCESS(sysAdminRoleMapper.deleteByPrimaryKey(id)); + } + + @PostMapping("save") + public Object save(@RequestBody SysAdminRole record) { + record.setId(IDHelp.getInstance().nextId()); + return R.SUCCESS(sysAdminRoleMapper.insertSelective(record)); + } + + @PostMapping("update") + public Object update(@RequestBody SysAdminRole record) { + return R.SUCCESS(sysAdminRoleMapper.updateByPrimaryKeySelective(record)); + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/control/SysAdminWeidController.java b/src/main/java/jj/tech/paolu/repository/mybatis/control/SysAdminWeidController.java new file mode 100644 index 0000000..871f01c --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/control/SysAdminWeidController.java @@ -0,0 +1,37 @@ +package jj.tech.paolu.repository.mybatis.control; + +import jj.tech.paolu.repository.mybatis.dao.SysAdminWeidMapper; +import jj.tech.paolu.repository.mybatis.entity.SysAdminWeid; +import jj.tech.paolu.utils.IDHelp; +import jj.tech.paolu.utils.R; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; + +@RestController +@RequestMapping("mybatis/sysAdminWeid") +public class SysAdminWeidController { + + @Autowired + public SysAdminWeidMapper sysAdminWeidMapper; + + @PostMapping("findById/{id}") + public Object findById(@PathVariable("id") String id) { + return R.SUCCESS(sysAdminWeidMapper.selectByPrimaryKey(id).orElse(null)); + } + + @PostMapping("delete/{id}") + public Object delete(@PathVariable("id") String id) { + return R.SUCCESS(sysAdminWeidMapper.deleteByPrimaryKey(id)); + } + + @PostMapping("save") + public Object save(@RequestBody SysAdminWeid record) { + record.setId(IDHelp.getInstance().nextId()); + return R.SUCCESS(sysAdminWeidMapper.insertSelective(record)); + } + + @PostMapping("update") + public Object update(@RequestBody SysAdminWeid record) { + return R.SUCCESS(sysAdminWeidMapper.updateByPrimaryKeySelective(record)); + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/control/SysAreaController.java b/src/main/java/jj/tech/paolu/repository/mybatis/control/SysAreaController.java new file mode 100644 index 0000000..4378b6a --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/control/SysAreaController.java @@ -0,0 +1,37 @@ +package jj.tech.paolu.repository.mybatis.control; + +import jj.tech.paolu.repository.mybatis.dao.SysAreaMapper; +import jj.tech.paolu.repository.mybatis.entity.SysArea; +import jj.tech.paolu.utils.IDHelp; +import jj.tech.paolu.utils.R; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; + +@RestController +@RequestMapping("mybatis/sysArea") +public class SysAreaController { + + @Autowired + public SysAreaMapper sysAreaMapper; + + @PostMapping("findById/{id}") + public Object findById(@PathVariable("id") String id) { + return R.SUCCESS(sysAreaMapper.selectByPrimaryKey(id).orElse(null)); + } + + @PostMapping("delete/{id}") + public Object delete(@PathVariable("id") String id) { + return R.SUCCESS(sysAreaMapper.deleteByPrimaryKey(id)); + } + + @PostMapping("save") + public Object save(@RequestBody SysArea record) { + record.setId(IDHelp.getInstance().nextId()); + return R.SUCCESS(sysAreaMapper.insertSelective(record)); + } + + @PostMapping("update") + public Object update(@RequestBody SysArea record) { + return R.SUCCESS(sysAreaMapper.updateByPrimaryKeySelective(record)); + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/control/SysConfigController.java b/src/main/java/jj/tech/paolu/repository/mybatis/control/SysConfigController.java new file mode 100644 index 0000000..eefbfb5 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/control/SysConfigController.java @@ -0,0 +1,37 @@ +package jj.tech.paolu.repository.mybatis.control; + +import jj.tech.paolu.repository.mybatis.dao.SysConfigMapper; +import jj.tech.paolu.repository.mybatis.entity.SysConfig; +import jj.tech.paolu.utils.IDHelp; +import jj.tech.paolu.utils.R; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; + +@RestController +@RequestMapping("mybatis/sysConfig") +public class SysConfigController { + + @Autowired + public SysConfigMapper sysConfigMapper; + + @PostMapping("findById/{id}") + public Object findById(@PathVariable("id") String id) { + return R.SUCCESS(sysConfigMapper.selectByPrimaryKey(id).orElse(null)); + } + + @PostMapping("delete/{id}") + public Object delete(@PathVariable("id") String id) { + return R.SUCCESS(sysConfigMapper.deleteByPrimaryKey(id)); + } + + @PostMapping("save") + public Object save(@RequestBody SysConfig record) { + record.setId(IDHelp.getInstance().nextId()); + return R.SUCCESS(sysConfigMapper.insertSelective(record)); + } + + @PostMapping("update") + public Object update(@RequestBody SysConfig record) { + return R.SUCCESS(sysConfigMapper.updateByPrimaryKeySelective(record)); + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/control/SysMenuController.java b/src/main/java/jj/tech/paolu/repository/mybatis/control/SysMenuController.java new file mode 100644 index 0000000..da5aa8e --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/control/SysMenuController.java @@ -0,0 +1,37 @@ +//package jj.tech.paolu.repository.mybatis.control; +// +//import jj.tech.paolu.repository.mybatis.dao.SysMenuMapper; +//import jj.tech.paolu.repository.mybatis.entity.SysMenu; +//import jj.tech.paolu.utils.IDHelp; +//import jj.tech.paolu.utils.R; +//import org.springframework.beans.factory.annotation.Autowired; +//import org.springframework.web.bind.annotation.*; +// +//@RestController +//@RequestMapping("mybatis/sysMenu") +//public class SysMenuController { +// +// @Autowired +// public SysMenuMapper sysMenuMapper; +// +// @PostMapping("findById/{id}") +// public Object findById(@PathVariable("id") String id) { +// return R.SUCCESS(sysMenuMapper.selectByPrimaryKey(id).orElse(null)); +// } +// +// @PostMapping("delete/{id}") +// public Object delete(@PathVariable("id") String id) { +// return R.SUCCESS(sysMenuMapper.deleteByPrimaryKey(id)); +// } +// +// @PostMapping("save") +// public Object save(@RequestBody SysMenu record) { +// record.setId(IDHelp.getInstance().nextId()); +// return R.SUCCESS(sysMenuMapper.insertSelective(record)); +// } +// +// @PostMapping("update") +// public Object update(@RequestBody SysMenu record) { +// return R.SUCCESS(sysMenuMapper.updateByPrimaryKeySelective(record)); +// } +//} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/control/SysOrgController.java b/src/main/java/jj/tech/paolu/repository/mybatis/control/SysOrgController.java new file mode 100644 index 0000000..bd87b7d --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/control/SysOrgController.java @@ -0,0 +1,37 @@ +package jj.tech.paolu.repository.mybatis.control; + +import jj.tech.paolu.repository.mybatis.dao.SysOrgMapper; +import jj.tech.paolu.repository.mybatis.entity.SysOrg; +import jj.tech.paolu.utils.IDHelp; +import jj.tech.paolu.utils.R; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; + +@RestController +@RequestMapping("mybatis/sysOrg") +public class SysOrgController { + + @Autowired + public SysOrgMapper sysOrgMapper; + + @PostMapping("findById/{id}") + public Object findById(@PathVariable("id") String id) { + return R.SUCCESS(sysOrgMapper.selectByPrimaryKey(id).orElse(null)); + } + + @PostMapping("delete/{id}") + public Object delete(@PathVariable("id") String id) { + return R.SUCCESS(sysOrgMapper.deleteByPrimaryKey(id)); + } + + @PostMapping("save") + public Object save(@RequestBody SysOrg record) { + record.setId(IDHelp.getInstance().nextId()); + return R.SUCCESS(sysOrgMapper.insertSelective(record)); + } + + @PostMapping("update") + public Object update(@RequestBody SysOrg record) { + return R.SUCCESS(sysOrgMapper.updateByPrimaryKeySelective(record)); + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/control/SysRoleController.java b/src/main/java/jj/tech/paolu/repository/mybatis/control/SysRoleController.java new file mode 100644 index 0000000..553fcdb --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/control/SysRoleController.java @@ -0,0 +1,37 @@ +package jj.tech.paolu.repository.mybatis.control; + +import jj.tech.paolu.repository.mybatis.dao.SysRoleMapper; +import jj.tech.paolu.repository.mybatis.entity.SysRole; +import jj.tech.paolu.utils.IDHelp; +import jj.tech.paolu.utils.R; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; + +@RestController +@RequestMapping("mybatis/sysRole") +public class SysRoleController { + + @Autowired + public SysRoleMapper sysRoleMapper; + + @PostMapping("findById/{id}") + public Object findById(@PathVariable("id") String id) { + return R.SUCCESS(sysRoleMapper.selectByPrimaryKey(id).orElse(null)); + } + + @PostMapping("delete/{id}") + public Object delete(@PathVariable("id") String id) { + return R.SUCCESS(sysRoleMapper.deleteByPrimaryKey(id)); + } + + @PostMapping("save") + public Object save(@RequestBody SysRole record) { + record.setId(IDHelp.getInstance().nextId()); + return R.SUCCESS(sysRoleMapper.insertSelective(record)); + } + + @PostMapping("update") + public Object update(@RequestBody SysRole record) { + return R.SUCCESS(sysRoleMapper.updateByPrimaryKeySelective(record)); + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/control/SysRoleMenuController.java b/src/main/java/jj/tech/paolu/repository/mybatis/control/SysRoleMenuController.java new file mode 100644 index 0000000..dd8836a --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/control/SysRoleMenuController.java @@ -0,0 +1,37 @@ +package jj.tech.paolu.repository.mybatis.control; + +import jj.tech.paolu.repository.mybatis.dao.SysRoleMenuMapper; +import jj.tech.paolu.repository.mybatis.entity.SysRoleMenu; +import jj.tech.paolu.utils.IDHelp; +import jj.tech.paolu.utils.R; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; + +@RestController +@RequestMapping("mybatis/sysRoleMenu") +public class SysRoleMenuController { + + @Autowired + public SysRoleMenuMapper sysRoleMenuMapper; + + @PostMapping("findById/{id}") + public Object findById(@PathVariable("id") String id) { + return R.SUCCESS(sysRoleMenuMapper.selectByPrimaryKey(id).orElse(null)); + } + + @PostMapping("delete/{id}") + public Object delete(@PathVariable("id") String id) { + return R.SUCCESS(sysRoleMenuMapper.deleteByPrimaryKey(id)); + } + + @PostMapping("save") + public Object save(@RequestBody SysRoleMenu record) { + record.setId(IDHelp.getInstance().nextId()); + return R.SUCCESS(sysRoleMenuMapper.insertSelective(record)); + } + + @PostMapping("update") + public Object update(@RequestBody SysRoleMenu record) { + return R.SUCCESS(sysRoleMenuMapper.updateByPrimaryKeySelective(record)); + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/control/SysRoleSignController.java b/src/main/java/jj/tech/paolu/repository/mybatis/control/SysRoleSignController.java new file mode 100644 index 0000000..478adec --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/control/SysRoleSignController.java @@ -0,0 +1,37 @@ +package jj.tech.paolu.repository.mybatis.control; + +import jj.tech.paolu.repository.mybatis.dao.SysRoleSignMapper; +import jj.tech.paolu.repository.mybatis.entity.SysRoleSign; +import jj.tech.paolu.utils.IDHelp; +import jj.tech.paolu.utils.R; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; + +@RestController +@RequestMapping("mybatis/sysRoleSign") +public class SysRoleSignController { + + @Autowired + public SysRoleSignMapper sysRoleSignMapper; + + @PostMapping("findById/{id}") + public Object findById(@PathVariable("id") String id) { + return R.SUCCESS(sysRoleSignMapper.selectByPrimaryKey(id).orElse(null)); + } + + @PostMapping("delete/{id}") + public Object delete(@PathVariable("id") String id) { + return R.SUCCESS(sysRoleSignMapper.deleteByPrimaryKey(id)); + } + + @PostMapping("save") + public Object save(@RequestBody SysRoleSign record) { + record.setId(IDHelp.getInstance().nextId()); + return R.SUCCESS(sysRoleSignMapper.insertSelective(record)); + } + + @PostMapping("update") + public Object update(@RequestBody SysRoleSign record) { + return R.SUCCESS(sysRoleSignMapper.updateByPrimaryKeySelective(record)); + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/control/SysRoleUrlController.java b/src/main/java/jj/tech/paolu/repository/mybatis/control/SysRoleUrlController.java new file mode 100644 index 0000000..a2f7411 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/control/SysRoleUrlController.java @@ -0,0 +1,37 @@ +package jj.tech.paolu.repository.mybatis.control; + +import jj.tech.paolu.repository.mybatis.dao.SysRoleUrlMapper; +import jj.tech.paolu.repository.mybatis.entity.SysRoleUrl; +import jj.tech.paolu.utils.IDHelp; +import jj.tech.paolu.utils.R; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; + +@RestController +@RequestMapping("mybatis/sysRoleUrl") +public class SysRoleUrlController { + + @Autowired + public SysRoleUrlMapper sysRoleUrlMapper; + + @PostMapping("findById/{id}") + public Object findById(@PathVariable("id") String id) { + return R.SUCCESS(sysRoleUrlMapper.selectByPrimaryKey(id).orElse(null)); + } + + @PostMapping("delete/{id}") + public Object delete(@PathVariable("id") String id) { + return R.SUCCESS(sysRoleUrlMapper.deleteByPrimaryKey(id)); + } + + @PostMapping("save") + public Object save(@RequestBody SysRoleUrl record) { + record.setId(IDHelp.getInstance().nextId()); + return R.SUCCESS(sysRoleUrlMapper.insertSelective(record)); + } + + @PostMapping("update") + public Object update(@RequestBody SysRoleUrl record) { + return R.SUCCESS(sysRoleUrlMapper.updateByPrimaryKeySelective(record)); + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/control/SysUrlsController.java b/src/main/java/jj/tech/paolu/repository/mybatis/control/SysUrlsController.java new file mode 100644 index 0000000..34e169d --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/control/SysUrlsController.java @@ -0,0 +1,37 @@ +package jj.tech.paolu.repository.mybatis.control; + +import jj.tech.paolu.repository.mybatis.dao.SysUrlsMapper; +import jj.tech.paolu.repository.mybatis.entity.SysUrls; +import jj.tech.paolu.utils.IDHelp; +import jj.tech.paolu.utils.R; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; + +@RestController +@RequestMapping("mybatis/sysUrls") +public class SysUrlsController { + + @Autowired + public SysUrlsMapper sysUrlsMapper; + + @PostMapping("findById/{id}") + public Object findById(@PathVariable("id") String id) { + return R.SUCCESS(sysUrlsMapper.selectByPrimaryKey(id).orElse(null)); + } + + @PostMapping("delete/{id}") + public Object delete(@PathVariable("id") String id) { + return R.SUCCESS(sysUrlsMapper.deleteByPrimaryKey(id)); + } + + @PostMapping("save") + public Object save(@RequestBody SysUrls record) { + record.setId(IDHelp.getInstance().nextId()); + return R.SUCCESS(sysUrlsMapper.insertSelective(record)); + } + + @PostMapping("update") + public Object update(@RequestBody SysUrls record) { + return R.SUCCESS(sysUrlsMapper.updateByPrimaryKeySelective(record)); + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/dao/ArchiveSynLogDetailMapper.java b/src/main/java/jj/tech/paolu/repository/mybatis/dao/ArchiveSynLogDetailMapper.java new file mode 100644 index 0000000..5564182 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/dao/ArchiveSynLogDetailMapper.java @@ -0,0 +1,177 @@ +package jj.tech.paolu.repository.mybatis.dao; + +import static jj.tech.paolu.repository.mybatis.dao.support.ArchiveSynLogDetailDynamicSqlSupport.*; +import static org.mybatis.dynamic.sql.SqlBuilder.isEqualTo; + +import jakarta.annotation.Generated; +import java.util.Collection; +import java.util.List; +import java.util.Optional; +import jj.tech.paolu.repository.mybatis.entity.ArchiveSynLogDetail; +import org.apache.ibatis.annotations.Mapper; +import org.apache.ibatis.annotations.Result; +import org.apache.ibatis.annotations.ResultMap; +import org.apache.ibatis.annotations.Results; +import org.apache.ibatis.annotations.SelectProvider; +import org.apache.ibatis.type.JdbcType; +import org.mybatis.dynamic.sql.BasicColumn; +import org.mybatis.dynamic.sql.delete.DeleteDSLCompleter; +import org.mybatis.dynamic.sql.select.CountDSLCompleter; +import org.mybatis.dynamic.sql.select.SelectDSLCompleter; +import org.mybatis.dynamic.sql.select.render.SelectStatementProvider; +import org.mybatis.dynamic.sql.update.UpdateDSL; +import org.mybatis.dynamic.sql.update.UpdateDSLCompleter; +import org.mybatis.dynamic.sql.update.UpdateModel; +import org.mybatis.dynamic.sql.util.SqlProviderAdapter; +import org.mybatis.dynamic.sql.util.mybatis3.CommonCountMapper; +import org.mybatis.dynamic.sql.util.mybatis3.CommonDeleteMapper; +import org.mybatis.dynamic.sql.util.mybatis3.CommonInsertMapper; +import org.mybatis.dynamic.sql.util.mybatis3.CommonUpdateMapper; +import org.mybatis.dynamic.sql.util.mybatis3.MyBatis3Utils; + +@Mapper +public interface ArchiveSynLogDetailMapper extends CommonCountMapper, CommonDeleteMapper, CommonInsertMapper, CommonUpdateMapper { + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T11:36:17.6567952+08:00", comments="Source Table: public.archive_syn_log_detail") + BasicColumn[] selectList = BasicColumn.columnList(id, node_id, note_type, process_type, create_time, log_id); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T11:36:17.6477277+08:00", comments="Source Table: public.archive_syn_log_detail") + @SelectProvider(type=SqlProviderAdapter.class, method="select") + @Results(id="ArchiveSynLogDetailResult", value = { + @Result(column="id", property="id", jdbcType=JdbcType.VARCHAR, id=true), + @Result(column="node_id", property="node_id", jdbcType=JdbcType.VARCHAR), + @Result(column="note_type", property="note_type", jdbcType=JdbcType.INTEGER), + @Result(column="process_type", property="process_type", jdbcType=JdbcType.INTEGER), + @Result(column="create_time", property="create_time", jdbcType=JdbcType.TIMESTAMP), + @Result(column="log_id", property="log_id", jdbcType=JdbcType.VARCHAR) + }) + List selectMany(SelectStatementProvider selectStatement); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T11:36:17.648734+08:00", comments="Source Table: public.archive_syn_log_detail") + @SelectProvider(type=SqlProviderAdapter.class, method="select") + @ResultMap("ArchiveSynLogDetailResult") + Optional selectOne(SelectStatementProvider selectStatement); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T11:36:17.6499717+08:00", comments="Source Table: public.archive_syn_log_detail") + default long count(CountDSLCompleter completer) { + return MyBatis3Utils.countFrom(this::count, archiveSynLogDetail, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T11:36:17.6499717+08:00", comments="Source Table: public.archive_syn_log_detail") + default int delete(DeleteDSLCompleter completer) { + return MyBatis3Utils.deleteFrom(this::delete, archiveSynLogDetail, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T11:36:17.6499717+08:00", comments="Source Table: public.archive_syn_log_detail") + default int deleteByPrimaryKey(String id_) { + return delete(c -> + c.where(id, isEqualTo(id_)) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T11:36:17.6511217+08:00", comments="Source Table: public.archive_syn_log_detail") + default int insert(ArchiveSynLogDetail row) { + return MyBatis3Utils.insert(this::insert, row, archiveSynLogDetail, c -> + c.map(id).toProperty("id") + .map(node_id).toProperty("node_id") + .map(note_type).toProperty("note_type") + .map(process_type).toProperty("process_type") + .map(create_time).toProperty("create_time") + .map(log_id).toProperty("log_id") + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T11:36:17.6544067+08:00", comments="Source Table: public.archive_syn_log_detail") + default int insertMultiple(Collection records) { + return MyBatis3Utils.insertMultiple(this::insertMultiple, records, archiveSynLogDetail, c -> + c.map(id).toProperty("id") + .map(node_id).toProperty("node_id") + .map(note_type).toProperty("note_type") + .map(process_type).toProperty("process_type") + .map(create_time).toProperty("create_time") + .map(log_id).toProperty("log_id") + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T11:36:17.6554066+08:00", comments="Source Table: public.archive_syn_log_detail") + default int insertSelective(ArchiveSynLogDetail row) { + return MyBatis3Utils.insert(this::insert, row, archiveSynLogDetail, c -> + c.map(id).toPropertyWhenPresent("id", row::getId) + .map(node_id).toPropertyWhenPresent("node_id", row::getNode_id) + .map(note_type).toPropertyWhenPresent("note_type", row::getNote_type) + .map(process_type).toPropertyWhenPresent("process_type", row::getProcess_type) + .map(create_time).toPropertyWhenPresent("create_time", row::getCreate_time) + .map(log_id).toPropertyWhenPresent("log_id", row::getLog_id) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T11:36:17.6567952+08:00", comments="Source Table: public.archive_syn_log_detail") + default Optional selectOne(SelectDSLCompleter completer) { + return MyBatis3Utils.selectOne(this::selectOne, selectList, archiveSynLogDetail, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T11:36:17.6578+08:00", comments="Source Table: public.archive_syn_log_detail") + default List select(SelectDSLCompleter completer) { + return MyBatis3Utils.selectList(this::selectMany, selectList, archiveSynLogDetail, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T11:36:17.6578+08:00", comments="Source Table: public.archive_syn_log_detail") + default List selectDistinct(SelectDSLCompleter completer) { + return MyBatis3Utils.selectDistinct(this::selectMany, selectList, archiveSynLogDetail, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T11:36:17.6578+08:00", comments="Source Table: public.archive_syn_log_detail") + default Optional selectByPrimaryKey(String id_) { + return selectOne(c -> + c.where(id, isEqualTo(id_)) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T11:36:17.6587996+08:00", comments="Source Table: public.archive_syn_log_detail") + default int update(UpdateDSLCompleter completer) { + return MyBatis3Utils.update(this::update, archiveSynLogDetail, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T11:36:17.6587996+08:00", comments="Source Table: public.archive_syn_log_detail") + static UpdateDSL updateAllColumns(ArchiveSynLogDetail row, UpdateDSL dsl) { + return dsl.set(id).equalTo(row::getId) + .set(node_id).equalTo(row::getNode_id) + .set(note_type).equalTo(row::getNote_type) + .set(process_type).equalTo(row::getProcess_type) + .set(create_time).equalTo(row::getCreate_time) + .set(log_id).equalTo(row::getLog_id); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T11:36:17.6587996+08:00", comments="Source Table: public.archive_syn_log_detail") + static UpdateDSL updateSelectiveColumns(ArchiveSynLogDetail row, UpdateDSL dsl) { + return dsl.set(id).equalToWhenPresent(row::getId) + .set(node_id).equalToWhenPresent(row::getNode_id) + .set(note_type).equalToWhenPresent(row::getNote_type) + .set(process_type).equalToWhenPresent(row::getProcess_type) + .set(create_time).equalToWhenPresent(row::getCreate_time) + .set(log_id).equalToWhenPresent(row::getLog_id); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T11:36:17.6597992+08:00", comments="Source Table: public.archive_syn_log_detail") + default int updateByPrimaryKey(ArchiveSynLogDetail row) { + return update(c -> + c.set(node_id).equalTo(row::getNode_id) + .set(note_type).equalTo(row::getNote_type) + .set(process_type).equalTo(row::getProcess_type) + .set(create_time).equalTo(row::getCreate_time) + .set(log_id).equalTo(row::getLog_id) + .where(id, isEqualTo(row::getId)) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T11:36:17.6609965+08:00", comments="Source Table: public.archive_syn_log_detail") + default int updateByPrimaryKeySelective(ArchiveSynLogDetail row) { + return update(c -> + c.set(node_id).equalToWhenPresent(row::getNode_id) + .set(note_type).equalToWhenPresent(row::getNote_type) + .set(process_type).equalToWhenPresent(row::getProcess_type) + .set(create_time).equalToWhenPresent(row::getCreate_time) + .set(log_id).equalToWhenPresent(row::getLog_id) + .where(id, isEqualTo(row::getId)) + ); + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/dao/ArchiveSynLogMapper.java b/src/main/java/jj/tech/paolu/repository/mybatis/dao/ArchiveSynLogMapper.java new file mode 100644 index 0000000..1c6c81e --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/dao/ArchiveSynLogMapper.java @@ -0,0 +1,233 @@ +package jj.tech.paolu.repository.mybatis.dao; + +import static jj.tech.paolu.repository.mybatis.dao.support.ArchiveSynLogDynamicSqlSupport.*; +import static org.mybatis.dynamic.sql.SqlBuilder.isEqualTo; + +import jakarta.annotation.Generated; +import java.util.Collection; +import java.util.List; +import java.util.Optional; +import jj.tech.paolu.repository.mybatis.entity.ArchiveSynLog; +import org.apache.ibatis.annotations.Mapper; +import org.apache.ibatis.annotations.Result; +import org.apache.ibatis.annotations.ResultMap; +import org.apache.ibatis.annotations.Results; +import org.apache.ibatis.annotations.SelectProvider; +import org.apache.ibatis.type.JdbcType; +import org.mybatis.dynamic.sql.BasicColumn; +import org.mybatis.dynamic.sql.delete.DeleteDSLCompleter; +import org.mybatis.dynamic.sql.select.CountDSLCompleter; +import org.mybatis.dynamic.sql.select.SelectDSLCompleter; +import org.mybatis.dynamic.sql.select.render.SelectStatementProvider; +import org.mybatis.dynamic.sql.update.UpdateDSL; +import org.mybatis.dynamic.sql.update.UpdateDSLCompleter; +import org.mybatis.dynamic.sql.update.UpdateModel; +import org.mybatis.dynamic.sql.util.SqlProviderAdapter; +import org.mybatis.dynamic.sql.util.mybatis3.CommonCountMapper; +import org.mybatis.dynamic.sql.util.mybatis3.CommonDeleteMapper; +import org.mybatis.dynamic.sql.util.mybatis3.CommonInsertMapper; +import org.mybatis.dynamic.sql.util.mybatis3.CommonUpdateMapper; +import org.mybatis.dynamic.sql.util.mybatis3.MyBatis3Utils; + +@Mapper +public interface ArchiveSynLogMapper extends CommonCountMapper, CommonDeleteMapper, CommonInsertMapper, CommonUpdateMapper { + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2891521+08:00", comments="Source Table: public.archive_syn_log") + BasicColumn[] selectList = BasicColumn.columnList(id, start_time, insert_dir_count, update_dir_count, insert_dirfile_count, update_dirfile_count, insert_file_count, update_file_count, description, run_result, update_timestamp, next_update_timestamp, end_time); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2881514+08:00", comments="Source Table: public.archive_syn_log") + @SelectProvider(type=SqlProviderAdapter.class, method="select") + @Results(id="ArchiveSynLogResult", value = { + @Result(column="id", property="id", jdbcType=JdbcType.VARCHAR, id=true), + @Result(column="start_time", property="start_time", jdbcType=JdbcType.TIMESTAMP), + @Result(column="insert_dir_count", property="insert_dir_count", jdbcType=JdbcType.BIGINT), + @Result(column="update_dir_count", property="update_dir_count", jdbcType=JdbcType.BIGINT), + @Result(column="insert_dirfile_count", property="insert_dirfile_count", jdbcType=JdbcType.BIGINT), + @Result(column="update_dirfile_count", property="update_dirfile_count", jdbcType=JdbcType.BIGINT), + @Result(column="insert_file_count", property="insert_file_count", jdbcType=JdbcType.BIGINT), + @Result(column="update_file_count", property="update_file_count", jdbcType=JdbcType.BIGINT), + @Result(column="description", property="description", jdbcType=JdbcType.VARCHAR), + @Result(column="run_result", property="run_result", jdbcType=JdbcType.VARCHAR), + @Result(column="update_timestamp", property="update_timestamp", jdbcType=JdbcType.BIGINT), + @Result(column="next_update_timestamp", property="next_update_timestamp", jdbcType=JdbcType.BIGINT), + @Result(column="end_time", property="end_time", jdbcType=JdbcType.TIMESTAMP) + }) + List selectMany(SelectStatementProvider selectStatement); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2881514+08:00", comments="Source Table: public.archive_syn_log") + @SelectProvider(type=SqlProviderAdapter.class, method="select") + @ResultMap("ArchiveSynLogResult") + Optional selectOne(SelectStatementProvider selectStatement); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2881514+08:00", comments="Source Table: public.archive_syn_log") + default long count(CountDSLCompleter completer) { + return MyBatis3Utils.countFrom(this::count, archiveSynLog, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2881514+08:00", comments="Source Table: public.archive_syn_log") + default int delete(DeleteDSLCompleter completer) { + return MyBatis3Utils.deleteFrom(this::delete, archiveSynLog, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2881514+08:00", comments="Source Table: public.archive_syn_log") + default int deleteByPrimaryKey(String id_) { + return delete(c -> + c.where(id, isEqualTo(id_)) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2881514+08:00", comments="Source Table: public.archive_syn_log") + default int insert(ArchiveSynLog row) { + return MyBatis3Utils.insert(this::insert, row, archiveSynLog, c -> + c.map(id).toProperty("id") + .map(start_time).toProperty("start_time") + .map(insert_dir_count).toProperty("insert_dir_count") + .map(update_dir_count).toProperty("update_dir_count") + .map(insert_dirfile_count).toProperty("insert_dirfile_count") + .map(update_dirfile_count).toProperty("update_dirfile_count") + .map(insert_file_count).toProperty("insert_file_count") + .map(update_file_count).toProperty("update_file_count") + .map(description).toProperty("description") + .map(run_result).toProperty("run_result") + .map(update_timestamp).toProperty("update_timestamp") + .map(next_update_timestamp).toProperty("next_update_timestamp") + .map(end_time).toProperty("end_time") + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2891521+08:00", comments="Source Table: public.archive_syn_log") + default int insertMultiple(Collection records) { + return MyBatis3Utils.insertMultiple(this::insertMultiple, records, archiveSynLog, c -> + c.map(id).toProperty("id") + .map(start_time).toProperty("start_time") + .map(insert_dir_count).toProperty("insert_dir_count") + .map(update_dir_count).toProperty("update_dir_count") + .map(insert_dirfile_count).toProperty("insert_dirfile_count") + .map(update_dirfile_count).toProperty("update_dirfile_count") + .map(insert_file_count).toProperty("insert_file_count") + .map(update_file_count).toProperty("update_file_count") + .map(description).toProperty("description") + .map(run_result).toProperty("run_result") + .map(update_timestamp).toProperty("update_timestamp") + .map(next_update_timestamp).toProperty("next_update_timestamp") + .map(end_time).toProperty("end_time") + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2891521+08:00", comments="Source Table: public.archive_syn_log") + default int insertSelective(ArchiveSynLog row) { + return MyBatis3Utils.insert(this::insert, row, archiveSynLog, c -> + c.map(id).toPropertyWhenPresent("id", row::getId) + .map(start_time).toPropertyWhenPresent("start_time", row::getStart_time) + .map(insert_dir_count).toPropertyWhenPresent("insert_dir_count", row::getInsert_dir_count) + .map(update_dir_count).toPropertyWhenPresent("update_dir_count", row::getUpdate_dir_count) + .map(insert_dirfile_count).toPropertyWhenPresent("insert_dirfile_count", row::getInsert_dirfile_count) + .map(update_dirfile_count).toPropertyWhenPresent("update_dirfile_count", row::getUpdate_dirfile_count) + .map(insert_file_count).toPropertyWhenPresent("insert_file_count", row::getInsert_file_count) + .map(update_file_count).toPropertyWhenPresent("update_file_count", row::getUpdate_file_count) + .map(description).toPropertyWhenPresent("description", row::getDescription) + .map(run_result).toPropertyWhenPresent("run_result", row::getRun_result) + .map(update_timestamp).toPropertyWhenPresent("update_timestamp", row::getUpdate_timestamp) + .map(next_update_timestamp).toPropertyWhenPresent("next_update_timestamp", row::getNext_update_timestamp) + .map(end_time).toPropertyWhenPresent("end_time", row::getEnd_time) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2891521+08:00", comments="Source Table: public.archive_syn_log") + default Optional selectOne(SelectDSLCompleter completer) { + return MyBatis3Utils.selectOne(this::selectOne, selectList, archiveSynLog, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2891521+08:00", comments="Source Table: public.archive_syn_log") + default List select(SelectDSLCompleter completer) { + return MyBatis3Utils.selectList(this::selectMany, selectList, archiveSynLog, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2891521+08:00", comments="Source Table: public.archive_syn_log") + default List selectDistinct(SelectDSLCompleter completer) { + return MyBatis3Utils.selectDistinct(this::selectMany, selectList, archiveSynLog, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2891521+08:00", comments="Source Table: public.archive_syn_log") + default Optional selectByPrimaryKey(String id_) { + return selectOne(c -> + c.where(id, isEqualTo(id_)) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2891521+08:00", comments="Source Table: public.archive_syn_log") + default int update(UpdateDSLCompleter completer) { + return MyBatis3Utils.update(this::update, archiveSynLog, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2891521+08:00", comments="Source Table: public.archive_syn_log") + static UpdateDSL updateAllColumns(ArchiveSynLog row, UpdateDSL dsl) { + return dsl.set(id).equalTo(row::getId) + .set(start_time).equalTo(row::getStart_time) + .set(insert_dir_count).equalTo(row::getInsert_dir_count) + .set(update_dir_count).equalTo(row::getUpdate_dir_count) + .set(insert_dirfile_count).equalTo(row::getInsert_dirfile_count) + .set(update_dirfile_count).equalTo(row::getUpdate_dirfile_count) + .set(insert_file_count).equalTo(row::getInsert_file_count) + .set(update_file_count).equalTo(row::getUpdate_file_count) + .set(description).equalTo(row::getDescription) + .set(run_result).equalTo(row::getRun_result) + .set(update_timestamp).equalTo(row::getUpdate_timestamp) + .set(next_update_timestamp).equalTo(row::getNext_update_timestamp) + .set(end_time).equalTo(row::getEnd_time); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2891521+08:00", comments="Source Table: public.archive_syn_log") + static UpdateDSL updateSelectiveColumns(ArchiveSynLog row, UpdateDSL dsl) { + return dsl.set(id).equalToWhenPresent(row::getId) + .set(start_time).equalToWhenPresent(row::getStart_time) + .set(insert_dir_count).equalToWhenPresent(row::getInsert_dir_count) + .set(update_dir_count).equalToWhenPresent(row::getUpdate_dir_count) + .set(insert_dirfile_count).equalToWhenPresent(row::getInsert_dirfile_count) + .set(update_dirfile_count).equalToWhenPresent(row::getUpdate_dirfile_count) + .set(insert_file_count).equalToWhenPresent(row::getInsert_file_count) + .set(update_file_count).equalToWhenPresent(row::getUpdate_file_count) + .set(description).equalToWhenPresent(row::getDescription) + .set(run_result).equalToWhenPresent(row::getRun_result) + .set(update_timestamp).equalToWhenPresent(row::getUpdate_timestamp) + .set(next_update_timestamp).equalToWhenPresent(row::getNext_update_timestamp) + .set(end_time).equalToWhenPresent(row::getEnd_time); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2891521+08:00", comments="Source Table: public.archive_syn_log") + default int updateByPrimaryKey(ArchiveSynLog row) { + return update(c -> + c.set(start_time).equalTo(row::getStart_time) + .set(insert_dir_count).equalTo(row::getInsert_dir_count) + .set(update_dir_count).equalTo(row::getUpdate_dir_count) + .set(insert_dirfile_count).equalTo(row::getInsert_dirfile_count) + .set(update_dirfile_count).equalTo(row::getUpdate_dirfile_count) + .set(insert_file_count).equalTo(row::getInsert_file_count) + .set(update_file_count).equalTo(row::getUpdate_file_count) + .set(description).equalTo(row::getDescription) + .set(run_result).equalTo(row::getRun_result) + .set(update_timestamp).equalTo(row::getUpdate_timestamp) + .set(next_update_timestamp).equalTo(row::getNext_update_timestamp) + .set(end_time).equalTo(row::getEnd_time) + .where(id, isEqualTo(row::getId)) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2891521+08:00", comments="Source Table: public.archive_syn_log") + default int updateByPrimaryKeySelective(ArchiveSynLog row) { + return update(c -> + c.set(start_time).equalToWhenPresent(row::getStart_time) + .set(insert_dir_count).equalToWhenPresent(row::getInsert_dir_count) + .set(update_dir_count).equalToWhenPresent(row::getUpdate_dir_count) + .set(insert_dirfile_count).equalToWhenPresent(row::getInsert_dirfile_count) + .set(update_dirfile_count).equalToWhenPresent(row::getUpdate_dirfile_count) + .set(insert_file_count).equalToWhenPresent(row::getInsert_file_count) + .set(update_file_count).equalToWhenPresent(row::getUpdate_file_count) + .set(description).equalToWhenPresent(row::getDescription) + .set(run_result).equalToWhenPresent(row::getRun_result) + .set(update_timestamp).equalToWhenPresent(row::getUpdate_timestamp) + .set(next_update_timestamp).equalToWhenPresent(row::getNext_update_timestamp) + .set(end_time).equalToWhenPresent(row::getEnd_time) + .where(id, isEqualTo(row::getId)) + ); + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/dao/ArchiveSynTimestampMapper.java b/src/main/java/jj/tech/paolu/repository/mybatis/dao/ArchiveSynTimestampMapper.java new file mode 100644 index 0000000..e980078 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/dao/ArchiveSynTimestampMapper.java @@ -0,0 +1,155 @@ +package jj.tech.paolu.repository.mybatis.dao; + +import static jj.tech.paolu.repository.mybatis.dao.support.ArchiveSynTimestampDynamicSqlSupport.*; +import static org.mybatis.dynamic.sql.SqlBuilder.isEqualTo; + +import jakarta.annotation.Generated; +import java.util.Collection; +import java.util.List; +import java.util.Optional; +import jj.tech.paolu.repository.mybatis.entity.ArchiveSynTimestamp; +import org.apache.ibatis.annotations.Mapper; +import org.apache.ibatis.annotations.Result; +import org.apache.ibatis.annotations.ResultMap; +import org.apache.ibatis.annotations.Results; +import org.apache.ibatis.annotations.SelectProvider; +import org.apache.ibatis.type.JdbcType; +import org.mybatis.dynamic.sql.BasicColumn; +import org.mybatis.dynamic.sql.delete.DeleteDSLCompleter; +import org.mybatis.dynamic.sql.select.CountDSLCompleter; +import org.mybatis.dynamic.sql.select.SelectDSLCompleter; +import org.mybatis.dynamic.sql.select.render.SelectStatementProvider; +import org.mybatis.dynamic.sql.update.UpdateDSL; +import org.mybatis.dynamic.sql.update.UpdateDSLCompleter; +import org.mybatis.dynamic.sql.update.UpdateModel; +import org.mybatis.dynamic.sql.util.SqlProviderAdapter; +import org.mybatis.dynamic.sql.util.mybatis3.CommonCountMapper; +import org.mybatis.dynamic.sql.util.mybatis3.CommonDeleteMapper; +import org.mybatis.dynamic.sql.util.mybatis3.CommonInsertMapper; +import org.mybatis.dynamic.sql.util.mybatis3.CommonUpdateMapper; +import org.mybatis.dynamic.sql.util.mybatis3.MyBatis3Utils; + +@Mapper +public interface ArchiveSynTimestampMapper extends CommonCountMapper, CommonDeleteMapper, CommonInsertMapper, CommonUpdateMapper { + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T20:53:02.7122239+08:00", comments="Source Table: public.archive_syn_timestamp") + BasicColumn[] selectList = BasicColumn.columnList(node_id, node_type, timestamp); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T20:53:02.7036908+08:00", comments="Source Table: public.archive_syn_timestamp") + @SelectProvider(type=SqlProviderAdapter.class, method="select") + @Results(id="ArchiveSynTimestampResult", value = { + @Result(column="node_id", property="node_id", jdbcType=JdbcType.VARCHAR, id=true), + @Result(column="node_type", property="node_type", jdbcType=JdbcType.INTEGER, id=true), + @Result(column="timestamp", property="timestamp", jdbcType=JdbcType.VARCHAR) + }) + List selectMany(SelectStatementProvider selectStatement); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T20:53:02.7046911+08:00", comments="Source Table: public.archive_syn_timestamp") + @SelectProvider(type=SqlProviderAdapter.class, method="select") + @ResultMap("ArchiveSynTimestampResult") + Optional selectOne(SelectStatementProvider selectStatement); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T20:53:02.7061882+08:00", comments="Source Table: public.archive_syn_timestamp") + default long count(CountDSLCompleter completer) { + return MyBatis3Utils.countFrom(this::count, archiveSynTimestamp, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T20:53:02.7061882+08:00", comments="Source Table: public.archive_syn_timestamp") + default int delete(DeleteDSLCompleter completer) { + return MyBatis3Utils.deleteFrom(this::delete, archiveSynTimestamp, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T20:53:02.7061882+08:00", comments="Source Table: public.archive_syn_timestamp") + default int deleteByPrimaryKey(String node_id_, Integer node_type_) { + return delete(c -> + c.where(node_id, isEqualTo(node_id_)) + .and(node_type, isEqualTo(node_type_)) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T20:53:02.7075694+08:00", comments="Source Table: public.archive_syn_timestamp") + default int insert(ArchiveSynTimestamp row) { + return MyBatis3Utils.insert(this::insert, row, archiveSynTimestamp, c -> + c.map(node_id).toProperty("node_id") + .map(node_type).toProperty("node_type") + .map(timestamp).toProperty("timestamp") + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T20:53:02.7098802+08:00", comments="Source Table: public.archive_syn_timestamp") + default int insertMultiple(Collection records) { + return MyBatis3Utils.insertMultiple(this::insertMultiple, records, archiveSynTimestamp, c -> + c.map(node_id).toProperty("node_id") + .map(node_type).toProperty("node_type") + .map(timestamp).toProperty("timestamp") + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T20:53:02.7110346+08:00", comments="Source Table: public.archive_syn_timestamp") + default int insertSelective(ArchiveSynTimestamp row) { + return MyBatis3Utils.insert(this::insert, row, archiveSynTimestamp, c -> + c.map(node_id).toPropertyWhenPresent("node_id", row::getNode_id) + .map(node_type).toPropertyWhenPresent("node_type", row::getNode_type) + .map(timestamp).toPropertyWhenPresent("timestamp", row::getTimestamp) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T20:53:02.7122239+08:00", comments="Source Table: public.archive_syn_timestamp") + default Optional selectOne(SelectDSLCompleter completer) { + return MyBatis3Utils.selectOne(this::selectOne, selectList, archiveSynTimestamp, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T20:53:02.7133331+08:00", comments="Source Table: public.archive_syn_timestamp") + default List select(SelectDSLCompleter completer) { + return MyBatis3Utils.selectList(this::selectMany, selectList, archiveSynTimestamp, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T20:53:02.7133331+08:00", comments="Source Table: public.archive_syn_timestamp") + default List selectDistinct(SelectDSLCompleter completer) { + return MyBatis3Utils.selectDistinct(this::selectMany, selectList, archiveSynTimestamp, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T20:53:02.7133331+08:00", comments="Source Table: public.archive_syn_timestamp") + default Optional selectByPrimaryKey(String node_id_, Integer node_type_) { + return selectOne(c -> + c.where(node_id, isEqualTo(node_id_)) + .and(node_type, isEqualTo(node_type_)) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T20:53:02.7143793+08:00", comments="Source Table: public.archive_syn_timestamp") + default int update(UpdateDSLCompleter completer) { + return MyBatis3Utils.update(this::update, archiveSynTimestamp, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T20:53:02.7143793+08:00", comments="Source Table: public.archive_syn_timestamp") + static UpdateDSL updateAllColumns(ArchiveSynTimestamp row, UpdateDSL dsl) { + return dsl.set(node_id).equalTo(row::getNode_id) + .set(node_type).equalTo(row::getNode_type) + .set(timestamp).equalTo(row::getTimestamp); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T20:53:02.7143793+08:00", comments="Source Table: public.archive_syn_timestamp") + static UpdateDSL updateSelectiveColumns(ArchiveSynTimestamp row, UpdateDSL dsl) { + return dsl.set(node_id).equalToWhenPresent(row::getNode_id) + .set(node_type).equalToWhenPresent(row::getNode_type) + .set(timestamp).equalToWhenPresent(row::getTimestamp); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T20:53:02.7155033+08:00", comments="Source Table: public.archive_syn_timestamp") + default int updateByPrimaryKey(ArchiveSynTimestamp row) { + return update(c -> + c.set(timestamp).equalTo(row::getTimestamp) + .where(node_id, isEqualTo(row::getNode_id)) + .and(node_type, isEqualTo(row::getNode_type)) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T20:53:02.7155033+08:00", comments="Source Table: public.archive_syn_timestamp") + default int updateByPrimaryKeySelective(ArchiveSynTimestamp row) { + return update(c -> + c.set(timestamp).equalToWhenPresent(row::getTimestamp) + .where(node_id, isEqualTo(row::getNode_id)) + .and(node_type, isEqualTo(row::getNode_type)) + ); + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/dao/CertificateApplyMapper.java b/src/main/java/jj/tech/paolu/repository/mybatis/dao/CertificateApplyMapper.java new file mode 100644 index 0000000..a3fc6d1 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/dao/CertificateApplyMapper.java @@ -0,0 +1,265 @@ +package jj.tech.paolu.repository.mybatis.dao; + +import static jj.tech.paolu.repository.mybatis.dao.support.CertificateApplyDynamicSqlSupport.*; +import static org.mybatis.dynamic.sql.SqlBuilder.isEqualTo; + +import jakarta.annotation.Generated; +import java.util.Collection; +import java.util.List; +import java.util.Optional; +import jj.tech.paolu.repository.mybatis.entity.CertificateApply; +import org.apache.ibatis.annotations.Mapper; +import org.apache.ibatis.annotations.Result; +import org.apache.ibatis.annotations.ResultMap; +import org.apache.ibatis.annotations.Results; +import org.apache.ibatis.annotations.SelectProvider; +import org.apache.ibatis.type.JdbcType; +import org.mybatis.dynamic.sql.BasicColumn; +import org.mybatis.dynamic.sql.delete.DeleteDSLCompleter; +import org.mybatis.dynamic.sql.select.CountDSLCompleter; +import org.mybatis.dynamic.sql.select.SelectDSLCompleter; +import org.mybatis.dynamic.sql.select.render.SelectStatementProvider; +import org.mybatis.dynamic.sql.update.UpdateDSL; +import org.mybatis.dynamic.sql.update.UpdateDSLCompleter; +import org.mybatis.dynamic.sql.update.UpdateModel; +import org.mybatis.dynamic.sql.util.SqlProviderAdapter; +import org.mybatis.dynamic.sql.util.mybatis3.CommonCountMapper; +import org.mybatis.dynamic.sql.util.mybatis3.CommonDeleteMapper; +import org.mybatis.dynamic.sql.util.mybatis3.CommonInsertMapper; +import org.mybatis.dynamic.sql.util.mybatis3.CommonUpdateMapper; +import org.mybatis.dynamic.sql.util.mybatis3.MyBatis3Utils; + +@Mapper +public interface CertificateApplyMapper extends CommonCountMapper, CommonDeleteMapper, CommonInsertMapper, CommonUpdateMapper { + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3111488+08:00", comments="Source Table: public.certificate_apply") + BasicColumn[] selectList = BasicColumn.columnList(id, is_org, user_id, user_name, user_real_name, user_phone, user_org_id, user_org_name, apply_type, status, apply_time, apply_finish_time, apply_reason, next_check_org_id, end_check_org_id, cer_id, company_id); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3111488+08:00", comments="Source Table: public.certificate_apply") + @SelectProvider(type=SqlProviderAdapter.class, method="select") + @Results(id="CertificateApplyResult", value = { + @Result(column="id", property="id", jdbcType=JdbcType.VARCHAR, id=true), + @Result(column="is_org", property="is_org", jdbcType=JdbcType.INTEGER), + @Result(column="user_id", property="user_id", jdbcType=JdbcType.VARCHAR), + @Result(column="user_name", property="user_name", jdbcType=JdbcType.VARCHAR), + @Result(column="user_real_name", property="user_real_name", jdbcType=JdbcType.VARCHAR), + @Result(column="user_phone", property="user_phone", jdbcType=JdbcType.VARCHAR), + @Result(column="user_org_id", property="user_org_id", jdbcType=JdbcType.VARCHAR), + @Result(column="user_org_name", property="user_org_name", jdbcType=JdbcType.VARCHAR), + @Result(column="apply_type", property="apply_type", jdbcType=JdbcType.INTEGER), + @Result(column="status", property="status", jdbcType=JdbcType.INTEGER), + @Result(column="apply_time", property="apply_time", jdbcType=JdbcType.TIMESTAMP), + @Result(column="apply_finish_time", property="apply_finish_time", jdbcType=JdbcType.TIMESTAMP), + @Result(column="apply_reason", property="apply_reason", jdbcType=JdbcType.VARCHAR), + @Result(column="next_check_org_id", property="next_check_org_id", jdbcType=JdbcType.VARCHAR), + @Result(column="end_check_org_id", property="end_check_org_id", jdbcType=JdbcType.VARCHAR), + @Result(column="cer_id", property="cer_id", jdbcType=JdbcType.VARCHAR), + @Result(column="company_id", property="company_id", jdbcType=JdbcType.VARCHAR) + }) + List selectMany(SelectStatementProvider selectStatement); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3111488+08:00", comments="Source Table: public.certificate_apply") + @SelectProvider(type=SqlProviderAdapter.class, method="select") + @ResultMap("CertificateApplyResult") + Optional selectOne(SelectStatementProvider selectStatement); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3111488+08:00", comments="Source Table: public.certificate_apply") + default long count(CountDSLCompleter completer) { + return MyBatis3Utils.countFrom(this::count, certificateApply, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3111488+08:00", comments="Source Table: public.certificate_apply") + default int delete(DeleteDSLCompleter completer) { + return MyBatis3Utils.deleteFrom(this::delete, certificateApply, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3111488+08:00", comments="Source Table: public.certificate_apply") + default int deleteByPrimaryKey(String id_) { + return delete(c -> + c.where(id, isEqualTo(id_)) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3111488+08:00", comments="Source Table: public.certificate_apply") + default int insert(CertificateApply row) { + return MyBatis3Utils.insert(this::insert, row, certificateApply, c -> + c.map(id).toProperty("id") + .map(is_org).toProperty("is_org") + .map(user_id).toProperty("user_id") + .map(user_name).toProperty("user_name") + .map(user_real_name).toProperty("user_real_name") + .map(user_phone).toProperty("user_phone") + .map(user_org_id).toProperty("user_org_id") + .map(user_org_name).toProperty("user_org_name") + .map(apply_type).toProperty("apply_type") + .map(status).toProperty("status") + .map(apply_time).toProperty("apply_time") + .map(apply_finish_time).toProperty("apply_finish_time") + .map(apply_reason).toProperty("apply_reason") + .map(next_check_org_id).toProperty("next_check_org_id") + .map(end_check_org_id).toProperty("end_check_org_id") + .map(cer_id).toProperty("cer_id") + .map(company_id).toProperty("company_id") + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3111488+08:00", comments="Source Table: public.certificate_apply") + default int insertMultiple(Collection records) { + return MyBatis3Utils.insertMultiple(this::insertMultiple, records, certificateApply, c -> + c.map(id).toProperty("id") + .map(is_org).toProperty("is_org") + .map(user_id).toProperty("user_id") + .map(user_name).toProperty("user_name") + .map(user_real_name).toProperty("user_real_name") + .map(user_phone).toProperty("user_phone") + .map(user_org_id).toProperty("user_org_id") + .map(user_org_name).toProperty("user_org_name") + .map(apply_type).toProperty("apply_type") + .map(status).toProperty("status") + .map(apply_time).toProperty("apply_time") + .map(apply_finish_time).toProperty("apply_finish_time") + .map(apply_reason).toProperty("apply_reason") + .map(next_check_org_id).toProperty("next_check_org_id") + .map(end_check_org_id).toProperty("end_check_org_id") + .map(cer_id).toProperty("cer_id") + .map(company_id).toProperty("company_id") + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3111488+08:00", comments="Source Table: public.certificate_apply") + default int insertSelective(CertificateApply row) { + return MyBatis3Utils.insert(this::insert, row, certificateApply, c -> + c.map(id).toPropertyWhenPresent("id", row::getId) + .map(is_org).toPropertyWhenPresent("is_org", row::getIs_org) + .map(user_id).toPropertyWhenPresent("user_id", row::getUser_id) + .map(user_name).toPropertyWhenPresent("user_name", row::getUser_name) + .map(user_real_name).toPropertyWhenPresent("user_real_name", row::getUser_real_name) + .map(user_phone).toPropertyWhenPresent("user_phone", row::getUser_phone) + .map(user_org_id).toPropertyWhenPresent("user_org_id", row::getUser_org_id) + .map(user_org_name).toPropertyWhenPresent("user_org_name", row::getUser_org_name) + .map(apply_type).toPropertyWhenPresent("apply_type", row::getApply_type) + .map(status).toPropertyWhenPresent("status", row::getStatus) + .map(apply_time).toPropertyWhenPresent("apply_time", row::getApply_time) + .map(apply_finish_time).toPropertyWhenPresent("apply_finish_time", row::getApply_finish_time) + .map(apply_reason).toPropertyWhenPresent("apply_reason", row::getApply_reason) + .map(next_check_org_id).toPropertyWhenPresent("next_check_org_id", row::getNext_check_org_id) + .map(end_check_org_id).toPropertyWhenPresent("end_check_org_id", row::getEnd_check_org_id) + .map(cer_id).toPropertyWhenPresent("cer_id", row::getCer_id) + .map(company_id).toPropertyWhenPresent("company_id", row::getCompany_id) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3111488+08:00", comments="Source Table: public.certificate_apply") + default Optional selectOne(SelectDSLCompleter completer) { + return MyBatis3Utils.selectOne(this::selectOne, selectList, certificateApply, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3121484+08:00", comments="Source Table: public.certificate_apply") + default List select(SelectDSLCompleter completer) { + return MyBatis3Utils.selectList(this::selectMany, selectList, certificateApply, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3121484+08:00", comments="Source Table: public.certificate_apply") + default List selectDistinct(SelectDSLCompleter completer) { + return MyBatis3Utils.selectDistinct(this::selectMany, selectList, certificateApply, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3121484+08:00", comments="Source Table: public.certificate_apply") + default Optional selectByPrimaryKey(String id_) { + return selectOne(c -> + c.where(id, isEqualTo(id_)) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3121484+08:00", comments="Source Table: public.certificate_apply") + default int update(UpdateDSLCompleter completer) { + return MyBatis3Utils.update(this::update, certificateApply, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3121484+08:00", comments="Source Table: public.certificate_apply") + static UpdateDSL updateAllColumns(CertificateApply row, UpdateDSL dsl) { + return dsl.set(id).equalTo(row::getId) + .set(is_org).equalTo(row::getIs_org) + .set(user_id).equalTo(row::getUser_id) + .set(user_name).equalTo(row::getUser_name) + .set(user_real_name).equalTo(row::getUser_real_name) + .set(user_phone).equalTo(row::getUser_phone) + .set(user_org_id).equalTo(row::getUser_org_id) + .set(user_org_name).equalTo(row::getUser_org_name) + .set(apply_type).equalTo(row::getApply_type) + .set(status).equalTo(row::getStatus) + .set(apply_time).equalTo(row::getApply_time) + .set(apply_finish_time).equalTo(row::getApply_finish_time) + .set(apply_reason).equalTo(row::getApply_reason) + .set(next_check_org_id).equalTo(row::getNext_check_org_id) + .set(end_check_org_id).equalTo(row::getEnd_check_org_id) + .set(cer_id).equalTo(row::getCer_id) + .set(company_id).equalTo(row::getCompany_id); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3121484+08:00", comments="Source Table: public.certificate_apply") + static UpdateDSL updateSelectiveColumns(CertificateApply row, UpdateDSL dsl) { + return dsl.set(id).equalToWhenPresent(row::getId) + .set(is_org).equalToWhenPresent(row::getIs_org) + .set(user_id).equalToWhenPresent(row::getUser_id) + .set(user_name).equalToWhenPresent(row::getUser_name) + .set(user_real_name).equalToWhenPresent(row::getUser_real_name) + .set(user_phone).equalToWhenPresent(row::getUser_phone) + .set(user_org_id).equalToWhenPresent(row::getUser_org_id) + .set(user_org_name).equalToWhenPresent(row::getUser_org_name) + .set(apply_type).equalToWhenPresent(row::getApply_type) + .set(status).equalToWhenPresent(row::getStatus) + .set(apply_time).equalToWhenPresent(row::getApply_time) + .set(apply_finish_time).equalToWhenPresent(row::getApply_finish_time) + .set(apply_reason).equalToWhenPresent(row::getApply_reason) + .set(next_check_org_id).equalToWhenPresent(row::getNext_check_org_id) + .set(end_check_org_id).equalToWhenPresent(row::getEnd_check_org_id) + .set(cer_id).equalToWhenPresent(row::getCer_id) + .set(company_id).equalToWhenPresent(row::getCompany_id); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3121484+08:00", comments="Source Table: public.certificate_apply") + default int updateByPrimaryKey(CertificateApply row) { + return update(c -> + c.set(is_org).equalTo(row::getIs_org) + .set(user_id).equalTo(row::getUser_id) + .set(user_name).equalTo(row::getUser_name) + .set(user_real_name).equalTo(row::getUser_real_name) + .set(user_phone).equalTo(row::getUser_phone) + .set(user_org_id).equalTo(row::getUser_org_id) + .set(user_org_name).equalTo(row::getUser_org_name) + .set(apply_type).equalTo(row::getApply_type) + .set(status).equalTo(row::getStatus) + .set(apply_time).equalTo(row::getApply_time) + .set(apply_finish_time).equalTo(row::getApply_finish_time) + .set(apply_reason).equalTo(row::getApply_reason) + .set(next_check_org_id).equalTo(row::getNext_check_org_id) + .set(end_check_org_id).equalTo(row::getEnd_check_org_id) + .set(cer_id).equalTo(row::getCer_id) + .set(company_id).equalTo(row::getCompany_id) + .where(id, isEqualTo(row::getId)) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3121484+08:00", comments="Source Table: public.certificate_apply") + default int updateByPrimaryKeySelective(CertificateApply row) { + return update(c -> + c.set(is_org).equalToWhenPresent(row::getIs_org) + .set(user_id).equalToWhenPresent(row::getUser_id) + .set(user_name).equalToWhenPresent(row::getUser_name) + .set(user_real_name).equalToWhenPresent(row::getUser_real_name) + .set(user_phone).equalToWhenPresent(row::getUser_phone) + .set(user_org_id).equalToWhenPresent(row::getUser_org_id) + .set(user_org_name).equalToWhenPresent(row::getUser_org_name) + .set(apply_type).equalToWhenPresent(row::getApply_type) + .set(status).equalToWhenPresent(row::getStatus) + .set(apply_time).equalToWhenPresent(row::getApply_time) + .set(apply_finish_time).equalToWhenPresent(row::getApply_finish_time) + .set(apply_reason).equalToWhenPresent(row::getApply_reason) + .set(next_check_org_id).equalToWhenPresent(row::getNext_check_org_id) + .set(end_check_org_id).equalToWhenPresent(row::getEnd_check_org_id) + .set(cer_id).equalToWhenPresent(row::getCer_id) + .set(company_id).equalToWhenPresent(row::getCompany_id) + .where(id, isEqualTo(row::getId)) + ); + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/dao/CertificateApplyRecordMapper.java b/src/main/java/jj/tech/paolu/repository/mybatis/dao/CertificateApplyRecordMapper.java new file mode 100644 index 0000000..edd442e --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/dao/CertificateApplyRecordMapper.java @@ -0,0 +1,249 @@ +package jj.tech.paolu.repository.mybatis.dao; + +import static jj.tech.paolu.repository.mybatis.dao.support.CertificateApplyRecordDynamicSqlSupport.*; +import static org.mybatis.dynamic.sql.SqlBuilder.isEqualTo; + +import jakarta.annotation.Generated; +import java.util.Collection; +import java.util.List; +import java.util.Optional; +import jj.tech.paolu.repository.mybatis.entity.CertificateApplyRecord; +import org.apache.ibatis.annotations.Mapper; +import org.apache.ibatis.annotations.Result; +import org.apache.ibatis.annotations.ResultMap; +import org.apache.ibatis.annotations.Results; +import org.apache.ibatis.annotations.SelectProvider; +import org.apache.ibatis.type.JdbcType; +import org.mybatis.dynamic.sql.BasicColumn; +import org.mybatis.dynamic.sql.delete.DeleteDSLCompleter; +import org.mybatis.dynamic.sql.select.CountDSLCompleter; +import org.mybatis.dynamic.sql.select.SelectDSLCompleter; +import org.mybatis.dynamic.sql.select.render.SelectStatementProvider; +import org.mybatis.dynamic.sql.update.UpdateDSL; +import org.mybatis.dynamic.sql.update.UpdateDSLCompleter; +import org.mybatis.dynamic.sql.update.UpdateModel; +import org.mybatis.dynamic.sql.util.SqlProviderAdapter; +import org.mybatis.dynamic.sql.util.mybatis3.CommonCountMapper; +import org.mybatis.dynamic.sql.util.mybatis3.CommonDeleteMapper; +import org.mybatis.dynamic.sql.util.mybatis3.CommonInsertMapper; +import org.mybatis.dynamic.sql.util.mybatis3.CommonUpdateMapper; +import org.mybatis.dynamic.sql.util.mybatis3.MyBatis3Utils; + +@Mapper +public interface CertificateApplyRecordMapper extends CommonCountMapper, CommonDeleteMapper, CommonInsertMapper, CommonUpdateMapper { + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3071473+08:00", comments="Source Table: public.certificate_apply_record") + BasicColumn[] selectList = BasicColumn.columnList(id, certificate_apply_id, certificate_apply_user_id, certificate_apply_user_org_id, is_org, apply_type, check_user_id, check_user_name, check_org_id, check_org_name, check_describe, check_status, check_time, next_check_org_id, next_check_org_name); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3071473+08:00", comments="Source Table: public.certificate_apply_record") + @SelectProvider(type=SqlProviderAdapter.class, method="select") + @Results(id="CertificateApplyRecordResult", value = { + @Result(column="id", property="id", jdbcType=JdbcType.VARCHAR, id=true), + @Result(column="certificate_apply_id", property="certificate_apply_id", jdbcType=JdbcType.VARCHAR), + @Result(column="certificate_apply_user_id", property="certificate_apply_user_id", jdbcType=JdbcType.VARCHAR), + @Result(column="certificate_apply_user_org_id", property="certificate_apply_user_org_id", jdbcType=JdbcType.VARCHAR), + @Result(column="is_org", property="is_org", jdbcType=JdbcType.INTEGER), + @Result(column="apply_type", property="apply_type", jdbcType=JdbcType.INTEGER), + @Result(column="check_user_id", property="check_user_id", jdbcType=JdbcType.VARCHAR), + @Result(column="check_user_name", property="check_user_name", jdbcType=JdbcType.VARCHAR), + @Result(column="check_org_id", property="check_org_id", jdbcType=JdbcType.VARCHAR), + @Result(column="check_org_name", property="check_org_name", jdbcType=JdbcType.VARCHAR), + @Result(column="check_describe", property="check_describe", jdbcType=JdbcType.VARCHAR), + @Result(column="check_status", property="check_status", jdbcType=JdbcType.INTEGER), + @Result(column="check_time", property="check_time", jdbcType=JdbcType.TIMESTAMP), + @Result(column="next_check_org_id", property="next_check_org_id", jdbcType=JdbcType.VARCHAR), + @Result(column="next_check_org_name", property="next_check_org_name", jdbcType=JdbcType.VARCHAR) + }) + List selectMany(SelectStatementProvider selectStatement); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3071473+08:00", comments="Source Table: public.certificate_apply_record") + @SelectProvider(type=SqlProviderAdapter.class, method="select") + @ResultMap("CertificateApplyRecordResult") + Optional selectOne(SelectStatementProvider selectStatement); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3071473+08:00", comments="Source Table: public.certificate_apply_record") + default long count(CountDSLCompleter completer) { + return MyBatis3Utils.countFrom(this::count, certificateApplyRecord, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3071473+08:00", comments="Source Table: public.certificate_apply_record") + default int delete(DeleteDSLCompleter completer) { + return MyBatis3Utils.deleteFrom(this::delete, certificateApplyRecord, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3071473+08:00", comments="Source Table: public.certificate_apply_record") + default int deleteByPrimaryKey(String id_) { + return delete(c -> + c.where(id, isEqualTo(id_)) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3071473+08:00", comments="Source Table: public.certificate_apply_record") + default int insert(CertificateApplyRecord row) { + return MyBatis3Utils.insert(this::insert, row, certificateApplyRecord, c -> + c.map(id).toProperty("id") + .map(certificate_apply_id).toProperty("certificate_apply_id") + .map(certificate_apply_user_id).toProperty("certificate_apply_user_id") + .map(certificate_apply_user_org_id).toProperty("certificate_apply_user_org_id") + .map(is_org).toProperty("is_org") + .map(apply_type).toProperty("apply_type") + .map(check_user_id).toProperty("check_user_id") + .map(check_user_name).toProperty("check_user_name") + .map(check_org_id).toProperty("check_org_id") + .map(check_org_name).toProperty("check_org_name") + .map(check_describe).toProperty("check_describe") + .map(check_status).toProperty("check_status") + .map(check_time).toProperty("check_time") + .map(next_check_org_id).toProperty("next_check_org_id") + .map(next_check_org_name).toProperty("next_check_org_name") + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3071473+08:00", comments="Source Table: public.certificate_apply_record") + default int insertMultiple(Collection records) { + return MyBatis3Utils.insertMultiple(this::insertMultiple, records, certificateApplyRecord, c -> + c.map(id).toProperty("id") + .map(certificate_apply_id).toProperty("certificate_apply_id") + .map(certificate_apply_user_id).toProperty("certificate_apply_user_id") + .map(certificate_apply_user_org_id).toProperty("certificate_apply_user_org_id") + .map(is_org).toProperty("is_org") + .map(apply_type).toProperty("apply_type") + .map(check_user_id).toProperty("check_user_id") + .map(check_user_name).toProperty("check_user_name") + .map(check_org_id).toProperty("check_org_id") + .map(check_org_name).toProperty("check_org_name") + .map(check_describe).toProperty("check_describe") + .map(check_status).toProperty("check_status") + .map(check_time).toProperty("check_time") + .map(next_check_org_id).toProperty("next_check_org_id") + .map(next_check_org_name).toProperty("next_check_org_name") + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3071473+08:00", comments="Source Table: public.certificate_apply_record") + default int insertSelective(CertificateApplyRecord row) { + return MyBatis3Utils.insert(this::insert, row, certificateApplyRecord, c -> + c.map(id).toPropertyWhenPresent("id", row::getId) + .map(certificate_apply_id).toPropertyWhenPresent("certificate_apply_id", row::getCertificate_apply_id) + .map(certificate_apply_user_id).toPropertyWhenPresent("certificate_apply_user_id", row::getCertificate_apply_user_id) + .map(certificate_apply_user_org_id).toPropertyWhenPresent("certificate_apply_user_org_id", row::getCertificate_apply_user_org_id) + .map(is_org).toPropertyWhenPresent("is_org", row::getIs_org) + .map(apply_type).toPropertyWhenPresent("apply_type", row::getApply_type) + .map(check_user_id).toPropertyWhenPresent("check_user_id", row::getCheck_user_id) + .map(check_user_name).toPropertyWhenPresent("check_user_name", row::getCheck_user_name) + .map(check_org_id).toPropertyWhenPresent("check_org_id", row::getCheck_org_id) + .map(check_org_name).toPropertyWhenPresent("check_org_name", row::getCheck_org_name) + .map(check_describe).toPropertyWhenPresent("check_describe", row::getCheck_describe) + .map(check_status).toPropertyWhenPresent("check_status", row::getCheck_status) + .map(check_time).toPropertyWhenPresent("check_time", row::getCheck_time) + .map(next_check_org_id).toPropertyWhenPresent("next_check_org_id", row::getNext_check_org_id) + .map(next_check_org_name).toPropertyWhenPresent("next_check_org_name", row::getNext_check_org_name) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3071473+08:00", comments="Source Table: public.certificate_apply_record") + default Optional selectOne(SelectDSLCompleter completer) { + return MyBatis3Utils.selectOne(this::selectOne, selectList, certificateApplyRecord, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3071473+08:00", comments="Source Table: public.certificate_apply_record") + default List select(SelectDSLCompleter completer) { + return MyBatis3Utils.selectList(this::selectMany, selectList, certificateApplyRecord, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3071473+08:00", comments="Source Table: public.certificate_apply_record") + default List selectDistinct(SelectDSLCompleter completer) { + return MyBatis3Utils.selectDistinct(this::selectMany, selectList, certificateApplyRecord, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3071473+08:00", comments="Source Table: public.certificate_apply_record") + default Optional selectByPrimaryKey(String id_) { + return selectOne(c -> + c.where(id, isEqualTo(id_)) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3071473+08:00", comments="Source Table: public.certificate_apply_record") + default int update(UpdateDSLCompleter completer) { + return MyBatis3Utils.update(this::update, certificateApplyRecord, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3081477+08:00", comments="Source Table: public.certificate_apply_record") + static UpdateDSL updateAllColumns(CertificateApplyRecord row, UpdateDSL dsl) { + return dsl.set(id).equalTo(row::getId) + .set(certificate_apply_id).equalTo(row::getCertificate_apply_id) + .set(certificate_apply_user_id).equalTo(row::getCertificate_apply_user_id) + .set(certificate_apply_user_org_id).equalTo(row::getCertificate_apply_user_org_id) + .set(is_org).equalTo(row::getIs_org) + .set(apply_type).equalTo(row::getApply_type) + .set(check_user_id).equalTo(row::getCheck_user_id) + .set(check_user_name).equalTo(row::getCheck_user_name) + .set(check_org_id).equalTo(row::getCheck_org_id) + .set(check_org_name).equalTo(row::getCheck_org_name) + .set(check_describe).equalTo(row::getCheck_describe) + .set(check_status).equalTo(row::getCheck_status) + .set(check_time).equalTo(row::getCheck_time) + .set(next_check_org_id).equalTo(row::getNext_check_org_id) + .set(next_check_org_name).equalTo(row::getNext_check_org_name); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3081477+08:00", comments="Source Table: public.certificate_apply_record") + static UpdateDSL updateSelectiveColumns(CertificateApplyRecord row, UpdateDSL dsl) { + return dsl.set(id).equalToWhenPresent(row::getId) + .set(certificate_apply_id).equalToWhenPresent(row::getCertificate_apply_id) + .set(certificate_apply_user_id).equalToWhenPresent(row::getCertificate_apply_user_id) + .set(certificate_apply_user_org_id).equalToWhenPresent(row::getCertificate_apply_user_org_id) + .set(is_org).equalToWhenPresent(row::getIs_org) + .set(apply_type).equalToWhenPresent(row::getApply_type) + .set(check_user_id).equalToWhenPresent(row::getCheck_user_id) + .set(check_user_name).equalToWhenPresent(row::getCheck_user_name) + .set(check_org_id).equalToWhenPresent(row::getCheck_org_id) + .set(check_org_name).equalToWhenPresent(row::getCheck_org_name) + .set(check_describe).equalToWhenPresent(row::getCheck_describe) + .set(check_status).equalToWhenPresent(row::getCheck_status) + .set(check_time).equalToWhenPresent(row::getCheck_time) + .set(next_check_org_id).equalToWhenPresent(row::getNext_check_org_id) + .set(next_check_org_name).equalToWhenPresent(row::getNext_check_org_name); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3081477+08:00", comments="Source Table: public.certificate_apply_record") + default int updateByPrimaryKey(CertificateApplyRecord row) { + return update(c -> + c.set(certificate_apply_id).equalTo(row::getCertificate_apply_id) + .set(certificate_apply_user_id).equalTo(row::getCertificate_apply_user_id) + .set(certificate_apply_user_org_id).equalTo(row::getCertificate_apply_user_org_id) + .set(is_org).equalTo(row::getIs_org) + .set(apply_type).equalTo(row::getApply_type) + .set(check_user_id).equalTo(row::getCheck_user_id) + .set(check_user_name).equalTo(row::getCheck_user_name) + .set(check_org_id).equalTo(row::getCheck_org_id) + .set(check_org_name).equalTo(row::getCheck_org_name) + .set(check_describe).equalTo(row::getCheck_describe) + .set(check_status).equalTo(row::getCheck_status) + .set(check_time).equalTo(row::getCheck_time) + .set(next_check_org_id).equalTo(row::getNext_check_org_id) + .set(next_check_org_name).equalTo(row::getNext_check_org_name) + .where(id, isEqualTo(row::getId)) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3081477+08:00", comments="Source Table: public.certificate_apply_record") + default int updateByPrimaryKeySelective(CertificateApplyRecord row) { + return update(c -> + c.set(certificate_apply_id).equalToWhenPresent(row::getCertificate_apply_id) + .set(certificate_apply_user_id).equalToWhenPresent(row::getCertificate_apply_user_id) + .set(certificate_apply_user_org_id).equalToWhenPresent(row::getCertificate_apply_user_org_id) + .set(is_org).equalToWhenPresent(row::getIs_org) + .set(apply_type).equalToWhenPresent(row::getApply_type) + .set(check_user_id).equalToWhenPresent(row::getCheck_user_id) + .set(check_user_name).equalToWhenPresent(row::getCheck_user_name) + .set(check_org_id).equalToWhenPresent(row::getCheck_org_id) + .set(check_org_name).equalToWhenPresent(row::getCheck_org_name) + .set(check_describe).equalToWhenPresent(row::getCheck_describe) + .set(check_status).equalToWhenPresent(row::getCheck_status) + .set(check_time).equalToWhenPresent(row::getCheck_time) + .set(next_check_org_id).equalToWhenPresent(row::getNext_check_org_id) + .set(next_check_org_name).equalToWhenPresent(row::getNext_check_org_name) + .where(id, isEqualTo(row::getId)) + ); + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/dao/CertificateDetailMapper.java b/src/main/java/jj/tech/paolu/repository/mybatis/dao/CertificateDetailMapper.java new file mode 100644 index 0000000..5b4cf8a --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/dao/CertificateDetailMapper.java @@ -0,0 +1,241 @@ +package jj.tech.paolu.repository.mybatis.dao; + +import static jj.tech.paolu.repository.mybatis.dao.support.CertificateDetailDynamicSqlSupport.*; +import static org.mybatis.dynamic.sql.SqlBuilder.isEqualTo; + +import jakarta.annotation.Generated; +import java.util.Collection; +import java.util.List; +import java.util.Optional; +import jj.tech.paolu.repository.mybatis.entity.CertificateDetail; +import org.apache.ibatis.annotations.Mapper; +import org.apache.ibatis.annotations.Result; +import org.apache.ibatis.annotations.ResultMap; +import org.apache.ibatis.annotations.Results; +import org.apache.ibatis.annotations.SelectProvider; +import org.apache.ibatis.type.JdbcType; +import org.mybatis.dynamic.sql.BasicColumn; +import org.mybatis.dynamic.sql.delete.DeleteDSLCompleter; +import org.mybatis.dynamic.sql.select.CountDSLCompleter; +import org.mybatis.dynamic.sql.select.SelectDSLCompleter; +import org.mybatis.dynamic.sql.select.render.SelectStatementProvider; +import org.mybatis.dynamic.sql.update.UpdateDSL; +import org.mybatis.dynamic.sql.update.UpdateDSLCompleter; +import org.mybatis.dynamic.sql.update.UpdateModel; +import org.mybatis.dynamic.sql.util.SqlProviderAdapter; +import org.mybatis.dynamic.sql.util.mybatis3.CommonCountMapper; +import org.mybatis.dynamic.sql.util.mybatis3.CommonDeleteMapper; +import org.mybatis.dynamic.sql.util.mybatis3.CommonInsertMapper; +import org.mybatis.dynamic.sql.util.mybatis3.CommonUpdateMapper; +import org.mybatis.dynamic.sql.util.mybatis3.MyBatis3Utils; + +@Mapper +public interface CertificateDetailMapper extends CommonCountMapper, CommonDeleteMapper, CommonInsertMapper, CommonUpdateMapper { + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2991516+08:00", comments="Source Table: public.certificate_detail") + BasicColumn[] selectList = BasicColumn.columnList(id, certificate_apply_id, work_start_time, work_end_time, status, cert_file_content, is_up_chain, weid, private_key_hex_str, x509_serial_number, x509_subject, x509_issuer, x509_public_key, x509_sig_alg_name); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2991516+08:00", comments="Source Table: public.certificate_detail") + @SelectProvider(type=SqlProviderAdapter.class, method="select") + @Results(id="CertificateDetailResult", value = { + @Result(column="id", property="id", jdbcType=JdbcType.VARCHAR, id=true), + @Result(column="certificate_apply_id", property="certificate_apply_id", jdbcType=JdbcType.VARCHAR), + @Result(column="work_start_time", property="work_start_time", jdbcType=JdbcType.TIMESTAMP), + @Result(column="work_end_time", property="work_end_time", jdbcType=JdbcType.TIMESTAMP), + @Result(column="status", property="status", jdbcType=JdbcType.INTEGER), + @Result(column="cert_file_content", property="cert_file_content", jdbcType=JdbcType.VARCHAR), + @Result(column="is_up_chain", property="is_up_chain", jdbcType=JdbcType.INTEGER), + @Result(column="weid", property="weid", jdbcType=JdbcType.VARCHAR), + @Result(column="private_key_hex_str", property="private_key_hex_str", jdbcType=JdbcType.VARCHAR), + @Result(column="x509_serial_number", property="x509_serial_number", jdbcType=JdbcType.VARCHAR), + @Result(column="x509_subject", property="x509_subject", jdbcType=JdbcType.VARCHAR), + @Result(column="x509_issuer", property="x509_issuer", jdbcType=JdbcType.VARCHAR), + @Result(column="x509_public_key", property="x509_public_key", jdbcType=JdbcType.VARCHAR), + @Result(column="x509_sig_alg_name", property="x509_sig_alg_name", jdbcType=JdbcType.VARCHAR) + }) + List selectMany(SelectStatementProvider selectStatement); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2991516+08:00", comments="Source Table: public.certificate_detail") + @SelectProvider(type=SqlProviderAdapter.class, method="select") + @ResultMap("CertificateDetailResult") + Optional selectOne(SelectStatementProvider selectStatement); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2991516+08:00", comments="Source Table: public.certificate_detail") + default long count(CountDSLCompleter completer) { + return MyBatis3Utils.countFrom(this::count, certificateDetail, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2991516+08:00", comments="Source Table: public.certificate_detail") + default int delete(DeleteDSLCompleter completer) { + return MyBatis3Utils.deleteFrom(this::delete, certificateDetail, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2991516+08:00", comments="Source Table: public.certificate_detail") + default int deleteByPrimaryKey(String id_) { + return delete(c -> + c.where(id, isEqualTo(id_)) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2991516+08:00", comments="Source Table: public.certificate_detail") + default int insert(CertificateDetail row) { + return MyBatis3Utils.insert(this::insert, row, certificateDetail, c -> + c.map(id).toProperty("id") + .map(certificate_apply_id).toProperty("certificate_apply_id") + .map(work_start_time).toProperty("work_start_time") + .map(work_end_time).toProperty("work_end_time") + .map(status).toProperty("status") + .map(cert_file_content).toProperty("cert_file_content") + .map(is_up_chain).toProperty("is_up_chain") + .map(weid).toProperty("weid") + .map(private_key_hex_str).toProperty("private_key_hex_str") + .map(x509_serial_number).toProperty("x509_serial_number") + .map(x509_subject).toProperty("x509_subject") + .map(x509_issuer).toProperty("x509_issuer") + .map(x509_public_key).toProperty("x509_public_key") + .map(x509_sig_alg_name).toProperty("x509_sig_alg_name") + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2991516+08:00", comments="Source Table: public.certificate_detail") + default int insertMultiple(Collection records) { + return MyBatis3Utils.insertMultiple(this::insertMultiple, records, certificateDetail, c -> + c.map(id).toProperty("id") + .map(certificate_apply_id).toProperty("certificate_apply_id") + .map(work_start_time).toProperty("work_start_time") + .map(work_end_time).toProperty("work_end_time") + .map(status).toProperty("status") + .map(cert_file_content).toProperty("cert_file_content") + .map(is_up_chain).toProperty("is_up_chain") + .map(weid).toProperty("weid") + .map(private_key_hex_str).toProperty("private_key_hex_str") + .map(x509_serial_number).toProperty("x509_serial_number") + .map(x509_subject).toProperty("x509_subject") + .map(x509_issuer).toProperty("x509_issuer") + .map(x509_public_key).toProperty("x509_public_key") + .map(x509_sig_alg_name).toProperty("x509_sig_alg_name") + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2991516+08:00", comments="Source Table: public.certificate_detail") + default int insertSelective(CertificateDetail row) { + return MyBatis3Utils.insert(this::insert, row, certificateDetail, c -> + c.map(id).toPropertyWhenPresent("id", row::getId) + .map(certificate_apply_id).toPropertyWhenPresent("certificate_apply_id", row::getCertificate_apply_id) + .map(work_start_time).toPropertyWhenPresent("work_start_time", row::getWork_start_time) + .map(work_end_time).toPropertyWhenPresent("work_end_time", row::getWork_end_time) + .map(status).toPropertyWhenPresent("status", row::getStatus) + .map(cert_file_content).toPropertyWhenPresent("cert_file_content", row::getCert_file_content) + .map(is_up_chain).toPropertyWhenPresent("is_up_chain", row::getIs_up_chain) + .map(weid).toPropertyWhenPresent("weid", row::getWeid) + .map(private_key_hex_str).toPropertyWhenPresent("private_key_hex_str", row::getPrivate_key_hex_str) + .map(x509_serial_number).toPropertyWhenPresent("x509_serial_number", row::getX509_serial_number) + .map(x509_subject).toPropertyWhenPresent("x509_subject", row::getX509_subject) + .map(x509_issuer).toPropertyWhenPresent("x509_issuer", row::getX509_issuer) + .map(x509_public_key).toPropertyWhenPresent("x509_public_key", row::getX509_public_key) + .map(x509_sig_alg_name).toPropertyWhenPresent("x509_sig_alg_name", row::getX509_sig_alg_name) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2991516+08:00", comments="Source Table: public.certificate_detail") + default Optional selectOne(SelectDSLCompleter completer) { + return MyBatis3Utils.selectOne(this::selectOne, selectList, certificateDetail, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2991516+08:00", comments="Source Table: public.certificate_detail") + default List select(SelectDSLCompleter completer) { + return MyBatis3Utils.selectList(this::selectMany, selectList, certificateDetail, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2991516+08:00", comments="Source Table: public.certificate_detail") + default List selectDistinct(SelectDSLCompleter completer) { + return MyBatis3Utils.selectDistinct(this::selectMany, selectList, certificateDetail, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2991516+08:00", comments="Source Table: public.certificate_detail") + default Optional selectByPrimaryKey(String id_) { + return selectOne(c -> + c.where(id, isEqualTo(id_)) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2991516+08:00", comments="Source Table: public.certificate_detail") + default int update(UpdateDSLCompleter completer) { + return MyBatis3Utils.update(this::update, certificateDetail, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2991516+08:00", comments="Source Table: public.certificate_detail") + static UpdateDSL updateAllColumns(CertificateDetail row, UpdateDSL dsl) { + return dsl.set(id).equalTo(row::getId) + .set(certificate_apply_id).equalTo(row::getCertificate_apply_id) + .set(work_start_time).equalTo(row::getWork_start_time) + .set(work_end_time).equalTo(row::getWork_end_time) + .set(status).equalTo(row::getStatus) + .set(cert_file_content).equalTo(row::getCert_file_content) + .set(is_up_chain).equalTo(row::getIs_up_chain) + .set(weid).equalTo(row::getWeid) + .set(private_key_hex_str).equalTo(row::getPrivate_key_hex_str) + .set(x509_serial_number).equalTo(row::getX509_serial_number) + .set(x509_subject).equalTo(row::getX509_subject) + .set(x509_issuer).equalTo(row::getX509_issuer) + .set(x509_public_key).equalTo(row::getX509_public_key) + .set(x509_sig_alg_name).equalTo(row::getX509_sig_alg_name); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2991516+08:00", comments="Source Table: public.certificate_detail") + static UpdateDSL updateSelectiveColumns(CertificateDetail row, UpdateDSL dsl) { + return dsl.set(id).equalToWhenPresent(row::getId) + .set(certificate_apply_id).equalToWhenPresent(row::getCertificate_apply_id) + .set(work_start_time).equalToWhenPresent(row::getWork_start_time) + .set(work_end_time).equalToWhenPresent(row::getWork_end_time) + .set(status).equalToWhenPresent(row::getStatus) + .set(cert_file_content).equalToWhenPresent(row::getCert_file_content) + .set(is_up_chain).equalToWhenPresent(row::getIs_up_chain) + .set(weid).equalToWhenPresent(row::getWeid) + .set(private_key_hex_str).equalToWhenPresent(row::getPrivate_key_hex_str) + .set(x509_serial_number).equalToWhenPresent(row::getX509_serial_number) + .set(x509_subject).equalToWhenPresent(row::getX509_subject) + .set(x509_issuer).equalToWhenPresent(row::getX509_issuer) + .set(x509_public_key).equalToWhenPresent(row::getX509_public_key) + .set(x509_sig_alg_name).equalToWhenPresent(row::getX509_sig_alg_name); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2991516+08:00", comments="Source Table: public.certificate_detail") + default int updateByPrimaryKey(CertificateDetail row) { + return update(c -> + c.set(certificate_apply_id).equalTo(row::getCertificate_apply_id) + .set(work_start_time).equalTo(row::getWork_start_time) + .set(work_end_time).equalTo(row::getWork_end_time) + .set(status).equalTo(row::getStatus) + .set(cert_file_content).equalTo(row::getCert_file_content) + .set(is_up_chain).equalTo(row::getIs_up_chain) + .set(weid).equalTo(row::getWeid) + .set(private_key_hex_str).equalTo(row::getPrivate_key_hex_str) + .set(x509_serial_number).equalTo(row::getX509_serial_number) + .set(x509_subject).equalTo(row::getX509_subject) + .set(x509_issuer).equalTo(row::getX509_issuer) + .set(x509_public_key).equalTo(row::getX509_public_key) + .set(x509_sig_alg_name).equalTo(row::getX509_sig_alg_name) + .where(id, isEqualTo(row::getId)) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2991516+08:00", comments="Source Table: public.certificate_detail") + default int updateByPrimaryKeySelective(CertificateDetail row) { + return update(c -> + c.set(certificate_apply_id).equalToWhenPresent(row::getCertificate_apply_id) + .set(work_start_time).equalToWhenPresent(row::getWork_start_time) + .set(work_end_time).equalToWhenPresent(row::getWork_end_time) + .set(status).equalToWhenPresent(row::getStatus) + .set(cert_file_content).equalToWhenPresent(row::getCert_file_content) + .set(is_up_chain).equalToWhenPresent(row::getIs_up_chain) + .set(weid).equalToWhenPresent(row::getWeid) + .set(private_key_hex_str).equalToWhenPresent(row::getPrivate_key_hex_str) + .set(x509_serial_number).equalToWhenPresent(row::getX509_serial_number) + .set(x509_subject).equalToWhenPresent(row::getX509_subject) + .set(x509_issuer).equalToWhenPresent(row::getX509_issuer) + .set(x509_public_key).equalToWhenPresent(row::getX509_public_key) + .set(x509_sig_alg_name).equalToWhenPresent(row::getX509_sig_alg_name) + .where(id, isEqualTo(row::getId)) + ); + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/dao/DecryptLogMapper.java b/src/main/java/jj/tech/paolu/repository/mybatis/dao/DecryptLogMapper.java new file mode 100644 index 0000000..f57caea --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/dao/DecryptLogMapper.java @@ -0,0 +1,201 @@ +package jj.tech.paolu.repository.mybatis.dao; + +import static jj.tech.paolu.repository.mybatis.dao.support.DecryptLogDynamicSqlSupport.*; +import static org.mybatis.dynamic.sql.SqlBuilder.isEqualTo; + +import jakarta.annotation.Generated; +import java.util.Collection; +import java.util.List; +import java.util.Optional; +import jj.tech.paolu.repository.mybatis.entity.DecryptLog; +import org.apache.ibatis.annotations.Mapper; +import org.apache.ibatis.annotations.Result; +import org.apache.ibatis.annotations.ResultMap; +import org.apache.ibatis.annotations.Results; +import org.apache.ibatis.annotations.SelectProvider; +import org.apache.ibatis.type.JdbcType; +import org.mybatis.dynamic.sql.BasicColumn; +import org.mybatis.dynamic.sql.delete.DeleteDSLCompleter; +import org.mybatis.dynamic.sql.select.CountDSLCompleter; +import org.mybatis.dynamic.sql.select.SelectDSLCompleter; +import org.mybatis.dynamic.sql.select.render.SelectStatementProvider; +import org.mybatis.dynamic.sql.update.UpdateDSL; +import org.mybatis.dynamic.sql.update.UpdateDSLCompleter; +import org.mybatis.dynamic.sql.update.UpdateModel; +import org.mybatis.dynamic.sql.util.SqlProviderAdapter; +import org.mybatis.dynamic.sql.util.mybatis3.CommonCountMapper; +import org.mybatis.dynamic.sql.util.mybatis3.CommonDeleteMapper; +import org.mybatis.dynamic.sql.util.mybatis3.CommonInsertMapper; +import org.mybatis.dynamic.sql.util.mybatis3.CommonUpdateMapper; +import org.mybatis.dynamic.sql.util.mybatis3.MyBatis3Utils; + +@Mapper +public interface DecryptLogMapper extends CommonCountMapper, CommonDeleteMapper, CommonInsertMapper, CommonUpdateMapper { + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3181488+08:00", comments="Source Table: public.decrypt_log") + BasicColumn[] selectList = BasicColumn.columnList(id, weid, content_type, content_id, dec_time, location, sm9hibeid, status, sign); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3181488+08:00", comments="Source Table: public.decrypt_log") + @SelectProvider(type=SqlProviderAdapter.class, method="select") + @Results(id="DecryptLogResult", value = { + @Result(column="id", property="id", jdbcType=JdbcType.VARCHAR, id=true), + @Result(column="weid", property="weid", jdbcType=JdbcType.VARCHAR), + @Result(column="content_type", property="content_type", jdbcType=JdbcType.INTEGER), + @Result(column="content_id", property="content_id", jdbcType=JdbcType.VARCHAR), + @Result(column="dec_time", property="dec_time", jdbcType=JdbcType.TIMESTAMP), + @Result(column="location", property="location", jdbcType=JdbcType.VARCHAR), + @Result(column="sm9hibeid", property="sm9hibeid", jdbcType=JdbcType.VARCHAR), + @Result(column="status", property="status", jdbcType=JdbcType.INTEGER), + @Result(column="sign", property="sign", jdbcType=JdbcType.VARCHAR) + }) + List selectMany(SelectStatementProvider selectStatement); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3181488+08:00", comments="Source Table: public.decrypt_log") + @SelectProvider(type=SqlProviderAdapter.class, method="select") + @ResultMap("DecryptLogResult") + Optional selectOne(SelectStatementProvider selectStatement); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3181488+08:00", comments="Source Table: public.decrypt_log") + default long count(CountDSLCompleter completer) { + return MyBatis3Utils.countFrom(this::count, decryptLog, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3181488+08:00", comments="Source Table: public.decrypt_log") + default int delete(DeleteDSLCompleter completer) { + return MyBatis3Utils.deleteFrom(this::delete, decryptLog, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3181488+08:00", comments="Source Table: public.decrypt_log") + default int deleteByPrimaryKey(String id_) { + return delete(c -> + c.where(id, isEqualTo(id_)) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3181488+08:00", comments="Source Table: public.decrypt_log") + default int insert(DecryptLog row) { + return MyBatis3Utils.insert(this::insert, row, decryptLog, c -> + c.map(id).toProperty("id") + .map(weid).toProperty("weid") + .map(content_type).toProperty("content_type") + .map(content_id).toProperty("content_id") + .map(dec_time).toProperty("dec_time") + .map(location).toProperty("location") + .map(sm9hibeid).toProperty("sm9hibeid") + .map(status).toProperty("status") + .map(sign).toProperty("sign") + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3181488+08:00", comments="Source Table: public.decrypt_log") + default int insertMultiple(Collection records) { + return MyBatis3Utils.insertMultiple(this::insertMultiple, records, decryptLog, c -> + c.map(id).toProperty("id") + .map(weid).toProperty("weid") + .map(content_type).toProperty("content_type") + .map(content_id).toProperty("content_id") + .map(dec_time).toProperty("dec_time") + .map(location).toProperty("location") + .map(sm9hibeid).toProperty("sm9hibeid") + .map(status).toProperty("status") + .map(sign).toProperty("sign") + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3181488+08:00", comments="Source Table: public.decrypt_log") + default int insertSelective(DecryptLog row) { + return MyBatis3Utils.insert(this::insert, row, decryptLog, c -> + c.map(id).toPropertyWhenPresent("id", row::getId) + .map(weid).toPropertyWhenPresent("weid", row::getWeid) + .map(content_type).toPropertyWhenPresent("content_type", row::getContent_type) + .map(content_id).toPropertyWhenPresent("content_id", row::getContent_id) + .map(dec_time).toPropertyWhenPresent("dec_time", row::getDec_time) + .map(location).toPropertyWhenPresent("location", row::getLocation) + .map(sm9hibeid).toPropertyWhenPresent("sm9hibeid", row::getSm9hibeid) + .map(status).toPropertyWhenPresent("status", row::getStatus) + .map(sign).toPropertyWhenPresent("sign", row::getSign) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3181488+08:00", comments="Source Table: public.decrypt_log") + default Optional selectOne(SelectDSLCompleter completer) { + return MyBatis3Utils.selectOne(this::selectOne, selectList, decryptLog, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3181488+08:00", comments="Source Table: public.decrypt_log") + default List select(SelectDSLCompleter completer) { + return MyBatis3Utils.selectList(this::selectMany, selectList, decryptLog, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3181488+08:00", comments="Source Table: public.decrypt_log") + default List selectDistinct(SelectDSLCompleter completer) { + return MyBatis3Utils.selectDistinct(this::selectMany, selectList, decryptLog, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3181488+08:00", comments="Source Table: public.decrypt_log") + default Optional selectByPrimaryKey(String id_) { + return selectOne(c -> + c.where(id, isEqualTo(id_)) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3181488+08:00", comments="Source Table: public.decrypt_log") + default int update(UpdateDSLCompleter completer) { + return MyBatis3Utils.update(this::update, decryptLog, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3181488+08:00", comments="Source Table: public.decrypt_log") + static UpdateDSL updateAllColumns(DecryptLog row, UpdateDSL dsl) { + return dsl.set(id).equalTo(row::getId) + .set(weid).equalTo(row::getWeid) + .set(content_type).equalTo(row::getContent_type) + .set(content_id).equalTo(row::getContent_id) + .set(dec_time).equalTo(row::getDec_time) + .set(location).equalTo(row::getLocation) + .set(sm9hibeid).equalTo(row::getSm9hibeid) + .set(status).equalTo(row::getStatus) + .set(sign).equalTo(row::getSign); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3181488+08:00", comments="Source Table: public.decrypt_log") + static UpdateDSL updateSelectiveColumns(DecryptLog row, UpdateDSL dsl) { + return dsl.set(id).equalToWhenPresent(row::getId) + .set(weid).equalToWhenPresent(row::getWeid) + .set(content_type).equalToWhenPresent(row::getContent_type) + .set(content_id).equalToWhenPresent(row::getContent_id) + .set(dec_time).equalToWhenPresent(row::getDec_time) + .set(location).equalToWhenPresent(row::getLocation) + .set(sm9hibeid).equalToWhenPresent(row::getSm9hibeid) + .set(status).equalToWhenPresent(row::getStatus) + .set(sign).equalToWhenPresent(row::getSign); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3181488+08:00", comments="Source Table: public.decrypt_log") + default int updateByPrimaryKey(DecryptLog row) { + return update(c -> + c.set(weid).equalTo(row::getWeid) + .set(content_type).equalTo(row::getContent_type) + .set(content_id).equalTo(row::getContent_id) + .set(dec_time).equalTo(row::getDec_time) + .set(location).equalTo(row::getLocation) + .set(sm9hibeid).equalTo(row::getSm9hibeid) + .set(status).equalTo(row::getStatus) + .set(sign).equalTo(row::getSign) + .where(id, isEqualTo(row::getId)) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3181488+08:00", comments="Source Table: public.decrypt_log") + default int updateByPrimaryKeySelective(DecryptLog row) { + return update(c -> + c.set(weid).equalToWhenPresent(row::getWeid) + .set(content_type).equalToWhenPresent(row::getContent_type) + .set(content_id).equalToWhenPresent(row::getContent_id) + .set(dec_time).equalToWhenPresent(row::getDec_time) + .set(location).equalToWhenPresent(row::getLocation) + .set(sm9hibeid).equalToWhenPresent(row::getSm9hibeid) + .set(status).equalToWhenPresent(row::getStatus) + .set(sign).equalToWhenPresent(row::getSign) + .where(id, isEqualTo(row::getId)) + ); + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/dao/DownloadLogMapper.java b/src/main/java/jj/tech/paolu/repository/mybatis/dao/DownloadLogMapper.java new file mode 100644 index 0000000..a32bab2 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/dao/DownloadLogMapper.java @@ -0,0 +1,185 @@ +package jj.tech.paolu.repository.mybatis.dao; + +import static jj.tech.paolu.repository.mybatis.dao.support.DownloadLogDynamicSqlSupport.*; +import static org.mybatis.dynamic.sql.SqlBuilder.isEqualTo; + +import jakarta.annotation.Generated; +import java.util.Collection; +import java.util.List; +import java.util.Optional; +import jj.tech.paolu.repository.mybatis.entity.DownloadLog; +import org.apache.ibatis.annotations.Mapper; +import org.apache.ibatis.annotations.Result; +import org.apache.ibatis.annotations.ResultMap; +import org.apache.ibatis.annotations.Results; +import org.apache.ibatis.annotations.SelectProvider; +import org.apache.ibatis.type.JdbcType; +import org.mybatis.dynamic.sql.BasicColumn; +import org.mybatis.dynamic.sql.delete.DeleteDSLCompleter; +import org.mybatis.dynamic.sql.select.CountDSLCompleter; +import org.mybatis.dynamic.sql.select.SelectDSLCompleter; +import org.mybatis.dynamic.sql.select.render.SelectStatementProvider; +import org.mybatis.dynamic.sql.update.UpdateDSL; +import org.mybatis.dynamic.sql.update.UpdateDSLCompleter; +import org.mybatis.dynamic.sql.update.UpdateModel; +import org.mybatis.dynamic.sql.util.SqlProviderAdapter; +import org.mybatis.dynamic.sql.util.mybatis3.CommonCountMapper; +import org.mybatis.dynamic.sql.util.mybatis3.CommonDeleteMapper; +import org.mybatis.dynamic.sql.util.mybatis3.CommonInsertMapper; +import org.mybatis.dynamic.sql.util.mybatis3.CommonUpdateMapper; +import org.mybatis.dynamic.sql.util.mybatis3.MyBatis3Utils; + +@Mapper +public interface DownloadLogMapper extends CommonCountMapper, CommonDeleteMapper, CommonInsertMapper, CommonUpdateMapper { + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2531552+08:00", comments="Source Table: public.download_log") + BasicColumn[] selectList = BasicColumn.columnList(id, weid, downloadtime, filenum, content_type, contentid, sign); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2521575+08:00", comments="Source Table: public.download_log") + @SelectProvider(type=SqlProviderAdapter.class, method="select") + @Results(id="DownloadLogResult", value = { + @Result(column="id", property="id", jdbcType=JdbcType.VARCHAR, id=true), + @Result(column="weid", property="weid", jdbcType=JdbcType.VARCHAR), + @Result(column="downloadtime", property="downloadtime", jdbcType=JdbcType.TIMESTAMP), + @Result(column="filenum", property="filenum", jdbcType=JdbcType.INTEGER), + @Result(column="content_type", property="content_type", jdbcType=JdbcType.INTEGER), + @Result(column="contentid", property="contentid", jdbcType=JdbcType.VARCHAR), + @Result(column="sign", property="sign", jdbcType=JdbcType.VARCHAR) + }) + List selectMany(SelectStatementProvider selectStatement); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2521575+08:00", comments="Source Table: public.download_log") + @SelectProvider(type=SqlProviderAdapter.class, method="select") + @ResultMap("DownloadLogResult") + Optional selectOne(SelectStatementProvider selectStatement); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2521575+08:00", comments="Source Table: public.download_log") + default long count(CountDSLCompleter completer) { + return MyBatis3Utils.countFrom(this::count, downloadLog, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2521575+08:00", comments="Source Table: public.download_log") + default int delete(DeleteDSLCompleter completer) { + return MyBatis3Utils.deleteFrom(this::delete, downloadLog, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2521575+08:00", comments="Source Table: public.download_log") + default int deleteByPrimaryKey(String id_) { + return delete(c -> + c.where(id, isEqualTo(id_)) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2531552+08:00", comments="Source Table: public.download_log") + default int insert(DownloadLog row) { + return MyBatis3Utils.insert(this::insert, row, downloadLog, c -> + c.map(id).toProperty("id") + .map(weid).toProperty("weid") + .map(downloadtime).toProperty("downloadtime") + .map(filenum).toProperty("filenum") + .map(content_type).toProperty("content_type") + .map(contentid).toProperty("contentid") + .map(sign).toProperty("sign") + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2531552+08:00", comments="Source Table: public.download_log") + default int insertMultiple(Collection records) { + return MyBatis3Utils.insertMultiple(this::insertMultiple, records, downloadLog, c -> + c.map(id).toProperty("id") + .map(weid).toProperty("weid") + .map(downloadtime).toProperty("downloadtime") + .map(filenum).toProperty("filenum") + .map(content_type).toProperty("content_type") + .map(contentid).toProperty("contentid") + .map(sign).toProperty("sign") + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2531552+08:00", comments="Source Table: public.download_log") + default int insertSelective(DownloadLog row) { + return MyBatis3Utils.insert(this::insert, row, downloadLog, c -> + c.map(id).toPropertyWhenPresent("id", row::getId) + .map(weid).toPropertyWhenPresent("weid", row::getWeid) + .map(downloadtime).toPropertyWhenPresent("downloadtime", row::getDownloadtime) + .map(filenum).toPropertyWhenPresent("filenum", row::getFilenum) + .map(content_type).toPropertyWhenPresent("content_type", row::getContent_type) + .map(contentid).toPropertyWhenPresent("contentid", row::getContentid) + .map(sign).toPropertyWhenPresent("sign", row::getSign) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2531552+08:00", comments="Source Table: public.download_log") + default Optional selectOne(SelectDSLCompleter completer) { + return MyBatis3Utils.selectOne(this::selectOne, selectList, downloadLog, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2531552+08:00", comments="Source Table: public.download_log") + default List select(SelectDSLCompleter completer) { + return MyBatis3Utils.selectList(this::selectMany, selectList, downloadLog, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2531552+08:00", comments="Source Table: public.download_log") + default List selectDistinct(SelectDSLCompleter completer) { + return MyBatis3Utils.selectDistinct(this::selectMany, selectList, downloadLog, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2531552+08:00", comments="Source Table: public.download_log") + default Optional selectByPrimaryKey(String id_) { + return selectOne(c -> + c.where(id, isEqualTo(id_)) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2531552+08:00", comments="Source Table: public.download_log") + default int update(UpdateDSLCompleter completer) { + return MyBatis3Utils.update(this::update, downloadLog, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2531552+08:00", comments="Source Table: public.download_log") + static UpdateDSL updateAllColumns(DownloadLog row, UpdateDSL dsl) { + return dsl.set(id).equalTo(row::getId) + .set(weid).equalTo(row::getWeid) + .set(downloadtime).equalTo(row::getDownloadtime) + .set(filenum).equalTo(row::getFilenum) + .set(content_type).equalTo(row::getContent_type) + .set(contentid).equalTo(row::getContentid) + .set(sign).equalTo(row::getSign); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2531552+08:00", comments="Source Table: public.download_log") + static UpdateDSL updateSelectiveColumns(DownloadLog row, UpdateDSL dsl) { + return dsl.set(id).equalToWhenPresent(row::getId) + .set(weid).equalToWhenPresent(row::getWeid) + .set(downloadtime).equalToWhenPresent(row::getDownloadtime) + .set(filenum).equalToWhenPresent(row::getFilenum) + .set(content_type).equalToWhenPresent(row::getContent_type) + .set(contentid).equalToWhenPresent(row::getContentid) + .set(sign).equalToWhenPresent(row::getSign); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2531552+08:00", comments="Source Table: public.download_log") + default int updateByPrimaryKey(DownloadLog row) { + return update(c -> + c.set(weid).equalTo(row::getWeid) + .set(downloadtime).equalTo(row::getDownloadtime) + .set(filenum).equalTo(row::getFilenum) + .set(content_type).equalTo(row::getContent_type) + .set(contentid).equalTo(row::getContentid) + .set(sign).equalTo(row::getSign) + .where(id, isEqualTo(row::getId)) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2541531+08:00", comments="Source Table: public.download_log") + default int updateByPrimaryKeySelective(DownloadLog row) { + return update(c -> + c.set(weid).equalToWhenPresent(row::getWeid) + .set(downloadtime).equalToWhenPresent(row::getDownloadtime) + .set(filenum).equalToWhenPresent(row::getFilenum) + .set(content_type).equalToWhenPresent(row::getContent_type) + .set(contentid).equalToWhenPresent(row::getContentid) + .set(sign).equalToWhenPresent(row::getSign) + .where(id, isEqualTo(row::getId)) + ); + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/dao/FilesApplyCheckRecordMapper.java b/src/main/java/jj/tech/paolu/repository/mybatis/dao/FilesApplyCheckRecordMapper.java new file mode 100644 index 0000000..3dabdbd --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/dao/FilesApplyCheckRecordMapper.java @@ -0,0 +1,249 @@ +package jj.tech.paolu.repository.mybatis.dao; + +import static jj.tech.paolu.repository.mybatis.dao.support.FilesApplyCheckRecordDynamicSqlSupport.*; +import static org.mybatis.dynamic.sql.SqlBuilder.isEqualTo; + +import jakarta.annotation.Generated; +import java.util.Collection; +import java.util.List; +import java.util.Optional; +import jj.tech.paolu.repository.mybatis.entity.FilesApplyCheckRecord; +import org.apache.ibatis.annotations.Mapper; +import org.apache.ibatis.annotations.Result; +import org.apache.ibatis.annotations.ResultMap; +import org.apache.ibatis.annotations.Results; +import org.apache.ibatis.annotations.SelectProvider; +import org.apache.ibatis.type.JdbcType; +import org.mybatis.dynamic.sql.BasicColumn; +import org.mybatis.dynamic.sql.delete.DeleteDSLCompleter; +import org.mybatis.dynamic.sql.select.CountDSLCompleter; +import org.mybatis.dynamic.sql.select.SelectDSLCompleter; +import org.mybatis.dynamic.sql.select.render.SelectStatementProvider; +import org.mybatis.dynamic.sql.update.UpdateDSL; +import org.mybatis.dynamic.sql.update.UpdateDSLCompleter; +import org.mybatis.dynamic.sql.update.UpdateModel; +import org.mybatis.dynamic.sql.util.SqlProviderAdapter; +import org.mybatis.dynamic.sql.util.mybatis3.CommonCountMapper; +import org.mybatis.dynamic.sql.util.mybatis3.CommonDeleteMapper; +import org.mybatis.dynamic.sql.util.mybatis3.CommonInsertMapper; +import org.mybatis.dynamic.sql.util.mybatis3.CommonUpdateMapper; +import org.mybatis.dynamic.sql.util.mybatis3.MyBatis3Utils; + +@Mapper +public interface FilesApplyCheckRecordMapper extends CommonCountMapper, CommonDeleteMapper, CommonInsertMapper, CommonUpdateMapper { + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3161488+08:00", comments="Source Table: public.files_apply_check_record") + BasicColumn[] selectList = BasicColumn.columnList(id, files_apply_id, is_apply_provider, check_user_id, check_user_name, check_org_id, check_org_name, next_check_org_id, next_check_org_name, check_describe, check_status, check_time, provider_next_check_role_sign_id, provider_next_check_role_sign_name, sign); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3161488+08:00", comments="Source Table: public.files_apply_check_record") + @SelectProvider(type=SqlProviderAdapter.class, method="select") + @Results(id="FilesApplyCheckRecordResult", value = { + @Result(column="id", property="id", jdbcType=JdbcType.VARCHAR, id=true), + @Result(column="files_apply_id", property="files_apply_id", jdbcType=JdbcType.VARCHAR), + @Result(column="is_apply_provider", property="is_apply_provider", jdbcType=JdbcType.INTEGER), + @Result(column="check_user_id", property="check_user_id", jdbcType=JdbcType.VARCHAR), + @Result(column="check_user_name", property="check_user_name", jdbcType=JdbcType.VARCHAR), + @Result(column="check_org_id", property="check_org_id", jdbcType=JdbcType.VARCHAR), + @Result(column="check_org_name", property="check_org_name", jdbcType=JdbcType.VARCHAR), + @Result(column="next_check_org_id", property="next_check_org_id", jdbcType=JdbcType.VARCHAR), + @Result(column="next_check_org_name", property="next_check_org_name", jdbcType=JdbcType.VARCHAR), + @Result(column="check_describe", property="check_describe", jdbcType=JdbcType.VARCHAR), + @Result(column="check_status", property="check_status", jdbcType=JdbcType.INTEGER), + @Result(column="check_time", property="check_time", jdbcType=JdbcType.TIMESTAMP), + @Result(column="provider_next_check_role_sign_id", property="provider_next_check_role_sign_id", jdbcType=JdbcType.VARCHAR), + @Result(column="provider_next_check_role_sign_name", property="provider_next_check_role_sign_name", jdbcType=JdbcType.VARCHAR), + @Result(column="sign", property="sign", jdbcType=JdbcType.VARCHAR) + }) + List selectMany(SelectStatementProvider selectStatement); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3161488+08:00", comments="Source Table: public.files_apply_check_record") + @SelectProvider(type=SqlProviderAdapter.class, method="select") + @ResultMap("FilesApplyCheckRecordResult") + Optional selectOne(SelectStatementProvider selectStatement); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3161488+08:00", comments="Source Table: public.files_apply_check_record") + default long count(CountDSLCompleter completer) { + return MyBatis3Utils.countFrom(this::count, filesApplyCheckRecord, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3161488+08:00", comments="Source Table: public.files_apply_check_record") + default int delete(DeleteDSLCompleter completer) { + return MyBatis3Utils.deleteFrom(this::delete, filesApplyCheckRecord, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3161488+08:00", comments="Source Table: public.files_apply_check_record") + default int deleteByPrimaryKey(String id_) { + return delete(c -> + c.where(id, isEqualTo(id_)) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3161488+08:00", comments="Source Table: public.files_apply_check_record") + default int insert(FilesApplyCheckRecord row) { + return MyBatis3Utils.insert(this::insert, row, filesApplyCheckRecord, c -> + c.map(id).toProperty("id") + .map(files_apply_id).toProperty("files_apply_id") + .map(is_apply_provider).toProperty("is_apply_provider") + .map(check_user_id).toProperty("check_user_id") + .map(check_user_name).toProperty("check_user_name") + .map(check_org_id).toProperty("check_org_id") + .map(check_org_name).toProperty("check_org_name") + .map(next_check_org_id).toProperty("next_check_org_id") + .map(next_check_org_name).toProperty("next_check_org_name") + .map(check_describe).toProperty("check_describe") + .map(check_status).toProperty("check_status") + .map(check_time).toProperty("check_time") + .map(provider_next_check_role_sign_id).toProperty("provider_next_check_role_sign_id") + .map(provider_next_check_role_sign_name).toProperty("provider_next_check_role_sign_name") + .map(sign).toProperty("sign") + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3161488+08:00", comments="Source Table: public.files_apply_check_record") + default int insertMultiple(Collection records) { + return MyBatis3Utils.insertMultiple(this::insertMultiple, records, filesApplyCheckRecord, c -> + c.map(id).toProperty("id") + .map(files_apply_id).toProperty("files_apply_id") + .map(is_apply_provider).toProperty("is_apply_provider") + .map(check_user_id).toProperty("check_user_id") + .map(check_user_name).toProperty("check_user_name") + .map(check_org_id).toProperty("check_org_id") + .map(check_org_name).toProperty("check_org_name") + .map(next_check_org_id).toProperty("next_check_org_id") + .map(next_check_org_name).toProperty("next_check_org_name") + .map(check_describe).toProperty("check_describe") + .map(check_status).toProperty("check_status") + .map(check_time).toProperty("check_time") + .map(provider_next_check_role_sign_id).toProperty("provider_next_check_role_sign_id") + .map(provider_next_check_role_sign_name).toProperty("provider_next_check_role_sign_name") + .map(sign).toProperty("sign") + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3161488+08:00", comments="Source Table: public.files_apply_check_record") + default int insertSelective(FilesApplyCheckRecord row) { + return MyBatis3Utils.insert(this::insert, row, filesApplyCheckRecord, c -> + c.map(id).toPropertyWhenPresent("id", row::getId) + .map(files_apply_id).toPropertyWhenPresent("files_apply_id", row::getFiles_apply_id) + .map(is_apply_provider).toPropertyWhenPresent("is_apply_provider", row::getIs_apply_provider) + .map(check_user_id).toPropertyWhenPresent("check_user_id", row::getCheck_user_id) + .map(check_user_name).toPropertyWhenPresent("check_user_name", row::getCheck_user_name) + .map(check_org_id).toPropertyWhenPresent("check_org_id", row::getCheck_org_id) + .map(check_org_name).toPropertyWhenPresent("check_org_name", row::getCheck_org_name) + .map(next_check_org_id).toPropertyWhenPresent("next_check_org_id", row::getNext_check_org_id) + .map(next_check_org_name).toPropertyWhenPresent("next_check_org_name", row::getNext_check_org_name) + .map(check_describe).toPropertyWhenPresent("check_describe", row::getCheck_describe) + .map(check_status).toPropertyWhenPresent("check_status", row::getCheck_status) + .map(check_time).toPropertyWhenPresent("check_time", row::getCheck_time) + .map(provider_next_check_role_sign_id).toPropertyWhenPresent("provider_next_check_role_sign_id", row::getProvider_next_check_role_sign_id) + .map(provider_next_check_role_sign_name).toPropertyWhenPresent("provider_next_check_role_sign_name", row::getProvider_next_check_role_sign_name) + .map(sign).toPropertyWhenPresent("sign", row::getSign) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3161488+08:00", comments="Source Table: public.files_apply_check_record") + default Optional selectOne(SelectDSLCompleter completer) { + return MyBatis3Utils.selectOne(this::selectOne, selectList, filesApplyCheckRecord, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3161488+08:00", comments="Source Table: public.files_apply_check_record") + default List select(SelectDSLCompleter completer) { + return MyBatis3Utils.selectList(this::selectMany, selectList, filesApplyCheckRecord, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3161488+08:00", comments="Source Table: public.files_apply_check_record") + default List selectDistinct(SelectDSLCompleter completer) { + return MyBatis3Utils.selectDistinct(this::selectMany, selectList, filesApplyCheckRecord, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3161488+08:00", comments="Source Table: public.files_apply_check_record") + default Optional selectByPrimaryKey(String id_) { + return selectOne(c -> + c.where(id, isEqualTo(id_)) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3161488+08:00", comments="Source Table: public.files_apply_check_record") + default int update(UpdateDSLCompleter completer) { + return MyBatis3Utils.update(this::update, filesApplyCheckRecord, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3161488+08:00", comments="Source Table: public.files_apply_check_record") + static UpdateDSL updateAllColumns(FilesApplyCheckRecord row, UpdateDSL dsl) { + return dsl.set(id).equalTo(row::getId) + .set(files_apply_id).equalTo(row::getFiles_apply_id) + .set(is_apply_provider).equalTo(row::getIs_apply_provider) + .set(check_user_id).equalTo(row::getCheck_user_id) + .set(check_user_name).equalTo(row::getCheck_user_name) + .set(check_org_id).equalTo(row::getCheck_org_id) + .set(check_org_name).equalTo(row::getCheck_org_name) + .set(next_check_org_id).equalTo(row::getNext_check_org_id) + .set(next_check_org_name).equalTo(row::getNext_check_org_name) + .set(check_describe).equalTo(row::getCheck_describe) + .set(check_status).equalTo(row::getCheck_status) + .set(check_time).equalTo(row::getCheck_time) + .set(provider_next_check_role_sign_id).equalTo(row::getProvider_next_check_role_sign_id) + .set(provider_next_check_role_sign_name).equalTo(row::getProvider_next_check_role_sign_name) + .set(sign).equalTo(row::getSign); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3161488+08:00", comments="Source Table: public.files_apply_check_record") + static UpdateDSL updateSelectiveColumns(FilesApplyCheckRecord row, UpdateDSL dsl) { + return dsl.set(id).equalToWhenPresent(row::getId) + .set(files_apply_id).equalToWhenPresent(row::getFiles_apply_id) + .set(is_apply_provider).equalToWhenPresent(row::getIs_apply_provider) + .set(check_user_id).equalToWhenPresent(row::getCheck_user_id) + .set(check_user_name).equalToWhenPresent(row::getCheck_user_name) + .set(check_org_id).equalToWhenPresent(row::getCheck_org_id) + .set(check_org_name).equalToWhenPresent(row::getCheck_org_name) + .set(next_check_org_id).equalToWhenPresent(row::getNext_check_org_id) + .set(next_check_org_name).equalToWhenPresent(row::getNext_check_org_name) + .set(check_describe).equalToWhenPresent(row::getCheck_describe) + .set(check_status).equalToWhenPresent(row::getCheck_status) + .set(check_time).equalToWhenPresent(row::getCheck_time) + .set(provider_next_check_role_sign_id).equalToWhenPresent(row::getProvider_next_check_role_sign_id) + .set(provider_next_check_role_sign_name).equalToWhenPresent(row::getProvider_next_check_role_sign_name) + .set(sign).equalToWhenPresent(row::getSign); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3161488+08:00", comments="Source Table: public.files_apply_check_record") + default int updateByPrimaryKey(FilesApplyCheckRecord row) { + return update(c -> + c.set(files_apply_id).equalTo(row::getFiles_apply_id) + .set(is_apply_provider).equalTo(row::getIs_apply_provider) + .set(check_user_id).equalTo(row::getCheck_user_id) + .set(check_user_name).equalTo(row::getCheck_user_name) + .set(check_org_id).equalTo(row::getCheck_org_id) + .set(check_org_name).equalTo(row::getCheck_org_name) + .set(next_check_org_id).equalTo(row::getNext_check_org_id) + .set(next_check_org_name).equalTo(row::getNext_check_org_name) + .set(check_describe).equalTo(row::getCheck_describe) + .set(check_status).equalTo(row::getCheck_status) + .set(check_time).equalTo(row::getCheck_time) + .set(provider_next_check_role_sign_id).equalTo(row::getProvider_next_check_role_sign_id) + .set(provider_next_check_role_sign_name).equalTo(row::getProvider_next_check_role_sign_name) + .set(sign).equalTo(row::getSign) + .where(id, isEqualTo(row::getId)) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3161488+08:00", comments="Source Table: public.files_apply_check_record") + default int updateByPrimaryKeySelective(FilesApplyCheckRecord row) { + return update(c -> + c.set(files_apply_id).equalToWhenPresent(row::getFiles_apply_id) + .set(is_apply_provider).equalToWhenPresent(row::getIs_apply_provider) + .set(check_user_id).equalToWhenPresent(row::getCheck_user_id) + .set(check_user_name).equalToWhenPresent(row::getCheck_user_name) + .set(check_org_id).equalToWhenPresent(row::getCheck_org_id) + .set(check_org_name).equalToWhenPresent(row::getCheck_org_name) + .set(next_check_org_id).equalToWhenPresent(row::getNext_check_org_id) + .set(next_check_org_name).equalToWhenPresent(row::getNext_check_org_name) + .set(check_describe).equalToWhenPresent(row::getCheck_describe) + .set(check_status).equalToWhenPresent(row::getCheck_status) + .set(check_time).equalToWhenPresent(row::getCheck_time) + .set(provider_next_check_role_sign_id).equalToWhenPresent(row::getProvider_next_check_role_sign_id) + .set(provider_next_check_role_sign_name).equalToWhenPresent(row::getProvider_next_check_role_sign_name) + .set(sign).equalToWhenPresent(row::getSign) + .where(id, isEqualTo(row::getId)) + ); + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/dao/FilesApplyDirectoryDocsMapper.java b/src/main/java/jj/tech/paolu/repository/mybatis/dao/FilesApplyDirectoryDocsMapper.java new file mode 100644 index 0000000..d538d40 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/dao/FilesApplyDirectoryDocsMapper.java @@ -0,0 +1,313 @@ +package jj.tech.paolu.repository.mybatis.dao; + +import static jj.tech.paolu.repository.mybatis.dao.support.FilesApplyDirectoryDocsDynamicSqlSupport.*; +import static org.mybatis.dynamic.sql.SqlBuilder.isEqualTo; + +import jakarta.annotation.Generated; +import java.util.Collection; +import java.util.List; +import java.util.Optional; +import jj.tech.paolu.repository.mybatis.entity.FilesApplyDirectoryDocs; +import org.apache.ibatis.annotations.Mapper; +import org.apache.ibatis.annotations.Result; +import org.apache.ibatis.annotations.ResultMap; +import org.apache.ibatis.annotations.Results; +import org.apache.ibatis.annotations.SelectProvider; +import org.apache.ibatis.type.JdbcType; +import org.mybatis.dynamic.sql.BasicColumn; +import org.mybatis.dynamic.sql.delete.DeleteDSLCompleter; +import org.mybatis.dynamic.sql.select.CountDSLCompleter; +import org.mybatis.dynamic.sql.select.SelectDSLCompleter; +import org.mybatis.dynamic.sql.select.render.SelectStatementProvider; +import org.mybatis.dynamic.sql.update.UpdateDSL; +import org.mybatis.dynamic.sql.update.UpdateDSLCompleter; +import org.mybatis.dynamic.sql.update.UpdateModel; +import org.mybatis.dynamic.sql.util.SqlProviderAdapter; +import org.mybatis.dynamic.sql.util.mybatis3.CommonCountMapper; +import org.mybatis.dynamic.sql.util.mybatis3.CommonDeleteMapper; +import org.mybatis.dynamic.sql.util.mybatis3.CommonInsertMapper; +import org.mybatis.dynamic.sql.util.mybatis3.CommonUpdateMapper; +import org.mybatis.dynamic.sql.util.mybatis3.MyBatis3Utils; + +@Mapper +public interface FilesApplyDirectoryDocsMapper extends CommonCountMapper, CommonDeleteMapper, CommonInsertMapper, CommonUpdateMapper { + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2351522+08:00", comments="Source Table: public.files_apply_directory_docs") + BasicColumn[] selectList = BasicColumn.columnList(id, files_apply_id, directory_file_id, directory_file_p_id, filesuper, filecount, dutyperson, eweavedate, filepage, sortorder, bpeg, epeg, filenum, remark, recordnum, piecenumber, adddate, editdate, time_stamp, isdel, catalogpdfurl, signtag, collecttag); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2252114+08:00", comments="Source Table: public.files_apply_directory_docs") + @SelectProvider(type=SqlProviderAdapter.class, method="select") + @Results(id="FilesApplyDirectoryDocsResult", value = { + @Result(column="id", property="id", jdbcType=JdbcType.VARCHAR, id=true), + @Result(column="files_apply_id", property="files_apply_id", jdbcType=JdbcType.VARCHAR), + @Result(column="directory_file_id", property="directory_file_id", jdbcType=JdbcType.VARCHAR), + @Result(column="directory_file_p_id", property="directory_file_p_id", jdbcType=JdbcType.VARCHAR), + @Result(column="filesuper", property="filesuper", jdbcType=JdbcType.VARCHAR), + @Result(column="filecount", property="filecount", jdbcType=JdbcType.INTEGER), + @Result(column="dutyperson", property="dutyperson", jdbcType=JdbcType.VARCHAR), + @Result(column="eweavedate", property="eweavedate", jdbcType=JdbcType.VARCHAR), + @Result(column="filepage", property="filepage", jdbcType=JdbcType.INTEGER), + @Result(column="sortorder", property="sortorder", jdbcType=JdbcType.VARCHAR), + @Result(column="bpeg", property="bpeg", jdbcType=JdbcType.VARCHAR), + @Result(column="epeg", property="epeg", jdbcType=JdbcType.VARCHAR), + @Result(column="filenum", property="filenum", jdbcType=JdbcType.VARCHAR), + @Result(column="remark", property="remark", jdbcType=JdbcType.VARCHAR), + @Result(column="recordnum", property="recordnum", jdbcType=JdbcType.VARCHAR), + @Result(column="piecenumber", property="piecenumber", jdbcType=JdbcType.VARCHAR), + @Result(column="adddate", property="adddate", jdbcType=JdbcType.VARCHAR), + @Result(column="editdate", property="editdate", jdbcType=JdbcType.VARCHAR), + @Result(column="time_stamp", property="time_stamp", jdbcType=JdbcType.VARCHAR), + @Result(column="isdel", property="isdel", jdbcType=JdbcType.INTEGER), + @Result(column="catalogpdfurl", property="catalogpdfurl", jdbcType=JdbcType.VARCHAR), + @Result(column="signtag", property="signtag", jdbcType=JdbcType.VARCHAR), + @Result(column="collecttag", property="collecttag", jdbcType=JdbcType.VARCHAR) + }) + List selectMany(SelectStatementProvider selectStatement); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2281844+08:00", comments="Source Table: public.files_apply_directory_docs") + @SelectProvider(type=SqlProviderAdapter.class, method="select") + @ResultMap("FilesApplyDirectoryDocsResult") + Optional selectOne(SelectStatementProvider selectStatement); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2291477+08:00", comments="Source Table: public.files_apply_directory_docs") + default long count(CountDSLCompleter completer) { + return MyBatis3Utils.countFrom(this::count, filesApplyDirectoryDocs, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2291477+08:00", comments="Source Table: public.files_apply_directory_docs") + default int delete(DeleteDSLCompleter completer) { + return MyBatis3Utils.deleteFrom(this::delete, filesApplyDirectoryDocs, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2301846+08:00", comments="Source Table: public.files_apply_directory_docs") + default int deleteByPrimaryKey(String id_) { + return delete(c -> + c.where(id, isEqualTo(id_)) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2301846+08:00", comments="Source Table: public.files_apply_directory_docs") + default int insert(FilesApplyDirectoryDocs row) { + return MyBatis3Utils.insert(this::insert, row, filesApplyDirectoryDocs, c -> + c.map(id).toProperty("id") + .map(files_apply_id).toProperty("files_apply_id") + .map(directory_file_id).toProperty("directory_file_id") + .map(directory_file_p_id).toProperty("directory_file_p_id") + .map(filesuper).toProperty("filesuper") + .map(filecount).toProperty("filecount") + .map(dutyperson).toProperty("dutyperson") + .map(eweavedate).toProperty("eweavedate") + .map(filepage).toProperty("filepage") + .map(sortorder).toProperty("sortorder") + .map(bpeg).toProperty("bpeg") + .map(epeg).toProperty("epeg") + .map(filenum).toProperty("filenum") + .map(remark).toProperty("remark") + .map(recordnum).toProperty("recordnum") + .map(piecenumber).toProperty("piecenumber") + .map(adddate).toProperty("adddate") + .map(editdate).toProperty("editdate") + .map(time_stamp).toProperty("time_stamp") + .map(isdel).toProperty("isdel") + .map(catalogpdfurl).toProperty("catalogpdfurl") + .map(signtag).toProperty("signtag") + .map(collecttag).toProperty("collecttag") + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2331477+08:00", comments="Source Table: public.files_apply_directory_docs") + default int insertMultiple(Collection records) { + return MyBatis3Utils.insertMultiple(this::insertMultiple, records, filesApplyDirectoryDocs, c -> + c.map(id).toProperty("id") + .map(files_apply_id).toProperty("files_apply_id") + .map(directory_file_id).toProperty("directory_file_id") + .map(directory_file_p_id).toProperty("directory_file_p_id") + .map(filesuper).toProperty("filesuper") + .map(filecount).toProperty("filecount") + .map(dutyperson).toProperty("dutyperson") + .map(eweavedate).toProperty("eweavedate") + .map(filepage).toProperty("filepage") + .map(sortorder).toProperty("sortorder") + .map(bpeg).toProperty("bpeg") + .map(epeg).toProperty("epeg") + .map(filenum).toProperty("filenum") + .map(remark).toProperty("remark") + .map(recordnum).toProperty("recordnum") + .map(piecenumber).toProperty("piecenumber") + .map(adddate).toProperty("adddate") + .map(editdate).toProperty("editdate") + .map(time_stamp).toProperty("time_stamp") + .map(isdel).toProperty("isdel") + .map(catalogpdfurl).toProperty("catalogpdfurl") + .map(signtag).toProperty("signtag") + .map(collecttag).toProperty("collecttag") + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2331477+08:00", comments="Source Table: public.files_apply_directory_docs") + default int insertSelective(FilesApplyDirectoryDocs row) { + return MyBatis3Utils.insert(this::insert, row, filesApplyDirectoryDocs, c -> + c.map(id).toPropertyWhenPresent("id", row::getId) + .map(files_apply_id).toPropertyWhenPresent("files_apply_id", row::getFiles_apply_id) + .map(directory_file_id).toPropertyWhenPresent("directory_file_id", row::getDirectory_file_id) + .map(directory_file_p_id).toPropertyWhenPresent("directory_file_p_id", row::getDirectory_file_p_id) + .map(filesuper).toPropertyWhenPresent("filesuper", row::getFilesuper) + .map(filecount).toPropertyWhenPresent("filecount", row::getFilecount) + .map(dutyperson).toPropertyWhenPresent("dutyperson", row::getDutyperson) + .map(eweavedate).toPropertyWhenPresent("eweavedate", row::getEweavedate) + .map(filepage).toPropertyWhenPresent("filepage", row::getFilepage) + .map(sortorder).toPropertyWhenPresent("sortorder", row::getSortorder) + .map(bpeg).toPropertyWhenPresent("bpeg", row::getBpeg) + .map(epeg).toPropertyWhenPresent("epeg", row::getEpeg) + .map(filenum).toPropertyWhenPresent("filenum", row::getFilenum) + .map(remark).toPropertyWhenPresent("remark", row::getRemark) + .map(recordnum).toPropertyWhenPresent("recordnum", row::getRecordnum) + .map(piecenumber).toPropertyWhenPresent("piecenumber", row::getPiecenumber) + .map(adddate).toPropertyWhenPresent("adddate", row::getAdddate) + .map(editdate).toPropertyWhenPresent("editdate", row::getEditdate) + .map(time_stamp).toPropertyWhenPresent("time_stamp", row::getTime_stamp) + .map(isdel).toPropertyWhenPresent("isdel", row::getIsdel) + .map(catalogpdfurl).toPropertyWhenPresent("catalogpdfurl", row::getCatalogpdfurl) + .map(signtag).toPropertyWhenPresent("signtag", row::getSigntag) + .map(collecttag).toPropertyWhenPresent("collecttag", row::getCollecttag) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.236184+08:00", comments="Source Table: public.files_apply_directory_docs") + default Optional selectOne(SelectDSLCompleter completer) { + return MyBatis3Utils.selectOne(this::selectOne, selectList, filesApplyDirectoryDocs, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.236184+08:00", comments="Source Table: public.files_apply_directory_docs") + default List select(SelectDSLCompleter completer) { + return MyBatis3Utils.selectList(this::selectMany, selectList, filesApplyDirectoryDocs, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2371846+08:00", comments="Source Table: public.files_apply_directory_docs") + default List selectDistinct(SelectDSLCompleter completer) { + return MyBatis3Utils.selectDistinct(this::selectMany, selectList, filesApplyDirectoryDocs, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2371846+08:00", comments="Source Table: public.files_apply_directory_docs") + default Optional selectByPrimaryKey(String id_) { + return selectOne(c -> + c.where(id, isEqualTo(id_)) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2381828+08:00", comments="Source Table: public.files_apply_directory_docs") + default int update(UpdateDSLCompleter completer) { + return MyBatis3Utils.update(this::update, filesApplyDirectoryDocs, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2381828+08:00", comments="Source Table: public.files_apply_directory_docs") + static UpdateDSL updateAllColumns(FilesApplyDirectoryDocs row, UpdateDSL dsl) { + return dsl.set(id).equalTo(row::getId) + .set(files_apply_id).equalTo(row::getFiles_apply_id) + .set(directory_file_id).equalTo(row::getDirectory_file_id) + .set(directory_file_p_id).equalTo(row::getDirectory_file_p_id) + .set(filesuper).equalTo(row::getFilesuper) + .set(filecount).equalTo(row::getFilecount) + .set(dutyperson).equalTo(row::getDutyperson) + .set(eweavedate).equalTo(row::getEweavedate) + .set(filepage).equalTo(row::getFilepage) + .set(sortorder).equalTo(row::getSortorder) + .set(bpeg).equalTo(row::getBpeg) + .set(epeg).equalTo(row::getEpeg) + .set(filenum).equalTo(row::getFilenum) + .set(remark).equalTo(row::getRemark) + .set(recordnum).equalTo(row::getRecordnum) + .set(piecenumber).equalTo(row::getPiecenumber) + .set(adddate).equalTo(row::getAdddate) + .set(editdate).equalTo(row::getEditdate) + .set(time_stamp).equalTo(row::getTime_stamp) + .set(isdel).equalTo(row::getIsdel) + .set(catalogpdfurl).equalTo(row::getCatalogpdfurl) + .set(signtag).equalTo(row::getSigntag) + .set(collecttag).equalTo(row::getCollecttag); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2391507+08:00", comments="Source Table: public.files_apply_directory_docs") + static UpdateDSL updateSelectiveColumns(FilesApplyDirectoryDocs row, UpdateDSL dsl) { + return dsl.set(id).equalToWhenPresent(row::getId) + .set(files_apply_id).equalToWhenPresent(row::getFiles_apply_id) + .set(directory_file_id).equalToWhenPresent(row::getDirectory_file_id) + .set(directory_file_p_id).equalToWhenPresent(row::getDirectory_file_p_id) + .set(filesuper).equalToWhenPresent(row::getFilesuper) + .set(filecount).equalToWhenPresent(row::getFilecount) + .set(dutyperson).equalToWhenPresent(row::getDutyperson) + .set(eweavedate).equalToWhenPresent(row::getEweavedate) + .set(filepage).equalToWhenPresent(row::getFilepage) + .set(sortorder).equalToWhenPresent(row::getSortorder) + .set(bpeg).equalToWhenPresent(row::getBpeg) + .set(epeg).equalToWhenPresent(row::getEpeg) + .set(filenum).equalToWhenPresent(row::getFilenum) + .set(remark).equalToWhenPresent(row::getRemark) + .set(recordnum).equalToWhenPresent(row::getRecordnum) + .set(piecenumber).equalToWhenPresent(row::getPiecenumber) + .set(adddate).equalToWhenPresent(row::getAdddate) + .set(editdate).equalToWhenPresent(row::getEditdate) + .set(time_stamp).equalToWhenPresent(row::getTime_stamp) + .set(isdel).equalToWhenPresent(row::getIsdel) + .set(catalogpdfurl).equalToWhenPresent(row::getCatalogpdfurl) + .set(signtag).equalToWhenPresent(row::getSigntag) + .set(collecttag).equalToWhenPresent(row::getCollecttag); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2401479+08:00", comments="Source Table: public.files_apply_directory_docs") + default int updateByPrimaryKey(FilesApplyDirectoryDocs row) { + return update(c -> + c.set(files_apply_id).equalTo(row::getFiles_apply_id) + .set(directory_file_id).equalTo(row::getDirectory_file_id) + .set(directory_file_p_id).equalTo(row::getDirectory_file_p_id) + .set(filesuper).equalTo(row::getFilesuper) + .set(filecount).equalTo(row::getFilecount) + .set(dutyperson).equalTo(row::getDutyperson) + .set(eweavedate).equalTo(row::getEweavedate) + .set(filepage).equalTo(row::getFilepage) + .set(sortorder).equalTo(row::getSortorder) + .set(bpeg).equalTo(row::getBpeg) + .set(epeg).equalTo(row::getEpeg) + .set(filenum).equalTo(row::getFilenum) + .set(remark).equalTo(row::getRemark) + .set(recordnum).equalTo(row::getRecordnum) + .set(piecenumber).equalTo(row::getPiecenumber) + .set(adddate).equalTo(row::getAdddate) + .set(editdate).equalTo(row::getEditdate) + .set(time_stamp).equalTo(row::getTime_stamp) + .set(isdel).equalTo(row::getIsdel) + .set(catalogpdfurl).equalTo(row::getCatalogpdfurl) + .set(signtag).equalTo(row::getSigntag) + .set(collecttag).equalTo(row::getCollecttag) + .where(id, isEqualTo(row::getId)) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2401479+08:00", comments="Source Table: public.files_apply_directory_docs") + default int updateByPrimaryKeySelective(FilesApplyDirectoryDocs row) { + return update(c -> + c.set(files_apply_id).equalToWhenPresent(row::getFiles_apply_id) + .set(directory_file_id).equalToWhenPresent(row::getDirectory_file_id) + .set(directory_file_p_id).equalToWhenPresent(row::getDirectory_file_p_id) + .set(filesuper).equalToWhenPresent(row::getFilesuper) + .set(filecount).equalToWhenPresent(row::getFilecount) + .set(dutyperson).equalToWhenPresent(row::getDutyperson) + .set(eweavedate).equalToWhenPresent(row::getEweavedate) + .set(filepage).equalToWhenPresent(row::getFilepage) + .set(sortorder).equalToWhenPresent(row::getSortorder) + .set(bpeg).equalToWhenPresent(row::getBpeg) + .set(epeg).equalToWhenPresent(row::getEpeg) + .set(filenum).equalToWhenPresent(row::getFilenum) + .set(remark).equalToWhenPresent(row::getRemark) + .set(recordnum).equalToWhenPresent(row::getRecordnum) + .set(piecenumber).equalToWhenPresent(row::getPiecenumber) + .set(adddate).equalToWhenPresent(row::getAdddate) + .set(editdate).equalToWhenPresent(row::getEditdate) + .set(time_stamp).equalToWhenPresent(row::getTime_stamp) + .set(isdel).equalToWhenPresent(row::getIsdel) + .set(catalogpdfurl).equalToWhenPresent(row::getCatalogpdfurl) + .set(signtag).equalToWhenPresent(row::getSigntag) + .set(collecttag).equalToWhenPresent(row::getCollecttag) + .where(id, isEqualTo(row::getId)) + ); + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/dao/FilesApplyDocsMapper.java b/src/main/java/jj/tech/paolu/repository/mybatis/dao/FilesApplyDocsMapper.java new file mode 100644 index 0000000..f177993 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/dao/FilesApplyDocsMapper.java @@ -0,0 +1,297 @@ +package jj.tech.paolu.repository.mybatis.dao; + +import static jj.tech.paolu.repository.mybatis.dao.support.FilesApplyDocsDynamicSqlSupport.*; +import static org.mybatis.dynamic.sql.SqlBuilder.isEqualTo; + +import jakarta.annotation.Generated; +import java.util.Collection; +import java.util.List; +import java.util.Optional; +import jj.tech.paolu.repository.mybatis.entity.FilesApplyDocs; +import org.apache.ibatis.annotations.Mapper; +import org.apache.ibatis.annotations.Result; +import org.apache.ibatis.annotations.ResultMap; +import org.apache.ibatis.annotations.Results; +import org.apache.ibatis.annotations.SelectProvider; +import org.apache.ibatis.type.JdbcType; +import org.mybatis.dynamic.sql.BasicColumn; +import org.mybatis.dynamic.sql.delete.DeleteDSLCompleter; +import org.mybatis.dynamic.sql.select.CountDSLCompleter; +import org.mybatis.dynamic.sql.select.SelectDSLCompleter; +import org.mybatis.dynamic.sql.select.render.SelectStatementProvider; +import org.mybatis.dynamic.sql.update.UpdateDSL; +import org.mybatis.dynamic.sql.update.UpdateDSLCompleter; +import org.mybatis.dynamic.sql.update.UpdateModel; +import org.mybatis.dynamic.sql.util.SqlProviderAdapter; +import org.mybatis.dynamic.sql.util.mybatis3.CommonCountMapper; +import org.mybatis.dynamic.sql.util.mybatis3.CommonDeleteMapper; +import org.mybatis.dynamic.sql.util.mybatis3.CommonInsertMapper; +import org.mybatis.dynamic.sql.util.mybatis3.CommonUpdateMapper; +import org.mybatis.dynamic.sql.util.mybatis3.MyBatis3Utils; + +@Mapper +public interface FilesApplyDocsMapper extends CommonCountMapper, CommonDeleteMapper, CommonInsertMapper, CommonUpdateMapper { + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2691488+08:00", comments="Source Table: public.files_apply_docs") + BasicColumn[] selectList = BasicColumn.columnList(id, files_apply_id, syn_file_id, syn_file_p_id, tablenumber, annexname, projectname, eweavedate, checkdate, annexpage, sortorder, filefrom, archivestag, adddate, editdate, time_stamp, isdel, downurl, filesize, apply_view_type_print, apply_view_type_online); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2691488+08:00", comments="Source Table: public.files_apply_docs") + @SelectProvider(type=SqlProviderAdapter.class, method="select") + @Results(id="FilesApplyDocsResult", value = { + @Result(column="id", property="id", jdbcType=JdbcType.VARCHAR, id=true), + @Result(column="files_apply_id", property="files_apply_id", jdbcType=JdbcType.VARCHAR), + @Result(column="syn_file_id", property="syn_file_id", jdbcType=JdbcType.VARCHAR), + @Result(column="syn_file_p_id", property="syn_file_p_id", jdbcType=JdbcType.VARCHAR), + @Result(column="tablenumber", property="tablenumber", jdbcType=JdbcType.VARCHAR), + @Result(column="annexname", property="annexname", jdbcType=JdbcType.VARCHAR), + @Result(column="projectname", property="projectname", jdbcType=JdbcType.VARCHAR), + @Result(column="eweavedate", property="eweavedate", jdbcType=JdbcType.VARCHAR), + @Result(column="checkdate", property="checkdate", jdbcType=JdbcType.VARCHAR), + @Result(column="annexpage", property="annexpage", jdbcType=JdbcType.INTEGER), + @Result(column="sortorder", property="sortorder", jdbcType=JdbcType.VARCHAR), + @Result(column="filefrom", property="filefrom", jdbcType=JdbcType.VARCHAR), + @Result(column="archivestag", property="archivestag", jdbcType=JdbcType.VARCHAR), + @Result(column="adddate", property="adddate", jdbcType=JdbcType.VARCHAR), + @Result(column="editdate", property="editdate", jdbcType=JdbcType.VARCHAR), + @Result(column="time_stamp", property="time_stamp", jdbcType=JdbcType.VARCHAR), + @Result(column="isdel", property="isdel", jdbcType=JdbcType.INTEGER), + @Result(column="downurl", property="downurl", jdbcType=JdbcType.VARCHAR), + @Result(column="filesize", property="filesize", jdbcType=JdbcType.INTEGER), + @Result(column="apply_view_type_print", property="apply_view_type_print", jdbcType=JdbcType.INTEGER), + @Result(column="apply_view_type_online", property="apply_view_type_online", jdbcType=JdbcType.INTEGER) + }) + List selectMany(SelectStatementProvider selectStatement); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2691488+08:00", comments="Source Table: public.files_apply_docs") + @SelectProvider(type=SqlProviderAdapter.class, method="select") + @ResultMap("FilesApplyDocsResult") + Optional selectOne(SelectStatementProvider selectStatement); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2691488+08:00", comments="Source Table: public.files_apply_docs") + default long count(CountDSLCompleter completer) { + return MyBatis3Utils.countFrom(this::count, filesApplyDocs, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2691488+08:00", comments="Source Table: public.files_apply_docs") + default int delete(DeleteDSLCompleter completer) { + return MyBatis3Utils.deleteFrom(this::delete, filesApplyDocs, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2691488+08:00", comments="Source Table: public.files_apply_docs") + default int deleteByPrimaryKey(String id_) { + return delete(c -> + c.where(id, isEqualTo(id_)) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2691488+08:00", comments="Source Table: public.files_apply_docs") + default int insert(FilesApplyDocs row) { + return MyBatis3Utils.insert(this::insert, row, filesApplyDocs, c -> + c.map(id).toProperty("id") + .map(files_apply_id).toProperty("files_apply_id") + .map(syn_file_id).toProperty("syn_file_id") + .map(syn_file_p_id).toProperty("syn_file_p_id") + .map(tablenumber).toProperty("tablenumber") + .map(annexname).toProperty("annexname") + .map(projectname).toProperty("projectname") + .map(eweavedate).toProperty("eweavedate") + .map(checkdate).toProperty("checkdate") + .map(annexpage).toProperty("annexpage") + .map(sortorder).toProperty("sortorder") + .map(filefrom).toProperty("filefrom") + .map(archivestag).toProperty("archivestag") + .map(adddate).toProperty("adddate") + .map(editdate).toProperty("editdate") + .map(time_stamp).toProperty("time_stamp") + .map(isdel).toProperty("isdel") + .map(downurl).toProperty("downurl") + .map(filesize).toProperty("filesize") + .map(apply_view_type_print).toProperty("apply_view_type_print") + .map(apply_view_type_online).toProperty("apply_view_type_online") + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2691488+08:00", comments="Source Table: public.files_apply_docs") + default int insertMultiple(Collection records) { + return MyBatis3Utils.insertMultiple(this::insertMultiple, records, filesApplyDocs, c -> + c.map(id).toProperty("id") + .map(files_apply_id).toProperty("files_apply_id") + .map(syn_file_id).toProperty("syn_file_id") + .map(syn_file_p_id).toProperty("syn_file_p_id") + .map(tablenumber).toProperty("tablenumber") + .map(annexname).toProperty("annexname") + .map(projectname).toProperty("projectname") + .map(eweavedate).toProperty("eweavedate") + .map(checkdate).toProperty("checkdate") + .map(annexpage).toProperty("annexpage") + .map(sortorder).toProperty("sortorder") + .map(filefrom).toProperty("filefrom") + .map(archivestag).toProperty("archivestag") + .map(adddate).toProperty("adddate") + .map(editdate).toProperty("editdate") + .map(time_stamp).toProperty("time_stamp") + .map(isdel).toProperty("isdel") + .map(downurl).toProperty("downurl") + .map(filesize).toProperty("filesize") + .map(apply_view_type_print).toProperty("apply_view_type_print") + .map(apply_view_type_online).toProperty("apply_view_type_online") + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2691488+08:00", comments="Source Table: public.files_apply_docs") + default int insertSelective(FilesApplyDocs row) { + return MyBatis3Utils.insert(this::insert, row, filesApplyDocs, c -> + c.map(id).toPropertyWhenPresent("id", row::getId) + .map(files_apply_id).toPropertyWhenPresent("files_apply_id", row::getFiles_apply_id) + .map(syn_file_id).toPropertyWhenPresent("syn_file_id", row::getSyn_file_id) + .map(syn_file_p_id).toPropertyWhenPresent("syn_file_p_id", row::getSyn_file_p_id) + .map(tablenumber).toPropertyWhenPresent("tablenumber", row::getTablenumber) + .map(annexname).toPropertyWhenPresent("annexname", row::getAnnexname) + .map(projectname).toPropertyWhenPresent("projectname", row::getProjectname) + .map(eweavedate).toPropertyWhenPresent("eweavedate", row::getEweavedate) + .map(checkdate).toPropertyWhenPresent("checkdate", row::getCheckdate) + .map(annexpage).toPropertyWhenPresent("annexpage", row::getAnnexpage) + .map(sortorder).toPropertyWhenPresent("sortorder", row::getSortorder) + .map(filefrom).toPropertyWhenPresent("filefrom", row::getFilefrom) + .map(archivestag).toPropertyWhenPresent("archivestag", row::getArchivestag) + .map(adddate).toPropertyWhenPresent("adddate", row::getAdddate) + .map(editdate).toPropertyWhenPresent("editdate", row::getEditdate) + .map(time_stamp).toPropertyWhenPresent("time_stamp", row::getTime_stamp) + .map(isdel).toPropertyWhenPresent("isdel", row::getIsdel) + .map(downurl).toPropertyWhenPresent("downurl", row::getDownurl) + .map(filesize).toPropertyWhenPresent("filesize", row::getFilesize) + .map(apply_view_type_print).toPropertyWhenPresent("apply_view_type_print", row::getApply_view_type_print) + .map(apply_view_type_online).toPropertyWhenPresent("apply_view_type_online", row::getApply_view_type_online) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2701477+08:00", comments="Source Table: public.files_apply_docs") + default Optional selectOne(SelectDSLCompleter completer) { + return MyBatis3Utils.selectOne(this::selectOne, selectList, filesApplyDocs, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2701477+08:00", comments="Source Table: public.files_apply_docs") + default List select(SelectDSLCompleter completer) { + return MyBatis3Utils.selectList(this::selectMany, selectList, filesApplyDocs, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2701477+08:00", comments="Source Table: public.files_apply_docs") + default List selectDistinct(SelectDSLCompleter completer) { + return MyBatis3Utils.selectDistinct(this::selectMany, selectList, filesApplyDocs, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2701477+08:00", comments="Source Table: public.files_apply_docs") + default Optional selectByPrimaryKey(String id_) { + return selectOne(c -> + c.where(id, isEqualTo(id_)) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2701477+08:00", comments="Source Table: public.files_apply_docs") + default int update(UpdateDSLCompleter completer) { + return MyBatis3Utils.update(this::update, filesApplyDocs, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2701477+08:00", comments="Source Table: public.files_apply_docs") + static UpdateDSL updateAllColumns(FilesApplyDocs row, UpdateDSL dsl) { + return dsl.set(id).equalTo(row::getId) + .set(files_apply_id).equalTo(row::getFiles_apply_id) + .set(syn_file_id).equalTo(row::getSyn_file_id) + .set(syn_file_p_id).equalTo(row::getSyn_file_p_id) + .set(tablenumber).equalTo(row::getTablenumber) + .set(annexname).equalTo(row::getAnnexname) + .set(projectname).equalTo(row::getProjectname) + .set(eweavedate).equalTo(row::getEweavedate) + .set(checkdate).equalTo(row::getCheckdate) + .set(annexpage).equalTo(row::getAnnexpage) + .set(sortorder).equalTo(row::getSortorder) + .set(filefrom).equalTo(row::getFilefrom) + .set(archivestag).equalTo(row::getArchivestag) + .set(adddate).equalTo(row::getAdddate) + .set(editdate).equalTo(row::getEditdate) + .set(time_stamp).equalTo(row::getTime_stamp) + .set(isdel).equalTo(row::getIsdel) + .set(downurl).equalTo(row::getDownurl) + .set(filesize).equalTo(row::getFilesize) + .set(apply_view_type_print).equalTo(row::getApply_view_type_print) + .set(apply_view_type_online).equalTo(row::getApply_view_type_online); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2701477+08:00", comments="Source Table: public.files_apply_docs") + static UpdateDSL updateSelectiveColumns(FilesApplyDocs row, UpdateDSL dsl) { + return dsl.set(id).equalToWhenPresent(row::getId) + .set(files_apply_id).equalToWhenPresent(row::getFiles_apply_id) + .set(syn_file_id).equalToWhenPresent(row::getSyn_file_id) + .set(syn_file_p_id).equalToWhenPresent(row::getSyn_file_p_id) + .set(tablenumber).equalToWhenPresent(row::getTablenumber) + .set(annexname).equalToWhenPresent(row::getAnnexname) + .set(projectname).equalToWhenPresent(row::getProjectname) + .set(eweavedate).equalToWhenPresent(row::getEweavedate) + .set(checkdate).equalToWhenPresent(row::getCheckdate) + .set(annexpage).equalToWhenPresent(row::getAnnexpage) + .set(sortorder).equalToWhenPresent(row::getSortorder) + .set(filefrom).equalToWhenPresent(row::getFilefrom) + .set(archivestag).equalToWhenPresent(row::getArchivestag) + .set(adddate).equalToWhenPresent(row::getAdddate) + .set(editdate).equalToWhenPresent(row::getEditdate) + .set(time_stamp).equalToWhenPresent(row::getTime_stamp) + .set(isdel).equalToWhenPresent(row::getIsdel) + .set(downurl).equalToWhenPresent(row::getDownurl) + .set(filesize).equalToWhenPresent(row::getFilesize) + .set(apply_view_type_print).equalToWhenPresent(row::getApply_view_type_print) + .set(apply_view_type_online).equalToWhenPresent(row::getApply_view_type_online); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2701477+08:00", comments="Source Table: public.files_apply_docs") + default int updateByPrimaryKey(FilesApplyDocs row) { + return update(c -> + c.set(files_apply_id).equalTo(row::getFiles_apply_id) + .set(syn_file_id).equalTo(row::getSyn_file_id) + .set(syn_file_p_id).equalTo(row::getSyn_file_p_id) + .set(tablenumber).equalTo(row::getTablenumber) + .set(annexname).equalTo(row::getAnnexname) + .set(projectname).equalTo(row::getProjectname) + .set(eweavedate).equalTo(row::getEweavedate) + .set(checkdate).equalTo(row::getCheckdate) + .set(annexpage).equalTo(row::getAnnexpage) + .set(sortorder).equalTo(row::getSortorder) + .set(filefrom).equalTo(row::getFilefrom) + .set(archivestag).equalTo(row::getArchivestag) + .set(adddate).equalTo(row::getAdddate) + .set(editdate).equalTo(row::getEditdate) + .set(time_stamp).equalTo(row::getTime_stamp) + .set(isdel).equalTo(row::getIsdel) + .set(downurl).equalTo(row::getDownurl) + .set(filesize).equalTo(row::getFilesize) + .set(apply_view_type_print).equalTo(row::getApply_view_type_print) + .set(apply_view_type_online).equalTo(row::getApply_view_type_online) + .where(id, isEqualTo(row::getId)) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2701477+08:00", comments="Source Table: public.files_apply_docs") + default int updateByPrimaryKeySelective(FilesApplyDocs row) { + return update(c -> + c.set(files_apply_id).equalToWhenPresent(row::getFiles_apply_id) + .set(syn_file_id).equalToWhenPresent(row::getSyn_file_id) + .set(syn_file_p_id).equalToWhenPresent(row::getSyn_file_p_id) + .set(tablenumber).equalToWhenPresent(row::getTablenumber) + .set(annexname).equalToWhenPresent(row::getAnnexname) + .set(projectname).equalToWhenPresent(row::getProjectname) + .set(eweavedate).equalToWhenPresent(row::getEweavedate) + .set(checkdate).equalToWhenPresent(row::getCheckdate) + .set(annexpage).equalToWhenPresent(row::getAnnexpage) + .set(sortorder).equalToWhenPresent(row::getSortorder) + .set(filefrom).equalToWhenPresent(row::getFilefrom) + .set(archivestag).equalToWhenPresent(row::getArchivestag) + .set(adddate).equalToWhenPresent(row::getAdddate) + .set(editdate).equalToWhenPresent(row::getEditdate) + .set(time_stamp).equalToWhenPresent(row::getTime_stamp) + .set(isdel).equalToWhenPresent(row::getIsdel) + .set(downurl).equalToWhenPresent(row::getDownurl) + .set(filesize).equalToWhenPresent(row::getFilesize) + .set(apply_view_type_print).equalToWhenPresent(row::getApply_view_type_print) + .set(apply_view_type_online).equalToWhenPresent(row::getApply_view_type_online) + .where(id, isEqualTo(row::getId)) + ); + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/dao/FilesApplyDownloadRecordMapper.java b/src/main/java/jj/tech/paolu/repository/mybatis/dao/FilesApplyDownloadRecordMapper.java new file mode 100644 index 0000000..7cf3010 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/dao/FilesApplyDownloadRecordMapper.java @@ -0,0 +1,217 @@ +package jj.tech.paolu.repository.mybatis.dao; + +import static jj.tech.paolu.repository.mybatis.dao.support.FilesApplyDownloadRecordDynamicSqlSupport.*; +import static org.mybatis.dynamic.sql.SqlBuilder.isEqualTo; + +import jakarta.annotation.Generated; +import java.util.Collection; +import java.util.List; +import java.util.Optional; +import jj.tech.paolu.repository.mybatis.entity.FilesApplyDownloadRecord; +import org.apache.ibatis.annotations.Mapper; +import org.apache.ibatis.annotations.Result; +import org.apache.ibatis.annotations.ResultMap; +import org.apache.ibatis.annotations.Results; +import org.apache.ibatis.annotations.SelectProvider; +import org.apache.ibatis.type.JdbcType; +import org.mybatis.dynamic.sql.BasicColumn; +import org.mybatis.dynamic.sql.delete.DeleteDSLCompleter; +import org.mybatis.dynamic.sql.select.CountDSLCompleter; +import org.mybatis.dynamic.sql.select.SelectDSLCompleter; +import org.mybatis.dynamic.sql.select.render.SelectStatementProvider; +import org.mybatis.dynamic.sql.update.UpdateDSL; +import org.mybatis.dynamic.sql.update.UpdateDSLCompleter; +import org.mybatis.dynamic.sql.update.UpdateModel; +import org.mybatis.dynamic.sql.util.SqlProviderAdapter; +import org.mybatis.dynamic.sql.util.mybatis3.CommonCountMapper; +import org.mybatis.dynamic.sql.util.mybatis3.CommonDeleteMapper; +import org.mybatis.dynamic.sql.util.mybatis3.CommonInsertMapper; +import org.mybatis.dynamic.sql.util.mybatis3.CommonUpdateMapper; +import org.mybatis.dynamic.sql.util.mybatis3.MyBatis3Utils; + +@Mapper +public interface FilesApplyDownloadRecordMapper extends CommonCountMapper, CommonDeleteMapper, CommonInsertMapper, CommonUpdateMapper { + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2951492+08:00", comments="Source Table: public.files_apply_download_record") + BasicColumn[] selectList = BasicColumn.columnList(id, files_apply_id, is_dir_file, syn_file_id, syn_file_p_id, syn_file_name, user_id, user_name, org_id, org_name, download_time); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2941514+08:00", comments="Source Table: public.files_apply_download_record") + @SelectProvider(type=SqlProviderAdapter.class, method="select") + @Results(id="FilesApplyDownloadRecordResult", value = { + @Result(column="id", property="id", jdbcType=JdbcType.VARCHAR, id=true), + @Result(column="files_apply_id", property="files_apply_id", jdbcType=JdbcType.VARCHAR), + @Result(column="is_dir_file", property="is_dir_file", jdbcType=JdbcType.INTEGER), + @Result(column="syn_file_id", property="syn_file_id", jdbcType=JdbcType.VARCHAR), + @Result(column="syn_file_p_id", property="syn_file_p_id", jdbcType=JdbcType.VARCHAR), + @Result(column="syn_file_name", property="syn_file_name", jdbcType=JdbcType.VARCHAR), + @Result(column="user_id", property="user_id", jdbcType=JdbcType.VARCHAR), + @Result(column="user_name", property="user_name", jdbcType=JdbcType.VARCHAR), + @Result(column="org_id", property="org_id", jdbcType=JdbcType.VARCHAR), + @Result(column="org_name", property="org_name", jdbcType=JdbcType.VARCHAR), + @Result(column="download_time", property="download_time", jdbcType=JdbcType.TIMESTAMP) + }) + List selectMany(SelectStatementProvider selectStatement); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2951492+08:00", comments="Source Table: public.files_apply_download_record") + @SelectProvider(type=SqlProviderAdapter.class, method="select") + @ResultMap("FilesApplyDownloadRecordResult") + Optional selectOne(SelectStatementProvider selectStatement); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2951492+08:00", comments="Source Table: public.files_apply_download_record") + default long count(CountDSLCompleter completer) { + return MyBatis3Utils.countFrom(this::count, filesApplyDownloadRecord, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2951492+08:00", comments="Source Table: public.files_apply_download_record") + default int delete(DeleteDSLCompleter completer) { + return MyBatis3Utils.deleteFrom(this::delete, filesApplyDownloadRecord, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2951492+08:00", comments="Source Table: public.files_apply_download_record") + default int deleteByPrimaryKey(String id_) { + return delete(c -> + c.where(id, isEqualTo(id_)) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2951492+08:00", comments="Source Table: public.files_apply_download_record") + default int insert(FilesApplyDownloadRecord row) { + return MyBatis3Utils.insert(this::insert, row, filesApplyDownloadRecord, c -> + c.map(id).toProperty("id") + .map(files_apply_id).toProperty("files_apply_id") + .map(is_dir_file).toProperty("is_dir_file") + .map(syn_file_id).toProperty("syn_file_id") + .map(syn_file_p_id).toProperty("syn_file_p_id") + .map(syn_file_name).toProperty("syn_file_name") + .map(user_id).toProperty("user_id") + .map(user_name).toProperty("user_name") + .map(org_id).toProperty("org_id") + .map(org_name).toProperty("org_name") + .map(download_time).toProperty("download_time") + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2951492+08:00", comments="Source Table: public.files_apply_download_record") + default int insertMultiple(Collection records) { + return MyBatis3Utils.insertMultiple(this::insertMultiple, records, filesApplyDownloadRecord, c -> + c.map(id).toProperty("id") + .map(files_apply_id).toProperty("files_apply_id") + .map(is_dir_file).toProperty("is_dir_file") + .map(syn_file_id).toProperty("syn_file_id") + .map(syn_file_p_id).toProperty("syn_file_p_id") + .map(syn_file_name).toProperty("syn_file_name") + .map(user_id).toProperty("user_id") + .map(user_name).toProperty("user_name") + .map(org_id).toProperty("org_id") + .map(org_name).toProperty("org_name") + .map(download_time).toProperty("download_time") + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2951492+08:00", comments="Source Table: public.files_apply_download_record") + default int insertSelective(FilesApplyDownloadRecord row) { + return MyBatis3Utils.insert(this::insert, row, filesApplyDownloadRecord, c -> + c.map(id).toPropertyWhenPresent("id", row::getId) + .map(files_apply_id).toPropertyWhenPresent("files_apply_id", row::getFiles_apply_id) + .map(is_dir_file).toPropertyWhenPresent("is_dir_file", row::getIs_dir_file) + .map(syn_file_id).toPropertyWhenPresent("syn_file_id", row::getSyn_file_id) + .map(syn_file_p_id).toPropertyWhenPresent("syn_file_p_id", row::getSyn_file_p_id) + .map(syn_file_name).toPropertyWhenPresent("syn_file_name", row::getSyn_file_name) + .map(user_id).toPropertyWhenPresent("user_id", row::getUser_id) + .map(user_name).toPropertyWhenPresent("user_name", row::getUser_name) + .map(org_id).toPropertyWhenPresent("org_id", row::getOrg_id) + .map(org_name).toPropertyWhenPresent("org_name", row::getOrg_name) + .map(download_time).toPropertyWhenPresent("download_time", row::getDownload_time) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2961489+08:00", comments="Source Table: public.files_apply_download_record") + default Optional selectOne(SelectDSLCompleter completer) { + return MyBatis3Utils.selectOne(this::selectOne, selectList, filesApplyDownloadRecord, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2961489+08:00", comments="Source Table: public.files_apply_download_record") + default List select(SelectDSLCompleter completer) { + return MyBatis3Utils.selectList(this::selectMany, selectList, filesApplyDownloadRecord, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2961489+08:00", comments="Source Table: public.files_apply_download_record") + default List selectDistinct(SelectDSLCompleter completer) { + return MyBatis3Utils.selectDistinct(this::selectMany, selectList, filesApplyDownloadRecord, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2961489+08:00", comments="Source Table: public.files_apply_download_record") + default Optional selectByPrimaryKey(String id_) { + return selectOne(c -> + c.where(id, isEqualTo(id_)) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2961489+08:00", comments="Source Table: public.files_apply_download_record") + default int update(UpdateDSLCompleter completer) { + return MyBatis3Utils.update(this::update, filesApplyDownloadRecord, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2961489+08:00", comments="Source Table: public.files_apply_download_record") + static UpdateDSL updateAllColumns(FilesApplyDownloadRecord row, UpdateDSL dsl) { + return dsl.set(id).equalTo(row::getId) + .set(files_apply_id).equalTo(row::getFiles_apply_id) + .set(is_dir_file).equalTo(row::getIs_dir_file) + .set(syn_file_id).equalTo(row::getSyn_file_id) + .set(syn_file_p_id).equalTo(row::getSyn_file_p_id) + .set(syn_file_name).equalTo(row::getSyn_file_name) + .set(user_id).equalTo(row::getUser_id) + .set(user_name).equalTo(row::getUser_name) + .set(org_id).equalTo(row::getOrg_id) + .set(org_name).equalTo(row::getOrg_name) + .set(download_time).equalTo(row::getDownload_time); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2961489+08:00", comments="Source Table: public.files_apply_download_record") + static UpdateDSL updateSelectiveColumns(FilesApplyDownloadRecord row, UpdateDSL dsl) { + return dsl.set(id).equalToWhenPresent(row::getId) + .set(files_apply_id).equalToWhenPresent(row::getFiles_apply_id) + .set(is_dir_file).equalToWhenPresent(row::getIs_dir_file) + .set(syn_file_id).equalToWhenPresent(row::getSyn_file_id) + .set(syn_file_p_id).equalToWhenPresent(row::getSyn_file_p_id) + .set(syn_file_name).equalToWhenPresent(row::getSyn_file_name) + .set(user_id).equalToWhenPresent(row::getUser_id) + .set(user_name).equalToWhenPresent(row::getUser_name) + .set(org_id).equalToWhenPresent(row::getOrg_id) + .set(org_name).equalToWhenPresent(row::getOrg_name) + .set(download_time).equalToWhenPresent(row::getDownload_time); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2961489+08:00", comments="Source Table: public.files_apply_download_record") + default int updateByPrimaryKey(FilesApplyDownloadRecord row) { + return update(c -> + c.set(files_apply_id).equalTo(row::getFiles_apply_id) + .set(is_dir_file).equalTo(row::getIs_dir_file) + .set(syn_file_id).equalTo(row::getSyn_file_id) + .set(syn_file_p_id).equalTo(row::getSyn_file_p_id) + .set(syn_file_name).equalTo(row::getSyn_file_name) + .set(user_id).equalTo(row::getUser_id) + .set(user_name).equalTo(row::getUser_name) + .set(org_id).equalTo(row::getOrg_id) + .set(org_name).equalTo(row::getOrg_name) + .set(download_time).equalTo(row::getDownload_time) + .where(id, isEqualTo(row::getId)) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2961489+08:00", comments="Source Table: public.files_apply_download_record") + default int updateByPrimaryKeySelective(FilesApplyDownloadRecord row) { + return update(c -> + c.set(files_apply_id).equalToWhenPresent(row::getFiles_apply_id) + .set(is_dir_file).equalToWhenPresent(row::getIs_dir_file) + .set(syn_file_id).equalToWhenPresent(row::getSyn_file_id) + .set(syn_file_p_id).equalToWhenPresent(row::getSyn_file_p_id) + .set(syn_file_name).equalToWhenPresent(row::getSyn_file_name) + .set(user_id).equalToWhenPresent(row::getUser_id) + .set(user_name).equalToWhenPresent(row::getUser_name) + .set(org_id).equalToWhenPresent(row::getOrg_id) + .set(org_name).equalToWhenPresent(row::getOrg_name) + .set(download_time).equalToWhenPresent(row::getDownload_time) + .where(id, isEqualTo(row::getId)) + ); + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/dao/FilesApplyMapper.java b/src/main/java/jj/tech/paolu/repository/mybatis/dao/FilesApplyMapper.java new file mode 100644 index 0000000..1034507 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/dao/FilesApplyMapper.java @@ -0,0 +1,505 @@ +package jj.tech.paolu.repository.mybatis.dao; + +import static jj.tech.paolu.repository.mybatis.dao.support.FilesApplyDynamicSqlSupport.*; +import static org.mybatis.dynamic.sql.SqlBuilder.isEqualTo; + +import jakarta.annotation.Generated; +import java.util.Collection; +import java.util.List; +import java.util.Optional; +import jj.tech.paolu.repository.mybatis.entity.FilesApply; +import org.apache.ibatis.annotations.Mapper; +import org.apache.ibatis.annotations.Result; +import org.apache.ibatis.annotations.ResultMap; +import org.apache.ibatis.annotations.Results; +import org.apache.ibatis.annotations.SelectProvider; +import org.apache.ibatis.type.JdbcType; +import org.mybatis.dynamic.sql.BasicColumn; +import org.mybatis.dynamic.sql.delete.DeleteDSLCompleter; +import org.mybatis.dynamic.sql.select.CountDSLCompleter; +import org.mybatis.dynamic.sql.select.SelectDSLCompleter; +import org.mybatis.dynamic.sql.select.render.SelectStatementProvider; +import org.mybatis.dynamic.sql.update.UpdateDSL; +import org.mybatis.dynamic.sql.update.UpdateDSLCompleter; +import org.mybatis.dynamic.sql.update.UpdateModel; +import org.mybatis.dynamic.sql.util.SqlProviderAdapter; +import org.mybatis.dynamic.sql.util.mybatis3.CommonCountMapper; +import org.mybatis.dynamic.sql.util.mybatis3.CommonDeleteMapper; +import org.mybatis.dynamic.sql.util.mybatis3.CommonInsertMapper; +import org.mybatis.dynamic.sql.util.mybatis3.CommonUpdateMapper; +import org.mybatis.dynamic.sql.util.mybatis3.MyBatis3Utils; + +@Mapper +public interface FilesApplyMapper extends CommonCountMapper, CommonDeleteMapper, CommonInsertMapper, CommonUpdateMapper { + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2781481+08:00", comments="Source Table: public.files_apply") + BasicColumn[] selectList = BasicColumn.columnList(id, apply_user_id, apply_user_name, apply_user_phone, apply_user_email, apply_org_id, apply_org_name, apply_in_check_user_id, apply_in_check_user_name, apply_in_check_org_id, apply_in_check_org_name, apply_next_check_org_id, apply_next_check_org_name, apply_end_check_user_id, apply_end_check_user_name, apply_end_check_org_id, apply_end_check_org_name, apply_days, apply_feedback, apply_reason, apply_cancel_reason, apply_view_type_print, apply_view_type_online, apply_file_num, apply_time, apply_check_is_finish, provider_org_id, provider_org_name, provider_file_properties, provider_use_start_time, provider_use_end_time, provider_in_check_user_id, provider_in_check_user_name, provider_in_check_org_id, provider_in_check_org_name, provider_next_check_role_sign_id, provider_next_check_role_sign_name, provider_end_check_user_id, provider_end_check_user_name, provider_end_check_org_id, provider_end_check_org_name, provider_check_is_finish, secret_key, status, project_id, project_name, sign); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2771463+08:00", comments="Source Table: public.files_apply") + @SelectProvider(type=SqlProviderAdapter.class, method="select") + @Results(id="FilesApplyResult", value = { + @Result(column="id", property="id", jdbcType=JdbcType.VARCHAR, id=true), + @Result(column="apply_user_id", property="apply_user_id", jdbcType=JdbcType.VARCHAR), + @Result(column="apply_user_name", property="apply_user_name", jdbcType=JdbcType.VARCHAR), + @Result(column="apply_user_phone", property="apply_user_phone", jdbcType=JdbcType.VARCHAR), + @Result(column="apply_user_email", property="apply_user_email", jdbcType=JdbcType.VARCHAR), + @Result(column="apply_org_id", property="apply_org_id", jdbcType=JdbcType.VARCHAR), + @Result(column="apply_org_name", property="apply_org_name", jdbcType=JdbcType.VARCHAR), + @Result(column="apply_in_check_user_id", property="apply_in_check_user_id", jdbcType=JdbcType.VARCHAR), + @Result(column="apply_in_check_user_name", property="apply_in_check_user_name", jdbcType=JdbcType.VARCHAR), + @Result(column="apply_in_check_org_id", property="apply_in_check_org_id", jdbcType=JdbcType.VARCHAR), + @Result(column="apply_in_check_org_name", property="apply_in_check_org_name", jdbcType=JdbcType.VARCHAR), + @Result(column="apply_next_check_org_id", property="apply_next_check_org_id", jdbcType=JdbcType.VARCHAR), + @Result(column="apply_next_check_org_name", property="apply_next_check_org_name", jdbcType=JdbcType.VARCHAR), + @Result(column="apply_end_check_user_id", property="apply_end_check_user_id", jdbcType=JdbcType.VARCHAR), + @Result(column="apply_end_check_user_name", property="apply_end_check_user_name", jdbcType=JdbcType.VARCHAR), + @Result(column="apply_end_check_org_id", property="apply_end_check_org_id", jdbcType=JdbcType.VARCHAR), + @Result(column="apply_end_check_org_name", property="apply_end_check_org_name", jdbcType=JdbcType.VARCHAR), + @Result(column="apply_days", property="apply_days", jdbcType=JdbcType.INTEGER), + @Result(column="apply_feedback", property="apply_feedback", jdbcType=JdbcType.VARCHAR), + @Result(column="apply_reason", property="apply_reason", jdbcType=JdbcType.VARCHAR), + @Result(column="apply_cancel_reason", property="apply_cancel_reason", jdbcType=JdbcType.VARCHAR), + @Result(column="apply_view_type_print", property="apply_view_type_print", jdbcType=JdbcType.INTEGER), + @Result(column="apply_view_type_online", property="apply_view_type_online", jdbcType=JdbcType.INTEGER), + @Result(column="apply_file_num", property="apply_file_num", jdbcType=JdbcType.INTEGER), + @Result(column="apply_time", property="apply_time", jdbcType=JdbcType.TIMESTAMP), + @Result(column="apply_check_is_finish", property="apply_check_is_finish", jdbcType=JdbcType.INTEGER), + @Result(column="provider_org_id", property="provider_org_id", jdbcType=JdbcType.VARCHAR), + @Result(column="provider_org_name", property="provider_org_name", jdbcType=JdbcType.VARCHAR), + @Result(column="provider_file_properties", property="provider_file_properties", jdbcType=JdbcType.INTEGER), + @Result(column="provider_use_start_time", property="provider_use_start_time", jdbcType=JdbcType.TIMESTAMP), + @Result(column="provider_use_end_time", property="provider_use_end_time", jdbcType=JdbcType.TIMESTAMP), + @Result(column="provider_in_check_user_id", property="provider_in_check_user_id", jdbcType=JdbcType.VARCHAR), + @Result(column="provider_in_check_user_name", property="provider_in_check_user_name", jdbcType=JdbcType.VARCHAR), + @Result(column="provider_in_check_org_id", property="provider_in_check_org_id", jdbcType=JdbcType.VARCHAR), + @Result(column="provider_in_check_org_name", property="provider_in_check_org_name", jdbcType=JdbcType.VARCHAR), + @Result(column="provider_next_check_role_sign_id", property="provider_next_check_role_sign_id", jdbcType=JdbcType.VARCHAR), + @Result(column="provider_next_check_role_sign_name", property="provider_next_check_role_sign_name", jdbcType=JdbcType.VARCHAR), + @Result(column="provider_end_check_user_id", property="provider_end_check_user_id", jdbcType=JdbcType.VARCHAR), + @Result(column="provider_end_check_user_name", property="provider_end_check_user_name", jdbcType=JdbcType.VARCHAR), + @Result(column="provider_end_check_org_id", property="provider_end_check_org_id", jdbcType=JdbcType.VARCHAR), + @Result(column="provider_end_check_org_name", property="provider_end_check_org_name", jdbcType=JdbcType.VARCHAR), + @Result(column="provider_check_is_finish", property="provider_check_is_finish", jdbcType=JdbcType.INTEGER), + @Result(column="secret_key", property="secret_key", jdbcType=JdbcType.VARCHAR), + @Result(column="status", property="status", jdbcType=JdbcType.INTEGER), + @Result(column="project_id", property="project_id", jdbcType=JdbcType.VARCHAR), + @Result(column="project_name", property="project_name", jdbcType=JdbcType.VARCHAR), + @Result(column="sign", property="sign", jdbcType=JdbcType.VARCHAR) + }) + List selectMany(SelectStatementProvider selectStatement); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2771463+08:00", comments="Source Table: public.files_apply") + @SelectProvider(type=SqlProviderAdapter.class, method="select") + @ResultMap("FilesApplyResult") + Optional selectOne(SelectStatementProvider selectStatement); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2771463+08:00", comments="Source Table: public.files_apply") + default long count(CountDSLCompleter completer) { + return MyBatis3Utils.countFrom(this::count, filesApply, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2771463+08:00", comments="Source Table: public.files_apply") + default int delete(DeleteDSLCompleter completer) { + return MyBatis3Utils.deleteFrom(this::delete, filesApply, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2771463+08:00", comments="Source Table: public.files_apply") + default int deleteByPrimaryKey(String id_) { + return delete(c -> + c.where(id, isEqualTo(id_)) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2771463+08:00", comments="Source Table: public.files_apply") + default int insert(FilesApply row) { + return MyBatis3Utils.insert(this::insert, row, filesApply, c -> + c.map(id).toProperty("id") + .map(apply_user_id).toProperty("apply_user_id") + .map(apply_user_name).toProperty("apply_user_name") + .map(apply_user_phone).toProperty("apply_user_phone") + .map(apply_user_email).toProperty("apply_user_email") + .map(apply_org_id).toProperty("apply_org_id") + .map(apply_org_name).toProperty("apply_org_name") + .map(apply_in_check_user_id).toProperty("apply_in_check_user_id") + .map(apply_in_check_user_name).toProperty("apply_in_check_user_name") + .map(apply_in_check_org_id).toProperty("apply_in_check_org_id") + .map(apply_in_check_org_name).toProperty("apply_in_check_org_name") + .map(apply_next_check_org_id).toProperty("apply_next_check_org_id") + .map(apply_next_check_org_name).toProperty("apply_next_check_org_name") + .map(apply_end_check_user_id).toProperty("apply_end_check_user_id") + .map(apply_end_check_user_name).toProperty("apply_end_check_user_name") + .map(apply_end_check_org_id).toProperty("apply_end_check_org_id") + .map(apply_end_check_org_name).toProperty("apply_end_check_org_name") + .map(apply_days).toProperty("apply_days") + .map(apply_feedback).toProperty("apply_feedback") + .map(apply_reason).toProperty("apply_reason") + .map(apply_cancel_reason).toProperty("apply_cancel_reason") + .map(apply_view_type_print).toProperty("apply_view_type_print") + .map(apply_view_type_online).toProperty("apply_view_type_online") + .map(apply_file_num).toProperty("apply_file_num") + .map(apply_time).toProperty("apply_time") + .map(apply_check_is_finish).toProperty("apply_check_is_finish") + .map(provider_org_id).toProperty("provider_org_id") + .map(provider_org_name).toProperty("provider_org_name") + .map(provider_file_properties).toProperty("provider_file_properties") + .map(provider_use_start_time).toProperty("provider_use_start_time") + .map(provider_use_end_time).toProperty("provider_use_end_time") + .map(provider_in_check_user_id).toProperty("provider_in_check_user_id") + .map(provider_in_check_user_name).toProperty("provider_in_check_user_name") + .map(provider_in_check_org_id).toProperty("provider_in_check_org_id") + .map(provider_in_check_org_name).toProperty("provider_in_check_org_name") + .map(provider_next_check_role_sign_id).toProperty("provider_next_check_role_sign_id") + .map(provider_next_check_role_sign_name).toProperty("provider_next_check_role_sign_name") + .map(provider_end_check_user_id).toProperty("provider_end_check_user_id") + .map(provider_end_check_user_name).toProperty("provider_end_check_user_name") + .map(provider_end_check_org_id).toProperty("provider_end_check_org_id") + .map(provider_end_check_org_name).toProperty("provider_end_check_org_name") + .map(provider_check_is_finish).toProperty("provider_check_is_finish") + .map(secret_key).toProperty("secret_key") + .map(status).toProperty("status") + .map(project_id).toProperty("project_id") + .map(project_name).toProperty("project_name") + .map(sign).toProperty("sign") + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2771463+08:00", comments="Source Table: public.files_apply") + default int insertMultiple(Collection records) { + return MyBatis3Utils.insertMultiple(this::insertMultiple, records, filesApply, c -> + c.map(id).toProperty("id") + .map(apply_user_id).toProperty("apply_user_id") + .map(apply_user_name).toProperty("apply_user_name") + .map(apply_user_phone).toProperty("apply_user_phone") + .map(apply_user_email).toProperty("apply_user_email") + .map(apply_org_id).toProperty("apply_org_id") + .map(apply_org_name).toProperty("apply_org_name") + .map(apply_in_check_user_id).toProperty("apply_in_check_user_id") + .map(apply_in_check_user_name).toProperty("apply_in_check_user_name") + .map(apply_in_check_org_id).toProperty("apply_in_check_org_id") + .map(apply_in_check_org_name).toProperty("apply_in_check_org_name") + .map(apply_next_check_org_id).toProperty("apply_next_check_org_id") + .map(apply_next_check_org_name).toProperty("apply_next_check_org_name") + .map(apply_end_check_user_id).toProperty("apply_end_check_user_id") + .map(apply_end_check_user_name).toProperty("apply_end_check_user_name") + .map(apply_end_check_org_id).toProperty("apply_end_check_org_id") + .map(apply_end_check_org_name).toProperty("apply_end_check_org_name") + .map(apply_days).toProperty("apply_days") + .map(apply_feedback).toProperty("apply_feedback") + .map(apply_reason).toProperty("apply_reason") + .map(apply_cancel_reason).toProperty("apply_cancel_reason") + .map(apply_view_type_print).toProperty("apply_view_type_print") + .map(apply_view_type_online).toProperty("apply_view_type_online") + .map(apply_file_num).toProperty("apply_file_num") + .map(apply_time).toProperty("apply_time") + .map(apply_check_is_finish).toProperty("apply_check_is_finish") + .map(provider_org_id).toProperty("provider_org_id") + .map(provider_org_name).toProperty("provider_org_name") + .map(provider_file_properties).toProperty("provider_file_properties") + .map(provider_use_start_time).toProperty("provider_use_start_time") + .map(provider_use_end_time).toProperty("provider_use_end_time") + .map(provider_in_check_user_id).toProperty("provider_in_check_user_id") + .map(provider_in_check_user_name).toProperty("provider_in_check_user_name") + .map(provider_in_check_org_id).toProperty("provider_in_check_org_id") + .map(provider_in_check_org_name).toProperty("provider_in_check_org_name") + .map(provider_next_check_role_sign_id).toProperty("provider_next_check_role_sign_id") + .map(provider_next_check_role_sign_name).toProperty("provider_next_check_role_sign_name") + .map(provider_end_check_user_id).toProperty("provider_end_check_user_id") + .map(provider_end_check_user_name).toProperty("provider_end_check_user_name") + .map(provider_end_check_org_id).toProperty("provider_end_check_org_id") + .map(provider_end_check_org_name).toProperty("provider_end_check_org_name") + .map(provider_check_is_finish).toProperty("provider_check_is_finish") + .map(secret_key).toProperty("secret_key") + .map(status).toProperty("status") + .map(project_id).toProperty("project_id") + .map(project_name).toProperty("project_name") + .map(sign).toProperty("sign") + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2771463+08:00", comments="Source Table: public.files_apply") + default int insertSelective(FilesApply row) { + return MyBatis3Utils.insert(this::insert, row, filesApply, c -> + c.map(id).toPropertyWhenPresent("id", row::getId) + .map(apply_user_id).toPropertyWhenPresent("apply_user_id", row::getApply_user_id) + .map(apply_user_name).toPropertyWhenPresent("apply_user_name", row::getApply_user_name) + .map(apply_user_phone).toPropertyWhenPresent("apply_user_phone", row::getApply_user_phone) + .map(apply_user_email).toPropertyWhenPresent("apply_user_email", row::getApply_user_email) + .map(apply_org_id).toPropertyWhenPresent("apply_org_id", row::getApply_org_id) + .map(apply_org_name).toPropertyWhenPresent("apply_org_name", row::getApply_org_name) + .map(apply_in_check_user_id).toPropertyWhenPresent("apply_in_check_user_id", row::getApply_in_check_user_id) + .map(apply_in_check_user_name).toPropertyWhenPresent("apply_in_check_user_name", row::getApply_in_check_user_name) + .map(apply_in_check_org_id).toPropertyWhenPresent("apply_in_check_org_id", row::getApply_in_check_org_id) + .map(apply_in_check_org_name).toPropertyWhenPresent("apply_in_check_org_name", row::getApply_in_check_org_name) + .map(apply_next_check_org_id).toPropertyWhenPresent("apply_next_check_org_id", row::getApply_next_check_org_id) + .map(apply_next_check_org_name).toPropertyWhenPresent("apply_next_check_org_name", row::getApply_next_check_org_name) + .map(apply_end_check_user_id).toPropertyWhenPresent("apply_end_check_user_id", row::getApply_end_check_user_id) + .map(apply_end_check_user_name).toPropertyWhenPresent("apply_end_check_user_name", row::getApply_end_check_user_name) + .map(apply_end_check_org_id).toPropertyWhenPresent("apply_end_check_org_id", row::getApply_end_check_org_id) + .map(apply_end_check_org_name).toPropertyWhenPresent("apply_end_check_org_name", row::getApply_end_check_org_name) + .map(apply_days).toPropertyWhenPresent("apply_days", row::getApply_days) + .map(apply_feedback).toPropertyWhenPresent("apply_feedback", row::getApply_feedback) + .map(apply_reason).toPropertyWhenPresent("apply_reason", row::getApply_reason) + .map(apply_cancel_reason).toPropertyWhenPresent("apply_cancel_reason", row::getApply_cancel_reason) + .map(apply_view_type_print).toPropertyWhenPresent("apply_view_type_print", row::getApply_view_type_print) + .map(apply_view_type_online).toPropertyWhenPresent("apply_view_type_online", row::getApply_view_type_online) + .map(apply_file_num).toPropertyWhenPresent("apply_file_num", row::getApply_file_num) + .map(apply_time).toPropertyWhenPresent("apply_time", row::getApply_time) + .map(apply_check_is_finish).toPropertyWhenPresent("apply_check_is_finish", row::getApply_check_is_finish) + .map(provider_org_id).toPropertyWhenPresent("provider_org_id", row::getProvider_org_id) + .map(provider_org_name).toPropertyWhenPresent("provider_org_name", row::getProvider_org_name) + .map(provider_file_properties).toPropertyWhenPresent("provider_file_properties", row::getProvider_file_properties) + .map(provider_use_start_time).toPropertyWhenPresent("provider_use_start_time", row::getProvider_use_start_time) + .map(provider_use_end_time).toPropertyWhenPresent("provider_use_end_time", row::getProvider_use_end_time) + .map(provider_in_check_user_id).toPropertyWhenPresent("provider_in_check_user_id", row::getProvider_in_check_user_id) + .map(provider_in_check_user_name).toPropertyWhenPresent("provider_in_check_user_name", row::getProvider_in_check_user_name) + .map(provider_in_check_org_id).toPropertyWhenPresent("provider_in_check_org_id", row::getProvider_in_check_org_id) + .map(provider_in_check_org_name).toPropertyWhenPresent("provider_in_check_org_name", row::getProvider_in_check_org_name) + .map(provider_next_check_role_sign_id).toPropertyWhenPresent("provider_next_check_role_sign_id", row::getProvider_next_check_role_sign_id) + .map(provider_next_check_role_sign_name).toPropertyWhenPresent("provider_next_check_role_sign_name", row::getProvider_next_check_role_sign_name) + .map(provider_end_check_user_id).toPropertyWhenPresent("provider_end_check_user_id", row::getProvider_end_check_user_id) + .map(provider_end_check_user_name).toPropertyWhenPresent("provider_end_check_user_name", row::getProvider_end_check_user_name) + .map(provider_end_check_org_id).toPropertyWhenPresent("provider_end_check_org_id", row::getProvider_end_check_org_id) + .map(provider_end_check_org_name).toPropertyWhenPresent("provider_end_check_org_name", row::getProvider_end_check_org_name) + .map(provider_check_is_finish).toPropertyWhenPresent("provider_check_is_finish", row::getProvider_check_is_finish) + .map(secret_key).toPropertyWhenPresent("secret_key", row::getSecret_key) + .map(status).toPropertyWhenPresent("status", row::getStatus) + .map(project_id).toPropertyWhenPresent("project_id", row::getProject_id) + .map(project_name).toPropertyWhenPresent("project_name", row::getProject_name) + .map(sign).toPropertyWhenPresent("sign", row::getSign) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2781481+08:00", comments="Source Table: public.files_apply") + default Optional selectOne(SelectDSLCompleter completer) { + return MyBatis3Utils.selectOne(this::selectOne, selectList, filesApply, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2781481+08:00", comments="Source Table: public.files_apply") + default List select(SelectDSLCompleter completer) { + return MyBatis3Utils.selectList(this::selectMany, selectList, filesApply, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2781481+08:00", comments="Source Table: public.files_apply") + default List selectDistinct(SelectDSLCompleter completer) { + return MyBatis3Utils.selectDistinct(this::selectMany, selectList, filesApply, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2781481+08:00", comments="Source Table: public.files_apply") + default Optional selectByPrimaryKey(String id_) { + return selectOne(c -> + c.where(id, isEqualTo(id_)) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2781481+08:00", comments="Source Table: public.files_apply") + default int update(UpdateDSLCompleter completer) { + return MyBatis3Utils.update(this::update, filesApply, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2781481+08:00", comments="Source Table: public.files_apply") + static UpdateDSL updateAllColumns(FilesApply row, UpdateDSL dsl) { + return dsl.set(id).equalTo(row::getId) + .set(apply_user_id).equalTo(row::getApply_user_id) + .set(apply_user_name).equalTo(row::getApply_user_name) + .set(apply_user_phone).equalTo(row::getApply_user_phone) + .set(apply_user_email).equalTo(row::getApply_user_email) + .set(apply_org_id).equalTo(row::getApply_org_id) + .set(apply_org_name).equalTo(row::getApply_org_name) + .set(apply_in_check_user_id).equalTo(row::getApply_in_check_user_id) + .set(apply_in_check_user_name).equalTo(row::getApply_in_check_user_name) + .set(apply_in_check_org_id).equalTo(row::getApply_in_check_org_id) + .set(apply_in_check_org_name).equalTo(row::getApply_in_check_org_name) + .set(apply_next_check_org_id).equalTo(row::getApply_next_check_org_id) + .set(apply_next_check_org_name).equalTo(row::getApply_next_check_org_name) + .set(apply_end_check_user_id).equalTo(row::getApply_end_check_user_id) + .set(apply_end_check_user_name).equalTo(row::getApply_end_check_user_name) + .set(apply_end_check_org_id).equalTo(row::getApply_end_check_org_id) + .set(apply_end_check_org_name).equalTo(row::getApply_end_check_org_name) + .set(apply_days).equalTo(row::getApply_days) + .set(apply_feedback).equalTo(row::getApply_feedback) + .set(apply_reason).equalTo(row::getApply_reason) + .set(apply_cancel_reason).equalTo(row::getApply_cancel_reason) + .set(apply_view_type_print).equalTo(row::getApply_view_type_print) + .set(apply_view_type_online).equalTo(row::getApply_view_type_online) + .set(apply_file_num).equalTo(row::getApply_file_num) + .set(apply_time).equalTo(row::getApply_time) + .set(apply_check_is_finish).equalTo(row::getApply_check_is_finish) + .set(provider_org_id).equalTo(row::getProvider_org_id) + .set(provider_org_name).equalTo(row::getProvider_org_name) + .set(provider_file_properties).equalTo(row::getProvider_file_properties) + .set(provider_use_start_time).equalTo(row::getProvider_use_start_time) + .set(provider_use_end_time).equalTo(row::getProvider_use_end_time) + .set(provider_in_check_user_id).equalTo(row::getProvider_in_check_user_id) + .set(provider_in_check_user_name).equalTo(row::getProvider_in_check_user_name) + .set(provider_in_check_org_id).equalTo(row::getProvider_in_check_org_id) + .set(provider_in_check_org_name).equalTo(row::getProvider_in_check_org_name) + .set(provider_next_check_role_sign_id).equalTo(row::getProvider_next_check_role_sign_id) + .set(provider_next_check_role_sign_name).equalTo(row::getProvider_next_check_role_sign_name) + .set(provider_end_check_user_id).equalTo(row::getProvider_end_check_user_id) + .set(provider_end_check_user_name).equalTo(row::getProvider_end_check_user_name) + .set(provider_end_check_org_id).equalTo(row::getProvider_end_check_org_id) + .set(provider_end_check_org_name).equalTo(row::getProvider_end_check_org_name) + .set(provider_check_is_finish).equalTo(row::getProvider_check_is_finish) + .set(secret_key).equalTo(row::getSecret_key) + .set(status).equalTo(row::getStatus) + .set(project_id).equalTo(row::getProject_id) + .set(project_name).equalTo(row::getProject_name) + .set(sign).equalTo(row::getSign); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2791482+08:00", comments="Source Table: public.files_apply") + static UpdateDSL updateSelectiveColumns(FilesApply row, UpdateDSL dsl) { + return dsl.set(id).equalToWhenPresent(row::getId) + .set(apply_user_id).equalToWhenPresent(row::getApply_user_id) + .set(apply_user_name).equalToWhenPresent(row::getApply_user_name) + .set(apply_user_phone).equalToWhenPresent(row::getApply_user_phone) + .set(apply_user_email).equalToWhenPresent(row::getApply_user_email) + .set(apply_org_id).equalToWhenPresent(row::getApply_org_id) + .set(apply_org_name).equalToWhenPresent(row::getApply_org_name) + .set(apply_in_check_user_id).equalToWhenPresent(row::getApply_in_check_user_id) + .set(apply_in_check_user_name).equalToWhenPresent(row::getApply_in_check_user_name) + .set(apply_in_check_org_id).equalToWhenPresent(row::getApply_in_check_org_id) + .set(apply_in_check_org_name).equalToWhenPresent(row::getApply_in_check_org_name) + .set(apply_next_check_org_id).equalToWhenPresent(row::getApply_next_check_org_id) + .set(apply_next_check_org_name).equalToWhenPresent(row::getApply_next_check_org_name) + .set(apply_end_check_user_id).equalToWhenPresent(row::getApply_end_check_user_id) + .set(apply_end_check_user_name).equalToWhenPresent(row::getApply_end_check_user_name) + .set(apply_end_check_org_id).equalToWhenPresent(row::getApply_end_check_org_id) + .set(apply_end_check_org_name).equalToWhenPresent(row::getApply_end_check_org_name) + .set(apply_days).equalToWhenPresent(row::getApply_days) + .set(apply_feedback).equalToWhenPresent(row::getApply_feedback) + .set(apply_reason).equalToWhenPresent(row::getApply_reason) + .set(apply_cancel_reason).equalToWhenPresent(row::getApply_cancel_reason) + .set(apply_view_type_print).equalToWhenPresent(row::getApply_view_type_print) + .set(apply_view_type_online).equalToWhenPresent(row::getApply_view_type_online) + .set(apply_file_num).equalToWhenPresent(row::getApply_file_num) + .set(apply_time).equalToWhenPresent(row::getApply_time) + .set(apply_check_is_finish).equalToWhenPresent(row::getApply_check_is_finish) + .set(provider_org_id).equalToWhenPresent(row::getProvider_org_id) + .set(provider_org_name).equalToWhenPresent(row::getProvider_org_name) + .set(provider_file_properties).equalToWhenPresent(row::getProvider_file_properties) + .set(provider_use_start_time).equalToWhenPresent(row::getProvider_use_start_time) + .set(provider_use_end_time).equalToWhenPresent(row::getProvider_use_end_time) + .set(provider_in_check_user_id).equalToWhenPresent(row::getProvider_in_check_user_id) + .set(provider_in_check_user_name).equalToWhenPresent(row::getProvider_in_check_user_name) + .set(provider_in_check_org_id).equalToWhenPresent(row::getProvider_in_check_org_id) + .set(provider_in_check_org_name).equalToWhenPresent(row::getProvider_in_check_org_name) + .set(provider_next_check_role_sign_id).equalToWhenPresent(row::getProvider_next_check_role_sign_id) + .set(provider_next_check_role_sign_name).equalToWhenPresent(row::getProvider_next_check_role_sign_name) + .set(provider_end_check_user_id).equalToWhenPresent(row::getProvider_end_check_user_id) + .set(provider_end_check_user_name).equalToWhenPresent(row::getProvider_end_check_user_name) + .set(provider_end_check_org_id).equalToWhenPresent(row::getProvider_end_check_org_id) + .set(provider_end_check_org_name).equalToWhenPresent(row::getProvider_end_check_org_name) + .set(provider_check_is_finish).equalToWhenPresent(row::getProvider_check_is_finish) + .set(secret_key).equalToWhenPresent(row::getSecret_key) + .set(status).equalToWhenPresent(row::getStatus) + .set(project_id).equalToWhenPresent(row::getProject_id) + .set(project_name).equalToWhenPresent(row::getProject_name) + .set(sign).equalToWhenPresent(row::getSign); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2791482+08:00", comments="Source Table: public.files_apply") + default int updateByPrimaryKey(FilesApply row) { + return update(c -> + c.set(apply_user_id).equalTo(row::getApply_user_id) + .set(apply_user_name).equalTo(row::getApply_user_name) + .set(apply_user_phone).equalTo(row::getApply_user_phone) + .set(apply_user_email).equalTo(row::getApply_user_email) + .set(apply_org_id).equalTo(row::getApply_org_id) + .set(apply_org_name).equalTo(row::getApply_org_name) + .set(apply_in_check_user_id).equalTo(row::getApply_in_check_user_id) + .set(apply_in_check_user_name).equalTo(row::getApply_in_check_user_name) + .set(apply_in_check_org_id).equalTo(row::getApply_in_check_org_id) + .set(apply_in_check_org_name).equalTo(row::getApply_in_check_org_name) + .set(apply_next_check_org_id).equalTo(row::getApply_next_check_org_id) + .set(apply_next_check_org_name).equalTo(row::getApply_next_check_org_name) + .set(apply_end_check_user_id).equalTo(row::getApply_end_check_user_id) + .set(apply_end_check_user_name).equalTo(row::getApply_end_check_user_name) + .set(apply_end_check_org_id).equalTo(row::getApply_end_check_org_id) + .set(apply_end_check_org_name).equalTo(row::getApply_end_check_org_name) + .set(apply_days).equalTo(row::getApply_days) + .set(apply_feedback).equalTo(row::getApply_feedback) + .set(apply_reason).equalTo(row::getApply_reason) + .set(apply_cancel_reason).equalTo(row::getApply_cancel_reason) + .set(apply_view_type_print).equalTo(row::getApply_view_type_print) + .set(apply_view_type_online).equalTo(row::getApply_view_type_online) + .set(apply_file_num).equalTo(row::getApply_file_num) + .set(apply_time).equalTo(row::getApply_time) + .set(apply_check_is_finish).equalTo(row::getApply_check_is_finish) + .set(provider_org_id).equalTo(row::getProvider_org_id) + .set(provider_org_name).equalTo(row::getProvider_org_name) + .set(provider_file_properties).equalTo(row::getProvider_file_properties) + .set(provider_use_start_time).equalTo(row::getProvider_use_start_time) + .set(provider_use_end_time).equalTo(row::getProvider_use_end_time) + .set(provider_in_check_user_id).equalTo(row::getProvider_in_check_user_id) + .set(provider_in_check_user_name).equalTo(row::getProvider_in_check_user_name) + .set(provider_in_check_org_id).equalTo(row::getProvider_in_check_org_id) + .set(provider_in_check_org_name).equalTo(row::getProvider_in_check_org_name) + .set(provider_next_check_role_sign_id).equalTo(row::getProvider_next_check_role_sign_id) + .set(provider_next_check_role_sign_name).equalTo(row::getProvider_next_check_role_sign_name) + .set(provider_end_check_user_id).equalTo(row::getProvider_end_check_user_id) + .set(provider_end_check_user_name).equalTo(row::getProvider_end_check_user_name) + .set(provider_end_check_org_id).equalTo(row::getProvider_end_check_org_id) + .set(provider_end_check_org_name).equalTo(row::getProvider_end_check_org_name) + .set(provider_check_is_finish).equalTo(row::getProvider_check_is_finish) + .set(secret_key).equalTo(row::getSecret_key) + .set(status).equalTo(row::getStatus) + .set(project_id).equalTo(row::getProject_id) + .set(project_name).equalTo(row::getProject_name) + .set(sign).equalTo(row::getSign) + .where(id, isEqualTo(row::getId)) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2791482+08:00", comments="Source Table: public.files_apply") + default int updateByPrimaryKeySelective(FilesApply row) { + return update(c -> + c.set(apply_user_id).equalToWhenPresent(row::getApply_user_id) + .set(apply_user_name).equalToWhenPresent(row::getApply_user_name) + .set(apply_user_phone).equalToWhenPresent(row::getApply_user_phone) + .set(apply_user_email).equalToWhenPresent(row::getApply_user_email) + .set(apply_org_id).equalToWhenPresent(row::getApply_org_id) + .set(apply_org_name).equalToWhenPresent(row::getApply_org_name) + .set(apply_in_check_user_id).equalToWhenPresent(row::getApply_in_check_user_id) + .set(apply_in_check_user_name).equalToWhenPresent(row::getApply_in_check_user_name) + .set(apply_in_check_org_id).equalToWhenPresent(row::getApply_in_check_org_id) + .set(apply_in_check_org_name).equalToWhenPresent(row::getApply_in_check_org_name) + .set(apply_next_check_org_id).equalToWhenPresent(row::getApply_next_check_org_id) + .set(apply_next_check_org_name).equalToWhenPresent(row::getApply_next_check_org_name) + .set(apply_end_check_user_id).equalToWhenPresent(row::getApply_end_check_user_id) + .set(apply_end_check_user_name).equalToWhenPresent(row::getApply_end_check_user_name) + .set(apply_end_check_org_id).equalToWhenPresent(row::getApply_end_check_org_id) + .set(apply_end_check_org_name).equalToWhenPresent(row::getApply_end_check_org_name) + .set(apply_days).equalToWhenPresent(row::getApply_days) + .set(apply_feedback).equalToWhenPresent(row::getApply_feedback) + .set(apply_reason).equalToWhenPresent(row::getApply_reason) + .set(apply_cancel_reason).equalToWhenPresent(row::getApply_cancel_reason) + .set(apply_view_type_print).equalToWhenPresent(row::getApply_view_type_print) + .set(apply_view_type_online).equalToWhenPresent(row::getApply_view_type_online) + .set(apply_file_num).equalToWhenPresent(row::getApply_file_num) + .set(apply_time).equalToWhenPresent(row::getApply_time) + .set(apply_check_is_finish).equalToWhenPresent(row::getApply_check_is_finish) + .set(provider_org_id).equalToWhenPresent(row::getProvider_org_id) + .set(provider_org_name).equalToWhenPresent(row::getProvider_org_name) + .set(provider_file_properties).equalToWhenPresent(row::getProvider_file_properties) + .set(provider_use_start_time).equalToWhenPresent(row::getProvider_use_start_time) + .set(provider_use_end_time).equalToWhenPresent(row::getProvider_use_end_time) + .set(provider_in_check_user_id).equalToWhenPresent(row::getProvider_in_check_user_id) + .set(provider_in_check_user_name).equalToWhenPresent(row::getProvider_in_check_user_name) + .set(provider_in_check_org_id).equalToWhenPresent(row::getProvider_in_check_org_id) + .set(provider_in_check_org_name).equalToWhenPresent(row::getProvider_in_check_org_name) + .set(provider_next_check_role_sign_id).equalToWhenPresent(row::getProvider_next_check_role_sign_id) + .set(provider_next_check_role_sign_name).equalToWhenPresent(row::getProvider_next_check_role_sign_name) + .set(provider_end_check_user_id).equalToWhenPresent(row::getProvider_end_check_user_id) + .set(provider_end_check_user_name).equalToWhenPresent(row::getProvider_end_check_user_name) + .set(provider_end_check_org_id).equalToWhenPresent(row::getProvider_end_check_org_id) + .set(provider_end_check_org_name).equalToWhenPresent(row::getProvider_end_check_org_name) + .set(provider_check_is_finish).equalToWhenPresent(row::getProvider_check_is_finish) + .set(secret_key).equalToWhenPresent(row::getSecret_key) + .set(status).equalToWhenPresent(row::getStatus) + .set(project_id).equalToWhenPresent(row::getProject_id) + .set(project_name).equalToWhenPresent(row::getProject_name) + .set(sign).equalToWhenPresent(row::getSign) + .where(id, isEqualTo(row::getId)) + ); + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/dao/PreShareDirectoryFileTagMapper.java b/src/main/java/jj/tech/paolu/repository/mybatis/dao/PreShareDirectoryFileTagMapper.java new file mode 100644 index 0000000..715c5bd --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/dao/PreShareDirectoryFileTagMapper.java @@ -0,0 +1,161 @@ +package jj.tech.paolu.repository.mybatis.dao; + +import static jj.tech.paolu.repository.mybatis.dao.support.PreShareDirectoryFileTagDynamicSqlSupport.*; +import static org.mybatis.dynamic.sql.SqlBuilder.isEqualTo; + +import jakarta.annotation.Generated; +import java.util.Collection; +import java.util.List; +import java.util.Optional; +import jj.tech.paolu.repository.mybatis.entity.PreShareDirectoryFileTag; +import org.apache.ibatis.annotations.Mapper; +import org.apache.ibatis.annotations.Result; +import org.apache.ibatis.annotations.ResultMap; +import org.apache.ibatis.annotations.Results; +import org.apache.ibatis.annotations.SelectProvider; +import org.apache.ibatis.type.JdbcType; +import org.mybatis.dynamic.sql.BasicColumn; +import org.mybatis.dynamic.sql.delete.DeleteDSLCompleter; +import org.mybatis.dynamic.sql.select.CountDSLCompleter; +import org.mybatis.dynamic.sql.select.SelectDSLCompleter; +import org.mybatis.dynamic.sql.select.render.SelectStatementProvider; +import org.mybatis.dynamic.sql.update.UpdateDSL; +import org.mybatis.dynamic.sql.update.UpdateDSLCompleter; +import org.mybatis.dynamic.sql.update.UpdateModel; +import org.mybatis.dynamic.sql.util.SqlProviderAdapter; +import org.mybatis.dynamic.sql.util.mybatis3.CommonCountMapper; +import org.mybatis.dynamic.sql.util.mybatis3.CommonDeleteMapper; +import org.mybatis.dynamic.sql.util.mybatis3.CommonInsertMapper; +import org.mybatis.dynamic.sql.util.mybatis3.CommonUpdateMapper; +import org.mybatis.dynamic.sql.util.mybatis3.MyBatis3Utils; + +@Mapper +public interface PreShareDirectoryFileTagMapper extends CommonCountMapper, CommonDeleteMapper, CommonInsertMapper, CommonUpdateMapper { + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-08T11:33:24.1689861+08:00", comments="Source Table: public.pre_share_directory_file_tag") + BasicColumn[] selectList = BasicColumn.columnList(id, share_status, update_time, sync_bc_time); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-08T11:33:24.1689861+08:00", comments="Source Table: public.pre_share_directory_file_tag") + @SelectProvider(type=SqlProviderAdapter.class, method="select") + @Results(id="PreShareDirectoryFileTagResult", value = { + @Result(column="id", property="id", jdbcType=JdbcType.VARCHAR, id=true), + @Result(column="share_status", property="share_status", jdbcType=JdbcType.INTEGER), + @Result(column="update_time", property="update_time", jdbcType=JdbcType.TIMESTAMP), + @Result(column="sync_bc_time", property="sync_bc_time", jdbcType=JdbcType.TIMESTAMP) + }) + List selectMany(SelectStatementProvider selectStatement); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-08T11:33:24.1689861+08:00", comments="Source Table: public.pre_share_directory_file_tag") + @SelectProvider(type=SqlProviderAdapter.class, method="select") + @ResultMap("PreShareDirectoryFileTagResult") + Optional selectOne(SelectStatementProvider selectStatement); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-08T11:33:24.1689861+08:00", comments="Source Table: public.pre_share_directory_file_tag") + default long count(CountDSLCompleter completer) { + return MyBatis3Utils.countFrom(this::count, preShareDirectoryFileTag, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-08T11:33:24.1689861+08:00", comments="Source Table: public.pre_share_directory_file_tag") + default int delete(DeleteDSLCompleter completer) { + return MyBatis3Utils.deleteFrom(this::delete, preShareDirectoryFileTag, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-08T11:33:24.1689861+08:00", comments="Source Table: public.pre_share_directory_file_tag") + default int deleteByPrimaryKey(String id_) { + return delete(c -> + c.where(id, isEqualTo(id_)) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-08T11:33:24.1689861+08:00", comments="Source Table: public.pre_share_directory_file_tag") + default int insert(PreShareDirectoryFileTag row) { + return MyBatis3Utils.insert(this::insert, row, preShareDirectoryFileTag, c -> + c.map(id).toProperty("id") + .map(share_status).toProperty("share_status") + .map(update_time).toProperty("update_time") + .map(sync_bc_time).toProperty("sync_bc_time") + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-08T11:33:24.1689861+08:00", comments="Source Table: public.pre_share_directory_file_tag") + default int insertMultiple(Collection records) { + return MyBatis3Utils.insertMultiple(this::insertMultiple, records, preShareDirectoryFileTag, c -> + c.map(id).toProperty("id") + .map(share_status).toProperty("share_status") + .map(update_time).toProperty("update_time") + .map(sync_bc_time).toProperty("sync_bc_time") + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-08T11:33:24.1689861+08:00", comments="Source Table: public.pre_share_directory_file_tag") + default int insertSelective(PreShareDirectoryFileTag row) { + return MyBatis3Utils.insert(this::insert, row, preShareDirectoryFileTag, c -> + c.map(id).toPropertyWhenPresent("id", row::getId) + .map(share_status).toPropertyWhenPresent("share_status", row::getShare_status) + .map(update_time).toPropertyWhenPresent("update_time", row::getUpdate_time) + .map(sync_bc_time).toPropertyWhenPresent("sync_bc_time", row::getSync_bc_time) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-08T11:33:24.1689861+08:00", comments="Source Table: public.pre_share_directory_file_tag") + default Optional selectOne(SelectDSLCompleter completer) { + return MyBatis3Utils.selectOne(this::selectOne, selectList, preShareDirectoryFileTag, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-08T11:33:24.1689861+08:00", comments="Source Table: public.pre_share_directory_file_tag") + default List select(SelectDSLCompleter completer) { + return MyBatis3Utils.selectList(this::selectMany, selectList, preShareDirectoryFileTag, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-08T11:33:24.1689861+08:00", comments="Source Table: public.pre_share_directory_file_tag") + default List selectDistinct(SelectDSLCompleter completer) { + return MyBatis3Utils.selectDistinct(this::selectMany, selectList, preShareDirectoryFileTag, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-08T11:33:24.1689861+08:00", comments="Source Table: public.pre_share_directory_file_tag") + default Optional selectByPrimaryKey(String id_) { + return selectOne(c -> + c.where(id, isEqualTo(id_)) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-08T11:33:24.1689861+08:00", comments="Source Table: public.pre_share_directory_file_tag") + default int update(UpdateDSLCompleter completer) { + return MyBatis3Utils.update(this::update, preShareDirectoryFileTag, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-08T11:33:24.1689861+08:00", comments="Source Table: public.pre_share_directory_file_tag") + static UpdateDSL updateAllColumns(PreShareDirectoryFileTag row, UpdateDSL dsl) { + return dsl.set(id).equalTo(row::getId) + .set(share_status).equalTo(row::getShare_status) + .set(update_time).equalTo(row::getUpdate_time) + .set(sync_bc_time).equalTo(row::getSync_bc_time); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-08T11:33:24.1689861+08:00", comments="Source Table: public.pre_share_directory_file_tag") + static UpdateDSL updateSelectiveColumns(PreShareDirectoryFileTag row, UpdateDSL dsl) { + return dsl.set(id).equalToWhenPresent(row::getId) + .set(share_status).equalToWhenPresent(row::getShare_status) + .set(update_time).equalToWhenPresent(row::getUpdate_time) + .set(sync_bc_time).equalToWhenPresent(row::getSync_bc_time); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-08T11:33:24.1689861+08:00", comments="Source Table: public.pre_share_directory_file_tag") + default int updateByPrimaryKey(PreShareDirectoryFileTag row) { + return update(c -> + c.set(share_status).equalTo(row::getShare_status) + .set(update_time).equalTo(row::getUpdate_time) + .set(sync_bc_time).equalTo(row::getSync_bc_time) + .where(id, isEqualTo(row::getId)) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-08T11:33:24.1689861+08:00", comments="Source Table: public.pre_share_directory_file_tag") + default int updateByPrimaryKeySelective(PreShareDirectoryFileTag row) { + return update(c -> + c.set(share_status).equalToWhenPresent(row::getShare_status) + .set(update_time).equalToWhenPresent(row::getUpdate_time) + .set(sync_bc_time).equalToWhenPresent(row::getSync_bc_time) + .where(id, isEqualTo(row::getId)) + ); + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/dao/PreShareDirectoryTagMapper.java b/src/main/java/jj/tech/paolu/repository/mybatis/dao/PreShareDirectoryTagMapper.java new file mode 100644 index 0000000..97550f4 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/dao/PreShareDirectoryTagMapper.java @@ -0,0 +1,161 @@ +package jj.tech.paolu.repository.mybatis.dao; + +import static jj.tech.paolu.repository.mybatis.dao.support.PreShareDirectoryTagDynamicSqlSupport.*; +import static org.mybatis.dynamic.sql.SqlBuilder.isEqualTo; + +import jakarta.annotation.Generated; +import java.util.Collection; +import java.util.List; +import java.util.Optional; +import jj.tech.paolu.repository.mybatis.entity.PreShareDirectoryTag; +import org.apache.ibatis.annotations.Mapper; +import org.apache.ibatis.annotations.Result; +import org.apache.ibatis.annotations.ResultMap; +import org.apache.ibatis.annotations.Results; +import org.apache.ibatis.annotations.SelectProvider; +import org.apache.ibatis.type.JdbcType; +import org.mybatis.dynamic.sql.BasicColumn; +import org.mybatis.dynamic.sql.delete.DeleteDSLCompleter; +import org.mybatis.dynamic.sql.select.CountDSLCompleter; +import org.mybatis.dynamic.sql.select.SelectDSLCompleter; +import org.mybatis.dynamic.sql.select.render.SelectStatementProvider; +import org.mybatis.dynamic.sql.update.UpdateDSL; +import org.mybatis.dynamic.sql.update.UpdateDSLCompleter; +import org.mybatis.dynamic.sql.update.UpdateModel; +import org.mybatis.dynamic.sql.util.SqlProviderAdapter; +import org.mybatis.dynamic.sql.util.mybatis3.CommonCountMapper; +import org.mybatis.dynamic.sql.util.mybatis3.CommonDeleteMapper; +import org.mybatis.dynamic.sql.util.mybatis3.CommonInsertMapper; +import org.mybatis.dynamic.sql.util.mybatis3.CommonUpdateMapper; +import org.mybatis.dynamic.sql.util.mybatis3.MyBatis3Utils; + +@Mapper +public interface PreShareDirectoryTagMapper extends CommonCountMapper, CommonDeleteMapper, CommonInsertMapper, CommonUpdateMapper { + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-08T11:33:24.153767+08:00", comments="Source Table: public.pre_share_directory_tag") + BasicColumn[] selectList = BasicColumn.columnList(id, share_status, update_time, sync_bc_time); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-08T11:33:24.1465601+08:00", comments="Source Table: public.pre_share_directory_tag") + @SelectProvider(type=SqlProviderAdapter.class, method="select") + @Results(id="PreShareDirectoryTagResult", value = { + @Result(column="id", property="id", jdbcType=JdbcType.VARCHAR, id=true), + @Result(column="share_status", property="share_status", jdbcType=JdbcType.INTEGER), + @Result(column="update_time", property="update_time", jdbcType=JdbcType.TIMESTAMP), + @Result(column="sync_bc_time", property="sync_bc_time", jdbcType=JdbcType.TIMESTAMP) + }) + List selectMany(SelectStatementProvider selectStatement); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-08T11:33:24.1477259+08:00", comments="Source Table: public.pre_share_directory_tag") + @SelectProvider(type=SqlProviderAdapter.class, method="select") + @ResultMap("PreShareDirectoryTagResult") + Optional selectOne(SelectStatementProvider selectStatement); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-08T11:33:24.1487813+08:00", comments="Source Table: public.pre_share_directory_tag") + default long count(CountDSLCompleter completer) { + return MyBatis3Utils.countFrom(this::count, preShareDirectoryTag, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-08T11:33:24.1487813+08:00", comments="Source Table: public.pre_share_directory_tag") + default int delete(DeleteDSLCompleter completer) { + return MyBatis3Utils.deleteFrom(this::delete, preShareDirectoryTag, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-08T11:33:24.1499871+08:00", comments="Source Table: public.pre_share_directory_tag") + default int deleteByPrimaryKey(String id_) { + return delete(c -> + c.where(id, isEqualTo(id_)) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-08T11:33:24.1499871+08:00", comments="Source Table: public.pre_share_directory_tag") + default int insert(PreShareDirectoryTag row) { + return MyBatis3Utils.insert(this::insert, row, preShareDirectoryTag, c -> + c.map(id).toProperty("id") + .map(share_status).toProperty("share_status") + .map(update_time).toProperty("update_time") + .map(sync_bc_time).toProperty("sync_bc_time") + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-08T11:33:24.152442+08:00", comments="Source Table: public.pre_share_directory_tag") + default int insertMultiple(Collection records) { + return MyBatis3Utils.insertMultiple(this::insertMultiple, records, preShareDirectoryTag, c -> + c.map(id).toProperty("id") + .map(share_status).toProperty("share_status") + .map(update_time).toProperty("update_time") + .map(sync_bc_time).toProperty("sync_bc_time") + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-08T11:33:24.152442+08:00", comments="Source Table: public.pre_share_directory_tag") + default int insertSelective(PreShareDirectoryTag row) { + return MyBatis3Utils.insert(this::insert, row, preShareDirectoryTag, c -> + c.map(id).toPropertyWhenPresent("id", row::getId) + .map(share_status).toPropertyWhenPresent("share_status", row::getShare_status) + .map(update_time).toPropertyWhenPresent("update_time", row::getUpdate_time) + .map(sync_bc_time).toPropertyWhenPresent("sync_bc_time", row::getSync_bc_time) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-08T11:33:24.155085+08:00", comments="Source Table: public.pre_share_directory_tag") + default Optional selectOne(SelectDSLCompleter completer) { + return MyBatis3Utils.selectOne(this::selectOne, selectList, preShareDirectoryTag, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-08T11:33:24.155085+08:00", comments="Source Table: public.pre_share_directory_tag") + default List select(SelectDSLCompleter completer) { + return MyBatis3Utils.selectList(this::selectMany, selectList, preShareDirectoryTag, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-08T11:33:24.1563411+08:00", comments="Source Table: public.pre_share_directory_tag") + default List selectDistinct(SelectDSLCompleter completer) { + return MyBatis3Utils.selectDistinct(this::selectMany, selectList, preShareDirectoryTag, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-08T11:33:24.1563411+08:00", comments="Source Table: public.pre_share_directory_tag") + default Optional selectByPrimaryKey(String id_) { + return selectOne(c -> + c.where(id, isEqualTo(id_)) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-08T11:33:24.1563411+08:00", comments="Source Table: public.pre_share_directory_tag") + default int update(UpdateDSLCompleter completer) { + return MyBatis3Utils.update(this::update, preShareDirectoryTag, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-08T11:33:24.1573721+08:00", comments="Source Table: public.pre_share_directory_tag") + static UpdateDSL updateAllColumns(PreShareDirectoryTag row, UpdateDSL dsl) { + return dsl.set(id).equalTo(row::getId) + .set(share_status).equalTo(row::getShare_status) + .set(update_time).equalTo(row::getUpdate_time) + .set(sync_bc_time).equalTo(row::getSync_bc_time); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-08T11:33:24.1573721+08:00", comments="Source Table: public.pre_share_directory_tag") + static UpdateDSL updateSelectiveColumns(PreShareDirectoryTag row, UpdateDSL dsl) { + return dsl.set(id).equalToWhenPresent(row::getId) + .set(share_status).equalToWhenPresent(row::getShare_status) + .set(update_time).equalToWhenPresent(row::getUpdate_time) + .set(sync_bc_time).equalToWhenPresent(row::getSync_bc_time); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-08T11:33:24.1588641+08:00", comments="Source Table: public.pre_share_directory_tag") + default int updateByPrimaryKey(PreShareDirectoryTag row) { + return update(c -> + c.set(share_status).equalTo(row::getShare_status) + .set(update_time).equalTo(row::getUpdate_time) + .set(sync_bc_time).equalTo(row::getSync_bc_time) + .where(id, isEqualTo(row::getId)) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-08T11:33:24.163117+08:00", comments="Source Table: public.pre_share_directory_tag") + default int updateByPrimaryKeySelective(PreShareDirectoryTag row) { + return update(c -> + c.set(share_status).equalToWhenPresent(row::getShare_status) + .set(update_time).equalToWhenPresent(row::getUpdate_time) + .set(sync_bc_time).equalToWhenPresent(row::getSync_bc_time) + .where(id, isEqualTo(row::getId)) + ); + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/dao/PreShareFileTagMapper.java b/src/main/java/jj/tech/paolu/repository/mybatis/dao/PreShareFileTagMapper.java new file mode 100644 index 0000000..eaffa56 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/dao/PreShareFileTagMapper.java @@ -0,0 +1,161 @@ +package jj.tech.paolu.repository.mybatis.dao; + +import static jj.tech.paolu.repository.mybatis.dao.support.PreShareFileTagDynamicSqlSupport.*; +import static org.mybatis.dynamic.sql.SqlBuilder.isEqualTo; + +import jakarta.annotation.Generated; +import java.util.Collection; +import java.util.List; +import java.util.Optional; +import jj.tech.paolu.repository.mybatis.entity.PreShareFileTag; +import org.apache.ibatis.annotations.Mapper; +import org.apache.ibatis.annotations.Result; +import org.apache.ibatis.annotations.ResultMap; +import org.apache.ibatis.annotations.Results; +import org.apache.ibatis.annotations.SelectProvider; +import org.apache.ibatis.type.JdbcType; +import org.mybatis.dynamic.sql.BasicColumn; +import org.mybatis.dynamic.sql.delete.DeleteDSLCompleter; +import org.mybatis.dynamic.sql.select.CountDSLCompleter; +import org.mybatis.dynamic.sql.select.SelectDSLCompleter; +import org.mybatis.dynamic.sql.select.render.SelectStatementProvider; +import org.mybatis.dynamic.sql.update.UpdateDSL; +import org.mybatis.dynamic.sql.update.UpdateDSLCompleter; +import org.mybatis.dynamic.sql.update.UpdateModel; +import org.mybatis.dynamic.sql.util.SqlProviderAdapter; +import org.mybatis.dynamic.sql.util.mybatis3.CommonCountMapper; +import org.mybatis.dynamic.sql.util.mybatis3.CommonDeleteMapper; +import org.mybatis.dynamic.sql.util.mybatis3.CommonInsertMapper; +import org.mybatis.dynamic.sql.util.mybatis3.CommonUpdateMapper; +import org.mybatis.dynamic.sql.util.mybatis3.MyBatis3Utils; + +@Mapper +public interface PreShareFileTagMapper extends CommonCountMapper, CommonDeleteMapper, CommonInsertMapper, CommonUpdateMapper { + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-08T11:33:24.171509+08:00", comments="Source Table: public.pre_share_file_tag") + BasicColumn[] selectList = BasicColumn.columnList(id, share_status, update_time, sync_bc_time); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-08T11:33:24.1702515+08:00", comments="Source Table: public.pre_share_file_tag") + @SelectProvider(type=SqlProviderAdapter.class, method="select") + @Results(id="PreShareFileTagResult", value = { + @Result(column="id", property="id", jdbcType=JdbcType.VARCHAR, id=true), + @Result(column="share_status", property="share_status", jdbcType=JdbcType.INTEGER), + @Result(column="update_time", property="update_time", jdbcType=JdbcType.TIMESTAMP), + @Result(column="sync_bc_time", property="sync_bc_time", jdbcType=JdbcType.TIMESTAMP) + }) + List selectMany(SelectStatementProvider selectStatement); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-08T11:33:24.1702515+08:00", comments="Source Table: public.pre_share_file_tag") + @SelectProvider(type=SqlProviderAdapter.class, method="select") + @ResultMap("PreShareFileTagResult") + Optional selectOne(SelectStatementProvider selectStatement); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-08T11:33:24.1702515+08:00", comments="Source Table: public.pre_share_file_tag") + default long count(CountDSLCompleter completer) { + return MyBatis3Utils.countFrom(this::count, preShareFileTag, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-08T11:33:24.171509+08:00", comments="Source Table: public.pre_share_file_tag") + default int delete(DeleteDSLCompleter completer) { + return MyBatis3Utils.deleteFrom(this::delete, preShareFileTag, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-08T11:33:24.171509+08:00", comments="Source Table: public.pre_share_file_tag") + default int deleteByPrimaryKey(String id_) { + return delete(c -> + c.where(id, isEqualTo(id_)) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-08T11:33:24.171509+08:00", comments="Source Table: public.pre_share_file_tag") + default int insert(PreShareFileTag row) { + return MyBatis3Utils.insert(this::insert, row, preShareFileTag, c -> + c.map(id).toProperty("id") + .map(share_status).toProperty("share_status") + .map(update_time).toProperty("update_time") + .map(sync_bc_time).toProperty("sync_bc_time") + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-08T11:33:24.171509+08:00", comments="Source Table: public.pre_share_file_tag") + default int insertMultiple(Collection records) { + return MyBatis3Utils.insertMultiple(this::insertMultiple, records, preShareFileTag, c -> + c.map(id).toProperty("id") + .map(share_status).toProperty("share_status") + .map(update_time).toProperty("update_time") + .map(sync_bc_time).toProperty("sync_bc_time") + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-08T11:33:24.171509+08:00", comments="Source Table: public.pre_share_file_tag") + default int insertSelective(PreShareFileTag row) { + return MyBatis3Utils.insert(this::insert, row, preShareFileTag, c -> + c.map(id).toPropertyWhenPresent("id", row::getId) + .map(share_status).toPropertyWhenPresent("share_status", row::getShare_status) + .map(update_time).toPropertyWhenPresent("update_time", row::getUpdate_time) + .map(sync_bc_time).toPropertyWhenPresent("sync_bc_time", row::getSync_bc_time) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-08T11:33:24.171509+08:00", comments="Source Table: public.pre_share_file_tag") + default Optional selectOne(SelectDSLCompleter completer) { + return MyBatis3Utils.selectOne(this::selectOne, selectList, preShareFileTag, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-08T11:33:24.171509+08:00", comments="Source Table: public.pre_share_file_tag") + default List select(SelectDSLCompleter completer) { + return MyBatis3Utils.selectList(this::selectMany, selectList, preShareFileTag, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-08T11:33:24.171509+08:00", comments="Source Table: public.pre_share_file_tag") + default List selectDistinct(SelectDSLCompleter completer) { + return MyBatis3Utils.selectDistinct(this::selectMany, selectList, preShareFileTag, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-08T11:33:24.171509+08:00", comments="Source Table: public.pre_share_file_tag") + default Optional selectByPrimaryKey(String id_) { + return selectOne(c -> + c.where(id, isEqualTo(id_)) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-08T11:33:24.171509+08:00", comments="Source Table: public.pre_share_file_tag") + default int update(UpdateDSLCompleter completer) { + return MyBatis3Utils.update(this::update, preShareFileTag, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-08T11:33:24.171509+08:00", comments="Source Table: public.pre_share_file_tag") + static UpdateDSL updateAllColumns(PreShareFileTag row, UpdateDSL dsl) { + return dsl.set(id).equalTo(row::getId) + .set(share_status).equalTo(row::getShare_status) + .set(update_time).equalTo(row::getUpdate_time) + .set(sync_bc_time).equalTo(row::getSync_bc_time); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-08T11:33:24.171509+08:00", comments="Source Table: public.pre_share_file_tag") + static UpdateDSL updateSelectiveColumns(PreShareFileTag row, UpdateDSL dsl) { + return dsl.set(id).equalToWhenPresent(row::getId) + .set(share_status).equalToWhenPresent(row::getShare_status) + .set(update_time).equalToWhenPresent(row::getUpdate_time) + .set(sync_bc_time).equalToWhenPresent(row::getSync_bc_time); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-08T11:33:24.171509+08:00", comments="Source Table: public.pre_share_file_tag") + default int updateByPrimaryKey(PreShareFileTag row) { + return update(c -> + c.set(share_status).equalTo(row::getShare_status) + .set(update_time).equalTo(row::getUpdate_time) + .set(sync_bc_time).equalTo(row::getSync_bc_time) + .where(id, isEqualTo(row::getId)) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-08T11:33:24.171509+08:00", comments="Source Table: public.pre_share_file_tag") + default int updateByPrimaryKeySelective(PreShareFileTag row) { + return update(c -> + c.set(share_status).equalToWhenPresent(row::getShare_status) + .set(update_time).equalToWhenPresent(row::getUpdate_time) + .set(sync_bc_time).equalToWhenPresent(row::getSync_bc_time) + .where(id, isEqualTo(row::getId)) + ); + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/dao/ProjectMapper.java b/src/main/java/jj/tech/paolu/repository/mybatis/dao/ProjectMapper.java new file mode 100644 index 0000000..403d332 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/dao/ProjectMapper.java @@ -0,0 +1,161 @@ +package jj.tech.paolu.repository.mybatis.dao; + +import static jj.tech.paolu.repository.mybatis.dao.support.ProjectDynamicSqlSupport.*; +import static org.mybatis.dynamic.sql.SqlBuilder.isEqualTo; + +import jakarta.annotation.Generated; +import java.util.Collection; +import java.util.List; +import java.util.Optional; +import jj.tech.paolu.repository.mybatis.entity.Project; +import org.apache.ibatis.annotations.Mapper; +import org.apache.ibatis.annotations.Result; +import org.apache.ibatis.annotations.ResultMap; +import org.apache.ibatis.annotations.Results; +import org.apache.ibatis.annotations.SelectProvider; +import org.apache.ibatis.type.JdbcType; +import org.mybatis.dynamic.sql.BasicColumn; +import org.mybatis.dynamic.sql.delete.DeleteDSLCompleter; +import org.mybatis.dynamic.sql.select.CountDSLCompleter; +import org.mybatis.dynamic.sql.select.SelectDSLCompleter; +import org.mybatis.dynamic.sql.select.render.SelectStatementProvider; +import org.mybatis.dynamic.sql.update.UpdateDSL; +import org.mybatis.dynamic.sql.update.UpdateDSLCompleter; +import org.mybatis.dynamic.sql.update.UpdateModel; +import org.mybatis.dynamic.sql.util.SqlProviderAdapter; +import org.mybatis.dynamic.sql.util.mybatis3.CommonCountMapper; +import org.mybatis.dynamic.sql.util.mybatis3.CommonDeleteMapper; +import org.mybatis.dynamic.sql.util.mybatis3.CommonInsertMapper; +import org.mybatis.dynamic.sql.util.mybatis3.CommonUpdateMapper; +import org.mybatis.dynamic.sql.util.mybatis3.MyBatis3Utils; + +@Mapper +public interface ProjectMapper extends CommonCountMapper, CommonDeleteMapper, CommonInsertMapper, CommonUpdateMapper { + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2811498+08:00", comments="Source Table: public.project") + BasicColumn[] selectList = BasicColumn.columnList(id, project_name, org_id, org_name); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2801782+08:00", comments="Source Table: public.project") + @SelectProvider(type=SqlProviderAdapter.class, method="select") + @Results(id="ProjectResult", value = { + @Result(column="id", property="id", jdbcType=JdbcType.VARCHAR, id=true), + @Result(column="project_name", property="project_name", jdbcType=JdbcType.VARCHAR), + @Result(column="org_id", property="org_id", jdbcType=JdbcType.VARCHAR), + @Result(column="org_name", property="org_name", jdbcType=JdbcType.VARCHAR) + }) + List selectMany(SelectStatementProvider selectStatement); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2801782+08:00", comments="Source Table: public.project") + @SelectProvider(type=SqlProviderAdapter.class, method="select") + @ResultMap("ProjectResult") + Optional selectOne(SelectStatementProvider selectStatement); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2801782+08:00", comments="Source Table: public.project") + default long count(CountDSLCompleter completer) { + return MyBatis3Utils.countFrom(this::count, project, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2801782+08:00", comments="Source Table: public.project") + default int delete(DeleteDSLCompleter completer) { + return MyBatis3Utils.deleteFrom(this::delete, project, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2801782+08:00", comments="Source Table: public.project") + default int deleteByPrimaryKey(String id_) { + return delete(c -> + c.where(id, isEqualTo(id_)) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2801782+08:00", comments="Source Table: public.project") + default int insert(Project row) { + return MyBatis3Utils.insert(this::insert, row, project, c -> + c.map(id).toProperty("id") + .map(project_name).toProperty("project_name") + .map(org_id).toProperty("org_id") + .map(org_name).toProperty("org_name") + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2801782+08:00", comments="Source Table: public.project") + default int insertMultiple(Collection records) { + return MyBatis3Utils.insertMultiple(this::insertMultiple, records, project, c -> + c.map(id).toProperty("id") + .map(project_name).toProperty("project_name") + .map(org_id).toProperty("org_id") + .map(org_name).toProperty("org_name") + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2811498+08:00", comments="Source Table: public.project") + default int insertSelective(Project row) { + return MyBatis3Utils.insert(this::insert, row, project, c -> + c.map(id).toPropertyWhenPresent("id", row::getId) + .map(project_name).toPropertyWhenPresent("project_name", row::getProject_name) + .map(org_id).toPropertyWhenPresent("org_id", row::getOrg_id) + .map(org_name).toPropertyWhenPresent("org_name", row::getOrg_name) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2811498+08:00", comments="Source Table: public.project") + default Optional selectOne(SelectDSLCompleter completer) { + return MyBatis3Utils.selectOne(this::selectOne, selectList, project, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2811498+08:00", comments="Source Table: public.project") + default List select(SelectDSLCompleter completer) { + return MyBatis3Utils.selectList(this::selectMany, selectList, project, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2811498+08:00", comments="Source Table: public.project") + default List selectDistinct(SelectDSLCompleter completer) { + return MyBatis3Utils.selectDistinct(this::selectMany, selectList, project, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2811498+08:00", comments="Source Table: public.project") + default Optional selectByPrimaryKey(String id_) { + return selectOne(c -> + c.where(id, isEqualTo(id_)) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2811498+08:00", comments="Source Table: public.project") + default int update(UpdateDSLCompleter completer) { + return MyBatis3Utils.update(this::update, project, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2811498+08:00", comments="Source Table: public.project") + static UpdateDSL updateAllColumns(Project row, UpdateDSL dsl) { + return dsl.set(id).equalTo(row::getId) + .set(project_name).equalTo(row::getProject_name) + .set(org_id).equalTo(row::getOrg_id) + .set(org_name).equalTo(row::getOrg_name); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2811498+08:00", comments="Source Table: public.project") + static UpdateDSL updateSelectiveColumns(Project row, UpdateDSL dsl) { + return dsl.set(id).equalToWhenPresent(row::getId) + .set(project_name).equalToWhenPresent(row::getProject_name) + .set(org_id).equalToWhenPresent(row::getOrg_id) + .set(org_name).equalToWhenPresent(row::getOrg_name); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2811498+08:00", comments="Source Table: public.project") + default int updateByPrimaryKey(Project row) { + return update(c -> + c.set(project_name).equalTo(row::getProject_name) + .set(org_id).equalTo(row::getOrg_id) + .set(org_name).equalTo(row::getOrg_name) + .where(id, isEqualTo(row::getId)) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2811498+08:00", comments="Source Table: public.project") + default int updateByPrimaryKeySelective(Project row) { + return update(c -> + c.set(project_name).equalToWhenPresent(row::getProject_name) + .set(org_id).equalToWhenPresent(row::getOrg_id) + .set(org_name).equalToWhenPresent(row::getOrg_name) + .where(id, isEqualTo(row::getId)) + ); + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/dao/ProviderMapper.java b/src/main/java/jj/tech/paolu/repository/mybatis/dao/ProviderMapper.java new file mode 100644 index 0000000..71cda46 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/dao/ProviderMapper.java @@ -0,0 +1,185 @@ +package jj.tech.paolu.repository.mybatis.dao; + +import static jj.tech.paolu.repository.mybatis.dao.support.ProviderDynamicSqlSupport.*; +import static org.mybatis.dynamic.sql.SqlBuilder.isEqualTo; + +import jakarta.annotation.Generated; +import java.util.Collection; +import java.util.List; +import java.util.Optional; +import jj.tech.paolu.repository.mybatis.entity.Provider; +import org.apache.ibatis.annotations.Mapper; +import org.apache.ibatis.annotations.Result; +import org.apache.ibatis.annotations.ResultMap; +import org.apache.ibatis.annotations.Results; +import org.apache.ibatis.annotations.SelectProvider; +import org.apache.ibatis.type.JdbcType; +import org.mybatis.dynamic.sql.BasicColumn; +import org.mybatis.dynamic.sql.delete.DeleteDSLCompleter; +import org.mybatis.dynamic.sql.select.CountDSLCompleter; +import org.mybatis.dynamic.sql.select.SelectDSLCompleter; +import org.mybatis.dynamic.sql.select.render.SelectStatementProvider; +import org.mybatis.dynamic.sql.update.UpdateDSL; +import org.mybatis.dynamic.sql.update.UpdateDSLCompleter; +import org.mybatis.dynamic.sql.update.UpdateModel; +import org.mybatis.dynamic.sql.util.SqlProviderAdapter; +import org.mybatis.dynamic.sql.util.mybatis3.CommonCountMapper; +import org.mybatis.dynamic.sql.util.mybatis3.CommonDeleteMapper; +import org.mybatis.dynamic.sql.util.mybatis3.CommonInsertMapper; +import org.mybatis.dynamic.sql.util.mybatis3.CommonUpdateMapper; +import org.mybatis.dynamic.sql.util.mybatis3.MyBatis3Utils; + +@Mapper +public interface ProviderMapper extends CommonCountMapper, CommonDeleteMapper, CommonInsertMapper, CommonUpdateMapper { + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T13:50:09.0936453+08:00", comments="Source Table: public.provider") + BasicColumn[] selectList = BasicColumn.columnList(id, name, create_time, update_time, last_update_data_time, last_query_data_time, status); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T13:50:09.085147+08:00", comments="Source Table: public.provider") + @SelectProvider(type=SqlProviderAdapter.class, method="select") + @Results(id="ProviderResult", value = { + @Result(column="id", property="id", jdbcType=JdbcType.VARCHAR, id=true), + @Result(column="name", property="name", jdbcType=JdbcType.VARCHAR), + @Result(column="create_time", property="create_time", jdbcType=JdbcType.TIMESTAMP), + @Result(column="update_time", property="update_time", jdbcType=JdbcType.TIMESTAMP), + @Result(column="last_update_data_time", property="last_update_data_time", jdbcType=JdbcType.TIMESTAMP), + @Result(column="last_query_data_time", property="last_query_data_time", jdbcType=JdbcType.TIMESTAMP), + @Result(column="status", property="status", jdbcType=JdbcType.VARCHAR) + }) + List selectMany(SelectStatementProvider selectStatement); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T13:50:09.0874112+08:00", comments="Source Table: public.provider") + @SelectProvider(type=SqlProviderAdapter.class, method="select") + @ResultMap("ProviderResult") + Optional selectOne(SelectStatementProvider selectStatement); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T13:50:09.0884109+08:00", comments="Source Table: public.provider") + default long count(CountDSLCompleter completer) { + return MyBatis3Utils.countFrom(this::count, provider, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T13:50:09.0894418+08:00", comments="Source Table: public.provider") + default int delete(DeleteDSLCompleter completer) { + return MyBatis3Utils.deleteFrom(this::delete, provider, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T13:50:09.0894418+08:00", comments="Source Table: public.provider") + default int deleteByPrimaryKey(String id_) { + return delete(c -> + c.where(id, isEqualTo(id_)) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T13:50:09.0905148+08:00", comments="Source Table: public.provider") + default int insert(Provider row) { + return MyBatis3Utils.insert(this::insert, row, provider, c -> + c.map(id).toProperty("id") + .map(name).toProperty("name") + .map(create_time).toProperty("create_time") + .map(update_time).toProperty("update_time") + .map(last_update_data_time).toProperty("last_update_data_time") + .map(last_query_data_time).toProperty("last_query_data_time") + .map(status).toProperty("status") + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T13:50:09.0925732+08:00", comments="Source Table: public.provider") + default int insertMultiple(Collection records) { + return MyBatis3Utils.insertMultiple(this::insertMultiple, records, provider, c -> + c.map(id).toProperty("id") + .map(name).toProperty("name") + .map(create_time).toProperty("create_time") + .map(update_time).toProperty("update_time") + .map(last_update_data_time).toProperty("last_update_data_time") + .map(last_query_data_time).toProperty("last_query_data_time") + .map(status).toProperty("status") + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T13:50:09.0925732+08:00", comments="Source Table: public.provider") + default int insertSelective(Provider row) { + return MyBatis3Utils.insert(this::insert, row, provider, c -> + c.map(id).toPropertyWhenPresent("id", row::getId) + .map(name).toPropertyWhenPresent("name", row::getName) + .map(create_time).toPropertyWhenPresent("create_time", row::getCreate_time) + .map(update_time).toPropertyWhenPresent("update_time", row::getUpdate_time) + .map(last_update_data_time).toPropertyWhenPresent("last_update_data_time", row::getLast_update_data_time) + .map(last_query_data_time).toPropertyWhenPresent("last_query_data_time", row::getLast_query_data_time) + .map(status).toPropertyWhenPresent("status", row::getStatus) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T13:50:09.0947131+08:00", comments="Source Table: public.provider") + default Optional selectOne(SelectDSLCompleter completer) { + return MyBatis3Utils.selectOne(this::selectOne, selectList, provider, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T13:50:09.0947131+08:00", comments="Source Table: public.provider") + default List select(SelectDSLCompleter completer) { + return MyBatis3Utils.selectList(this::selectMany, selectList, provider, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T13:50:09.0957505+08:00", comments="Source Table: public.provider") + default List selectDistinct(SelectDSLCompleter completer) { + return MyBatis3Utils.selectDistinct(this::selectMany, selectList, provider, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T13:50:09.0957505+08:00", comments="Source Table: public.provider") + default Optional selectByPrimaryKey(String id_) { + return selectOne(c -> + c.where(id, isEqualTo(id_)) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T13:50:09.0957505+08:00", comments="Source Table: public.provider") + default int update(UpdateDSLCompleter completer) { + return MyBatis3Utils.update(this::update, provider, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T13:50:09.0968239+08:00", comments="Source Table: public.provider") + static UpdateDSL updateAllColumns(Provider row, UpdateDSL dsl) { + return dsl.set(id).equalTo(row::getId) + .set(name).equalTo(row::getName) + .set(create_time).equalTo(row::getCreate_time) + .set(update_time).equalTo(row::getUpdate_time) + .set(last_update_data_time).equalTo(row::getLast_update_data_time) + .set(last_query_data_time).equalTo(row::getLast_query_data_time) + .set(status).equalTo(row::getStatus); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T13:50:09.0968239+08:00", comments="Source Table: public.provider") + static UpdateDSL updateSelectiveColumns(Provider row, UpdateDSL dsl) { + return dsl.set(id).equalToWhenPresent(row::getId) + .set(name).equalToWhenPresent(row::getName) + .set(create_time).equalToWhenPresent(row::getCreate_time) + .set(update_time).equalToWhenPresent(row::getUpdate_time) + .set(last_update_data_time).equalToWhenPresent(row::getLast_update_data_time) + .set(last_query_data_time).equalToWhenPresent(row::getLast_query_data_time) + .set(status).equalToWhenPresent(row::getStatus); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T13:50:09.0979992+08:00", comments="Source Table: public.provider") + default int updateByPrimaryKey(Provider row) { + return update(c -> + c.set(name).equalTo(row::getName) + .set(create_time).equalTo(row::getCreate_time) + .set(update_time).equalTo(row::getUpdate_time) + .set(last_update_data_time).equalTo(row::getLast_update_data_time) + .set(last_query_data_time).equalTo(row::getLast_query_data_time) + .set(status).equalTo(row::getStatus) + .where(id, isEqualTo(row::getId)) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T13:50:09.0979992+08:00", comments="Source Table: public.provider") + default int updateByPrimaryKeySelective(Provider row) { + return update(c -> + c.set(name).equalToWhenPresent(row::getName) + .set(create_time).equalToWhenPresent(row::getCreate_time) + .set(update_time).equalToWhenPresent(row::getUpdate_time) + .set(last_update_data_time).equalToWhenPresent(row::getLast_update_data_time) + .set(last_query_data_time).equalToWhenPresent(row::getLast_query_data_time) + .set(status).equalToWhenPresent(row::getStatus) + .where(id, isEqualTo(row::getId)) + ); + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/dao/ReadLogMapper.java b/src/main/java/jj/tech/paolu/repository/mybatis/dao/ReadLogMapper.java new file mode 100644 index 0000000..bd072a4 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/dao/ReadLogMapper.java @@ -0,0 +1,233 @@ +package jj.tech.paolu.repository.mybatis.dao; + +import static jj.tech.paolu.repository.mybatis.dao.support.ReadLogDynamicSqlSupport.*; +import static org.mybatis.dynamic.sql.SqlBuilder.isEqualTo; + +import jakarta.annotation.Generated; +import java.util.Collection; +import java.util.List; +import java.util.Optional; +import jj.tech.paolu.repository.mybatis.entity.ReadLog; +import org.apache.ibatis.annotations.Mapper; +import org.apache.ibatis.annotations.Result; +import org.apache.ibatis.annotations.ResultMap; +import org.apache.ibatis.annotations.Results; +import org.apache.ibatis.annotations.SelectProvider; +import org.apache.ibatis.type.JdbcType; +import org.mybatis.dynamic.sql.BasicColumn; +import org.mybatis.dynamic.sql.delete.DeleteDSLCompleter; +import org.mybatis.dynamic.sql.select.CountDSLCompleter; +import org.mybatis.dynamic.sql.select.SelectDSLCompleter; +import org.mybatis.dynamic.sql.select.render.SelectStatementProvider; +import org.mybatis.dynamic.sql.update.UpdateDSL; +import org.mybatis.dynamic.sql.update.UpdateDSLCompleter; +import org.mybatis.dynamic.sql.update.UpdateModel; +import org.mybatis.dynamic.sql.util.SqlProviderAdapter; +import org.mybatis.dynamic.sql.util.mybatis3.CommonCountMapper; +import org.mybatis.dynamic.sql.util.mybatis3.CommonDeleteMapper; +import org.mybatis.dynamic.sql.util.mybatis3.CommonInsertMapper; +import org.mybatis.dynamic.sql.util.mybatis3.CommonUpdateMapper; +import org.mybatis.dynamic.sql.util.mybatis3.MyBatis3Utils; + +@Mapper +public interface ReadLogMapper extends CommonCountMapper, CommonDeleteMapper, CommonInsertMapper, CommonUpdateMapper { + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2661469+08:00", comments="Source Table: public.read_log") + BasicColumn[] selectList = BasicColumn.columnList(id, weid, content_id, starttime, endtime, ip, location, downloadtype, sign, readid, sm9hibeid, content_type, ischeck); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2651454+08:00", comments="Source Table: public.read_log") + @SelectProvider(type=SqlProviderAdapter.class, method="select") + @Results(id="ReadLogResult", value = { + @Result(column="id", property="id", jdbcType=JdbcType.VARCHAR, id=true), + @Result(column="weid", property="weid", jdbcType=JdbcType.VARCHAR), + @Result(column="content_id", property="content_id", jdbcType=JdbcType.VARCHAR), + @Result(column="starttime", property="starttime", jdbcType=JdbcType.TIMESTAMP), + @Result(column="endtime", property="endtime", jdbcType=JdbcType.TIMESTAMP), + @Result(column="ip", property="ip", jdbcType=JdbcType.VARCHAR), + @Result(column="location", property="location", jdbcType=JdbcType.VARCHAR), + @Result(column="downloadtype", property="downloadtype", jdbcType=JdbcType.INTEGER), + @Result(column="sign", property="sign", jdbcType=JdbcType.VARCHAR), + @Result(column="readid", property="readid", jdbcType=JdbcType.VARCHAR), + @Result(column="sm9hibeid", property="sm9hibeid", jdbcType=JdbcType.VARCHAR), + @Result(column="content_type", property="content_type", jdbcType=JdbcType.INTEGER), + @Result(column="ischeck", property="ischeck", jdbcType=JdbcType.INTEGER) + }) + List selectMany(SelectStatementProvider selectStatement); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2651454+08:00", comments="Source Table: public.read_log") + @SelectProvider(type=SqlProviderAdapter.class, method="select") + @ResultMap("ReadLogResult") + Optional selectOne(SelectStatementProvider selectStatement); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2651454+08:00", comments="Source Table: public.read_log") + default long count(CountDSLCompleter completer) { + return MyBatis3Utils.countFrom(this::count, readLog, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2651454+08:00", comments="Source Table: public.read_log") + default int delete(DeleteDSLCompleter completer) { + return MyBatis3Utils.deleteFrom(this::delete, readLog, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2651454+08:00", comments="Source Table: public.read_log") + default int deleteByPrimaryKey(String id_) { + return delete(c -> + c.where(id, isEqualTo(id_)) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2651454+08:00", comments="Source Table: public.read_log") + default int insert(ReadLog row) { + return MyBatis3Utils.insert(this::insert, row, readLog, c -> + c.map(id).toProperty("id") + .map(weid).toProperty("weid") + .map(content_id).toProperty("content_id") + .map(starttime).toProperty("starttime") + .map(endtime).toProperty("endtime") + .map(ip).toProperty("ip") + .map(location).toProperty("location") + .map(downloadtype).toProperty("downloadtype") + .map(sign).toProperty("sign") + .map(readid).toProperty("readid") + .map(sm9hibeid).toProperty("sm9hibeid") + .map(content_type).toProperty("content_type") + .map(ischeck).toProperty("ischeck") + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2651454+08:00", comments="Source Table: public.read_log") + default int insertMultiple(Collection records) { + return MyBatis3Utils.insertMultiple(this::insertMultiple, records, readLog, c -> + c.map(id).toProperty("id") + .map(weid).toProperty("weid") + .map(content_id).toProperty("content_id") + .map(starttime).toProperty("starttime") + .map(endtime).toProperty("endtime") + .map(ip).toProperty("ip") + .map(location).toProperty("location") + .map(downloadtype).toProperty("downloadtype") + .map(sign).toProperty("sign") + .map(readid).toProperty("readid") + .map(sm9hibeid).toProperty("sm9hibeid") + .map(content_type).toProperty("content_type") + .map(ischeck).toProperty("ischeck") + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2651454+08:00", comments="Source Table: public.read_log") + default int insertSelective(ReadLog row) { + return MyBatis3Utils.insert(this::insert, row, readLog, c -> + c.map(id).toPropertyWhenPresent("id", row::getId) + .map(weid).toPropertyWhenPresent("weid", row::getWeid) + .map(content_id).toPropertyWhenPresent("content_id", row::getContent_id) + .map(starttime).toPropertyWhenPresent("starttime", row::getStarttime) + .map(endtime).toPropertyWhenPresent("endtime", row::getEndtime) + .map(ip).toPropertyWhenPresent("ip", row::getIp) + .map(location).toPropertyWhenPresent("location", row::getLocation) + .map(downloadtype).toPropertyWhenPresent("downloadtype", row::getDownloadtype) + .map(sign).toPropertyWhenPresent("sign", row::getSign) + .map(readid).toPropertyWhenPresent("readid", row::getReadid) + .map(sm9hibeid).toPropertyWhenPresent("sm9hibeid", row::getSm9hibeid) + .map(content_type).toPropertyWhenPresent("content_type", row::getContent_type) + .map(ischeck).toPropertyWhenPresent("ischeck", row::getIscheck) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2661469+08:00", comments="Source Table: public.read_log") + default Optional selectOne(SelectDSLCompleter completer) { + return MyBatis3Utils.selectOne(this::selectOne, selectList, readLog, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2661469+08:00", comments="Source Table: public.read_log") + default List select(SelectDSLCompleter completer) { + return MyBatis3Utils.selectList(this::selectMany, selectList, readLog, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2661469+08:00", comments="Source Table: public.read_log") + default List selectDistinct(SelectDSLCompleter completer) { + return MyBatis3Utils.selectDistinct(this::selectMany, selectList, readLog, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2661469+08:00", comments="Source Table: public.read_log") + default Optional selectByPrimaryKey(String id_) { + return selectOne(c -> + c.where(id, isEqualTo(id_)) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2661469+08:00", comments="Source Table: public.read_log") + default int update(UpdateDSLCompleter completer) { + return MyBatis3Utils.update(this::update, readLog, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2661469+08:00", comments="Source Table: public.read_log") + static UpdateDSL updateAllColumns(ReadLog row, UpdateDSL dsl) { + return dsl.set(id).equalTo(row::getId) + .set(weid).equalTo(row::getWeid) + .set(content_id).equalTo(row::getContent_id) + .set(starttime).equalTo(row::getStarttime) + .set(endtime).equalTo(row::getEndtime) + .set(ip).equalTo(row::getIp) + .set(location).equalTo(row::getLocation) + .set(downloadtype).equalTo(row::getDownloadtype) + .set(sign).equalTo(row::getSign) + .set(readid).equalTo(row::getReadid) + .set(sm9hibeid).equalTo(row::getSm9hibeid) + .set(content_type).equalTo(row::getContent_type) + .set(ischeck).equalTo(row::getIscheck); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2661469+08:00", comments="Source Table: public.read_log") + static UpdateDSL updateSelectiveColumns(ReadLog row, UpdateDSL dsl) { + return dsl.set(id).equalToWhenPresent(row::getId) + .set(weid).equalToWhenPresent(row::getWeid) + .set(content_id).equalToWhenPresent(row::getContent_id) + .set(starttime).equalToWhenPresent(row::getStarttime) + .set(endtime).equalToWhenPresent(row::getEndtime) + .set(ip).equalToWhenPresent(row::getIp) + .set(location).equalToWhenPresent(row::getLocation) + .set(downloadtype).equalToWhenPresent(row::getDownloadtype) + .set(sign).equalToWhenPresent(row::getSign) + .set(readid).equalToWhenPresent(row::getReadid) + .set(sm9hibeid).equalToWhenPresent(row::getSm9hibeid) + .set(content_type).equalToWhenPresent(row::getContent_type) + .set(ischeck).equalToWhenPresent(row::getIscheck); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2661469+08:00", comments="Source Table: public.read_log") + default int updateByPrimaryKey(ReadLog row) { + return update(c -> + c.set(weid).equalTo(row::getWeid) + .set(content_id).equalTo(row::getContent_id) + .set(starttime).equalTo(row::getStarttime) + .set(endtime).equalTo(row::getEndtime) + .set(ip).equalTo(row::getIp) + .set(location).equalTo(row::getLocation) + .set(downloadtype).equalTo(row::getDownloadtype) + .set(sign).equalTo(row::getSign) + .set(readid).equalTo(row::getReadid) + .set(sm9hibeid).equalTo(row::getSm9hibeid) + .set(content_type).equalTo(row::getContent_type) + .set(ischeck).equalTo(row::getIscheck) + .where(id, isEqualTo(row::getId)) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2661469+08:00", comments="Source Table: public.read_log") + default int updateByPrimaryKeySelective(ReadLog row) { + return update(c -> + c.set(weid).equalToWhenPresent(row::getWeid) + .set(content_id).equalToWhenPresent(row::getContent_id) + .set(starttime).equalToWhenPresent(row::getStarttime) + .set(endtime).equalToWhenPresent(row::getEndtime) + .set(ip).equalToWhenPresent(row::getIp) + .set(location).equalToWhenPresent(row::getLocation) + .set(downloadtype).equalToWhenPresent(row::getDownloadtype) + .set(sign).equalToWhenPresent(row::getSign) + .set(readid).equalToWhenPresent(row::getReadid) + .set(sm9hibeid).equalToWhenPresent(row::getSm9hibeid) + .set(content_type).equalToWhenPresent(row::getContent_type) + .set(ischeck).equalToWhenPresent(row::getIscheck) + .where(id, isEqualTo(row::getId)) + ); + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/dao/ShareConfigDetailMapper.java b/src/main/java/jj/tech/paolu/repository/mybatis/dao/ShareConfigDetailMapper.java new file mode 100644 index 0000000..408ef4d --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/dao/ShareConfigDetailMapper.java @@ -0,0 +1,177 @@ +package jj.tech.paolu.repository.mybatis.dao; + +import static jj.tech.paolu.repository.mybatis.dao.support.ShareConfigDetailDynamicSqlSupport.*; +import static org.mybatis.dynamic.sql.SqlBuilder.isEqualTo; + +import jakarta.annotation.Generated; +import java.util.Collection; +import java.util.List; +import java.util.Optional; +import jj.tech.paolu.repository.mybatis.entity.ShareConfigDetail; +import org.apache.ibatis.annotations.Mapper; +import org.apache.ibatis.annotations.Result; +import org.apache.ibatis.annotations.ResultMap; +import org.apache.ibatis.annotations.Results; +import org.apache.ibatis.annotations.SelectProvider; +import org.apache.ibatis.type.JdbcType; +import org.mybatis.dynamic.sql.BasicColumn; +import org.mybatis.dynamic.sql.delete.DeleteDSLCompleter; +import org.mybatis.dynamic.sql.select.CountDSLCompleter; +import org.mybatis.dynamic.sql.select.SelectDSLCompleter; +import org.mybatis.dynamic.sql.select.render.SelectStatementProvider; +import org.mybatis.dynamic.sql.update.UpdateDSL; +import org.mybatis.dynamic.sql.update.UpdateDSLCompleter; +import org.mybatis.dynamic.sql.update.UpdateModel; +import org.mybatis.dynamic.sql.util.SqlProviderAdapter; +import org.mybatis.dynamic.sql.util.mybatis3.CommonCountMapper; +import org.mybatis.dynamic.sql.util.mybatis3.CommonDeleteMapper; +import org.mybatis.dynamic.sql.util.mybatis3.CommonInsertMapper; +import org.mybatis.dynamic.sql.util.mybatis3.CommonUpdateMapper; +import org.mybatis.dynamic.sql.util.mybatis3.MyBatis3Utils; + +@Mapper +public interface ShareConfigDetailMapper extends CommonCountMapper, CommonDeleteMapper, CommonInsertMapper, CommonUpdateMapper { + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T16:54:45.197603+08:00", comments="Source Table: public.share_config_detail") + BasicColumn[] selectList = BasicColumn.columnList(node_id, node_type, share_config_statu, create_time, update_time, update_count); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T16:54:45.1850956+08:00", comments="Source Table: public.share_config_detail") + @SelectProvider(type=SqlProviderAdapter.class, method="select") + @Results(id="ShareConfigDetailResult", value = { + @Result(column="node_id", property="node_id", jdbcType=JdbcType.VARCHAR, id=true), + @Result(column="node_type", property="node_type", jdbcType=JdbcType.INTEGER), + @Result(column="share_config_statu", property="share_config_statu", jdbcType=JdbcType.INTEGER), + @Result(column="create_time", property="create_time", jdbcType=JdbcType.TIMESTAMP), + @Result(column="update_time", property="update_time", jdbcType=JdbcType.TIMESTAMP), + @Result(column="update_count", property="update_count", jdbcType=JdbcType.INTEGER) + }) + List selectMany(SelectStatementProvider selectStatement); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T16:54:45.1879378+08:00", comments="Source Table: public.share_config_detail") + @SelectProvider(type=SqlProviderAdapter.class, method="select") + @ResultMap("ShareConfigDetailResult") + Optional selectOne(SelectStatementProvider selectStatement); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T16:54:45.1879378+08:00", comments="Source Table: public.share_config_detail") + default long count(CountDSLCompleter completer) { + return MyBatis3Utils.countFrom(this::count, shareConfigDetail, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T16:54:45.1879378+08:00", comments="Source Table: public.share_config_detail") + default int delete(DeleteDSLCompleter completer) { + return MyBatis3Utils.deleteFrom(this::delete, shareConfigDetail, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T16:54:45.1893184+08:00", comments="Source Table: public.share_config_detail") + default int deleteByPrimaryKey(String node_id_) { + return delete(c -> + c.where(node_id, isEqualTo(node_id_)) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T16:54:45.1893184+08:00", comments="Source Table: public.share_config_detail") + default int insert(ShareConfigDetail row) { + return MyBatis3Utils.insert(this::insert, row, shareConfigDetail, c -> + c.map(node_id).toProperty("node_id") + .map(node_type).toProperty("node_type") + .map(share_config_statu).toProperty("share_config_statu") + .map(create_time).toProperty("create_time") + .map(update_time).toProperty("update_time") + .map(update_count).toProperty("update_count") + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T16:54:45.1923762+08:00", comments="Source Table: public.share_config_detail") + default int insertMultiple(Collection records) { + return MyBatis3Utils.insertMultiple(this::insertMultiple, records, shareConfigDetail, c -> + c.map(node_id).toProperty("node_id") + .map(node_type).toProperty("node_type") + .map(share_config_statu).toProperty("share_config_statu") + .map(create_time).toProperty("create_time") + .map(update_time).toProperty("update_time") + .map(update_count).toProperty("update_count") + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T16:54:45.1933762+08:00", comments="Source Table: public.share_config_detail") + default int insertSelective(ShareConfigDetail row) { + return MyBatis3Utils.insert(this::insert, row, shareConfigDetail, c -> + c.map(node_id).toPropertyWhenPresent("node_id", row::getNode_id) + .map(node_type).toPropertyWhenPresent("node_type", row::getNode_type) + .map(share_config_statu).toPropertyWhenPresent("share_config_statu", row::getShare_config_statu) + .map(create_time).toPropertyWhenPresent("create_time", row::getCreate_time) + .map(update_time).toPropertyWhenPresent("update_time", row::getUpdate_time) + .map(update_count).toPropertyWhenPresent("update_count", row::getUpdate_count) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T16:54:45.1987339+08:00", comments="Source Table: public.share_config_detail") + default Optional selectOne(SelectDSLCompleter completer) { + return MyBatis3Utils.selectOne(this::selectOne, selectList, shareConfigDetail, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T16:54:45.1987339+08:00", comments="Source Table: public.share_config_detail") + default List select(SelectDSLCompleter completer) { + return MyBatis3Utils.selectList(this::selectMany, selectList, shareConfigDetail, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T16:54:45.2001131+08:00", comments="Source Table: public.share_config_detail") + default List selectDistinct(SelectDSLCompleter completer) { + return MyBatis3Utils.selectDistinct(this::selectMany, selectList, shareConfigDetail, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T16:54:45.2001131+08:00", comments="Source Table: public.share_config_detail") + default Optional selectByPrimaryKey(String node_id_) { + return selectOne(c -> + c.where(node_id, isEqualTo(node_id_)) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T16:54:45.2001131+08:00", comments="Source Table: public.share_config_detail") + default int update(UpdateDSLCompleter completer) { + return MyBatis3Utils.update(this::update, shareConfigDetail, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T16:54:45.2001131+08:00", comments="Source Table: public.share_config_detail") + static UpdateDSL updateAllColumns(ShareConfigDetail row, UpdateDSL dsl) { + return dsl.set(node_id).equalTo(row::getNode_id) + .set(node_type).equalTo(row::getNode_type) + .set(share_config_statu).equalTo(row::getShare_config_statu) + .set(create_time).equalTo(row::getCreate_time) + .set(update_time).equalTo(row::getUpdate_time) + .set(update_count).equalTo(row::getUpdate_count); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T16:54:45.2015647+08:00", comments="Source Table: public.share_config_detail") + static UpdateDSL updateSelectiveColumns(ShareConfigDetail row, UpdateDSL dsl) { + return dsl.set(node_id).equalToWhenPresent(row::getNode_id) + .set(node_type).equalToWhenPresent(row::getNode_type) + .set(share_config_statu).equalToWhenPresent(row::getShare_config_statu) + .set(create_time).equalToWhenPresent(row::getCreate_time) + .set(update_time).equalToWhenPresent(row::getUpdate_time) + .set(update_count).equalToWhenPresent(row::getUpdate_count); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T16:54:45.2025684+08:00", comments="Source Table: public.share_config_detail") + default int updateByPrimaryKey(ShareConfigDetail row) { + return update(c -> + c.set(node_type).equalTo(row::getNode_type) + .set(share_config_statu).equalTo(row::getShare_config_statu) + .set(create_time).equalTo(row::getCreate_time) + .set(update_time).equalTo(row::getUpdate_time) + .set(update_count).equalTo(row::getUpdate_count) + .where(node_id, isEqualTo(row::getNode_id)) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T16:54:45.2025684+08:00", comments="Source Table: public.share_config_detail") + default int updateByPrimaryKeySelective(ShareConfigDetail row) { + return update(c -> + c.set(node_type).equalToWhenPresent(row::getNode_type) + .set(share_config_statu).equalToWhenPresent(row::getShare_config_statu) + .set(create_time).equalToWhenPresent(row::getCreate_time) + .set(update_time).equalToWhenPresent(row::getUpdate_time) + .set(update_count).equalToWhenPresent(row::getUpdate_count) + .where(node_id, isEqualTo(row::getNode_id)) + ); + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/dao/ShareDirectoryFileMapper.java b/src/main/java/jj/tech/paolu/repository/mybatis/dao/ShareDirectoryFileMapper.java new file mode 100644 index 0000000..83b3646 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/dao/ShareDirectoryFileMapper.java @@ -0,0 +1,305 @@ +package jj.tech.paolu.repository.mybatis.dao; + +import static jj.tech.paolu.repository.mybatis.dao.support.ShareDirectoryFileDynamicSqlSupport.*; +import static org.mybatis.dynamic.sql.SqlBuilder.isEqualTo; + +import jakarta.annotation.Generated; +import java.util.Collection; +import java.util.List; +import java.util.Optional; +import jj.tech.paolu.repository.mybatis.entity.ShareDirectoryFile; +import org.apache.ibatis.annotations.Mapper; +import org.apache.ibatis.annotations.Result; +import org.apache.ibatis.annotations.ResultMap; +import org.apache.ibatis.annotations.Results; +import org.apache.ibatis.annotations.SelectProvider; +import org.apache.ibatis.type.JdbcType; +import org.mybatis.dynamic.sql.BasicColumn; +import org.mybatis.dynamic.sql.delete.DeleteDSLCompleter; +import org.mybatis.dynamic.sql.select.CountDSLCompleter; +import org.mybatis.dynamic.sql.select.SelectDSLCompleter; +import org.mybatis.dynamic.sql.select.render.SelectStatementProvider; +import org.mybatis.dynamic.sql.update.UpdateDSL; +import org.mybatis.dynamic.sql.update.UpdateDSLCompleter; +import org.mybatis.dynamic.sql.update.UpdateModel; +import org.mybatis.dynamic.sql.util.SqlProviderAdapter; +import org.mybatis.dynamic.sql.util.mybatis3.CommonCountMapper; +import org.mybatis.dynamic.sql.util.mybatis3.CommonDeleteMapper; +import org.mybatis.dynamic.sql.util.mybatis3.CommonInsertMapper; +import org.mybatis.dynamic.sql.util.mybatis3.CommonUpdateMapper; +import org.mybatis.dynamic.sql.util.mybatis3.MyBatis3Utils; + +@Mapper +public interface ShareDirectoryFileMapper extends CommonCountMapper, CommonDeleteMapper, CommonInsertMapper, CommonUpdateMapper { + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:03:57.9255597+08:00", comments="Source Table: public.share_directory_file") + BasicColumn[] selectList = BasicColumn.columnList(id, p_id, provider_id, filesuper, filecount, dutyperson, eweavedate, filepage, sortorder, bpeg, epeg, filenum, remark, recordnum, piecenumber, adddate, editdate, time_stamp, isdel, catalogpdfurl, signtag, collecttag); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:03:57.917125+08:00", comments="Source Table: public.share_directory_file") + @SelectProvider(type=SqlProviderAdapter.class, method="select") + @Results(id="ShareDirectoryFileResult", value = { + @Result(column="id", property="id", jdbcType=JdbcType.VARCHAR, id=true), + @Result(column="p_id", property="p_id", jdbcType=JdbcType.VARCHAR), + @Result(column="provider_id", property="provider_id", jdbcType=JdbcType.VARCHAR), + @Result(column="filesuper", property="filesuper", jdbcType=JdbcType.VARCHAR), + @Result(column="filecount", property="filecount", jdbcType=JdbcType.INTEGER), + @Result(column="dutyperson", property="dutyperson", jdbcType=JdbcType.VARCHAR), + @Result(column="eweavedate", property="eweavedate", jdbcType=JdbcType.VARCHAR), + @Result(column="filepage", property="filepage", jdbcType=JdbcType.INTEGER), + @Result(column="sortorder", property="sortorder", jdbcType=JdbcType.VARCHAR), + @Result(column="bpeg", property="bpeg", jdbcType=JdbcType.VARCHAR), + @Result(column="epeg", property="epeg", jdbcType=JdbcType.VARCHAR), + @Result(column="filenum", property="filenum", jdbcType=JdbcType.VARCHAR), + @Result(column="remark", property="remark", jdbcType=JdbcType.VARCHAR), + @Result(column="recordnum", property="recordnum", jdbcType=JdbcType.VARCHAR), + @Result(column="piecenumber", property="piecenumber", jdbcType=JdbcType.VARCHAR), + @Result(column="adddate", property="adddate", jdbcType=JdbcType.VARCHAR), + @Result(column="editdate", property="editdate", jdbcType=JdbcType.VARCHAR), + @Result(column="time_stamp", property="time_stamp", jdbcType=JdbcType.VARCHAR), + @Result(column="isdel", property="isdel", jdbcType=JdbcType.INTEGER), + @Result(column="catalogpdfurl", property="catalogpdfurl", jdbcType=JdbcType.VARCHAR), + @Result(column="signtag", property="signtag", jdbcType=JdbcType.VARCHAR), + @Result(column="collecttag", property="collecttag", jdbcType=JdbcType.VARCHAR) + }) + List selectMany(SelectStatementProvider selectStatement); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:03:57.9191252+08:00", comments="Source Table: public.share_directory_file") + @SelectProvider(type=SqlProviderAdapter.class, method="select") + @ResultMap("ShareDirectoryFileResult") + Optional selectOne(SelectStatementProvider selectStatement); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:03:57.9191252+08:00", comments="Source Table: public.share_directory_file") + default long count(CountDSLCompleter completer) { + return MyBatis3Utils.countFrom(this::count, shareDirectoryFile, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:03:57.9201249+08:00", comments="Source Table: public.share_directory_file") + default int delete(DeleteDSLCompleter completer) { + return MyBatis3Utils.deleteFrom(this::delete, shareDirectoryFile, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:03:57.9201249+08:00", comments="Source Table: public.share_directory_file") + default int deleteByPrimaryKey(String id_) { + return delete(c -> + c.where(id, isEqualTo(id_)) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:03:57.9211262+08:00", comments="Source Table: public.share_directory_file") + default int insert(ShareDirectoryFile row) { + return MyBatis3Utils.insert(this::insert, row, shareDirectoryFile, c -> + c.map(id).toProperty("id") + .map(p_id).toProperty("p_id") + .map(provider_id).toProperty("provider_id") + .map(filesuper).toProperty("filesuper") + .map(filecount).toProperty("filecount") + .map(dutyperson).toProperty("dutyperson") + .map(eweavedate).toProperty("eweavedate") + .map(filepage).toProperty("filepage") + .map(sortorder).toProperty("sortorder") + .map(bpeg).toProperty("bpeg") + .map(epeg).toProperty("epeg") + .map(filenum).toProperty("filenum") + .map(remark).toProperty("remark") + .map(recordnum).toProperty("recordnum") + .map(piecenumber).toProperty("piecenumber") + .map(adddate).toProperty("adddate") + .map(editdate).toProperty("editdate") + .map(time_stamp).toProperty("time_stamp") + .map(isdel).toProperty("isdel") + .map(catalogpdfurl).toProperty("catalogpdfurl") + .map(signtag).toProperty("signtag") + .map(collecttag).toProperty("collecttag") + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:03:57.9232037+08:00", comments="Source Table: public.share_directory_file") + default int insertMultiple(Collection records) { + return MyBatis3Utils.insertMultiple(this::insertMultiple, records, shareDirectoryFile, c -> + c.map(id).toProperty("id") + .map(p_id).toProperty("p_id") + .map(provider_id).toProperty("provider_id") + .map(filesuper).toProperty("filesuper") + .map(filecount).toProperty("filecount") + .map(dutyperson).toProperty("dutyperson") + .map(eweavedate).toProperty("eweavedate") + .map(filepage).toProperty("filepage") + .map(sortorder).toProperty("sortorder") + .map(bpeg).toProperty("bpeg") + .map(epeg).toProperty("epeg") + .map(filenum).toProperty("filenum") + .map(remark).toProperty("remark") + .map(recordnum).toProperty("recordnum") + .map(piecenumber).toProperty("piecenumber") + .map(adddate).toProperty("adddate") + .map(editdate).toProperty("editdate") + .map(time_stamp).toProperty("time_stamp") + .map(isdel).toProperty("isdel") + .map(catalogpdfurl).toProperty("catalogpdfurl") + .map(signtag).toProperty("signtag") + .map(collecttag).toProperty("collecttag") + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:03:57.9243056+08:00", comments="Source Table: public.share_directory_file") + default int insertSelective(ShareDirectoryFile row) { + return MyBatis3Utils.insert(this::insert, row, shareDirectoryFile, c -> + c.map(id).toPropertyWhenPresent("id", row::getId) + .map(p_id).toPropertyWhenPresent("p_id", row::getP_id) + .map(provider_id).toPropertyWhenPresent("provider_id", row::getProvider_id) + .map(filesuper).toPropertyWhenPresent("filesuper", row::getFilesuper) + .map(filecount).toPropertyWhenPresent("filecount", row::getFilecount) + .map(dutyperson).toPropertyWhenPresent("dutyperson", row::getDutyperson) + .map(eweavedate).toPropertyWhenPresent("eweavedate", row::getEweavedate) + .map(filepage).toPropertyWhenPresent("filepage", row::getFilepage) + .map(sortorder).toPropertyWhenPresent("sortorder", row::getSortorder) + .map(bpeg).toPropertyWhenPresent("bpeg", row::getBpeg) + .map(epeg).toPropertyWhenPresent("epeg", row::getEpeg) + .map(filenum).toPropertyWhenPresent("filenum", row::getFilenum) + .map(remark).toPropertyWhenPresent("remark", row::getRemark) + .map(recordnum).toPropertyWhenPresent("recordnum", row::getRecordnum) + .map(piecenumber).toPropertyWhenPresent("piecenumber", row::getPiecenumber) + .map(adddate).toPropertyWhenPresent("adddate", row::getAdddate) + .map(editdate).toPropertyWhenPresent("editdate", row::getEditdate) + .map(time_stamp).toPropertyWhenPresent("time_stamp", row::getTime_stamp) + .map(isdel).toPropertyWhenPresent("isdel", row::getIsdel) + .map(catalogpdfurl).toPropertyWhenPresent("catalogpdfurl", row::getCatalogpdfurl) + .map(signtag).toPropertyWhenPresent("signtag", row::getSigntag) + .map(collecttag).toPropertyWhenPresent("collecttag", row::getCollecttag) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:03:57.9275633+08:00", comments="Source Table: public.share_directory_file") + default Optional selectOne(SelectDSLCompleter completer) { + return MyBatis3Utils.selectOne(this::selectOne, selectList, shareDirectoryFile, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:03:57.9275633+08:00", comments="Source Table: public.share_directory_file") + default List select(SelectDSLCompleter completer) { + return MyBatis3Utils.selectList(this::selectMany, selectList, shareDirectoryFile, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:03:57.9275633+08:00", comments="Source Table: public.share_directory_file") + default List selectDistinct(SelectDSLCompleter completer) { + return MyBatis3Utils.selectDistinct(this::selectMany, selectList, shareDirectoryFile, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:03:57.9275633+08:00", comments="Source Table: public.share_directory_file") + default Optional selectByPrimaryKey(String id_) { + return selectOne(c -> + c.where(id, isEqualTo(id_)) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:03:57.9285772+08:00", comments="Source Table: public.share_directory_file") + default int update(UpdateDSLCompleter completer) { + return MyBatis3Utils.update(this::update, shareDirectoryFile, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:03:57.9285772+08:00", comments="Source Table: public.share_directory_file") + static UpdateDSL updateAllColumns(ShareDirectoryFile row, UpdateDSL dsl) { + return dsl.set(id).equalTo(row::getId) + .set(p_id).equalTo(row::getP_id) + .set(provider_id).equalTo(row::getProvider_id) + .set(filesuper).equalTo(row::getFilesuper) + .set(filecount).equalTo(row::getFilecount) + .set(dutyperson).equalTo(row::getDutyperson) + .set(eweavedate).equalTo(row::getEweavedate) + .set(filepage).equalTo(row::getFilepage) + .set(sortorder).equalTo(row::getSortorder) + .set(bpeg).equalTo(row::getBpeg) + .set(epeg).equalTo(row::getEpeg) + .set(filenum).equalTo(row::getFilenum) + .set(remark).equalTo(row::getRemark) + .set(recordnum).equalTo(row::getRecordnum) + .set(piecenumber).equalTo(row::getPiecenumber) + .set(adddate).equalTo(row::getAdddate) + .set(editdate).equalTo(row::getEditdate) + .set(time_stamp).equalTo(row::getTime_stamp) + .set(isdel).equalTo(row::getIsdel) + .set(catalogpdfurl).equalTo(row::getCatalogpdfurl) + .set(signtag).equalTo(row::getSigntag) + .set(collecttag).equalTo(row::getCollecttag); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:03:57.9285772+08:00", comments="Source Table: public.share_directory_file") + static UpdateDSL updateSelectiveColumns(ShareDirectoryFile row, UpdateDSL dsl) { + return dsl.set(id).equalToWhenPresent(row::getId) + .set(p_id).equalToWhenPresent(row::getP_id) + .set(provider_id).equalToWhenPresent(row::getProvider_id) + .set(filesuper).equalToWhenPresent(row::getFilesuper) + .set(filecount).equalToWhenPresent(row::getFilecount) + .set(dutyperson).equalToWhenPresent(row::getDutyperson) + .set(eweavedate).equalToWhenPresent(row::getEweavedate) + .set(filepage).equalToWhenPresent(row::getFilepage) + .set(sortorder).equalToWhenPresent(row::getSortorder) + .set(bpeg).equalToWhenPresent(row::getBpeg) + .set(epeg).equalToWhenPresent(row::getEpeg) + .set(filenum).equalToWhenPresent(row::getFilenum) + .set(remark).equalToWhenPresent(row::getRemark) + .set(recordnum).equalToWhenPresent(row::getRecordnum) + .set(piecenumber).equalToWhenPresent(row::getPiecenumber) + .set(adddate).equalToWhenPresent(row::getAdddate) + .set(editdate).equalToWhenPresent(row::getEditdate) + .set(time_stamp).equalToWhenPresent(row::getTime_stamp) + .set(isdel).equalToWhenPresent(row::getIsdel) + .set(catalogpdfurl).equalToWhenPresent(row::getCatalogpdfurl) + .set(signtag).equalToWhenPresent(row::getSigntag) + .set(collecttag).equalToWhenPresent(row::getCollecttag); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:03:57.9295629+08:00", comments="Source Table: public.share_directory_file") + default int updateByPrimaryKey(ShareDirectoryFile row) { + return update(c -> + c.set(p_id).equalTo(row::getP_id) + .set(provider_id).equalTo(row::getProvider_id) + .set(filesuper).equalTo(row::getFilesuper) + .set(filecount).equalTo(row::getFilecount) + .set(dutyperson).equalTo(row::getDutyperson) + .set(eweavedate).equalTo(row::getEweavedate) + .set(filepage).equalTo(row::getFilepage) + .set(sortorder).equalTo(row::getSortorder) + .set(bpeg).equalTo(row::getBpeg) + .set(epeg).equalTo(row::getEpeg) + .set(filenum).equalTo(row::getFilenum) + .set(remark).equalTo(row::getRemark) + .set(recordnum).equalTo(row::getRecordnum) + .set(piecenumber).equalTo(row::getPiecenumber) + .set(adddate).equalTo(row::getAdddate) + .set(editdate).equalTo(row::getEditdate) + .set(time_stamp).equalTo(row::getTime_stamp) + .set(isdel).equalTo(row::getIsdel) + .set(catalogpdfurl).equalTo(row::getCatalogpdfurl) + .set(signtag).equalTo(row::getSigntag) + .set(collecttag).equalTo(row::getCollecttag) + .where(id, isEqualTo(row::getId)) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:03:57.930563+08:00", comments="Source Table: public.share_directory_file") + default int updateByPrimaryKeySelective(ShareDirectoryFile row) { + return update(c -> + c.set(p_id).equalToWhenPresent(row::getP_id) + .set(provider_id).equalToWhenPresent(row::getProvider_id) + .set(filesuper).equalToWhenPresent(row::getFilesuper) + .set(filecount).equalToWhenPresent(row::getFilecount) + .set(dutyperson).equalToWhenPresent(row::getDutyperson) + .set(eweavedate).equalToWhenPresent(row::getEweavedate) + .set(filepage).equalToWhenPresent(row::getFilepage) + .set(sortorder).equalToWhenPresent(row::getSortorder) + .set(bpeg).equalToWhenPresent(row::getBpeg) + .set(epeg).equalToWhenPresent(row::getEpeg) + .set(filenum).equalToWhenPresent(row::getFilenum) + .set(remark).equalToWhenPresent(row::getRemark) + .set(recordnum).equalToWhenPresent(row::getRecordnum) + .set(piecenumber).equalToWhenPresent(row::getPiecenumber) + .set(adddate).equalToWhenPresent(row::getAdddate) + .set(editdate).equalToWhenPresent(row::getEditdate) + .set(time_stamp).equalToWhenPresent(row::getTime_stamp) + .set(isdel).equalToWhenPresent(row::getIsdel) + .set(catalogpdfurl).equalToWhenPresent(row::getCatalogpdfurl) + .set(signtag).equalToWhenPresent(row::getSigntag) + .set(collecttag).equalToWhenPresent(row::getCollecttag) + .where(id, isEqualTo(row::getId)) + ); + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/dao/ShareDirectoryMapper.java b/src/main/java/jj/tech/paolu/repository/mybatis/dao/ShareDirectoryMapper.java new file mode 100644 index 0000000..ae3174a --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/dao/ShareDirectoryMapper.java @@ -0,0 +1,201 @@ +package jj.tech.paolu.repository.mybatis.dao; + +import static jj.tech.paolu.repository.mybatis.dao.support.ShareDirectoryDynamicSqlSupport.*; +import static org.mybatis.dynamic.sql.SqlBuilder.isEqualTo; + +import jakarta.annotation.Generated; +import java.util.Collection; +import java.util.List; +import java.util.Optional; +import jj.tech.paolu.repository.mybatis.entity.ShareDirectory; +import org.apache.ibatis.annotations.Mapper; +import org.apache.ibatis.annotations.Result; +import org.apache.ibatis.annotations.ResultMap; +import org.apache.ibatis.annotations.Results; +import org.apache.ibatis.annotations.SelectProvider; +import org.apache.ibatis.type.JdbcType; +import org.mybatis.dynamic.sql.BasicColumn; +import org.mybatis.dynamic.sql.delete.DeleteDSLCompleter; +import org.mybatis.dynamic.sql.select.CountDSLCompleter; +import org.mybatis.dynamic.sql.select.SelectDSLCompleter; +import org.mybatis.dynamic.sql.select.render.SelectStatementProvider; +import org.mybatis.dynamic.sql.update.UpdateDSL; +import org.mybatis.dynamic.sql.update.UpdateDSLCompleter; +import org.mybatis.dynamic.sql.update.UpdateModel; +import org.mybatis.dynamic.sql.util.SqlProviderAdapter; +import org.mybatis.dynamic.sql.util.mybatis3.CommonCountMapper; +import org.mybatis.dynamic.sql.util.mybatis3.CommonDeleteMapper; +import org.mybatis.dynamic.sql.util.mybatis3.CommonInsertMapper; +import org.mybatis.dynamic.sql.util.mybatis3.CommonUpdateMapper; +import org.mybatis.dynamic.sql.util.mybatis3.MyBatis3Utils; + +@Mapper +public interface ShareDirectoryMapper extends CommonCountMapper, CommonDeleteMapper, CommonInsertMapper, CommonUpdateMapper { + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:43:40.675339+08:00", comments="Source Table: public.share_directory") + BasicColumn[] selectList = BasicColumn.columnList(id, provider_id, p_id, wbs_id, time_stamp, sortorder, tname, subjoin, isdel); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:43:40.665391+08:00", comments="Source Table: public.share_directory") + @SelectProvider(type=SqlProviderAdapter.class, method="select") + @Results(id="ShareDirectoryResult", value = { + @Result(column="id", property="id", jdbcType=JdbcType.VARCHAR, id=true), + @Result(column="provider_id", property="provider_id", jdbcType=JdbcType.VARCHAR), + @Result(column="p_id", property="p_id", jdbcType=JdbcType.VARCHAR), + @Result(column="wbs_id", property="wbs_id", jdbcType=JdbcType.VARCHAR), + @Result(column="time_stamp", property="time_stamp", jdbcType=JdbcType.VARCHAR), + @Result(column="sortorder", property="sortorder", jdbcType=JdbcType.INTEGER), + @Result(column="tname", property="tname", jdbcType=JdbcType.VARCHAR), + @Result(column="subjoin", property="subjoin", jdbcType=JdbcType.INTEGER), + @Result(column="isdel", property="isdel", jdbcType=JdbcType.INTEGER) + }) + List selectMany(SelectStatementProvider selectStatement); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:43:40.6673906+08:00", comments="Source Table: public.share_directory") + @SelectProvider(type=SqlProviderAdapter.class, method="select") + @ResultMap("ShareDirectoryResult") + Optional selectOne(SelectStatementProvider selectStatement); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:43:40.6683905+08:00", comments="Source Table: public.share_directory") + default long count(CountDSLCompleter completer) { + return MyBatis3Utils.countFrom(this::count, shareDirectory, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:43:40.6683905+08:00", comments="Source Table: public.share_directory") + default int delete(DeleteDSLCompleter completer) { + return MyBatis3Utils.deleteFrom(this::delete, shareDirectory, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:43:40.6694034+08:00", comments="Source Table: public.share_directory") + default int deleteByPrimaryKey(String id_) { + return delete(c -> + c.where(id, isEqualTo(id_)) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:43:40.6694034+08:00", comments="Source Table: public.share_directory") + default int insert(ShareDirectory row) { + return MyBatis3Utils.insert(this::insert, row, shareDirectory, c -> + c.map(id).toProperty("id") + .map(provider_id).toProperty("provider_id") + .map(p_id).toProperty("p_id") + .map(wbs_id).toProperty("wbs_id") + .map(time_stamp).toProperty("time_stamp") + .map(sortorder).toProperty("sortorder") + .map(tname).toProperty("tname") + .map(subjoin).toProperty("subjoin") + .map(isdel).toProperty("isdel") + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:43:40.6729304+08:00", comments="Source Table: public.share_directory") + default int insertMultiple(Collection records) { + return MyBatis3Utils.insertMultiple(this::insertMultiple, records, shareDirectory, c -> + c.map(id).toProperty("id") + .map(provider_id).toProperty("provider_id") + .map(p_id).toProperty("p_id") + .map(wbs_id).toProperty("wbs_id") + .map(time_stamp).toProperty("time_stamp") + .map(sortorder).toProperty("sortorder") + .map(tname).toProperty("tname") + .map(subjoin).toProperty("subjoin") + .map(isdel).toProperty("isdel") + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:43:40.6741068+08:00", comments="Source Table: public.share_directory") + default int insertSelective(ShareDirectory row) { + return MyBatis3Utils.insert(this::insert, row, shareDirectory, c -> + c.map(id).toPropertyWhenPresent("id", row::getId) + .map(provider_id).toPropertyWhenPresent("provider_id", row::getProvider_id) + .map(p_id).toPropertyWhenPresent("p_id", row::getP_id) + .map(wbs_id).toPropertyWhenPresent("wbs_id", row::getWbs_id) + .map(time_stamp).toPropertyWhenPresent("time_stamp", row::getTime_stamp) + .map(sortorder).toPropertyWhenPresent("sortorder", row::getSortorder) + .map(tname).toPropertyWhenPresent("tname", row::getTname) + .map(subjoin).toPropertyWhenPresent("subjoin", row::getSubjoin) + .map(isdel).toPropertyWhenPresent("isdel", row::getIsdel) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:43:40.6767301+08:00", comments="Source Table: public.share_directory") + default Optional selectOne(SelectDSLCompleter completer) { + return MyBatis3Utils.selectOne(this::selectOne, selectList, shareDirectory, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:43:40.6767301+08:00", comments="Source Table: public.share_directory") + default List select(SelectDSLCompleter completer) { + return MyBatis3Utils.selectList(this::selectMany, selectList, shareDirectory, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:43:40.6780116+08:00", comments="Source Table: public.share_directory") + default List selectDistinct(SelectDSLCompleter completer) { + return MyBatis3Utils.selectDistinct(this::selectMany, selectList, shareDirectory, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:43:40.6780116+08:00", comments="Source Table: public.share_directory") + default Optional selectByPrimaryKey(String id_) { + return selectOne(c -> + c.where(id, isEqualTo(id_)) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:43:40.6780116+08:00", comments="Source Table: public.share_directory") + default int update(UpdateDSLCompleter completer) { + return MyBatis3Utils.update(this::update, shareDirectory, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:43:40.6790677+08:00", comments="Source Table: public.share_directory") + static UpdateDSL updateAllColumns(ShareDirectory row, UpdateDSL dsl) { + return dsl.set(id).equalTo(row::getId) + .set(provider_id).equalTo(row::getProvider_id) + .set(p_id).equalTo(row::getP_id) + .set(wbs_id).equalTo(row::getWbs_id) + .set(time_stamp).equalTo(row::getTime_stamp) + .set(sortorder).equalTo(row::getSortorder) + .set(tname).equalTo(row::getTname) + .set(subjoin).equalTo(row::getSubjoin) + .set(isdel).equalTo(row::getIsdel); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:43:40.6790677+08:00", comments="Source Table: public.share_directory") + static UpdateDSL updateSelectiveColumns(ShareDirectory row, UpdateDSL dsl) { + return dsl.set(id).equalToWhenPresent(row::getId) + .set(provider_id).equalToWhenPresent(row::getProvider_id) + .set(p_id).equalToWhenPresent(row::getP_id) + .set(wbs_id).equalToWhenPresent(row::getWbs_id) + .set(time_stamp).equalToWhenPresent(row::getTime_stamp) + .set(sortorder).equalToWhenPresent(row::getSortorder) + .set(tname).equalToWhenPresent(row::getTname) + .set(subjoin).equalToWhenPresent(row::getSubjoin) + .set(isdel).equalToWhenPresent(row::getIsdel); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:43:40.6802572+08:00", comments="Source Table: public.share_directory") + default int updateByPrimaryKey(ShareDirectory row) { + return update(c -> + c.set(provider_id).equalTo(row::getProvider_id) + .set(p_id).equalTo(row::getP_id) + .set(wbs_id).equalTo(row::getWbs_id) + .set(time_stamp).equalTo(row::getTime_stamp) + .set(sortorder).equalTo(row::getSortorder) + .set(tname).equalTo(row::getTname) + .set(subjoin).equalTo(row::getSubjoin) + .set(isdel).equalTo(row::getIsdel) + .where(id, isEqualTo(row::getId)) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:43:40.6802572+08:00", comments="Source Table: public.share_directory") + default int updateByPrimaryKeySelective(ShareDirectory row) { + return update(c -> + c.set(provider_id).equalToWhenPresent(row::getProvider_id) + .set(p_id).equalToWhenPresent(row::getP_id) + .set(wbs_id).equalToWhenPresent(row::getWbs_id) + .set(time_stamp).equalToWhenPresent(row::getTime_stamp) + .set(sortorder).equalToWhenPresent(row::getSortorder) + .set(tname).equalToWhenPresent(row::getTname) + .set(subjoin).equalToWhenPresent(row::getSubjoin) + .set(isdel).equalToWhenPresent(row::getIsdel) + .where(id, isEqualTo(row::getId)) + ); + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/dao/ShareFileMapper.java b/src/main/java/jj/tech/paolu/repository/mybatis/dao/ShareFileMapper.java new file mode 100644 index 0000000..a9f30be --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/dao/ShareFileMapper.java @@ -0,0 +1,273 @@ +package jj.tech.paolu.repository.mybatis.dao; + +import static jj.tech.paolu.repository.mybatis.dao.support.ShareFileDynamicSqlSupport.*; +import static org.mybatis.dynamic.sql.SqlBuilder.isEqualTo; + +import jakarta.annotation.Generated; +import java.util.Collection; +import java.util.List; +import java.util.Optional; +import jj.tech.paolu.repository.mybatis.entity.ShareFile; +import org.apache.ibatis.annotations.Mapper; +import org.apache.ibatis.annotations.Result; +import org.apache.ibatis.annotations.ResultMap; +import org.apache.ibatis.annotations.Results; +import org.apache.ibatis.annotations.SelectProvider; +import org.apache.ibatis.type.JdbcType; +import org.mybatis.dynamic.sql.BasicColumn; +import org.mybatis.dynamic.sql.delete.DeleteDSLCompleter; +import org.mybatis.dynamic.sql.select.CountDSLCompleter; +import org.mybatis.dynamic.sql.select.SelectDSLCompleter; +import org.mybatis.dynamic.sql.select.render.SelectStatementProvider; +import org.mybatis.dynamic.sql.update.UpdateDSL; +import org.mybatis.dynamic.sql.update.UpdateDSLCompleter; +import org.mybatis.dynamic.sql.update.UpdateModel; +import org.mybatis.dynamic.sql.util.SqlProviderAdapter; +import org.mybatis.dynamic.sql.util.mybatis3.CommonCountMapper; +import org.mybatis.dynamic.sql.util.mybatis3.CommonDeleteMapper; +import org.mybatis.dynamic.sql.util.mybatis3.CommonInsertMapper; +import org.mybatis.dynamic.sql.util.mybatis3.CommonUpdateMapper; +import org.mybatis.dynamic.sql.util.mybatis3.MyBatis3Utils; + +@Mapper +public interface ShareFileMapper extends CommonCountMapper, CommonDeleteMapper, CommonInsertMapper, CommonUpdateMapper { + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:04:26.6213079+08:00", comments="Source Table: public.share_file") + BasicColumn[] selectList = BasicColumn.columnList(id, p_id, provider_id, tablenumber, annexname, projectname, eweavedate, checkdate, annexpage, sortorder, filefrom, archivestag, adddate, editdate, time_stamp, isdel, downurl, filesize); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:04:26.6136639+08:00", comments="Source Table: public.share_file") + @SelectProvider(type=SqlProviderAdapter.class, method="select") + @Results(id="ShareFileResult", value = { + @Result(column="id", property="id", jdbcType=JdbcType.VARCHAR, id=true), + @Result(column="p_id", property="p_id", jdbcType=JdbcType.VARCHAR), + @Result(column="provider_id", property="provider_id", jdbcType=JdbcType.VARCHAR), + @Result(column="tablenumber", property="tablenumber", jdbcType=JdbcType.VARCHAR), + @Result(column="annexname", property="annexname", jdbcType=JdbcType.VARCHAR), + @Result(column="projectname", property="projectname", jdbcType=JdbcType.VARCHAR), + @Result(column="eweavedate", property="eweavedate", jdbcType=JdbcType.VARCHAR), + @Result(column="checkdate", property="checkdate", jdbcType=JdbcType.VARCHAR), + @Result(column="annexpage", property="annexpage", jdbcType=JdbcType.INTEGER), + @Result(column="sortorder", property="sortorder", jdbcType=JdbcType.VARCHAR), + @Result(column="filefrom", property="filefrom", jdbcType=JdbcType.VARCHAR), + @Result(column="archivestag", property="archivestag", jdbcType=JdbcType.VARCHAR), + @Result(column="adddate", property="adddate", jdbcType=JdbcType.VARCHAR), + @Result(column="editdate", property="editdate", jdbcType=JdbcType.VARCHAR), + @Result(column="time_stamp", property="time_stamp", jdbcType=JdbcType.VARCHAR), + @Result(column="isdel", property="isdel", jdbcType=JdbcType.INTEGER), + @Result(column="downurl", property="downurl", jdbcType=JdbcType.VARCHAR), + @Result(column="filesize", property="filesize", jdbcType=JdbcType.INTEGER) + }) + List selectMany(SelectStatementProvider selectStatement); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:04:26.6158717+08:00", comments="Source Table: public.share_file") + @SelectProvider(type=SqlProviderAdapter.class, method="select") + @ResultMap("ShareFileResult") + Optional selectOne(SelectStatementProvider selectStatement); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:04:26.6158717+08:00", comments="Source Table: public.share_file") + default long count(CountDSLCompleter completer) { + return MyBatis3Utils.countFrom(this::count, shareFile, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:04:26.616897+08:00", comments="Source Table: public.share_file") + default int delete(DeleteDSLCompleter completer) { + return MyBatis3Utils.deleteFrom(this::delete, shareFile, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:04:26.616897+08:00", comments="Source Table: public.share_file") + default int deleteByPrimaryKey(String id_) { + return delete(c -> + c.where(id, isEqualTo(id_)) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:04:26.616897+08:00", comments="Source Table: public.share_file") + default int insert(ShareFile row) { + return MyBatis3Utils.insert(this::insert, row, shareFile, c -> + c.map(id).toProperty("id") + .map(p_id).toProperty("p_id") + .map(provider_id).toProperty("provider_id") + .map(tablenumber).toProperty("tablenumber") + .map(annexname).toProperty("annexname") + .map(projectname).toProperty("projectname") + .map(eweavedate).toProperty("eweavedate") + .map(checkdate).toProperty("checkdate") + .map(annexpage).toProperty("annexpage") + .map(sortorder).toProperty("sortorder") + .map(filefrom).toProperty("filefrom") + .map(archivestag).toProperty("archivestag") + .map(adddate).toProperty("adddate") + .map(editdate).toProperty("editdate") + .map(time_stamp).toProperty("time_stamp") + .map(isdel).toProperty("isdel") + .map(downurl).toProperty("downurl") + .map(filesize).toProperty("filesize") + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:04:26.6189015+08:00", comments="Source Table: public.share_file") + default int insertMultiple(Collection records) { + return MyBatis3Utils.insertMultiple(this::insertMultiple, records, shareFile, c -> + c.map(id).toProperty("id") + .map(p_id).toProperty("p_id") + .map(provider_id).toProperty("provider_id") + .map(tablenumber).toProperty("tablenumber") + .map(annexname).toProperty("annexname") + .map(projectname).toProperty("projectname") + .map(eweavedate).toProperty("eweavedate") + .map(checkdate).toProperty("checkdate") + .map(annexpage).toProperty("annexpage") + .map(sortorder).toProperty("sortorder") + .map(filefrom).toProperty("filefrom") + .map(archivestag).toProperty("archivestag") + .map(adddate).toProperty("adddate") + .map(editdate).toProperty("editdate") + .map(time_stamp).toProperty("time_stamp") + .map(isdel).toProperty("isdel") + .map(downurl).toProperty("downurl") + .map(filesize).toProperty("filesize") + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:04:26.6199692+08:00", comments="Source Table: public.share_file") + default int insertSelective(ShareFile row) { + return MyBatis3Utils.insert(this::insert, row, shareFile, c -> + c.map(id).toPropertyWhenPresent("id", row::getId) + .map(p_id).toPropertyWhenPresent("p_id", row::getP_id) + .map(provider_id).toPropertyWhenPresent("provider_id", row::getProvider_id) + .map(tablenumber).toPropertyWhenPresent("tablenumber", row::getTablenumber) + .map(annexname).toPropertyWhenPresent("annexname", row::getAnnexname) + .map(projectname).toPropertyWhenPresent("projectname", row::getProjectname) + .map(eweavedate).toPropertyWhenPresent("eweavedate", row::getEweavedate) + .map(checkdate).toPropertyWhenPresent("checkdate", row::getCheckdate) + .map(annexpage).toPropertyWhenPresent("annexpage", row::getAnnexpage) + .map(sortorder).toPropertyWhenPresent("sortorder", row::getSortorder) + .map(filefrom).toPropertyWhenPresent("filefrom", row::getFilefrom) + .map(archivestag).toPropertyWhenPresent("archivestag", row::getArchivestag) + .map(adddate).toPropertyWhenPresent("adddate", row::getAdddate) + .map(editdate).toPropertyWhenPresent("editdate", row::getEditdate) + .map(time_stamp).toPropertyWhenPresent("time_stamp", row::getTime_stamp) + .map(isdel).toPropertyWhenPresent("isdel", row::getIsdel) + .map(downurl).toPropertyWhenPresent("downurl", row::getDownurl) + .map(filesize).toPropertyWhenPresent("filesize", row::getFilesize) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:04:26.6260569+08:00", comments="Source Table: public.share_file") + default Optional selectOne(SelectDSLCompleter completer) { + return MyBatis3Utils.selectOne(this::selectOne, selectList, shareFile, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:04:26.6274924+08:00", comments="Source Table: public.share_file") + default List select(SelectDSLCompleter completer) { + return MyBatis3Utils.selectList(this::selectMany, selectList, shareFile, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:04:26.6274924+08:00", comments="Source Table: public.share_file") + default List selectDistinct(SelectDSLCompleter completer) { + return MyBatis3Utils.selectDistinct(this::selectMany, selectList, shareFile, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:04:26.6274924+08:00", comments="Source Table: public.share_file") + default Optional selectByPrimaryKey(String id_) { + return selectOne(c -> + c.where(id, isEqualTo(id_)) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:04:26.6286082+08:00", comments="Source Table: public.share_file") + default int update(UpdateDSLCompleter completer) { + return MyBatis3Utils.update(this::update, shareFile, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:04:26.6286082+08:00", comments="Source Table: public.share_file") + static UpdateDSL updateAllColumns(ShareFile row, UpdateDSL dsl) { + return dsl.set(id).equalTo(row::getId) + .set(p_id).equalTo(row::getP_id) + .set(provider_id).equalTo(row::getProvider_id) + .set(tablenumber).equalTo(row::getTablenumber) + .set(annexname).equalTo(row::getAnnexname) + .set(projectname).equalTo(row::getProjectname) + .set(eweavedate).equalTo(row::getEweavedate) + .set(checkdate).equalTo(row::getCheckdate) + .set(annexpage).equalTo(row::getAnnexpage) + .set(sortorder).equalTo(row::getSortorder) + .set(filefrom).equalTo(row::getFilefrom) + .set(archivestag).equalTo(row::getArchivestag) + .set(adddate).equalTo(row::getAdddate) + .set(editdate).equalTo(row::getEditdate) + .set(time_stamp).equalTo(row::getTime_stamp) + .set(isdel).equalTo(row::getIsdel) + .set(downurl).equalTo(row::getDownurl) + .set(filesize).equalTo(row::getFilesize); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:04:26.6297256+08:00", comments="Source Table: public.share_file") + static UpdateDSL updateSelectiveColumns(ShareFile row, UpdateDSL dsl) { + return dsl.set(id).equalToWhenPresent(row::getId) + .set(p_id).equalToWhenPresent(row::getP_id) + .set(provider_id).equalToWhenPresent(row::getProvider_id) + .set(tablenumber).equalToWhenPresent(row::getTablenumber) + .set(annexname).equalToWhenPresent(row::getAnnexname) + .set(projectname).equalToWhenPresent(row::getProjectname) + .set(eweavedate).equalToWhenPresent(row::getEweavedate) + .set(checkdate).equalToWhenPresent(row::getCheckdate) + .set(annexpage).equalToWhenPresent(row::getAnnexpage) + .set(sortorder).equalToWhenPresent(row::getSortorder) + .set(filefrom).equalToWhenPresent(row::getFilefrom) + .set(archivestag).equalToWhenPresent(row::getArchivestag) + .set(adddate).equalToWhenPresent(row::getAdddate) + .set(editdate).equalToWhenPresent(row::getEditdate) + .set(time_stamp).equalToWhenPresent(row::getTime_stamp) + .set(isdel).equalToWhenPresent(row::getIsdel) + .set(downurl).equalToWhenPresent(row::getDownurl) + .set(filesize).equalToWhenPresent(row::getFilesize); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:04:26.6308199+08:00", comments="Source Table: public.share_file") + default int updateByPrimaryKey(ShareFile row) { + return update(c -> + c.set(p_id).equalTo(row::getP_id) + .set(provider_id).equalTo(row::getProvider_id) + .set(tablenumber).equalTo(row::getTablenumber) + .set(annexname).equalTo(row::getAnnexname) + .set(projectname).equalTo(row::getProjectname) + .set(eweavedate).equalTo(row::getEweavedate) + .set(checkdate).equalTo(row::getCheckdate) + .set(annexpage).equalTo(row::getAnnexpage) + .set(sortorder).equalTo(row::getSortorder) + .set(filefrom).equalTo(row::getFilefrom) + .set(archivestag).equalTo(row::getArchivestag) + .set(adddate).equalTo(row::getAdddate) + .set(editdate).equalTo(row::getEditdate) + .set(time_stamp).equalTo(row::getTime_stamp) + .set(isdel).equalTo(row::getIsdel) + .set(downurl).equalTo(row::getDownurl) + .set(filesize).equalTo(row::getFilesize) + .where(id, isEqualTo(row::getId)) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:04:26.6308199+08:00", comments="Source Table: public.share_file") + default int updateByPrimaryKeySelective(ShareFile row) { + return update(c -> + c.set(p_id).equalToWhenPresent(row::getP_id) + .set(provider_id).equalToWhenPresent(row::getProvider_id) + .set(tablenumber).equalToWhenPresent(row::getTablenumber) + .set(annexname).equalToWhenPresent(row::getAnnexname) + .set(projectname).equalToWhenPresent(row::getProjectname) + .set(eweavedate).equalToWhenPresent(row::getEweavedate) + .set(checkdate).equalToWhenPresent(row::getCheckdate) + .set(annexpage).equalToWhenPresent(row::getAnnexpage) + .set(sortorder).equalToWhenPresent(row::getSortorder) + .set(filefrom).equalToWhenPresent(row::getFilefrom) + .set(archivestag).equalToWhenPresent(row::getArchivestag) + .set(adddate).equalToWhenPresent(row::getAdddate) + .set(editdate).equalToWhenPresent(row::getEditdate) + .set(time_stamp).equalToWhenPresent(row::getTime_stamp) + .set(isdel).equalToWhenPresent(row::getIsdel) + .set(downurl).equalToWhenPresent(row::getDownurl) + .set(filesize).equalToWhenPresent(row::getFilesize) + .where(id, isEqualTo(row::getId)) + ); + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/dao/SharedElementUpdateDetailMapper.java b/src/main/java/jj/tech/paolu/repository/mybatis/dao/SharedElementUpdateDetailMapper.java new file mode 100644 index 0000000..e5e6011 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/dao/SharedElementUpdateDetailMapper.java @@ -0,0 +1,201 @@ +package jj.tech.paolu.repository.mybatis.dao; + +import static jj.tech.paolu.repository.mybatis.dao.support.SharedElementUpdateDetailDynamicSqlSupport.*; +import static org.mybatis.dynamic.sql.SqlBuilder.isEqualTo; + +import jakarta.annotation.Generated; +import java.util.Collection; +import java.util.List; +import java.util.Optional; +import jj.tech.paolu.repository.mybatis.entity.SharedElementUpdateDetail; +import org.apache.ibatis.annotations.Mapper; +import org.apache.ibatis.annotations.Result; +import org.apache.ibatis.annotations.ResultMap; +import org.apache.ibatis.annotations.Results; +import org.apache.ibatis.annotations.SelectProvider; +import org.apache.ibatis.type.JdbcType; +import org.mybatis.dynamic.sql.BasicColumn; +import org.mybatis.dynamic.sql.delete.DeleteDSLCompleter; +import org.mybatis.dynamic.sql.select.CountDSLCompleter; +import org.mybatis.dynamic.sql.select.SelectDSLCompleter; +import org.mybatis.dynamic.sql.select.render.SelectStatementProvider; +import org.mybatis.dynamic.sql.update.UpdateDSL; +import org.mybatis.dynamic.sql.update.UpdateDSLCompleter; +import org.mybatis.dynamic.sql.update.UpdateModel; +import org.mybatis.dynamic.sql.util.SqlProviderAdapter; +import org.mybatis.dynamic.sql.util.mybatis3.CommonCountMapper; +import org.mybatis.dynamic.sql.util.mybatis3.CommonDeleteMapper; +import org.mybatis.dynamic.sql.util.mybatis3.CommonInsertMapper; +import org.mybatis.dynamic.sql.util.mybatis3.CommonUpdateMapper; +import org.mybatis.dynamic.sql.util.mybatis3.MyBatis3Utils; + +@Mapper +public interface SharedElementUpdateDetailMapper extends CommonCountMapper, CommonDeleteMapper, CommonInsertMapper, CommonUpdateMapper { + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2621483+08:00", comments="Source Table: public.shared_element_update_detail") + BasicColumn[] selectList = BasicColumn.columnList(id, update_record_id, node_type, node_id, share_status, execute_start_time, execute_end_time, execute_desp, execute_success); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.261151+08:00", comments="Source Table: public.shared_element_update_detail") + @SelectProvider(type=SqlProviderAdapter.class, method="select") + @Results(id="SharedElementUpdateDetailResult", value = { + @Result(column="id", property="id", jdbcType=JdbcType.VARCHAR, id=true), + @Result(column="update_record_id", property="update_record_id", jdbcType=JdbcType.VARCHAR), + @Result(column="node_type", property="node_type", jdbcType=JdbcType.INTEGER), + @Result(column="node_id", property="node_id", jdbcType=JdbcType.VARCHAR), + @Result(column="share_status", property="share_status", jdbcType=JdbcType.INTEGER), + @Result(column="execute_start_time", property="execute_start_time", jdbcType=JdbcType.TIMESTAMP), + @Result(column="execute_end_time", property="execute_end_time", jdbcType=JdbcType.TIMESTAMP), + @Result(column="execute_desp", property="execute_desp", jdbcType=JdbcType.VARCHAR), + @Result(column="execute_success", property="execute_success", jdbcType=JdbcType.INTEGER) + }) + List selectMany(SelectStatementProvider selectStatement); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2621483+08:00", comments="Source Table: public.shared_element_update_detail") + @SelectProvider(type=SqlProviderAdapter.class, method="select") + @ResultMap("SharedElementUpdateDetailResult") + Optional selectOne(SelectStatementProvider selectStatement); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2621483+08:00", comments="Source Table: public.shared_element_update_detail") + default long count(CountDSLCompleter completer) { + return MyBatis3Utils.countFrom(this::count, sharedElementUpdateDetail, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2621483+08:00", comments="Source Table: public.shared_element_update_detail") + default int delete(DeleteDSLCompleter completer) { + return MyBatis3Utils.deleteFrom(this::delete, sharedElementUpdateDetail, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2621483+08:00", comments="Source Table: public.shared_element_update_detail") + default int deleteByPrimaryKey(String id_) { + return delete(c -> + c.where(id, isEqualTo(id_)) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2621483+08:00", comments="Source Table: public.shared_element_update_detail") + default int insert(SharedElementUpdateDetail row) { + return MyBatis3Utils.insert(this::insert, row, sharedElementUpdateDetail, c -> + c.map(id).toProperty("id") + .map(update_record_id).toProperty("update_record_id") + .map(node_type).toProperty("node_type") + .map(node_id).toProperty("node_id") + .map(share_status).toProperty("share_status") + .map(execute_start_time).toProperty("execute_start_time") + .map(execute_end_time).toProperty("execute_end_time") + .map(execute_desp).toProperty("execute_desp") + .map(execute_success).toProperty("execute_success") + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2621483+08:00", comments="Source Table: public.shared_element_update_detail") + default int insertMultiple(Collection records) { + return MyBatis3Utils.insertMultiple(this::insertMultiple, records, sharedElementUpdateDetail, c -> + c.map(id).toProperty("id") + .map(update_record_id).toProperty("update_record_id") + .map(node_type).toProperty("node_type") + .map(node_id).toProperty("node_id") + .map(share_status).toProperty("share_status") + .map(execute_start_time).toProperty("execute_start_time") + .map(execute_end_time).toProperty("execute_end_time") + .map(execute_desp).toProperty("execute_desp") + .map(execute_success).toProperty("execute_success") + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2621483+08:00", comments="Source Table: public.shared_element_update_detail") + default int insertSelective(SharedElementUpdateDetail row) { + return MyBatis3Utils.insert(this::insert, row, sharedElementUpdateDetail, c -> + c.map(id).toPropertyWhenPresent("id", row::getId) + .map(update_record_id).toPropertyWhenPresent("update_record_id", row::getUpdate_record_id) + .map(node_type).toPropertyWhenPresent("node_type", row::getNode_type) + .map(node_id).toPropertyWhenPresent("node_id", row::getNode_id) + .map(share_status).toPropertyWhenPresent("share_status", row::getShare_status) + .map(execute_start_time).toPropertyWhenPresent("execute_start_time", row::getExecute_start_time) + .map(execute_end_time).toPropertyWhenPresent("execute_end_time", row::getExecute_end_time) + .map(execute_desp).toPropertyWhenPresent("execute_desp", row::getExecute_desp) + .map(execute_success).toPropertyWhenPresent("execute_success", row::getExecute_success) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2621483+08:00", comments="Source Table: public.shared_element_update_detail") + default Optional selectOne(SelectDSLCompleter completer) { + return MyBatis3Utils.selectOne(this::selectOne, selectList, sharedElementUpdateDetail, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2621483+08:00", comments="Source Table: public.shared_element_update_detail") + default List select(SelectDSLCompleter completer) { + return MyBatis3Utils.selectList(this::selectMany, selectList, sharedElementUpdateDetail, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2621483+08:00", comments="Source Table: public.shared_element_update_detail") + default List selectDistinct(SelectDSLCompleter completer) { + return MyBatis3Utils.selectDistinct(this::selectMany, selectList, sharedElementUpdateDetail, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2621483+08:00", comments="Source Table: public.shared_element_update_detail") + default Optional selectByPrimaryKey(String id_) { + return selectOne(c -> + c.where(id, isEqualTo(id_)) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2621483+08:00", comments="Source Table: public.shared_element_update_detail") + default int update(UpdateDSLCompleter completer) { + return MyBatis3Utils.update(this::update, sharedElementUpdateDetail, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2621483+08:00", comments="Source Table: public.shared_element_update_detail") + static UpdateDSL updateAllColumns(SharedElementUpdateDetail row, UpdateDSL dsl) { + return dsl.set(id).equalTo(row::getId) + .set(update_record_id).equalTo(row::getUpdate_record_id) + .set(node_type).equalTo(row::getNode_type) + .set(node_id).equalTo(row::getNode_id) + .set(share_status).equalTo(row::getShare_status) + .set(execute_start_time).equalTo(row::getExecute_start_time) + .set(execute_end_time).equalTo(row::getExecute_end_time) + .set(execute_desp).equalTo(row::getExecute_desp) + .set(execute_success).equalTo(row::getExecute_success); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2631526+08:00", comments="Source Table: public.shared_element_update_detail") + static UpdateDSL updateSelectiveColumns(SharedElementUpdateDetail row, UpdateDSL dsl) { + return dsl.set(id).equalToWhenPresent(row::getId) + .set(update_record_id).equalToWhenPresent(row::getUpdate_record_id) + .set(node_type).equalToWhenPresent(row::getNode_type) + .set(node_id).equalToWhenPresent(row::getNode_id) + .set(share_status).equalToWhenPresent(row::getShare_status) + .set(execute_start_time).equalToWhenPresent(row::getExecute_start_time) + .set(execute_end_time).equalToWhenPresent(row::getExecute_end_time) + .set(execute_desp).equalToWhenPresent(row::getExecute_desp) + .set(execute_success).equalToWhenPresent(row::getExecute_success); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2631526+08:00", comments="Source Table: public.shared_element_update_detail") + default int updateByPrimaryKey(SharedElementUpdateDetail row) { + return update(c -> + c.set(update_record_id).equalTo(row::getUpdate_record_id) + .set(node_type).equalTo(row::getNode_type) + .set(node_id).equalTo(row::getNode_id) + .set(share_status).equalTo(row::getShare_status) + .set(execute_start_time).equalTo(row::getExecute_start_time) + .set(execute_end_time).equalTo(row::getExecute_end_time) + .set(execute_desp).equalTo(row::getExecute_desp) + .set(execute_success).equalTo(row::getExecute_success) + .where(id, isEqualTo(row::getId)) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2631526+08:00", comments="Source Table: public.shared_element_update_detail") + default int updateByPrimaryKeySelective(SharedElementUpdateDetail row) { + return update(c -> + c.set(update_record_id).equalToWhenPresent(row::getUpdate_record_id) + .set(node_type).equalToWhenPresent(row::getNode_type) + .set(node_id).equalToWhenPresent(row::getNode_id) + .set(share_status).equalToWhenPresent(row::getShare_status) + .set(execute_start_time).equalToWhenPresent(row::getExecute_start_time) + .set(execute_end_time).equalToWhenPresent(row::getExecute_end_time) + .set(execute_desp).equalToWhenPresent(row::getExecute_desp) + .set(execute_success).equalToWhenPresent(row::getExecute_success) + .where(id, isEqualTo(row::getId)) + ); + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/dao/SharedElementUpdateRecordMapper.java b/src/main/java/jj/tech/paolu/repository/mybatis/dao/SharedElementUpdateRecordMapper.java new file mode 100644 index 0000000..cdf420e --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/dao/SharedElementUpdateRecordMapper.java @@ -0,0 +1,241 @@ +package jj.tech.paolu.repository.mybatis.dao; + +import static jj.tech.paolu.repository.mybatis.dao.support.SharedElementUpdateRecordDynamicSqlSupport.*; +import static org.mybatis.dynamic.sql.SqlBuilder.isEqualTo; + +import jakarta.annotation.Generated; +import java.util.Collection; +import java.util.List; +import java.util.Optional; +import jj.tech.paolu.repository.mybatis.entity.SharedElementUpdateRecord; +import org.apache.ibatis.annotations.Mapper; +import org.apache.ibatis.annotations.Result; +import org.apache.ibatis.annotations.ResultMap; +import org.apache.ibatis.annotations.Results; +import org.apache.ibatis.annotations.SelectProvider; +import org.apache.ibatis.type.JdbcType; +import org.mybatis.dynamic.sql.BasicColumn; +import org.mybatis.dynamic.sql.delete.DeleteDSLCompleter; +import org.mybatis.dynamic.sql.select.CountDSLCompleter; +import org.mybatis.dynamic.sql.select.SelectDSLCompleter; +import org.mybatis.dynamic.sql.select.render.SelectStatementProvider; +import org.mybatis.dynamic.sql.update.UpdateDSL; +import org.mybatis.dynamic.sql.update.UpdateDSLCompleter; +import org.mybatis.dynamic.sql.update.UpdateModel; +import org.mybatis.dynamic.sql.util.SqlProviderAdapter; +import org.mybatis.dynamic.sql.util.mybatis3.CommonCountMapper; +import org.mybatis.dynamic.sql.util.mybatis3.CommonDeleteMapper; +import org.mybatis.dynamic.sql.util.mybatis3.CommonInsertMapper; +import org.mybatis.dynamic.sql.util.mybatis3.CommonUpdateMapper; +import org.mybatis.dynamic.sql.util.mybatis3.MyBatis3Utils; + +@Mapper +public interface SharedElementUpdateRecordMapper extends CommonCountMapper, CommonDeleteMapper, CommonInsertMapper, CommonUpdateMapper { + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T16:19:53.9546248+08:00", comments="Source Table: public.shared_element_update_record") + BasicColumn[] selectList = BasicColumn.columnList(id, share_rule_id, user_id, desp, create_time, node_count, source, execute_start_time, execute_end_time, execute_desp, execute_status, succ_exec_node_count, act_node_count, execute_count); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T16:19:53.9431757+08:00", comments="Source Table: public.shared_element_update_record") + @SelectProvider(type=SqlProviderAdapter.class, method="select") + @Results(id="SharedElementUpdateRecordResult", value = { + @Result(column="id", property="id", jdbcType=JdbcType.VARCHAR, id=true), + @Result(column="share_rule_id", property="share_rule_id", jdbcType=JdbcType.VARCHAR), + @Result(column="user_id", property="user_id", jdbcType=JdbcType.VARCHAR), + @Result(column="desp", property="desp", jdbcType=JdbcType.VARCHAR), + @Result(column="create_time", property="create_time", jdbcType=JdbcType.TIMESTAMP), + @Result(column="node_count", property="node_count", jdbcType=JdbcType.BIGINT), + @Result(column="source", property="source", jdbcType=JdbcType.VARCHAR), + @Result(column="execute_start_time", property="execute_start_time", jdbcType=JdbcType.TIMESTAMP), + @Result(column="execute_end_time", property="execute_end_time", jdbcType=JdbcType.TIMESTAMP), + @Result(column="execute_desp", property="execute_desp", jdbcType=JdbcType.VARCHAR), + @Result(column="execute_status", property="execute_status", jdbcType=JdbcType.INTEGER), + @Result(column="succ_exec_node_count", property="succ_exec_node_count", jdbcType=JdbcType.INTEGER), + @Result(column="act_node_count", property="act_node_count", jdbcType=JdbcType.INTEGER), + @Result(column="execute_count", property="execute_count", jdbcType=JdbcType.INTEGER) + }) + List selectMany(SelectStatementProvider selectStatement); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T16:19:53.945177+08:00", comments="Source Table: public.shared_element_update_record") + @SelectProvider(type=SqlProviderAdapter.class, method="select") + @ResultMap("SharedElementUpdateRecordResult") + Optional selectOne(SelectStatementProvider selectStatement); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T16:19:53.9461772+08:00", comments="Source Table: public.shared_element_update_record") + default long count(CountDSLCompleter completer) { + return MyBatis3Utils.countFrom(this::count, sharedElementUpdateRecord, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T16:19:53.9461772+08:00", comments="Source Table: public.shared_element_update_record") + default int delete(DeleteDSLCompleter completer) { + return MyBatis3Utils.deleteFrom(this::delete, sharedElementUpdateRecord, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T16:19:53.9461772+08:00", comments="Source Table: public.shared_element_update_record") + default int deleteByPrimaryKey(String id_) { + return delete(c -> + c.where(id, isEqualTo(id_)) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T16:19:53.9506218+08:00", comments="Source Table: public.shared_element_update_record") + default int insert(SharedElementUpdateRecord row) { + return MyBatis3Utils.insert(this::insert, row, sharedElementUpdateRecord, c -> + c.map(id).toProperty("id") + .map(share_rule_id).toProperty("share_rule_id") + .map(user_id).toProperty("user_id") + .map(desp).toProperty("desp") + .map(create_time).toProperty("create_time") + .map(node_count).toProperty("node_count") + .map(source).toProperty("source") + .map(execute_start_time).toProperty("execute_start_time") + .map(execute_end_time).toProperty("execute_end_time") + .map(execute_desp).toProperty("execute_desp") + .map(execute_status).toProperty("execute_status") + .map(succ_exec_node_count).toProperty("succ_exec_node_count") + .map(act_node_count).toProperty("act_node_count") + .map(execute_count).toProperty("execute_count") + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T16:19:53.9526216+08:00", comments="Source Table: public.shared_element_update_record") + default int insertMultiple(Collection records) { + return MyBatis3Utils.insertMultiple(this::insertMultiple, records, sharedElementUpdateRecord, c -> + c.map(id).toProperty("id") + .map(share_rule_id).toProperty("share_rule_id") + .map(user_id).toProperty("user_id") + .map(desp).toProperty("desp") + .map(create_time).toProperty("create_time") + .map(node_count).toProperty("node_count") + .map(source).toProperty("source") + .map(execute_start_time).toProperty("execute_start_time") + .map(execute_end_time).toProperty("execute_end_time") + .map(execute_desp).toProperty("execute_desp") + .map(execute_status).toProperty("execute_status") + .map(succ_exec_node_count).toProperty("succ_exec_node_count") + .map(act_node_count).toProperty("act_node_count") + .map(execute_count).toProperty("execute_count") + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T16:19:53.953636+08:00", comments="Source Table: public.shared_element_update_record") + default int insertSelective(SharedElementUpdateRecord row) { + return MyBatis3Utils.insert(this::insert, row, sharedElementUpdateRecord, c -> + c.map(id).toPropertyWhenPresent("id", row::getId) + .map(share_rule_id).toPropertyWhenPresent("share_rule_id", row::getShare_rule_id) + .map(user_id).toPropertyWhenPresent("user_id", row::getUser_id) + .map(desp).toPropertyWhenPresent("desp", row::getDesp) + .map(create_time).toPropertyWhenPresent("create_time", row::getCreate_time) + .map(node_count).toPropertyWhenPresent("node_count", row::getNode_count) + .map(source).toPropertyWhenPresent("source", row::getSource) + .map(execute_start_time).toPropertyWhenPresent("execute_start_time", row::getExecute_start_time) + .map(execute_end_time).toPropertyWhenPresent("execute_end_time", row::getExecute_end_time) + .map(execute_desp).toPropertyWhenPresent("execute_desp", row::getExecute_desp) + .map(execute_status).toPropertyWhenPresent("execute_status", row::getExecute_status) + .map(succ_exec_node_count).toPropertyWhenPresent("succ_exec_node_count", row::getSucc_exec_node_count) + .map(act_node_count).toPropertyWhenPresent("act_node_count", row::getAct_node_count) + .map(execute_count).toPropertyWhenPresent("execute_count", row::getExecute_count) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T16:19:53.9556238+08:00", comments="Source Table: public.shared_element_update_record") + default Optional selectOne(SelectDSLCompleter completer) { + return MyBatis3Utils.selectOne(this::selectOne, selectList, sharedElementUpdateRecord, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T16:19:53.9566228+08:00", comments="Source Table: public.shared_element_update_record") + default List select(SelectDSLCompleter completer) { + return MyBatis3Utils.selectList(this::selectMany, selectList, sharedElementUpdateRecord, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T16:19:53.9566228+08:00", comments="Source Table: public.shared_element_update_record") + default List selectDistinct(SelectDSLCompleter completer) { + return MyBatis3Utils.selectDistinct(this::selectMany, selectList, sharedElementUpdateRecord, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T16:19:53.9566228+08:00", comments="Source Table: public.shared_element_update_record") + default Optional selectByPrimaryKey(String id_) { + return selectOne(c -> + c.where(id, isEqualTo(id_)) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T16:19:53.9576323+08:00", comments="Source Table: public.shared_element_update_record") + default int update(UpdateDSLCompleter completer) { + return MyBatis3Utils.update(this::update, sharedElementUpdateRecord, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T16:19:53.9576323+08:00", comments="Source Table: public.shared_element_update_record") + static UpdateDSL updateAllColumns(SharedElementUpdateRecord row, UpdateDSL dsl) { + return dsl.set(id).equalTo(row::getId) + .set(share_rule_id).equalTo(row::getShare_rule_id) + .set(user_id).equalTo(row::getUser_id) + .set(desp).equalTo(row::getDesp) + .set(create_time).equalTo(row::getCreate_time) + .set(node_count).equalTo(row::getNode_count) + .set(source).equalTo(row::getSource) + .set(execute_start_time).equalTo(row::getExecute_start_time) + .set(execute_end_time).equalTo(row::getExecute_end_time) + .set(execute_desp).equalTo(row::getExecute_desp) + .set(execute_status).equalTo(row::getExecute_status) + .set(succ_exec_node_count).equalTo(row::getSucc_exec_node_count) + .set(act_node_count).equalTo(row::getAct_node_count) + .set(execute_count).equalTo(row::getExecute_count); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T16:19:53.9576323+08:00", comments="Source Table: public.shared_element_update_record") + static UpdateDSL updateSelectiveColumns(SharedElementUpdateRecord row, UpdateDSL dsl) { + return dsl.set(id).equalToWhenPresent(row::getId) + .set(share_rule_id).equalToWhenPresent(row::getShare_rule_id) + .set(user_id).equalToWhenPresent(row::getUser_id) + .set(desp).equalToWhenPresent(row::getDesp) + .set(create_time).equalToWhenPresent(row::getCreate_time) + .set(node_count).equalToWhenPresent(row::getNode_count) + .set(source).equalToWhenPresent(row::getSource) + .set(execute_start_time).equalToWhenPresent(row::getExecute_start_time) + .set(execute_end_time).equalToWhenPresent(row::getExecute_end_time) + .set(execute_desp).equalToWhenPresent(row::getExecute_desp) + .set(execute_status).equalToWhenPresent(row::getExecute_status) + .set(succ_exec_node_count).equalToWhenPresent(row::getSucc_exec_node_count) + .set(act_node_count).equalToWhenPresent(row::getAct_node_count) + .set(execute_count).equalToWhenPresent(row::getExecute_count); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T16:19:53.9586206+08:00", comments="Source Table: public.shared_element_update_record") + default int updateByPrimaryKey(SharedElementUpdateRecord row) { + return update(c -> + c.set(share_rule_id).equalTo(row::getShare_rule_id) + .set(user_id).equalTo(row::getUser_id) + .set(desp).equalTo(row::getDesp) + .set(create_time).equalTo(row::getCreate_time) + .set(node_count).equalTo(row::getNode_count) + .set(source).equalTo(row::getSource) + .set(execute_start_time).equalTo(row::getExecute_start_time) + .set(execute_end_time).equalTo(row::getExecute_end_time) + .set(execute_desp).equalTo(row::getExecute_desp) + .set(execute_status).equalTo(row::getExecute_status) + .set(succ_exec_node_count).equalTo(row::getSucc_exec_node_count) + .set(act_node_count).equalTo(row::getAct_node_count) + .set(execute_count).equalTo(row::getExecute_count) + .where(id, isEqualTo(row::getId)) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T16:19:53.9596222+08:00", comments="Source Table: public.shared_element_update_record") + default int updateByPrimaryKeySelective(SharedElementUpdateRecord row) { + return update(c -> + c.set(share_rule_id).equalToWhenPresent(row::getShare_rule_id) + .set(user_id).equalToWhenPresent(row::getUser_id) + .set(desp).equalToWhenPresent(row::getDesp) + .set(create_time).equalToWhenPresent(row::getCreate_time) + .set(node_count).equalToWhenPresent(row::getNode_count) + .set(source).equalToWhenPresent(row::getSource) + .set(execute_start_time).equalToWhenPresent(row::getExecute_start_time) + .set(execute_end_time).equalToWhenPresent(row::getExecute_end_time) + .set(execute_desp).equalToWhenPresent(row::getExecute_desp) + .set(execute_status).equalToWhenPresent(row::getExecute_status) + .set(succ_exec_node_count).equalToWhenPresent(row::getSucc_exec_node_count) + .set(act_node_count).equalToWhenPresent(row::getAct_node_count) + .set(execute_count).equalToWhenPresent(row::getExecute_count) + .where(id, isEqualTo(row::getId)) + ); + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/dao/SharedRuleConfigMapper.java b/src/main/java/jj/tech/paolu/repository/mybatis/dao/SharedRuleConfigMapper.java new file mode 100644 index 0000000..1b3078f --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/dao/SharedRuleConfigMapper.java @@ -0,0 +1,177 @@ +package jj.tech.paolu.repository.mybatis.dao; + +import static jj.tech.paolu.repository.mybatis.dao.support.SharedRuleConfigDynamicSqlSupport.*; +import static org.mybatis.dynamic.sql.SqlBuilder.isEqualTo; + +import jakarta.annotation.Generated; +import java.util.Collection; +import java.util.List; +import java.util.Optional; +import jj.tech.paolu.repository.mybatis.entity.SharedRuleConfig; +import org.apache.ibatis.annotations.Mapper; +import org.apache.ibatis.annotations.Result; +import org.apache.ibatis.annotations.ResultMap; +import org.apache.ibatis.annotations.Results; +import org.apache.ibatis.annotations.SelectProvider; +import org.apache.ibatis.type.JdbcType; +import org.mybatis.dynamic.sql.BasicColumn; +import org.mybatis.dynamic.sql.delete.DeleteDSLCompleter; +import org.mybatis.dynamic.sql.select.CountDSLCompleter; +import org.mybatis.dynamic.sql.select.SelectDSLCompleter; +import org.mybatis.dynamic.sql.select.render.SelectStatementProvider; +import org.mybatis.dynamic.sql.update.UpdateDSL; +import org.mybatis.dynamic.sql.update.UpdateDSLCompleter; +import org.mybatis.dynamic.sql.update.UpdateModel; +import org.mybatis.dynamic.sql.util.SqlProviderAdapter; +import org.mybatis.dynamic.sql.util.mybatis3.CommonCountMapper; +import org.mybatis.dynamic.sql.util.mybatis3.CommonDeleteMapper; +import org.mybatis.dynamic.sql.util.mybatis3.CommonInsertMapper; +import org.mybatis.dynamic.sql.util.mybatis3.CommonUpdateMapper; +import org.mybatis.dynamic.sql.util.mybatis3.MyBatis3Utils; + +@Mapper +public interface SharedRuleConfigMapper extends CommonCountMapper, CommonDeleteMapper, CommonInsertMapper, CommonUpdateMapper { + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3131471+08:00", comments="Source Table: public.shared_rule_config") + BasicColumn[] selectList = BasicColumn.columnList(id, name, describe, status, sort, project_name); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3131471+08:00", comments="Source Table: public.shared_rule_config") + @SelectProvider(type=SqlProviderAdapter.class, method="select") + @Results(id="SharedRuleConfigResult", value = { + @Result(column="id", property="id", jdbcType=JdbcType.VARCHAR, id=true), + @Result(column="name", property="name", jdbcType=JdbcType.VARCHAR), + @Result(column="describe", property="describe", jdbcType=JdbcType.VARCHAR), + @Result(column="status", property="status", jdbcType=JdbcType.INTEGER), + @Result(column="sort", property="sort", jdbcType=JdbcType.INTEGER), + @Result(column="project_name", property="project_name", jdbcType=JdbcType.VARCHAR) + }) + List selectMany(SelectStatementProvider selectStatement); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3131471+08:00", comments="Source Table: public.shared_rule_config") + @SelectProvider(type=SqlProviderAdapter.class, method="select") + @ResultMap("SharedRuleConfigResult") + Optional selectOne(SelectStatementProvider selectStatement); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3131471+08:00", comments="Source Table: public.shared_rule_config") + default long count(CountDSLCompleter completer) { + return MyBatis3Utils.countFrom(this::count, sharedRuleConfig, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3131471+08:00", comments="Source Table: public.shared_rule_config") + default int delete(DeleteDSLCompleter completer) { + return MyBatis3Utils.deleteFrom(this::delete, sharedRuleConfig, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3131471+08:00", comments="Source Table: public.shared_rule_config") + default int deleteByPrimaryKey(String id_) { + return delete(c -> + c.where(id, isEqualTo(id_)) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3131471+08:00", comments="Source Table: public.shared_rule_config") + default int insert(SharedRuleConfig row) { + return MyBatis3Utils.insert(this::insert, row, sharedRuleConfig, c -> + c.map(id).toProperty("id") + .map(name).toProperty("name") + .map(describe).toProperty("describe") + .map(status).toProperty("status") + .map(sort).toProperty("sort") + .map(project_name).toProperty("project_name") + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3131471+08:00", comments="Source Table: public.shared_rule_config") + default int insertMultiple(Collection records) { + return MyBatis3Utils.insertMultiple(this::insertMultiple, records, sharedRuleConfig, c -> + c.map(id).toProperty("id") + .map(name).toProperty("name") + .map(describe).toProperty("describe") + .map(status).toProperty("status") + .map(sort).toProperty("sort") + .map(project_name).toProperty("project_name") + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3131471+08:00", comments="Source Table: public.shared_rule_config") + default int insertSelective(SharedRuleConfig row) { + return MyBatis3Utils.insert(this::insert, row, sharedRuleConfig, c -> + c.map(id).toPropertyWhenPresent("id", row::getId) + .map(name).toPropertyWhenPresent("name", row::getName) + .map(describe).toPropertyWhenPresent("describe", row::getDescribe) + .map(status).toPropertyWhenPresent("status", row::getStatus) + .map(sort).toPropertyWhenPresent("sort", row::getSort) + .map(project_name).toPropertyWhenPresent("project_name", row::getProject_name) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3131471+08:00", comments="Source Table: public.shared_rule_config") + default Optional selectOne(SelectDSLCompleter completer) { + return MyBatis3Utils.selectOne(this::selectOne, selectList, sharedRuleConfig, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3131471+08:00", comments="Source Table: public.shared_rule_config") + default List select(SelectDSLCompleter completer) { + return MyBatis3Utils.selectList(this::selectMany, selectList, sharedRuleConfig, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3131471+08:00", comments="Source Table: public.shared_rule_config") + default List selectDistinct(SelectDSLCompleter completer) { + return MyBatis3Utils.selectDistinct(this::selectMany, selectList, sharedRuleConfig, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3131471+08:00", comments="Source Table: public.shared_rule_config") + default Optional selectByPrimaryKey(String id_) { + return selectOne(c -> + c.where(id, isEqualTo(id_)) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3131471+08:00", comments="Source Table: public.shared_rule_config") + default int update(UpdateDSLCompleter completer) { + return MyBatis3Utils.update(this::update, sharedRuleConfig, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3131471+08:00", comments="Source Table: public.shared_rule_config") + static UpdateDSL updateAllColumns(SharedRuleConfig row, UpdateDSL dsl) { + return dsl.set(id).equalTo(row::getId) + .set(name).equalTo(row::getName) + .set(describe).equalTo(row::getDescribe) + .set(status).equalTo(row::getStatus) + .set(sort).equalTo(row::getSort) + .set(project_name).equalTo(row::getProject_name); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3131471+08:00", comments="Source Table: public.shared_rule_config") + static UpdateDSL updateSelectiveColumns(SharedRuleConfig row, UpdateDSL dsl) { + return dsl.set(id).equalToWhenPresent(row::getId) + .set(name).equalToWhenPresent(row::getName) + .set(describe).equalToWhenPresent(row::getDescribe) + .set(status).equalToWhenPresent(row::getStatus) + .set(sort).equalToWhenPresent(row::getSort) + .set(project_name).equalToWhenPresent(row::getProject_name); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3131471+08:00", comments="Source Table: public.shared_rule_config") + default int updateByPrimaryKey(SharedRuleConfig row) { + return update(c -> + c.set(name).equalTo(row::getName) + .set(describe).equalTo(row::getDescribe) + .set(status).equalTo(row::getStatus) + .set(sort).equalTo(row::getSort) + .set(project_name).equalTo(row::getProject_name) + .where(id, isEqualTo(row::getId)) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3131471+08:00", comments="Source Table: public.shared_rule_config") + default int updateByPrimaryKeySelective(SharedRuleConfig row) { + return update(c -> + c.set(name).equalToWhenPresent(row::getName) + .set(describe).equalToWhenPresent(row::getDescribe) + .set(status).equalToWhenPresent(row::getStatus) + .set(sort).equalToWhenPresent(row::getSort) + .set(project_name).equalToWhenPresent(row::getProject_name) + .where(id, isEqualTo(row::getId)) + ); + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/dao/SharedSynAllMapper.java b/src/main/java/jj/tech/paolu/repository/mybatis/dao/SharedSynAllMapper.java new file mode 100644 index 0000000..550c8f9 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/dao/SharedSynAllMapper.java @@ -0,0 +1,201 @@ +package jj.tech.paolu.repository.mybatis.dao; + +import static jj.tech.paolu.repository.mybatis.dao.support.SharedSynAllDynamicSqlSupport.*; +import static org.mybatis.dynamic.sql.SqlBuilder.isEqualTo; + +import jakarta.annotation.Generated; +import java.util.Collection; +import java.util.List; +import java.util.Optional; +import jj.tech.paolu.repository.mybatis.entity.SharedSynAll; +import org.apache.ibatis.annotations.Mapper; +import org.apache.ibatis.annotations.Result; +import org.apache.ibatis.annotations.ResultMap; +import org.apache.ibatis.annotations.Results; +import org.apache.ibatis.annotations.SelectProvider; +import org.apache.ibatis.type.JdbcType; +import org.mybatis.dynamic.sql.BasicColumn; +import org.mybatis.dynamic.sql.delete.DeleteDSLCompleter; +import org.mybatis.dynamic.sql.select.CountDSLCompleter; +import org.mybatis.dynamic.sql.select.SelectDSLCompleter; +import org.mybatis.dynamic.sql.select.render.SelectStatementProvider; +import org.mybatis.dynamic.sql.update.UpdateDSL; +import org.mybatis.dynamic.sql.update.UpdateDSLCompleter; +import org.mybatis.dynamic.sql.update.UpdateModel; +import org.mybatis.dynamic.sql.util.SqlProviderAdapter; +import org.mybatis.dynamic.sql.util.mybatis3.CommonCountMapper; +import org.mybatis.dynamic.sql.util.mybatis3.CommonDeleteMapper; +import org.mybatis.dynamic.sql.util.mybatis3.CommonInsertMapper; +import org.mybatis.dynamic.sql.util.mybatis3.CommonUpdateMapper; +import org.mybatis.dynamic.sql.util.mybatis3.MyBatis3Utils; + +@Mapper +public interface SharedSynAllMapper extends CommonCountMapper, CommonDeleteMapper, CommonInsertMapper, CommonUpdateMapper { + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.303149+08:00", comments="Source Table: public.shared_syn_all") + BasicColumn[] selectList = BasicColumn.columnList(id, syn_id, syn_type, is_config_rule, shared_status, syn_status, block_number, block_hash, block_time); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.303149+08:00", comments="Source Table: public.shared_syn_all") + @SelectProvider(type=SqlProviderAdapter.class, method="select") + @Results(id="SharedSynAllResult", value = { + @Result(column="id", property="id", jdbcType=JdbcType.VARCHAR, id=true), + @Result(column="syn_id", property="syn_id", jdbcType=JdbcType.VARCHAR), + @Result(column="syn_type", property="syn_type", jdbcType=JdbcType.INTEGER), + @Result(column="is_config_rule", property="is_config_rule", jdbcType=JdbcType.INTEGER), + @Result(column="shared_status", property="shared_status", jdbcType=JdbcType.INTEGER), + @Result(column="syn_status", property="syn_status", jdbcType=JdbcType.INTEGER), + @Result(column="block_number", property="block_number", jdbcType=JdbcType.VARCHAR), + @Result(column="block_hash", property="block_hash", jdbcType=JdbcType.VARCHAR), + @Result(column="block_time", property="block_time", jdbcType=JdbcType.VARCHAR) + }) + List selectMany(SelectStatementProvider selectStatement); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.303149+08:00", comments="Source Table: public.shared_syn_all") + @SelectProvider(type=SqlProviderAdapter.class, method="select") + @ResultMap("SharedSynAllResult") + Optional selectOne(SelectStatementProvider selectStatement); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.303149+08:00", comments="Source Table: public.shared_syn_all") + default long count(CountDSLCompleter completer) { + return MyBatis3Utils.countFrom(this::count, sharedSynAll, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.303149+08:00", comments="Source Table: public.shared_syn_all") + default int delete(DeleteDSLCompleter completer) { + return MyBatis3Utils.deleteFrom(this::delete, sharedSynAll, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.303149+08:00", comments="Source Table: public.shared_syn_all") + default int deleteByPrimaryKey(String id_) { + return delete(c -> + c.where(id, isEqualTo(id_)) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.303149+08:00", comments="Source Table: public.shared_syn_all") + default int insert(SharedSynAll row) { + return MyBatis3Utils.insert(this::insert, row, sharedSynAll, c -> + c.map(id).toProperty("id") + .map(syn_id).toProperty("syn_id") + .map(syn_type).toProperty("syn_type") + .map(is_config_rule).toProperty("is_config_rule") + .map(shared_status).toProperty("shared_status") + .map(syn_status).toProperty("syn_status") + .map(block_number).toProperty("block_number") + .map(block_hash).toProperty("block_hash") + .map(block_time).toProperty("block_time") + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.303149+08:00", comments="Source Table: public.shared_syn_all") + default int insertMultiple(Collection records) { + return MyBatis3Utils.insertMultiple(this::insertMultiple, records, sharedSynAll, c -> + c.map(id).toProperty("id") + .map(syn_id).toProperty("syn_id") + .map(syn_type).toProperty("syn_type") + .map(is_config_rule).toProperty("is_config_rule") + .map(shared_status).toProperty("shared_status") + .map(syn_status).toProperty("syn_status") + .map(block_number).toProperty("block_number") + .map(block_hash).toProperty("block_hash") + .map(block_time).toProperty("block_time") + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.303149+08:00", comments="Source Table: public.shared_syn_all") + default int insertSelective(SharedSynAll row) { + return MyBatis3Utils.insert(this::insert, row, sharedSynAll, c -> + c.map(id).toPropertyWhenPresent("id", row::getId) + .map(syn_id).toPropertyWhenPresent("syn_id", row::getSyn_id) + .map(syn_type).toPropertyWhenPresent("syn_type", row::getSyn_type) + .map(is_config_rule).toPropertyWhenPresent("is_config_rule", row::getIs_config_rule) + .map(shared_status).toPropertyWhenPresent("shared_status", row::getShared_status) + .map(syn_status).toPropertyWhenPresent("syn_status", row::getSyn_status) + .map(block_number).toPropertyWhenPresent("block_number", row::getBlock_number) + .map(block_hash).toPropertyWhenPresent("block_hash", row::getBlock_hash) + .map(block_time).toPropertyWhenPresent("block_time", row::getBlock_time) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.303149+08:00", comments="Source Table: public.shared_syn_all") + default Optional selectOne(SelectDSLCompleter completer) { + return MyBatis3Utils.selectOne(this::selectOne, selectList, sharedSynAll, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.303149+08:00", comments="Source Table: public.shared_syn_all") + default List select(SelectDSLCompleter completer) { + return MyBatis3Utils.selectList(this::selectMany, selectList, sharedSynAll, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.303149+08:00", comments="Source Table: public.shared_syn_all") + default List selectDistinct(SelectDSLCompleter completer) { + return MyBatis3Utils.selectDistinct(this::selectMany, selectList, sharedSynAll, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.303149+08:00", comments="Source Table: public.shared_syn_all") + default Optional selectByPrimaryKey(String id_) { + return selectOne(c -> + c.where(id, isEqualTo(id_)) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.303149+08:00", comments="Source Table: public.shared_syn_all") + default int update(UpdateDSLCompleter completer) { + return MyBatis3Utils.update(this::update, sharedSynAll, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3041477+08:00", comments="Source Table: public.shared_syn_all") + static UpdateDSL updateAllColumns(SharedSynAll row, UpdateDSL dsl) { + return dsl.set(id).equalTo(row::getId) + .set(syn_id).equalTo(row::getSyn_id) + .set(syn_type).equalTo(row::getSyn_type) + .set(is_config_rule).equalTo(row::getIs_config_rule) + .set(shared_status).equalTo(row::getShared_status) + .set(syn_status).equalTo(row::getSyn_status) + .set(block_number).equalTo(row::getBlock_number) + .set(block_hash).equalTo(row::getBlock_hash) + .set(block_time).equalTo(row::getBlock_time); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3041477+08:00", comments="Source Table: public.shared_syn_all") + static UpdateDSL updateSelectiveColumns(SharedSynAll row, UpdateDSL dsl) { + return dsl.set(id).equalToWhenPresent(row::getId) + .set(syn_id).equalToWhenPresent(row::getSyn_id) + .set(syn_type).equalToWhenPresent(row::getSyn_type) + .set(is_config_rule).equalToWhenPresent(row::getIs_config_rule) + .set(shared_status).equalToWhenPresent(row::getShared_status) + .set(syn_status).equalToWhenPresent(row::getSyn_status) + .set(block_number).equalToWhenPresent(row::getBlock_number) + .set(block_hash).equalToWhenPresent(row::getBlock_hash) + .set(block_time).equalToWhenPresent(row::getBlock_time); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3041477+08:00", comments="Source Table: public.shared_syn_all") + default int updateByPrimaryKey(SharedSynAll row) { + return update(c -> + c.set(syn_id).equalTo(row::getSyn_id) + .set(syn_type).equalTo(row::getSyn_type) + .set(is_config_rule).equalTo(row::getIs_config_rule) + .set(shared_status).equalTo(row::getShared_status) + .set(syn_status).equalTo(row::getSyn_status) + .set(block_number).equalTo(row::getBlock_number) + .set(block_hash).equalTo(row::getBlock_hash) + .set(block_time).equalTo(row::getBlock_time) + .where(id, isEqualTo(row::getId)) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3041477+08:00", comments="Source Table: public.shared_syn_all") + default int updateByPrimaryKeySelective(SharedSynAll row) { + return update(c -> + c.set(syn_id).equalToWhenPresent(row::getSyn_id) + .set(syn_type).equalToWhenPresent(row::getSyn_type) + .set(is_config_rule).equalToWhenPresent(row::getIs_config_rule) + .set(shared_status).equalToWhenPresent(row::getShared_status) + .set(syn_status).equalToWhenPresent(row::getSyn_status) + .set(block_number).equalToWhenPresent(row::getBlock_number) + .set(block_hash).equalToWhenPresent(row::getBlock_hash) + .set(block_time).equalToWhenPresent(row::getBlock_time) + .where(id, isEqualTo(row::getId)) + ); + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/dao/SynDirectoryFileMapper.java b/src/main/java/jj/tech/paolu/repository/mybatis/dao/SynDirectoryFileMapper.java new file mode 100644 index 0000000..d6d6ff6 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/dao/SynDirectoryFileMapper.java @@ -0,0 +1,297 @@ +package jj.tech.paolu.repository.mybatis.dao; + +import static jj.tech.paolu.repository.mybatis.dao.support.SynDirectoryFileDynamicSqlSupport.*; +import static org.mybatis.dynamic.sql.SqlBuilder.isEqualTo; + +import jakarta.annotation.Generated; +import java.util.Collection; +import java.util.List; +import java.util.Optional; +import jj.tech.paolu.repository.mybatis.entity.SynDirectoryFile; +import org.apache.ibatis.annotations.Mapper; +import org.apache.ibatis.annotations.Result; +import org.apache.ibatis.annotations.ResultMap; +import org.apache.ibatis.annotations.Results; +import org.apache.ibatis.annotations.SelectProvider; +import org.apache.ibatis.type.JdbcType; +import org.mybatis.dynamic.sql.BasicColumn; +import org.mybatis.dynamic.sql.delete.DeleteDSLCompleter; +import org.mybatis.dynamic.sql.select.CountDSLCompleter; +import org.mybatis.dynamic.sql.select.SelectDSLCompleter; +import org.mybatis.dynamic.sql.select.render.SelectStatementProvider; +import org.mybatis.dynamic.sql.update.UpdateDSL; +import org.mybatis.dynamic.sql.update.UpdateDSLCompleter; +import org.mybatis.dynamic.sql.update.UpdateModel; +import org.mybatis.dynamic.sql.util.SqlProviderAdapter; +import org.mybatis.dynamic.sql.util.mybatis3.CommonCountMapper; +import org.mybatis.dynamic.sql.util.mybatis3.CommonDeleteMapper; +import org.mybatis.dynamic.sql.util.mybatis3.CommonInsertMapper; +import org.mybatis.dynamic.sql.util.mybatis3.CommonUpdateMapper; +import org.mybatis.dynamic.sql.util.mybatis3.MyBatis3Utils; + +@Mapper +public interface SynDirectoryFileMapper extends CommonCountMapper, CommonDeleteMapper, CommonInsertMapper, CommonUpdateMapper { + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.4885716+08:00", comments="Source Table: public.syn_directory_file") + BasicColumn[] selectList = BasicColumn.columnList(id, p_id, filesuper, filecount, dutyperson, eweavedate, filepage, sortorder, bpeg, epeg, filenum, remark, recordnum, piecenumber, adddate, editdate, time_stamp, isdel, catalogpdfurl, signtag, collecttag); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.4795789+08:00", comments="Source Table: public.syn_directory_file") + @SelectProvider(type=SqlProviderAdapter.class, method="select") + @Results(id="SynDirectoryFileResult", value = { + @Result(column="id", property="id", jdbcType=JdbcType.VARCHAR, id=true), + @Result(column="p_id", property="p_id", jdbcType=JdbcType.VARCHAR), + @Result(column="filesuper", property="filesuper", jdbcType=JdbcType.VARCHAR), + @Result(column="filecount", property="filecount", jdbcType=JdbcType.INTEGER), + @Result(column="dutyperson", property="dutyperson", jdbcType=JdbcType.VARCHAR), + @Result(column="eweavedate", property="eweavedate", jdbcType=JdbcType.VARCHAR), + @Result(column="filepage", property="filepage", jdbcType=JdbcType.INTEGER), + @Result(column="sortorder", property="sortorder", jdbcType=JdbcType.VARCHAR), + @Result(column="bpeg", property="bpeg", jdbcType=JdbcType.VARCHAR), + @Result(column="epeg", property="epeg", jdbcType=JdbcType.VARCHAR), + @Result(column="filenum", property="filenum", jdbcType=JdbcType.VARCHAR), + @Result(column="remark", property="remark", jdbcType=JdbcType.VARCHAR), + @Result(column="recordnum", property="recordnum", jdbcType=JdbcType.VARCHAR), + @Result(column="piecenumber", property="piecenumber", jdbcType=JdbcType.VARCHAR), + @Result(column="adddate", property="adddate", jdbcType=JdbcType.VARCHAR), + @Result(column="editdate", property="editdate", jdbcType=JdbcType.VARCHAR), + @Result(column="time_stamp", property="time_stamp", jdbcType=JdbcType.VARCHAR), + @Result(column="isdel", property="isdel", jdbcType=JdbcType.INTEGER), + @Result(column="catalogpdfurl", property="catalogpdfurl", jdbcType=JdbcType.VARCHAR), + @Result(column="signtag", property="signtag", jdbcType=JdbcType.VARCHAR), + @Result(column="collecttag", property="collecttag", jdbcType=JdbcType.VARCHAR) + }) + List selectMany(SelectStatementProvider selectStatement); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.4827014+08:00", comments="Source Table: public.syn_directory_file") + @SelectProvider(type=SqlProviderAdapter.class, method="select") + @ResultMap("SynDirectoryFileResult") + Optional selectOne(SelectStatementProvider selectStatement); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.4827014+08:00", comments="Source Table: public.syn_directory_file") + default long count(CountDSLCompleter completer) { + return MyBatis3Utils.countFrom(this::count, synDirectoryFile, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.4840914+08:00", comments="Source Table: public.syn_directory_file") + default int delete(DeleteDSLCompleter completer) { + return MyBatis3Utils.deleteFrom(this::delete, synDirectoryFile, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.4840914+08:00", comments="Source Table: public.syn_directory_file") + default int deleteByPrimaryKey(String id_) { + return delete(c -> + c.where(id, isEqualTo(id_)) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.485097+08:00", comments="Source Table: public.syn_directory_file") + default int insert(SynDirectoryFile row) { + return MyBatis3Utils.insert(this::insert, row, synDirectoryFile, c -> + c.map(id).toProperty("id") + .map(p_id).toProperty("p_id") + .map(filesuper).toProperty("filesuper") + .map(filecount).toProperty("filecount") + .map(dutyperson).toProperty("dutyperson") + .map(eweavedate).toProperty("eweavedate") + .map(filepage).toProperty("filepage") + .map(sortorder).toProperty("sortorder") + .map(bpeg).toProperty("bpeg") + .map(epeg).toProperty("epeg") + .map(filenum).toProperty("filenum") + .map(remark).toProperty("remark") + .map(recordnum).toProperty("recordnum") + .map(piecenumber).toProperty("piecenumber") + .map(adddate).toProperty("adddate") + .map(editdate).toProperty("editdate") + .map(time_stamp).toProperty("time_stamp") + .map(isdel).toProperty("isdel") + .map(catalogpdfurl).toProperty("catalogpdfurl") + .map(signtag).toProperty("signtag") + .map(collecttag).toProperty("collecttag") + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.4875464+08:00", comments="Source Table: public.syn_directory_file") + default int insertMultiple(Collection records) { + return MyBatis3Utils.insertMultiple(this::insertMultiple, records, synDirectoryFile, c -> + c.map(id).toProperty("id") + .map(p_id).toProperty("p_id") + .map(filesuper).toProperty("filesuper") + .map(filecount).toProperty("filecount") + .map(dutyperson).toProperty("dutyperson") + .map(eweavedate).toProperty("eweavedate") + .map(filepage).toProperty("filepage") + .map(sortorder).toProperty("sortorder") + .map(bpeg).toProperty("bpeg") + .map(epeg).toProperty("epeg") + .map(filenum).toProperty("filenum") + .map(remark).toProperty("remark") + .map(recordnum).toProperty("recordnum") + .map(piecenumber).toProperty("piecenumber") + .map(adddate).toProperty("adddate") + .map(editdate).toProperty("editdate") + .map(time_stamp).toProperty("time_stamp") + .map(isdel).toProperty("isdel") + .map(catalogpdfurl).toProperty("catalogpdfurl") + .map(signtag).toProperty("signtag") + .map(collecttag).toProperty("collecttag") + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.4875464+08:00", comments="Source Table: public.syn_directory_file") + default int insertSelective(SynDirectoryFile row) { + return MyBatis3Utils.insert(this::insert, row, synDirectoryFile, c -> + c.map(id).toPropertyWhenPresent("id", row::getId) + .map(p_id).toPropertyWhenPresent("p_id", row::getP_id) + .map(filesuper).toPropertyWhenPresent("filesuper", row::getFilesuper) + .map(filecount).toPropertyWhenPresent("filecount", row::getFilecount) + .map(dutyperson).toPropertyWhenPresent("dutyperson", row::getDutyperson) + .map(eweavedate).toPropertyWhenPresent("eweavedate", row::getEweavedate) + .map(filepage).toPropertyWhenPresent("filepage", row::getFilepage) + .map(sortorder).toPropertyWhenPresent("sortorder", row::getSortorder) + .map(bpeg).toPropertyWhenPresent("bpeg", row::getBpeg) + .map(epeg).toPropertyWhenPresent("epeg", row::getEpeg) + .map(filenum).toPropertyWhenPresent("filenum", row::getFilenum) + .map(remark).toPropertyWhenPresent("remark", row::getRemark) + .map(recordnum).toPropertyWhenPresent("recordnum", row::getRecordnum) + .map(piecenumber).toPropertyWhenPresent("piecenumber", row::getPiecenumber) + .map(adddate).toPropertyWhenPresent("adddate", row::getAdddate) + .map(editdate).toPropertyWhenPresent("editdate", row::getEditdate) + .map(time_stamp).toPropertyWhenPresent("time_stamp", row::getTime_stamp) + .map(isdel).toPropertyWhenPresent("isdel", row::getIsdel) + .map(catalogpdfurl).toPropertyWhenPresent("catalogpdfurl", row::getCatalogpdfurl) + .map(signtag).toPropertyWhenPresent("signtag", row::getSigntag) + .map(collecttag).toPropertyWhenPresent("collecttag", row::getCollecttag) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.489686+08:00", comments="Source Table: public.syn_directory_file") + default Optional selectOne(SelectDSLCompleter completer) { + return MyBatis3Utils.selectOne(this::selectOne, selectList, synDirectoryFile, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.489686+08:00", comments="Source Table: public.syn_directory_file") + default List select(SelectDSLCompleter completer) { + return MyBatis3Utils.selectList(this::selectMany, selectList, synDirectoryFile, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.4906917+08:00", comments="Source Table: public.syn_directory_file") + default List selectDistinct(SelectDSLCompleter completer) { + return MyBatis3Utils.selectDistinct(this::selectMany, selectList, synDirectoryFile, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.4908063+08:00", comments="Source Table: public.syn_directory_file") + default Optional selectByPrimaryKey(String id_) { + return selectOne(c -> + c.where(id, isEqualTo(id_)) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.4913147+08:00", comments="Source Table: public.syn_directory_file") + default int update(UpdateDSLCompleter completer) { + return MyBatis3Utils.update(this::update, synDirectoryFile, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.4919203+08:00", comments="Source Table: public.syn_directory_file") + static UpdateDSL updateAllColumns(SynDirectoryFile row, UpdateDSL dsl) { + return dsl.set(id).equalTo(row::getId) + .set(p_id).equalTo(row::getP_id) + .set(filesuper).equalTo(row::getFilesuper) + .set(filecount).equalTo(row::getFilecount) + .set(dutyperson).equalTo(row::getDutyperson) + .set(eweavedate).equalTo(row::getEweavedate) + .set(filepage).equalTo(row::getFilepage) + .set(sortorder).equalTo(row::getSortorder) + .set(bpeg).equalTo(row::getBpeg) + .set(epeg).equalTo(row::getEpeg) + .set(filenum).equalTo(row::getFilenum) + .set(remark).equalTo(row::getRemark) + .set(recordnum).equalTo(row::getRecordnum) + .set(piecenumber).equalTo(row::getPiecenumber) + .set(adddate).equalTo(row::getAdddate) + .set(editdate).equalTo(row::getEditdate) + .set(time_stamp).equalTo(row::getTime_stamp) + .set(isdel).equalTo(row::getIsdel) + .set(catalogpdfurl).equalTo(row::getCatalogpdfurl) + .set(signtag).equalTo(row::getSigntag) + .set(collecttag).equalTo(row::getCollecttag); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.492926+08:00", comments="Source Table: public.syn_directory_file") + static UpdateDSL updateSelectiveColumns(SynDirectoryFile row, UpdateDSL dsl) { + return dsl.set(id).equalToWhenPresent(row::getId) + .set(p_id).equalToWhenPresent(row::getP_id) + .set(filesuper).equalToWhenPresent(row::getFilesuper) + .set(filecount).equalToWhenPresent(row::getFilecount) + .set(dutyperson).equalToWhenPresent(row::getDutyperson) + .set(eweavedate).equalToWhenPresent(row::getEweavedate) + .set(filepage).equalToWhenPresent(row::getFilepage) + .set(sortorder).equalToWhenPresent(row::getSortorder) + .set(bpeg).equalToWhenPresent(row::getBpeg) + .set(epeg).equalToWhenPresent(row::getEpeg) + .set(filenum).equalToWhenPresent(row::getFilenum) + .set(remark).equalToWhenPresent(row::getRemark) + .set(recordnum).equalToWhenPresent(row::getRecordnum) + .set(piecenumber).equalToWhenPresent(row::getPiecenumber) + .set(adddate).equalToWhenPresent(row::getAdddate) + .set(editdate).equalToWhenPresent(row::getEditdate) + .set(time_stamp).equalToWhenPresent(row::getTime_stamp) + .set(isdel).equalToWhenPresent(row::getIsdel) + .set(catalogpdfurl).equalToWhenPresent(row::getCatalogpdfurl) + .set(signtag).equalToWhenPresent(row::getSigntag) + .set(collecttag).equalToWhenPresent(row::getCollecttag); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.492926+08:00", comments="Source Table: public.syn_directory_file") + default int updateByPrimaryKey(SynDirectoryFile row) { + return update(c -> + c.set(p_id).equalTo(row::getP_id) + .set(filesuper).equalTo(row::getFilesuper) + .set(filecount).equalTo(row::getFilecount) + .set(dutyperson).equalTo(row::getDutyperson) + .set(eweavedate).equalTo(row::getEweavedate) + .set(filepage).equalTo(row::getFilepage) + .set(sortorder).equalTo(row::getSortorder) + .set(bpeg).equalTo(row::getBpeg) + .set(epeg).equalTo(row::getEpeg) + .set(filenum).equalTo(row::getFilenum) + .set(remark).equalTo(row::getRemark) + .set(recordnum).equalTo(row::getRecordnum) + .set(piecenumber).equalTo(row::getPiecenumber) + .set(adddate).equalTo(row::getAdddate) + .set(editdate).equalTo(row::getEditdate) + .set(time_stamp).equalTo(row::getTime_stamp) + .set(isdel).equalTo(row::getIsdel) + .set(catalogpdfurl).equalTo(row::getCatalogpdfurl) + .set(signtag).equalTo(row::getSigntag) + .set(collecttag).equalTo(row::getCollecttag) + .where(id, isEqualTo(row::getId)) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.4939574+08:00", comments="Source Table: public.syn_directory_file") + default int updateByPrimaryKeySelective(SynDirectoryFile row) { + return update(c -> + c.set(p_id).equalToWhenPresent(row::getP_id) + .set(filesuper).equalToWhenPresent(row::getFilesuper) + .set(filecount).equalToWhenPresent(row::getFilecount) + .set(dutyperson).equalToWhenPresent(row::getDutyperson) + .set(eweavedate).equalToWhenPresent(row::getEweavedate) + .set(filepage).equalToWhenPresent(row::getFilepage) + .set(sortorder).equalToWhenPresent(row::getSortorder) + .set(bpeg).equalToWhenPresent(row::getBpeg) + .set(epeg).equalToWhenPresent(row::getEpeg) + .set(filenum).equalToWhenPresent(row::getFilenum) + .set(remark).equalToWhenPresent(row::getRemark) + .set(recordnum).equalToWhenPresent(row::getRecordnum) + .set(piecenumber).equalToWhenPresent(row::getPiecenumber) + .set(adddate).equalToWhenPresent(row::getAdddate) + .set(editdate).equalToWhenPresent(row::getEditdate) + .set(time_stamp).equalToWhenPresent(row::getTime_stamp) + .set(isdel).equalToWhenPresent(row::getIsdel) + .set(catalogpdfurl).equalToWhenPresent(row::getCatalogpdfurl) + .set(signtag).equalToWhenPresent(row::getSigntag) + .set(collecttag).equalToWhenPresent(row::getCollecttag) + .where(id, isEqualTo(row::getId)) + ); + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/dao/SynDirectoryMapper.java b/src/main/java/jj/tech/paolu/repository/mybatis/dao/SynDirectoryMapper.java new file mode 100644 index 0000000..89c2dd5 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/dao/SynDirectoryMapper.java @@ -0,0 +1,193 @@ +package jj.tech.paolu.repository.mybatis.dao; + +import static jj.tech.paolu.repository.mybatis.dao.support.SynDirectoryDynamicSqlSupport.*; +import static org.mybatis.dynamic.sql.SqlBuilder.isEqualTo; + +import jakarta.annotation.Generated; +import java.util.Collection; +import java.util.List; +import java.util.Optional; +import jj.tech.paolu.repository.mybatis.entity.SynDirectory; +import org.apache.ibatis.annotations.Mapper; +import org.apache.ibatis.annotations.Result; +import org.apache.ibatis.annotations.ResultMap; +import org.apache.ibatis.annotations.Results; +import org.apache.ibatis.annotations.SelectProvider; +import org.apache.ibatis.type.JdbcType; +import org.mybatis.dynamic.sql.BasicColumn; +import org.mybatis.dynamic.sql.delete.DeleteDSLCompleter; +import org.mybatis.dynamic.sql.select.CountDSLCompleter; +import org.mybatis.dynamic.sql.select.SelectDSLCompleter; +import org.mybatis.dynamic.sql.select.render.SelectStatementProvider; +import org.mybatis.dynamic.sql.update.UpdateDSL; +import org.mybatis.dynamic.sql.update.UpdateDSLCompleter; +import org.mybatis.dynamic.sql.update.UpdateModel; +import org.mybatis.dynamic.sql.util.SqlProviderAdapter; +import org.mybatis.dynamic.sql.util.mybatis3.CommonCountMapper; +import org.mybatis.dynamic.sql.util.mybatis3.CommonDeleteMapper; +import org.mybatis.dynamic.sql.util.mybatis3.CommonInsertMapper; +import org.mybatis.dynamic.sql.util.mybatis3.CommonUpdateMapper; +import org.mybatis.dynamic.sql.util.mybatis3.MyBatis3Utils; + +@Mapper +public interface SynDirectoryMapper extends CommonCountMapper, CommonDeleteMapper, CommonInsertMapper, CommonUpdateMapper { + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.509599+08:00", comments="Source Table: public.syn_directory") + BasicColumn[] selectList = BasicColumn.columnList(id, p_id, wbs_id, time_stamp, sortorder, tname, subjoin, isdel); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.509599+08:00", comments="Source Table: public.syn_directory") + @SelectProvider(type=SqlProviderAdapter.class, method="select") + @Results(id="SynDirectoryResult", value = { + @Result(column="id", property="id", jdbcType=JdbcType.VARCHAR, id=true), + @Result(column="p_id", property="p_id", jdbcType=JdbcType.VARCHAR), + @Result(column="wbs_id", property="wbs_id", jdbcType=JdbcType.VARCHAR), + @Result(column="time_stamp", property="time_stamp", jdbcType=JdbcType.VARCHAR), + @Result(column="sortorder", property="sortorder", jdbcType=JdbcType.INTEGER), + @Result(column="tname", property="tname", jdbcType=JdbcType.VARCHAR), + @Result(column="subjoin", property="subjoin", jdbcType=JdbcType.INTEGER), + @Result(column="isdel", property="isdel", jdbcType=JdbcType.INTEGER) + }) + List selectMany(SelectStatementProvider selectStatement); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.509599+08:00", comments="Source Table: public.syn_directory") + @SelectProvider(type=SqlProviderAdapter.class, method="select") + @ResultMap("SynDirectoryResult") + Optional selectOne(SelectStatementProvider selectStatement); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.509599+08:00", comments="Source Table: public.syn_directory") + default long count(CountDSLCompleter completer) { + return MyBatis3Utils.countFrom(this::count, synDirectory, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.509599+08:00", comments="Source Table: public.syn_directory") + default int delete(DeleteDSLCompleter completer) { + return MyBatis3Utils.deleteFrom(this::delete, synDirectory, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.509599+08:00", comments="Source Table: public.syn_directory") + default int deleteByPrimaryKey(String id_) { + return delete(c -> + c.where(id, isEqualTo(id_)) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.509599+08:00", comments="Source Table: public.syn_directory") + default int insert(SynDirectory row) { + return MyBatis3Utils.insert(this::insert, row, synDirectory, c -> + c.map(id).toProperty("id") + .map(p_id).toProperty("p_id") + .map(wbs_id).toProperty("wbs_id") + .map(time_stamp).toProperty("time_stamp") + .map(sortorder).toProperty("sortorder") + .map(tname).toProperty("tname") + .map(subjoin).toProperty("subjoin") + .map(isdel).toProperty("isdel") + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.509599+08:00", comments="Source Table: public.syn_directory") + default int insertMultiple(Collection records) { + return MyBatis3Utils.insertMultiple(this::insertMultiple, records, synDirectory, c -> + c.map(id).toProperty("id") + .map(p_id).toProperty("p_id") + .map(wbs_id).toProperty("wbs_id") + .map(time_stamp).toProperty("time_stamp") + .map(sortorder).toProperty("sortorder") + .map(tname).toProperty("tname") + .map(subjoin).toProperty("subjoin") + .map(isdel).toProperty("isdel") + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.509599+08:00", comments="Source Table: public.syn_directory") + default int insertSelective(SynDirectory row) { + return MyBatis3Utils.insert(this::insert, row, synDirectory, c -> + c.map(id).toPropertyWhenPresent("id", row::getId) + .map(p_id).toPropertyWhenPresent("p_id", row::getP_id) + .map(wbs_id).toPropertyWhenPresent("wbs_id", row::getWbs_id) + .map(time_stamp).toPropertyWhenPresent("time_stamp", row::getTime_stamp) + .map(sortorder).toPropertyWhenPresent("sortorder", row::getSortorder) + .map(tname).toPropertyWhenPresent("tname", row::getTname) + .map(subjoin).toPropertyWhenPresent("subjoin", row::getSubjoin) + .map(isdel).toPropertyWhenPresent("isdel", row::getIsdel) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.509599+08:00", comments="Source Table: public.syn_directory") + default Optional selectOne(SelectDSLCompleter completer) { + return MyBatis3Utils.selectOne(this::selectOne, selectList, synDirectory, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.509599+08:00", comments="Source Table: public.syn_directory") + default List select(SelectDSLCompleter completer) { + return MyBatis3Utils.selectList(this::selectMany, selectList, synDirectory, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.509599+08:00", comments="Source Table: public.syn_directory") + default List selectDistinct(SelectDSLCompleter completer) { + return MyBatis3Utils.selectDistinct(this::selectMany, selectList, synDirectory, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.509599+08:00", comments="Source Table: public.syn_directory") + default Optional selectByPrimaryKey(String id_) { + return selectOne(c -> + c.where(id, isEqualTo(id_)) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.509599+08:00", comments="Source Table: public.syn_directory") + default int update(UpdateDSLCompleter completer) { + return MyBatis3Utils.update(this::update, synDirectory, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.509599+08:00", comments="Source Table: public.syn_directory") + static UpdateDSL updateAllColumns(SynDirectory row, UpdateDSL dsl) { + return dsl.set(id).equalTo(row::getId) + .set(p_id).equalTo(row::getP_id) + .set(wbs_id).equalTo(row::getWbs_id) + .set(time_stamp).equalTo(row::getTime_stamp) + .set(sortorder).equalTo(row::getSortorder) + .set(tname).equalTo(row::getTname) + .set(subjoin).equalTo(row::getSubjoin) + .set(isdel).equalTo(row::getIsdel); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.509599+08:00", comments="Source Table: public.syn_directory") + static UpdateDSL updateSelectiveColumns(SynDirectory row, UpdateDSL dsl) { + return dsl.set(id).equalToWhenPresent(row::getId) + .set(p_id).equalToWhenPresent(row::getP_id) + .set(wbs_id).equalToWhenPresent(row::getWbs_id) + .set(time_stamp).equalToWhenPresent(row::getTime_stamp) + .set(sortorder).equalToWhenPresent(row::getSortorder) + .set(tname).equalToWhenPresent(row::getTname) + .set(subjoin).equalToWhenPresent(row::getSubjoin) + .set(isdel).equalToWhenPresent(row::getIsdel); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.509599+08:00", comments="Source Table: public.syn_directory") + default int updateByPrimaryKey(SynDirectory row) { + return update(c -> + c.set(p_id).equalTo(row::getP_id) + .set(wbs_id).equalTo(row::getWbs_id) + .set(time_stamp).equalTo(row::getTime_stamp) + .set(sortorder).equalTo(row::getSortorder) + .set(tname).equalTo(row::getTname) + .set(subjoin).equalTo(row::getSubjoin) + .set(isdel).equalTo(row::getIsdel) + .where(id, isEqualTo(row::getId)) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.509599+08:00", comments="Source Table: public.syn_directory") + default int updateByPrimaryKeySelective(SynDirectory row) { + return update(c -> + c.set(p_id).equalToWhenPresent(row::getP_id) + .set(wbs_id).equalToWhenPresent(row::getWbs_id) + .set(time_stamp).equalToWhenPresent(row::getTime_stamp) + .set(sortorder).equalToWhenPresent(row::getSortorder) + .set(tname).equalToWhenPresent(row::getTname) + .set(subjoin).equalToWhenPresent(row::getSubjoin) + .set(isdel).equalToWhenPresent(row::getIsdel) + .where(id, isEqualTo(row::getId)) + ); + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/dao/SynFileMapper.java b/src/main/java/jj/tech/paolu/repository/mybatis/dao/SynFileMapper.java new file mode 100644 index 0000000..79acc2c --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/dao/SynFileMapper.java @@ -0,0 +1,265 @@ +package jj.tech.paolu.repository.mybatis.dao; + +import static jj.tech.paolu.repository.mybatis.dao.support.SynFileDynamicSqlSupport.*; +import static org.mybatis.dynamic.sql.SqlBuilder.isEqualTo; + +import jakarta.annotation.Generated; +import java.util.Collection; +import java.util.List; +import java.util.Optional; +import jj.tech.paolu.repository.mybatis.entity.SynFile; +import org.apache.ibatis.annotations.Mapper; +import org.apache.ibatis.annotations.Result; +import org.apache.ibatis.annotations.ResultMap; +import org.apache.ibatis.annotations.Results; +import org.apache.ibatis.annotations.SelectProvider; +import org.apache.ibatis.type.JdbcType; +import org.mybatis.dynamic.sql.BasicColumn; +import org.mybatis.dynamic.sql.delete.DeleteDSLCompleter; +import org.mybatis.dynamic.sql.select.CountDSLCompleter; +import org.mybatis.dynamic.sql.select.SelectDSLCompleter; +import org.mybatis.dynamic.sql.select.render.SelectStatementProvider; +import org.mybatis.dynamic.sql.update.UpdateDSL; +import org.mybatis.dynamic.sql.update.UpdateDSLCompleter; +import org.mybatis.dynamic.sql.update.UpdateModel; +import org.mybatis.dynamic.sql.util.SqlProviderAdapter; +import org.mybatis.dynamic.sql.util.mybatis3.CommonCountMapper; +import org.mybatis.dynamic.sql.util.mybatis3.CommonDeleteMapper; +import org.mybatis.dynamic.sql.util.mybatis3.CommonInsertMapper; +import org.mybatis.dynamic.sql.util.mybatis3.CommonUpdateMapper; +import org.mybatis.dynamic.sql.util.mybatis3.MyBatis3Utils; + +@Mapper +public interface SynFileMapper extends CommonCountMapper, CommonDeleteMapper, CommonInsertMapper, CommonUpdateMapper { + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.5018484+08:00", comments="Source Table: public.syn_file") + BasicColumn[] selectList = BasicColumn.columnList(id, p_id, tablenumber, annexname, projectname, eweavedate, checkdate, annexpage, sortorder, filefrom, archivestag, adddate, editdate, time_stamp, isdel, downurl, filesize); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.5006795+08:00", comments="Source Table: public.syn_file") + @SelectProvider(type=SqlProviderAdapter.class, method="select") + @Results(id="SynFileResult", value = { + @Result(column="id", property="id", jdbcType=JdbcType.VARCHAR, id=true), + @Result(column="p_id", property="p_id", jdbcType=JdbcType.VARCHAR), + @Result(column="tablenumber", property="tablenumber", jdbcType=JdbcType.VARCHAR), + @Result(column="annexname", property="annexname", jdbcType=JdbcType.VARCHAR), + @Result(column="projectname", property="projectname", jdbcType=JdbcType.VARCHAR), + @Result(column="eweavedate", property="eweavedate", jdbcType=JdbcType.VARCHAR), + @Result(column="checkdate", property="checkdate", jdbcType=JdbcType.VARCHAR), + @Result(column="annexpage", property="annexpage", jdbcType=JdbcType.INTEGER), + @Result(column="sortorder", property="sortorder", jdbcType=JdbcType.VARCHAR), + @Result(column="filefrom", property="filefrom", jdbcType=JdbcType.VARCHAR), + @Result(column="archivestag", property="archivestag", jdbcType=JdbcType.VARCHAR), + @Result(column="adddate", property="adddate", jdbcType=JdbcType.VARCHAR), + @Result(column="editdate", property="editdate", jdbcType=JdbcType.VARCHAR), + @Result(column="time_stamp", property="time_stamp", jdbcType=JdbcType.VARCHAR), + @Result(column="isdel", property="isdel", jdbcType=JdbcType.INTEGER), + @Result(column="downurl", property="downurl", jdbcType=JdbcType.VARCHAR), + @Result(column="filesize", property="filesize", jdbcType=JdbcType.INTEGER) + }) + List selectMany(SelectStatementProvider selectStatement); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.5006795+08:00", comments="Source Table: public.syn_file") + @SelectProvider(type=SqlProviderAdapter.class, method="select") + @ResultMap("SynFileResult") + Optional selectOne(SelectStatementProvider selectStatement); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.5006795+08:00", comments="Source Table: public.syn_file") + default long count(CountDSLCompleter completer) { + return MyBatis3Utils.countFrom(this::count, synFile, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.5006795+08:00", comments="Source Table: public.syn_file") + default int delete(DeleteDSLCompleter completer) { + return MyBatis3Utils.deleteFrom(this::delete, synFile, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.5006795+08:00", comments="Source Table: public.syn_file") + default int deleteByPrimaryKey(String id_) { + return delete(c -> + c.where(id, isEqualTo(id_)) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.5006795+08:00", comments="Source Table: public.syn_file") + default int insert(SynFile row) { + return MyBatis3Utils.insert(this::insert, row, synFile, c -> + c.map(id).toProperty("id") + .map(p_id).toProperty("p_id") + .map(tablenumber).toProperty("tablenumber") + .map(annexname).toProperty("annexname") + .map(projectname).toProperty("projectname") + .map(eweavedate).toProperty("eweavedate") + .map(checkdate).toProperty("checkdate") + .map(annexpage).toProperty("annexpage") + .map(sortorder).toProperty("sortorder") + .map(filefrom).toProperty("filefrom") + .map(archivestag).toProperty("archivestag") + .map(adddate).toProperty("adddate") + .map(editdate).toProperty("editdate") + .map(time_stamp).toProperty("time_stamp") + .map(isdel).toProperty("isdel") + .map(downurl).toProperty("downurl") + .map(filesize).toProperty("filesize") + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.5006795+08:00", comments="Source Table: public.syn_file") + default int insertMultiple(Collection records) { + return MyBatis3Utils.insertMultiple(this::insertMultiple, records, synFile, c -> + c.map(id).toProperty("id") + .map(p_id).toProperty("p_id") + .map(tablenumber).toProperty("tablenumber") + .map(annexname).toProperty("annexname") + .map(projectname).toProperty("projectname") + .map(eweavedate).toProperty("eweavedate") + .map(checkdate).toProperty("checkdate") + .map(annexpage).toProperty("annexpage") + .map(sortorder).toProperty("sortorder") + .map(filefrom).toProperty("filefrom") + .map(archivestag).toProperty("archivestag") + .map(adddate).toProperty("adddate") + .map(editdate).toProperty("editdate") + .map(time_stamp).toProperty("time_stamp") + .map(isdel).toProperty("isdel") + .map(downurl).toProperty("downurl") + .map(filesize).toProperty("filesize") + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.5006795+08:00", comments="Source Table: public.syn_file") + default int insertSelective(SynFile row) { + return MyBatis3Utils.insert(this::insert, row, synFile, c -> + c.map(id).toPropertyWhenPresent("id", row::getId) + .map(p_id).toPropertyWhenPresent("p_id", row::getP_id) + .map(tablenumber).toPropertyWhenPresent("tablenumber", row::getTablenumber) + .map(annexname).toPropertyWhenPresent("annexname", row::getAnnexname) + .map(projectname).toPropertyWhenPresent("projectname", row::getProjectname) + .map(eweavedate).toPropertyWhenPresent("eweavedate", row::getEweavedate) + .map(checkdate).toPropertyWhenPresent("checkdate", row::getCheckdate) + .map(annexpage).toPropertyWhenPresent("annexpage", row::getAnnexpage) + .map(sortorder).toPropertyWhenPresent("sortorder", row::getSortorder) + .map(filefrom).toPropertyWhenPresent("filefrom", row::getFilefrom) + .map(archivestag).toPropertyWhenPresent("archivestag", row::getArchivestag) + .map(adddate).toPropertyWhenPresent("adddate", row::getAdddate) + .map(editdate).toPropertyWhenPresent("editdate", row::getEditdate) + .map(time_stamp).toPropertyWhenPresent("time_stamp", row::getTime_stamp) + .map(isdel).toPropertyWhenPresent("isdel", row::getIsdel) + .map(downurl).toPropertyWhenPresent("downurl", row::getDownurl) + .map(filesize).toPropertyWhenPresent("filesize", row::getFilesize) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.5018484+08:00", comments="Source Table: public.syn_file") + default Optional selectOne(SelectDSLCompleter completer) { + return MyBatis3Utils.selectOne(this::selectOne, selectList, synFile, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.5018484+08:00", comments="Source Table: public.syn_file") + default List select(SelectDSLCompleter completer) { + return MyBatis3Utils.selectList(this::selectMany, selectList, synFile, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.5018484+08:00", comments="Source Table: public.syn_file") + default List selectDistinct(SelectDSLCompleter completer) { + return MyBatis3Utils.selectDistinct(this::selectMany, selectList, synFile, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.5018484+08:00", comments="Source Table: public.syn_file") + default Optional selectByPrimaryKey(String id_) { + return selectOne(c -> + c.where(id, isEqualTo(id_)) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.5018484+08:00", comments="Source Table: public.syn_file") + default int update(UpdateDSLCompleter completer) { + return MyBatis3Utils.update(this::update, synFile, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.5018484+08:00", comments="Source Table: public.syn_file") + static UpdateDSL updateAllColumns(SynFile row, UpdateDSL dsl) { + return dsl.set(id).equalTo(row::getId) + .set(p_id).equalTo(row::getP_id) + .set(tablenumber).equalTo(row::getTablenumber) + .set(annexname).equalTo(row::getAnnexname) + .set(projectname).equalTo(row::getProjectname) + .set(eweavedate).equalTo(row::getEweavedate) + .set(checkdate).equalTo(row::getCheckdate) + .set(annexpage).equalTo(row::getAnnexpage) + .set(sortorder).equalTo(row::getSortorder) + .set(filefrom).equalTo(row::getFilefrom) + .set(archivestag).equalTo(row::getArchivestag) + .set(adddate).equalTo(row::getAdddate) + .set(editdate).equalTo(row::getEditdate) + .set(time_stamp).equalTo(row::getTime_stamp) + .set(isdel).equalTo(row::getIsdel) + .set(downurl).equalTo(row::getDownurl) + .set(filesize).equalTo(row::getFilesize); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.5018484+08:00", comments="Source Table: public.syn_file") + static UpdateDSL updateSelectiveColumns(SynFile row, UpdateDSL dsl) { + return dsl.set(id).equalToWhenPresent(row::getId) + .set(p_id).equalToWhenPresent(row::getP_id) + .set(tablenumber).equalToWhenPresent(row::getTablenumber) + .set(annexname).equalToWhenPresent(row::getAnnexname) + .set(projectname).equalToWhenPresent(row::getProjectname) + .set(eweavedate).equalToWhenPresent(row::getEweavedate) + .set(checkdate).equalToWhenPresent(row::getCheckdate) + .set(annexpage).equalToWhenPresent(row::getAnnexpage) + .set(sortorder).equalToWhenPresent(row::getSortorder) + .set(filefrom).equalToWhenPresent(row::getFilefrom) + .set(archivestag).equalToWhenPresent(row::getArchivestag) + .set(adddate).equalToWhenPresent(row::getAdddate) + .set(editdate).equalToWhenPresent(row::getEditdate) + .set(time_stamp).equalToWhenPresent(row::getTime_stamp) + .set(isdel).equalToWhenPresent(row::getIsdel) + .set(downurl).equalToWhenPresent(row::getDownurl) + .set(filesize).equalToWhenPresent(row::getFilesize); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.5018484+08:00", comments="Source Table: public.syn_file") + default int updateByPrimaryKey(SynFile row) { + return update(c -> + c.set(p_id).equalTo(row::getP_id) + .set(tablenumber).equalTo(row::getTablenumber) + .set(annexname).equalTo(row::getAnnexname) + .set(projectname).equalTo(row::getProjectname) + .set(eweavedate).equalTo(row::getEweavedate) + .set(checkdate).equalTo(row::getCheckdate) + .set(annexpage).equalTo(row::getAnnexpage) + .set(sortorder).equalTo(row::getSortorder) + .set(filefrom).equalTo(row::getFilefrom) + .set(archivestag).equalTo(row::getArchivestag) + .set(adddate).equalTo(row::getAdddate) + .set(editdate).equalTo(row::getEditdate) + .set(time_stamp).equalTo(row::getTime_stamp) + .set(isdel).equalTo(row::getIsdel) + .set(downurl).equalTo(row::getDownurl) + .set(filesize).equalTo(row::getFilesize) + .where(id, isEqualTo(row::getId)) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.5018484+08:00", comments="Source Table: public.syn_file") + default int updateByPrimaryKeySelective(SynFile row) { + return update(c -> + c.set(p_id).equalToWhenPresent(row::getP_id) + .set(tablenumber).equalToWhenPresent(row::getTablenumber) + .set(annexname).equalToWhenPresent(row::getAnnexname) + .set(projectname).equalToWhenPresent(row::getProjectname) + .set(eweavedate).equalToWhenPresent(row::getEweavedate) + .set(checkdate).equalToWhenPresent(row::getCheckdate) + .set(annexpage).equalToWhenPresent(row::getAnnexpage) + .set(sortorder).equalToWhenPresent(row::getSortorder) + .set(filefrom).equalToWhenPresent(row::getFilefrom) + .set(archivestag).equalToWhenPresent(row::getArchivestag) + .set(adddate).equalToWhenPresent(row::getAdddate) + .set(editdate).equalToWhenPresent(row::getEditdate) + .set(time_stamp).equalToWhenPresent(row::getTime_stamp) + .set(isdel).equalToWhenPresent(row::getIsdel) + .set(downurl).equalToWhenPresent(row::getDownurl) + .set(filesize).equalToWhenPresent(row::getFilesize) + .where(id, isEqualTo(row::getId)) + ); + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/dao/Sync2blockchainTaskMapper.java b/src/main/java/jj/tech/paolu/repository/mybatis/dao/Sync2blockchainTaskMapper.java new file mode 100644 index 0000000..6716892 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/dao/Sync2blockchainTaskMapper.java @@ -0,0 +1,265 @@ +package jj.tech.paolu.repository.mybatis.dao; + +import static jj.tech.paolu.repository.mybatis.dao.support.Sync2blockchainTaskDynamicSqlSupport.*; +import static org.mybatis.dynamic.sql.SqlBuilder.isEqualTo; + +import jakarta.annotation.Generated; +import java.util.Collection; +import java.util.List; +import java.util.Optional; +import jj.tech.paolu.repository.mybatis.entity.Sync2blockchainTask; +import org.apache.ibatis.annotations.Mapper; +import org.apache.ibatis.annotations.Result; +import org.apache.ibatis.annotations.ResultMap; +import org.apache.ibatis.annotations.Results; +import org.apache.ibatis.annotations.SelectProvider; +import org.apache.ibatis.type.JdbcType; +import org.mybatis.dynamic.sql.BasicColumn; +import org.mybatis.dynamic.sql.delete.DeleteDSLCompleter; +import org.mybatis.dynamic.sql.select.CountDSLCompleter; +import org.mybatis.dynamic.sql.select.SelectDSLCompleter; +import org.mybatis.dynamic.sql.select.render.SelectStatementProvider; +import org.mybatis.dynamic.sql.update.UpdateDSL; +import org.mybatis.dynamic.sql.update.UpdateDSLCompleter; +import org.mybatis.dynamic.sql.update.UpdateModel; +import org.mybatis.dynamic.sql.util.SqlProviderAdapter; +import org.mybatis.dynamic.sql.util.mybatis3.CommonCountMapper; +import org.mybatis.dynamic.sql.util.mybatis3.CommonDeleteMapper; +import org.mybatis.dynamic.sql.util.mybatis3.CommonInsertMapper; +import org.mybatis.dynamic.sql.util.mybatis3.CommonUpdateMapper; +import org.mybatis.dynamic.sql.util.mybatis3.MyBatis3Utils; + +@Mapper +public interface Sync2blockchainTaskMapper extends CommonCountMapper, CommonDeleteMapper, CommonInsertMapper, CommonUpdateMapper { + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.5064726+08:00", comments="Source Table: public.sync2blockchain_task") + BasicColumn[] selectList = BasicColumn.columnList(id, start_time, end_time, update_dir_count, insert_dir_count, remove_dir_count, execute_status, desp, update_dirfile_count, insert_dirfile_count, remove_dirfile_count, update_file_count, insert_file_count, remove_file_count, need_process_count, processed_count, failed_process_count); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.5052829+08:00", comments="Source Table: public.sync2blockchain_task") + @SelectProvider(type=SqlProviderAdapter.class, method="select") + @Results(id="Sync2blockchainTaskResult", value = { + @Result(column="id", property="id", jdbcType=JdbcType.VARCHAR, id=true), + @Result(column="start_time", property="start_time", jdbcType=JdbcType.TIMESTAMP), + @Result(column="end_time", property="end_time", jdbcType=JdbcType.TIMESTAMP), + @Result(column="update_dir_count", property="update_dir_count", jdbcType=JdbcType.INTEGER), + @Result(column="insert_dir_count", property="insert_dir_count", jdbcType=JdbcType.INTEGER), + @Result(column="remove_dir_count", property="remove_dir_count", jdbcType=JdbcType.INTEGER), + @Result(column="execute_status", property="execute_status", jdbcType=JdbcType.INTEGER), + @Result(column="desp", property="desp", jdbcType=JdbcType.VARCHAR), + @Result(column="update_dirfile_count", property="update_dirfile_count", jdbcType=JdbcType.INTEGER), + @Result(column="insert_dirfile_count", property="insert_dirfile_count", jdbcType=JdbcType.INTEGER), + @Result(column="remove_dirfile_count", property="remove_dirfile_count", jdbcType=JdbcType.INTEGER), + @Result(column="update_file_count", property="update_file_count", jdbcType=JdbcType.INTEGER), + @Result(column="insert_file_count", property="insert_file_count", jdbcType=JdbcType.INTEGER), + @Result(column="remove_file_count", property="remove_file_count", jdbcType=JdbcType.INTEGER), + @Result(column="need_process_count", property="need_process_count", jdbcType=JdbcType.INTEGER), + @Result(column="processed_count", property="processed_count", jdbcType=JdbcType.INTEGER), + @Result(column="failed_process_count", property="failed_process_count", jdbcType=JdbcType.INTEGER) + }) + List selectMany(SelectStatementProvider selectStatement); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.5052829+08:00", comments="Source Table: public.sync2blockchain_task") + @SelectProvider(type=SqlProviderAdapter.class, method="select") + @ResultMap("Sync2blockchainTaskResult") + Optional selectOne(SelectStatementProvider selectStatement); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.5052829+08:00", comments="Source Table: public.sync2blockchain_task") + default long count(CountDSLCompleter completer) { + return MyBatis3Utils.countFrom(this::count, sync2blockchainTask, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.5052829+08:00", comments="Source Table: public.sync2blockchain_task") + default int delete(DeleteDSLCompleter completer) { + return MyBatis3Utils.deleteFrom(this::delete, sync2blockchainTask, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.5052829+08:00", comments="Source Table: public.sync2blockchain_task") + default int deleteByPrimaryKey(String id_) { + return delete(c -> + c.where(id, isEqualTo(id_)) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.5052829+08:00", comments="Source Table: public.sync2blockchain_task") + default int insert(Sync2blockchainTask row) { + return MyBatis3Utils.insert(this::insert, row, sync2blockchainTask, c -> + c.map(id).toProperty("id") + .map(start_time).toProperty("start_time") + .map(end_time).toProperty("end_time") + .map(update_dir_count).toProperty("update_dir_count") + .map(insert_dir_count).toProperty("insert_dir_count") + .map(remove_dir_count).toProperty("remove_dir_count") + .map(execute_status).toProperty("execute_status") + .map(desp).toProperty("desp") + .map(update_dirfile_count).toProperty("update_dirfile_count") + .map(insert_dirfile_count).toProperty("insert_dirfile_count") + .map(remove_dirfile_count).toProperty("remove_dirfile_count") + .map(update_file_count).toProperty("update_file_count") + .map(insert_file_count).toProperty("insert_file_count") + .map(remove_file_count).toProperty("remove_file_count") + .map(need_process_count).toProperty("need_process_count") + .map(processed_count).toProperty("processed_count") + .map(failed_process_count).toProperty("failed_process_count") + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.5064726+08:00", comments="Source Table: public.sync2blockchain_task") + default int insertMultiple(Collection records) { + return MyBatis3Utils.insertMultiple(this::insertMultiple, records, sync2blockchainTask, c -> + c.map(id).toProperty("id") + .map(start_time).toProperty("start_time") + .map(end_time).toProperty("end_time") + .map(update_dir_count).toProperty("update_dir_count") + .map(insert_dir_count).toProperty("insert_dir_count") + .map(remove_dir_count).toProperty("remove_dir_count") + .map(execute_status).toProperty("execute_status") + .map(desp).toProperty("desp") + .map(update_dirfile_count).toProperty("update_dirfile_count") + .map(insert_dirfile_count).toProperty("insert_dirfile_count") + .map(remove_dirfile_count).toProperty("remove_dirfile_count") + .map(update_file_count).toProperty("update_file_count") + .map(insert_file_count).toProperty("insert_file_count") + .map(remove_file_count).toProperty("remove_file_count") + .map(need_process_count).toProperty("need_process_count") + .map(processed_count).toProperty("processed_count") + .map(failed_process_count).toProperty("failed_process_count") + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.5064726+08:00", comments="Source Table: public.sync2blockchain_task") + default int insertSelective(Sync2blockchainTask row) { + return MyBatis3Utils.insert(this::insert, row, sync2blockchainTask, c -> + c.map(id).toPropertyWhenPresent("id", row::getId) + .map(start_time).toPropertyWhenPresent("start_time", row::getStart_time) + .map(end_time).toPropertyWhenPresent("end_time", row::getEnd_time) + .map(update_dir_count).toPropertyWhenPresent("update_dir_count", row::getUpdate_dir_count) + .map(insert_dir_count).toPropertyWhenPresent("insert_dir_count", row::getInsert_dir_count) + .map(remove_dir_count).toPropertyWhenPresent("remove_dir_count", row::getRemove_dir_count) + .map(execute_status).toPropertyWhenPresent("execute_status", row::getExecute_status) + .map(desp).toPropertyWhenPresent("desp", row::getDesp) + .map(update_dirfile_count).toPropertyWhenPresent("update_dirfile_count", row::getUpdate_dirfile_count) + .map(insert_dirfile_count).toPropertyWhenPresent("insert_dirfile_count", row::getInsert_dirfile_count) + .map(remove_dirfile_count).toPropertyWhenPresent("remove_dirfile_count", row::getRemove_dirfile_count) + .map(update_file_count).toPropertyWhenPresent("update_file_count", row::getUpdate_file_count) + .map(insert_file_count).toPropertyWhenPresent("insert_file_count", row::getInsert_file_count) + .map(remove_file_count).toPropertyWhenPresent("remove_file_count", row::getRemove_file_count) + .map(need_process_count).toPropertyWhenPresent("need_process_count", row::getNeed_process_count) + .map(processed_count).toPropertyWhenPresent("processed_count", row::getProcessed_count) + .map(failed_process_count).toPropertyWhenPresent("failed_process_count", row::getFailed_process_count) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.5064726+08:00", comments="Source Table: public.sync2blockchain_task") + default Optional selectOne(SelectDSLCompleter completer) { + return MyBatis3Utils.selectOne(this::selectOne, selectList, sync2blockchainTask, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.5064726+08:00", comments="Source Table: public.sync2blockchain_task") + default List select(SelectDSLCompleter completer) { + return MyBatis3Utils.selectList(this::selectMany, selectList, sync2blockchainTask, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.5064726+08:00", comments="Source Table: public.sync2blockchain_task") + default List selectDistinct(SelectDSLCompleter completer) { + return MyBatis3Utils.selectDistinct(this::selectMany, selectList, sync2blockchainTask, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.5074731+08:00", comments="Source Table: public.sync2blockchain_task") + default Optional selectByPrimaryKey(String id_) { + return selectOne(c -> + c.where(id, isEqualTo(id_)) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.5074731+08:00", comments="Source Table: public.sync2blockchain_task") + default int update(UpdateDSLCompleter completer) { + return MyBatis3Utils.update(this::update, sync2blockchainTask, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.5074731+08:00", comments="Source Table: public.sync2blockchain_task") + static UpdateDSL updateAllColumns(Sync2blockchainTask row, UpdateDSL dsl) { + return dsl.set(id).equalTo(row::getId) + .set(start_time).equalTo(row::getStart_time) + .set(end_time).equalTo(row::getEnd_time) + .set(update_dir_count).equalTo(row::getUpdate_dir_count) + .set(insert_dir_count).equalTo(row::getInsert_dir_count) + .set(remove_dir_count).equalTo(row::getRemove_dir_count) + .set(execute_status).equalTo(row::getExecute_status) + .set(desp).equalTo(row::getDesp) + .set(update_dirfile_count).equalTo(row::getUpdate_dirfile_count) + .set(insert_dirfile_count).equalTo(row::getInsert_dirfile_count) + .set(remove_dirfile_count).equalTo(row::getRemove_dirfile_count) + .set(update_file_count).equalTo(row::getUpdate_file_count) + .set(insert_file_count).equalTo(row::getInsert_file_count) + .set(remove_file_count).equalTo(row::getRemove_file_count) + .set(need_process_count).equalTo(row::getNeed_process_count) + .set(processed_count).equalTo(row::getProcessed_count) + .set(failed_process_count).equalTo(row::getFailed_process_count); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.5074731+08:00", comments="Source Table: public.sync2blockchain_task") + static UpdateDSL updateSelectiveColumns(Sync2blockchainTask row, UpdateDSL dsl) { + return dsl.set(id).equalToWhenPresent(row::getId) + .set(start_time).equalToWhenPresent(row::getStart_time) + .set(end_time).equalToWhenPresent(row::getEnd_time) + .set(update_dir_count).equalToWhenPresent(row::getUpdate_dir_count) + .set(insert_dir_count).equalToWhenPresent(row::getInsert_dir_count) + .set(remove_dir_count).equalToWhenPresent(row::getRemove_dir_count) + .set(execute_status).equalToWhenPresent(row::getExecute_status) + .set(desp).equalToWhenPresent(row::getDesp) + .set(update_dirfile_count).equalToWhenPresent(row::getUpdate_dirfile_count) + .set(insert_dirfile_count).equalToWhenPresent(row::getInsert_dirfile_count) + .set(remove_dirfile_count).equalToWhenPresent(row::getRemove_dirfile_count) + .set(update_file_count).equalToWhenPresent(row::getUpdate_file_count) + .set(insert_file_count).equalToWhenPresent(row::getInsert_file_count) + .set(remove_file_count).equalToWhenPresent(row::getRemove_file_count) + .set(need_process_count).equalToWhenPresent(row::getNeed_process_count) + .set(processed_count).equalToWhenPresent(row::getProcessed_count) + .set(failed_process_count).equalToWhenPresent(row::getFailed_process_count); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.5074731+08:00", comments="Source Table: public.sync2blockchain_task") + default int updateByPrimaryKey(Sync2blockchainTask row) { + return update(c -> + c.set(start_time).equalTo(row::getStart_time) + .set(end_time).equalTo(row::getEnd_time) + .set(update_dir_count).equalTo(row::getUpdate_dir_count) + .set(insert_dir_count).equalTo(row::getInsert_dir_count) + .set(remove_dir_count).equalTo(row::getRemove_dir_count) + .set(execute_status).equalTo(row::getExecute_status) + .set(desp).equalTo(row::getDesp) + .set(update_dirfile_count).equalTo(row::getUpdate_dirfile_count) + .set(insert_dirfile_count).equalTo(row::getInsert_dirfile_count) + .set(remove_dirfile_count).equalTo(row::getRemove_dirfile_count) + .set(update_file_count).equalTo(row::getUpdate_file_count) + .set(insert_file_count).equalTo(row::getInsert_file_count) + .set(remove_file_count).equalTo(row::getRemove_file_count) + .set(need_process_count).equalTo(row::getNeed_process_count) + .set(processed_count).equalTo(row::getProcessed_count) + .set(failed_process_count).equalTo(row::getFailed_process_count) + .where(id, isEqualTo(row::getId)) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.5074731+08:00", comments="Source Table: public.sync2blockchain_task") + default int updateByPrimaryKeySelective(Sync2blockchainTask row) { + return update(c -> + c.set(start_time).equalToWhenPresent(row::getStart_time) + .set(end_time).equalToWhenPresent(row::getEnd_time) + .set(update_dir_count).equalToWhenPresent(row::getUpdate_dir_count) + .set(insert_dir_count).equalToWhenPresent(row::getInsert_dir_count) + .set(remove_dir_count).equalToWhenPresent(row::getRemove_dir_count) + .set(execute_status).equalToWhenPresent(row::getExecute_status) + .set(desp).equalToWhenPresent(row::getDesp) + .set(update_dirfile_count).equalToWhenPresent(row::getUpdate_dirfile_count) + .set(insert_dirfile_count).equalToWhenPresent(row::getInsert_dirfile_count) + .set(remove_dirfile_count).equalToWhenPresent(row::getRemove_dirfile_count) + .set(update_file_count).equalToWhenPresent(row::getUpdate_file_count) + .set(insert_file_count).equalToWhenPresent(row::getInsert_file_count) + .set(remove_file_count).equalToWhenPresent(row::getRemove_file_count) + .set(need_process_count).equalToWhenPresent(row::getNeed_process_count) + .set(processed_count).equalToWhenPresent(row::getProcessed_count) + .set(failed_process_count).equalToWhenPresent(row::getFailed_process_count) + .where(id, isEqualTo(row::getId)) + ); + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/dao/SysAdminMapper.java b/src/main/java/jj/tech/paolu/repository/mybatis/dao/SysAdminMapper.java new file mode 100644 index 0000000..80c5d28 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/dao/SysAdminMapper.java @@ -0,0 +1,241 @@ +package jj.tech.paolu.repository.mybatis.dao; + +import static jj.tech.paolu.repository.mybatis.dao.support.SysAdminDynamicSqlSupport.*; +import static org.mybatis.dynamic.sql.SqlBuilder.isEqualTo; + +import jakarta.annotation.Generated; +import java.util.Collection; +import java.util.List; +import java.util.Optional; +import jj.tech.paolu.repository.mybatis.entity.SysAdmin; +import org.apache.ibatis.annotations.Mapper; +import org.apache.ibatis.annotations.Result; +import org.apache.ibatis.annotations.ResultMap; +import org.apache.ibatis.annotations.Results; +import org.apache.ibatis.annotations.SelectProvider; +import org.apache.ibatis.type.JdbcType; +import org.mybatis.dynamic.sql.BasicColumn; +import org.mybatis.dynamic.sql.delete.DeleteDSLCompleter; +import org.mybatis.dynamic.sql.select.CountDSLCompleter; +import org.mybatis.dynamic.sql.select.SelectDSLCompleter; +import org.mybatis.dynamic.sql.select.render.SelectStatementProvider; +import org.mybatis.dynamic.sql.update.UpdateDSL; +import org.mybatis.dynamic.sql.update.UpdateDSLCompleter; +import org.mybatis.dynamic.sql.update.UpdateModel; +import org.mybatis.dynamic.sql.util.SqlProviderAdapter; +import org.mybatis.dynamic.sql.util.mybatis3.CommonCountMapper; +import org.mybatis.dynamic.sql.util.mybatis3.CommonDeleteMapper; +import org.mybatis.dynamic.sql.util.mybatis3.CommonInsertMapper; +import org.mybatis.dynamic.sql.util.mybatis3.CommonUpdateMapper; +import org.mybatis.dynamic.sql.util.mybatis3.MyBatis3Utils; + +@Mapper +public interface SysAdminMapper extends CommonCountMapper, CommonDeleteMapper, CommonInsertMapper, CommonUpdateMapper { + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.28715+08:00", comments="Source Table: public.sys_admin") + BasicColumn[] selectList = BasicColumn.columnList(id, org_id, realname, username, password, phone, email, job, gender, islock, type, sort, cer_id, company_id); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2861501+08:00", comments="Source Table: public.sys_admin") + @SelectProvider(type=SqlProviderAdapter.class, method="select") + @Results(id="SysAdminResult", value = { + @Result(column="id", property="id", jdbcType=JdbcType.VARCHAR, id=true), + @Result(column="org_id", property="org_id", jdbcType=JdbcType.VARCHAR), + @Result(column="realname", property="realname", jdbcType=JdbcType.VARCHAR), + @Result(column="username", property="username", jdbcType=JdbcType.VARCHAR), + @Result(column="password", property="password", jdbcType=JdbcType.VARCHAR), + @Result(column="phone", property="phone", jdbcType=JdbcType.VARCHAR), + @Result(column="email", property="email", jdbcType=JdbcType.VARCHAR), + @Result(column="job", property="job", jdbcType=JdbcType.VARCHAR), + @Result(column="gender", property="gender", jdbcType=JdbcType.INTEGER), + @Result(column="islock", property="islock", jdbcType=JdbcType.INTEGER), + @Result(column="type", property="type", jdbcType=JdbcType.INTEGER), + @Result(column="sort", property="sort", jdbcType=JdbcType.INTEGER), + @Result(column="cer_id", property="cer_id", jdbcType=JdbcType.VARCHAR), + @Result(column="company_id", property="company_id", jdbcType=JdbcType.VARCHAR) + }) + List selectMany(SelectStatementProvider selectStatement); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2861501+08:00", comments="Source Table: public.sys_admin") + @SelectProvider(type=SqlProviderAdapter.class, method="select") + @ResultMap("SysAdminResult") + Optional selectOne(SelectStatementProvider selectStatement); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2861501+08:00", comments="Source Table: public.sys_admin") + default long count(CountDSLCompleter completer) { + return MyBatis3Utils.countFrom(this::count, sysAdmin, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2861501+08:00", comments="Source Table: public.sys_admin") + default int delete(DeleteDSLCompleter completer) { + return MyBatis3Utils.deleteFrom(this::delete, sysAdmin, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2861501+08:00", comments="Source Table: public.sys_admin") + default int deleteByPrimaryKey(String id_) { + return delete(c -> + c.where(id, isEqualTo(id_)) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2861501+08:00", comments="Source Table: public.sys_admin") + default int insert(SysAdmin row) { + return MyBatis3Utils.insert(this::insert, row, sysAdmin, c -> + c.map(id).toProperty("id") + .map(org_id).toProperty("org_id") + .map(realname).toProperty("realname") + .map(username).toProperty("username") + .map(password).toProperty("password") + .map(phone).toProperty("phone") + .map(email).toProperty("email") + .map(job).toProperty("job") + .map(gender).toProperty("gender") + .map(islock).toProperty("islock") + .map(type).toProperty("type") + .map(sort).toProperty("sort") + .map(cer_id).toProperty("cer_id") + .map(company_id).toProperty("company_id") + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2861501+08:00", comments="Source Table: public.sys_admin") + default int insertMultiple(Collection records) { + return MyBatis3Utils.insertMultiple(this::insertMultiple, records, sysAdmin, c -> + c.map(id).toProperty("id") + .map(org_id).toProperty("org_id") + .map(realname).toProperty("realname") + .map(username).toProperty("username") + .map(password).toProperty("password") + .map(phone).toProperty("phone") + .map(email).toProperty("email") + .map(job).toProperty("job") + .map(gender).toProperty("gender") + .map(islock).toProperty("islock") + .map(type).toProperty("type") + .map(sort).toProperty("sort") + .map(cer_id).toProperty("cer_id") + .map(company_id).toProperty("company_id") + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2861501+08:00", comments="Source Table: public.sys_admin") + default int insertSelective(SysAdmin row) { + return MyBatis3Utils.insert(this::insert, row, sysAdmin, c -> + c.map(id).toPropertyWhenPresent("id", row::getId) + .map(org_id).toPropertyWhenPresent("org_id", row::getOrg_id) + .map(realname).toPropertyWhenPresent("realname", row::getRealname) + .map(username).toPropertyWhenPresent("username", row::getUsername) + .map(password).toPropertyWhenPresent("password", row::getPassword) + .map(phone).toPropertyWhenPresent("phone", row::getPhone) + .map(email).toPropertyWhenPresent("email", row::getEmail) + .map(job).toPropertyWhenPresent("job", row::getJob) + .map(gender).toPropertyWhenPresent("gender", row::getGender) + .map(islock).toPropertyWhenPresent("islock", row::getIslock) + .map(type).toPropertyWhenPresent("type", row::getType) + .map(sort).toPropertyWhenPresent("sort", row::getSort) + .map(cer_id).toPropertyWhenPresent("cer_id", row::getCer_id) + .map(company_id).toPropertyWhenPresent("company_id", row::getCompany_id) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.28715+08:00", comments="Source Table: public.sys_admin") + default Optional selectOne(SelectDSLCompleter completer) { + return MyBatis3Utils.selectOne(this::selectOne, selectList, sysAdmin, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.28715+08:00", comments="Source Table: public.sys_admin") + default List select(SelectDSLCompleter completer) { + return MyBatis3Utils.selectList(this::selectMany, selectList, sysAdmin, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.28715+08:00", comments="Source Table: public.sys_admin") + default List selectDistinct(SelectDSLCompleter completer) { + return MyBatis3Utils.selectDistinct(this::selectMany, selectList, sysAdmin, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.28715+08:00", comments="Source Table: public.sys_admin") + default Optional selectByPrimaryKey(String id_) { + return selectOne(c -> + c.where(id, isEqualTo(id_)) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.28715+08:00", comments="Source Table: public.sys_admin") + default int update(UpdateDSLCompleter completer) { + return MyBatis3Utils.update(this::update, sysAdmin, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.28715+08:00", comments="Source Table: public.sys_admin") + static UpdateDSL updateAllColumns(SysAdmin row, UpdateDSL dsl) { + return dsl.set(id).equalTo(row::getId) + .set(org_id).equalTo(row::getOrg_id) + .set(realname).equalTo(row::getRealname) + .set(username).equalTo(row::getUsername) + .set(password).equalTo(row::getPassword) + .set(phone).equalTo(row::getPhone) + .set(email).equalTo(row::getEmail) + .set(job).equalTo(row::getJob) + .set(gender).equalTo(row::getGender) + .set(islock).equalTo(row::getIslock) + .set(type).equalTo(row::getType) + .set(sort).equalTo(row::getSort) + .set(cer_id).equalTo(row::getCer_id) + .set(company_id).equalTo(row::getCompany_id); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.28715+08:00", comments="Source Table: public.sys_admin") + static UpdateDSL updateSelectiveColumns(SysAdmin row, UpdateDSL dsl) { + return dsl.set(id).equalToWhenPresent(row::getId) + .set(org_id).equalToWhenPresent(row::getOrg_id) + .set(realname).equalToWhenPresent(row::getRealname) + .set(username).equalToWhenPresent(row::getUsername) + .set(password).equalToWhenPresent(row::getPassword) + .set(phone).equalToWhenPresent(row::getPhone) + .set(email).equalToWhenPresent(row::getEmail) + .set(job).equalToWhenPresent(row::getJob) + .set(gender).equalToWhenPresent(row::getGender) + .set(islock).equalToWhenPresent(row::getIslock) + .set(type).equalToWhenPresent(row::getType) + .set(sort).equalToWhenPresent(row::getSort) + .set(cer_id).equalToWhenPresent(row::getCer_id) + .set(company_id).equalToWhenPresent(row::getCompany_id); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.28715+08:00", comments="Source Table: public.sys_admin") + default int updateByPrimaryKey(SysAdmin row) { + return update(c -> + c.set(org_id).equalTo(row::getOrg_id) + .set(realname).equalTo(row::getRealname) + .set(username).equalTo(row::getUsername) + .set(password).equalTo(row::getPassword) + .set(phone).equalTo(row::getPhone) + .set(email).equalTo(row::getEmail) + .set(job).equalTo(row::getJob) + .set(gender).equalTo(row::getGender) + .set(islock).equalTo(row::getIslock) + .set(type).equalTo(row::getType) + .set(sort).equalTo(row::getSort) + .set(cer_id).equalTo(row::getCer_id) + .set(company_id).equalTo(row::getCompany_id) + .where(id, isEqualTo(row::getId)) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.28715+08:00", comments="Source Table: public.sys_admin") + default int updateByPrimaryKeySelective(SysAdmin row) { + return update(c -> + c.set(org_id).equalToWhenPresent(row::getOrg_id) + .set(realname).equalToWhenPresent(row::getRealname) + .set(username).equalToWhenPresent(row::getUsername) + .set(password).equalToWhenPresent(row::getPassword) + .set(phone).equalToWhenPresent(row::getPhone) + .set(email).equalToWhenPresent(row::getEmail) + .set(job).equalToWhenPresent(row::getJob) + .set(gender).equalToWhenPresent(row::getGender) + .set(islock).equalToWhenPresent(row::getIslock) + .set(type).equalToWhenPresent(row::getType) + .set(sort).equalToWhenPresent(row::getSort) + .set(cer_id).equalToWhenPresent(row::getCer_id) + .set(company_id).equalToWhenPresent(row::getCompany_id) + .where(id, isEqualTo(row::getId)) + ); + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/dao/SysAdminRoleMapper.java b/src/main/java/jj/tech/paolu/repository/mybatis/dao/SysAdminRoleMapper.java new file mode 100644 index 0000000..f73096b --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/dao/SysAdminRoleMapper.java @@ -0,0 +1,153 @@ +package jj.tech.paolu.repository.mybatis.dao; + +import static jj.tech.paolu.repository.mybatis.dao.support.SysAdminRoleDynamicSqlSupport.*; +import static org.mybatis.dynamic.sql.SqlBuilder.isEqualTo; + +import jakarta.annotation.Generated; +import java.util.Collection; +import java.util.List; +import java.util.Optional; +import jj.tech.paolu.repository.mybatis.entity.SysAdminRole; +import org.apache.ibatis.annotations.Mapper; +import org.apache.ibatis.annotations.Result; +import org.apache.ibatis.annotations.ResultMap; +import org.apache.ibatis.annotations.Results; +import org.apache.ibatis.annotations.SelectProvider; +import org.apache.ibatis.type.JdbcType; +import org.mybatis.dynamic.sql.BasicColumn; +import org.mybatis.dynamic.sql.delete.DeleteDSLCompleter; +import org.mybatis.dynamic.sql.select.CountDSLCompleter; +import org.mybatis.dynamic.sql.select.SelectDSLCompleter; +import org.mybatis.dynamic.sql.select.render.SelectStatementProvider; +import org.mybatis.dynamic.sql.update.UpdateDSL; +import org.mybatis.dynamic.sql.update.UpdateDSLCompleter; +import org.mybatis.dynamic.sql.update.UpdateModel; +import org.mybatis.dynamic.sql.util.SqlProviderAdapter; +import org.mybatis.dynamic.sql.util.mybatis3.CommonCountMapper; +import org.mybatis.dynamic.sql.util.mybatis3.CommonDeleteMapper; +import org.mybatis.dynamic.sql.util.mybatis3.CommonInsertMapper; +import org.mybatis.dynamic.sql.util.mybatis3.CommonUpdateMapper; +import org.mybatis.dynamic.sql.util.mybatis3.MyBatis3Utils; + +@Mapper +public interface SysAdminRoleMapper extends CommonCountMapper, CommonDeleteMapper, CommonInsertMapper, CommonUpdateMapper { + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2921511+08:00", comments="Source Table: public.sys_admin_role") + BasicColumn[] selectList = BasicColumn.columnList(id, adminid, roleid); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.291149+08:00", comments="Source Table: public.sys_admin_role") + @SelectProvider(type=SqlProviderAdapter.class, method="select") + @Results(id="SysAdminRoleResult", value = { + @Result(column="id", property="id", jdbcType=JdbcType.VARCHAR, id=true), + @Result(column="adminid", property="adminid", jdbcType=JdbcType.VARCHAR), + @Result(column="roleid", property="roleid", jdbcType=JdbcType.VARCHAR) + }) + List selectMany(SelectStatementProvider selectStatement); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2921511+08:00", comments="Source Table: public.sys_admin_role") + @SelectProvider(type=SqlProviderAdapter.class, method="select") + @ResultMap("SysAdminRoleResult") + Optional selectOne(SelectStatementProvider selectStatement); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2921511+08:00", comments="Source Table: public.sys_admin_role") + default long count(CountDSLCompleter completer) { + return MyBatis3Utils.countFrom(this::count, sysAdminRole, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2921511+08:00", comments="Source Table: public.sys_admin_role") + default int delete(DeleteDSLCompleter completer) { + return MyBatis3Utils.deleteFrom(this::delete, sysAdminRole, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2921511+08:00", comments="Source Table: public.sys_admin_role") + default int deleteByPrimaryKey(String id_) { + return delete(c -> + c.where(id, isEqualTo(id_)) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2921511+08:00", comments="Source Table: public.sys_admin_role") + default int insert(SysAdminRole row) { + return MyBatis3Utils.insert(this::insert, row, sysAdminRole, c -> + c.map(id).toProperty("id") + .map(adminid).toProperty("adminid") + .map(roleid).toProperty("roleid") + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2921511+08:00", comments="Source Table: public.sys_admin_role") + default int insertMultiple(Collection records) { + return MyBatis3Utils.insertMultiple(this::insertMultiple, records, sysAdminRole, c -> + c.map(id).toProperty("id") + .map(adminid).toProperty("adminid") + .map(roleid).toProperty("roleid") + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2921511+08:00", comments="Source Table: public.sys_admin_role") + default int insertSelective(SysAdminRole row) { + return MyBatis3Utils.insert(this::insert, row, sysAdminRole, c -> + c.map(id).toPropertyWhenPresent("id", row::getId) + .map(adminid).toPropertyWhenPresent("adminid", row::getAdminid) + .map(roleid).toPropertyWhenPresent("roleid", row::getRoleid) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2921511+08:00", comments="Source Table: public.sys_admin_role") + default Optional selectOne(SelectDSLCompleter completer) { + return MyBatis3Utils.selectOne(this::selectOne, selectList, sysAdminRole, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2921511+08:00", comments="Source Table: public.sys_admin_role") + default List select(SelectDSLCompleter completer) { + return MyBatis3Utils.selectList(this::selectMany, selectList, sysAdminRole, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2921511+08:00", comments="Source Table: public.sys_admin_role") + default List selectDistinct(SelectDSLCompleter completer) { + return MyBatis3Utils.selectDistinct(this::selectMany, selectList, sysAdminRole, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2921511+08:00", comments="Source Table: public.sys_admin_role") + default Optional selectByPrimaryKey(String id_) { + return selectOne(c -> + c.where(id, isEqualTo(id_)) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2921511+08:00", comments="Source Table: public.sys_admin_role") + default int update(UpdateDSLCompleter completer) { + return MyBatis3Utils.update(this::update, sysAdminRole, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2921511+08:00", comments="Source Table: public.sys_admin_role") + static UpdateDSL updateAllColumns(SysAdminRole row, UpdateDSL dsl) { + return dsl.set(id).equalTo(row::getId) + .set(adminid).equalTo(row::getAdminid) + .set(roleid).equalTo(row::getRoleid); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2931502+08:00", comments="Source Table: public.sys_admin_role") + static UpdateDSL updateSelectiveColumns(SysAdminRole row, UpdateDSL dsl) { + return dsl.set(id).equalToWhenPresent(row::getId) + .set(adminid).equalToWhenPresent(row::getAdminid) + .set(roleid).equalToWhenPresent(row::getRoleid); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2931502+08:00", comments="Source Table: public.sys_admin_role") + default int updateByPrimaryKey(SysAdminRole row) { + return update(c -> + c.set(adminid).equalTo(row::getAdminid) + .set(roleid).equalTo(row::getRoleid) + .where(id, isEqualTo(row::getId)) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2931502+08:00", comments="Source Table: public.sys_admin_role") + default int updateByPrimaryKeySelective(SysAdminRole row) { + return update(c -> + c.set(adminid).equalToWhenPresent(row::getAdminid) + .set(roleid).equalToWhenPresent(row::getRoleid) + .where(id, isEqualTo(row::getId)) + ); + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/dao/SysAdminWeidMapper.java b/src/main/java/jj/tech/paolu/repository/mybatis/dao/SysAdminWeidMapper.java new file mode 100644 index 0000000..f5b54dd --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/dao/SysAdminWeidMapper.java @@ -0,0 +1,185 @@ +package jj.tech.paolu.repository.mybatis.dao; + +import static jj.tech.paolu.repository.mybatis.dao.support.SysAdminWeidDynamicSqlSupport.*; +import static org.mybatis.dynamic.sql.SqlBuilder.isEqualTo; + +import jakarta.annotation.Generated; +import java.util.Collection; +import java.util.List; +import java.util.Optional; +import jj.tech.paolu.repository.mybatis.entity.SysAdminWeid; +import org.apache.ibatis.annotations.Mapper; +import org.apache.ibatis.annotations.Result; +import org.apache.ibatis.annotations.ResultMap; +import org.apache.ibatis.annotations.Results; +import org.apache.ibatis.annotations.SelectProvider; +import org.apache.ibatis.type.JdbcType; +import org.mybatis.dynamic.sql.BasicColumn; +import org.mybatis.dynamic.sql.delete.DeleteDSLCompleter; +import org.mybatis.dynamic.sql.select.CountDSLCompleter; +import org.mybatis.dynamic.sql.select.SelectDSLCompleter; +import org.mybatis.dynamic.sql.select.render.SelectStatementProvider; +import org.mybatis.dynamic.sql.update.UpdateDSL; +import org.mybatis.dynamic.sql.update.UpdateDSLCompleter; +import org.mybatis.dynamic.sql.update.UpdateModel; +import org.mybatis.dynamic.sql.util.SqlProviderAdapter; +import org.mybatis.dynamic.sql.util.mybatis3.CommonCountMapper; +import org.mybatis.dynamic.sql.util.mybatis3.CommonDeleteMapper; +import org.mybatis.dynamic.sql.util.mybatis3.CommonInsertMapper; +import org.mybatis.dynamic.sql.util.mybatis3.CommonUpdateMapper; +import org.mybatis.dynamic.sql.util.mybatis3.MyBatis3Utils; + +@Mapper +public interface SysAdminWeidMapper extends CommonCountMapper, CommonDeleteMapper, CommonInsertMapper, CommonUpdateMapper { + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2841505+08:00", comments="Source Table: public.sys_admin_weid") + BasicColumn[] selectList = BasicColumn.columnList(id, admin_id, wid, wprivate_key, add_time, certificate_hash, chain_block); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2841505+08:00", comments="Source Table: public.sys_admin_weid") + @SelectProvider(type=SqlProviderAdapter.class, method="select") + @Results(id="SysAdminWeidResult", value = { + @Result(column="id", property="id", jdbcType=JdbcType.VARCHAR, id=true), + @Result(column="admin_id", property="admin_id", jdbcType=JdbcType.VARCHAR), + @Result(column="wid", property="wid", jdbcType=JdbcType.VARCHAR), + @Result(column="wprivate_key", property="wprivate_key", jdbcType=JdbcType.VARCHAR), + @Result(column="add_time", property="add_time", jdbcType=JdbcType.TIMESTAMP), + @Result(column="certificate_hash", property="certificate_hash", jdbcType=JdbcType.VARCHAR), + @Result(column="chain_block", property="chain_block", jdbcType=JdbcType.VARCHAR) + }) + List selectMany(SelectStatementProvider selectStatement); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2841505+08:00", comments="Source Table: public.sys_admin_weid") + @SelectProvider(type=SqlProviderAdapter.class, method="select") + @ResultMap("SysAdminWeidResult") + Optional selectOne(SelectStatementProvider selectStatement); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2841505+08:00", comments="Source Table: public.sys_admin_weid") + default long count(CountDSLCompleter completer) { + return MyBatis3Utils.countFrom(this::count, sysAdminWeid, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2841505+08:00", comments="Source Table: public.sys_admin_weid") + default int delete(DeleteDSLCompleter completer) { + return MyBatis3Utils.deleteFrom(this::delete, sysAdminWeid, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2841505+08:00", comments="Source Table: public.sys_admin_weid") + default int deleteByPrimaryKey(String id_) { + return delete(c -> + c.where(id, isEqualTo(id_)) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2841505+08:00", comments="Source Table: public.sys_admin_weid") + default int insert(SysAdminWeid row) { + return MyBatis3Utils.insert(this::insert, row, sysAdminWeid, c -> + c.map(id).toProperty("id") + .map(admin_id).toProperty("admin_id") + .map(wid).toProperty("wid") + .map(wprivate_key).toProperty("wprivate_key") + .map(add_time).toProperty("add_time") + .map(certificate_hash).toProperty("certificate_hash") + .map(chain_block).toProperty("chain_block") + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2841505+08:00", comments="Source Table: public.sys_admin_weid") + default int insertMultiple(Collection records) { + return MyBatis3Utils.insertMultiple(this::insertMultiple, records, sysAdminWeid, c -> + c.map(id).toProperty("id") + .map(admin_id).toProperty("admin_id") + .map(wid).toProperty("wid") + .map(wprivate_key).toProperty("wprivate_key") + .map(add_time).toProperty("add_time") + .map(certificate_hash).toProperty("certificate_hash") + .map(chain_block).toProperty("chain_block") + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2841505+08:00", comments="Source Table: public.sys_admin_weid") + default int insertSelective(SysAdminWeid row) { + return MyBatis3Utils.insert(this::insert, row, sysAdminWeid, c -> + c.map(id).toPropertyWhenPresent("id", row::getId) + .map(admin_id).toPropertyWhenPresent("admin_id", row::getAdmin_id) + .map(wid).toPropertyWhenPresent("wid", row::getWid) + .map(wprivate_key).toPropertyWhenPresent("wprivate_key", row::getWprivate_key) + .map(add_time).toPropertyWhenPresent("add_time", row::getAdd_time) + .map(certificate_hash).toPropertyWhenPresent("certificate_hash", row::getCertificate_hash) + .map(chain_block).toPropertyWhenPresent("chain_block", row::getChain_block) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2841505+08:00", comments="Source Table: public.sys_admin_weid") + default Optional selectOne(SelectDSLCompleter completer) { + return MyBatis3Utils.selectOne(this::selectOne, selectList, sysAdminWeid, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2841505+08:00", comments="Source Table: public.sys_admin_weid") + default List select(SelectDSLCompleter completer) { + return MyBatis3Utils.selectList(this::selectMany, selectList, sysAdminWeid, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2841505+08:00", comments="Source Table: public.sys_admin_weid") + default List selectDistinct(SelectDSLCompleter completer) { + return MyBatis3Utils.selectDistinct(this::selectMany, selectList, sysAdminWeid, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2841505+08:00", comments="Source Table: public.sys_admin_weid") + default Optional selectByPrimaryKey(String id_) { + return selectOne(c -> + c.where(id, isEqualTo(id_)) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2841505+08:00", comments="Source Table: public.sys_admin_weid") + default int update(UpdateDSLCompleter completer) { + return MyBatis3Utils.update(this::update, sysAdminWeid, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2841505+08:00", comments="Source Table: public.sys_admin_weid") + static UpdateDSL updateAllColumns(SysAdminWeid row, UpdateDSL dsl) { + return dsl.set(id).equalTo(row::getId) + .set(admin_id).equalTo(row::getAdmin_id) + .set(wid).equalTo(row::getWid) + .set(wprivate_key).equalTo(row::getWprivate_key) + .set(add_time).equalTo(row::getAdd_time) + .set(certificate_hash).equalTo(row::getCertificate_hash) + .set(chain_block).equalTo(row::getChain_block); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2851466+08:00", comments="Source Table: public.sys_admin_weid") + static UpdateDSL updateSelectiveColumns(SysAdminWeid row, UpdateDSL dsl) { + return dsl.set(id).equalToWhenPresent(row::getId) + .set(admin_id).equalToWhenPresent(row::getAdmin_id) + .set(wid).equalToWhenPresent(row::getWid) + .set(wprivate_key).equalToWhenPresent(row::getWprivate_key) + .set(add_time).equalToWhenPresent(row::getAdd_time) + .set(certificate_hash).equalToWhenPresent(row::getCertificate_hash) + .set(chain_block).equalToWhenPresent(row::getChain_block); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2851466+08:00", comments="Source Table: public.sys_admin_weid") + default int updateByPrimaryKey(SysAdminWeid row) { + return update(c -> + c.set(admin_id).equalTo(row::getAdmin_id) + .set(wid).equalTo(row::getWid) + .set(wprivate_key).equalTo(row::getWprivate_key) + .set(add_time).equalTo(row::getAdd_time) + .set(certificate_hash).equalTo(row::getCertificate_hash) + .set(chain_block).equalTo(row::getChain_block) + .where(id, isEqualTo(row::getId)) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2851466+08:00", comments="Source Table: public.sys_admin_weid") + default int updateByPrimaryKeySelective(SysAdminWeid row) { + return update(c -> + c.set(admin_id).equalToWhenPresent(row::getAdmin_id) + .set(wid).equalToWhenPresent(row::getWid) + .set(wprivate_key).equalToWhenPresent(row::getWprivate_key) + .set(add_time).equalToWhenPresent(row::getAdd_time) + .set(certificate_hash).equalToWhenPresent(row::getCertificate_hash) + .set(chain_block).equalToWhenPresent(row::getChain_block) + .where(id, isEqualTo(row::getId)) + ); + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/dao/SysAreaMapper.java b/src/main/java/jj/tech/paolu/repository/mybatis/dao/SysAreaMapper.java new file mode 100644 index 0000000..1a3ed77 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/dao/SysAreaMapper.java @@ -0,0 +1,185 @@ +package jj.tech.paolu.repository.mybatis.dao; + +import static jj.tech.paolu.repository.mybatis.dao.support.SysAreaDynamicSqlSupport.*; +import static org.mybatis.dynamic.sql.SqlBuilder.isEqualTo; + +import jakarta.annotation.Generated; +import java.util.Collection; +import java.util.List; +import java.util.Optional; +import jj.tech.paolu.repository.mybatis.entity.SysArea; +import org.apache.ibatis.annotations.Mapper; +import org.apache.ibatis.annotations.Result; +import org.apache.ibatis.annotations.ResultMap; +import org.apache.ibatis.annotations.Results; +import org.apache.ibatis.annotations.SelectProvider; +import org.apache.ibatis.type.JdbcType; +import org.mybatis.dynamic.sql.BasicColumn; +import org.mybatis.dynamic.sql.delete.DeleteDSLCompleter; +import org.mybatis.dynamic.sql.select.CountDSLCompleter; +import org.mybatis.dynamic.sql.select.SelectDSLCompleter; +import org.mybatis.dynamic.sql.select.render.SelectStatementProvider; +import org.mybatis.dynamic.sql.update.UpdateDSL; +import org.mybatis.dynamic.sql.update.UpdateDSLCompleter; +import org.mybatis.dynamic.sql.update.UpdateModel; +import org.mybatis.dynamic.sql.util.SqlProviderAdapter; +import org.mybatis.dynamic.sql.util.mybatis3.CommonCountMapper; +import org.mybatis.dynamic.sql.util.mybatis3.CommonDeleteMapper; +import org.mybatis.dynamic.sql.util.mybatis3.CommonInsertMapper; +import org.mybatis.dynamic.sql.util.mybatis3.CommonUpdateMapper; +import org.mybatis.dynamic.sql.util.mybatis3.MyBatis3Utils; + +@Mapper +public interface SysAreaMapper extends CommonCountMapper, CommonDeleteMapper, CommonInsertMapper, CommonUpdateMapper { + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.314148+08:00", comments="Source Table: public.sys_area") + BasicColumn[] selectList = BasicColumn.columnList(id, level_code, parent_code, area_code, name, pid, pids); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.314148+08:00", comments="Source Table: public.sys_area") + @SelectProvider(type=SqlProviderAdapter.class, method="select") + @Results(id="SysAreaResult", value = { + @Result(column="id", property="id", jdbcType=JdbcType.VARCHAR, id=true), + @Result(column="level_code", property="level_code", jdbcType=JdbcType.SMALLINT), + @Result(column="parent_code", property="parent_code", jdbcType=JdbcType.VARCHAR), + @Result(column="area_code", property="area_code", jdbcType=JdbcType.VARCHAR), + @Result(column="name", property="name", jdbcType=JdbcType.VARCHAR), + @Result(column="pid", property="pid", jdbcType=JdbcType.VARCHAR), + @Result(column="pids", property="pids", jdbcType=JdbcType.VARCHAR) + }) + List selectMany(SelectStatementProvider selectStatement); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.314148+08:00", comments="Source Table: public.sys_area") + @SelectProvider(type=SqlProviderAdapter.class, method="select") + @ResultMap("SysAreaResult") + Optional selectOne(SelectStatementProvider selectStatement); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.314148+08:00", comments="Source Table: public.sys_area") + default long count(CountDSLCompleter completer) { + return MyBatis3Utils.countFrom(this::count, sysArea, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.314148+08:00", comments="Source Table: public.sys_area") + default int delete(DeleteDSLCompleter completer) { + return MyBatis3Utils.deleteFrom(this::delete, sysArea, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.314148+08:00", comments="Source Table: public.sys_area") + default int deleteByPrimaryKey(String id_) { + return delete(c -> + c.where(id, isEqualTo(id_)) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.314148+08:00", comments="Source Table: public.sys_area") + default int insert(SysArea row) { + return MyBatis3Utils.insert(this::insert, row, sysArea, c -> + c.map(id).toProperty("id") + .map(level_code).toProperty("level_code") + .map(parent_code).toProperty("parent_code") + .map(area_code).toProperty("area_code") + .map(name).toProperty("name") + .map(pid).toProperty("pid") + .map(pids).toProperty("pids") + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.314148+08:00", comments="Source Table: public.sys_area") + default int insertMultiple(Collection records) { + return MyBatis3Utils.insertMultiple(this::insertMultiple, records, sysArea, c -> + c.map(id).toProperty("id") + .map(level_code).toProperty("level_code") + .map(parent_code).toProperty("parent_code") + .map(area_code).toProperty("area_code") + .map(name).toProperty("name") + .map(pid).toProperty("pid") + .map(pids).toProperty("pids") + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.314148+08:00", comments="Source Table: public.sys_area") + default int insertSelective(SysArea row) { + return MyBatis3Utils.insert(this::insert, row, sysArea, c -> + c.map(id).toPropertyWhenPresent("id", row::getId) + .map(level_code).toPropertyWhenPresent("level_code", row::getLevel_code) + .map(parent_code).toPropertyWhenPresent("parent_code", row::getParent_code) + .map(area_code).toPropertyWhenPresent("area_code", row::getArea_code) + .map(name).toPropertyWhenPresent("name", row::getName) + .map(pid).toPropertyWhenPresent("pid", row::getPid) + .map(pids).toPropertyWhenPresent("pids", row::getPids) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.314148+08:00", comments="Source Table: public.sys_area") + default Optional selectOne(SelectDSLCompleter completer) { + return MyBatis3Utils.selectOne(this::selectOne, selectList, sysArea, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.314148+08:00", comments="Source Table: public.sys_area") + default List select(SelectDSLCompleter completer) { + return MyBatis3Utils.selectList(this::selectMany, selectList, sysArea, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.314148+08:00", comments="Source Table: public.sys_area") + default List selectDistinct(SelectDSLCompleter completer) { + return MyBatis3Utils.selectDistinct(this::selectMany, selectList, sysArea, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.314148+08:00", comments="Source Table: public.sys_area") + default Optional selectByPrimaryKey(String id_) { + return selectOne(c -> + c.where(id, isEqualTo(id_)) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.314148+08:00", comments="Source Table: public.sys_area") + default int update(UpdateDSLCompleter completer) { + return MyBatis3Utils.update(this::update, sysArea, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.314148+08:00", comments="Source Table: public.sys_area") + static UpdateDSL updateAllColumns(SysArea row, UpdateDSL dsl) { + return dsl.set(id).equalTo(row::getId) + .set(level_code).equalTo(row::getLevel_code) + .set(parent_code).equalTo(row::getParent_code) + .set(area_code).equalTo(row::getArea_code) + .set(name).equalTo(row::getName) + .set(pid).equalTo(row::getPid) + .set(pids).equalTo(row::getPids); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3151511+08:00", comments="Source Table: public.sys_area") + static UpdateDSL updateSelectiveColumns(SysArea row, UpdateDSL dsl) { + return dsl.set(id).equalToWhenPresent(row::getId) + .set(level_code).equalToWhenPresent(row::getLevel_code) + .set(parent_code).equalToWhenPresent(row::getParent_code) + .set(area_code).equalToWhenPresent(row::getArea_code) + .set(name).equalToWhenPresent(row::getName) + .set(pid).equalToWhenPresent(row::getPid) + .set(pids).equalToWhenPresent(row::getPids); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3151511+08:00", comments="Source Table: public.sys_area") + default int updateByPrimaryKey(SysArea row) { + return update(c -> + c.set(level_code).equalTo(row::getLevel_code) + .set(parent_code).equalTo(row::getParent_code) + .set(area_code).equalTo(row::getArea_code) + .set(name).equalTo(row::getName) + .set(pid).equalTo(row::getPid) + .set(pids).equalTo(row::getPids) + .where(id, isEqualTo(row::getId)) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3151511+08:00", comments="Source Table: public.sys_area") + default int updateByPrimaryKeySelective(SysArea row) { + return update(c -> + c.set(level_code).equalToWhenPresent(row::getLevel_code) + .set(parent_code).equalToWhenPresent(row::getParent_code) + .set(area_code).equalToWhenPresent(row::getArea_code) + .set(name).equalToWhenPresent(row::getName) + .set(pid).equalToWhenPresent(row::getPid) + .set(pids).equalToWhenPresent(row::getPids) + .where(id, isEqualTo(row::getId)) + ); + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/dao/SysConfigMapper.java b/src/main/java/jj/tech/paolu/repository/mybatis/dao/SysConfigMapper.java new file mode 100644 index 0000000..3530d46 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/dao/SysConfigMapper.java @@ -0,0 +1,185 @@ +package jj.tech.paolu.repository.mybatis.dao; + +import static jj.tech.paolu.repository.mybatis.dao.support.SysConfigDynamicSqlSupport.*; +import static org.mybatis.dynamic.sql.SqlBuilder.isEqualTo; + +import jakarta.annotation.Generated; +import java.util.Collection; +import java.util.List; +import java.util.Optional; +import jj.tech.paolu.repository.mybatis.entity.SysConfig; +import org.apache.ibatis.annotations.Mapper; +import org.apache.ibatis.annotations.Result; +import org.apache.ibatis.annotations.ResultMap; +import org.apache.ibatis.annotations.Results; +import org.apache.ibatis.annotations.SelectProvider; +import org.apache.ibatis.type.JdbcType; +import org.mybatis.dynamic.sql.BasicColumn; +import org.mybatis.dynamic.sql.delete.DeleteDSLCompleter; +import org.mybatis.dynamic.sql.select.CountDSLCompleter; +import org.mybatis.dynamic.sql.select.SelectDSLCompleter; +import org.mybatis.dynamic.sql.select.render.SelectStatementProvider; +import org.mybatis.dynamic.sql.update.UpdateDSL; +import org.mybatis.dynamic.sql.update.UpdateDSLCompleter; +import org.mybatis.dynamic.sql.update.UpdateModel; +import org.mybatis.dynamic.sql.util.SqlProviderAdapter; +import org.mybatis.dynamic.sql.util.mybatis3.CommonCountMapper; +import org.mybatis.dynamic.sql.util.mybatis3.CommonDeleteMapper; +import org.mybatis.dynamic.sql.util.mybatis3.CommonInsertMapper; +import org.mybatis.dynamic.sql.util.mybatis3.CommonUpdateMapper; +import org.mybatis.dynamic.sql.util.mybatis3.MyBatis3Utils; + +@Mapper +public interface SysConfigMapper extends CommonCountMapper, CommonDeleteMapper, CommonInsertMapper, CommonUpdateMapper { + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2821548+08:00", comments="Source Table: public.sys_config") + BasicColumn[] selectList = BasicColumn.columnList(id, subgroup, keys, val, admin_id, adminname, edittime); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2821548+08:00", comments="Source Table: public.sys_config") + @SelectProvider(type=SqlProviderAdapter.class, method="select") + @Results(id="SysConfigResult", value = { + @Result(column="id", property="id", jdbcType=JdbcType.VARCHAR, id=true), + @Result(column="subgroup", property="subgroup", jdbcType=JdbcType.VARCHAR), + @Result(column="keys", property="keys", jdbcType=JdbcType.VARCHAR), + @Result(column="val", property="val", jdbcType=JdbcType.VARCHAR), + @Result(column="admin_id", property="admin_id", jdbcType=JdbcType.VARCHAR), + @Result(column="adminname", property="adminname", jdbcType=JdbcType.VARCHAR), + @Result(column="edittime", property="edittime", jdbcType=JdbcType.TIMESTAMP) + }) + List selectMany(SelectStatementProvider selectStatement); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2821548+08:00", comments="Source Table: public.sys_config") + @SelectProvider(type=SqlProviderAdapter.class, method="select") + @ResultMap("SysConfigResult") + Optional selectOne(SelectStatementProvider selectStatement); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2821548+08:00", comments="Source Table: public.sys_config") + default long count(CountDSLCompleter completer) { + return MyBatis3Utils.countFrom(this::count, sysConfig, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2821548+08:00", comments="Source Table: public.sys_config") + default int delete(DeleteDSLCompleter completer) { + return MyBatis3Utils.deleteFrom(this::delete, sysConfig, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2821548+08:00", comments="Source Table: public.sys_config") + default int deleteByPrimaryKey(String id_) { + return delete(c -> + c.where(id, isEqualTo(id_)) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2821548+08:00", comments="Source Table: public.sys_config") + default int insert(SysConfig row) { + return MyBatis3Utils.insert(this::insert, row, sysConfig, c -> + c.map(id).toProperty("id") + .map(subgroup).toProperty("subgroup") + .map(keys).toProperty("keys") + .map(val).toProperty("val") + .map(admin_id).toProperty("admin_id") + .map(adminname).toProperty("adminname") + .map(edittime).toProperty("edittime") + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2821548+08:00", comments="Source Table: public.sys_config") + default int insertMultiple(Collection records) { + return MyBatis3Utils.insertMultiple(this::insertMultiple, records, sysConfig, c -> + c.map(id).toProperty("id") + .map(subgroup).toProperty("subgroup") + .map(keys).toProperty("keys") + .map(val).toProperty("val") + .map(admin_id).toProperty("admin_id") + .map(adminname).toProperty("adminname") + .map(edittime).toProperty("edittime") + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2821548+08:00", comments="Source Table: public.sys_config") + default int insertSelective(SysConfig row) { + return MyBatis3Utils.insert(this::insert, row, sysConfig, c -> + c.map(id).toPropertyWhenPresent("id", row::getId) + .map(subgroup).toPropertyWhenPresent("subgroup", row::getSubgroup) + .map(keys).toPropertyWhenPresent("keys", row::getKeys) + .map(val).toPropertyWhenPresent("val", row::getVal) + .map(admin_id).toPropertyWhenPresent("admin_id", row::getAdmin_id) + .map(adminname).toPropertyWhenPresent("adminname", row::getAdminname) + .map(edittime).toPropertyWhenPresent("edittime", row::getEdittime) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2821548+08:00", comments="Source Table: public.sys_config") + default Optional selectOne(SelectDSLCompleter completer) { + return MyBatis3Utils.selectOne(this::selectOne, selectList, sysConfig, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2821548+08:00", comments="Source Table: public.sys_config") + default List select(SelectDSLCompleter completer) { + return MyBatis3Utils.selectList(this::selectMany, selectList, sysConfig, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2821548+08:00", comments="Source Table: public.sys_config") + default List selectDistinct(SelectDSLCompleter completer) { + return MyBatis3Utils.selectDistinct(this::selectMany, selectList, sysConfig, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.283154+08:00", comments="Source Table: public.sys_config") + default Optional selectByPrimaryKey(String id_) { + return selectOne(c -> + c.where(id, isEqualTo(id_)) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.283154+08:00", comments="Source Table: public.sys_config") + default int update(UpdateDSLCompleter completer) { + return MyBatis3Utils.update(this::update, sysConfig, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.283154+08:00", comments="Source Table: public.sys_config") + static UpdateDSL updateAllColumns(SysConfig row, UpdateDSL dsl) { + return dsl.set(id).equalTo(row::getId) + .set(subgroup).equalTo(row::getSubgroup) + .set(keys).equalTo(row::getKeys) + .set(val).equalTo(row::getVal) + .set(admin_id).equalTo(row::getAdmin_id) + .set(adminname).equalTo(row::getAdminname) + .set(edittime).equalTo(row::getEdittime); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.283154+08:00", comments="Source Table: public.sys_config") + static UpdateDSL updateSelectiveColumns(SysConfig row, UpdateDSL dsl) { + return dsl.set(id).equalToWhenPresent(row::getId) + .set(subgroup).equalToWhenPresent(row::getSubgroup) + .set(keys).equalToWhenPresent(row::getKeys) + .set(val).equalToWhenPresent(row::getVal) + .set(admin_id).equalToWhenPresent(row::getAdmin_id) + .set(adminname).equalToWhenPresent(row::getAdminname) + .set(edittime).equalToWhenPresent(row::getEdittime); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.283154+08:00", comments="Source Table: public.sys_config") + default int updateByPrimaryKey(SysConfig row) { + return update(c -> + c.set(subgroup).equalTo(row::getSubgroup) + .set(keys).equalTo(row::getKeys) + .set(val).equalTo(row::getVal) + .set(admin_id).equalTo(row::getAdmin_id) + .set(adminname).equalTo(row::getAdminname) + .set(edittime).equalTo(row::getEdittime) + .where(id, isEqualTo(row::getId)) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.283154+08:00", comments="Source Table: public.sys_config") + default int updateByPrimaryKeySelective(SysConfig row) { + return update(c -> + c.set(subgroup).equalToWhenPresent(row::getSubgroup) + .set(keys).equalToWhenPresent(row::getKeys) + .set(val).equalToWhenPresent(row::getVal) + .set(admin_id).equalToWhenPresent(row::getAdmin_id) + .set(adminname).equalToWhenPresent(row::getAdminname) + .set(edittime).equalToWhenPresent(row::getEdittime) + .where(id, isEqualTo(row::getId)) + ); + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/dao/SysMenuMapper.java b/src/main/java/jj/tech/paolu/repository/mybatis/dao/SysMenuMapper.java new file mode 100644 index 0000000..8b4aa20 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/dao/SysMenuMapper.java @@ -0,0 +1,217 @@ +package jj.tech.paolu.repository.mybatis.dao; + +import static jj.tech.paolu.repository.mybatis.dao.support.SysMenuDynamicSqlSupport.*; +import static org.mybatis.dynamic.sql.SqlBuilder.isEqualTo; + +import jakarta.annotation.Generated; +import java.util.Collection; +import java.util.List; +import java.util.Optional; +import jj.tech.paolu.repository.mybatis.entity.SysMenu; +import org.apache.ibatis.annotations.Mapper; +import org.apache.ibatis.annotations.Result; +import org.apache.ibatis.annotations.ResultMap; +import org.apache.ibatis.annotations.Results; +import org.apache.ibatis.annotations.SelectProvider; +import org.apache.ibatis.type.JdbcType; +import org.mybatis.dynamic.sql.BasicColumn; +import org.mybatis.dynamic.sql.delete.DeleteDSLCompleter; +import org.mybatis.dynamic.sql.select.CountDSLCompleter; +import org.mybatis.dynamic.sql.select.SelectDSLCompleter; +import org.mybatis.dynamic.sql.select.render.SelectStatementProvider; +import org.mybatis.dynamic.sql.update.UpdateDSL; +import org.mybatis.dynamic.sql.update.UpdateDSLCompleter; +import org.mybatis.dynamic.sql.update.UpdateModel; +import org.mybatis.dynamic.sql.util.SqlProviderAdapter; +import org.mybatis.dynamic.sql.util.mybatis3.CommonCountMapper; +import org.mybatis.dynamic.sql.util.mybatis3.CommonDeleteMapper; +import org.mybatis.dynamic.sql.util.mybatis3.CommonInsertMapper; +import org.mybatis.dynamic.sql.util.mybatis3.CommonUpdateMapper; +import org.mybatis.dynamic.sql.util.mybatis3.MyBatis3Utils; + +@Mapper +public interface SysMenuMapper extends CommonCountMapper, CommonDeleteMapper, CommonInsertMapper, CommonUpdateMapper { + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.309148+08:00", comments="Source Table: public.sys_menu") + BasicColumn[] selectList = BasicColumn.columnList(id, parent_id, level, name, types, url, icon, is_open, description, sort, parentpath); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.309148+08:00", comments="Source Table: public.sys_menu") + @SelectProvider(type=SqlProviderAdapter.class, method="select") + @Results(id="SysMenuResult", value = { + @Result(column="id", property="id", jdbcType=JdbcType.VARCHAR, id=true), + @Result(column="parent_id", property="parent_id", jdbcType=JdbcType.VARCHAR), + @Result(column="level", property="level", jdbcType=JdbcType.INTEGER), + @Result(column="name", property="name", jdbcType=JdbcType.VARCHAR), + @Result(column="types", property="types", jdbcType=JdbcType.VARCHAR), + @Result(column="url", property="url", jdbcType=JdbcType.VARCHAR), + @Result(column="icon", property="icon", jdbcType=JdbcType.VARCHAR), + @Result(column="is_open", property="is_open", jdbcType=JdbcType.INTEGER), + @Result(column="description", property="description", jdbcType=JdbcType.VARCHAR), + @Result(column="sort", property="sort", jdbcType=JdbcType.INTEGER), + @Result(column="parentpath", property="parentpath", jdbcType=JdbcType.VARCHAR) + }) + List selectMany(SelectStatementProvider selectStatement); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.309148+08:00", comments="Source Table: public.sys_menu") + @SelectProvider(type=SqlProviderAdapter.class, method="select") + @ResultMap("SysMenuResult") + Optional selectOne(SelectStatementProvider selectStatement); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.309148+08:00", comments="Source Table: public.sys_menu") + default long count(CountDSLCompleter completer) { + return MyBatis3Utils.countFrom(this::count, sysMenu, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.309148+08:00", comments="Source Table: public.sys_menu") + default int delete(DeleteDSLCompleter completer) { + return MyBatis3Utils.deleteFrom(this::delete, sysMenu, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.309148+08:00", comments="Source Table: public.sys_menu") + default int deleteByPrimaryKey(String id_) { + return delete(c -> + c.where(id, isEqualTo(id_)) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.309148+08:00", comments="Source Table: public.sys_menu") + default int insert(SysMenu row) { + return MyBatis3Utils.insert(this::insert, row, sysMenu, c -> + c.map(id).toProperty("id") + .map(parent_id).toProperty("parent_id") + .map(level).toProperty("level") + .map(name).toProperty("name") + .map(types).toProperty("types") + .map(url).toProperty("url") + .map(icon).toProperty("icon") + .map(is_open).toProperty("is_open") + .map(description).toProperty("description") + .map(sort).toProperty("sort") + .map(parentpath).toProperty("parentpath") + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.309148+08:00", comments="Source Table: public.sys_menu") + default int insertMultiple(Collection records) { + return MyBatis3Utils.insertMultiple(this::insertMultiple, records, sysMenu, c -> + c.map(id).toProperty("id") + .map(parent_id).toProperty("parent_id") + .map(level).toProperty("level") + .map(name).toProperty("name") + .map(types).toProperty("types") + .map(url).toProperty("url") + .map(icon).toProperty("icon") + .map(is_open).toProperty("is_open") + .map(description).toProperty("description") + .map(sort).toProperty("sort") + .map(parentpath).toProperty("parentpath") + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.309148+08:00", comments="Source Table: public.sys_menu") + default int insertSelective(SysMenu row) { + return MyBatis3Utils.insert(this::insert, row, sysMenu, c -> + c.map(id).toPropertyWhenPresent("id", row::getId) + .map(parent_id).toPropertyWhenPresent("parent_id", row::getParent_id) + .map(level).toPropertyWhenPresent("level", row::getLevel) + .map(name).toPropertyWhenPresent("name", row::getName) + .map(types).toPropertyWhenPresent("types", row::getTypes) + .map(url).toPropertyWhenPresent("url", row::getUrl) + .map(icon).toPropertyWhenPresent("icon", row::getIcon) + .map(is_open).toPropertyWhenPresent("is_open", row::getIs_open) + .map(description).toPropertyWhenPresent("description", row::getDescription) + .map(sort).toPropertyWhenPresent("sort", row::getSort) + .map(parentpath).toPropertyWhenPresent("parentpath", row::getParentpath) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.309148+08:00", comments="Source Table: public.sys_menu") + default Optional selectOne(SelectDSLCompleter completer) { + return MyBatis3Utils.selectOne(this::selectOne, selectList, sysMenu, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.309148+08:00", comments="Source Table: public.sys_menu") + default List select(SelectDSLCompleter completer) { + return MyBatis3Utils.selectList(this::selectMany, selectList, sysMenu, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.309148+08:00", comments="Source Table: public.sys_menu") + default List selectDistinct(SelectDSLCompleter completer) { + return MyBatis3Utils.selectDistinct(this::selectMany, selectList, sysMenu, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.309148+08:00", comments="Source Table: public.sys_menu") + default Optional selectByPrimaryKey(String id_) { + return selectOne(c -> + c.where(id, isEqualTo(id_)) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.309148+08:00", comments="Source Table: public.sys_menu") + default int update(UpdateDSLCompleter completer) { + return MyBatis3Utils.update(this::update, sysMenu, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.309148+08:00", comments="Source Table: public.sys_menu") + static UpdateDSL updateAllColumns(SysMenu row, UpdateDSL dsl) { + return dsl.set(id).equalTo(row::getId) + .set(parent_id).equalTo(row::getParent_id) + .set(level).equalTo(row::getLevel) + .set(name).equalTo(row::getName) + .set(types).equalTo(row::getTypes) + .set(url).equalTo(row::getUrl) + .set(icon).equalTo(row::getIcon) + .set(is_open).equalTo(row::getIs_open) + .set(description).equalTo(row::getDescription) + .set(sort).equalTo(row::getSort) + .set(parentpath).equalTo(row::getParentpath); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.309148+08:00", comments="Source Table: public.sys_menu") + static UpdateDSL updateSelectiveColumns(SysMenu row, UpdateDSL dsl) { + return dsl.set(id).equalToWhenPresent(row::getId) + .set(parent_id).equalToWhenPresent(row::getParent_id) + .set(level).equalToWhenPresent(row::getLevel) + .set(name).equalToWhenPresent(row::getName) + .set(types).equalToWhenPresent(row::getTypes) + .set(url).equalToWhenPresent(row::getUrl) + .set(icon).equalToWhenPresent(row::getIcon) + .set(is_open).equalToWhenPresent(row::getIs_open) + .set(description).equalToWhenPresent(row::getDescription) + .set(sort).equalToWhenPresent(row::getSort) + .set(parentpath).equalToWhenPresent(row::getParentpath); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.309148+08:00", comments="Source Table: public.sys_menu") + default int updateByPrimaryKey(SysMenu row) { + return update(c -> + c.set(parent_id).equalTo(row::getParent_id) + .set(level).equalTo(row::getLevel) + .set(name).equalTo(row::getName) + .set(types).equalTo(row::getTypes) + .set(url).equalTo(row::getUrl) + .set(icon).equalTo(row::getIcon) + .set(is_open).equalTo(row::getIs_open) + .set(description).equalTo(row::getDescription) + .set(sort).equalTo(row::getSort) + .set(parentpath).equalTo(row::getParentpath) + .where(id, isEqualTo(row::getId)) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.309148+08:00", comments="Source Table: public.sys_menu") + default int updateByPrimaryKeySelective(SysMenu row) { + return update(c -> + c.set(parent_id).equalToWhenPresent(row::getParent_id) + .set(level).equalToWhenPresent(row::getLevel) + .set(name).equalToWhenPresent(row::getName) + .set(types).equalToWhenPresent(row::getTypes) + .set(url).equalToWhenPresent(row::getUrl) + .set(icon).equalToWhenPresent(row::getIcon) + .set(is_open).equalToWhenPresent(row::getIs_open) + .set(description).equalToWhenPresent(row::getDescription) + .set(sort).equalToWhenPresent(row::getSort) + .set(parentpath).equalToWhenPresent(row::getParentpath) + .where(id, isEqualTo(row::getId)) + ); + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/dao/SysOrgMapper.java b/src/main/java/jj/tech/paolu/repository/mybatis/dao/SysOrgMapper.java new file mode 100644 index 0000000..b3c167e --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/dao/SysOrgMapper.java @@ -0,0 +1,369 @@ +package jj.tech.paolu.repository.mybatis.dao; + +import static jj.tech.paolu.repository.mybatis.dao.support.SysOrgDynamicSqlSupport.*; +import static org.mybatis.dynamic.sql.SqlBuilder.isEqualTo; + +import jakarta.annotation.Generated; +import java.util.Collection; +import java.util.List; +import java.util.Optional; +import jj.tech.paolu.repository.mybatis.entity.SysOrg; +import org.apache.ibatis.annotations.Mapper; +import org.apache.ibatis.annotations.Result; +import org.apache.ibatis.annotations.ResultMap; +import org.apache.ibatis.annotations.Results; +import org.apache.ibatis.annotations.SelectProvider; +import org.apache.ibatis.type.JdbcType; +import org.mybatis.dynamic.sql.BasicColumn; +import org.mybatis.dynamic.sql.delete.DeleteDSLCompleter; +import org.mybatis.dynamic.sql.select.CountDSLCompleter; +import org.mybatis.dynamic.sql.select.SelectDSLCompleter; +import org.mybatis.dynamic.sql.select.render.SelectStatementProvider; +import org.mybatis.dynamic.sql.update.UpdateDSL; +import org.mybatis.dynamic.sql.update.UpdateDSLCompleter; +import org.mybatis.dynamic.sql.update.UpdateModel; +import org.mybatis.dynamic.sql.util.SqlProviderAdapter; +import org.mybatis.dynamic.sql.util.mybatis3.CommonCountMapper; +import org.mybatis.dynamic.sql.util.mybatis3.CommonDeleteMapper; +import org.mybatis.dynamic.sql.util.mybatis3.CommonInsertMapper; +import org.mybatis.dynamic.sql.util.mybatis3.CommonUpdateMapper; +import org.mybatis.dynamic.sql.util.mybatis3.MyBatis3Utils; + +@Mapper +public interface SysOrgMapper extends CommonCountMapper, CommonDeleteMapper, CommonInsertMapper, CommonUpdateMapper { + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3201506+08:00", comments="Source Table: public.sys_org") + BasicColumn[] selectList = BasicColumn.columnList(id, pid, chinese_simple_name, english_simple_name, chinese_full_name, english_full_name, code, sort, status, is_company_department, enterprise_legal_person, contact_person, contact_phone, remark, create_time, create_user, update_time, update_user, name, industry_name, industry_code, province_code, city_code, area_code, addr, uscc, org_type, is_archives_dep, cer_id, is_forbidden); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3201506+08:00", comments="Source Table: public.sys_org") + @SelectProvider(type=SqlProviderAdapter.class, method="select") + @Results(id="SysOrgResult", value = { + @Result(column="id", property="id", jdbcType=JdbcType.VARCHAR, id=true), + @Result(column="pid", property="pid", jdbcType=JdbcType.VARCHAR), + @Result(column="chinese_simple_name", property="chinese_simple_name", jdbcType=JdbcType.VARCHAR), + @Result(column="english_simple_name", property="english_simple_name", jdbcType=JdbcType.VARCHAR), + @Result(column="chinese_full_name", property="chinese_full_name", jdbcType=JdbcType.VARCHAR), + @Result(column="english_full_name", property="english_full_name", jdbcType=JdbcType.VARCHAR), + @Result(column="code", property="code", jdbcType=JdbcType.VARCHAR), + @Result(column="sort", property="sort", jdbcType=JdbcType.INTEGER), + @Result(column="status", property="status", jdbcType=JdbcType.INTEGER), + @Result(column="is_company_department", property="is_company_department", jdbcType=JdbcType.INTEGER), + @Result(column="enterprise_legal_person", property="enterprise_legal_person", jdbcType=JdbcType.VARCHAR), + @Result(column="contact_person", property="contact_person", jdbcType=JdbcType.VARCHAR), + @Result(column="contact_phone", property="contact_phone", jdbcType=JdbcType.VARCHAR), + @Result(column="remark", property="remark", jdbcType=JdbcType.VARCHAR), + @Result(column="create_time", property="create_time", jdbcType=JdbcType.TIMESTAMP), + @Result(column="create_user", property="create_user", jdbcType=JdbcType.VARCHAR), + @Result(column="update_time", property="update_time", jdbcType=JdbcType.TIMESTAMP), + @Result(column="update_user", property="update_user", jdbcType=JdbcType.VARCHAR), + @Result(column="name", property="name", jdbcType=JdbcType.VARCHAR), + @Result(column="industry_name", property="industry_name", jdbcType=JdbcType.VARCHAR), + @Result(column="industry_code", property="industry_code", jdbcType=JdbcType.VARCHAR), + @Result(column="province_code", property="province_code", jdbcType=JdbcType.VARCHAR), + @Result(column="city_code", property="city_code", jdbcType=JdbcType.VARCHAR), + @Result(column="area_code", property="area_code", jdbcType=JdbcType.VARCHAR), + @Result(column="addr", property="addr", jdbcType=JdbcType.VARCHAR), + @Result(column="uscc", property="uscc", jdbcType=JdbcType.VARCHAR), + @Result(column="org_type", property="org_type", jdbcType=JdbcType.VARCHAR), + @Result(column="is_archives_dep", property="is_archives_dep", jdbcType=JdbcType.INTEGER), + @Result(column="cer_id", property="cer_id", jdbcType=JdbcType.VARCHAR), + @Result(column="is_forbidden", property="is_forbidden", jdbcType=JdbcType.INTEGER) + }) + List selectMany(SelectStatementProvider selectStatement); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3201506+08:00", comments="Source Table: public.sys_org") + @SelectProvider(type=SqlProviderAdapter.class, method="select") + @ResultMap("SysOrgResult") + Optional selectOne(SelectStatementProvider selectStatement); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3201506+08:00", comments="Source Table: public.sys_org") + default long count(CountDSLCompleter completer) { + return MyBatis3Utils.countFrom(this::count, sysOrg, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3201506+08:00", comments="Source Table: public.sys_org") + default int delete(DeleteDSLCompleter completer) { + return MyBatis3Utils.deleteFrom(this::delete, sysOrg, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3201506+08:00", comments="Source Table: public.sys_org") + default int deleteByPrimaryKey(String id_) { + return delete(c -> + c.where(id, isEqualTo(id_)) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3201506+08:00", comments="Source Table: public.sys_org") + default int insert(SysOrg row) { + return MyBatis3Utils.insert(this::insert, row, sysOrg, c -> + c.map(id).toProperty("id") + .map(pid).toProperty("pid") + .map(chinese_simple_name).toProperty("chinese_simple_name") + .map(english_simple_name).toProperty("english_simple_name") + .map(chinese_full_name).toProperty("chinese_full_name") + .map(english_full_name).toProperty("english_full_name") + .map(code).toProperty("code") + .map(sort).toProperty("sort") + .map(status).toProperty("status") + .map(is_company_department).toProperty("is_company_department") + .map(enterprise_legal_person).toProperty("enterprise_legal_person") + .map(contact_person).toProperty("contact_person") + .map(contact_phone).toProperty("contact_phone") + .map(remark).toProperty("remark") + .map(create_time).toProperty("create_time") + .map(create_user).toProperty("create_user") + .map(update_time).toProperty("update_time") + .map(update_user).toProperty("update_user") + .map(name).toProperty("name") + .map(industry_name).toProperty("industry_name") + .map(industry_code).toProperty("industry_code") + .map(province_code).toProperty("province_code") + .map(city_code).toProperty("city_code") + .map(area_code).toProperty("area_code") + .map(addr).toProperty("addr") + .map(uscc).toProperty("uscc") + .map(org_type).toProperty("org_type") + .map(is_archives_dep).toProperty("is_archives_dep") + .map(cer_id).toProperty("cer_id") + .map(is_forbidden).toProperty("is_forbidden") + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3201506+08:00", comments="Source Table: public.sys_org") + default int insertMultiple(Collection records) { + return MyBatis3Utils.insertMultiple(this::insertMultiple, records, sysOrg, c -> + c.map(id).toProperty("id") + .map(pid).toProperty("pid") + .map(chinese_simple_name).toProperty("chinese_simple_name") + .map(english_simple_name).toProperty("english_simple_name") + .map(chinese_full_name).toProperty("chinese_full_name") + .map(english_full_name).toProperty("english_full_name") + .map(code).toProperty("code") + .map(sort).toProperty("sort") + .map(status).toProperty("status") + .map(is_company_department).toProperty("is_company_department") + .map(enterprise_legal_person).toProperty("enterprise_legal_person") + .map(contact_person).toProperty("contact_person") + .map(contact_phone).toProperty("contact_phone") + .map(remark).toProperty("remark") + .map(create_time).toProperty("create_time") + .map(create_user).toProperty("create_user") + .map(update_time).toProperty("update_time") + .map(update_user).toProperty("update_user") + .map(name).toProperty("name") + .map(industry_name).toProperty("industry_name") + .map(industry_code).toProperty("industry_code") + .map(province_code).toProperty("province_code") + .map(city_code).toProperty("city_code") + .map(area_code).toProperty("area_code") + .map(addr).toProperty("addr") + .map(uscc).toProperty("uscc") + .map(org_type).toProperty("org_type") + .map(is_archives_dep).toProperty("is_archives_dep") + .map(cer_id).toProperty("cer_id") + .map(is_forbidden).toProperty("is_forbidden") + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3201506+08:00", comments="Source Table: public.sys_org") + default int insertSelective(SysOrg row) { + return MyBatis3Utils.insert(this::insert, row, sysOrg, c -> + c.map(id).toPropertyWhenPresent("id", row::getId) + .map(pid).toPropertyWhenPresent("pid", row::getPid) + .map(chinese_simple_name).toPropertyWhenPresent("chinese_simple_name", row::getChinese_simple_name) + .map(english_simple_name).toPropertyWhenPresent("english_simple_name", row::getEnglish_simple_name) + .map(chinese_full_name).toPropertyWhenPresent("chinese_full_name", row::getChinese_full_name) + .map(english_full_name).toPropertyWhenPresent("english_full_name", row::getEnglish_full_name) + .map(code).toPropertyWhenPresent("code", row::getCode) + .map(sort).toPropertyWhenPresent("sort", row::getSort) + .map(status).toPropertyWhenPresent("status", row::getStatus) + .map(is_company_department).toPropertyWhenPresent("is_company_department", row::getIs_company_department) + .map(enterprise_legal_person).toPropertyWhenPresent("enterprise_legal_person", row::getEnterprise_legal_person) + .map(contact_person).toPropertyWhenPresent("contact_person", row::getContact_person) + .map(contact_phone).toPropertyWhenPresent("contact_phone", row::getContact_phone) + .map(remark).toPropertyWhenPresent("remark", row::getRemark) + .map(create_time).toPropertyWhenPresent("create_time", row::getCreate_time) + .map(create_user).toPropertyWhenPresent("create_user", row::getCreate_user) + .map(update_time).toPropertyWhenPresent("update_time", row::getUpdate_time) + .map(update_user).toPropertyWhenPresent("update_user", row::getUpdate_user) + .map(name).toPropertyWhenPresent("name", row::getName) + .map(industry_name).toPropertyWhenPresent("industry_name", row::getIndustry_name) + .map(industry_code).toPropertyWhenPresent("industry_code", row::getIndustry_code) + .map(province_code).toPropertyWhenPresent("province_code", row::getProvince_code) + .map(city_code).toPropertyWhenPresent("city_code", row::getCity_code) + .map(area_code).toPropertyWhenPresent("area_code", row::getArea_code) + .map(addr).toPropertyWhenPresent("addr", row::getAddr) + .map(uscc).toPropertyWhenPresent("uscc", row::getUscc) + .map(org_type).toPropertyWhenPresent("org_type", row::getOrg_type) + .map(is_archives_dep).toPropertyWhenPresent("is_archives_dep", row::getIs_archives_dep) + .map(cer_id).toPropertyWhenPresent("cer_id", row::getCer_id) + .map(is_forbidden).toPropertyWhenPresent("is_forbidden", row::getIs_forbidden) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3201506+08:00", comments="Source Table: public.sys_org") + default Optional selectOne(SelectDSLCompleter completer) { + return MyBatis3Utils.selectOne(this::selectOne, selectList, sysOrg, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3201506+08:00", comments="Source Table: public.sys_org") + default List select(SelectDSLCompleter completer) { + return MyBatis3Utils.selectList(this::selectMany, selectList, sysOrg, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3201506+08:00", comments="Source Table: public.sys_org") + default List selectDistinct(SelectDSLCompleter completer) { + return MyBatis3Utils.selectDistinct(this::selectMany, selectList, sysOrg, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3201506+08:00", comments="Source Table: public.sys_org") + default Optional selectByPrimaryKey(String id_) { + return selectOne(c -> + c.where(id, isEqualTo(id_)) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3211475+08:00", comments="Source Table: public.sys_org") + default int update(UpdateDSLCompleter completer) { + return MyBatis3Utils.update(this::update, sysOrg, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3211475+08:00", comments="Source Table: public.sys_org") + static UpdateDSL updateAllColumns(SysOrg row, UpdateDSL dsl) { + return dsl.set(id).equalTo(row::getId) + .set(pid).equalTo(row::getPid) + .set(chinese_simple_name).equalTo(row::getChinese_simple_name) + .set(english_simple_name).equalTo(row::getEnglish_simple_name) + .set(chinese_full_name).equalTo(row::getChinese_full_name) + .set(english_full_name).equalTo(row::getEnglish_full_name) + .set(code).equalTo(row::getCode) + .set(sort).equalTo(row::getSort) + .set(status).equalTo(row::getStatus) + .set(is_company_department).equalTo(row::getIs_company_department) + .set(enterprise_legal_person).equalTo(row::getEnterprise_legal_person) + .set(contact_person).equalTo(row::getContact_person) + .set(contact_phone).equalTo(row::getContact_phone) + .set(remark).equalTo(row::getRemark) + .set(create_time).equalTo(row::getCreate_time) + .set(create_user).equalTo(row::getCreate_user) + .set(update_time).equalTo(row::getUpdate_time) + .set(update_user).equalTo(row::getUpdate_user) + .set(name).equalTo(row::getName) + .set(industry_name).equalTo(row::getIndustry_name) + .set(industry_code).equalTo(row::getIndustry_code) + .set(province_code).equalTo(row::getProvince_code) + .set(city_code).equalTo(row::getCity_code) + .set(area_code).equalTo(row::getArea_code) + .set(addr).equalTo(row::getAddr) + .set(uscc).equalTo(row::getUscc) + .set(org_type).equalTo(row::getOrg_type) + .set(is_archives_dep).equalTo(row::getIs_archives_dep) + .set(cer_id).equalTo(row::getCer_id) + .set(is_forbidden).equalTo(row::getIs_forbidden); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3211475+08:00", comments="Source Table: public.sys_org") + static UpdateDSL updateSelectiveColumns(SysOrg row, UpdateDSL dsl) { + return dsl.set(id).equalToWhenPresent(row::getId) + .set(pid).equalToWhenPresent(row::getPid) + .set(chinese_simple_name).equalToWhenPresent(row::getChinese_simple_name) + .set(english_simple_name).equalToWhenPresent(row::getEnglish_simple_name) + .set(chinese_full_name).equalToWhenPresent(row::getChinese_full_name) + .set(english_full_name).equalToWhenPresent(row::getEnglish_full_name) + .set(code).equalToWhenPresent(row::getCode) + .set(sort).equalToWhenPresent(row::getSort) + .set(status).equalToWhenPresent(row::getStatus) + .set(is_company_department).equalToWhenPresent(row::getIs_company_department) + .set(enterprise_legal_person).equalToWhenPresent(row::getEnterprise_legal_person) + .set(contact_person).equalToWhenPresent(row::getContact_person) + .set(contact_phone).equalToWhenPresent(row::getContact_phone) + .set(remark).equalToWhenPresent(row::getRemark) + .set(create_time).equalToWhenPresent(row::getCreate_time) + .set(create_user).equalToWhenPresent(row::getCreate_user) + .set(update_time).equalToWhenPresent(row::getUpdate_time) + .set(update_user).equalToWhenPresent(row::getUpdate_user) + .set(name).equalToWhenPresent(row::getName) + .set(industry_name).equalToWhenPresent(row::getIndustry_name) + .set(industry_code).equalToWhenPresent(row::getIndustry_code) + .set(province_code).equalToWhenPresent(row::getProvince_code) + .set(city_code).equalToWhenPresent(row::getCity_code) + .set(area_code).equalToWhenPresent(row::getArea_code) + .set(addr).equalToWhenPresent(row::getAddr) + .set(uscc).equalToWhenPresent(row::getUscc) + .set(org_type).equalToWhenPresent(row::getOrg_type) + .set(is_archives_dep).equalToWhenPresent(row::getIs_archives_dep) + .set(cer_id).equalToWhenPresent(row::getCer_id) + .set(is_forbidden).equalToWhenPresent(row::getIs_forbidden); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3211475+08:00", comments="Source Table: public.sys_org") + default int updateByPrimaryKey(SysOrg row) { + return update(c -> + c.set(pid).equalTo(row::getPid) + .set(chinese_simple_name).equalTo(row::getChinese_simple_name) + .set(english_simple_name).equalTo(row::getEnglish_simple_name) + .set(chinese_full_name).equalTo(row::getChinese_full_name) + .set(english_full_name).equalTo(row::getEnglish_full_name) + .set(code).equalTo(row::getCode) + .set(sort).equalTo(row::getSort) + .set(status).equalTo(row::getStatus) + .set(is_company_department).equalTo(row::getIs_company_department) + .set(enterprise_legal_person).equalTo(row::getEnterprise_legal_person) + .set(contact_person).equalTo(row::getContact_person) + .set(contact_phone).equalTo(row::getContact_phone) + .set(remark).equalTo(row::getRemark) + .set(create_time).equalTo(row::getCreate_time) + .set(create_user).equalTo(row::getCreate_user) + .set(update_time).equalTo(row::getUpdate_time) + .set(update_user).equalTo(row::getUpdate_user) + .set(name).equalTo(row::getName) + .set(industry_name).equalTo(row::getIndustry_name) + .set(industry_code).equalTo(row::getIndustry_code) + .set(province_code).equalTo(row::getProvince_code) + .set(city_code).equalTo(row::getCity_code) + .set(area_code).equalTo(row::getArea_code) + .set(addr).equalTo(row::getAddr) + .set(uscc).equalTo(row::getUscc) + .set(org_type).equalTo(row::getOrg_type) + .set(is_archives_dep).equalTo(row::getIs_archives_dep) + .set(cer_id).equalTo(row::getCer_id) + .set(is_forbidden).equalTo(row::getIs_forbidden) + .where(id, isEqualTo(row::getId)) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3211475+08:00", comments="Source Table: public.sys_org") + default int updateByPrimaryKeySelective(SysOrg row) { + return update(c -> + c.set(pid).equalToWhenPresent(row::getPid) + .set(chinese_simple_name).equalToWhenPresent(row::getChinese_simple_name) + .set(english_simple_name).equalToWhenPresent(row::getEnglish_simple_name) + .set(chinese_full_name).equalToWhenPresent(row::getChinese_full_name) + .set(english_full_name).equalToWhenPresent(row::getEnglish_full_name) + .set(code).equalToWhenPresent(row::getCode) + .set(sort).equalToWhenPresent(row::getSort) + .set(status).equalToWhenPresent(row::getStatus) + .set(is_company_department).equalToWhenPresent(row::getIs_company_department) + .set(enterprise_legal_person).equalToWhenPresent(row::getEnterprise_legal_person) + .set(contact_person).equalToWhenPresent(row::getContact_person) + .set(contact_phone).equalToWhenPresent(row::getContact_phone) + .set(remark).equalToWhenPresent(row::getRemark) + .set(create_time).equalToWhenPresent(row::getCreate_time) + .set(create_user).equalToWhenPresent(row::getCreate_user) + .set(update_time).equalToWhenPresent(row::getUpdate_time) + .set(update_user).equalToWhenPresent(row::getUpdate_user) + .set(name).equalToWhenPresent(row::getName) + .set(industry_name).equalToWhenPresent(row::getIndustry_name) + .set(industry_code).equalToWhenPresent(row::getIndustry_code) + .set(province_code).equalToWhenPresent(row::getProvince_code) + .set(city_code).equalToWhenPresent(row::getCity_code) + .set(area_code).equalToWhenPresent(row::getArea_code) + .set(addr).equalToWhenPresent(row::getAddr) + .set(uscc).equalToWhenPresent(row::getUscc) + .set(org_type).equalToWhenPresent(row::getOrg_type) + .set(is_archives_dep).equalToWhenPresent(row::getIs_archives_dep) + .set(cer_id).equalToWhenPresent(row::getCer_id) + .set(is_forbidden).equalToWhenPresent(row::getIs_forbidden) + .where(id, isEqualTo(row::getId)) + ); + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/dao/SysRoleMapper.java b/src/main/java/jj/tech/paolu/repository/mybatis/dao/SysRoleMapper.java new file mode 100644 index 0000000..7425213 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/dao/SysRoleMapper.java @@ -0,0 +1,201 @@ +package jj.tech.paolu.repository.mybatis.dao; + +import static jj.tech.paolu.repository.mybatis.dao.support.SysRoleDynamicSqlSupport.*; +import static org.mybatis.dynamic.sql.SqlBuilder.isEqualTo; + +import jakarta.annotation.Generated; +import java.util.Collection; +import java.util.List; +import java.util.Optional; +import jj.tech.paolu.repository.mybatis.entity.SysRole; +import org.apache.ibatis.annotations.Mapper; +import org.apache.ibatis.annotations.Result; +import org.apache.ibatis.annotations.ResultMap; +import org.apache.ibatis.annotations.Results; +import org.apache.ibatis.annotations.SelectProvider; +import org.apache.ibatis.type.JdbcType; +import org.mybatis.dynamic.sql.BasicColumn; +import org.mybatis.dynamic.sql.delete.DeleteDSLCompleter; +import org.mybatis.dynamic.sql.select.CountDSLCompleter; +import org.mybatis.dynamic.sql.select.SelectDSLCompleter; +import org.mybatis.dynamic.sql.select.render.SelectStatementProvider; +import org.mybatis.dynamic.sql.update.UpdateDSL; +import org.mybatis.dynamic.sql.update.UpdateDSLCompleter; +import org.mybatis.dynamic.sql.update.UpdateModel; +import org.mybatis.dynamic.sql.util.SqlProviderAdapter; +import org.mybatis.dynamic.sql.util.mybatis3.CommonCountMapper; +import org.mybatis.dynamic.sql.util.mybatis3.CommonDeleteMapper; +import org.mybatis.dynamic.sql.util.mybatis3.CommonInsertMapper; +import org.mybatis.dynamic.sql.util.mybatis3.CommonUpdateMapper; +import org.mybatis.dynamic.sql.util.mybatis3.MyBatis3Utils; + +@Mapper +public interface SysRoleMapper extends CommonCountMapper, CommonDeleteMapper, CommonInsertMapper, CommonUpdateMapper { + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2721507+08:00", comments="Source Table: public.sys_role") + BasicColumn[] selectList = BasicColumn.columnList(id, rolename, describe, sort, is_open, sign_name, sign_id, company_id, company_name); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2711525+08:00", comments="Source Table: public.sys_role") + @SelectProvider(type=SqlProviderAdapter.class, method="select") + @Results(id="SysRoleResult", value = { + @Result(column="id", property="id", jdbcType=JdbcType.VARCHAR, id=true), + @Result(column="rolename", property="rolename", jdbcType=JdbcType.VARCHAR), + @Result(column="describe", property="describe", jdbcType=JdbcType.VARCHAR), + @Result(column="sort", property="sort", jdbcType=JdbcType.INTEGER), + @Result(column="is_open", property="is_open", jdbcType=JdbcType.INTEGER), + @Result(column="sign_name", property="sign_name", jdbcType=JdbcType.VARCHAR), + @Result(column="sign_id", property="sign_id", jdbcType=JdbcType.VARCHAR), + @Result(column="company_id", property="company_id", jdbcType=JdbcType.VARCHAR), + @Result(column="company_name", property="company_name", jdbcType=JdbcType.VARCHAR) + }) + List selectMany(SelectStatementProvider selectStatement); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2721507+08:00", comments="Source Table: public.sys_role") + @SelectProvider(type=SqlProviderAdapter.class, method="select") + @ResultMap("SysRoleResult") + Optional selectOne(SelectStatementProvider selectStatement); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2721507+08:00", comments="Source Table: public.sys_role") + default long count(CountDSLCompleter completer) { + return MyBatis3Utils.countFrom(this::count, sysRole, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2721507+08:00", comments="Source Table: public.sys_role") + default int delete(DeleteDSLCompleter completer) { + return MyBatis3Utils.deleteFrom(this::delete, sysRole, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2721507+08:00", comments="Source Table: public.sys_role") + default int deleteByPrimaryKey(String id_) { + return delete(c -> + c.where(id, isEqualTo(id_)) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2721507+08:00", comments="Source Table: public.sys_role") + default int insert(SysRole row) { + return MyBatis3Utils.insert(this::insert, row, sysRole, c -> + c.map(id).toProperty("id") + .map(rolename).toProperty("rolename") + .map(describe).toProperty("describe") + .map(sort).toProperty("sort") + .map(is_open).toProperty("is_open") + .map(sign_name).toProperty("sign_name") + .map(sign_id).toProperty("sign_id") + .map(company_id).toProperty("company_id") + .map(company_name).toProperty("company_name") + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2721507+08:00", comments="Source Table: public.sys_role") + default int insertMultiple(Collection records) { + return MyBatis3Utils.insertMultiple(this::insertMultiple, records, sysRole, c -> + c.map(id).toProperty("id") + .map(rolename).toProperty("rolename") + .map(describe).toProperty("describe") + .map(sort).toProperty("sort") + .map(is_open).toProperty("is_open") + .map(sign_name).toProperty("sign_name") + .map(sign_id).toProperty("sign_id") + .map(company_id).toProperty("company_id") + .map(company_name).toProperty("company_name") + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2721507+08:00", comments="Source Table: public.sys_role") + default int insertSelective(SysRole row) { + return MyBatis3Utils.insert(this::insert, row, sysRole, c -> + c.map(id).toPropertyWhenPresent("id", row::getId) + .map(rolename).toPropertyWhenPresent("rolename", row::getRolename) + .map(describe).toPropertyWhenPresent("describe", row::getDescribe) + .map(sort).toPropertyWhenPresent("sort", row::getSort) + .map(is_open).toPropertyWhenPresent("is_open", row::getIs_open) + .map(sign_name).toPropertyWhenPresent("sign_name", row::getSign_name) + .map(sign_id).toPropertyWhenPresent("sign_id", row::getSign_id) + .map(company_id).toPropertyWhenPresent("company_id", row::getCompany_id) + .map(company_name).toPropertyWhenPresent("company_name", row::getCompany_name) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2721507+08:00", comments="Source Table: public.sys_role") + default Optional selectOne(SelectDSLCompleter completer) { + return MyBatis3Utils.selectOne(this::selectOne, selectList, sysRole, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2721507+08:00", comments="Source Table: public.sys_role") + default List select(SelectDSLCompleter completer) { + return MyBatis3Utils.selectList(this::selectMany, selectList, sysRole, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2721507+08:00", comments="Source Table: public.sys_role") + default List selectDistinct(SelectDSLCompleter completer) { + return MyBatis3Utils.selectDistinct(this::selectMany, selectList, sysRole, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2721507+08:00", comments="Source Table: public.sys_role") + default Optional selectByPrimaryKey(String id_) { + return selectOne(c -> + c.where(id, isEqualTo(id_)) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2721507+08:00", comments="Source Table: public.sys_role") + default int update(UpdateDSLCompleter completer) { + return MyBatis3Utils.update(this::update, sysRole, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2721507+08:00", comments="Source Table: public.sys_role") + static UpdateDSL updateAllColumns(SysRole row, UpdateDSL dsl) { + return dsl.set(id).equalTo(row::getId) + .set(rolename).equalTo(row::getRolename) + .set(describe).equalTo(row::getDescribe) + .set(sort).equalTo(row::getSort) + .set(is_open).equalTo(row::getIs_open) + .set(sign_name).equalTo(row::getSign_name) + .set(sign_id).equalTo(row::getSign_id) + .set(company_id).equalTo(row::getCompany_id) + .set(company_name).equalTo(row::getCompany_name); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2721507+08:00", comments="Source Table: public.sys_role") + static UpdateDSL updateSelectiveColumns(SysRole row, UpdateDSL dsl) { + return dsl.set(id).equalToWhenPresent(row::getId) + .set(rolename).equalToWhenPresent(row::getRolename) + .set(describe).equalToWhenPresent(row::getDescribe) + .set(sort).equalToWhenPresent(row::getSort) + .set(is_open).equalToWhenPresent(row::getIs_open) + .set(sign_name).equalToWhenPresent(row::getSign_name) + .set(sign_id).equalToWhenPresent(row::getSign_id) + .set(company_id).equalToWhenPresent(row::getCompany_id) + .set(company_name).equalToWhenPresent(row::getCompany_name); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2721507+08:00", comments="Source Table: public.sys_role") + default int updateByPrimaryKey(SysRole row) { + return update(c -> + c.set(rolename).equalTo(row::getRolename) + .set(describe).equalTo(row::getDescribe) + .set(sort).equalTo(row::getSort) + .set(is_open).equalTo(row::getIs_open) + .set(sign_name).equalTo(row::getSign_name) + .set(sign_id).equalTo(row::getSign_id) + .set(company_id).equalTo(row::getCompany_id) + .set(company_name).equalTo(row::getCompany_name) + .where(id, isEqualTo(row::getId)) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2721507+08:00", comments="Source Table: public.sys_role") + default int updateByPrimaryKeySelective(SysRole row) { + return update(c -> + c.set(rolename).equalToWhenPresent(row::getRolename) + .set(describe).equalToWhenPresent(row::getDescribe) + .set(sort).equalToWhenPresent(row::getSort) + .set(is_open).equalToWhenPresent(row::getIs_open) + .set(sign_name).equalToWhenPresent(row::getSign_name) + .set(sign_id).equalToWhenPresent(row::getSign_id) + .set(company_id).equalToWhenPresent(row::getCompany_id) + .set(company_name).equalToWhenPresent(row::getCompany_name) + .where(id, isEqualTo(row::getId)) + ); + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/dao/SysRoleMenuMapper.java b/src/main/java/jj/tech/paolu/repository/mybatis/dao/SysRoleMenuMapper.java new file mode 100644 index 0000000..d7c9453 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/dao/SysRoleMenuMapper.java @@ -0,0 +1,153 @@ +package jj.tech.paolu.repository.mybatis.dao; + +import static jj.tech.paolu.repository.mybatis.dao.support.SysRoleMenuDynamicSqlSupport.*; +import static org.mybatis.dynamic.sql.SqlBuilder.isEqualTo; + +import jakarta.annotation.Generated; +import java.util.Collection; +import java.util.List; +import java.util.Optional; +import jj.tech.paolu.repository.mybatis.entity.SysRoleMenu; +import org.apache.ibatis.annotations.Mapper; +import org.apache.ibatis.annotations.Result; +import org.apache.ibatis.annotations.ResultMap; +import org.apache.ibatis.annotations.Results; +import org.apache.ibatis.annotations.SelectProvider; +import org.apache.ibatis.type.JdbcType; +import org.mybatis.dynamic.sql.BasicColumn; +import org.mybatis.dynamic.sql.delete.DeleteDSLCompleter; +import org.mybatis.dynamic.sql.select.CountDSLCompleter; +import org.mybatis.dynamic.sql.select.SelectDSLCompleter; +import org.mybatis.dynamic.sql.select.render.SelectStatementProvider; +import org.mybatis.dynamic.sql.update.UpdateDSL; +import org.mybatis.dynamic.sql.update.UpdateDSLCompleter; +import org.mybatis.dynamic.sql.update.UpdateModel; +import org.mybatis.dynamic.sql.util.SqlProviderAdapter; +import org.mybatis.dynamic.sql.util.mybatis3.CommonCountMapper; +import org.mybatis.dynamic.sql.util.mybatis3.CommonDeleteMapper; +import org.mybatis.dynamic.sql.util.mybatis3.CommonInsertMapper; +import org.mybatis.dynamic.sql.util.mybatis3.CommonUpdateMapper; +import org.mybatis.dynamic.sql.util.mybatis3.MyBatis3Utils; + +@Mapper +public interface SysRoleMenuMapper extends CommonCountMapper, CommonDeleteMapper, CommonInsertMapper, CommonUpdateMapper { + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2901497+08:00", comments="Source Table: public.sys_role_menu") + BasicColumn[] selectList = BasicColumn.columnList(id, roleid, menuid); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2901497+08:00", comments="Source Table: public.sys_role_menu") + @SelectProvider(type=SqlProviderAdapter.class, method="select") + @Results(id="SysRoleMenuResult", value = { + @Result(column="id", property="id", jdbcType=JdbcType.VARCHAR, id=true), + @Result(column="roleid", property="roleid", jdbcType=JdbcType.VARCHAR), + @Result(column="menuid", property="menuid", jdbcType=JdbcType.VARCHAR) + }) + List selectMany(SelectStatementProvider selectStatement); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2901497+08:00", comments="Source Table: public.sys_role_menu") + @SelectProvider(type=SqlProviderAdapter.class, method="select") + @ResultMap("SysRoleMenuResult") + Optional selectOne(SelectStatementProvider selectStatement); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2901497+08:00", comments="Source Table: public.sys_role_menu") + default long count(CountDSLCompleter completer) { + return MyBatis3Utils.countFrom(this::count, sysRoleMenu, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2901497+08:00", comments="Source Table: public.sys_role_menu") + default int delete(DeleteDSLCompleter completer) { + return MyBatis3Utils.deleteFrom(this::delete, sysRoleMenu, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2901497+08:00", comments="Source Table: public.sys_role_menu") + default int deleteByPrimaryKey(String id_) { + return delete(c -> + c.where(id, isEqualTo(id_)) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2901497+08:00", comments="Source Table: public.sys_role_menu") + default int insert(SysRoleMenu row) { + return MyBatis3Utils.insert(this::insert, row, sysRoleMenu, c -> + c.map(id).toProperty("id") + .map(roleid).toProperty("roleid") + .map(menuid).toProperty("menuid") + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2901497+08:00", comments="Source Table: public.sys_role_menu") + default int insertMultiple(Collection records) { + return MyBatis3Utils.insertMultiple(this::insertMultiple, records, sysRoleMenu, c -> + c.map(id).toProperty("id") + .map(roleid).toProperty("roleid") + .map(menuid).toProperty("menuid") + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2901497+08:00", comments="Source Table: public.sys_role_menu") + default int insertSelective(SysRoleMenu row) { + return MyBatis3Utils.insert(this::insert, row, sysRoleMenu, c -> + c.map(id).toPropertyWhenPresent("id", row::getId) + .map(roleid).toPropertyWhenPresent("roleid", row::getRoleid) + .map(menuid).toPropertyWhenPresent("menuid", row::getMenuid) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.291149+08:00", comments="Source Table: public.sys_role_menu") + default Optional selectOne(SelectDSLCompleter completer) { + return MyBatis3Utils.selectOne(this::selectOne, selectList, sysRoleMenu, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.291149+08:00", comments="Source Table: public.sys_role_menu") + default List select(SelectDSLCompleter completer) { + return MyBatis3Utils.selectList(this::selectMany, selectList, sysRoleMenu, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.291149+08:00", comments="Source Table: public.sys_role_menu") + default List selectDistinct(SelectDSLCompleter completer) { + return MyBatis3Utils.selectDistinct(this::selectMany, selectList, sysRoleMenu, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.291149+08:00", comments="Source Table: public.sys_role_menu") + default Optional selectByPrimaryKey(String id_) { + return selectOne(c -> + c.where(id, isEqualTo(id_)) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.291149+08:00", comments="Source Table: public.sys_role_menu") + default int update(UpdateDSLCompleter completer) { + return MyBatis3Utils.update(this::update, sysRoleMenu, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.291149+08:00", comments="Source Table: public.sys_role_menu") + static UpdateDSL updateAllColumns(SysRoleMenu row, UpdateDSL dsl) { + return dsl.set(id).equalTo(row::getId) + .set(roleid).equalTo(row::getRoleid) + .set(menuid).equalTo(row::getMenuid); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.291149+08:00", comments="Source Table: public.sys_role_menu") + static UpdateDSL updateSelectiveColumns(SysRoleMenu row, UpdateDSL dsl) { + return dsl.set(id).equalToWhenPresent(row::getId) + .set(roleid).equalToWhenPresent(row::getRoleid) + .set(menuid).equalToWhenPresent(row::getMenuid); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.291149+08:00", comments="Source Table: public.sys_role_menu") + default int updateByPrimaryKey(SysRoleMenu row) { + return update(c -> + c.set(roleid).equalTo(row::getRoleid) + .set(menuid).equalTo(row::getMenuid) + .where(id, isEqualTo(row::getId)) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.291149+08:00", comments="Source Table: public.sys_role_menu") + default int updateByPrimaryKeySelective(SysRoleMenu row) { + return update(c -> + c.set(roleid).equalToWhenPresent(row::getRoleid) + .set(menuid).equalToWhenPresent(row::getMenuid) + .where(id, isEqualTo(row::getId)) + ); + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/dao/SysRoleSignMapper.java b/src/main/java/jj/tech/paolu/repository/mybatis/dao/SysRoleSignMapper.java new file mode 100644 index 0000000..3e8f727 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/dao/SysRoleSignMapper.java @@ -0,0 +1,153 @@ +package jj.tech.paolu.repository.mybatis.dao; + +import static jj.tech.paolu.repository.mybatis.dao.support.SysRoleSignDynamicSqlSupport.*; +import static org.mybatis.dynamic.sql.SqlBuilder.isEqualTo; + +import jakarta.annotation.Generated; +import java.util.Collection; +import java.util.List; +import java.util.Optional; +import jj.tech.paolu.repository.mybatis.entity.SysRoleSign; +import org.apache.ibatis.annotations.Mapper; +import org.apache.ibatis.annotations.Result; +import org.apache.ibatis.annotations.ResultMap; +import org.apache.ibatis.annotations.Results; +import org.apache.ibatis.annotations.SelectProvider; +import org.apache.ibatis.type.JdbcType; +import org.mybatis.dynamic.sql.BasicColumn; +import org.mybatis.dynamic.sql.delete.DeleteDSLCompleter; +import org.mybatis.dynamic.sql.select.CountDSLCompleter; +import org.mybatis.dynamic.sql.select.SelectDSLCompleter; +import org.mybatis.dynamic.sql.select.render.SelectStatementProvider; +import org.mybatis.dynamic.sql.update.UpdateDSL; +import org.mybatis.dynamic.sql.update.UpdateDSLCompleter; +import org.mybatis.dynamic.sql.update.UpdateModel; +import org.mybatis.dynamic.sql.util.SqlProviderAdapter; +import org.mybatis.dynamic.sql.util.mybatis3.CommonCountMapper; +import org.mybatis.dynamic.sql.util.mybatis3.CommonDeleteMapper; +import org.mybatis.dynamic.sql.util.mybatis3.CommonInsertMapper; +import org.mybatis.dynamic.sql.util.mybatis3.CommonUpdateMapper; +import org.mybatis.dynamic.sql.util.mybatis3.MyBatis3Utils; + +@Mapper +public interface SysRoleSignMapper extends CommonCountMapper, CommonDeleteMapper, CommonInsertMapper, CommonUpdateMapper { + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.300152+08:00", comments="Source Table: public.sys_role_sign") + BasicColumn[] selectList = BasicColumn.columnList(id, sign_name, sign_code); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.300152+08:00", comments="Source Table: public.sys_role_sign") + @SelectProvider(type=SqlProviderAdapter.class, method="select") + @Results(id="SysRoleSignResult", value = { + @Result(column="id", property="id", jdbcType=JdbcType.VARCHAR, id=true), + @Result(column="sign_name", property="sign_name", jdbcType=JdbcType.VARCHAR), + @Result(column="sign_code", property="sign_code", jdbcType=JdbcType.VARCHAR) + }) + List selectMany(SelectStatementProvider selectStatement); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.300152+08:00", comments="Source Table: public.sys_role_sign") + @SelectProvider(type=SqlProviderAdapter.class, method="select") + @ResultMap("SysRoleSignResult") + Optional selectOne(SelectStatementProvider selectStatement); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.300152+08:00", comments="Source Table: public.sys_role_sign") + default long count(CountDSLCompleter completer) { + return MyBatis3Utils.countFrom(this::count, sysRoleSign, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.300152+08:00", comments="Source Table: public.sys_role_sign") + default int delete(DeleteDSLCompleter completer) { + return MyBatis3Utils.deleteFrom(this::delete, sysRoleSign, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.300152+08:00", comments="Source Table: public.sys_role_sign") + default int deleteByPrimaryKey(String id_) { + return delete(c -> + c.where(id, isEqualTo(id_)) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.300152+08:00", comments="Source Table: public.sys_role_sign") + default int insert(SysRoleSign row) { + return MyBatis3Utils.insert(this::insert, row, sysRoleSign, c -> + c.map(id).toProperty("id") + .map(sign_name).toProperty("sign_name") + .map(sign_code).toProperty("sign_code") + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.300152+08:00", comments="Source Table: public.sys_role_sign") + default int insertMultiple(Collection records) { + return MyBatis3Utils.insertMultiple(this::insertMultiple, records, sysRoleSign, c -> + c.map(id).toProperty("id") + .map(sign_name).toProperty("sign_name") + .map(sign_code).toProperty("sign_code") + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.300152+08:00", comments="Source Table: public.sys_role_sign") + default int insertSelective(SysRoleSign row) { + return MyBatis3Utils.insert(this::insert, row, sysRoleSign, c -> + c.map(id).toPropertyWhenPresent("id", row::getId) + .map(sign_name).toPropertyWhenPresent("sign_name", row::getSign_name) + .map(sign_code).toPropertyWhenPresent("sign_code", row::getSign_code) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.300152+08:00", comments="Source Table: public.sys_role_sign") + default Optional selectOne(SelectDSLCompleter completer) { + return MyBatis3Utils.selectOne(this::selectOne, selectList, sysRoleSign, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.300152+08:00", comments="Source Table: public.sys_role_sign") + default List select(SelectDSLCompleter completer) { + return MyBatis3Utils.selectList(this::selectMany, selectList, sysRoleSign, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.300152+08:00", comments="Source Table: public.sys_role_sign") + default List selectDistinct(SelectDSLCompleter completer) { + return MyBatis3Utils.selectDistinct(this::selectMany, selectList, sysRoleSign, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.300152+08:00", comments="Source Table: public.sys_role_sign") + default Optional selectByPrimaryKey(String id_) { + return selectOne(c -> + c.where(id, isEqualTo(id_)) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.300152+08:00", comments="Source Table: public.sys_role_sign") + default int update(UpdateDSLCompleter completer) { + return MyBatis3Utils.update(this::update, sysRoleSign, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3011508+08:00", comments="Source Table: public.sys_role_sign") + static UpdateDSL updateAllColumns(SysRoleSign row, UpdateDSL dsl) { + return dsl.set(id).equalTo(row::getId) + .set(sign_name).equalTo(row::getSign_name) + .set(sign_code).equalTo(row::getSign_code); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3011508+08:00", comments="Source Table: public.sys_role_sign") + static UpdateDSL updateSelectiveColumns(SysRoleSign row, UpdateDSL dsl) { + return dsl.set(id).equalToWhenPresent(row::getId) + .set(sign_name).equalToWhenPresent(row::getSign_name) + .set(sign_code).equalToWhenPresent(row::getSign_code); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3011508+08:00", comments="Source Table: public.sys_role_sign") + default int updateByPrimaryKey(SysRoleSign row) { + return update(c -> + c.set(sign_name).equalTo(row::getSign_name) + .set(sign_code).equalTo(row::getSign_code) + .where(id, isEqualTo(row::getId)) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3011508+08:00", comments="Source Table: public.sys_role_sign") + default int updateByPrimaryKeySelective(SysRoleSign row) { + return update(c -> + c.set(sign_name).equalToWhenPresent(row::getSign_name) + .set(sign_code).equalToWhenPresent(row::getSign_code) + .where(id, isEqualTo(row::getId)) + ); + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/dao/SysRoleUrlMapper.java b/src/main/java/jj/tech/paolu/repository/mybatis/dao/SysRoleUrlMapper.java new file mode 100644 index 0000000..b3ba4bb --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/dao/SysRoleUrlMapper.java @@ -0,0 +1,161 @@ +package jj.tech.paolu.repository.mybatis.dao; + +import static jj.tech.paolu.repository.mybatis.dao.support.SysRoleUrlDynamicSqlSupport.*; +import static org.mybatis.dynamic.sql.SqlBuilder.isEqualTo; + +import jakarta.annotation.Generated; +import java.util.Collection; +import java.util.List; +import java.util.Optional; +import jj.tech.paolu.repository.mybatis.entity.SysRoleUrl; +import org.apache.ibatis.annotations.Mapper; +import org.apache.ibatis.annotations.Result; +import org.apache.ibatis.annotations.ResultMap; +import org.apache.ibatis.annotations.Results; +import org.apache.ibatis.annotations.SelectProvider; +import org.apache.ibatis.type.JdbcType; +import org.mybatis.dynamic.sql.BasicColumn; +import org.mybatis.dynamic.sql.delete.DeleteDSLCompleter; +import org.mybatis.dynamic.sql.select.CountDSLCompleter; +import org.mybatis.dynamic.sql.select.SelectDSLCompleter; +import org.mybatis.dynamic.sql.select.render.SelectStatementProvider; +import org.mybatis.dynamic.sql.update.UpdateDSL; +import org.mybatis.dynamic.sql.update.UpdateDSLCompleter; +import org.mybatis.dynamic.sql.update.UpdateModel; +import org.mybatis.dynamic.sql.util.SqlProviderAdapter; +import org.mybatis.dynamic.sql.util.mybatis3.CommonCountMapper; +import org.mybatis.dynamic.sql.util.mybatis3.CommonDeleteMapper; +import org.mybatis.dynamic.sql.util.mybatis3.CommonInsertMapper; +import org.mybatis.dynamic.sql.util.mybatis3.CommonUpdateMapper; +import org.mybatis.dynamic.sql.util.mybatis3.MyBatis3Utils; + +@Mapper +public interface SysRoleUrlMapper extends CommonCountMapper, CommonDeleteMapper, CommonInsertMapper, CommonUpdateMapper { + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3241506+08:00", comments="Source Table: public.sys_role_url") + BasicColumn[] selectList = BasicColumn.columnList(id, roleid, url, urltypes); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3231506+08:00", comments="Source Table: public.sys_role_url") + @SelectProvider(type=SqlProviderAdapter.class, method="select") + @Results(id="SysRoleUrlResult", value = { + @Result(column="id", property="id", jdbcType=JdbcType.VARCHAR, id=true), + @Result(column="roleid", property="roleid", jdbcType=JdbcType.VARCHAR), + @Result(column="url", property="url", jdbcType=JdbcType.VARCHAR), + @Result(column="urltypes", property="urltypes", jdbcType=JdbcType.INTEGER) + }) + List selectMany(SelectStatementProvider selectStatement); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3231506+08:00", comments="Source Table: public.sys_role_url") + @SelectProvider(type=SqlProviderAdapter.class, method="select") + @ResultMap("SysRoleUrlResult") + Optional selectOne(SelectStatementProvider selectStatement); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3231506+08:00", comments="Source Table: public.sys_role_url") + default long count(CountDSLCompleter completer) { + return MyBatis3Utils.countFrom(this::count, sysRoleUrl, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3231506+08:00", comments="Source Table: public.sys_role_url") + default int delete(DeleteDSLCompleter completer) { + return MyBatis3Utils.deleteFrom(this::delete, sysRoleUrl, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3231506+08:00", comments="Source Table: public.sys_role_url") + default int deleteByPrimaryKey(String id_) { + return delete(c -> + c.where(id, isEqualTo(id_)) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3231506+08:00", comments="Source Table: public.sys_role_url") + default int insert(SysRoleUrl row) { + return MyBatis3Utils.insert(this::insert, row, sysRoleUrl, c -> + c.map(id).toProperty("id") + .map(roleid).toProperty("roleid") + .map(url).toProperty("url") + .map(urltypes).toProperty("urltypes") + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3231506+08:00", comments="Source Table: public.sys_role_url") + default int insertMultiple(Collection records) { + return MyBatis3Utils.insertMultiple(this::insertMultiple, records, sysRoleUrl, c -> + c.map(id).toProperty("id") + .map(roleid).toProperty("roleid") + .map(url).toProperty("url") + .map(urltypes).toProperty("urltypes") + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3231506+08:00", comments="Source Table: public.sys_role_url") + default int insertSelective(SysRoleUrl row) { + return MyBatis3Utils.insert(this::insert, row, sysRoleUrl, c -> + c.map(id).toPropertyWhenPresent("id", row::getId) + .map(roleid).toPropertyWhenPresent("roleid", row::getRoleid) + .map(url).toPropertyWhenPresent("url", row::getUrl) + .map(urltypes).toPropertyWhenPresent("urltypes", row::getUrltypes) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3241506+08:00", comments="Source Table: public.sys_role_url") + default Optional selectOne(SelectDSLCompleter completer) { + return MyBatis3Utils.selectOne(this::selectOne, selectList, sysRoleUrl, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3241506+08:00", comments="Source Table: public.sys_role_url") + default List select(SelectDSLCompleter completer) { + return MyBatis3Utils.selectList(this::selectMany, selectList, sysRoleUrl, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3241506+08:00", comments="Source Table: public.sys_role_url") + default List selectDistinct(SelectDSLCompleter completer) { + return MyBatis3Utils.selectDistinct(this::selectMany, selectList, sysRoleUrl, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3241506+08:00", comments="Source Table: public.sys_role_url") + default Optional selectByPrimaryKey(String id_) { + return selectOne(c -> + c.where(id, isEqualTo(id_)) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3241506+08:00", comments="Source Table: public.sys_role_url") + default int update(UpdateDSLCompleter completer) { + return MyBatis3Utils.update(this::update, sysRoleUrl, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3241506+08:00", comments="Source Table: public.sys_role_url") + static UpdateDSL updateAllColumns(SysRoleUrl row, UpdateDSL dsl) { + return dsl.set(id).equalTo(row::getId) + .set(roleid).equalTo(row::getRoleid) + .set(url).equalTo(row::getUrl) + .set(urltypes).equalTo(row::getUrltypes); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3241506+08:00", comments="Source Table: public.sys_role_url") + static UpdateDSL updateSelectiveColumns(SysRoleUrl row, UpdateDSL dsl) { + return dsl.set(id).equalToWhenPresent(row::getId) + .set(roleid).equalToWhenPresent(row::getRoleid) + .set(url).equalToWhenPresent(row::getUrl) + .set(urltypes).equalToWhenPresent(row::getUrltypes); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3241506+08:00", comments="Source Table: public.sys_role_url") + default int updateByPrimaryKey(SysRoleUrl row) { + return update(c -> + c.set(roleid).equalTo(row::getRoleid) + .set(url).equalTo(row::getUrl) + .set(urltypes).equalTo(row::getUrltypes) + .where(id, isEqualTo(row::getId)) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3241506+08:00", comments="Source Table: public.sys_role_url") + default int updateByPrimaryKeySelective(SysRoleUrl row) { + return update(c -> + c.set(roleid).equalToWhenPresent(row::getRoleid) + .set(url).equalToWhenPresent(row::getUrl) + .set(urltypes).equalToWhenPresent(row::getUrltypes) + .where(id, isEqualTo(row::getId)) + ); + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/dao/SysUrlsMapper.java b/src/main/java/jj/tech/paolu/repository/mybatis/dao/SysUrlsMapper.java new file mode 100644 index 0000000..1fb8a42 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/dao/SysUrlsMapper.java @@ -0,0 +1,185 @@ +package jj.tech.paolu.repository.mybatis.dao; + +import static jj.tech.paolu.repository.mybatis.dao.support.SysUrlsDynamicSqlSupport.*; +import static org.mybatis.dynamic.sql.SqlBuilder.isEqualTo; + +import jakarta.annotation.Generated; +import java.util.Collection; +import java.util.List; +import java.util.Optional; +import jj.tech.paolu.repository.mybatis.entity.SysUrls; +import org.apache.ibatis.annotations.Mapper; +import org.apache.ibatis.annotations.Result; +import org.apache.ibatis.annotations.ResultMap; +import org.apache.ibatis.annotations.Results; +import org.apache.ibatis.annotations.SelectProvider; +import org.apache.ibatis.type.JdbcType; +import org.mybatis.dynamic.sql.BasicColumn; +import org.mybatis.dynamic.sql.delete.DeleteDSLCompleter; +import org.mybatis.dynamic.sql.select.CountDSLCompleter; +import org.mybatis.dynamic.sql.select.SelectDSLCompleter; +import org.mybatis.dynamic.sql.select.render.SelectStatementProvider; +import org.mybatis.dynamic.sql.update.UpdateDSL; +import org.mybatis.dynamic.sql.update.UpdateDSLCompleter; +import org.mybatis.dynamic.sql.update.UpdateModel; +import org.mybatis.dynamic.sql.util.SqlProviderAdapter; +import org.mybatis.dynamic.sql.util.mybatis3.CommonCountMapper; +import org.mybatis.dynamic.sql.util.mybatis3.CommonDeleteMapper; +import org.mybatis.dynamic.sql.util.mybatis3.CommonInsertMapper; +import org.mybatis.dynamic.sql.util.mybatis3.CommonUpdateMapper; +import org.mybatis.dynamic.sql.util.mybatis3.MyBatis3Utils; + +@Mapper +public interface SysUrlsMapper extends CommonCountMapper, CommonDeleteMapper, CommonInsertMapper, CommonUpdateMapper { + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3021485+08:00", comments="Source Table: public.sys_urls") + BasicColumn[] selectList = BasicColumn.columnList(id, pid, types, level, url, name, method); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3011508+08:00", comments="Source Table: public.sys_urls") + @SelectProvider(type=SqlProviderAdapter.class, method="select") + @Results(id="SysUrlsResult", value = { + @Result(column="id", property="id", jdbcType=JdbcType.VARCHAR, id=true), + @Result(column="pid", property="pid", jdbcType=JdbcType.VARCHAR), + @Result(column="types", property="types", jdbcType=JdbcType.INTEGER), + @Result(column="level", property="level", jdbcType=JdbcType.INTEGER), + @Result(column="url", property="url", jdbcType=JdbcType.VARCHAR), + @Result(column="name", property="name", jdbcType=JdbcType.VARCHAR), + @Result(column="method", property="method", jdbcType=JdbcType.VARCHAR) + }) + List selectMany(SelectStatementProvider selectStatement); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3011508+08:00", comments="Source Table: public.sys_urls") + @SelectProvider(type=SqlProviderAdapter.class, method="select") + @ResultMap("SysUrlsResult") + Optional selectOne(SelectStatementProvider selectStatement); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3011508+08:00", comments="Source Table: public.sys_urls") + default long count(CountDSLCompleter completer) { + return MyBatis3Utils.countFrom(this::count, sysUrls, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3011508+08:00", comments="Source Table: public.sys_urls") + default int delete(DeleteDSLCompleter completer) { + return MyBatis3Utils.deleteFrom(this::delete, sysUrls, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3011508+08:00", comments="Source Table: public.sys_urls") + default int deleteByPrimaryKey(String id_) { + return delete(c -> + c.where(id, isEqualTo(id_)) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3021485+08:00", comments="Source Table: public.sys_urls") + default int insert(SysUrls row) { + return MyBatis3Utils.insert(this::insert, row, sysUrls, c -> + c.map(id).toProperty("id") + .map(pid).toProperty("pid") + .map(types).toProperty("types") + .map(level).toProperty("level") + .map(url).toProperty("url") + .map(name).toProperty("name") + .map(method).toProperty("method") + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3021485+08:00", comments="Source Table: public.sys_urls") + default int insertMultiple(Collection records) { + return MyBatis3Utils.insertMultiple(this::insertMultiple, records, sysUrls, c -> + c.map(id).toProperty("id") + .map(pid).toProperty("pid") + .map(types).toProperty("types") + .map(level).toProperty("level") + .map(url).toProperty("url") + .map(name).toProperty("name") + .map(method).toProperty("method") + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3021485+08:00", comments="Source Table: public.sys_urls") + default int insertSelective(SysUrls row) { + return MyBatis3Utils.insert(this::insert, row, sysUrls, c -> + c.map(id).toPropertyWhenPresent("id", row::getId) + .map(pid).toPropertyWhenPresent("pid", row::getPid) + .map(types).toPropertyWhenPresent("types", row::getTypes) + .map(level).toPropertyWhenPresent("level", row::getLevel) + .map(url).toPropertyWhenPresent("url", row::getUrl) + .map(name).toPropertyWhenPresent("name", row::getName) + .map(method).toPropertyWhenPresent("method", row::getMethod) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3021485+08:00", comments="Source Table: public.sys_urls") + default Optional selectOne(SelectDSLCompleter completer) { + return MyBatis3Utils.selectOne(this::selectOne, selectList, sysUrls, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3021485+08:00", comments="Source Table: public.sys_urls") + default List select(SelectDSLCompleter completer) { + return MyBatis3Utils.selectList(this::selectMany, selectList, sysUrls, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3021485+08:00", comments="Source Table: public.sys_urls") + default List selectDistinct(SelectDSLCompleter completer) { + return MyBatis3Utils.selectDistinct(this::selectMany, selectList, sysUrls, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3021485+08:00", comments="Source Table: public.sys_urls") + default Optional selectByPrimaryKey(String id_) { + return selectOne(c -> + c.where(id, isEqualTo(id_)) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3021485+08:00", comments="Source Table: public.sys_urls") + default int update(UpdateDSLCompleter completer) { + return MyBatis3Utils.update(this::update, sysUrls, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3021485+08:00", comments="Source Table: public.sys_urls") + static UpdateDSL updateAllColumns(SysUrls row, UpdateDSL dsl) { + return dsl.set(id).equalTo(row::getId) + .set(pid).equalTo(row::getPid) + .set(types).equalTo(row::getTypes) + .set(level).equalTo(row::getLevel) + .set(url).equalTo(row::getUrl) + .set(name).equalTo(row::getName) + .set(method).equalTo(row::getMethod); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3021485+08:00", comments="Source Table: public.sys_urls") + static UpdateDSL updateSelectiveColumns(SysUrls row, UpdateDSL dsl) { + return dsl.set(id).equalToWhenPresent(row::getId) + .set(pid).equalToWhenPresent(row::getPid) + .set(types).equalToWhenPresent(row::getTypes) + .set(level).equalToWhenPresent(row::getLevel) + .set(url).equalToWhenPresent(row::getUrl) + .set(name).equalToWhenPresent(row::getName) + .set(method).equalToWhenPresent(row::getMethod); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3021485+08:00", comments="Source Table: public.sys_urls") + default int updateByPrimaryKey(SysUrls row) { + return update(c -> + c.set(pid).equalTo(row::getPid) + .set(types).equalTo(row::getTypes) + .set(level).equalTo(row::getLevel) + .set(url).equalTo(row::getUrl) + .set(name).equalTo(row::getName) + .set(method).equalTo(row::getMethod) + .where(id, isEqualTo(row::getId)) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3021485+08:00", comments="Source Table: public.sys_urls") + default int updateByPrimaryKeySelective(SysUrls row) { + return update(c -> + c.set(pid).equalToWhenPresent(row::getPid) + .set(types).equalToWhenPresent(row::getTypes) + .set(level).equalToWhenPresent(row::getLevel) + .set(url).equalToWhenPresent(row::getUrl) + .set(name).equalToWhenPresent(row::getName) + .set(method).equalToWhenPresent(row::getMethod) + .where(id, isEqualTo(row::getId)) + ); + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/dao/WbDirectoryFileMapper.java b/src/main/java/jj/tech/paolu/repository/mybatis/dao/WbDirectoryFileMapper.java new file mode 100644 index 0000000..eb2f23f --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/dao/WbDirectoryFileMapper.java @@ -0,0 +1,297 @@ +package jj.tech.paolu.repository.mybatis.dao; + +import static jj.tech.paolu.repository.mybatis.dao.support.WbDirectoryFileDynamicSqlSupport.*; +import static org.mybatis.dynamic.sql.SqlBuilder.isEqualTo; + +import jakarta.annotation.Generated; +import java.util.Collection; +import java.util.List; +import java.util.Optional; +import jj.tech.paolu.repository.mybatis.entity.WbDirectoryFile; +import org.apache.ibatis.annotations.Mapper; +import org.apache.ibatis.annotations.Result; +import org.apache.ibatis.annotations.ResultMap; +import org.apache.ibatis.annotations.Results; +import org.apache.ibatis.annotations.SelectProvider; +import org.apache.ibatis.type.JdbcType; +import org.mybatis.dynamic.sql.BasicColumn; +import org.mybatis.dynamic.sql.delete.DeleteDSLCompleter; +import org.mybatis.dynamic.sql.select.CountDSLCompleter; +import org.mybatis.dynamic.sql.select.SelectDSLCompleter; +import org.mybatis.dynamic.sql.select.render.SelectStatementProvider; +import org.mybatis.dynamic.sql.update.UpdateDSL; +import org.mybatis.dynamic.sql.update.UpdateDSLCompleter; +import org.mybatis.dynamic.sql.update.UpdateModel; +import org.mybatis.dynamic.sql.util.SqlProviderAdapter; +import org.mybatis.dynamic.sql.util.mybatis3.CommonCountMapper; +import org.mybatis.dynamic.sql.util.mybatis3.CommonDeleteMapper; +import org.mybatis.dynamic.sql.util.mybatis3.CommonInsertMapper; +import org.mybatis.dynamic.sql.util.mybatis3.CommonUpdateMapper; +import org.mybatis.dynamic.sql.util.mybatis3.MyBatis3Utils; + +@Mapper +public interface WbDirectoryFileMapper extends CommonCountMapper, CommonDeleteMapper, CommonInsertMapper, CommonUpdateMapper { + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6330132+08:00", comments="Source Table: public.wb_directory_file") + BasicColumn[] selectList = BasicColumn.columnList(kid, sortID, fileSuper, fileCount, dutyPerson, eWeaveDate, filePage, sortOrder, bPeg, ePeg, fileNum, remark, recordNum, pieceNumber, addDate, editDate, time_stamp, isDel, catalogPdfURL, signTag, collectTag); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6330132+08:00", comments="Source Table: public.wb_directory_file") + @SelectProvider(type=SqlProviderAdapter.class, method="select") + @Results(id="WbDirectoryFileResult", value = { + @Result(column="kid", property="kid", jdbcType=JdbcType.VARCHAR, id=true), + @Result(column="sortID", property="sortID", jdbcType=JdbcType.VARCHAR), + @Result(column="fileSuper", property="fileSuper", jdbcType=JdbcType.VARCHAR), + @Result(column="fileCount", property="fileCount", jdbcType=JdbcType.INTEGER), + @Result(column="dutyPerson", property="dutyPerson", jdbcType=JdbcType.VARCHAR), + @Result(column="eWeaveDate", property="eWeaveDate", jdbcType=JdbcType.VARCHAR), + @Result(column="filePage", property="filePage", jdbcType=JdbcType.INTEGER), + @Result(column="sortOrder", property="sortOrder", jdbcType=JdbcType.VARCHAR), + @Result(column="bPeg", property="bPeg", jdbcType=JdbcType.VARCHAR), + @Result(column="ePeg", property="ePeg", jdbcType=JdbcType.VARCHAR), + @Result(column="fileNum", property="fileNum", jdbcType=JdbcType.VARCHAR), + @Result(column="remark", property="remark", jdbcType=JdbcType.VARCHAR), + @Result(column="recordNum", property="recordNum", jdbcType=JdbcType.VARCHAR), + @Result(column="pieceNumber", property="pieceNumber", jdbcType=JdbcType.VARCHAR), + @Result(column="addDate", property="addDate", jdbcType=JdbcType.VARCHAR), + @Result(column="editDate", property="editDate", jdbcType=JdbcType.VARCHAR), + @Result(column="time_stamp", property="time_stamp", jdbcType=JdbcType.VARCHAR), + @Result(column="isDel", property="isDel", jdbcType=JdbcType.INTEGER), + @Result(column="catalogPdfURL", property="catalogPdfURL", jdbcType=JdbcType.VARCHAR), + @Result(column="signTag", property="signTag", jdbcType=JdbcType.VARCHAR), + @Result(column="collectTag", property="collectTag", jdbcType=JdbcType.VARCHAR) + }) + List selectMany(SelectStatementProvider selectStatement); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6330132+08:00", comments="Source Table: public.wb_directory_file") + @SelectProvider(type=SqlProviderAdapter.class, method="select") + @ResultMap("WbDirectoryFileResult") + Optional selectOne(SelectStatementProvider selectStatement); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6330132+08:00", comments="Source Table: public.wb_directory_file") + default long count(CountDSLCompleter completer) { + return MyBatis3Utils.countFrom(this::count, wbDirectoryFile, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6330132+08:00", comments="Source Table: public.wb_directory_file") + default int delete(DeleteDSLCompleter completer) { + return MyBatis3Utils.deleteFrom(this::delete, wbDirectoryFile, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6330132+08:00", comments="Source Table: public.wb_directory_file") + default int deleteByPrimaryKey(String kid_) { + return delete(c -> + c.where(kid, isEqualTo(kid_)) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6330132+08:00", comments="Source Table: public.wb_directory_file") + default int insert(WbDirectoryFile row) { + return MyBatis3Utils.insert(this::insert, row, wbDirectoryFile, c -> + c.map(kid).toProperty("kid") + .map(sortID).toProperty("sortID") + .map(fileSuper).toProperty("fileSuper") + .map(fileCount).toProperty("fileCount") + .map(dutyPerson).toProperty("dutyPerson") + .map(eWeaveDate).toProperty("eWeaveDate") + .map(filePage).toProperty("filePage") + .map(sortOrder).toProperty("sortOrder") + .map(bPeg).toProperty("bPeg") + .map(ePeg).toProperty("ePeg") + .map(fileNum).toProperty("fileNum") + .map(remark).toProperty("remark") + .map(recordNum).toProperty("recordNum") + .map(pieceNumber).toProperty("pieceNumber") + .map(addDate).toProperty("addDate") + .map(editDate).toProperty("editDate") + .map(time_stamp).toProperty("time_stamp") + .map(isDel).toProperty("isDel") + .map(catalogPdfURL).toProperty("catalogPdfURL") + .map(signTag).toProperty("signTag") + .map(collectTag).toProperty("collectTag") + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6330132+08:00", comments="Source Table: public.wb_directory_file") + default int insertMultiple(Collection records) { + return MyBatis3Utils.insertMultiple(this::insertMultiple, records, wbDirectoryFile, c -> + c.map(kid).toProperty("kid") + .map(sortID).toProperty("sortID") + .map(fileSuper).toProperty("fileSuper") + .map(fileCount).toProperty("fileCount") + .map(dutyPerson).toProperty("dutyPerson") + .map(eWeaveDate).toProperty("eWeaveDate") + .map(filePage).toProperty("filePage") + .map(sortOrder).toProperty("sortOrder") + .map(bPeg).toProperty("bPeg") + .map(ePeg).toProperty("ePeg") + .map(fileNum).toProperty("fileNum") + .map(remark).toProperty("remark") + .map(recordNum).toProperty("recordNum") + .map(pieceNumber).toProperty("pieceNumber") + .map(addDate).toProperty("addDate") + .map(editDate).toProperty("editDate") + .map(time_stamp).toProperty("time_stamp") + .map(isDel).toProperty("isDel") + .map(catalogPdfURL).toProperty("catalogPdfURL") + .map(signTag).toProperty("signTag") + .map(collectTag).toProperty("collectTag") + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6330132+08:00", comments="Source Table: public.wb_directory_file") + default int insertSelective(WbDirectoryFile row) { + return MyBatis3Utils.insert(this::insert, row, wbDirectoryFile, c -> + c.map(kid).toPropertyWhenPresent("kid", row::getKid) + .map(sortID).toPropertyWhenPresent("sortID", row::getSortID) + .map(fileSuper).toPropertyWhenPresent("fileSuper", row::getFileSuper) + .map(fileCount).toPropertyWhenPresent("fileCount", row::getFileCount) + .map(dutyPerson).toPropertyWhenPresent("dutyPerson", row::getDutyPerson) + .map(eWeaveDate).toPropertyWhenPresent("eWeaveDate", row::geteWeaveDate) + .map(filePage).toPropertyWhenPresent("filePage", row::getFilePage) + .map(sortOrder).toPropertyWhenPresent("sortOrder", row::getSortOrder) + .map(bPeg).toPropertyWhenPresent("bPeg", row::getbPeg) + .map(ePeg).toPropertyWhenPresent("ePeg", row::getePeg) + .map(fileNum).toPropertyWhenPresent("fileNum", row::getFileNum) + .map(remark).toPropertyWhenPresent("remark", row::getRemark) + .map(recordNum).toPropertyWhenPresent("recordNum", row::getRecordNum) + .map(pieceNumber).toPropertyWhenPresent("pieceNumber", row::getPieceNumber) + .map(addDate).toPropertyWhenPresent("addDate", row::getAddDate) + .map(editDate).toPropertyWhenPresent("editDate", row::getEditDate) + .map(time_stamp).toPropertyWhenPresent("time_stamp", row::getTime_stamp) + .map(isDel).toPropertyWhenPresent("isDel", row::getIsDel) + .map(catalogPdfURL).toPropertyWhenPresent("catalogPdfURL", row::getCatalogPdfURL) + .map(signTag).toPropertyWhenPresent("signTag", row::getSignTag) + .map(collectTag).toPropertyWhenPresent("collectTag", row::getCollectTag) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6330132+08:00", comments="Source Table: public.wb_directory_file") + default Optional selectOne(SelectDSLCompleter completer) { + return MyBatis3Utils.selectOne(this::selectOne, selectList, wbDirectoryFile, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6330132+08:00", comments="Source Table: public.wb_directory_file") + default List select(SelectDSLCompleter completer) { + return MyBatis3Utils.selectList(this::selectMany, selectList, wbDirectoryFile, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6340135+08:00", comments="Source Table: public.wb_directory_file") + default List selectDistinct(SelectDSLCompleter completer) { + return MyBatis3Utils.selectDistinct(this::selectMany, selectList, wbDirectoryFile, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6340135+08:00", comments="Source Table: public.wb_directory_file") + default Optional selectByPrimaryKey(String kid_) { + return selectOne(c -> + c.where(kid, isEqualTo(kid_)) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6340135+08:00", comments="Source Table: public.wb_directory_file") + default int update(UpdateDSLCompleter completer) { + return MyBatis3Utils.update(this::update, wbDirectoryFile, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6340135+08:00", comments="Source Table: public.wb_directory_file") + static UpdateDSL updateAllColumns(WbDirectoryFile row, UpdateDSL dsl) { + return dsl.set(kid).equalTo(row::getKid) + .set(sortID).equalTo(row::getSortID) + .set(fileSuper).equalTo(row::getFileSuper) + .set(fileCount).equalTo(row::getFileCount) + .set(dutyPerson).equalTo(row::getDutyPerson) + .set(eWeaveDate).equalTo(row::geteWeaveDate) + .set(filePage).equalTo(row::getFilePage) + .set(sortOrder).equalTo(row::getSortOrder) + .set(bPeg).equalTo(row::getbPeg) + .set(ePeg).equalTo(row::getePeg) + .set(fileNum).equalTo(row::getFileNum) + .set(remark).equalTo(row::getRemark) + .set(recordNum).equalTo(row::getRecordNum) + .set(pieceNumber).equalTo(row::getPieceNumber) + .set(addDate).equalTo(row::getAddDate) + .set(editDate).equalTo(row::getEditDate) + .set(time_stamp).equalTo(row::getTime_stamp) + .set(isDel).equalTo(row::getIsDel) + .set(catalogPdfURL).equalTo(row::getCatalogPdfURL) + .set(signTag).equalTo(row::getSignTag) + .set(collectTag).equalTo(row::getCollectTag); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6340135+08:00", comments="Source Table: public.wb_directory_file") + static UpdateDSL updateSelectiveColumns(WbDirectoryFile row, UpdateDSL dsl) { + return dsl.set(kid).equalToWhenPresent(row::getKid) + .set(sortID).equalToWhenPresent(row::getSortID) + .set(fileSuper).equalToWhenPresent(row::getFileSuper) + .set(fileCount).equalToWhenPresent(row::getFileCount) + .set(dutyPerson).equalToWhenPresent(row::getDutyPerson) + .set(eWeaveDate).equalToWhenPresent(row::geteWeaveDate) + .set(filePage).equalToWhenPresent(row::getFilePage) + .set(sortOrder).equalToWhenPresent(row::getSortOrder) + .set(bPeg).equalToWhenPresent(row::getbPeg) + .set(ePeg).equalToWhenPresent(row::getePeg) + .set(fileNum).equalToWhenPresent(row::getFileNum) + .set(remark).equalToWhenPresent(row::getRemark) + .set(recordNum).equalToWhenPresent(row::getRecordNum) + .set(pieceNumber).equalToWhenPresent(row::getPieceNumber) + .set(addDate).equalToWhenPresent(row::getAddDate) + .set(editDate).equalToWhenPresent(row::getEditDate) + .set(time_stamp).equalToWhenPresent(row::getTime_stamp) + .set(isDel).equalToWhenPresent(row::getIsDel) + .set(catalogPdfURL).equalToWhenPresent(row::getCatalogPdfURL) + .set(signTag).equalToWhenPresent(row::getSignTag) + .set(collectTag).equalToWhenPresent(row::getCollectTag); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6340135+08:00", comments="Source Table: public.wb_directory_file") + default int updateByPrimaryKey(WbDirectoryFile row) { + return update(c -> + c.set(sortID).equalTo(row::getSortID) + .set(fileSuper).equalTo(row::getFileSuper) + .set(fileCount).equalTo(row::getFileCount) + .set(dutyPerson).equalTo(row::getDutyPerson) + .set(eWeaveDate).equalTo(row::geteWeaveDate) + .set(filePage).equalTo(row::getFilePage) + .set(sortOrder).equalTo(row::getSortOrder) + .set(bPeg).equalTo(row::getbPeg) + .set(ePeg).equalTo(row::getePeg) + .set(fileNum).equalTo(row::getFileNum) + .set(remark).equalTo(row::getRemark) + .set(recordNum).equalTo(row::getRecordNum) + .set(pieceNumber).equalTo(row::getPieceNumber) + .set(addDate).equalTo(row::getAddDate) + .set(editDate).equalTo(row::getEditDate) + .set(time_stamp).equalTo(row::getTime_stamp) + .set(isDel).equalTo(row::getIsDel) + .set(catalogPdfURL).equalTo(row::getCatalogPdfURL) + .set(signTag).equalTo(row::getSignTag) + .set(collectTag).equalTo(row::getCollectTag) + .where(kid, isEqualTo(row::getKid)) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6340135+08:00", comments="Source Table: public.wb_directory_file") + default int updateByPrimaryKeySelective(WbDirectoryFile row) { + return update(c -> + c.set(sortID).equalToWhenPresent(row::getSortID) + .set(fileSuper).equalToWhenPresent(row::getFileSuper) + .set(fileCount).equalToWhenPresent(row::getFileCount) + .set(dutyPerson).equalToWhenPresent(row::getDutyPerson) + .set(eWeaveDate).equalToWhenPresent(row::geteWeaveDate) + .set(filePage).equalToWhenPresent(row::getFilePage) + .set(sortOrder).equalToWhenPresent(row::getSortOrder) + .set(bPeg).equalToWhenPresent(row::getbPeg) + .set(ePeg).equalToWhenPresent(row::getePeg) + .set(fileNum).equalToWhenPresent(row::getFileNum) + .set(remark).equalToWhenPresent(row::getRemark) + .set(recordNum).equalToWhenPresent(row::getRecordNum) + .set(pieceNumber).equalToWhenPresent(row::getPieceNumber) + .set(addDate).equalToWhenPresent(row::getAddDate) + .set(editDate).equalToWhenPresent(row::getEditDate) + .set(time_stamp).equalToWhenPresent(row::getTime_stamp) + .set(isDel).equalToWhenPresent(row::getIsDel) + .set(catalogPdfURL).equalToWhenPresent(row::getCatalogPdfURL) + .set(signTag).equalToWhenPresent(row::getSignTag) + .set(collectTag).equalToWhenPresent(row::getCollectTag) + .where(kid, isEqualTo(row::getKid)) + ); + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/dao/WbDirectoryMapper.java b/src/main/java/jj/tech/paolu/repository/mybatis/dao/WbDirectoryMapper.java new file mode 100644 index 0000000..6bdf8a8 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/dao/WbDirectoryMapper.java @@ -0,0 +1,193 @@ +package jj.tech.paolu.repository.mybatis.dao; + +import static jj.tech.paolu.repository.mybatis.dao.support.WbDirectoryDynamicSqlSupport.*; +import static org.mybatis.dynamic.sql.SqlBuilder.isEqualTo; + +import jakarta.annotation.Generated; +import java.util.Collection; +import java.util.List; +import java.util.Optional; +import jj.tech.paolu.repository.mybatis.entity.WbDirectory; +import org.apache.ibatis.annotations.Mapper; +import org.apache.ibatis.annotations.Result; +import org.apache.ibatis.annotations.ResultMap; +import org.apache.ibatis.annotations.Results; +import org.apache.ibatis.annotations.SelectProvider; +import org.apache.ibatis.type.JdbcType; +import org.mybatis.dynamic.sql.BasicColumn; +import org.mybatis.dynamic.sql.delete.DeleteDSLCompleter; +import org.mybatis.dynamic.sql.select.CountDSLCompleter; +import org.mybatis.dynamic.sql.select.SelectDSLCompleter; +import org.mybatis.dynamic.sql.select.render.SelectStatementProvider; +import org.mybatis.dynamic.sql.update.UpdateDSL; +import org.mybatis.dynamic.sql.update.UpdateDSLCompleter; +import org.mybatis.dynamic.sql.update.UpdateModel; +import org.mybatis.dynamic.sql.util.SqlProviderAdapter; +import org.mybatis.dynamic.sql.util.mybatis3.CommonCountMapper; +import org.mybatis.dynamic.sql.util.mybatis3.CommonDeleteMapper; +import org.mybatis.dynamic.sql.util.mybatis3.CommonInsertMapper; +import org.mybatis.dynamic.sql.util.mybatis3.CommonUpdateMapper; +import org.mybatis.dynamic.sql.util.mybatis3.MyBatis3Utils; + +@Mapper +public interface WbDirectoryMapper extends CommonCountMapper, CommonDeleteMapper, CommonInsertMapper, CommonUpdateMapper { + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6361484+08:00", comments="Source Table: public.wb_directory") + BasicColumn[] selectList = BasicColumn.columnList(kid, parentID, time_stamp, sortOrder, tname, subjoin, isdel, wbs_id); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6350131+08:00", comments="Source Table: public.wb_directory") + @SelectProvider(type=SqlProviderAdapter.class, method="select") + @Results(id="WbDirectoryResult", value = { + @Result(column="kid", property="kid", jdbcType=JdbcType.VARCHAR, id=true), + @Result(column="parentID", property="parentID", jdbcType=JdbcType.VARCHAR), + @Result(column="time_stamp", property="time_stamp", jdbcType=JdbcType.VARCHAR), + @Result(column="sortOrder", property="sortOrder", jdbcType=JdbcType.INTEGER), + @Result(column="tname", property="tname", jdbcType=JdbcType.VARCHAR), + @Result(column="subjoin", property="subjoin", jdbcType=JdbcType.INTEGER), + @Result(column="isdel", property="isdel", jdbcType=JdbcType.INTEGER), + @Result(column="wbs_id", property="wbs_id", jdbcType=JdbcType.INTEGER) + }) + List selectMany(SelectStatementProvider selectStatement); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6350131+08:00", comments="Source Table: public.wb_directory") + @SelectProvider(type=SqlProviderAdapter.class, method="select") + @ResultMap("WbDirectoryResult") + Optional selectOne(SelectStatementProvider selectStatement); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6350131+08:00", comments="Source Table: public.wb_directory") + default long count(CountDSLCompleter completer) { + return MyBatis3Utils.countFrom(this::count, wbDirectory, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6350131+08:00", comments="Source Table: public.wb_directory") + default int delete(DeleteDSLCompleter completer) { + return MyBatis3Utils.deleteFrom(this::delete, wbDirectory, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6350131+08:00", comments="Source Table: public.wb_directory") + default int deleteByPrimaryKey(String kid_) { + return delete(c -> + c.where(kid, isEqualTo(kid_)) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6350131+08:00", comments="Source Table: public.wb_directory") + default int insert(WbDirectory row) { + return MyBatis3Utils.insert(this::insert, row, wbDirectory, c -> + c.map(kid).toProperty("kid") + .map(parentID).toProperty("parentID") + .map(time_stamp).toProperty("time_stamp") + .map(sortOrder).toProperty("sortOrder") + .map(tname).toProperty("tname") + .map(subjoin).toProperty("subjoin") + .map(isdel).toProperty("isdel") + .map(wbs_id).toProperty("wbs_id") + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6361484+08:00", comments="Source Table: public.wb_directory") + default int insertMultiple(Collection records) { + return MyBatis3Utils.insertMultiple(this::insertMultiple, records, wbDirectory, c -> + c.map(kid).toProperty("kid") + .map(parentID).toProperty("parentID") + .map(time_stamp).toProperty("time_stamp") + .map(sortOrder).toProperty("sortOrder") + .map(tname).toProperty("tname") + .map(subjoin).toProperty("subjoin") + .map(isdel).toProperty("isdel") + .map(wbs_id).toProperty("wbs_id") + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6361484+08:00", comments="Source Table: public.wb_directory") + default int insertSelective(WbDirectory row) { + return MyBatis3Utils.insert(this::insert, row, wbDirectory, c -> + c.map(kid).toPropertyWhenPresent("kid", row::getKid) + .map(parentID).toPropertyWhenPresent("parentID", row::getParentID) + .map(time_stamp).toPropertyWhenPresent("time_stamp", row::getTime_stamp) + .map(sortOrder).toPropertyWhenPresent("sortOrder", row::getSortOrder) + .map(tname).toPropertyWhenPresent("tname", row::getTname) + .map(subjoin).toPropertyWhenPresent("subjoin", row::getSubjoin) + .map(isdel).toPropertyWhenPresent("isdel", row::getIsdel) + .map(wbs_id).toPropertyWhenPresent("wbs_id", row::getWbs_id) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6361484+08:00", comments="Source Table: public.wb_directory") + default Optional selectOne(SelectDSLCompleter completer) { + return MyBatis3Utils.selectOne(this::selectOne, selectList, wbDirectory, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6361484+08:00", comments="Source Table: public.wb_directory") + default List select(SelectDSLCompleter completer) { + return MyBatis3Utils.selectList(this::selectMany, selectList, wbDirectory, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6361484+08:00", comments="Source Table: public.wb_directory") + default List selectDistinct(SelectDSLCompleter completer) { + return MyBatis3Utils.selectDistinct(this::selectMany, selectList, wbDirectory, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6361484+08:00", comments="Source Table: public.wb_directory") + default Optional selectByPrimaryKey(String kid_) { + return selectOne(c -> + c.where(kid, isEqualTo(kid_)) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6361484+08:00", comments="Source Table: public.wb_directory") + default int update(UpdateDSLCompleter completer) { + return MyBatis3Utils.update(this::update, wbDirectory, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6361484+08:00", comments="Source Table: public.wb_directory") + static UpdateDSL updateAllColumns(WbDirectory row, UpdateDSL dsl) { + return dsl.set(kid).equalTo(row::getKid) + .set(parentID).equalTo(row::getParentID) + .set(time_stamp).equalTo(row::getTime_stamp) + .set(sortOrder).equalTo(row::getSortOrder) + .set(tname).equalTo(row::getTname) + .set(subjoin).equalTo(row::getSubjoin) + .set(isdel).equalTo(row::getIsdel) + .set(wbs_id).equalTo(row::getWbs_id); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6361484+08:00", comments="Source Table: public.wb_directory") + static UpdateDSL updateSelectiveColumns(WbDirectory row, UpdateDSL dsl) { + return dsl.set(kid).equalToWhenPresent(row::getKid) + .set(parentID).equalToWhenPresent(row::getParentID) + .set(time_stamp).equalToWhenPresent(row::getTime_stamp) + .set(sortOrder).equalToWhenPresent(row::getSortOrder) + .set(tname).equalToWhenPresent(row::getTname) + .set(subjoin).equalToWhenPresent(row::getSubjoin) + .set(isdel).equalToWhenPresent(row::getIsdel) + .set(wbs_id).equalToWhenPresent(row::getWbs_id); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6361484+08:00", comments="Source Table: public.wb_directory") + default int updateByPrimaryKey(WbDirectory row) { + return update(c -> + c.set(parentID).equalTo(row::getParentID) + .set(time_stamp).equalTo(row::getTime_stamp) + .set(sortOrder).equalTo(row::getSortOrder) + .set(tname).equalTo(row::getTname) + .set(subjoin).equalTo(row::getSubjoin) + .set(isdel).equalTo(row::getIsdel) + .set(wbs_id).equalTo(row::getWbs_id) + .where(kid, isEqualTo(row::getKid)) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6361484+08:00", comments="Source Table: public.wb_directory") + default int updateByPrimaryKeySelective(WbDirectory row) { + return update(c -> + c.set(parentID).equalToWhenPresent(row::getParentID) + .set(time_stamp).equalToWhenPresent(row::getTime_stamp) + .set(sortOrder).equalToWhenPresent(row::getSortOrder) + .set(tname).equalToWhenPresent(row::getTname) + .set(subjoin).equalToWhenPresent(row::getSubjoin) + .set(isdel).equalToWhenPresent(row::getIsdel) + .set(wbs_id).equalToWhenPresent(row::getWbs_id) + .where(kid, isEqualTo(row::getKid)) + ); + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/dao/WbFileMapper.java b/src/main/java/jj/tech/paolu/repository/mybatis/dao/WbFileMapper.java new file mode 100644 index 0000000..56d027d --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/dao/WbFileMapper.java @@ -0,0 +1,265 @@ +package jj.tech.paolu.repository.mybatis.dao; + +import static jj.tech.paolu.repository.mybatis.dao.support.WbFileDynamicSqlSupport.*; +import static org.mybatis.dynamic.sql.SqlBuilder.isEqualTo; + +import jakarta.annotation.Generated; +import java.util.Collection; +import java.util.List; +import java.util.Optional; +import jj.tech.paolu.repository.mybatis.entity.WbFile; +import org.apache.ibatis.annotations.Mapper; +import org.apache.ibatis.annotations.Result; +import org.apache.ibatis.annotations.ResultMap; +import org.apache.ibatis.annotations.Results; +import org.apache.ibatis.annotations.SelectProvider; +import org.apache.ibatis.type.JdbcType; +import org.mybatis.dynamic.sql.BasicColumn; +import org.mybatis.dynamic.sql.delete.DeleteDSLCompleter; +import org.mybatis.dynamic.sql.select.CountDSLCompleter; +import org.mybatis.dynamic.sql.select.SelectDSLCompleter; +import org.mybatis.dynamic.sql.select.render.SelectStatementProvider; +import org.mybatis.dynamic.sql.update.UpdateDSL; +import org.mybatis.dynamic.sql.update.UpdateDSLCompleter; +import org.mybatis.dynamic.sql.update.UpdateModel; +import org.mybatis.dynamic.sql.util.SqlProviderAdapter; +import org.mybatis.dynamic.sql.util.mybatis3.CommonCountMapper; +import org.mybatis.dynamic.sql.util.mybatis3.CommonDeleteMapper; +import org.mybatis.dynamic.sql.util.mybatis3.CommonInsertMapper; +import org.mybatis.dynamic.sql.util.mybatis3.CommonUpdateMapper; +import org.mybatis.dynamic.sql.util.mybatis3.MyBatis3Utils; + +@Mapper +public interface WbFileMapper extends CommonCountMapper, CommonDeleteMapper, CommonInsertMapper, CommonUpdateMapper { + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6218407+08:00", comments="Source Table: public.wb_file") + BasicColumn[] selectList = BasicColumn.columnList(kid, catalogID, tableName, annexName, projectName, eweaveDate, checkDate, annexPage, sortOrder, fileFrom, archivestag, addDate, editDate, time_stamp, isDel, downURL, filesize); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6138244+08:00", comments="Source Table: public.wb_file") + @SelectProvider(type=SqlProviderAdapter.class, method="select") + @Results(id="WbFileResult", value = { + @Result(column="kid", property="kid", jdbcType=JdbcType.VARCHAR, id=true), + @Result(column="catalogID", property="catalogID", jdbcType=JdbcType.VARCHAR), + @Result(column="tableName", property="tableName", jdbcType=JdbcType.VARCHAR), + @Result(column="annexName", property="annexName", jdbcType=JdbcType.VARCHAR), + @Result(column="projectName", property="projectName", jdbcType=JdbcType.VARCHAR), + @Result(column="eweaveDate", property="eweaveDate", jdbcType=JdbcType.VARCHAR), + @Result(column="checkDate", property="checkDate", jdbcType=JdbcType.VARCHAR), + @Result(column="annexPage", property="annexPage", jdbcType=JdbcType.INTEGER), + @Result(column="sortOrder", property="sortOrder", jdbcType=JdbcType.VARCHAR), + @Result(column="fileFrom", property="fileFrom", jdbcType=JdbcType.VARCHAR), + @Result(column="archivestag", property="archivestag", jdbcType=JdbcType.VARCHAR), + @Result(column="addDate", property="addDate", jdbcType=JdbcType.VARCHAR), + @Result(column="editDate", property="editDate", jdbcType=JdbcType.VARCHAR), + @Result(column="time_stamp", property="time_stamp", jdbcType=JdbcType.VARCHAR), + @Result(column="isDel", property="isDel", jdbcType=JdbcType.INTEGER), + @Result(column="downURL", property="downURL", jdbcType=JdbcType.VARCHAR), + @Result(column="filesize", property="filesize", jdbcType=JdbcType.INTEGER) + }) + List selectMany(SelectStatementProvider selectStatement); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6148503+08:00", comments="Source Table: public.wb_file") + @SelectProvider(type=SqlProviderAdapter.class, method="select") + @ResultMap("WbFileResult") + Optional selectOne(SelectStatementProvider selectStatement); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6160923+08:00", comments="Source Table: public.wb_file") + default long count(CountDSLCompleter completer) { + return MyBatis3Utils.countFrom(this::count, wbFile, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6160923+08:00", comments="Source Table: public.wb_file") + default int delete(DeleteDSLCompleter completer) { + return MyBatis3Utils.deleteFrom(this::delete, wbFile, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6160923+08:00", comments="Source Table: public.wb_file") + default int deleteByPrimaryKey(String kid_) { + return delete(c -> + c.where(kid, isEqualTo(kid_)) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.617095+08:00", comments="Source Table: public.wb_file") + default int insert(WbFile row) { + return MyBatis3Utils.insert(this::insert, row, wbFile, c -> + c.map(kid).toProperty("kid") + .map(catalogID).toProperty("catalogID") + .map(tableName).toProperty("tableName") + .map(annexName).toProperty("annexName") + .map(projectName).toProperty("projectName") + .map(eweaveDate).toProperty("eweaveDate") + .map(checkDate).toProperty("checkDate") + .map(annexPage).toProperty("annexPage") + .map(sortOrder).toProperty("sortOrder") + .map(fileFrom).toProperty("fileFrom") + .map(archivestag).toProperty("archivestag") + .map(addDate).toProperty("addDate") + .map(editDate).toProperty("editDate") + .map(time_stamp).toProperty("time_stamp") + .map(isDel).toProperty("isDel") + .map(downURL).toProperty("downURL") + .map(filesize).toProperty("filesize") + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6196474+08:00", comments="Source Table: public.wb_file") + default int insertMultiple(Collection records) { + return MyBatis3Utils.insertMultiple(this::insertMultiple, records, wbFile, c -> + c.map(kid).toProperty("kid") + .map(catalogID).toProperty("catalogID") + .map(tableName).toProperty("tableName") + .map(annexName).toProperty("annexName") + .map(projectName).toProperty("projectName") + .map(eweaveDate).toProperty("eweaveDate") + .map(checkDate).toProperty("checkDate") + .map(annexPage).toProperty("annexPage") + .map(sortOrder).toProperty("sortOrder") + .map(fileFrom).toProperty("fileFrom") + .map(archivestag).toProperty("archivestag") + .map(addDate).toProperty("addDate") + .map(editDate).toProperty("editDate") + .map(time_stamp).toProperty("time_stamp") + .map(isDel).toProperty("isDel") + .map(downURL).toProperty("downURL") + .map(filesize).toProperty("filesize") + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6207111+08:00", comments="Source Table: public.wb_file") + default int insertSelective(WbFile row) { + return MyBatis3Utils.insert(this::insert, row, wbFile, c -> + c.map(kid).toPropertyWhenPresent("kid", row::getKid) + .map(catalogID).toPropertyWhenPresent("catalogID", row::getCatalogID) + .map(tableName).toPropertyWhenPresent("tableName", row::getTableName) + .map(annexName).toPropertyWhenPresent("annexName", row::getAnnexName) + .map(projectName).toPropertyWhenPresent("projectName", row::getProjectName) + .map(eweaveDate).toPropertyWhenPresent("eweaveDate", row::getEweaveDate) + .map(checkDate).toPropertyWhenPresent("checkDate", row::getCheckDate) + .map(annexPage).toPropertyWhenPresent("annexPage", row::getAnnexPage) + .map(sortOrder).toPropertyWhenPresent("sortOrder", row::getSortOrder) + .map(fileFrom).toPropertyWhenPresent("fileFrom", row::getFileFrom) + .map(archivestag).toPropertyWhenPresent("archivestag", row::getArchivestag) + .map(addDate).toPropertyWhenPresent("addDate", row::getAddDate) + .map(editDate).toPropertyWhenPresent("editDate", row::getEditDate) + .map(time_stamp).toPropertyWhenPresent("time_stamp", row::getTime_stamp) + .map(isDel).toPropertyWhenPresent("isDel", row::getIsDel) + .map(downURL).toPropertyWhenPresent("downURL", row::getDownURL) + .map(filesize).toPropertyWhenPresent("filesize", row::getFilesize) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6228401+08:00", comments="Source Table: public.wb_file") + default Optional selectOne(SelectDSLCompleter completer) { + return MyBatis3Utils.selectOne(this::selectOne, selectList, wbFile, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6228401+08:00", comments="Source Table: public.wb_file") + default List select(SelectDSLCompleter completer) { + return MyBatis3Utils.selectList(this::selectMany, selectList, wbFile, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6238402+08:00", comments="Source Table: public.wb_file") + default List selectDistinct(SelectDSLCompleter completer) { + return MyBatis3Utils.selectDistinct(this::selectMany, selectList, wbFile, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6238402+08:00", comments="Source Table: public.wb_file") + default Optional selectByPrimaryKey(String kid_) { + return selectOne(c -> + c.where(kid, isEqualTo(kid_)) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6248402+08:00", comments="Source Table: public.wb_file") + default int update(UpdateDSLCompleter completer) { + return MyBatis3Utils.update(this::update, wbFile, completer); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6248402+08:00", comments="Source Table: public.wb_file") + static UpdateDSL updateAllColumns(WbFile row, UpdateDSL dsl) { + return dsl.set(kid).equalTo(row::getKid) + .set(catalogID).equalTo(row::getCatalogID) + .set(tableName).equalTo(row::getTableName) + .set(annexName).equalTo(row::getAnnexName) + .set(projectName).equalTo(row::getProjectName) + .set(eweaveDate).equalTo(row::getEweaveDate) + .set(checkDate).equalTo(row::getCheckDate) + .set(annexPage).equalTo(row::getAnnexPage) + .set(sortOrder).equalTo(row::getSortOrder) + .set(fileFrom).equalTo(row::getFileFrom) + .set(archivestag).equalTo(row::getArchivestag) + .set(addDate).equalTo(row::getAddDate) + .set(editDate).equalTo(row::getEditDate) + .set(time_stamp).equalTo(row::getTime_stamp) + .set(isDel).equalTo(row::getIsDel) + .set(downURL).equalTo(row::getDownURL) + .set(filesize).equalTo(row::getFilesize); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6259921+08:00", comments="Source Table: public.wb_file") + static UpdateDSL updateSelectiveColumns(WbFile row, UpdateDSL dsl) { + return dsl.set(kid).equalToWhenPresent(row::getKid) + .set(catalogID).equalToWhenPresent(row::getCatalogID) + .set(tableName).equalToWhenPresent(row::getTableName) + .set(annexName).equalToWhenPresent(row::getAnnexName) + .set(projectName).equalToWhenPresent(row::getProjectName) + .set(eweaveDate).equalToWhenPresent(row::getEweaveDate) + .set(checkDate).equalToWhenPresent(row::getCheckDate) + .set(annexPage).equalToWhenPresent(row::getAnnexPage) + .set(sortOrder).equalToWhenPresent(row::getSortOrder) + .set(fileFrom).equalToWhenPresent(row::getFileFrom) + .set(archivestag).equalToWhenPresent(row::getArchivestag) + .set(addDate).equalToWhenPresent(row::getAddDate) + .set(editDate).equalToWhenPresent(row::getEditDate) + .set(time_stamp).equalToWhenPresent(row::getTime_stamp) + .set(isDel).equalToWhenPresent(row::getIsDel) + .set(downURL).equalToWhenPresent(row::getDownURL) + .set(filesize).equalToWhenPresent(row::getFilesize); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6259921+08:00", comments="Source Table: public.wb_file") + default int updateByPrimaryKey(WbFile row) { + return update(c -> + c.set(catalogID).equalTo(row::getCatalogID) + .set(tableName).equalTo(row::getTableName) + .set(annexName).equalTo(row::getAnnexName) + .set(projectName).equalTo(row::getProjectName) + .set(eweaveDate).equalTo(row::getEweaveDate) + .set(checkDate).equalTo(row::getCheckDate) + .set(annexPage).equalTo(row::getAnnexPage) + .set(sortOrder).equalTo(row::getSortOrder) + .set(fileFrom).equalTo(row::getFileFrom) + .set(archivestag).equalTo(row::getArchivestag) + .set(addDate).equalTo(row::getAddDate) + .set(editDate).equalTo(row::getEditDate) + .set(time_stamp).equalTo(row::getTime_stamp) + .set(isDel).equalTo(row::getIsDel) + .set(downURL).equalTo(row::getDownURL) + .set(filesize).equalTo(row::getFilesize) + .where(kid, isEqualTo(row::getKid)) + ); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6272922+08:00", comments="Source Table: public.wb_file") + default int updateByPrimaryKeySelective(WbFile row) { + return update(c -> + c.set(catalogID).equalToWhenPresent(row::getCatalogID) + .set(tableName).equalToWhenPresent(row::getTableName) + .set(annexName).equalToWhenPresent(row::getAnnexName) + .set(projectName).equalToWhenPresent(row::getProjectName) + .set(eweaveDate).equalToWhenPresent(row::getEweaveDate) + .set(checkDate).equalToWhenPresent(row::getCheckDate) + .set(annexPage).equalToWhenPresent(row::getAnnexPage) + .set(sortOrder).equalToWhenPresent(row::getSortOrder) + .set(fileFrom).equalToWhenPresent(row::getFileFrom) + .set(archivestag).equalToWhenPresent(row::getArchivestag) + .set(addDate).equalToWhenPresent(row::getAddDate) + .set(editDate).equalToWhenPresent(row::getEditDate) + .set(time_stamp).equalToWhenPresent(row::getTime_stamp) + .set(isDel).equalToWhenPresent(row::getIsDel) + .set(downURL).equalToWhenPresent(row::getDownURL) + .set(filesize).equalToWhenPresent(row::getFilesize) + .where(kid, isEqualTo(row::getKid)) + ); + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/dao/support/ArchiveSynLogDetailDynamicSqlSupport.java b/src/main/java/jj/tech/paolu/repository/mybatis/dao/support/ArchiveSynLogDetailDynamicSqlSupport.java new file mode 100644 index 0000000..c81f8b6 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/dao/support/ArchiveSynLogDetailDynamicSqlSupport.java @@ -0,0 +1,49 @@ +package jj.tech.paolu.repository.mybatis.dao.support; + +import jakarta.annotation.Generated; +import java.sql.JDBCType; +import java.time.LocalDateTime; +import org.mybatis.dynamic.sql.AliasableSqlTable; +import org.mybatis.dynamic.sql.SqlColumn; + +public final class ArchiveSynLogDetailDynamicSqlSupport { + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T11:36:17.6447124+08:00", comments="Source Table: public.archive_syn_log_detail") + public static final ArchiveSynLogDetail archiveSynLogDetail = new ArchiveSynLogDetail(); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T11:36:17.6457121+08:00", comments="Source field: public.archive_syn_log_detail.id") + public static final SqlColumn id = archiveSynLogDetail.id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T11:36:17.6467116+08:00", comments="Source field: public.archive_syn_log_detail.node_id") + public static final SqlColumn node_id = archiveSynLogDetail.node_id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T11:36:17.6467116+08:00", comments="Source field: public.archive_syn_log_detail.note_type") + public static final SqlColumn note_type = archiveSynLogDetail.note_type; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T11:36:17.6467116+08:00", comments="Source field: public.archive_syn_log_detail.process_type") + public static final SqlColumn process_type = archiveSynLogDetail.process_type; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T11:36:17.6467116+08:00", comments="Source field: public.archive_syn_log_detail.create_time") + public static final SqlColumn create_time = archiveSynLogDetail.create_time; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T11:36:17.6467116+08:00", comments="Source field: public.archive_syn_log_detail.log_id") + public static final SqlColumn log_id = archiveSynLogDetail.log_id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T11:36:17.6457121+08:00", comments="Source Table: public.archive_syn_log_detail") + public static final class ArchiveSynLogDetail extends AliasableSqlTable { + public final SqlColumn id = column("id", JDBCType.VARCHAR); + + public final SqlColumn node_id = column("node_id", JDBCType.VARCHAR); + + public final SqlColumn note_type = column("note_type", JDBCType.INTEGER); + + public final SqlColumn process_type = column("process_type", JDBCType.INTEGER); + + public final SqlColumn create_time = column("create_time", JDBCType.TIMESTAMP); + + public final SqlColumn log_id = column("log_id", JDBCType.VARCHAR); + + public ArchiveSynLogDetail() { + super("archive_syn_log_detail", ArchiveSynLogDetail::new); + } + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/dao/support/ArchiveSynLogDynamicSqlSupport.java b/src/main/java/jj/tech/paolu/repository/mybatis/dao/support/ArchiveSynLogDynamicSqlSupport.java new file mode 100644 index 0000000..44b06ee --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/dao/support/ArchiveSynLogDynamicSqlSupport.java @@ -0,0 +1,84 @@ +package jj.tech.paolu.repository.mybatis.dao.support; + +import jakarta.annotation.Generated; +import java.sql.JDBCType; +import java.time.LocalDateTime; +import org.mybatis.dynamic.sql.AliasableSqlTable; +import org.mybatis.dynamic.sql.SqlColumn; + +public final class ArchiveSynLogDynamicSqlSupport { + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2881514+08:00", comments="Source Table: public.archive_syn_log") + public static final ArchiveSynLog archiveSynLog = new ArchiveSynLog(); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2881514+08:00", comments="Source field: public.archive_syn_log.id") + public static final SqlColumn id = archiveSynLog.id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2881514+08:00", comments="Source field: public.archive_syn_log.start_time") + public static final SqlColumn start_time = archiveSynLog.start_time; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2881514+08:00", comments="Source field: public.archive_syn_log.insert_dir_count") + public static final SqlColumn insert_dir_count = archiveSynLog.insert_dir_count; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2881514+08:00", comments="Source field: public.archive_syn_log.update_dir_count") + public static final SqlColumn update_dir_count = archiveSynLog.update_dir_count; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2881514+08:00", comments="Source field: public.archive_syn_log.insert_dirfile_count") + public static final SqlColumn insert_dirfile_count = archiveSynLog.insert_dirfile_count; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2881514+08:00", comments="Source field: public.archive_syn_log.update_dirfile_count") + public static final SqlColumn update_dirfile_count = archiveSynLog.update_dirfile_count; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2881514+08:00", comments="Source field: public.archive_syn_log.insert_file_count") + public static final SqlColumn insert_file_count = archiveSynLog.insert_file_count; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2881514+08:00", comments="Source field: public.archive_syn_log.update_file_count") + public static final SqlColumn update_file_count = archiveSynLog.update_file_count; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2881514+08:00", comments="Source field: public.archive_syn_log.description") + public static final SqlColumn description = archiveSynLog.description; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2881514+08:00", comments="Source field: public.archive_syn_log.run_result") + public static final SqlColumn run_result = archiveSynLog.run_result; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2881514+08:00", comments="Source field: public.archive_syn_log.update_timestamp") + public static final SqlColumn update_timestamp = archiveSynLog.update_timestamp; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2881514+08:00", comments="Source field: public.archive_syn_log.next_update_timestamp") + public static final SqlColumn next_update_timestamp = archiveSynLog.next_update_timestamp; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2881514+08:00", comments="Source field: public.archive_syn_log.end_time") + public static final SqlColumn end_time = archiveSynLog.end_time; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2881514+08:00", comments="Source Table: public.archive_syn_log") + public static final class ArchiveSynLog extends AliasableSqlTable { + public final SqlColumn id = column("id", JDBCType.VARCHAR); + + public final SqlColumn start_time = column("start_time", JDBCType.TIMESTAMP); + + public final SqlColumn insert_dir_count = column("insert_dir_count", JDBCType.BIGINT); + + public final SqlColumn update_dir_count = column("update_dir_count", JDBCType.BIGINT); + + public final SqlColumn insert_dirfile_count = column("insert_dirfile_count", JDBCType.BIGINT); + + public final SqlColumn update_dirfile_count = column("update_dirfile_count", JDBCType.BIGINT); + + public final SqlColumn insert_file_count = column("insert_file_count", JDBCType.BIGINT); + + public final SqlColumn update_file_count = column("update_file_count", JDBCType.BIGINT); + + public final SqlColumn description = column("description", JDBCType.VARCHAR); + + public final SqlColumn run_result = column("run_result", JDBCType.VARCHAR); + + public final SqlColumn update_timestamp = column("update_timestamp", JDBCType.BIGINT); + + public final SqlColumn next_update_timestamp = column("next_update_timestamp", JDBCType.BIGINT); + + public final SqlColumn end_time = column("end_time", JDBCType.TIMESTAMP); + + public ArchiveSynLog() { + super("archive_syn_log", ArchiveSynLog::new); + } + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/dao/support/ArchiveSynTimestampDynamicSqlSupport.java b/src/main/java/jj/tech/paolu/repository/mybatis/dao/support/ArchiveSynTimestampDynamicSqlSupport.java new file mode 100644 index 0000000..52e01a4 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/dao/support/ArchiveSynTimestampDynamicSqlSupport.java @@ -0,0 +1,33 @@ +package jj.tech.paolu.repository.mybatis.dao.support; + +import jakarta.annotation.Generated; +import java.sql.JDBCType; +import org.mybatis.dynamic.sql.AliasableSqlTable; +import org.mybatis.dynamic.sql.SqlColumn; + +public final class ArchiveSynTimestampDynamicSqlSupport { + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T20:53:02.701534+08:00", comments="Source Table: public.archive_syn_timestamp") + public static final ArchiveSynTimestamp archiveSynTimestamp = new ArchiveSynTimestamp(); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T20:53:02.7026373+08:00", comments="Source field: public.archive_syn_timestamp.node_id") + public static final SqlColumn node_id = archiveSynTimestamp.node_id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T20:53:02.7026373+08:00", comments="Source field: public.archive_syn_timestamp.node_type") + public static final SqlColumn node_type = archiveSynTimestamp.node_type; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T20:53:02.7026373+08:00", comments="Source field: public.archive_syn_timestamp.timestamp") + public static final SqlColumn timestamp = archiveSynTimestamp.timestamp; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T20:53:02.7026373+08:00", comments="Source Table: public.archive_syn_timestamp") + public static final class ArchiveSynTimestamp extends AliasableSqlTable { + public final SqlColumn node_id = column("node_id", JDBCType.VARCHAR); + + public final SqlColumn node_type = column("node_type", JDBCType.INTEGER); + + public final SqlColumn timestamp = column("timestamp", JDBCType.VARCHAR); + + public ArchiveSynTimestamp() { + super("archive_syn_timestamp", ArchiveSynTimestamp::new); + } + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/dao/support/CertificateApplyDynamicSqlSupport.java b/src/main/java/jj/tech/paolu/repository/mybatis/dao/support/CertificateApplyDynamicSqlSupport.java new file mode 100644 index 0000000..3e5487a --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/dao/support/CertificateApplyDynamicSqlSupport.java @@ -0,0 +1,104 @@ +package jj.tech.paolu.repository.mybatis.dao.support; + +import jakarta.annotation.Generated; +import java.sql.JDBCType; +import java.time.LocalDateTime; +import org.mybatis.dynamic.sql.AliasableSqlTable; +import org.mybatis.dynamic.sql.SqlColumn; + +public final class CertificateApplyDynamicSqlSupport { + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3111488+08:00", comments="Source Table: public.certificate_apply") + public static final CertificateApply certificateApply = new CertificateApply(); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3111488+08:00", comments="Source field: public.certificate_apply.id") + public static final SqlColumn id = certificateApply.id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3111488+08:00", comments="Source field: public.certificate_apply.is_org") + public static final SqlColumn is_org = certificateApply.is_org; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3111488+08:00", comments="Source field: public.certificate_apply.user_id") + public static final SqlColumn user_id = certificateApply.user_id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3111488+08:00", comments="Source field: public.certificate_apply.user_name") + public static final SqlColumn user_name = certificateApply.user_name; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3111488+08:00", comments="Source field: public.certificate_apply.user_real_name") + public static final SqlColumn user_real_name = certificateApply.user_real_name; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3111488+08:00", comments="Source field: public.certificate_apply.user_phone") + public static final SqlColumn user_phone = certificateApply.user_phone; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3111488+08:00", comments="Source field: public.certificate_apply.user_org_id") + public static final SqlColumn user_org_id = certificateApply.user_org_id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3111488+08:00", comments="Source field: public.certificate_apply.user_org_name") + public static final SqlColumn user_org_name = certificateApply.user_org_name; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3111488+08:00", comments="Source field: public.certificate_apply.apply_type") + public static final SqlColumn apply_type = certificateApply.apply_type; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3111488+08:00", comments="Source field: public.certificate_apply.status") + public static final SqlColumn status = certificateApply.status; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3111488+08:00", comments="Source field: public.certificate_apply.apply_time") + public static final SqlColumn apply_time = certificateApply.apply_time; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3111488+08:00", comments="Source field: public.certificate_apply.apply_finish_time") + public static final SqlColumn apply_finish_time = certificateApply.apply_finish_time; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3111488+08:00", comments="Source field: public.certificate_apply.apply_reason") + public static final SqlColumn apply_reason = certificateApply.apply_reason; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3111488+08:00", comments="Source field: public.certificate_apply.next_check_org_id") + public static final SqlColumn next_check_org_id = certificateApply.next_check_org_id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3111488+08:00", comments="Source field: public.certificate_apply.end_check_org_id") + public static final SqlColumn end_check_org_id = certificateApply.end_check_org_id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3111488+08:00", comments="Source field: public.certificate_apply.cer_id") + public static final SqlColumn cer_id = certificateApply.cer_id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3111488+08:00", comments="Source field: public.certificate_apply.company_id") + public static final SqlColumn company_id = certificateApply.company_id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3111488+08:00", comments="Source Table: public.certificate_apply") + public static final class CertificateApply extends AliasableSqlTable { + public final SqlColumn id = column("id", JDBCType.VARCHAR); + + public final SqlColumn is_org = column("is_org", JDBCType.INTEGER); + + public final SqlColumn user_id = column("user_id", JDBCType.VARCHAR); + + public final SqlColumn user_name = column("user_name", JDBCType.VARCHAR); + + public final SqlColumn user_real_name = column("user_real_name", JDBCType.VARCHAR); + + public final SqlColumn user_phone = column("user_phone", JDBCType.VARCHAR); + + public final SqlColumn user_org_id = column("user_org_id", JDBCType.VARCHAR); + + public final SqlColumn user_org_name = column("user_org_name", JDBCType.VARCHAR); + + public final SqlColumn apply_type = column("apply_type", JDBCType.INTEGER); + + public final SqlColumn status = column("status", JDBCType.INTEGER); + + public final SqlColumn apply_time = column("apply_time", JDBCType.TIMESTAMP); + + public final SqlColumn apply_finish_time = column("apply_finish_time", JDBCType.TIMESTAMP); + + public final SqlColumn apply_reason = column("apply_reason", JDBCType.VARCHAR); + + public final SqlColumn next_check_org_id = column("next_check_org_id", JDBCType.VARCHAR); + + public final SqlColumn end_check_org_id = column("end_check_org_id", JDBCType.VARCHAR); + + public final SqlColumn cer_id = column("cer_id", JDBCType.VARCHAR); + + public final SqlColumn company_id = column("company_id", JDBCType.VARCHAR); + + public CertificateApply() { + super("certificate_apply", CertificateApply::new); + } + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/dao/support/CertificateApplyRecordDynamicSqlSupport.java b/src/main/java/jj/tech/paolu/repository/mybatis/dao/support/CertificateApplyRecordDynamicSqlSupport.java new file mode 100644 index 0000000..17f261d --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/dao/support/CertificateApplyRecordDynamicSqlSupport.java @@ -0,0 +1,94 @@ +package jj.tech.paolu.repository.mybatis.dao.support; + +import jakarta.annotation.Generated; +import java.sql.JDBCType; +import java.time.LocalDateTime; +import org.mybatis.dynamic.sql.AliasableSqlTable; +import org.mybatis.dynamic.sql.SqlColumn; + +public final class CertificateApplyRecordDynamicSqlSupport { + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3071473+08:00", comments="Source Table: public.certificate_apply_record") + public static final CertificateApplyRecord certificateApplyRecord = new CertificateApplyRecord(); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3071473+08:00", comments="Source field: public.certificate_apply_record.id") + public static final SqlColumn id = certificateApplyRecord.id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3071473+08:00", comments="Source field: public.certificate_apply_record.certificate_apply_id") + public static final SqlColumn certificate_apply_id = certificateApplyRecord.certificate_apply_id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3071473+08:00", comments="Source field: public.certificate_apply_record.certificate_apply_user_id") + public static final SqlColumn certificate_apply_user_id = certificateApplyRecord.certificate_apply_user_id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3071473+08:00", comments="Source field: public.certificate_apply_record.certificate_apply_user_org_id") + public static final SqlColumn certificate_apply_user_org_id = certificateApplyRecord.certificate_apply_user_org_id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3071473+08:00", comments="Source field: public.certificate_apply_record.is_org") + public static final SqlColumn is_org = certificateApplyRecord.is_org; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3071473+08:00", comments="Source field: public.certificate_apply_record.apply_type") + public static final SqlColumn apply_type = certificateApplyRecord.apply_type; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3071473+08:00", comments="Source field: public.certificate_apply_record.check_user_id") + public static final SqlColumn check_user_id = certificateApplyRecord.check_user_id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3071473+08:00", comments="Source field: public.certificate_apply_record.check_user_name") + public static final SqlColumn check_user_name = certificateApplyRecord.check_user_name; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3071473+08:00", comments="Source field: public.certificate_apply_record.check_org_id") + public static final SqlColumn check_org_id = certificateApplyRecord.check_org_id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3071473+08:00", comments="Source field: public.certificate_apply_record.check_org_name") + public static final SqlColumn check_org_name = certificateApplyRecord.check_org_name; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3071473+08:00", comments="Source field: public.certificate_apply_record.check_describe") + public static final SqlColumn check_describe = certificateApplyRecord.check_describe; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3071473+08:00", comments="Source field: public.certificate_apply_record.check_status") + public static final SqlColumn check_status = certificateApplyRecord.check_status; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3071473+08:00", comments="Source field: public.certificate_apply_record.check_time") + public static final SqlColumn check_time = certificateApplyRecord.check_time; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3071473+08:00", comments="Source field: public.certificate_apply_record.next_check_org_id") + public static final SqlColumn next_check_org_id = certificateApplyRecord.next_check_org_id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3071473+08:00", comments="Source field: public.certificate_apply_record.next_check_org_name") + public static final SqlColumn next_check_org_name = certificateApplyRecord.next_check_org_name; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3071473+08:00", comments="Source Table: public.certificate_apply_record") + public static final class CertificateApplyRecord extends AliasableSqlTable { + public final SqlColumn id = column("id", JDBCType.VARCHAR); + + public final SqlColumn certificate_apply_id = column("certificate_apply_id", JDBCType.VARCHAR); + + public final SqlColumn certificate_apply_user_id = column("certificate_apply_user_id", JDBCType.VARCHAR); + + public final SqlColumn certificate_apply_user_org_id = column("certificate_apply_user_org_id", JDBCType.VARCHAR); + + public final SqlColumn is_org = column("is_org", JDBCType.INTEGER); + + public final SqlColumn apply_type = column("apply_type", JDBCType.INTEGER); + + public final SqlColumn check_user_id = column("check_user_id", JDBCType.VARCHAR); + + public final SqlColumn check_user_name = column("check_user_name", JDBCType.VARCHAR); + + public final SqlColumn check_org_id = column("check_org_id", JDBCType.VARCHAR); + + public final SqlColumn check_org_name = column("check_org_name", JDBCType.VARCHAR); + + public final SqlColumn check_describe = column("check_describe", JDBCType.VARCHAR); + + public final SqlColumn check_status = column("check_status", JDBCType.INTEGER); + + public final SqlColumn check_time = column("check_time", JDBCType.TIMESTAMP); + + public final SqlColumn next_check_org_id = column("next_check_org_id", JDBCType.VARCHAR); + + public final SqlColumn next_check_org_name = column("next_check_org_name", JDBCType.VARCHAR); + + public CertificateApplyRecord() { + super("certificate_apply_record", CertificateApplyRecord::new); + } + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/dao/support/CertificateDetailDynamicSqlSupport.java b/src/main/java/jj/tech/paolu/repository/mybatis/dao/support/CertificateDetailDynamicSqlSupport.java new file mode 100644 index 0000000..9c5d3e2 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/dao/support/CertificateDetailDynamicSqlSupport.java @@ -0,0 +1,89 @@ +package jj.tech.paolu.repository.mybatis.dao.support; + +import jakarta.annotation.Generated; +import java.sql.JDBCType; +import java.time.LocalDateTime; +import org.mybatis.dynamic.sql.AliasableSqlTable; +import org.mybatis.dynamic.sql.SqlColumn; + +public final class CertificateDetailDynamicSqlSupport { + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2981487+08:00", comments="Source Table: public.certificate_detail") + public static final CertificateDetail certificateDetail = new CertificateDetail(); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2981487+08:00", comments="Source field: public.certificate_detail.id") + public static final SqlColumn id = certificateDetail.id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2981487+08:00", comments="Source field: public.certificate_detail.certificate_apply_id") + public static final SqlColumn certificate_apply_id = certificateDetail.certificate_apply_id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2981487+08:00", comments="Source field: public.certificate_detail.work_start_time") + public static final SqlColumn work_start_time = certificateDetail.work_start_time; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2981487+08:00", comments="Source field: public.certificate_detail.work_end_time") + public static final SqlColumn work_end_time = certificateDetail.work_end_time; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2981487+08:00", comments="Source field: public.certificate_detail.status") + public static final SqlColumn status = certificateDetail.status; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2981487+08:00", comments="Source field: public.certificate_detail.cert_file_content") + public static final SqlColumn cert_file_content = certificateDetail.cert_file_content; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2981487+08:00", comments="Source field: public.certificate_detail.is_up_chain") + public static final SqlColumn is_up_chain = certificateDetail.is_up_chain; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2981487+08:00", comments="Source field: public.certificate_detail.weid") + public static final SqlColumn weid = certificateDetail.weid; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2981487+08:00", comments="Source field: public.certificate_detail.private_key_hex_str") + public static final SqlColumn private_key_hex_str = certificateDetail.private_key_hex_str; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2981487+08:00", comments="Source field: public.certificate_detail.x509_serial_number") + public static final SqlColumn x509_serial_number = certificateDetail.x509_serial_number; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2981487+08:00", comments="Source field: public.certificate_detail.x509_subject") + public static final SqlColumn x509_subject = certificateDetail.x509_subject; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2981487+08:00", comments="Source field: public.certificate_detail.x509_issuer") + public static final SqlColumn x509_issuer = certificateDetail.x509_issuer; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2991516+08:00", comments="Source field: public.certificate_detail.x509_public_key") + public static final SqlColumn x509_public_key = certificateDetail.x509_public_key; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2991516+08:00", comments="Source field: public.certificate_detail.x509_sig_alg_name") + public static final SqlColumn x509_sig_alg_name = certificateDetail.x509_sig_alg_name; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2981487+08:00", comments="Source Table: public.certificate_detail") + public static final class CertificateDetail extends AliasableSqlTable { + public final SqlColumn id = column("id", JDBCType.VARCHAR); + + public final SqlColumn certificate_apply_id = column("certificate_apply_id", JDBCType.VARCHAR); + + public final SqlColumn work_start_time = column("work_start_time", JDBCType.TIMESTAMP); + + public final SqlColumn work_end_time = column("work_end_time", JDBCType.TIMESTAMP); + + public final SqlColumn status = column("status", JDBCType.INTEGER); + + public final SqlColumn cert_file_content = column("cert_file_content", JDBCType.VARCHAR); + + public final SqlColumn is_up_chain = column("is_up_chain", JDBCType.INTEGER); + + public final SqlColumn weid = column("weid", JDBCType.VARCHAR); + + public final SqlColumn private_key_hex_str = column("private_key_hex_str", JDBCType.VARCHAR); + + public final SqlColumn x509_serial_number = column("x509_serial_number", JDBCType.VARCHAR); + + public final SqlColumn x509_subject = column("x509_subject", JDBCType.VARCHAR); + + public final SqlColumn x509_issuer = column("x509_issuer", JDBCType.VARCHAR); + + public final SqlColumn x509_public_key = column("x509_public_key", JDBCType.VARCHAR); + + public final SqlColumn x509_sig_alg_name = column("x509_sig_alg_name", JDBCType.VARCHAR); + + public CertificateDetail() { + super("certificate_detail", CertificateDetail::new); + } + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/dao/support/DecryptLogDynamicSqlSupport.java b/src/main/java/jj/tech/paolu/repository/mybatis/dao/support/DecryptLogDynamicSqlSupport.java new file mode 100644 index 0000000..0db222f --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/dao/support/DecryptLogDynamicSqlSupport.java @@ -0,0 +1,96 @@ +package jj.tech.paolu.repository.mybatis.dao.support; + +import jakarta.annotation.Generated; +import java.sql.JDBCType; +import java.time.LocalDateTime; +import org.mybatis.dynamic.sql.AliasableSqlTable; +import org.mybatis.dynamic.sql.SqlColumn; + +public final class DecryptLogDynamicSqlSupport { + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3171529+08:00", comments="Source Table: public.decrypt_log") + public static final DecryptLog decryptLog = new DecryptLog(); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3171529+08:00", comments="Source field: public.decrypt_log.id") + public static final SqlColumn id = decryptLog.id; + + /** + * Database Column Remarks: + * 申请人id + */ + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3171529+08:00", comments="Source field: public.decrypt_log.weid") + public static final SqlColumn weid = decryptLog.weid; + + /** + * Database Column Remarks: + * 档案类型(0件/1件内文件) + */ + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3171529+08:00", comments="Source field: public.decrypt_log.content_type") + public static final SqlColumn content_type = decryptLog.content_type; + + /** + * Database Column Remarks: + * 档案id + */ + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3171529+08:00", comments="Source field: public.decrypt_log.content_id") + public static final SqlColumn content_id = decryptLog.content_id; + + /** + * Database Column Remarks: + * 解密时间 + */ + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3171529+08:00", comments="Source field: public.decrypt_log.dec_time") + public static final SqlColumn dec_time = decryptLog.dec_time; + + /** + * Database Column Remarks: + * 区域 + */ + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3171529+08:00", comments="Source field: public.decrypt_log.location") + public static final SqlColumn location = decryptLog.location; + + /** + * Database Column Remarks: + * 秘钥id + */ + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3181488+08:00", comments="Source field: public.decrypt_log.sm9hibeid") + public static final SqlColumn sm9hibeid = decryptLog.sm9hibeid; + + /** + * Database Column Remarks: + * 解密结果(0失败1成功) + */ + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3181488+08:00", comments="Source field: public.decrypt_log.status") + public static final SqlColumn status = decryptLog.status; + + /** + * Database Column Remarks: + * 数字签名 + */ + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3181488+08:00", comments="Source field: public.decrypt_log.sign") + public static final SqlColumn sign = decryptLog.sign; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3171529+08:00", comments="Source Table: public.decrypt_log") + public static final class DecryptLog extends AliasableSqlTable { + public final SqlColumn id = column("id", JDBCType.VARCHAR); + + public final SqlColumn weid = column("weid", JDBCType.VARCHAR); + + public final SqlColumn content_type = column("content_type", JDBCType.INTEGER); + + public final SqlColumn content_id = column("content_id", JDBCType.VARCHAR); + + public final SqlColumn dec_time = column("dec_time", JDBCType.TIMESTAMP); + + public final SqlColumn location = column("location", JDBCType.VARCHAR); + + public final SqlColumn sm9hibeid = column("sm9hibeid", JDBCType.VARCHAR); + + public final SqlColumn status = column("status", JDBCType.INTEGER); + + public final SqlColumn sign = column("sign", JDBCType.VARCHAR); + + public DecryptLog() { + super("decrypt_log", DecryptLog::new); + } + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/dao/support/DownloadLogDynamicSqlSupport.java b/src/main/java/jj/tech/paolu/repository/mybatis/dao/support/DownloadLogDynamicSqlSupport.java new file mode 100644 index 0000000..d552815 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/dao/support/DownloadLogDynamicSqlSupport.java @@ -0,0 +1,78 @@ +package jj.tech.paolu.repository.mybatis.dao.support; + +import jakarta.annotation.Generated; +import java.sql.JDBCType; +import java.time.LocalDateTime; +import org.mybatis.dynamic.sql.AliasableSqlTable; +import org.mybatis.dynamic.sql.SqlColumn; + +public final class DownloadLogDynamicSqlSupport { + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2521575+08:00", comments="Source Table: public.download_log") + public static final DownloadLog downloadLog = new DownloadLog(); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2521575+08:00", comments="Source field: public.download_log.id") + public static final SqlColumn id = downloadLog.id; + + /** + * Database Column Remarks: + * weid + */ + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2521575+08:00", comments="Source field: public.download_log.weid") + public static final SqlColumn weid = downloadLog.weid; + + /** + * Database Column Remarks: + * 下载时间 + */ + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2521575+08:00", comments="Source field: public.download_log.downloadtime") + public static final SqlColumn downloadtime = downloadLog.downloadtime; + + /** + * Database Column Remarks: + * 下载文件数 + */ + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2521575+08:00", comments="Source field: public.download_log.filenum") + public static final SqlColumn filenum = downloadLog.filenum; + + /** + * Database Column Remarks: + * 下载类型(1文件包/2单个附件(SyncFile)/3单个件(DirecotryFile)) + */ + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2521575+08:00", comments="Source field: public.download_log.content_type") + public static final SqlColumn content_type = downloadLog.content_type; + + /** + * Database Column Remarks: + * 下载记录ID(如果是单个文件,就取ID,如果是包,就是包内包含的文件的ID列表) + */ + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2521575+08:00", comments="Source field: public.download_log.contentid") + public static final SqlColumn contentid = downloadLog.contentid; + + /** + * Database Column Remarks: + * 数字签名 + */ + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2521575+08:00", comments="Source field: public.download_log.sign") + public static final SqlColumn sign = downloadLog.sign; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2521575+08:00", comments="Source Table: public.download_log") + public static final class DownloadLog extends AliasableSqlTable { + public final SqlColumn id = column("id", JDBCType.VARCHAR); + + public final SqlColumn weid = column("weid", JDBCType.VARCHAR); + + public final SqlColumn downloadtime = column("downloadtime", JDBCType.TIMESTAMP); + + public final SqlColumn filenum = column("filenum", JDBCType.INTEGER); + + public final SqlColumn content_type = column("content_type", JDBCType.INTEGER); + + public final SqlColumn contentid = column("contentid", JDBCType.VARCHAR); + + public final SqlColumn sign = column("sign", JDBCType.VARCHAR); + + public DownloadLog() { + super("download_log", DownloadLog::new); + } + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/dao/support/FilesApplyCheckRecordDynamicSqlSupport.java b/src/main/java/jj/tech/paolu/repository/mybatis/dao/support/FilesApplyCheckRecordDynamicSqlSupport.java new file mode 100644 index 0000000..41e72d2 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/dao/support/FilesApplyCheckRecordDynamicSqlSupport.java @@ -0,0 +1,94 @@ +package jj.tech.paolu.repository.mybatis.dao.support; + +import jakarta.annotation.Generated; +import java.sql.JDBCType; +import java.time.LocalDateTime; +import org.mybatis.dynamic.sql.AliasableSqlTable; +import org.mybatis.dynamic.sql.SqlColumn; + +public final class FilesApplyCheckRecordDynamicSqlSupport { + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3151511+08:00", comments="Source Table: public.files_apply_check_record") + public static final FilesApplyCheckRecord filesApplyCheckRecord = new FilesApplyCheckRecord(); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3151511+08:00", comments="Source field: public.files_apply_check_record.id") + public static final SqlColumn id = filesApplyCheckRecord.id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3151511+08:00", comments="Source field: public.files_apply_check_record.files_apply_id") + public static final SqlColumn files_apply_id = filesApplyCheckRecord.files_apply_id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3151511+08:00", comments="Source field: public.files_apply_check_record.is_apply_provider") + public static final SqlColumn is_apply_provider = filesApplyCheckRecord.is_apply_provider; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3151511+08:00", comments="Source field: public.files_apply_check_record.check_user_id") + public static final SqlColumn check_user_id = filesApplyCheckRecord.check_user_id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3151511+08:00", comments="Source field: public.files_apply_check_record.check_user_name") + public static final SqlColumn check_user_name = filesApplyCheckRecord.check_user_name; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3151511+08:00", comments="Source field: public.files_apply_check_record.check_org_id") + public static final SqlColumn check_org_id = filesApplyCheckRecord.check_org_id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3151511+08:00", comments="Source field: public.files_apply_check_record.check_org_name") + public static final SqlColumn check_org_name = filesApplyCheckRecord.check_org_name; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3151511+08:00", comments="Source field: public.files_apply_check_record.next_check_org_id") + public static final SqlColumn next_check_org_id = filesApplyCheckRecord.next_check_org_id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3151511+08:00", comments="Source field: public.files_apply_check_record.next_check_org_name") + public static final SqlColumn next_check_org_name = filesApplyCheckRecord.next_check_org_name; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3151511+08:00", comments="Source field: public.files_apply_check_record.check_describe") + public static final SqlColumn check_describe = filesApplyCheckRecord.check_describe; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3151511+08:00", comments="Source field: public.files_apply_check_record.check_status") + public static final SqlColumn check_status = filesApplyCheckRecord.check_status; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3151511+08:00", comments="Source field: public.files_apply_check_record.check_time") + public static final SqlColumn check_time = filesApplyCheckRecord.check_time; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3151511+08:00", comments="Source field: public.files_apply_check_record.provider_next_check_role_sign_id") + public static final SqlColumn provider_next_check_role_sign_id = filesApplyCheckRecord.provider_next_check_role_sign_id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3161488+08:00", comments="Source field: public.files_apply_check_record.provider_next_check_role_sign_name") + public static final SqlColumn provider_next_check_role_sign_name = filesApplyCheckRecord.provider_next_check_role_sign_name; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3161488+08:00", comments="Source field: public.files_apply_check_record.sign") + public static final SqlColumn sign = filesApplyCheckRecord.sign; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3151511+08:00", comments="Source Table: public.files_apply_check_record") + public static final class FilesApplyCheckRecord extends AliasableSqlTable { + public final SqlColumn id = column("id", JDBCType.VARCHAR); + + public final SqlColumn files_apply_id = column("files_apply_id", JDBCType.VARCHAR); + + public final SqlColumn is_apply_provider = column("is_apply_provider", JDBCType.INTEGER); + + public final SqlColumn check_user_id = column("check_user_id", JDBCType.VARCHAR); + + public final SqlColumn check_user_name = column("check_user_name", JDBCType.VARCHAR); + + public final SqlColumn check_org_id = column("check_org_id", JDBCType.VARCHAR); + + public final SqlColumn check_org_name = column("check_org_name", JDBCType.VARCHAR); + + public final SqlColumn next_check_org_id = column("next_check_org_id", JDBCType.VARCHAR); + + public final SqlColumn next_check_org_name = column("next_check_org_name", JDBCType.VARCHAR); + + public final SqlColumn check_describe = column("check_describe", JDBCType.VARCHAR); + + public final SqlColumn check_status = column("check_status", JDBCType.INTEGER); + + public final SqlColumn check_time = column("check_time", JDBCType.TIMESTAMP); + + public final SqlColumn provider_next_check_role_sign_id = column("provider_next_check_role_sign_id", JDBCType.VARCHAR); + + public final SqlColumn provider_next_check_role_sign_name = column("provider_next_check_role_sign_name", JDBCType.VARCHAR); + + public final SqlColumn sign = column("sign", JDBCType.VARCHAR); + + public FilesApplyCheckRecord() { + super("files_apply_check_record", FilesApplyCheckRecord::new); + } + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/dao/support/FilesApplyDirectoryDocsDynamicSqlSupport.java b/src/main/java/jj/tech/paolu/repository/mybatis/dao/support/FilesApplyDirectoryDocsDynamicSqlSupport.java new file mode 100644 index 0000000..d72f1c4 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/dao/support/FilesApplyDirectoryDocsDynamicSqlSupport.java @@ -0,0 +1,133 @@ +package jj.tech.paolu.repository.mybatis.dao.support; + +import jakarta.annotation.Generated; +import java.sql.JDBCType; +import org.mybatis.dynamic.sql.AliasableSqlTable; +import org.mybatis.dynamic.sql.SqlColumn; + +public final class FilesApplyDirectoryDocsDynamicSqlSupport { + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2212442+08:00", comments="Source Table: public.files_apply_directory_docs") + public static final FilesApplyDirectoryDocs filesApplyDirectoryDocs = new FilesApplyDirectoryDocs(); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2222146+08:00", comments="Source field: public.files_apply_directory_docs.id") + public static final SqlColumn id = filesApplyDirectoryDocs.id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2232077+08:00", comments="Source field: public.files_apply_directory_docs.files_apply_id") + public static final SqlColumn files_apply_id = filesApplyDirectoryDocs.files_apply_id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2232077+08:00", comments="Source field: public.files_apply_directory_docs.directory_file_id") + public static final SqlColumn directory_file_id = filesApplyDirectoryDocs.directory_file_id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2232077+08:00", comments="Source field: public.files_apply_directory_docs.directory_file_p_id") + public static final SqlColumn directory_file_p_id = filesApplyDirectoryDocs.directory_file_p_id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2232077+08:00", comments="Source field: public.files_apply_directory_docs.filesuper") + public static final SqlColumn filesuper = filesApplyDirectoryDocs.filesuper; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2232077+08:00", comments="Source field: public.files_apply_directory_docs.filecount") + public static final SqlColumn filecount = filesApplyDirectoryDocs.filecount; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2232077+08:00", comments="Source field: public.files_apply_directory_docs.dutyperson") + public static final SqlColumn dutyperson = filesApplyDirectoryDocs.dutyperson; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2232077+08:00", comments="Source field: public.files_apply_directory_docs.eweavedate") + public static final SqlColumn eweavedate = filesApplyDirectoryDocs.eweavedate; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2232077+08:00", comments="Source field: public.files_apply_directory_docs.filepage") + public static final SqlColumn filepage = filesApplyDirectoryDocs.filepage; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2232077+08:00", comments="Source field: public.files_apply_directory_docs.sortorder") + public static final SqlColumn sortorder = filesApplyDirectoryDocs.sortorder; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2232077+08:00", comments="Source field: public.files_apply_directory_docs.bpeg") + public static final SqlColumn bpeg = filesApplyDirectoryDocs.bpeg; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2232077+08:00", comments="Source field: public.files_apply_directory_docs.epeg") + public static final SqlColumn epeg = filesApplyDirectoryDocs.epeg; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2242118+08:00", comments="Source field: public.files_apply_directory_docs.filenum") + public static final SqlColumn filenum = filesApplyDirectoryDocs.filenum; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2242118+08:00", comments="Source field: public.files_apply_directory_docs.remark") + public static final SqlColumn remark = filesApplyDirectoryDocs.remark; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2242118+08:00", comments="Source field: public.files_apply_directory_docs.recordnum") + public static final SqlColumn recordnum = filesApplyDirectoryDocs.recordnum; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2242118+08:00", comments="Source field: public.files_apply_directory_docs.piecenumber") + public static final SqlColumn piecenumber = filesApplyDirectoryDocs.piecenumber; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2242118+08:00", comments="Source field: public.files_apply_directory_docs.adddate") + public static final SqlColumn adddate = filesApplyDirectoryDocs.adddate; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2242118+08:00", comments="Source field: public.files_apply_directory_docs.editdate") + public static final SqlColumn editdate = filesApplyDirectoryDocs.editdate; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2242118+08:00", comments="Source field: public.files_apply_directory_docs.time_stamp") + public static final SqlColumn time_stamp = filesApplyDirectoryDocs.time_stamp; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2242118+08:00", comments="Source field: public.files_apply_directory_docs.isdel") + public static final SqlColumn isdel = filesApplyDirectoryDocs.isdel; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2242118+08:00", comments="Source field: public.files_apply_directory_docs.catalogpdfurl") + public static final SqlColumn catalogpdfurl = filesApplyDirectoryDocs.catalogpdfurl; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2242118+08:00", comments="Source field: public.files_apply_directory_docs.signtag") + public static final SqlColumn signtag = filesApplyDirectoryDocs.signtag; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2242118+08:00", comments="Source field: public.files_apply_directory_docs.collecttag") + public static final SqlColumn collecttag = filesApplyDirectoryDocs.collecttag; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2222146+08:00", comments="Source Table: public.files_apply_directory_docs") + public static final class FilesApplyDirectoryDocs extends AliasableSqlTable { + public final SqlColumn id = column("id", JDBCType.VARCHAR); + + public final SqlColumn files_apply_id = column("files_apply_id", JDBCType.VARCHAR); + + public final SqlColumn directory_file_id = column("directory_file_id", JDBCType.VARCHAR); + + public final SqlColumn directory_file_p_id = column("directory_file_p_id", JDBCType.VARCHAR); + + public final SqlColumn filesuper = column("filesuper", JDBCType.VARCHAR); + + public final SqlColumn filecount = column("filecount", JDBCType.INTEGER); + + public final SqlColumn dutyperson = column("dutyperson", JDBCType.VARCHAR); + + public final SqlColumn eweavedate = column("eweavedate", JDBCType.VARCHAR); + + public final SqlColumn filepage = column("filepage", JDBCType.INTEGER); + + public final SqlColumn sortorder = column("sortorder", JDBCType.VARCHAR); + + public final SqlColumn bpeg = column("bpeg", JDBCType.VARCHAR); + + public final SqlColumn epeg = column("epeg", JDBCType.VARCHAR); + + public final SqlColumn filenum = column("filenum", JDBCType.VARCHAR); + + public final SqlColumn remark = column("remark", JDBCType.VARCHAR); + + public final SqlColumn recordnum = column("recordnum", JDBCType.VARCHAR); + + public final SqlColumn piecenumber = column("piecenumber", JDBCType.VARCHAR); + + public final SqlColumn adddate = column("adddate", JDBCType.VARCHAR); + + public final SqlColumn editdate = column("editdate", JDBCType.VARCHAR); + + public final SqlColumn time_stamp = column("time_stamp", JDBCType.VARCHAR); + + public final SqlColumn isdel = column("isdel", JDBCType.INTEGER); + + public final SqlColumn catalogpdfurl = column("catalogpdfurl", JDBCType.VARCHAR); + + public final SqlColumn signtag = column("signtag", JDBCType.VARCHAR); + + public final SqlColumn collecttag = column("collecttag", JDBCType.VARCHAR); + + public FilesApplyDirectoryDocs() { + super("files_apply_directory_docs", FilesApplyDirectoryDocs::new); + } + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/dao/support/FilesApplyDocsDynamicSqlSupport.java b/src/main/java/jj/tech/paolu/repository/mybatis/dao/support/FilesApplyDocsDynamicSqlSupport.java new file mode 100644 index 0000000..e35737c --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/dao/support/FilesApplyDocsDynamicSqlSupport.java @@ -0,0 +1,123 @@ +package jj.tech.paolu.repository.mybatis.dao.support; + +import jakarta.annotation.Generated; +import java.sql.JDBCType; +import org.mybatis.dynamic.sql.AliasableSqlTable; +import org.mybatis.dynamic.sql.SqlColumn; + +public final class FilesApplyDocsDynamicSqlSupport { + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.268147+08:00", comments="Source Table: public.files_apply_docs") + public static final FilesApplyDocs filesApplyDocs = new FilesApplyDocs(); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.268147+08:00", comments="Source field: public.files_apply_docs.id") + public static final SqlColumn id = filesApplyDocs.id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.268147+08:00", comments="Source field: public.files_apply_docs.files_apply_id") + public static final SqlColumn files_apply_id = filesApplyDocs.files_apply_id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.268147+08:00", comments="Source field: public.files_apply_docs.syn_file_id") + public static final SqlColumn syn_file_id = filesApplyDocs.syn_file_id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.268147+08:00", comments="Source field: public.files_apply_docs.syn_file_p_id") + public static final SqlColumn syn_file_p_id = filesApplyDocs.syn_file_p_id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.268147+08:00", comments="Source field: public.files_apply_docs.tablenumber") + public static final SqlColumn tablenumber = filesApplyDocs.tablenumber; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.268147+08:00", comments="Source field: public.files_apply_docs.annexname") + public static final SqlColumn annexname = filesApplyDocs.annexname; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.268147+08:00", comments="Source field: public.files_apply_docs.projectname") + public static final SqlColumn projectname = filesApplyDocs.projectname; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.268147+08:00", comments="Source field: public.files_apply_docs.eweavedate") + public static final SqlColumn eweavedate = filesApplyDocs.eweavedate; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.268147+08:00", comments="Source field: public.files_apply_docs.checkdate") + public static final SqlColumn checkdate = filesApplyDocs.checkdate; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.268147+08:00", comments="Source field: public.files_apply_docs.annexpage") + public static final SqlColumn annexpage = filesApplyDocs.annexpage; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.268147+08:00", comments="Source field: public.files_apply_docs.sortorder") + public static final SqlColumn sortorder = filesApplyDocs.sortorder; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.268147+08:00", comments="Source field: public.files_apply_docs.filefrom") + public static final SqlColumn filefrom = filesApplyDocs.filefrom; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.268147+08:00", comments="Source field: public.files_apply_docs.archivestag") + public static final SqlColumn archivestag = filesApplyDocs.archivestag; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.268147+08:00", comments="Source field: public.files_apply_docs.adddate") + public static final SqlColumn adddate = filesApplyDocs.adddate; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.268147+08:00", comments="Source field: public.files_apply_docs.editdate") + public static final SqlColumn editdate = filesApplyDocs.editdate; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2691488+08:00", comments="Source field: public.files_apply_docs.time_stamp") + public static final SqlColumn time_stamp = filesApplyDocs.time_stamp; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2691488+08:00", comments="Source field: public.files_apply_docs.isdel") + public static final SqlColumn isdel = filesApplyDocs.isdel; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2691488+08:00", comments="Source field: public.files_apply_docs.downurl") + public static final SqlColumn downurl = filesApplyDocs.downurl; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2691488+08:00", comments="Source field: public.files_apply_docs.filesize") + public static final SqlColumn filesize = filesApplyDocs.filesize; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2691488+08:00", comments="Source field: public.files_apply_docs.apply_view_type_print") + public static final SqlColumn apply_view_type_print = filesApplyDocs.apply_view_type_print; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2691488+08:00", comments="Source field: public.files_apply_docs.apply_view_type_online") + public static final SqlColumn apply_view_type_online = filesApplyDocs.apply_view_type_online; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.268147+08:00", comments="Source Table: public.files_apply_docs") + public static final class FilesApplyDocs extends AliasableSqlTable { + public final SqlColumn id = column("id", JDBCType.VARCHAR); + + public final SqlColumn files_apply_id = column("files_apply_id", JDBCType.VARCHAR); + + public final SqlColumn syn_file_id = column("syn_file_id", JDBCType.VARCHAR); + + public final SqlColumn syn_file_p_id = column("syn_file_p_id", JDBCType.VARCHAR); + + public final SqlColumn tablenumber = column("tablenumber", JDBCType.VARCHAR); + + public final SqlColumn annexname = column("annexname", JDBCType.VARCHAR); + + public final SqlColumn projectname = column("projectname", JDBCType.VARCHAR); + + public final SqlColumn eweavedate = column("eweavedate", JDBCType.VARCHAR); + + public final SqlColumn checkdate = column("checkdate", JDBCType.VARCHAR); + + public final SqlColumn annexpage = column("annexpage", JDBCType.INTEGER); + + public final SqlColumn sortorder = column("sortorder", JDBCType.VARCHAR); + + public final SqlColumn filefrom = column("filefrom", JDBCType.VARCHAR); + + public final SqlColumn archivestag = column("archivestag", JDBCType.VARCHAR); + + public final SqlColumn adddate = column("adddate", JDBCType.VARCHAR); + + public final SqlColumn editdate = column("editdate", JDBCType.VARCHAR); + + public final SqlColumn time_stamp = column("time_stamp", JDBCType.VARCHAR); + + public final SqlColumn isdel = column("isdel", JDBCType.INTEGER); + + public final SqlColumn downurl = column("downurl", JDBCType.VARCHAR); + + public final SqlColumn filesize = column("filesize", JDBCType.INTEGER); + + public final SqlColumn apply_view_type_print = column("apply_view_type_print", JDBCType.INTEGER); + + public final SqlColumn apply_view_type_online = column("apply_view_type_online", JDBCType.INTEGER); + + public FilesApplyDocs() { + super("files_apply_docs", FilesApplyDocs::new); + } + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/dao/support/FilesApplyDownloadRecordDynamicSqlSupport.java b/src/main/java/jj/tech/paolu/repository/mybatis/dao/support/FilesApplyDownloadRecordDynamicSqlSupport.java new file mode 100644 index 0000000..4fafb49 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/dao/support/FilesApplyDownloadRecordDynamicSqlSupport.java @@ -0,0 +1,74 @@ +package jj.tech.paolu.repository.mybatis.dao.support; + +import jakarta.annotation.Generated; +import java.sql.JDBCType; +import java.time.LocalDateTime; +import org.mybatis.dynamic.sql.AliasableSqlTable; +import org.mybatis.dynamic.sql.SqlColumn; + +public final class FilesApplyDownloadRecordDynamicSqlSupport { + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2931502+08:00", comments="Source Table: public.files_apply_download_record") + public static final FilesApplyDownloadRecord filesApplyDownloadRecord = new FilesApplyDownloadRecord(); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2931502+08:00", comments="Source field: public.files_apply_download_record.id") + public static final SqlColumn id = filesApplyDownloadRecord.id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2931502+08:00", comments="Source field: public.files_apply_download_record.files_apply_id") + public static final SqlColumn files_apply_id = filesApplyDownloadRecord.files_apply_id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2931502+08:00", comments="Source field: public.files_apply_download_record.is_dir_file") + public static final SqlColumn is_dir_file = filesApplyDownloadRecord.is_dir_file; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2941514+08:00", comments="Source field: public.files_apply_download_record.syn_file_id") + public static final SqlColumn syn_file_id = filesApplyDownloadRecord.syn_file_id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2941514+08:00", comments="Source field: public.files_apply_download_record.syn_file_p_id") + public static final SqlColumn syn_file_p_id = filesApplyDownloadRecord.syn_file_p_id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2941514+08:00", comments="Source field: public.files_apply_download_record.syn_file_name") + public static final SqlColumn syn_file_name = filesApplyDownloadRecord.syn_file_name; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2941514+08:00", comments="Source field: public.files_apply_download_record.user_id") + public static final SqlColumn user_id = filesApplyDownloadRecord.user_id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2941514+08:00", comments="Source field: public.files_apply_download_record.user_name") + public static final SqlColumn user_name = filesApplyDownloadRecord.user_name; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2941514+08:00", comments="Source field: public.files_apply_download_record.org_id") + public static final SqlColumn org_id = filesApplyDownloadRecord.org_id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2941514+08:00", comments="Source field: public.files_apply_download_record.org_name") + public static final SqlColumn org_name = filesApplyDownloadRecord.org_name; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2941514+08:00", comments="Source field: public.files_apply_download_record.download_time") + public static final SqlColumn download_time = filesApplyDownloadRecord.download_time; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2931502+08:00", comments="Source Table: public.files_apply_download_record") + public static final class FilesApplyDownloadRecord extends AliasableSqlTable { + public final SqlColumn id = column("id", JDBCType.VARCHAR); + + public final SqlColumn files_apply_id = column("files_apply_id", JDBCType.VARCHAR); + + public final SqlColumn is_dir_file = column("is_dir_file", JDBCType.INTEGER); + + public final SqlColumn syn_file_id = column("syn_file_id", JDBCType.VARCHAR); + + public final SqlColumn syn_file_p_id = column("syn_file_p_id", JDBCType.VARCHAR); + + public final SqlColumn syn_file_name = column("syn_file_name", JDBCType.VARCHAR); + + public final SqlColumn user_id = column("user_id", JDBCType.VARCHAR); + + public final SqlColumn user_name = column("user_name", JDBCType.VARCHAR); + + public final SqlColumn org_id = column("org_id", JDBCType.VARCHAR); + + public final SqlColumn org_name = column("org_name", JDBCType.VARCHAR); + + public final SqlColumn download_time = column("download_time", JDBCType.TIMESTAMP); + + public FilesApplyDownloadRecord() { + super("files_apply_download_record", FilesApplyDownloadRecord::new); + } + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/dao/support/FilesApplyDynamicSqlSupport.java b/src/main/java/jj/tech/paolu/repository/mybatis/dao/support/FilesApplyDynamicSqlSupport.java new file mode 100644 index 0000000..ba8b606 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/dao/support/FilesApplyDynamicSqlSupport.java @@ -0,0 +1,258 @@ +package jj.tech.paolu.repository.mybatis.dao.support; + +import jakarta.annotation.Generated; +import java.sql.JDBCType; +import java.time.LocalDateTime; +import org.mybatis.dynamic.sql.AliasableSqlTable; +import org.mybatis.dynamic.sql.SqlColumn; + +public final class FilesApplyDynamicSqlSupport { + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.275148+08:00", comments="Source Table: public.files_apply") + public static final FilesApply filesApply = new FilesApply(); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.275148+08:00", comments="Source field: public.files_apply.id") + public static final SqlColumn id = filesApply.id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.275148+08:00", comments="Source field: public.files_apply.apply_user_id") + public static final SqlColumn apply_user_id = filesApply.apply_user_id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.275148+08:00", comments="Source field: public.files_apply.apply_user_name") + public static final SqlColumn apply_user_name = filesApply.apply_user_name; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.275148+08:00", comments="Source field: public.files_apply.apply_user_phone") + public static final SqlColumn apply_user_phone = filesApply.apply_user_phone; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.275148+08:00", comments="Source field: public.files_apply.apply_user_email") + public static final SqlColumn apply_user_email = filesApply.apply_user_email; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.275148+08:00", comments="Source field: public.files_apply.apply_org_id") + public static final SqlColumn apply_org_id = filesApply.apply_org_id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.275148+08:00", comments="Source field: public.files_apply.apply_org_name") + public static final SqlColumn apply_org_name = filesApply.apply_org_name; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.275148+08:00", comments="Source field: public.files_apply.apply_in_check_user_id") + public static final SqlColumn apply_in_check_user_id = filesApply.apply_in_check_user_id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.275148+08:00", comments="Source field: public.files_apply.apply_in_check_user_name") + public static final SqlColumn apply_in_check_user_name = filesApply.apply_in_check_user_name; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.275148+08:00", comments="Source field: public.files_apply.apply_in_check_org_id") + public static final SqlColumn apply_in_check_org_id = filesApply.apply_in_check_org_id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.275148+08:00", comments="Source field: public.files_apply.apply_in_check_org_name") + public static final SqlColumn apply_in_check_org_name = filesApply.apply_in_check_org_name; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.275148+08:00", comments="Source field: public.files_apply.apply_next_check_org_id") + public static final SqlColumn apply_next_check_org_id = filesApply.apply_next_check_org_id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.275148+08:00", comments="Source field: public.files_apply.apply_next_check_org_name") + public static final SqlColumn apply_next_check_org_name = filesApply.apply_next_check_org_name; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.275148+08:00", comments="Source field: public.files_apply.apply_end_check_user_id") + public static final SqlColumn apply_end_check_user_id = filesApply.apply_end_check_user_id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.275148+08:00", comments="Source field: public.files_apply.apply_end_check_user_name") + public static final SqlColumn apply_end_check_user_name = filesApply.apply_end_check_user_name; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2761467+08:00", comments="Source field: public.files_apply.apply_end_check_org_id") + public static final SqlColumn apply_end_check_org_id = filesApply.apply_end_check_org_id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2761467+08:00", comments="Source field: public.files_apply.apply_end_check_org_name") + public static final SqlColumn apply_end_check_org_name = filesApply.apply_end_check_org_name; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2761467+08:00", comments="Source field: public.files_apply.apply_days") + public static final SqlColumn apply_days = filesApply.apply_days; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2761467+08:00", comments="Source field: public.files_apply.apply_feedback") + public static final SqlColumn apply_feedback = filesApply.apply_feedback; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2761467+08:00", comments="Source field: public.files_apply.apply_reason") + public static final SqlColumn apply_reason = filesApply.apply_reason; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2761467+08:00", comments="Source field: public.files_apply.apply_cancel_reason") + public static final SqlColumn apply_cancel_reason = filesApply.apply_cancel_reason; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2761467+08:00", comments="Source field: public.files_apply.apply_view_type_print") + public static final SqlColumn apply_view_type_print = filesApply.apply_view_type_print; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2761467+08:00", comments="Source field: public.files_apply.apply_view_type_online") + public static final SqlColumn apply_view_type_online = filesApply.apply_view_type_online; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2761467+08:00", comments="Source field: public.files_apply.apply_file_num") + public static final SqlColumn apply_file_num = filesApply.apply_file_num; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2761467+08:00", comments="Source field: public.files_apply.apply_time") + public static final SqlColumn apply_time = filesApply.apply_time; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2761467+08:00", comments="Source field: public.files_apply.apply_check_is_finish") + public static final SqlColumn apply_check_is_finish = filesApply.apply_check_is_finish; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2761467+08:00", comments="Source field: public.files_apply.provider_org_id") + public static final SqlColumn provider_org_id = filesApply.provider_org_id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2761467+08:00", comments="Source field: public.files_apply.provider_org_name") + public static final SqlColumn provider_org_name = filesApply.provider_org_name; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2761467+08:00", comments="Source field: public.files_apply.provider_file_properties") + public static final SqlColumn provider_file_properties = filesApply.provider_file_properties; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2761467+08:00", comments="Source field: public.files_apply.provider_use_start_time") + public static final SqlColumn provider_use_start_time = filesApply.provider_use_start_time; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2761467+08:00", comments="Source field: public.files_apply.provider_use_end_time") + public static final SqlColumn provider_use_end_time = filesApply.provider_use_end_time; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2761467+08:00", comments="Source field: public.files_apply.provider_in_check_user_id") + public static final SqlColumn provider_in_check_user_id = filesApply.provider_in_check_user_id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2761467+08:00", comments="Source field: public.files_apply.provider_in_check_user_name") + public static final SqlColumn provider_in_check_user_name = filesApply.provider_in_check_user_name; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2761467+08:00", comments="Source field: public.files_apply.provider_in_check_org_id") + public static final SqlColumn provider_in_check_org_id = filesApply.provider_in_check_org_id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2761467+08:00", comments="Source field: public.files_apply.provider_in_check_org_name") + public static final SqlColumn provider_in_check_org_name = filesApply.provider_in_check_org_name; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2761467+08:00", comments="Source field: public.files_apply.provider_next_check_role_sign_id") + public static final SqlColumn provider_next_check_role_sign_id = filesApply.provider_next_check_role_sign_id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2761467+08:00", comments="Source field: public.files_apply.provider_next_check_role_sign_name") + public static final SqlColumn provider_next_check_role_sign_name = filesApply.provider_next_check_role_sign_name; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2761467+08:00", comments="Source field: public.files_apply.provider_end_check_user_id") + public static final SqlColumn provider_end_check_user_id = filesApply.provider_end_check_user_id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2761467+08:00", comments="Source field: public.files_apply.provider_end_check_user_name") + public static final SqlColumn provider_end_check_user_name = filesApply.provider_end_check_user_name; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2761467+08:00", comments="Source field: public.files_apply.provider_end_check_org_id") + public static final SqlColumn provider_end_check_org_id = filesApply.provider_end_check_org_id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2761467+08:00", comments="Source field: public.files_apply.provider_end_check_org_name") + public static final SqlColumn provider_end_check_org_name = filesApply.provider_end_check_org_name; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2761467+08:00", comments="Source field: public.files_apply.provider_check_is_finish") + public static final SqlColumn provider_check_is_finish = filesApply.provider_check_is_finish; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2761467+08:00", comments="Source field: public.files_apply.secret_key") + public static final SqlColumn secret_key = filesApply.secret_key; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2771463+08:00", comments="Source field: public.files_apply.status") + public static final SqlColumn status = filesApply.status; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2771463+08:00", comments="Source field: public.files_apply.project_id") + public static final SqlColumn project_id = filesApply.project_id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2771463+08:00", comments="Source field: public.files_apply.project_name") + public static final SqlColumn project_name = filesApply.project_name; + + /** + * Database Column Remarks: + * 签名 + */ + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2771463+08:00", comments="Source field: public.files_apply.sign") + public static final SqlColumn sign = filesApply.sign; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.275148+08:00", comments="Source Table: public.files_apply") + public static final class FilesApply extends AliasableSqlTable { + public final SqlColumn id = column("id", JDBCType.VARCHAR); + + public final SqlColumn apply_user_id = column("apply_user_id", JDBCType.VARCHAR); + + public final SqlColumn apply_user_name = column("apply_user_name", JDBCType.VARCHAR); + + public final SqlColumn apply_user_phone = column("apply_user_phone", JDBCType.VARCHAR); + + public final SqlColumn apply_user_email = column("apply_user_email", JDBCType.VARCHAR); + + public final SqlColumn apply_org_id = column("apply_org_id", JDBCType.VARCHAR); + + public final SqlColumn apply_org_name = column("apply_org_name", JDBCType.VARCHAR); + + public final SqlColumn apply_in_check_user_id = column("apply_in_check_user_id", JDBCType.VARCHAR); + + public final SqlColumn apply_in_check_user_name = column("apply_in_check_user_name", JDBCType.VARCHAR); + + public final SqlColumn apply_in_check_org_id = column("apply_in_check_org_id", JDBCType.VARCHAR); + + public final SqlColumn apply_in_check_org_name = column("apply_in_check_org_name", JDBCType.VARCHAR); + + public final SqlColumn apply_next_check_org_id = column("apply_next_check_org_id", JDBCType.VARCHAR); + + public final SqlColumn apply_next_check_org_name = column("apply_next_check_org_name", JDBCType.VARCHAR); + + public final SqlColumn apply_end_check_user_id = column("apply_end_check_user_id", JDBCType.VARCHAR); + + public final SqlColumn apply_end_check_user_name = column("apply_end_check_user_name", JDBCType.VARCHAR); + + public final SqlColumn apply_end_check_org_id = column("apply_end_check_org_id", JDBCType.VARCHAR); + + public final SqlColumn apply_end_check_org_name = column("apply_end_check_org_name", JDBCType.VARCHAR); + + public final SqlColumn apply_days = column("apply_days", JDBCType.INTEGER); + + public final SqlColumn apply_feedback = column("apply_feedback", JDBCType.VARCHAR); + + public final SqlColumn apply_reason = column("apply_reason", JDBCType.VARCHAR); + + public final SqlColumn apply_cancel_reason = column("apply_cancel_reason", JDBCType.VARCHAR); + + public final SqlColumn apply_view_type_print = column("apply_view_type_print", JDBCType.INTEGER); + + public final SqlColumn apply_view_type_online = column("apply_view_type_online", JDBCType.INTEGER); + + public final SqlColumn apply_file_num = column("apply_file_num", JDBCType.INTEGER); + + public final SqlColumn apply_time = column("apply_time", JDBCType.TIMESTAMP); + + public final SqlColumn apply_check_is_finish = column("apply_check_is_finish", JDBCType.INTEGER); + + public final SqlColumn provider_org_id = column("provider_org_id", JDBCType.VARCHAR); + + public final SqlColumn provider_org_name = column("provider_org_name", JDBCType.VARCHAR); + + public final SqlColumn provider_file_properties = column("provider_file_properties", JDBCType.INTEGER); + + public final SqlColumn provider_use_start_time = column("provider_use_start_time", JDBCType.TIMESTAMP); + + public final SqlColumn provider_use_end_time = column("provider_use_end_time", JDBCType.TIMESTAMP); + + public final SqlColumn provider_in_check_user_id = column("provider_in_check_user_id", JDBCType.VARCHAR); + + public final SqlColumn provider_in_check_user_name = column("provider_in_check_user_name", JDBCType.VARCHAR); + + public final SqlColumn provider_in_check_org_id = column("provider_in_check_org_id", JDBCType.VARCHAR); + + public final SqlColumn provider_in_check_org_name = column("provider_in_check_org_name", JDBCType.VARCHAR); + + public final SqlColumn provider_next_check_role_sign_id = column("provider_next_check_role_sign_id", JDBCType.VARCHAR); + + public final SqlColumn provider_next_check_role_sign_name = column("provider_next_check_role_sign_name", JDBCType.VARCHAR); + + public final SqlColumn provider_end_check_user_id = column("provider_end_check_user_id", JDBCType.VARCHAR); + + public final SqlColumn provider_end_check_user_name = column("provider_end_check_user_name", JDBCType.VARCHAR); + + public final SqlColumn provider_end_check_org_id = column("provider_end_check_org_id", JDBCType.VARCHAR); + + public final SqlColumn provider_end_check_org_name = column("provider_end_check_org_name", JDBCType.VARCHAR); + + public final SqlColumn provider_check_is_finish = column("provider_check_is_finish", JDBCType.INTEGER); + + public final SqlColumn secret_key = column("secret_key", JDBCType.VARCHAR); + + public final SqlColumn status = column("status", JDBCType.INTEGER); + + public final SqlColumn project_id = column("project_id", JDBCType.VARCHAR); + + public final SqlColumn project_name = column("project_name", JDBCType.VARCHAR); + + public final SqlColumn sign = column("sign", JDBCType.VARCHAR); + + public FilesApply() { + super("files_apply", FilesApply::new); + } + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/dao/support/PreShareDirectoryFileTagDynamicSqlSupport.java b/src/main/java/jj/tech/paolu/repository/mybatis/dao/support/PreShareDirectoryFileTagDynamicSqlSupport.java new file mode 100644 index 0000000..32b8fbc --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/dao/support/PreShareDirectoryFileTagDynamicSqlSupport.java @@ -0,0 +1,39 @@ +package jj.tech.paolu.repository.mybatis.dao.support; + +import jakarta.annotation.Generated; +import java.sql.JDBCType; +import java.time.LocalDateTime; +import org.mybatis.dynamic.sql.AliasableSqlTable; +import org.mybatis.dynamic.sql.SqlColumn; + +public final class PreShareDirectoryFileTagDynamicSqlSupport { + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-08T11:33:24.1676417+08:00", comments="Source Table: public.pre_share_directory_file_tag") + public static final PreShareDirectoryFileTag preShareDirectoryFileTag = new PreShareDirectoryFileTag(); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-08T11:33:24.1689861+08:00", comments="Source field: public.pre_share_directory_file_tag.id") + public static final SqlColumn id = preShareDirectoryFileTag.id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-08T11:33:24.1689861+08:00", comments="Source field: public.pre_share_directory_file_tag.share_status") + public static final SqlColumn share_status = preShareDirectoryFileTag.share_status; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-08T11:33:24.1689861+08:00", comments="Source field: public.pre_share_directory_file_tag.update_time") + public static final SqlColumn update_time = preShareDirectoryFileTag.update_time; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-08T11:33:24.1689861+08:00", comments="Source field: public.pre_share_directory_file_tag.sync_bc_time") + public static final SqlColumn sync_bc_time = preShareDirectoryFileTag.sync_bc_time; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-08T11:33:24.1676417+08:00", comments="Source Table: public.pre_share_directory_file_tag") + public static final class PreShareDirectoryFileTag extends AliasableSqlTable { + public final SqlColumn id = column("id", JDBCType.VARCHAR); + + public final SqlColumn share_status = column("share_status", JDBCType.INTEGER); + + public final SqlColumn update_time = column("update_time", JDBCType.TIMESTAMP); + + public final SqlColumn sync_bc_time = column("sync_bc_time", JDBCType.TIMESTAMP); + + public PreShareDirectoryFileTag() { + super("pre_share_directory_file_tag", PreShareDirectoryFileTag::new); + } + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/dao/support/PreShareDirectoryTagDynamicSqlSupport.java b/src/main/java/jj/tech/paolu/repository/mybatis/dao/support/PreShareDirectoryTagDynamicSqlSupport.java new file mode 100644 index 0000000..338211c --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/dao/support/PreShareDirectoryTagDynamicSqlSupport.java @@ -0,0 +1,39 @@ +package jj.tech.paolu.repository.mybatis.dao.support; + +import jakarta.annotation.Generated; +import java.sql.JDBCType; +import java.time.LocalDateTime; +import org.mybatis.dynamic.sql.AliasableSqlTable; +import org.mybatis.dynamic.sql.SqlColumn; + +public final class PreShareDirectoryTagDynamicSqlSupport { + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-08T11:33:24.1431822+08:00", comments="Source Table: public.pre_share_directory_tag") + public static final PreShareDirectoryTag preShareDirectoryTag = new PreShareDirectoryTag(); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-08T11:33:24.1455599+08:00", comments="Source field: public.pre_share_directory_tag.id") + public static final SqlColumn id = preShareDirectoryTag.id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-08T11:33:24.1455599+08:00", comments="Source field: public.pre_share_directory_tag.share_status") + public static final SqlColumn share_status = preShareDirectoryTag.share_status; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-08T11:33:24.1455599+08:00", comments="Source field: public.pre_share_directory_tag.update_time") + public static final SqlColumn update_time = preShareDirectoryTag.update_time; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-08T11:33:24.1455599+08:00", comments="Source field: public.pre_share_directory_tag.sync_bc_time") + public static final SqlColumn sync_bc_time = preShareDirectoryTag.sync_bc_time; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-08T11:33:24.1445575+08:00", comments="Source Table: public.pre_share_directory_tag") + public static final class PreShareDirectoryTag extends AliasableSqlTable { + public final SqlColumn id = column("id", JDBCType.VARCHAR); + + public final SqlColumn share_status = column("share_status", JDBCType.INTEGER); + + public final SqlColumn update_time = column("update_time", JDBCType.TIMESTAMP); + + public final SqlColumn sync_bc_time = column("sync_bc_time", JDBCType.TIMESTAMP); + + public PreShareDirectoryTag() { + super("pre_share_directory_tag", PreShareDirectoryTag::new); + } + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/dao/support/PreShareFileTagDynamicSqlSupport.java b/src/main/java/jj/tech/paolu/repository/mybatis/dao/support/PreShareFileTagDynamicSqlSupport.java new file mode 100644 index 0000000..050888f --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/dao/support/PreShareFileTagDynamicSqlSupport.java @@ -0,0 +1,39 @@ +package jj.tech.paolu.repository.mybatis.dao.support; + +import jakarta.annotation.Generated; +import java.sql.JDBCType; +import java.time.LocalDateTime; +import org.mybatis.dynamic.sql.AliasableSqlTable; +import org.mybatis.dynamic.sql.SqlColumn; + +public final class PreShareFileTagDynamicSqlSupport { + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-08T11:33:24.1702515+08:00", comments="Source Table: public.pre_share_file_tag") + public static final PreShareFileTag preShareFileTag = new PreShareFileTag(); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-08T11:33:24.1702515+08:00", comments="Source field: public.pre_share_file_tag.id") + public static final SqlColumn id = preShareFileTag.id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-08T11:33:24.1702515+08:00", comments="Source field: public.pre_share_file_tag.share_status") + public static final SqlColumn share_status = preShareFileTag.share_status; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-08T11:33:24.1702515+08:00", comments="Source field: public.pre_share_file_tag.update_time") + public static final SqlColumn update_time = preShareFileTag.update_time; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-08T11:33:24.1702515+08:00", comments="Source field: public.pre_share_file_tag.sync_bc_time") + public static final SqlColumn sync_bc_time = preShareFileTag.sync_bc_time; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-08T11:33:24.1702515+08:00", comments="Source Table: public.pre_share_file_tag") + public static final class PreShareFileTag extends AliasableSqlTable { + public final SqlColumn id = column("id", JDBCType.VARCHAR); + + public final SqlColumn share_status = column("share_status", JDBCType.INTEGER); + + public final SqlColumn update_time = column("update_time", JDBCType.TIMESTAMP); + + public final SqlColumn sync_bc_time = column("sync_bc_time", JDBCType.TIMESTAMP); + + public PreShareFileTag() { + super("pre_share_file_tag", PreShareFileTag::new); + } + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/dao/support/ProjectDynamicSqlSupport.java b/src/main/java/jj/tech/paolu/repository/mybatis/dao/support/ProjectDynamicSqlSupport.java new file mode 100644 index 0000000..0da96e8 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/dao/support/ProjectDynamicSqlSupport.java @@ -0,0 +1,38 @@ +package jj.tech.paolu.repository.mybatis.dao.support; + +import jakarta.annotation.Generated; +import java.sql.JDBCType; +import org.mybatis.dynamic.sql.AliasableSqlTable; +import org.mybatis.dynamic.sql.SqlColumn; + +public final class ProjectDynamicSqlSupport { + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2801782+08:00", comments="Source Table: public.project") + public static final Project project = new Project(); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2801782+08:00", comments="Source field: public.project.id") + public static final SqlColumn id = project.id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2801782+08:00", comments="Source field: public.project.project_name") + public static final SqlColumn project_name = project.project_name; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2801782+08:00", comments="Source field: public.project.org_id") + public static final SqlColumn org_id = project.org_id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2801782+08:00", comments="Source field: public.project.org_name") + public static final SqlColumn org_name = project.org_name; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2801782+08:00", comments="Source Table: public.project") + public static final class Project extends AliasableSqlTable { + public final SqlColumn id = column("id", JDBCType.VARCHAR); + + public final SqlColumn project_name = column("project_name", JDBCType.VARCHAR); + + public final SqlColumn org_id = column("org_id", JDBCType.VARCHAR); + + public final SqlColumn org_name = column("org_name", JDBCType.VARCHAR); + + public Project() { + super("project", Project::new); + } + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/dao/support/ProviderDynamicSqlSupport.java b/src/main/java/jj/tech/paolu/repository/mybatis/dao/support/ProviderDynamicSqlSupport.java new file mode 100644 index 0000000..08db047 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/dao/support/ProviderDynamicSqlSupport.java @@ -0,0 +1,54 @@ +package jj.tech.paolu.repository.mybatis.dao.support; + +import jakarta.annotation.Generated; +import java.sql.JDBCType; +import java.time.LocalDateTime; +import org.mybatis.dynamic.sql.AliasableSqlTable; +import org.mybatis.dynamic.sql.SqlColumn; + +public final class ProviderDynamicSqlSupport { + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T13:50:09.0828768+08:00", comments="Source Table: public.provider") + public static final Provider provider = new Provider(); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T13:50:09.0840377+08:00", comments="Source field: public.provider.id") + public static final SqlColumn id = provider.id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T13:50:09.0840377+08:00", comments="Source field: public.provider.name") + public static final SqlColumn name = provider.name; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T13:50:09.085147+08:00", comments="Source field: public.provider.create_time") + public static final SqlColumn create_time = provider.create_time; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T13:50:09.085147+08:00", comments="Source field: public.provider.update_time") + public static final SqlColumn update_time = provider.update_time; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T13:50:09.085147+08:00", comments="Source field: public.provider.last_update_data_time") + public static final SqlColumn last_update_data_time = provider.last_update_data_time; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T13:50:09.085147+08:00", comments="Source field: public.provider.last_query_data_time") + public static final SqlColumn last_query_data_time = provider.last_query_data_time; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T13:50:09.085147+08:00", comments="Source field: public.provider.status") + public static final SqlColumn status = provider.status; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T13:50:09.0840377+08:00", comments="Source Table: public.provider") + public static final class Provider extends AliasableSqlTable { + public final SqlColumn id = column("id", JDBCType.VARCHAR); + + public final SqlColumn name = column("name", JDBCType.VARCHAR); + + public final SqlColumn create_time = column("create_time", JDBCType.TIMESTAMP); + + public final SqlColumn update_time = column("update_time", JDBCType.TIMESTAMP); + + public final SqlColumn last_update_data_time = column("last_update_data_time", JDBCType.TIMESTAMP); + + public final SqlColumn last_query_data_time = column("last_query_data_time", JDBCType.TIMESTAMP); + + public final SqlColumn status = column("status", JDBCType.VARCHAR); + + public Provider() { + super("provider", Provider::new); + } + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/dao/support/ReadLogDynamicSqlSupport.java b/src/main/java/jj/tech/paolu/repository/mybatis/dao/support/ReadLogDynamicSqlSupport.java new file mode 100644 index 0000000..96419ba --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/dao/support/ReadLogDynamicSqlSupport.java @@ -0,0 +1,132 @@ +package jj.tech.paolu.repository.mybatis.dao.support; + +import jakarta.annotation.Generated; +import java.sql.JDBCType; +import java.time.LocalDateTime; +import org.mybatis.dynamic.sql.AliasableSqlTable; +import org.mybatis.dynamic.sql.SqlColumn; + +public final class ReadLogDynamicSqlSupport { + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2641476+08:00", comments="Source Table: public.read_log") + public static final ReadLog readLog = new ReadLog(); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2641476+08:00", comments="Source field: public.read_log.id") + public static final SqlColumn id = readLog.id; + + /** + * Database Column Remarks: + * 申请人id + */ + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2641476+08:00", comments="Source field: public.read_log.weid") + public static final SqlColumn weid = readLog.weid; + + /** + * Database Column Remarks: + * 档案id + */ + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2641476+08:00", comments="Source field: public.read_log.content_id") + public static final SqlColumn content_id = readLog.content_id; + + /** + * Database Column Remarks: + * 开始时间 + */ + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2641476+08:00", comments="Source field: public.read_log.starttime") + public static final SqlColumn starttime = readLog.starttime; + + /** + * Database Column Remarks: + * 结束时间 + */ + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2641476+08:00", comments="Source field: public.read_log.endtime") + public static final SqlColumn endtime = readLog.endtime; + + /** + * Database Column Remarks: + * ip地址 + */ + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2651454+08:00", comments="Source field: public.read_log.ip") + public static final SqlColumn ip = readLog.ip; + + /** + * Database Column Remarks: + * 区域 + */ + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2651454+08:00", comments="Source field: public.read_log.location") + public static final SqlColumn location = readLog.location; + + /** + * Database Column Remarks: + * 下载类型(1文件包/0单文件) + */ + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2651454+08:00", comments="Source field: public.read_log.downloadtype") + public static final SqlColumn downloadtype = readLog.downloadtype; + + /** + * Database Column Remarks: + * 数字签名 + */ + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2651454+08:00", comments="Source field: public.read_log.sign") + public static final SqlColumn sign = readLog.sign; + + /** + * Database Column Remarks: + * 一次阅读凭证id + */ + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2651454+08:00", comments="Source field: public.read_log.readid") + public static final SqlColumn readid = readLog.readid; + + /** + * Database Column Remarks: + * 秘钥id + */ + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2651454+08:00", comments="Source field: public.read_log.sm9hibeid") + public static final SqlColumn sm9hibeid = readLog.sm9hibeid; + + /** + * Database Column Remarks: + * 档案类型 + */ + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2651454+08:00", comments="Source field: public.read_log.content_type") + public static final SqlColumn content_type = readLog.content_type; + + /** + * Database Column Remarks: + * 是否上链(1是,0否) + */ + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2651454+08:00", comments="Source field: public.read_log.ischeck") + public static final SqlColumn ischeck = readLog.ischeck; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2641476+08:00", comments="Source Table: public.read_log") + public static final class ReadLog extends AliasableSqlTable { + public final SqlColumn id = column("id", JDBCType.VARCHAR); + + public final SqlColumn weid = column("weid", JDBCType.VARCHAR); + + public final SqlColumn content_id = column("content_id", JDBCType.VARCHAR); + + public final SqlColumn starttime = column("starttime", JDBCType.TIMESTAMP); + + public final SqlColumn endtime = column("endtime", JDBCType.TIMESTAMP); + + public final SqlColumn ip = column("ip", JDBCType.VARCHAR); + + public final SqlColumn location = column("location", JDBCType.VARCHAR); + + public final SqlColumn downloadtype = column("downloadtype", JDBCType.INTEGER); + + public final SqlColumn sign = column("sign", JDBCType.VARCHAR); + + public final SqlColumn readid = column("readid", JDBCType.VARCHAR); + + public final SqlColumn sm9hibeid = column("sm9hibeid", JDBCType.VARCHAR); + + public final SqlColumn content_type = column("content_type", JDBCType.INTEGER); + + public final SqlColumn ischeck = column("ischeck", JDBCType.INTEGER); + + public ReadLog() { + super("read_log", ReadLog::new); + } + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/dao/support/ShareConfigDetailDynamicSqlSupport.java b/src/main/java/jj/tech/paolu/repository/mybatis/dao/support/ShareConfigDetailDynamicSqlSupport.java new file mode 100644 index 0000000..484c39b --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/dao/support/ShareConfigDetailDynamicSqlSupport.java @@ -0,0 +1,49 @@ +package jj.tech.paolu.repository.mybatis.dao.support; + +import jakarta.annotation.Generated; +import java.sql.JDBCType; +import java.time.LocalDateTime; +import org.mybatis.dynamic.sql.AliasableSqlTable; +import org.mybatis.dynamic.sql.SqlColumn; + +public final class ShareConfigDetailDynamicSqlSupport { + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T16:54:45.1830956+08:00", comments="Source Table: public.share_config_detail") + public static final ShareConfigDetail shareConfigDetail = new ShareConfigDetail(); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T16:54:45.1840952+08:00", comments="Source field: public.share_config_detail.node_id") + public static final SqlColumn node_id = shareConfigDetail.node_id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T16:54:45.1840952+08:00", comments="Source field: public.share_config_detail.node_type") + public static final SqlColumn node_type = shareConfigDetail.node_type; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T16:54:45.1840952+08:00", comments="Source field: public.share_config_detail.share_config_statu") + public static final SqlColumn share_config_statu = shareConfigDetail.share_config_statu; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T16:54:45.1850956+08:00", comments="Source field: public.share_config_detail.create_time") + public static final SqlColumn create_time = shareConfigDetail.create_time; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T16:54:45.1850956+08:00", comments="Source field: public.share_config_detail.update_time") + public static final SqlColumn update_time = shareConfigDetail.update_time; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T16:54:45.1850956+08:00", comments="Source field: public.share_config_detail.update_count") + public static final SqlColumn update_count = shareConfigDetail.update_count; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T16:54:45.1840952+08:00", comments="Source Table: public.share_config_detail") + public static final class ShareConfigDetail extends AliasableSqlTable { + public final SqlColumn node_id = column("node_id", JDBCType.VARCHAR); + + public final SqlColumn node_type = column("node_type", JDBCType.INTEGER); + + public final SqlColumn share_config_statu = column("share_config_statu", JDBCType.INTEGER); + + public final SqlColumn create_time = column("create_time", JDBCType.TIMESTAMP); + + public final SqlColumn update_time = column("update_time", JDBCType.TIMESTAMP); + + public final SqlColumn update_count = column("update_count", JDBCType.INTEGER); + + public ShareConfigDetail() { + super("share_config_detail", ShareConfigDetail::new); + } + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/dao/support/ShareDirectoryDynamicSqlSupport.java b/src/main/java/jj/tech/paolu/repository/mybatis/dao/support/ShareDirectoryDynamicSqlSupport.java new file mode 100644 index 0000000..d79c9e5 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/dao/support/ShareDirectoryDynamicSqlSupport.java @@ -0,0 +1,63 @@ +package jj.tech.paolu.repository.mybatis.dao.support; + +import jakarta.annotation.Generated; +import java.sql.JDBCType; +import org.mybatis.dynamic.sql.AliasableSqlTable; +import org.mybatis.dynamic.sql.SqlColumn; + +public final class ShareDirectoryDynamicSqlSupport { + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:43:40.6619839+08:00", comments="Source Table: public.share_directory") + public static final ShareDirectory shareDirectory = new ShareDirectory(); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:43:40.6619839+08:00", comments="Source field: public.share_directory.id") + public static final SqlColumn id = shareDirectory.id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:43:40.6633873+08:00", comments="Source field: public.share_directory.provider_id") + public static final SqlColumn provider_id = shareDirectory.provider_id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:43:40.6633873+08:00", comments="Source field: public.share_directory.p_id") + public static final SqlColumn p_id = shareDirectory.p_id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:43:40.6633873+08:00", comments="Source field: public.share_directory.wbs_id") + public static final SqlColumn wbs_id = shareDirectory.wbs_id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:43:40.6633873+08:00", comments="Source field: public.share_directory.time_stamp") + public static final SqlColumn time_stamp = shareDirectory.time_stamp; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:43:40.6633873+08:00", comments="Source field: public.share_directory.sortorder") + public static final SqlColumn sortorder = shareDirectory.sortorder; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:43:40.6633873+08:00", comments="Source field: public.share_directory.tname") + public static final SqlColumn tname = shareDirectory.tname; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:43:40.6633873+08:00", comments="Source field: public.share_directory.subjoin") + public static final SqlColumn subjoin = shareDirectory.subjoin; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:43:40.6633873+08:00", comments="Source field: public.share_directory.isdel") + public static final SqlColumn isdel = shareDirectory.isdel; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:43:40.6619839+08:00", comments="Source Table: public.share_directory") + public static final class ShareDirectory extends AliasableSqlTable { + public final SqlColumn id = column("id", JDBCType.VARCHAR); + + public final SqlColumn provider_id = column("provider_id", JDBCType.VARCHAR); + + public final SqlColumn p_id = column("p_id", JDBCType.VARCHAR); + + public final SqlColumn wbs_id = column("wbs_id", JDBCType.VARCHAR); + + public final SqlColumn time_stamp = column("time_stamp", JDBCType.VARCHAR); + + public final SqlColumn sortorder = column("sortorder", JDBCType.INTEGER); + + public final SqlColumn tname = column("tname", JDBCType.VARCHAR); + + public final SqlColumn subjoin = column("subjoin", JDBCType.INTEGER); + + public final SqlColumn isdel = column("isdel", JDBCType.INTEGER); + + public ShareDirectory() { + super("share_directory", ShareDirectory::new); + } + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/dao/support/ShareDirectoryFileDynamicSqlSupport.java b/src/main/java/jj/tech/paolu/repository/mybatis/dao/support/ShareDirectoryFileDynamicSqlSupport.java new file mode 100644 index 0000000..5af0c52 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/dao/support/ShareDirectoryFileDynamicSqlSupport.java @@ -0,0 +1,128 @@ +package jj.tech.paolu.repository.mybatis.dao.support; + +import jakarta.annotation.Generated; +import java.sql.JDBCType; +import org.mybatis.dynamic.sql.AliasableSqlTable; +import org.mybatis.dynamic.sql.SqlColumn; + +public final class ShareDirectoryFileDynamicSqlSupport { + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:03:57.9141192+08:00", comments="Source Table: public.share_directory_file") + public static final ShareDirectoryFile shareDirectoryFile = new ShareDirectoryFile(); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:03:57.9151282+08:00", comments="Source field: public.share_directory_file.id") + public static final SqlColumn id = shareDirectoryFile.id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:03:57.9151282+08:00", comments="Source field: public.share_directory_file.p_id") + public static final SqlColumn p_id = shareDirectoryFile.p_id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:03:57.9151282+08:00", comments="Source field: public.share_directory_file.provider_id") + public static final SqlColumn provider_id = shareDirectoryFile.provider_id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:03:57.9151282+08:00", comments="Source field: public.share_directory_file.filesuper") + public static final SqlColumn filesuper = shareDirectoryFile.filesuper; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:03:57.9151282+08:00", comments="Source field: public.share_directory_file.filecount") + public static final SqlColumn filecount = shareDirectoryFile.filecount; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:03:57.9151282+08:00", comments="Source field: public.share_directory_file.dutyperson") + public static final SqlColumn dutyperson = shareDirectoryFile.dutyperson; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:03:57.916126+08:00", comments="Source field: public.share_directory_file.eweavedate") + public static final SqlColumn eweavedate = shareDirectoryFile.eweavedate; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:03:57.916126+08:00", comments="Source field: public.share_directory_file.filepage") + public static final SqlColumn filepage = shareDirectoryFile.filepage; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:03:57.916126+08:00", comments="Source field: public.share_directory_file.sortorder") + public static final SqlColumn sortorder = shareDirectoryFile.sortorder; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:03:57.916126+08:00", comments="Source field: public.share_directory_file.bpeg") + public static final SqlColumn bpeg = shareDirectoryFile.bpeg; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:03:57.916126+08:00", comments="Source field: public.share_directory_file.epeg") + public static final SqlColumn epeg = shareDirectoryFile.epeg; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:03:57.916126+08:00", comments="Source field: public.share_directory_file.filenum") + public static final SqlColumn filenum = shareDirectoryFile.filenum; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:03:57.916126+08:00", comments="Source field: public.share_directory_file.remark") + public static final SqlColumn remark = shareDirectoryFile.remark; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:03:57.916126+08:00", comments="Source field: public.share_directory_file.recordnum") + public static final SqlColumn recordnum = shareDirectoryFile.recordnum; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:03:57.916126+08:00", comments="Source field: public.share_directory_file.piecenumber") + public static final SqlColumn piecenumber = shareDirectoryFile.piecenumber; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:03:57.916126+08:00", comments="Source field: public.share_directory_file.adddate") + public static final SqlColumn adddate = shareDirectoryFile.adddate; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:03:57.916126+08:00", comments="Source field: public.share_directory_file.editdate") + public static final SqlColumn editdate = shareDirectoryFile.editdate; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:03:57.916126+08:00", comments="Source field: public.share_directory_file.time_stamp") + public static final SqlColumn time_stamp = shareDirectoryFile.time_stamp; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:03:57.916126+08:00", comments="Source field: public.share_directory_file.isdel") + public static final SqlColumn isdel = shareDirectoryFile.isdel; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:03:57.916126+08:00", comments="Source field: public.share_directory_file.catalogpdfurl") + public static final SqlColumn catalogpdfurl = shareDirectoryFile.catalogpdfurl; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:03:57.916126+08:00", comments="Source field: public.share_directory_file.signtag") + public static final SqlColumn signtag = shareDirectoryFile.signtag; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:03:57.916126+08:00", comments="Source field: public.share_directory_file.collecttag") + public static final SqlColumn collecttag = shareDirectoryFile.collecttag; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:03:57.9151282+08:00", comments="Source Table: public.share_directory_file") + public static final class ShareDirectoryFile extends AliasableSqlTable { + public final SqlColumn id = column("id", JDBCType.VARCHAR); + + public final SqlColumn p_id = column("p_id", JDBCType.VARCHAR); + + public final SqlColumn provider_id = column("provider_id", JDBCType.VARCHAR); + + public final SqlColumn filesuper = column("filesuper", JDBCType.VARCHAR); + + public final SqlColumn filecount = column("filecount", JDBCType.INTEGER); + + public final SqlColumn dutyperson = column("dutyperson", JDBCType.VARCHAR); + + public final SqlColumn eweavedate = column("eweavedate", JDBCType.VARCHAR); + + public final SqlColumn filepage = column("filepage", JDBCType.INTEGER); + + public final SqlColumn sortorder = column("sortorder", JDBCType.VARCHAR); + + public final SqlColumn bpeg = column("bpeg", JDBCType.VARCHAR); + + public final SqlColumn epeg = column("epeg", JDBCType.VARCHAR); + + public final SqlColumn filenum = column("filenum", JDBCType.VARCHAR); + + public final SqlColumn remark = column("remark", JDBCType.VARCHAR); + + public final SqlColumn recordnum = column("recordnum", JDBCType.VARCHAR); + + public final SqlColumn piecenumber = column("piecenumber", JDBCType.VARCHAR); + + public final SqlColumn adddate = column("adddate", JDBCType.VARCHAR); + + public final SqlColumn editdate = column("editdate", JDBCType.VARCHAR); + + public final SqlColumn time_stamp = column("time_stamp", JDBCType.VARCHAR); + + public final SqlColumn isdel = column("isdel", JDBCType.INTEGER); + + public final SqlColumn catalogpdfurl = column("catalogpdfurl", JDBCType.VARCHAR); + + public final SqlColumn signtag = column("signtag", JDBCType.VARCHAR); + + public final SqlColumn collecttag = column("collecttag", JDBCType.VARCHAR); + + public ShareDirectoryFile() { + super("share_directory_file", ShareDirectoryFile::new); + } + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/dao/support/ShareFileDynamicSqlSupport.java b/src/main/java/jj/tech/paolu/repository/mybatis/dao/support/ShareFileDynamicSqlSupport.java new file mode 100644 index 0000000..1acb8bc --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/dao/support/ShareFileDynamicSqlSupport.java @@ -0,0 +1,108 @@ +package jj.tech.paolu.repository.mybatis.dao.support; + +import jakarta.annotation.Generated; +import java.sql.JDBCType; +import org.mybatis.dynamic.sql.AliasableSqlTable; +import org.mybatis.dynamic.sql.SqlColumn; + +public final class ShareFileDynamicSqlSupport { + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:04:26.6104216+08:00", comments="Source Table: public.share_file") + public static final ShareFile shareFile = new ShareFile(); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:04:26.611428+08:00", comments="Source field: public.share_file.id") + public static final SqlColumn id = shareFile.id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:04:26.612661+08:00", comments="Source field: public.share_file.p_id") + public static final SqlColumn p_id = shareFile.p_id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:04:26.612661+08:00", comments="Source field: public.share_file.provider_id") + public static final SqlColumn provider_id = shareFile.provider_id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:04:26.612661+08:00", comments="Source field: public.share_file.tablenumber") + public static final SqlColumn tablenumber = shareFile.tablenumber; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:04:26.612661+08:00", comments="Source field: public.share_file.annexname") + public static final SqlColumn annexname = shareFile.annexname; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:04:26.612661+08:00", comments="Source field: public.share_file.projectname") + public static final SqlColumn projectname = shareFile.projectname; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:04:26.612661+08:00", comments="Source field: public.share_file.eweavedate") + public static final SqlColumn eweavedate = shareFile.eweavedate; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:04:26.612661+08:00", comments="Source field: public.share_file.checkdate") + public static final SqlColumn checkdate = shareFile.checkdate; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:04:26.612661+08:00", comments="Source field: public.share_file.annexpage") + public static final SqlColumn annexpage = shareFile.annexpage; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:04:26.612661+08:00", comments="Source field: public.share_file.sortorder") + public static final SqlColumn sortorder = shareFile.sortorder; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:04:26.612661+08:00", comments="Source field: public.share_file.filefrom") + public static final SqlColumn filefrom = shareFile.filefrom; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:04:26.612661+08:00", comments="Source field: public.share_file.archivestag") + public static final SqlColumn archivestag = shareFile.archivestag; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:04:26.612661+08:00", comments="Source field: public.share_file.adddate") + public static final SqlColumn adddate = shareFile.adddate; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:04:26.612661+08:00", comments="Source field: public.share_file.editdate") + public static final SqlColumn editdate = shareFile.editdate; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:04:26.612661+08:00", comments="Source field: public.share_file.time_stamp") + public static final SqlColumn time_stamp = shareFile.time_stamp; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:04:26.612661+08:00", comments="Source field: public.share_file.isdel") + public static final SqlColumn isdel = shareFile.isdel; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:04:26.612661+08:00", comments="Source field: public.share_file.downurl") + public static final SqlColumn downurl = shareFile.downurl; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:04:26.612661+08:00", comments="Source field: public.share_file.filesize") + public static final SqlColumn filesize = shareFile.filesize; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:04:26.611428+08:00", comments="Source Table: public.share_file") + public static final class ShareFile extends AliasableSqlTable { + public final SqlColumn id = column("id", JDBCType.VARCHAR); + + public final SqlColumn p_id = column("p_id", JDBCType.VARCHAR); + + public final SqlColumn provider_id = column("provider_id", JDBCType.VARCHAR); + + public final SqlColumn tablenumber = column("tablenumber", JDBCType.VARCHAR); + + public final SqlColumn annexname = column("annexname", JDBCType.VARCHAR); + + public final SqlColumn projectname = column("projectname", JDBCType.VARCHAR); + + public final SqlColumn eweavedate = column("eweavedate", JDBCType.VARCHAR); + + public final SqlColumn checkdate = column("checkdate", JDBCType.VARCHAR); + + public final SqlColumn annexpage = column("annexpage", JDBCType.INTEGER); + + public final SqlColumn sortorder = column("sortorder", JDBCType.VARCHAR); + + public final SqlColumn filefrom = column("filefrom", JDBCType.VARCHAR); + + public final SqlColumn archivestag = column("archivestag", JDBCType.VARCHAR); + + public final SqlColumn adddate = column("adddate", JDBCType.VARCHAR); + + public final SqlColumn editdate = column("editdate", JDBCType.VARCHAR); + + public final SqlColumn time_stamp = column("time_stamp", JDBCType.VARCHAR); + + public final SqlColumn isdel = column("isdel", JDBCType.INTEGER); + + public final SqlColumn downurl = column("downurl", JDBCType.VARCHAR); + + public final SqlColumn filesize = column("filesize", JDBCType.INTEGER); + + public ShareFile() { + super("share_file", ShareFile::new); + } + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/dao/support/SharedElementUpdateDetailDynamicSqlSupport.java b/src/main/java/jj/tech/paolu/repository/mybatis/dao/support/SharedElementUpdateDetailDynamicSqlSupport.java new file mode 100644 index 0000000..557a2c5 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/dao/support/SharedElementUpdateDetailDynamicSqlSupport.java @@ -0,0 +1,64 @@ +package jj.tech.paolu.repository.mybatis.dao.support; + +import jakarta.annotation.Generated; +import java.sql.JDBCType; +import java.time.LocalDateTime; +import org.mybatis.dynamic.sql.AliasableSqlTable; +import org.mybatis.dynamic.sql.SqlColumn; + +public final class SharedElementUpdateDetailDynamicSqlSupport { + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.261151+08:00", comments="Source Table: public.shared_element_update_detail") + public static final SharedElementUpdateDetail sharedElementUpdateDetail = new SharedElementUpdateDetail(); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.261151+08:00", comments="Source field: public.shared_element_update_detail.id") + public static final SqlColumn id = sharedElementUpdateDetail.id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.261151+08:00", comments="Source field: public.shared_element_update_detail.update_record_id") + public static final SqlColumn update_record_id = sharedElementUpdateDetail.update_record_id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.261151+08:00", comments="Source field: public.shared_element_update_detail.node_type") + public static final SqlColumn node_type = sharedElementUpdateDetail.node_type; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.261151+08:00", comments="Source field: public.shared_element_update_detail.node_id") + public static final SqlColumn node_id = sharedElementUpdateDetail.node_id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.261151+08:00", comments="Source field: public.shared_element_update_detail.share_status") + public static final SqlColumn share_status = sharedElementUpdateDetail.share_status; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.261151+08:00", comments="Source field: public.shared_element_update_detail.execute_start_time") + public static final SqlColumn execute_start_time = sharedElementUpdateDetail.execute_start_time; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.261151+08:00", comments="Source field: public.shared_element_update_detail.execute_end_time") + public static final SqlColumn execute_end_time = sharedElementUpdateDetail.execute_end_time; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.261151+08:00", comments="Source field: public.shared_element_update_detail.execute_desp") + public static final SqlColumn execute_desp = sharedElementUpdateDetail.execute_desp; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.261151+08:00", comments="Source field: public.shared_element_update_detail.execute_success") + public static final SqlColumn execute_success = sharedElementUpdateDetail.execute_success; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.261151+08:00", comments="Source Table: public.shared_element_update_detail") + public static final class SharedElementUpdateDetail extends AliasableSqlTable { + public final SqlColumn id = column("id", JDBCType.VARCHAR); + + public final SqlColumn update_record_id = column("update_record_id", JDBCType.VARCHAR); + + public final SqlColumn node_type = column("node_type", JDBCType.INTEGER); + + public final SqlColumn node_id = column("node_id", JDBCType.VARCHAR); + + public final SqlColumn share_status = column("share_status", JDBCType.INTEGER); + + public final SqlColumn execute_start_time = column("execute_start_time", JDBCType.TIMESTAMP); + + public final SqlColumn execute_end_time = column("execute_end_time", JDBCType.TIMESTAMP); + + public final SqlColumn execute_desp = column("execute_desp", JDBCType.VARCHAR); + + public final SqlColumn execute_success = column("execute_success", JDBCType.INTEGER); + + public SharedElementUpdateDetail() { + super("shared_element_update_detail", SharedElementUpdateDetail::new); + } + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/dao/support/SharedElementUpdateRecordDynamicSqlSupport.java b/src/main/java/jj/tech/paolu/repository/mybatis/dao/support/SharedElementUpdateRecordDynamicSqlSupport.java new file mode 100644 index 0000000..659622c --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/dao/support/SharedElementUpdateRecordDynamicSqlSupport.java @@ -0,0 +1,89 @@ +package jj.tech.paolu.repository.mybatis.dao.support; + +import jakarta.annotation.Generated; +import java.sql.JDBCType; +import java.time.LocalDateTime; +import org.mybatis.dynamic.sql.AliasableSqlTable; +import org.mybatis.dynamic.sql.SqlColumn; + +public final class SharedElementUpdateRecordDynamicSqlSupport { + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T16:19:53.9401749+08:00", comments="Source Table: public.shared_element_update_record") + public static final SharedElementUpdateRecord sharedElementUpdateRecord = new SharedElementUpdateRecord(); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T16:19:53.9411735+08:00", comments="Source field: public.shared_element_update_record.id") + public static final SqlColumn id = sharedElementUpdateRecord.id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T16:19:53.9421749+08:00", comments="Source field: public.shared_element_update_record.share_rule_id") + public static final SqlColumn share_rule_id = sharedElementUpdateRecord.share_rule_id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T16:19:53.9421749+08:00", comments="Source field: public.shared_element_update_record.user_id") + public static final SqlColumn user_id = sharedElementUpdateRecord.user_id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T16:19:53.9421749+08:00", comments="Source field: public.shared_element_update_record.desp") + public static final SqlColumn desp = sharedElementUpdateRecord.desp; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T16:19:53.9421749+08:00", comments="Source field: public.shared_element_update_record.create_time") + public static final SqlColumn create_time = sharedElementUpdateRecord.create_time; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T16:19:53.9421749+08:00", comments="Source field: public.shared_element_update_record.node_count") + public static final SqlColumn node_count = sharedElementUpdateRecord.node_count; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T16:19:53.9421749+08:00", comments="Source field: public.shared_element_update_record.source") + public static final SqlColumn source = sharedElementUpdateRecord.source; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T16:19:53.9421749+08:00", comments="Source field: public.shared_element_update_record.execute_start_time") + public static final SqlColumn execute_start_time = sharedElementUpdateRecord.execute_start_time; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T16:19:53.9421749+08:00", comments="Source field: public.shared_element_update_record.execute_end_time") + public static final SqlColumn execute_end_time = sharedElementUpdateRecord.execute_end_time; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T16:19:53.9421749+08:00", comments="Source field: public.shared_element_update_record.execute_desp") + public static final SqlColumn execute_desp = sharedElementUpdateRecord.execute_desp; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T16:19:53.9421749+08:00", comments="Source field: public.shared_element_update_record.execute_status") + public static final SqlColumn execute_status = sharedElementUpdateRecord.execute_status; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T16:19:53.9421749+08:00", comments="Source field: public.shared_element_update_record.succ_exec_node_count") + public static final SqlColumn succ_exec_node_count = sharedElementUpdateRecord.succ_exec_node_count; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T16:19:53.9421749+08:00", comments="Source field: public.shared_element_update_record.act_node_count") + public static final SqlColumn act_node_count = sharedElementUpdateRecord.act_node_count; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T16:19:53.9421749+08:00", comments="Source field: public.shared_element_update_record.execute_count") + public static final SqlColumn execute_count = sharedElementUpdateRecord.execute_count; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T16:19:53.9411735+08:00", comments="Source Table: public.shared_element_update_record") + public static final class SharedElementUpdateRecord extends AliasableSqlTable { + public final SqlColumn id = column("id", JDBCType.VARCHAR); + + public final SqlColumn share_rule_id = column("share_rule_id", JDBCType.VARCHAR); + + public final SqlColumn user_id = column("user_id", JDBCType.VARCHAR); + + public final SqlColumn desp = column("desp", JDBCType.VARCHAR); + + public final SqlColumn create_time = column("create_time", JDBCType.TIMESTAMP); + + public final SqlColumn node_count = column("node_count", JDBCType.BIGINT); + + public final SqlColumn source = column("source", JDBCType.VARCHAR); + + public final SqlColumn execute_start_time = column("execute_start_time", JDBCType.TIMESTAMP); + + public final SqlColumn execute_end_time = column("execute_end_time", JDBCType.TIMESTAMP); + + public final SqlColumn execute_desp = column("execute_desp", JDBCType.VARCHAR); + + public final SqlColumn execute_status = column("execute_status", JDBCType.INTEGER); + + public final SqlColumn succ_exec_node_count = column("succ_exec_node_count", JDBCType.INTEGER); + + public final SqlColumn act_node_count = column("act_node_count", JDBCType.INTEGER); + + public final SqlColumn execute_count = column("execute_count", JDBCType.INTEGER); + + public SharedElementUpdateRecord() { + super("shared_element_update_record", SharedElementUpdateRecord::new); + } + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/dao/support/SharedRuleConfigDynamicSqlSupport.java b/src/main/java/jj/tech/paolu/repository/mybatis/dao/support/SharedRuleConfigDynamicSqlSupport.java new file mode 100644 index 0000000..db8bccc --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/dao/support/SharedRuleConfigDynamicSqlSupport.java @@ -0,0 +1,48 @@ +package jj.tech.paolu.repository.mybatis.dao.support; + +import jakarta.annotation.Generated; +import java.sql.JDBCType; +import org.mybatis.dynamic.sql.AliasableSqlTable; +import org.mybatis.dynamic.sql.SqlColumn; + +public final class SharedRuleConfigDynamicSqlSupport { + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3121484+08:00", comments="Source Table: public.shared_rule_config") + public static final SharedRuleConfig sharedRuleConfig = new SharedRuleConfig(); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3121484+08:00", comments="Source field: public.shared_rule_config.id") + public static final SqlColumn id = sharedRuleConfig.id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3131471+08:00", comments="Source field: public.shared_rule_config.name") + public static final SqlColumn name = sharedRuleConfig.name; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3131471+08:00", comments="Source field: public.shared_rule_config.describe") + public static final SqlColumn describe = sharedRuleConfig.describe; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3131471+08:00", comments="Source field: public.shared_rule_config.status") + public static final SqlColumn status = sharedRuleConfig.status; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3131471+08:00", comments="Source field: public.shared_rule_config.sort") + public static final SqlColumn sort = sharedRuleConfig.sort; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3131471+08:00", comments="Source field: public.shared_rule_config.project_name") + public static final SqlColumn project_name = sharedRuleConfig.project_name; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3121484+08:00", comments="Source Table: public.shared_rule_config") + public static final class SharedRuleConfig extends AliasableSqlTable { + public final SqlColumn id = column("id", JDBCType.VARCHAR); + + public final SqlColumn name = column("name", JDBCType.VARCHAR); + + public final SqlColumn describe = column("describe", JDBCType.VARCHAR); + + public final SqlColumn status = column("status", JDBCType.INTEGER); + + public final SqlColumn sort = column("sort", JDBCType.INTEGER); + + public final SqlColumn project_name = column("project_name", JDBCType.VARCHAR); + + public SharedRuleConfig() { + super("shared_rule_config", SharedRuleConfig::new); + } + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/dao/support/SharedSynAllDynamicSqlSupport.java b/src/main/java/jj/tech/paolu/repository/mybatis/dao/support/SharedSynAllDynamicSqlSupport.java new file mode 100644 index 0000000..d706539 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/dao/support/SharedSynAllDynamicSqlSupport.java @@ -0,0 +1,63 @@ +package jj.tech.paolu.repository.mybatis.dao.support; + +import jakarta.annotation.Generated; +import java.sql.JDBCType; +import org.mybatis.dynamic.sql.AliasableSqlTable; +import org.mybatis.dynamic.sql.SqlColumn; + +public final class SharedSynAllDynamicSqlSupport { + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.303149+08:00", comments="Source Table: public.shared_syn_all") + public static final SharedSynAll sharedSynAll = new SharedSynAll(); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.303149+08:00", comments="Source field: public.shared_syn_all.id") + public static final SqlColumn id = sharedSynAll.id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.303149+08:00", comments="Source field: public.shared_syn_all.syn_id") + public static final SqlColumn syn_id = sharedSynAll.syn_id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.303149+08:00", comments="Source field: public.shared_syn_all.syn_type") + public static final SqlColumn syn_type = sharedSynAll.syn_type; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.303149+08:00", comments="Source field: public.shared_syn_all.is_config_rule") + public static final SqlColumn is_config_rule = sharedSynAll.is_config_rule; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.303149+08:00", comments="Source field: public.shared_syn_all.shared_status") + public static final SqlColumn shared_status = sharedSynAll.shared_status; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.303149+08:00", comments="Source field: public.shared_syn_all.syn_status") + public static final SqlColumn syn_status = sharedSynAll.syn_status; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.303149+08:00", comments="Source field: public.shared_syn_all.block_number") + public static final SqlColumn block_number = sharedSynAll.block_number; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.303149+08:00", comments="Source field: public.shared_syn_all.block_hash") + public static final SqlColumn block_hash = sharedSynAll.block_hash; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.303149+08:00", comments="Source field: public.shared_syn_all.block_time") + public static final SqlColumn block_time = sharedSynAll.block_time; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.303149+08:00", comments="Source Table: public.shared_syn_all") + public static final class SharedSynAll extends AliasableSqlTable { + public final SqlColumn id = column("id", JDBCType.VARCHAR); + + public final SqlColumn syn_id = column("syn_id", JDBCType.VARCHAR); + + public final SqlColumn syn_type = column("syn_type", JDBCType.INTEGER); + + public final SqlColumn is_config_rule = column("is_config_rule", JDBCType.INTEGER); + + public final SqlColumn shared_status = column("shared_status", JDBCType.INTEGER); + + public final SqlColumn syn_status = column("syn_status", JDBCType.INTEGER); + + public final SqlColumn block_number = column("block_number", JDBCType.VARCHAR); + + public final SqlColumn block_hash = column("block_hash", JDBCType.VARCHAR); + + public final SqlColumn block_time = column("block_time", JDBCType.VARCHAR); + + public SharedSynAll() { + super("shared_syn_all", SharedSynAll::new); + } + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/dao/support/SynDirectoryDynamicSqlSupport.java b/src/main/java/jj/tech/paolu/repository/mybatis/dao/support/SynDirectoryDynamicSqlSupport.java new file mode 100644 index 0000000..df8c630 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/dao/support/SynDirectoryDynamicSqlSupport.java @@ -0,0 +1,58 @@ +package jj.tech.paolu.repository.mybatis.dao.support; + +import jakarta.annotation.Generated; +import java.sql.JDBCType; +import org.mybatis.dynamic.sql.AliasableSqlTable; +import org.mybatis.dynamic.sql.SqlColumn; + +public final class SynDirectoryDynamicSqlSupport { + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.5084726+08:00", comments="Source Table: public.syn_directory") + public static final SynDirectory synDirectory = new SynDirectory(); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.5084726+08:00", comments="Source field: public.syn_directory.id") + public static final SqlColumn id = synDirectory.id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.5084726+08:00", comments="Source field: public.syn_directory.p_id") + public static final SqlColumn p_id = synDirectory.p_id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.5084726+08:00", comments="Source field: public.syn_directory.wbs_id") + public static final SqlColumn wbs_id = synDirectory.wbs_id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.5084726+08:00", comments="Source field: public.syn_directory.time_stamp") + public static final SqlColumn time_stamp = synDirectory.time_stamp; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.5084726+08:00", comments="Source field: public.syn_directory.sortorder") + public static final SqlColumn sortorder = synDirectory.sortorder; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.5084726+08:00", comments="Source field: public.syn_directory.tname") + public static final SqlColumn tname = synDirectory.tname; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.509599+08:00", comments="Source field: public.syn_directory.subjoin") + public static final SqlColumn subjoin = synDirectory.subjoin; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.509599+08:00", comments="Source field: public.syn_directory.isdel") + public static final SqlColumn isdel = synDirectory.isdel; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.5084726+08:00", comments="Source Table: public.syn_directory") + public static final class SynDirectory extends AliasableSqlTable { + public final SqlColumn id = column("id", JDBCType.VARCHAR); + + public final SqlColumn p_id = column("p_id", JDBCType.VARCHAR); + + public final SqlColumn wbs_id = column("wbs_id", JDBCType.VARCHAR); + + public final SqlColumn time_stamp = column("time_stamp", JDBCType.VARCHAR); + + public final SqlColumn sortorder = column("sortorder", JDBCType.INTEGER); + + public final SqlColumn tname = column("tname", JDBCType.VARCHAR); + + public final SqlColumn subjoin = column("subjoin", JDBCType.INTEGER); + + public final SqlColumn isdel = column("isdel", JDBCType.INTEGER); + + public SynDirectory() { + super("syn_directory", SynDirectory::new); + } + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/dao/support/SynDirectoryFileDynamicSqlSupport.java b/src/main/java/jj/tech/paolu/repository/mybatis/dao/support/SynDirectoryFileDynamicSqlSupport.java new file mode 100644 index 0000000..22fb5b8 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/dao/support/SynDirectoryFileDynamicSqlSupport.java @@ -0,0 +1,123 @@ +package jj.tech.paolu.repository.mybatis.dao.support; + +import jakarta.annotation.Generated; +import java.sql.JDBCType; +import org.mybatis.dynamic.sql.AliasableSqlTable; +import org.mybatis.dynamic.sql.SqlColumn; + +public final class SynDirectoryFileDynamicSqlSupport { + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.4764015+08:00", comments="Source Table: public.syn_directory_file") + public static final SynDirectoryFile synDirectoryFile = new SynDirectoryFile(); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.4774083+08:00", comments="Source field: public.syn_directory_file.id") + public static final SqlColumn id = synDirectoryFile.id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.4785362+08:00", comments="Source field: public.syn_directory_file.p_id") + public static final SqlColumn p_id = synDirectoryFile.p_id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.4785362+08:00", comments="Source field: public.syn_directory_file.filesuper") + public static final SqlColumn filesuper = synDirectoryFile.filesuper; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.4785362+08:00", comments="Source field: public.syn_directory_file.filecount") + public static final SqlColumn filecount = synDirectoryFile.filecount; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.4785362+08:00", comments="Source field: public.syn_directory_file.dutyperson") + public static final SqlColumn dutyperson = synDirectoryFile.dutyperson; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.4785362+08:00", comments="Source field: public.syn_directory_file.eweavedate") + public static final SqlColumn eweavedate = synDirectoryFile.eweavedate; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.4785362+08:00", comments="Source field: public.syn_directory_file.filepage") + public static final SqlColumn filepage = synDirectoryFile.filepage; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.4785362+08:00", comments="Source field: public.syn_directory_file.sortorder") + public static final SqlColumn sortorder = synDirectoryFile.sortorder; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.4785362+08:00", comments="Source field: public.syn_directory_file.bpeg") + public static final SqlColumn bpeg = synDirectoryFile.bpeg; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.4785362+08:00", comments="Source field: public.syn_directory_file.epeg") + public static final SqlColumn epeg = synDirectoryFile.epeg; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.4785362+08:00", comments="Source field: public.syn_directory_file.filenum") + public static final SqlColumn filenum = synDirectoryFile.filenum; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.4785362+08:00", comments="Source field: public.syn_directory_file.remark") + public static final SqlColumn remark = synDirectoryFile.remark; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.4785362+08:00", comments="Source field: public.syn_directory_file.recordnum") + public static final SqlColumn recordnum = synDirectoryFile.recordnum; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.4785362+08:00", comments="Source field: public.syn_directory_file.piecenumber") + public static final SqlColumn piecenumber = synDirectoryFile.piecenumber; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.4785362+08:00", comments="Source field: public.syn_directory_file.adddate") + public static final SqlColumn adddate = synDirectoryFile.adddate; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.4785362+08:00", comments="Source field: public.syn_directory_file.editdate") + public static final SqlColumn editdate = synDirectoryFile.editdate; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.4785362+08:00", comments="Source field: public.syn_directory_file.time_stamp") + public static final SqlColumn time_stamp = synDirectoryFile.time_stamp; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.4785362+08:00", comments="Source field: public.syn_directory_file.isdel") + public static final SqlColumn isdel = synDirectoryFile.isdel; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.4785362+08:00", comments="Source field: public.syn_directory_file.catalogpdfurl") + public static final SqlColumn catalogpdfurl = synDirectoryFile.catalogpdfurl; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.4785362+08:00", comments="Source field: public.syn_directory_file.signtag") + public static final SqlColumn signtag = synDirectoryFile.signtag; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.4795789+08:00", comments="Source field: public.syn_directory_file.collecttag") + public static final SqlColumn collecttag = synDirectoryFile.collecttag; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.4774083+08:00", comments="Source Table: public.syn_directory_file") + public static final class SynDirectoryFile extends AliasableSqlTable { + public final SqlColumn id = column("id", JDBCType.VARCHAR); + + public final SqlColumn p_id = column("p_id", JDBCType.VARCHAR); + + public final SqlColumn filesuper = column("filesuper", JDBCType.VARCHAR); + + public final SqlColumn filecount = column("filecount", JDBCType.INTEGER); + + public final SqlColumn dutyperson = column("dutyperson", JDBCType.VARCHAR); + + public final SqlColumn eweavedate = column("eweavedate", JDBCType.VARCHAR); + + public final SqlColumn filepage = column("filepage", JDBCType.INTEGER); + + public final SqlColumn sortorder = column("sortorder", JDBCType.VARCHAR); + + public final SqlColumn bpeg = column("bpeg", JDBCType.VARCHAR); + + public final SqlColumn epeg = column("epeg", JDBCType.VARCHAR); + + public final SqlColumn filenum = column("filenum", JDBCType.VARCHAR); + + public final SqlColumn remark = column("remark", JDBCType.VARCHAR); + + public final SqlColumn recordnum = column("recordnum", JDBCType.VARCHAR); + + public final SqlColumn piecenumber = column("piecenumber", JDBCType.VARCHAR); + + public final SqlColumn adddate = column("adddate", JDBCType.VARCHAR); + + public final SqlColumn editdate = column("editdate", JDBCType.VARCHAR); + + public final SqlColumn time_stamp = column("time_stamp", JDBCType.VARCHAR); + + public final SqlColumn isdel = column("isdel", JDBCType.INTEGER); + + public final SqlColumn catalogpdfurl = column("catalogpdfurl", JDBCType.VARCHAR); + + public final SqlColumn signtag = column("signtag", JDBCType.VARCHAR); + + public final SqlColumn collecttag = column("collecttag", JDBCType.VARCHAR); + + public SynDirectoryFile() { + super("syn_directory_file", SynDirectoryFile::new); + } + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/dao/support/SynFileDynamicSqlSupport.java b/src/main/java/jj/tech/paolu/repository/mybatis/dao/support/SynFileDynamicSqlSupport.java new file mode 100644 index 0000000..5d406b0 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/dao/support/SynFileDynamicSqlSupport.java @@ -0,0 +1,103 @@ +package jj.tech.paolu.repository.mybatis.dao.support; + +import jakarta.annotation.Generated; +import java.sql.JDBCType; +import org.mybatis.dynamic.sql.AliasableSqlTable; +import org.mybatis.dynamic.sql.SqlColumn; + +public final class SynFileDynamicSqlSupport { + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.4996344+08:00", comments="Source Table: public.syn_file") + public static final SynFile synFile = new SynFile(); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.5006795+08:00", comments="Source field: public.syn_file.id") + public static final SqlColumn id = synFile.id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.5006795+08:00", comments="Source field: public.syn_file.p_id") + public static final SqlColumn p_id = synFile.p_id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.5006795+08:00", comments="Source field: public.syn_file.tablenumber") + public static final SqlColumn tablenumber = synFile.tablenumber; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.5006795+08:00", comments="Source field: public.syn_file.annexname") + public static final SqlColumn annexname = synFile.annexname; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.5006795+08:00", comments="Source field: public.syn_file.projectname") + public static final SqlColumn projectname = synFile.projectname; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.5006795+08:00", comments="Source field: public.syn_file.eweavedate") + public static final SqlColumn eweavedate = synFile.eweavedate; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.5006795+08:00", comments="Source field: public.syn_file.checkdate") + public static final SqlColumn checkdate = synFile.checkdate; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.5006795+08:00", comments="Source field: public.syn_file.annexpage") + public static final SqlColumn annexpage = synFile.annexpage; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.5006795+08:00", comments="Source field: public.syn_file.sortorder") + public static final SqlColumn sortorder = synFile.sortorder; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.5006795+08:00", comments="Source field: public.syn_file.filefrom") + public static final SqlColumn filefrom = synFile.filefrom; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.5006795+08:00", comments="Source field: public.syn_file.archivestag") + public static final SqlColumn archivestag = synFile.archivestag; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.5006795+08:00", comments="Source field: public.syn_file.adddate") + public static final SqlColumn adddate = synFile.adddate; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.5006795+08:00", comments="Source field: public.syn_file.editdate") + public static final SqlColumn editdate = synFile.editdate; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.5006795+08:00", comments="Source field: public.syn_file.time_stamp") + public static final SqlColumn time_stamp = synFile.time_stamp; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.5006795+08:00", comments="Source field: public.syn_file.isdel") + public static final SqlColumn isdel = synFile.isdel; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.5006795+08:00", comments="Source field: public.syn_file.downurl") + public static final SqlColumn downurl = synFile.downurl; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.5006795+08:00", comments="Source field: public.syn_file.filesize") + public static final SqlColumn filesize = synFile.filesize; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.5006795+08:00", comments="Source Table: public.syn_file") + public static final class SynFile extends AliasableSqlTable { + public final SqlColumn id = column("id", JDBCType.VARCHAR); + + public final SqlColumn p_id = column("p_id", JDBCType.VARCHAR); + + public final SqlColumn tablenumber = column("tablenumber", JDBCType.VARCHAR); + + public final SqlColumn annexname = column("annexname", JDBCType.VARCHAR); + + public final SqlColumn projectname = column("projectname", JDBCType.VARCHAR); + + public final SqlColumn eweavedate = column("eweavedate", JDBCType.VARCHAR); + + public final SqlColumn checkdate = column("checkdate", JDBCType.VARCHAR); + + public final SqlColumn annexpage = column("annexpage", JDBCType.INTEGER); + + public final SqlColumn sortorder = column("sortorder", JDBCType.VARCHAR); + + public final SqlColumn filefrom = column("filefrom", JDBCType.VARCHAR); + + public final SqlColumn archivestag = column("archivestag", JDBCType.VARCHAR); + + public final SqlColumn adddate = column("adddate", JDBCType.VARCHAR); + + public final SqlColumn editdate = column("editdate", JDBCType.VARCHAR); + + public final SqlColumn time_stamp = column("time_stamp", JDBCType.VARCHAR); + + public final SqlColumn isdel = column("isdel", JDBCType.INTEGER); + + public final SqlColumn downurl = column("downurl", JDBCType.VARCHAR); + + public final SqlColumn filesize = column("filesize", JDBCType.INTEGER); + + public SynFile() { + super("syn_file", SynFile::new); + } + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/dao/support/Sync2blockchainTaskDynamicSqlSupport.java b/src/main/java/jj/tech/paolu/repository/mybatis/dao/support/Sync2blockchainTaskDynamicSqlSupport.java new file mode 100644 index 0000000..8accf65 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/dao/support/Sync2blockchainTaskDynamicSqlSupport.java @@ -0,0 +1,104 @@ +package jj.tech.paolu.repository.mybatis.dao.support; + +import jakarta.annotation.Generated; +import java.sql.JDBCType; +import java.time.LocalDateTime; +import org.mybatis.dynamic.sql.AliasableSqlTable; +import org.mybatis.dynamic.sql.SqlColumn; + +public final class Sync2blockchainTaskDynamicSqlSupport { + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.5042772+08:00", comments="Source Table: public.sync2blockchain_task") + public static final Sync2blockchainTask sync2blockchainTask = new Sync2blockchainTask(); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.5042772+08:00", comments="Source field: public.sync2blockchain_task.id") + public static final SqlColumn id = sync2blockchainTask.id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.5042772+08:00", comments="Source field: public.sync2blockchain_task.start_time") + public static final SqlColumn start_time = sync2blockchainTask.start_time; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.5042772+08:00", comments="Source field: public.sync2blockchain_task.end_time") + public static final SqlColumn end_time = sync2blockchainTask.end_time; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.5042772+08:00", comments="Source field: public.sync2blockchain_task.update_dir_count") + public static final SqlColumn update_dir_count = sync2blockchainTask.update_dir_count; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.5052829+08:00", comments="Source field: public.sync2blockchain_task.insert_dir_count") + public static final SqlColumn insert_dir_count = sync2blockchainTask.insert_dir_count; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.5052829+08:00", comments="Source field: public.sync2blockchain_task.remove_dir_count") + public static final SqlColumn remove_dir_count = sync2blockchainTask.remove_dir_count; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.5052829+08:00", comments="Source field: public.sync2blockchain_task.execute_status") + public static final SqlColumn execute_status = sync2blockchainTask.execute_status; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.5052829+08:00", comments="Source field: public.sync2blockchain_task.desp") + public static final SqlColumn desp = sync2blockchainTask.desp; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.5052829+08:00", comments="Source field: public.sync2blockchain_task.update_dirfile_count") + public static final SqlColumn update_dirfile_count = sync2blockchainTask.update_dirfile_count; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.5052829+08:00", comments="Source field: public.sync2blockchain_task.insert_dirfile_count") + public static final SqlColumn insert_dirfile_count = sync2blockchainTask.insert_dirfile_count; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.5052829+08:00", comments="Source field: public.sync2blockchain_task.remove_dirfile_count") + public static final SqlColumn remove_dirfile_count = sync2blockchainTask.remove_dirfile_count; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.5052829+08:00", comments="Source field: public.sync2blockchain_task.update_file_count") + public static final SqlColumn update_file_count = sync2blockchainTask.update_file_count; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.5052829+08:00", comments="Source field: public.sync2blockchain_task.insert_file_count") + public static final SqlColumn insert_file_count = sync2blockchainTask.insert_file_count; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.5052829+08:00", comments="Source field: public.sync2blockchain_task.remove_file_count") + public static final SqlColumn remove_file_count = sync2blockchainTask.remove_file_count; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.5052829+08:00", comments="Source field: public.sync2blockchain_task.need_process_count") + public static final SqlColumn need_process_count = sync2blockchainTask.need_process_count; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.5052829+08:00", comments="Source field: public.sync2blockchain_task.processed_count") + public static final SqlColumn processed_count = sync2blockchainTask.processed_count; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.5052829+08:00", comments="Source field: public.sync2blockchain_task.failed_process_count") + public static final SqlColumn failed_process_count = sync2blockchainTask.failed_process_count; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.5042772+08:00", comments="Source Table: public.sync2blockchain_task") + public static final class Sync2blockchainTask extends AliasableSqlTable { + public final SqlColumn id = column("id", JDBCType.VARCHAR); + + public final SqlColumn start_time = column("start_time", JDBCType.TIMESTAMP); + + public final SqlColumn end_time = column("end_time", JDBCType.TIMESTAMP); + + public final SqlColumn update_dir_count = column("update_dir_count", JDBCType.INTEGER); + + public final SqlColumn insert_dir_count = column("insert_dir_count", JDBCType.INTEGER); + + public final SqlColumn remove_dir_count = column("remove_dir_count", JDBCType.INTEGER); + + public final SqlColumn execute_status = column("execute_status", JDBCType.INTEGER); + + public final SqlColumn desp = column("desp", JDBCType.VARCHAR); + + public final SqlColumn update_dirfile_count = column("update_dirfile_count", JDBCType.INTEGER); + + public final SqlColumn insert_dirfile_count = column("insert_dirfile_count", JDBCType.INTEGER); + + public final SqlColumn remove_dirfile_count = column("remove_dirfile_count", JDBCType.INTEGER); + + public final SqlColumn update_file_count = column("update_file_count", JDBCType.INTEGER); + + public final SqlColumn insert_file_count = column("insert_file_count", JDBCType.INTEGER); + + public final SqlColumn remove_file_count = column("remove_file_count", JDBCType.INTEGER); + + public final SqlColumn need_process_count = column("need_process_count", JDBCType.INTEGER); + + public final SqlColumn processed_count = column("processed_count", JDBCType.INTEGER); + + public final SqlColumn failed_process_count = column("failed_process_count", JDBCType.INTEGER); + + public Sync2blockchainTask() { + super("sync2blockchain_task", Sync2blockchainTask::new); + } + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/dao/support/SysAdminDynamicSqlSupport.java b/src/main/java/jj/tech/paolu/repository/mybatis/dao/support/SysAdminDynamicSqlSupport.java new file mode 100644 index 0000000..e341903 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/dao/support/SysAdminDynamicSqlSupport.java @@ -0,0 +1,92 @@ +package jj.tech.paolu.repository.mybatis.dao.support; + +import jakarta.annotation.Generated; +import java.sql.JDBCType; +import org.mybatis.dynamic.sql.AliasableSqlTable; +import org.mybatis.dynamic.sql.SqlColumn; + +public final class SysAdminDynamicSqlSupport { + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2861501+08:00", comments="Source Table: public.sys_admin") + public static final SysAdmin sysAdmin = new SysAdmin(); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2861501+08:00", comments="Source field: public.sys_admin.id") + public static final SqlColumn id = sysAdmin.id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2861501+08:00", comments="Source field: public.sys_admin.org_id") + public static final SqlColumn org_id = sysAdmin.org_id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2861501+08:00", comments="Source field: public.sys_admin.realname") + public static final SqlColumn realname = sysAdmin.realname; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2861501+08:00", comments="Source field: public.sys_admin.username") + public static final SqlColumn username = sysAdmin.username; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2861501+08:00", comments="Source field: public.sys_admin.password") + public static final SqlColumn password = sysAdmin.password; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2861501+08:00", comments="Source field: public.sys_admin.phone") + public static final SqlColumn phone = sysAdmin.phone; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2861501+08:00", comments="Source field: public.sys_admin.email") + public static final SqlColumn email = sysAdmin.email; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2861501+08:00", comments="Source field: public.sys_admin.job") + public static final SqlColumn job = sysAdmin.job; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2861501+08:00", comments="Source field: public.sys_admin.gender") + public static final SqlColumn gender = sysAdmin.gender; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2861501+08:00", comments="Source field: public.sys_admin.islock") + public static final SqlColumn islock = sysAdmin.islock; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2861501+08:00", comments="Source field: public.sys_admin.type") + public static final SqlColumn type = sysAdmin.type; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2861501+08:00", comments="Source field: public.sys_admin.sort") + public static final SqlColumn sort = sysAdmin.sort; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2861501+08:00", comments="Source field: public.sys_admin.cer_id") + public static final SqlColumn cer_id = sysAdmin.cer_id; + + /** + * Database Column Remarks: + * 公司ID,组织ID的最高级 + */ + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2861501+08:00", comments="Source field: public.sys_admin.company_id") + public static final SqlColumn company_id = sysAdmin.company_id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2861501+08:00", comments="Source Table: public.sys_admin") + public static final class SysAdmin extends AliasableSqlTable { + public final SqlColumn id = column("id", JDBCType.VARCHAR); + + public final SqlColumn org_id = column("org_id", JDBCType.VARCHAR); + + public final SqlColumn realname = column("realname", JDBCType.VARCHAR); + + public final SqlColumn username = column("username", JDBCType.VARCHAR); + + public final SqlColumn password = column("password", JDBCType.VARCHAR); + + public final SqlColumn phone = column("phone", JDBCType.VARCHAR); + + public final SqlColumn email = column("email", JDBCType.VARCHAR); + + public final SqlColumn job = column("job", JDBCType.VARCHAR); + + public final SqlColumn gender = column("gender", JDBCType.INTEGER); + + public final SqlColumn islock = column("islock", JDBCType.INTEGER); + + public final SqlColumn type = column("type", JDBCType.INTEGER); + + public final SqlColumn sort = column("sort", JDBCType.INTEGER); + + public final SqlColumn cer_id = column("cer_id", JDBCType.VARCHAR); + + public final SqlColumn company_id = column("company_id", JDBCType.VARCHAR); + + public SysAdmin() { + super("sys_admin", SysAdmin::new); + } + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/dao/support/SysAdminRoleDynamicSqlSupport.java b/src/main/java/jj/tech/paolu/repository/mybatis/dao/support/SysAdminRoleDynamicSqlSupport.java new file mode 100644 index 0000000..63bc7b7 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/dao/support/SysAdminRoleDynamicSqlSupport.java @@ -0,0 +1,33 @@ +package jj.tech.paolu.repository.mybatis.dao.support; + +import jakarta.annotation.Generated; +import java.sql.JDBCType; +import org.mybatis.dynamic.sql.AliasableSqlTable; +import org.mybatis.dynamic.sql.SqlColumn; + +public final class SysAdminRoleDynamicSqlSupport { + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.291149+08:00", comments="Source Table: public.sys_admin_role") + public static final SysAdminRole sysAdminRole = new SysAdminRole(); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.291149+08:00", comments="Source field: public.sys_admin_role.id") + public static final SqlColumn id = sysAdminRole.id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.291149+08:00", comments="Source field: public.sys_admin_role.adminid") + public static final SqlColumn adminid = sysAdminRole.adminid; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.291149+08:00", comments="Source field: public.sys_admin_role.roleid") + public static final SqlColumn roleid = sysAdminRole.roleid; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.291149+08:00", comments="Source Table: public.sys_admin_role") + public static final class SysAdminRole extends AliasableSqlTable { + public final SqlColumn id = column("id", JDBCType.VARCHAR); + + public final SqlColumn adminid = column("adminid", JDBCType.VARCHAR); + + public final SqlColumn roleid = column("roleid", JDBCType.VARCHAR); + + public SysAdminRole() { + super("sys_admin_role", SysAdminRole::new); + } + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/dao/support/SysAdminWeidDynamicSqlSupport.java b/src/main/java/jj/tech/paolu/repository/mybatis/dao/support/SysAdminWeidDynamicSqlSupport.java new file mode 100644 index 0000000..904ed72 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/dao/support/SysAdminWeidDynamicSqlSupport.java @@ -0,0 +1,58 @@ +package jj.tech.paolu.repository.mybatis.dao.support; + +import jakarta.annotation.Generated; +import java.sql.JDBCType; +import java.time.LocalDateTime; +import org.mybatis.dynamic.sql.AliasableSqlTable; +import org.mybatis.dynamic.sql.SqlColumn; + +public final class SysAdminWeidDynamicSqlSupport { + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.283154+08:00", comments="Source Table: public.sys_admin_weid") + public static final SysAdminWeid sysAdminWeid = new SysAdminWeid(); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2841505+08:00", comments="Source field: public.sys_admin_weid.id") + public static final SqlColumn id = sysAdminWeid.id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2841505+08:00", comments="Source field: public.sys_admin_weid.admin_id") + public static final SqlColumn admin_id = sysAdminWeid.admin_id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2841505+08:00", comments="Source field: public.sys_admin_weid.wid") + public static final SqlColumn wid = sysAdminWeid.wid; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2841505+08:00", comments="Source field: public.sys_admin_weid.wprivate_key") + public static final SqlColumn wprivate_key = sysAdminWeid.wprivate_key; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2841505+08:00", comments="Source field: public.sys_admin_weid.add_time") + public static final SqlColumn add_time = sysAdminWeid.add_time; + + /** + * Database Column Remarks: + * 存证哈希 + */ + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2841505+08:00", comments="Source field: public.sys_admin_weid.certificate_hash") + public static final SqlColumn certificate_hash = sysAdminWeid.certificate_hash; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2841505+08:00", comments="Source field: public.sys_admin_weid.chain_block") + public static final SqlColumn chain_block = sysAdminWeid.chain_block; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.283154+08:00", comments="Source Table: public.sys_admin_weid") + public static final class SysAdminWeid extends AliasableSqlTable { + public final SqlColumn id = column("id", JDBCType.VARCHAR); + + public final SqlColumn admin_id = column("admin_id", JDBCType.VARCHAR); + + public final SqlColumn wid = column("wid", JDBCType.VARCHAR); + + public final SqlColumn wprivate_key = column("wprivate_key", JDBCType.VARCHAR); + + public final SqlColumn add_time = column("add_time", JDBCType.TIMESTAMP); + + public final SqlColumn certificate_hash = column("certificate_hash", JDBCType.VARCHAR); + + public final SqlColumn chain_block = column("chain_block", JDBCType.VARCHAR); + + public SysAdminWeid() { + super("sys_admin_weid", SysAdminWeid::new); + } + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/dao/support/SysAreaDynamicSqlSupport.java b/src/main/java/jj/tech/paolu/repository/mybatis/dao/support/SysAreaDynamicSqlSupport.java new file mode 100644 index 0000000..1be2701 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/dao/support/SysAreaDynamicSqlSupport.java @@ -0,0 +1,53 @@ +package jj.tech.paolu.repository.mybatis.dao.support; + +import jakarta.annotation.Generated; +import java.sql.JDBCType; +import org.mybatis.dynamic.sql.AliasableSqlTable; +import org.mybatis.dynamic.sql.SqlColumn; + +public final class SysAreaDynamicSqlSupport { + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.314148+08:00", comments="Source Table: public.sys_area") + public static final SysArea sysArea = new SysArea(); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.314148+08:00", comments="Source field: public.sys_area.id") + public static final SqlColumn id = sysArea.id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.314148+08:00", comments="Source field: public.sys_area.level_code") + public static final SqlColumn level_code = sysArea.level_code; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.314148+08:00", comments="Source field: public.sys_area.parent_code") + public static final SqlColumn parent_code = sysArea.parent_code; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.314148+08:00", comments="Source field: public.sys_area.area_code") + public static final SqlColumn area_code = sysArea.area_code; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.314148+08:00", comments="Source field: public.sys_area.name") + public static final SqlColumn name = sysArea.name; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.314148+08:00", comments="Source field: public.sys_area.pid") + public static final SqlColumn pid = sysArea.pid; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.314148+08:00", comments="Source field: public.sys_area.pids") + public static final SqlColumn pids = sysArea.pids; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.314148+08:00", comments="Source Table: public.sys_area") + public static final class SysArea extends AliasableSqlTable { + public final SqlColumn id = column("id", JDBCType.VARCHAR); + + public final SqlColumn level_code = column("level_code", JDBCType.SMALLINT); + + public final SqlColumn parent_code = column("parent_code", JDBCType.VARCHAR); + + public final SqlColumn area_code = column("area_code", JDBCType.VARCHAR); + + public final SqlColumn name = column("name", JDBCType.VARCHAR); + + public final SqlColumn pid = column("pid", JDBCType.VARCHAR); + + public final SqlColumn pids = column("pids", JDBCType.VARCHAR); + + public SysArea() { + super("sys_area", SysArea::new); + } + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/dao/support/SysConfigDynamicSqlSupport.java b/src/main/java/jj/tech/paolu/repository/mybatis/dao/support/SysConfigDynamicSqlSupport.java new file mode 100644 index 0000000..7aff486 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/dao/support/SysConfigDynamicSqlSupport.java @@ -0,0 +1,54 @@ +package jj.tech.paolu.repository.mybatis.dao.support; + +import jakarta.annotation.Generated; +import java.sql.JDBCType; +import java.time.LocalDateTime; +import org.mybatis.dynamic.sql.AliasableSqlTable; +import org.mybatis.dynamic.sql.SqlColumn; + +public final class SysConfigDynamicSqlSupport { + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2821548+08:00", comments="Source Table: public.sys_config") + public static final SysConfig sysConfig = new SysConfig(); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2821548+08:00", comments="Source field: public.sys_config.id") + public static final SqlColumn id = sysConfig.id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2821548+08:00", comments="Source field: public.sys_config.subgroup") + public static final SqlColumn subgroup = sysConfig.subgroup; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2821548+08:00", comments="Source field: public.sys_config.keys") + public static final SqlColumn keys = sysConfig.keys; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2821548+08:00", comments="Source field: public.sys_config.val") + public static final SqlColumn val = sysConfig.val; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2821548+08:00", comments="Source field: public.sys_config.admin_id") + public static final SqlColumn admin_id = sysConfig.admin_id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2821548+08:00", comments="Source field: public.sys_config.adminname") + public static final SqlColumn adminname = sysConfig.adminname; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2821548+08:00", comments="Source field: public.sys_config.edittime") + public static final SqlColumn edittime = sysConfig.edittime; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2821548+08:00", comments="Source Table: public.sys_config") + public static final class SysConfig extends AliasableSqlTable { + public final SqlColumn id = column("id", JDBCType.VARCHAR); + + public final SqlColumn subgroup = column("subgroup", JDBCType.VARCHAR); + + public final SqlColumn keys = column("keys", JDBCType.VARCHAR); + + public final SqlColumn val = column("val", JDBCType.VARCHAR); + + public final SqlColumn admin_id = column("admin_id", JDBCType.VARCHAR); + + public final SqlColumn adminname = column("adminname", JDBCType.VARCHAR); + + public final SqlColumn edittime = column("edittime", JDBCType.TIMESTAMP); + + public SysConfig() { + super("sys_config", SysConfig::new); + } + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/dao/support/SysMenuDynamicSqlSupport.java b/src/main/java/jj/tech/paolu/repository/mybatis/dao/support/SysMenuDynamicSqlSupport.java new file mode 100644 index 0000000..dc61f93 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/dao/support/SysMenuDynamicSqlSupport.java @@ -0,0 +1,73 @@ +package jj.tech.paolu.repository.mybatis.dao.support; + +import jakarta.annotation.Generated; +import java.sql.JDBCType; +import org.mybatis.dynamic.sql.AliasableSqlTable; +import org.mybatis.dynamic.sql.SqlColumn; + +public final class SysMenuDynamicSqlSupport { + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3081477+08:00", comments="Source Table: public.sys_menu") + public static final SysMenu sysMenu = new SysMenu(); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3081477+08:00", comments="Source field: public.sys_menu.id") + public static final SqlColumn id = sysMenu.id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3081477+08:00", comments="Source field: public.sys_menu.parent_id") + public static final SqlColumn parent_id = sysMenu.parent_id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3081477+08:00", comments="Source field: public.sys_menu.level") + public static final SqlColumn level = sysMenu.level; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3081477+08:00", comments="Source field: public.sys_menu.name") + public static final SqlColumn name = sysMenu.name; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3081477+08:00", comments="Source field: public.sys_menu.types") + public static final SqlColumn types = sysMenu.types; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3081477+08:00", comments="Source field: public.sys_menu.url") + public static final SqlColumn url = sysMenu.url; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3081477+08:00", comments="Source field: public.sys_menu.icon") + public static final SqlColumn icon = sysMenu.icon; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3081477+08:00", comments="Source field: public.sys_menu.is_open") + public static final SqlColumn is_open = sysMenu.is_open; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.309148+08:00", comments="Source field: public.sys_menu.description") + public static final SqlColumn description = sysMenu.description; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.309148+08:00", comments="Source field: public.sys_menu.sort") + public static final SqlColumn sort = sysMenu.sort; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.309148+08:00", comments="Source field: public.sys_menu.parentpath") + public static final SqlColumn parentpath = sysMenu.parentpath; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3081477+08:00", comments="Source Table: public.sys_menu") + public static final class SysMenu extends AliasableSqlTable { + public final SqlColumn id = column("id", JDBCType.VARCHAR); + + public final SqlColumn parent_id = column("parent_id", JDBCType.VARCHAR); + + public final SqlColumn level = column("level", JDBCType.INTEGER); + + public final SqlColumn name = column("name", JDBCType.VARCHAR); + + public final SqlColumn types = column("types", JDBCType.VARCHAR); + + public final SqlColumn url = column("url", JDBCType.VARCHAR); + + public final SqlColumn icon = column("icon", JDBCType.VARCHAR); + + public final SqlColumn is_open = column("is_open", JDBCType.INTEGER); + + public final SqlColumn description = column("description", JDBCType.VARCHAR); + + public final SqlColumn sort = column("sort", JDBCType.INTEGER); + + public final SqlColumn parentpath = column("parentpath", JDBCType.VARCHAR); + + public SysMenu() { + super("sys_menu", SysMenu::new); + } + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/dao/support/SysOrgDynamicSqlSupport.java b/src/main/java/jj/tech/paolu/repository/mybatis/dao/support/SysOrgDynamicSqlSupport.java new file mode 100644 index 0000000..95908b4 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/dao/support/SysOrgDynamicSqlSupport.java @@ -0,0 +1,169 @@ +package jj.tech.paolu.repository.mybatis.dao.support; + +import jakarta.annotation.Generated; +import java.sql.JDBCType; +import java.time.LocalDateTime; +import org.mybatis.dynamic.sql.AliasableSqlTable; +import org.mybatis.dynamic.sql.SqlColumn; + +public final class SysOrgDynamicSqlSupport { + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3191521+08:00", comments="Source Table: public.sys_org") + public static final SysOrg sysOrg = new SysOrg(); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3191521+08:00", comments="Source field: public.sys_org.id") + public static final SqlColumn id = sysOrg.id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3191521+08:00", comments="Source field: public.sys_org.pid") + public static final SqlColumn pid = sysOrg.pid; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3191521+08:00", comments="Source field: public.sys_org.chinese_simple_name") + public static final SqlColumn chinese_simple_name = sysOrg.chinese_simple_name; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3191521+08:00", comments="Source field: public.sys_org.english_simple_name") + public static final SqlColumn english_simple_name = sysOrg.english_simple_name; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3191521+08:00", comments="Source field: public.sys_org.chinese_full_name") + public static final SqlColumn chinese_full_name = sysOrg.chinese_full_name; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3191521+08:00", comments="Source field: public.sys_org.english_full_name") + public static final SqlColumn english_full_name = sysOrg.english_full_name; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3191521+08:00", comments="Source field: public.sys_org.code") + public static final SqlColumn code = sysOrg.code; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3191521+08:00", comments="Source field: public.sys_org.sort") + public static final SqlColumn sort = sysOrg.sort; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3191521+08:00", comments="Source field: public.sys_org.status") + public static final SqlColumn status = sysOrg.status; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3191521+08:00", comments="Source field: public.sys_org.is_company_department") + public static final SqlColumn is_company_department = sysOrg.is_company_department; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3191521+08:00", comments="Source field: public.sys_org.enterprise_legal_person") + public static final SqlColumn enterprise_legal_person = sysOrg.enterprise_legal_person; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3191521+08:00", comments="Source field: public.sys_org.contact_person") + public static final SqlColumn contact_person = sysOrg.contact_person; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3201506+08:00", comments="Source field: public.sys_org.contact_phone") + public static final SqlColumn contact_phone = sysOrg.contact_phone; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3201506+08:00", comments="Source field: public.sys_org.remark") + public static final SqlColumn remark = sysOrg.remark; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3201506+08:00", comments="Source field: public.sys_org.create_time") + public static final SqlColumn create_time = sysOrg.create_time; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3201506+08:00", comments="Source field: public.sys_org.create_user") + public static final SqlColumn create_user = sysOrg.create_user; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3201506+08:00", comments="Source field: public.sys_org.update_time") + public static final SqlColumn update_time = sysOrg.update_time; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3201506+08:00", comments="Source field: public.sys_org.update_user") + public static final SqlColumn update_user = sysOrg.update_user; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3201506+08:00", comments="Source field: public.sys_org.name") + public static final SqlColumn name = sysOrg.name; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3201506+08:00", comments="Source field: public.sys_org.industry_name") + public static final SqlColumn industry_name = sysOrg.industry_name; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3201506+08:00", comments="Source field: public.sys_org.industry_code") + public static final SqlColumn industry_code = sysOrg.industry_code; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3201506+08:00", comments="Source field: public.sys_org.province_code") + public static final SqlColumn province_code = sysOrg.province_code; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3201506+08:00", comments="Source field: public.sys_org.city_code") + public static final SqlColumn city_code = sysOrg.city_code; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3201506+08:00", comments="Source field: public.sys_org.area_code") + public static final SqlColumn area_code = sysOrg.area_code; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3201506+08:00", comments="Source field: public.sys_org.addr") + public static final SqlColumn addr = sysOrg.addr; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3201506+08:00", comments="Source field: public.sys_org.uscc") + public static final SqlColumn uscc = sysOrg.uscc; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3201506+08:00", comments="Source field: public.sys_org.org_type") + public static final SqlColumn org_type = sysOrg.org_type; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3201506+08:00", comments="Source field: public.sys_org.is_archives_dep") + public static final SqlColumn is_archives_dep = sysOrg.is_archives_dep; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3201506+08:00", comments="Source field: public.sys_org.cer_id") + public static final SqlColumn cer_id = sysOrg.cer_id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3201506+08:00", comments="Source field: public.sys_org.is_forbidden") + public static final SqlColumn is_forbidden = sysOrg.is_forbidden; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3191521+08:00", comments="Source Table: public.sys_org") + public static final class SysOrg extends AliasableSqlTable { + public final SqlColumn id = column("id", JDBCType.VARCHAR); + + public final SqlColumn pid = column("pid", JDBCType.VARCHAR); + + public final SqlColumn chinese_simple_name = column("chinese_simple_name", JDBCType.VARCHAR); + + public final SqlColumn english_simple_name = column("english_simple_name", JDBCType.VARCHAR); + + public final SqlColumn chinese_full_name = column("chinese_full_name", JDBCType.VARCHAR); + + public final SqlColumn english_full_name = column("english_full_name", JDBCType.VARCHAR); + + public final SqlColumn code = column("code", JDBCType.VARCHAR); + + public final SqlColumn sort = column("sort", JDBCType.INTEGER); + + public final SqlColumn status = column("status", JDBCType.INTEGER); + + public final SqlColumn is_company_department = column("is_company_department", JDBCType.INTEGER); + + public final SqlColumn enterprise_legal_person = column("enterprise_legal_person", JDBCType.VARCHAR); + + public final SqlColumn contact_person = column("contact_person", JDBCType.VARCHAR); + + public final SqlColumn contact_phone = column("contact_phone", JDBCType.VARCHAR); + + public final SqlColumn remark = column("remark", JDBCType.VARCHAR); + + public final SqlColumn create_time = column("create_time", JDBCType.TIMESTAMP); + + public final SqlColumn create_user = column("create_user", JDBCType.VARCHAR); + + public final SqlColumn update_time = column("update_time", JDBCType.TIMESTAMP); + + public final SqlColumn update_user = column("update_user", JDBCType.VARCHAR); + + public final SqlColumn name = column("name", JDBCType.VARCHAR); + + public final SqlColumn industry_name = column("industry_name", JDBCType.VARCHAR); + + public final SqlColumn industry_code = column("industry_code", JDBCType.VARCHAR); + + public final SqlColumn province_code = column("province_code", JDBCType.VARCHAR); + + public final SqlColumn city_code = column("city_code", JDBCType.VARCHAR); + + public final SqlColumn area_code = column("area_code", JDBCType.VARCHAR); + + public final SqlColumn addr = column("addr", JDBCType.VARCHAR); + + public final SqlColumn uscc = column("uscc", JDBCType.VARCHAR); + + public final SqlColumn org_type = column("org_type", JDBCType.VARCHAR); + + public final SqlColumn is_archives_dep = column("is_archives_dep", JDBCType.INTEGER); + + public final SqlColumn cer_id = column("cer_id", JDBCType.VARCHAR); + + public final SqlColumn is_forbidden = column("is_forbidden", JDBCType.INTEGER); + + public SysOrg() { + super("sys_org", SysOrg::new); + } + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/dao/support/SysRoleDynamicSqlSupport.java b/src/main/java/jj/tech/paolu/repository/mybatis/dao/support/SysRoleDynamicSqlSupport.java new file mode 100644 index 0000000..ea9d0b6 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/dao/support/SysRoleDynamicSqlSupport.java @@ -0,0 +1,63 @@ +package jj.tech.paolu.repository.mybatis.dao.support; + +import jakarta.annotation.Generated; +import java.sql.JDBCType; +import org.mybatis.dynamic.sql.AliasableSqlTable; +import org.mybatis.dynamic.sql.SqlColumn; + +public final class SysRoleDynamicSqlSupport { + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2711525+08:00", comments="Source Table: public.sys_role") + public static final SysRole sysRole = new SysRole(); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2711525+08:00", comments="Source field: public.sys_role.id") + public static final SqlColumn id = sysRole.id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2711525+08:00", comments="Source field: public.sys_role.rolename") + public static final SqlColumn rolename = sysRole.rolename; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2711525+08:00", comments="Source field: public.sys_role.describe") + public static final SqlColumn describe = sysRole.describe; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2711525+08:00", comments="Source field: public.sys_role.sort") + public static final SqlColumn sort = sysRole.sort; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2711525+08:00", comments="Source field: public.sys_role.is_open") + public static final SqlColumn is_open = sysRole.is_open; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2711525+08:00", comments="Source field: public.sys_role.sign_name") + public static final SqlColumn sign_name = sysRole.sign_name; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2711525+08:00", comments="Source field: public.sys_role.sign_id") + public static final SqlColumn sign_id = sysRole.sign_id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2711525+08:00", comments="Source field: public.sys_role.company_id") + public static final SqlColumn company_id = sysRole.company_id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2711525+08:00", comments="Source field: public.sys_role.company_name") + public static final SqlColumn company_name = sysRole.company_name; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2711525+08:00", comments="Source Table: public.sys_role") + public static final class SysRole extends AliasableSqlTable { + public final SqlColumn id = column("id", JDBCType.VARCHAR); + + public final SqlColumn rolename = column("rolename", JDBCType.VARCHAR); + + public final SqlColumn describe = column("describe", JDBCType.VARCHAR); + + public final SqlColumn sort = column("sort", JDBCType.INTEGER); + + public final SqlColumn is_open = column("is_open", JDBCType.INTEGER); + + public final SqlColumn sign_name = column("sign_name", JDBCType.VARCHAR); + + public final SqlColumn sign_id = column("sign_id", JDBCType.VARCHAR); + + public final SqlColumn company_id = column("company_id", JDBCType.VARCHAR); + + public final SqlColumn company_name = column("company_name", JDBCType.VARCHAR); + + public SysRole() { + super("sys_role", SysRole::new); + } + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/dao/support/SysRoleMenuDynamicSqlSupport.java b/src/main/java/jj/tech/paolu/repository/mybatis/dao/support/SysRoleMenuDynamicSqlSupport.java new file mode 100644 index 0000000..2ee66b9 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/dao/support/SysRoleMenuDynamicSqlSupport.java @@ -0,0 +1,33 @@ +package jj.tech.paolu.repository.mybatis.dao.support; + +import jakarta.annotation.Generated; +import java.sql.JDBCType; +import org.mybatis.dynamic.sql.AliasableSqlTable; +import org.mybatis.dynamic.sql.SqlColumn; + +public final class SysRoleMenuDynamicSqlSupport { + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2901497+08:00", comments="Source Table: public.sys_role_menu") + public static final SysRoleMenu sysRoleMenu = new SysRoleMenu(); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2901497+08:00", comments="Source field: public.sys_role_menu.id") + public static final SqlColumn id = sysRoleMenu.id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2901497+08:00", comments="Source field: public.sys_role_menu.roleid") + public static final SqlColumn roleid = sysRoleMenu.roleid; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2901497+08:00", comments="Source field: public.sys_role_menu.menuid") + public static final SqlColumn menuid = sysRoleMenu.menuid; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2901497+08:00", comments="Source Table: public.sys_role_menu") + public static final class SysRoleMenu extends AliasableSqlTable { + public final SqlColumn id = column("id", JDBCType.VARCHAR); + + public final SqlColumn roleid = column("roleid", JDBCType.VARCHAR); + + public final SqlColumn menuid = column("menuid", JDBCType.VARCHAR); + + public SysRoleMenu() { + super("sys_role_menu", SysRoleMenu::new); + } + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/dao/support/SysRoleSignDynamicSqlSupport.java b/src/main/java/jj/tech/paolu/repository/mybatis/dao/support/SysRoleSignDynamicSqlSupport.java new file mode 100644 index 0000000..a0bdd90 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/dao/support/SysRoleSignDynamicSqlSupport.java @@ -0,0 +1,33 @@ +package jj.tech.paolu.repository.mybatis.dao.support; + +import jakarta.annotation.Generated; +import java.sql.JDBCType; +import org.mybatis.dynamic.sql.AliasableSqlTable; +import org.mybatis.dynamic.sql.SqlColumn; + +public final class SysRoleSignDynamicSqlSupport { + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.300152+08:00", comments="Source Table: public.sys_role_sign") + public static final SysRoleSign sysRoleSign = new SysRoleSign(); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.300152+08:00", comments="Source field: public.sys_role_sign.id") + public static final SqlColumn id = sysRoleSign.id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.300152+08:00", comments="Source field: public.sys_role_sign.sign_name") + public static final SqlColumn sign_name = sysRoleSign.sign_name; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.300152+08:00", comments="Source field: public.sys_role_sign.sign_code") + public static final SqlColumn sign_code = sysRoleSign.sign_code; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.300152+08:00", comments="Source Table: public.sys_role_sign") + public static final class SysRoleSign extends AliasableSqlTable { + public final SqlColumn id = column("id", JDBCType.VARCHAR); + + public final SqlColumn sign_name = column("sign_name", JDBCType.VARCHAR); + + public final SqlColumn sign_code = column("sign_code", JDBCType.VARCHAR); + + public SysRoleSign() { + super("sys_role_sign", SysRoleSign::new); + } + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/dao/support/SysRoleUrlDynamicSqlSupport.java b/src/main/java/jj/tech/paolu/repository/mybatis/dao/support/SysRoleUrlDynamicSqlSupport.java new file mode 100644 index 0000000..bb8ba21 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/dao/support/SysRoleUrlDynamicSqlSupport.java @@ -0,0 +1,38 @@ +package jj.tech.paolu.repository.mybatis.dao.support; + +import jakarta.annotation.Generated; +import java.sql.JDBCType; +import org.mybatis.dynamic.sql.AliasableSqlTable; +import org.mybatis.dynamic.sql.SqlColumn; + +public final class SysRoleUrlDynamicSqlSupport { + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3231506+08:00", comments="Source Table: public.sys_role_url") + public static final SysRoleUrl sysRoleUrl = new SysRoleUrl(); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3231506+08:00", comments="Source field: public.sys_role_url.id") + public static final SqlColumn id = sysRoleUrl.id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3231506+08:00", comments="Source field: public.sys_role_url.roleid") + public static final SqlColumn roleid = sysRoleUrl.roleid; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3231506+08:00", comments="Source field: public.sys_role_url.url") + public static final SqlColumn url = sysRoleUrl.url; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3231506+08:00", comments="Source field: public.sys_role_url.urltypes") + public static final SqlColumn urltypes = sysRoleUrl.urltypes; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3231506+08:00", comments="Source Table: public.sys_role_url") + public static final class SysRoleUrl extends AliasableSqlTable { + public final SqlColumn id = column("id", JDBCType.VARCHAR); + + public final SqlColumn roleid = column("roleid", JDBCType.VARCHAR); + + public final SqlColumn url = column("url", JDBCType.VARCHAR); + + public final SqlColumn urltypes = column("urltypes", JDBCType.INTEGER); + + public SysRoleUrl() { + super("sys_role_url", SysRoleUrl::new); + } + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/dao/support/SysUrlsDynamicSqlSupport.java b/src/main/java/jj/tech/paolu/repository/mybatis/dao/support/SysUrlsDynamicSqlSupport.java new file mode 100644 index 0000000..9794303 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/dao/support/SysUrlsDynamicSqlSupport.java @@ -0,0 +1,53 @@ +package jj.tech.paolu.repository.mybatis.dao.support; + +import jakarta.annotation.Generated; +import java.sql.JDBCType; +import org.mybatis.dynamic.sql.AliasableSqlTable; +import org.mybatis.dynamic.sql.SqlColumn; + +public final class SysUrlsDynamicSqlSupport { + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3011508+08:00", comments="Source Table: public.sys_urls") + public static final SysUrls sysUrls = new SysUrls(); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3011508+08:00", comments="Source field: public.sys_urls.id") + public static final SqlColumn id = sysUrls.id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3011508+08:00", comments="Source field: public.sys_urls.pid") + public static final SqlColumn pid = sysUrls.pid; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3011508+08:00", comments="Source field: public.sys_urls.types") + public static final SqlColumn types = sysUrls.types; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3011508+08:00", comments="Source field: public.sys_urls.level") + public static final SqlColumn level = sysUrls.level; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3011508+08:00", comments="Source field: public.sys_urls.url") + public static final SqlColumn url = sysUrls.url; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3011508+08:00", comments="Source field: public.sys_urls.name") + public static final SqlColumn name = sysUrls.name; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3011508+08:00", comments="Source field: public.sys_urls.method") + public static final SqlColumn method = sysUrls.method; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3011508+08:00", comments="Source Table: public.sys_urls") + public static final class SysUrls extends AliasableSqlTable { + public final SqlColumn id = column("id", JDBCType.VARCHAR); + + public final SqlColumn pid = column("pid", JDBCType.VARCHAR); + + public final SqlColumn types = column("types", JDBCType.INTEGER); + + public final SqlColumn level = column("level", JDBCType.INTEGER); + + public final SqlColumn url = column("url", JDBCType.VARCHAR); + + public final SqlColumn name = column("name", JDBCType.VARCHAR); + + public final SqlColumn method = column("method", JDBCType.VARCHAR); + + public SysUrls() { + super("sys_urls", SysUrls::new); + } + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/dao/support/WbDirectoryDynamicSqlSupport.java b/src/main/java/jj/tech/paolu/repository/mybatis/dao/support/WbDirectoryDynamicSqlSupport.java new file mode 100644 index 0000000..1d6c925 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/dao/support/WbDirectoryDynamicSqlSupport.java @@ -0,0 +1,58 @@ +package jj.tech.paolu.repository.mybatis.dao.support; + +import jakarta.annotation.Generated; +import java.sql.JDBCType; +import org.mybatis.dynamic.sql.AliasableSqlTable; +import org.mybatis.dynamic.sql.SqlColumn; + +public final class WbDirectoryDynamicSqlSupport { + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6350131+08:00", comments="Source Table: public.wb_directory") + public static final WbDirectory wbDirectory = new WbDirectory(); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6350131+08:00", comments="Source field: public.wb_directory.kid") + public static final SqlColumn kid = wbDirectory.kid; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6350131+08:00", comments="Source field: public.wb_directory.parentID") + public static final SqlColumn parentID = wbDirectory.parentID; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6350131+08:00", comments="Source field: public.wb_directory.time_stamp") + public static final SqlColumn time_stamp = wbDirectory.time_stamp; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6350131+08:00", comments="Source field: public.wb_directory.sortOrder") + public static final SqlColumn sortOrder = wbDirectory.sortOrder; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6350131+08:00", comments="Source field: public.wb_directory.tname") + public static final SqlColumn tname = wbDirectory.tname; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6350131+08:00", comments="Source field: public.wb_directory.subjoin") + public static final SqlColumn subjoin = wbDirectory.subjoin; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6350131+08:00", comments="Source field: public.wb_directory.isdel") + public static final SqlColumn isdel = wbDirectory.isdel; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6350131+08:00", comments="Source field: public.wb_directory.wbs_id") + public static final SqlColumn wbs_id = wbDirectory.wbs_id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6350131+08:00", comments="Source Table: public.wb_directory") + public static final class WbDirectory extends AliasableSqlTable { + public final SqlColumn kid = column("kid", JDBCType.VARCHAR); + + public final SqlColumn parentID = column("\"parentID\"", JDBCType.VARCHAR); + + public final SqlColumn time_stamp = column("time_stamp", JDBCType.VARCHAR); + + public final SqlColumn sortOrder = column("\"sortOrder\"", JDBCType.INTEGER); + + public final SqlColumn tname = column("tname", JDBCType.VARCHAR); + + public final SqlColumn subjoin = column("subjoin", JDBCType.INTEGER); + + public final SqlColumn isdel = column("isdel", JDBCType.INTEGER); + + public final SqlColumn wbs_id = column("wbs_id", JDBCType.INTEGER); + + public WbDirectory() { + super("wb_directory", WbDirectory::new); + } + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/dao/support/WbDirectoryFileDynamicSqlSupport.java b/src/main/java/jj/tech/paolu/repository/mybatis/dao/support/WbDirectoryFileDynamicSqlSupport.java new file mode 100644 index 0000000..281e404 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/dao/support/WbDirectoryFileDynamicSqlSupport.java @@ -0,0 +1,123 @@ +package jj.tech.paolu.repository.mybatis.dao.support; + +import jakarta.annotation.Generated; +import java.sql.JDBCType; +import org.mybatis.dynamic.sql.AliasableSqlTable; +import org.mybatis.dynamic.sql.SqlColumn; + +public final class WbDirectoryFileDynamicSqlSupport { + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6320134+08:00", comments="Source Table: public.wb_directory_file") + public static final WbDirectoryFile wbDirectoryFile = new WbDirectoryFile(); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6320134+08:00", comments="Source field: public.wb_directory_file.kid") + public static final SqlColumn kid = wbDirectoryFile.kid; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6320134+08:00", comments="Source field: public.wb_directory_file.sortID") + public static final SqlColumn sortID = wbDirectoryFile.sortID; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6320134+08:00", comments="Source field: public.wb_directory_file.fileSuper") + public static final SqlColumn fileSuper = wbDirectoryFile.fileSuper; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6320134+08:00", comments="Source field: public.wb_directory_file.fileCount") + public static final SqlColumn fileCount = wbDirectoryFile.fileCount; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6320134+08:00", comments="Source field: public.wb_directory_file.dutyPerson") + public static final SqlColumn dutyPerson = wbDirectoryFile.dutyPerson; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6320134+08:00", comments="Source field: public.wb_directory_file.eWeaveDate") + public static final SqlColumn eWeaveDate = wbDirectoryFile.eWeaveDate; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6320134+08:00", comments="Source field: public.wb_directory_file.filePage") + public static final SqlColumn filePage = wbDirectoryFile.filePage; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6320134+08:00", comments="Source field: public.wb_directory_file.sortOrder") + public static final SqlColumn sortOrder = wbDirectoryFile.sortOrder; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6320134+08:00", comments="Source field: public.wb_directory_file.bPeg") + public static final SqlColumn bPeg = wbDirectoryFile.bPeg; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6320134+08:00", comments="Source field: public.wb_directory_file.ePeg") + public static final SqlColumn ePeg = wbDirectoryFile.ePeg; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6330132+08:00", comments="Source field: public.wb_directory_file.fileNum") + public static final SqlColumn fileNum = wbDirectoryFile.fileNum; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6330132+08:00", comments="Source field: public.wb_directory_file.remark") + public static final SqlColumn remark = wbDirectoryFile.remark; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6330132+08:00", comments="Source field: public.wb_directory_file.recordNum") + public static final SqlColumn recordNum = wbDirectoryFile.recordNum; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6330132+08:00", comments="Source field: public.wb_directory_file.pieceNumber") + public static final SqlColumn pieceNumber = wbDirectoryFile.pieceNumber; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6330132+08:00", comments="Source field: public.wb_directory_file.addDate") + public static final SqlColumn addDate = wbDirectoryFile.addDate; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6330132+08:00", comments="Source field: public.wb_directory_file.editDate") + public static final SqlColumn editDate = wbDirectoryFile.editDate; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6330132+08:00", comments="Source field: public.wb_directory_file.time_stamp") + public static final SqlColumn time_stamp = wbDirectoryFile.time_stamp; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6330132+08:00", comments="Source field: public.wb_directory_file.isDel") + public static final SqlColumn isDel = wbDirectoryFile.isDel; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6330132+08:00", comments="Source field: public.wb_directory_file.catalogPdfURL") + public static final SqlColumn catalogPdfURL = wbDirectoryFile.catalogPdfURL; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6330132+08:00", comments="Source field: public.wb_directory_file.signTag") + public static final SqlColumn signTag = wbDirectoryFile.signTag; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6330132+08:00", comments="Source field: public.wb_directory_file.collectTag") + public static final SqlColumn collectTag = wbDirectoryFile.collectTag; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6320134+08:00", comments="Source Table: public.wb_directory_file") + public static final class WbDirectoryFile extends AliasableSqlTable { + public final SqlColumn kid = column("kid", JDBCType.VARCHAR); + + public final SqlColumn sortID = column("\"sortID\"", JDBCType.VARCHAR); + + public final SqlColumn fileSuper = column("\"fileSuper\"", JDBCType.VARCHAR); + + public final SqlColumn fileCount = column("\"fileCount\"", JDBCType.INTEGER); + + public final SqlColumn dutyPerson = column("\"dutyPerson\"", JDBCType.VARCHAR); + + public final SqlColumn eWeaveDate = column("\"eWeaveDate\"", JDBCType.VARCHAR); + + public final SqlColumn filePage = column("\"filePage\"", JDBCType.INTEGER); + + public final SqlColumn sortOrder = column("\"sortOrder\"", JDBCType.VARCHAR); + + public final SqlColumn bPeg = column("\"bPeg\"", JDBCType.VARCHAR); + + public final SqlColumn ePeg = column("\"ePeg\"", JDBCType.VARCHAR); + + public final SqlColumn fileNum = column("\"fileNum\"", JDBCType.VARCHAR); + + public final SqlColumn remark = column("remark", JDBCType.VARCHAR); + + public final SqlColumn recordNum = column("\"recordNum\"", JDBCType.VARCHAR); + + public final SqlColumn pieceNumber = column("\"pieceNumber\"", JDBCType.VARCHAR); + + public final SqlColumn addDate = column("\"addDate\"", JDBCType.VARCHAR); + + public final SqlColumn editDate = column("\"editDate\"", JDBCType.VARCHAR); + + public final SqlColumn time_stamp = column("time_stamp", JDBCType.VARCHAR); + + public final SqlColumn isDel = column("\"isDel\"", JDBCType.INTEGER); + + public final SqlColumn catalogPdfURL = column("\"catalogPdfURL\"", JDBCType.VARCHAR); + + public final SqlColumn signTag = column("\"signTag\"", JDBCType.VARCHAR); + + public final SqlColumn collectTag = column("\"collectTag\"", JDBCType.VARCHAR); + + public WbDirectoryFile() { + super("wb_directory_file", WbDirectoryFile::new); + } + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/dao/support/WbFileDynamicSqlSupport.java b/src/main/java/jj/tech/paolu/repository/mybatis/dao/support/WbFileDynamicSqlSupport.java new file mode 100644 index 0000000..afda72e --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/dao/support/WbFileDynamicSqlSupport.java @@ -0,0 +1,103 @@ +package jj.tech.paolu.repository.mybatis.dao.support; + +import jakarta.annotation.Generated; +import java.sql.JDBCType; +import org.mybatis.dynamic.sql.AliasableSqlTable; +import org.mybatis.dynamic.sql.SqlColumn; + +public final class WbFileDynamicSqlSupport { + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6102916+08:00", comments="Source Table: public.wb_file") + public static final WbFile wbFile = new WbFile(); + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6113483+08:00", comments="Source field: public.wb_file.kid") + public static final SqlColumn kid = wbFile.kid; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6123918+08:00", comments="Source field: public.wb_file.catalogID") + public static final SqlColumn catalogID = wbFile.catalogID; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6123918+08:00", comments="Source field: public.wb_file.tableName") + public static final SqlColumn tableName = wbFile.tableName; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6123918+08:00", comments="Source field: public.wb_file.annexName") + public static final SqlColumn annexName = wbFile.annexName; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6123918+08:00", comments="Source field: public.wb_file.projectName") + public static final SqlColumn projectName = wbFile.projectName; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6123918+08:00", comments="Source field: public.wb_file.eweaveDate") + public static final SqlColumn eweaveDate = wbFile.eweaveDate; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6123918+08:00", comments="Source field: public.wb_file.checkDate") + public static final SqlColumn checkDate = wbFile.checkDate; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6123918+08:00", comments="Source field: public.wb_file.annexPage") + public static final SqlColumn annexPage = wbFile.annexPage; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6123918+08:00", comments="Source field: public.wb_file.sortOrder") + public static final SqlColumn sortOrder = wbFile.sortOrder; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6123918+08:00", comments="Source field: public.wb_file.fileFrom") + public static final SqlColumn fileFrom = wbFile.fileFrom; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6123918+08:00", comments="Source field: public.wb_file.archivestag") + public static final SqlColumn archivestag = wbFile.archivestag; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6123918+08:00", comments="Source field: public.wb_file.addDate") + public static final SqlColumn addDate = wbFile.addDate; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6123918+08:00", comments="Source field: public.wb_file.editDate") + public static final SqlColumn editDate = wbFile.editDate; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6123918+08:00", comments="Source field: public.wb_file.time_stamp") + public static final SqlColumn time_stamp = wbFile.time_stamp; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6123918+08:00", comments="Source field: public.wb_file.isDel") + public static final SqlColumn isDel = wbFile.isDel; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6123918+08:00", comments="Source field: public.wb_file.downURL") + public static final SqlColumn downURL = wbFile.downURL; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6123918+08:00", comments="Source field: public.wb_file.filesize") + public static final SqlColumn filesize = wbFile.filesize; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6113483+08:00", comments="Source Table: public.wb_file") + public static final class WbFile extends AliasableSqlTable { + public final SqlColumn kid = column("kid", JDBCType.VARCHAR); + + public final SqlColumn catalogID = column("\"catalogID\"", JDBCType.VARCHAR); + + public final SqlColumn tableName = column("\"tableName\"", JDBCType.VARCHAR); + + public final SqlColumn annexName = column("\"annexName\"", JDBCType.VARCHAR); + + public final SqlColumn projectName = column("\"projectName\"", JDBCType.VARCHAR); + + public final SqlColumn eweaveDate = column("\"eweaveDate\"", JDBCType.VARCHAR); + + public final SqlColumn checkDate = column("\"checkDate\"", JDBCType.VARCHAR); + + public final SqlColumn annexPage = column("\"annexPage\"", JDBCType.INTEGER); + + public final SqlColumn sortOrder = column("\"sortOrder\"", JDBCType.VARCHAR); + + public final SqlColumn fileFrom = column("\"fileFrom\"", JDBCType.VARCHAR); + + public final SqlColumn archivestag = column("\"archivestag\"", JDBCType.VARCHAR); + + public final SqlColumn addDate = column("\"addDate\"", JDBCType.VARCHAR); + + public final SqlColumn editDate = column("\"editDate\"", JDBCType.VARCHAR); + + public final SqlColumn time_stamp = column("time_stamp", JDBCType.VARCHAR); + + public final SqlColumn isDel = column("\"isDel\"", JDBCType.INTEGER); + + public final SqlColumn downURL = column("\"downURL\"", JDBCType.VARCHAR); + + public final SqlColumn filesize = column("filesize", JDBCType.INTEGER); + + public WbFile() { + super("wb_file", WbFile::new); + } + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/entity/ArchiveSynLog.java b/src/main/java/jj/tech/paolu/repository/mybatis/entity/ArchiveSynLog.java new file mode 100644 index 0000000..71e30ed --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/entity/ArchiveSynLog.java @@ -0,0 +1,182 @@ +package jj.tech.paolu.repository.mybatis.entity; + +import jakarta.annotation.Generated; +import java.time.LocalDateTime; + +/** + * Database Table Remarks: + * 从电子档案系统同步档案目录数据的过程日志 + * + * This class was generated by MyBatis Generator. + * This class corresponds to the database table public.archive_syn_log + */ +public class ArchiveSynLog { + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.28715+08:00", comments="Source field: public.archive_syn_log.id") + private String id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.28715+08:00", comments="Source field: public.archive_syn_log.start_time") + private LocalDateTime start_time; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.28715+08:00", comments="Source field: public.archive_syn_log.insert_dir_count") + private Long insert_dir_count; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.28715+08:00", comments="Source field: public.archive_syn_log.update_dir_count") + private Long update_dir_count; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.28715+08:00", comments="Source field: public.archive_syn_log.insert_dirfile_count") + private Long insert_dirfile_count; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.28715+08:00", comments="Source field: public.archive_syn_log.update_dirfile_count") + private Long update_dirfile_count; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.28715+08:00", comments="Source field: public.archive_syn_log.insert_file_count") + private Long insert_file_count; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.28715+08:00", comments="Source field: public.archive_syn_log.update_file_count") + private Long update_file_count; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2881514+08:00", comments="Source field: public.archive_syn_log.description") + private String description; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2881514+08:00", comments="Source field: public.archive_syn_log.run_result") + private String run_result; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2881514+08:00", comments="Source field: public.archive_syn_log.update_timestamp") + private Long update_timestamp; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2881514+08:00", comments="Source field: public.archive_syn_log.next_update_timestamp") + private Long next_update_timestamp; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2881514+08:00", comments="Source field: public.archive_syn_log.end_time") + private LocalDateTime end_time; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.28715+08:00", comments="Source field: public.archive_syn_log.id") + public String getId() { + return id; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.28715+08:00", comments="Source field: public.archive_syn_log.id") + public void setId(String id) { + this.id = id == null ? null : id.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.28715+08:00", comments="Source field: public.archive_syn_log.start_time") + public LocalDateTime getStart_time() { + return start_time; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.28715+08:00", comments="Source field: public.archive_syn_log.start_time") + public void setStart_time(LocalDateTime start_time) { + this.start_time = start_time; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.28715+08:00", comments="Source field: public.archive_syn_log.insert_dir_count") + public Long getInsert_dir_count() { + return insert_dir_count; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.28715+08:00", comments="Source field: public.archive_syn_log.insert_dir_count") + public void setInsert_dir_count(Long insert_dir_count) { + this.insert_dir_count = insert_dir_count; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.28715+08:00", comments="Source field: public.archive_syn_log.update_dir_count") + public Long getUpdate_dir_count() { + return update_dir_count; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.28715+08:00", comments="Source field: public.archive_syn_log.update_dir_count") + public void setUpdate_dir_count(Long update_dir_count) { + this.update_dir_count = update_dir_count; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.28715+08:00", comments="Source field: public.archive_syn_log.insert_dirfile_count") + public Long getInsert_dirfile_count() { + return insert_dirfile_count; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.28715+08:00", comments="Source field: public.archive_syn_log.insert_dirfile_count") + public void setInsert_dirfile_count(Long insert_dirfile_count) { + this.insert_dirfile_count = insert_dirfile_count; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.28715+08:00", comments="Source field: public.archive_syn_log.update_dirfile_count") + public Long getUpdate_dirfile_count() { + return update_dirfile_count; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.28715+08:00", comments="Source field: public.archive_syn_log.update_dirfile_count") + public void setUpdate_dirfile_count(Long update_dirfile_count) { + this.update_dirfile_count = update_dirfile_count; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.28715+08:00", comments="Source field: public.archive_syn_log.insert_file_count") + public Long getInsert_file_count() { + return insert_file_count; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.28715+08:00", comments="Source field: public.archive_syn_log.insert_file_count") + public void setInsert_file_count(Long insert_file_count) { + this.insert_file_count = insert_file_count; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.28715+08:00", comments="Source field: public.archive_syn_log.update_file_count") + public Long getUpdate_file_count() { + return update_file_count; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2881514+08:00", comments="Source field: public.archive_syn_log.update_file_count") + public void setUpdate_file_count(Long update_file_count) { + this.update_file_count = update_file_count; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2881514+08:00", comments="Source field: public.archive_syn_log.description") + public String getDescription() { + return description; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2881514+08:00", comments="Source field: public.archive_syn_log.description") + public void setDescription(String description) { + this.description = description == null ? null : description.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2881514+08:00", comments="Source field: public.archive_syn_log.run_result") + public String getRun_result() { + return run_result; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2881514+08:00", comments="Source field: public.archive_syn_log.run_result") + public void setRun_result(String run_result) { + this.run_result = run_result == null ? null : run_result.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2881514+08:00", comments="Source field: public.archive_syn_log.update_timestamp") + public Long getUpdate_timestamp() { + return update_timestamp; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2881514+08:00", comments="Source field: public.archive_syn_log.update_timestamp") + public void setUpdate_timestamp(Long update_timestamp) { + this.update_timestamp = update_timestamp; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2881514+08:00", comments="Source field: public.archive_syn_log.next_update_timestamp") + public Long getNext_update_timestamp() { + return next_update_timestamp; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2881514+08:00", comments="Source field: public.archive_syn_log.next_update_timestamp") + public void setNext_update_timestamp(Long next_update_timestamp) { + this.next_update_timestamp = next_update_timestamp; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2881514+08:00", comments="Source field: public.archive_syn_log.end_time") + public LocalDateTime getEnd_time() { + return end_time; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2881514+08:00", comments="Source field: public.archive_syn_log.end_time") + public void setEnd_time(LocalDateTime end_time) { + this.end_time = end_time; + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/entity/ArchiveSynLogDetail.java b/src/main/java/jj/tech/paolu/repository/mybatis/entity/ArchiveSynLogDetail.java new file mode 100644 index 0000000..67aee33 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/entity/ArchiveSynLogDetail.java @@ -0,0 +1,91 @@ +package jj.tech.paolu.repository.mybatis.entity; + +import jakarta.annotation.Generated; +import java.time.LocalDateTime; + +/** + * Database Table Remarks: + * 从电子档案系统同步数据的详情记录,记录新增了哪些数据,修改了哪些数据。因为使用isDel属性来记录删除,所以删除了数据也归属到更新中 + * + * This class was generated by MyBatis Generator. + * This class corresponds to the database table public.archive_syn_log_detail + */ +public class ArchiveSynLogDetail { + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T11:36:17.6406196+08:00", comments="Source field: public.archive_syn_log_detail.id") + private String id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T11:36:17.6416463+08:00", comments="Source field: public.archive_syn_log_detail.node_id") + private String node_id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T11:36:17.6416463+08:00", comments="Source field: public.archive_syn_log_detail.note_type") + private Integer note_type; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T11:36:17.6416463+08:00", comments="Source field: public.archive_syn_log_detail.process_type") + private Integer process_type; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T11:36:17.6416463+08:00", comments="Source field: public.archive_syn_log_detail.create_time") + private LocalDateTime create_time; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T11:36:17.6416463+08:00", comments="Source field: public.archive_syn_log_detail.log_id") + private String log_id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T11:36:17.6416463+08:00", comments="Source field: public.archive_syn_log_detail.id") + public String getId() { + return id; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T11:36:17.6416463+08:00", comments="Source field: public.archive_syn_log_detail.id") + public void setId(String id) { + this.id = id == null ? null : id.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T11:36:17.6416463+08:00", comments="Source field: public.archive_syn_log_detail.node_id") + public String getNode_id() { + return node_id; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T11:36:17.6416463+08:00", comments="Source field: public.archive_syn_log_detail.node_id") + public void setNode_id(String node_id) { + this.node_id = node_id == null ? null : node_id.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T11:36:17.6416463+08:00", comments="Source field: public.archive_syn_log_detail.note_type") + public Integer getNote_type() { + return note_type; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T11:36:17.6416463+08:00", comments="Source field: public.archive_syn_log_detail.note_type") + public void setNote_type(Integer note_type) { + this.note_type = note_type; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T11:36:17.6416463+08:00", comments="Source field: public.archive_syn_log_detail.process_type") + public Integer getProcess_type() { + return process_type; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T11:36:17.6416463+08:00", comments="Source field: public.archive_syn_log_detail.process_type") + public void setProcess_type(Integer process_type) { + this.process_type = process_type; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T11:36:17.6416463+08:00", comments="Source field: public.archive_syn_log_detail.create_time") + public LocalDateTime getCreate_time() { + return create_time; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T11:36:17.6416463+08:00", comments="Source field: public.archive_syn_log_detail.create_time") + public void setCreate_time(LocalDateTime create_time) { + this.create_time = create_time; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T11:36:17.6416463+08:00", comments="Source field: public.archive_syn_log_detail.log_id") + public String getLog_id() { + return log_id; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T11:36:17.6416463+08:00", comments="Source field: public.archive_syn_log_detail.log_id") + public void setLog_id(String log_id) { + this.log_id = log_id == null ? null : log_id.trim(); + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/entity/ArchiveSynTimestamp.java b/src/main/java/jj/tech/paolu/repository/mybatis/entity/ArchiveSynTimestamp.java new file mode 100644 index 0000000..5349db2 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/entity/ArchiveSynTimestamp.java @@ -0,0 +1,51 @@ +package jj.tech.paolu.repository.mybatis.entity; + +import jakarta.annotation.Generated; + +/** + * Database Table Remarks: + * 记录获取每个分类目录下文件目录,以及获取每个文件目录下文件时使用的时间戳。避免重复同步引起后续的重复上链 + * + * This class was generated by MyBatis Generator. + * This class corresponds to the database table public.archive_syn_timestamp + */ +public class ArchiveSynTimestamp { + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T20:53:02.6984219+08:00", comments="Source field: public.archive_syn_timestamp.node_id") + private String node_id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T20:53:02.6994214+08:00", comments="Source field: public.archive_syn_timestamp.node_type") + private Integer node_type; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T20:53:02.6994214+08:00", comments="Source field: public.archive_syn_timestamp.timestamp") + private String timestamp; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T20:53:02.6984219+08:00", comments="Source field: public.archive_syn_timestamp.node_id") + public String getNode_id() { + return node_id; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T20:53:02.6994214+08:00", comments="Source field: public.archive_syn_timestamp.node_id") + public void setNode_id(String node_id) { + this.node_id = node_id == null ? null : node_id.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T20:53:02.6994214+08:00", comments="Source field: public.archive_syn_timestamp.node_type") + public Integer getNode_type() { + return node_type; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T20:53:02.6994214+08:00", comments="Source field: public.archive_syn_timestamp.node_type") + public void setNode_type(Integer node_type) { + this.node_type = node_type; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T20:53:02.6994214+08:00", comments="Source field: public.archive_syn_timestamp.timestamp") + public String getTimestamp() { + return timestamp; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T20:53:02.6994214+08:00", comments="Source field: public.archive_syn_timestamp.timestamp") + public void setTimestamp(String timestamp) { + this.timestamp = timestamp == null ? null : timestamp.trim(); + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/entity/CertificateApply.java b/src/main/java/jj/tech/paolu/repository/mybatis/entity/CertificateApply.java new file mode 100644 index 0000000..cf5e402 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/entity/CertificateApply.java @@ -0,0 +1,232 @@ +package jj.tech.paolu.repository.mybatis.entity; + +import jakarta.annotation.Generated; +import java.time.LocalDateTime; + +/** + * + * This class was generated by MyBatis Generator. + * This class corresponds to the database table public.certificate_apply + */ +public class CertificateApply { + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3101478+08:00", comments="Source field: public.certificate_apply.id") + private String id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3101478+08:00", comments="Source field: public.certificate_apply.is_org") + private Integer is_org; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3101478+08:00", comments="Source field: public.certificate_apply.user_id") + private String user_id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3101478+08:00", comments="Source field: public.certificate_apply.user_name") + private String user_name; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3101478+08:00", comments="Source field: public.certificate_apply.user_real_name") + private String user_real_name; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3101478+08:00", comments="Source field: public.certificate_apply.user_phone") + private String user_phone; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3101478+08:00", comments="Source field: public.certificate_apply.user_org_id") + private String user_org_id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3101478+08:00", comments="Source field: public.certificate_apply.user_org_name") + private String user_org_name; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3101478+08:00", comments="Source field: public.certificate_apply.apply_type") + private Integer apply_type; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3101478+08:00", comments="Source field: public.certificate_apply.status") + private Integer status; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3101478+08:00", comments="Source field: public.certificate_apply.apply_time") + private LocalDateTime apply_time; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3101478+08:00", comments="Source field: public.certificate_apply.apply_finish_time") + private LocalDateTime apply_finish_time; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3101478+08:00", comments="Source field: public.certificate_apply.apply_reason") + private String apply_reason; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3101478+08:00", comments="Source field: public.certificate_apply.next_check_org_id") + private String next_check_org_id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3101478+08:00", comments="Source field: public.certificate_apply.end_check_org_id") + private String end_check_org_id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3101478+08:00", comments="Source field: public.certificate_apply.cer_id") + private String cer_id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3101478+08:00", comments="Source field: public.certificate_apply.company_id") + private String company_id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3101478+08:00", comments="Source field: public.certificate_apply.id") + public String getId() { + return id; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3101478+08:00", comments="Source field: public.certificate_apply.id") + public void setId(String id) { + this.id = id == null ? null : id.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3101478+08:00", comments="Source field: public.certificate_apply.is_org") + public Integer getIs_org() { + return is_org; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3101478+08:00", comments="Source field: public.certificate_apply.is_org") + public void setIs_org(Integer is_org) { + this.is_org = is_org; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3101478+08:00", comments="Source field: public.certificate_apply.user_id") + public String getUser_id() { + return user_id; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3101478+08:00", comments="Source field: public.certificate_apply.user_id") + public void setUser_id(String user_id) { + this.user_id = user_id == null ? null : user_id.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3101478+08:00", comments="Source field: public.certificate_apply.user_name") + public String getUser_name() { + return user_name; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3101478+08:00", comments="Source field: public.certificate_apply.user_name") + public void setUser_name(String user_name) { + this.user_name = user_name == null ? null : user_name.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3101478+08:00", comments="Source field: public.certificate_apply.user_real_name") + public String getUser_real_name() { + return user_real_name; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3101478+08:00", comments="Source field: public.certificate_apply.user_real_name") + public void setUser_real_name(String user_real_name) { + this.user_real_name = user_real_name == null ? null : user_real_name.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3101478+08:00", comments="Source field: public.certificate_apply.user_phone") + public String getUser_phone() { + return user_phone; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3101478+08:00", comments="Source field: public.certificate_apply.user_phone") + public void setUser_phone(String user_phone) { + this.user_phone = user_phone == null ? null : user_phone.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3101478+08:00", comments="Source field: public.certificate_apply.user_org_id") + public String getUser_org_id() { + return user_org_id; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3101478+08:00", comments="Source field: public.certificate_apply.user_org_id") + public void setUser_org_id(String user_org_id) { + this.user_org_id = user_org_id == null ? null : user_org_id.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3101478+08:00", comments="Source field: public.certificate_apply.user_org_name") + public String getUser_org_name() { + return user_org_name; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3101478+08:00", comments="Source field: public.certificate_apply.user_org_name") + public void setUser_org_name(String user_org_name) { + this.user_org_name = user_org_name == null ? null : user_org_name.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3101478+08:00", comments="Source field: public.certificate_apply.apply_type") + public Integer getApply_type() { + return apply_type; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3101478+08:00", comments="Source field: public.certificate_apply.apply_type") + public void setApply_type(Integer apply_type) { + this.apply_type = apply_type; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3101478+08:00", comments="Source field: public.certificate_apply.status") + public Integer getStatus() { + return status; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3101478+08:00", comments="Source field: public.certificate_apply.status") + public void setStatus(Integer status) { + this.status = status; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3101478+08:00", comments="Source field: public.certificate_apply.apply_time") + public LocalDateTime getApply_time() { + return apply_time; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3101478+08:00", comments="Source field: public.certificate_apply.apply_time") + public void setApply_time(LocalDateTime apply_time) { + this.apply_time = apply_time; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3101478+08:00", comments="Source field: public.certificate_apply.apply_finish_time") + public LocalDateTime getApply_finish_time() { + return apply_finish_time; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3101478+08:00", comments="Source field: public.certificate_apply.apply_finish_time") + public void setApply_finish_time(LocalDateTime apply_finish_time) { + this.apply_finish_time = apply_finish_time; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3101478+08:00", comments="Source field: public.certificate_apply.apply_reason") + public String getApply_reason() { + return apply_reason; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3101478+08:00", comments="Source field: public.certificate_apply.apply_reason") + public void setApply_reason(String apply_reason) { + this.apply_reason = apply_reason == null ? null : apply_reason.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3101478+08:00", comments="Source field: public.certificate_apply.next_check_org_id") + public String getNext_check_org_id() { + return next_check_org_id; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3101478+08:00", comments="Source field: public.certificate_apply.next_check_org_id") + public void setNext_check_org_id(String next_check_org_id) { + this.next_check_org_id = next_check_org_id == null ? null : next_check_org_id.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3101478+08:00", comments="Source field: public.certificate_apply.end_check_org_id") + public String getEnd_check_org_id() { + return end_check_org_id; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3101478+08:00", comments="Source field: public.certificate_apply.end_check_org_id") + public void setEnd_check_org_id(String end_check_org_id) { + this.end_check_org_id = end_check_org_id == null ? null : end_check_org_id.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3101478+08:00", comments="Source field: public.certificate_apply.cer_id") + public String getCer_id() { + return cer_id; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3101478+08:00", comments="Source field: public.certificate_apply.cer_id") + public void setCer_id(String cer_id) { + this.cer_id = cer_id == null ? null : cer_id.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3101478+08:00", comments="Source field: public.certificate_apply.company_id") + public String getCompany_id() { + return company_id; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3101478+08:00", comments="Source field: public.certificate_apply.company_id") + public void setCompany_id(String company_id) { + this.company_id = company_id == null ? null : company_id.trim(); + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/entity/CertificateApplyRecord.java b/src/main/java/jj/tech/paolu/repository/mybatis/entity/CertificateApplyRecord.java new file mode 100644 index 0000000..15039af --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/entity/CertificateApplyRecord.java @@ -0,0 +1,206 @@ +package jj.tech.paolu.repository.mybatis.entity; + +import jakarta.annotation.Generated; +import java.time.LocalDateTime; + +/** + * + * This class was generated by MyBatis Generator. + * This class corresponds to the database table public.certificate_apply_record + */ +public class CertificateApplyRecord { + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3061472+08:00", comments="Source field: public.certificate_apply_record.id") + private String id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3061472+08:00", comments="Source field: public.certificate_apply_record.certificate_apply_id") + private String certificate_apply_id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3061472+08:00", comments="Source field: public.certificate_apply_record.certificate_apply_user_id") + private String certificate_apply_user_id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3061472+08:00", comments="Source field: public.certificate_apply_record.certificate_apply_user_org_id") + private String certificate_apply_user_org_id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3061472+08:00", comments="Source field: public.certificate_apply_record.is_org") + private Integer is_org; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3061472+08:00", comments="Source field: public.certificate_apply_record.apply_type") + private Integer apply_type; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3061472+08:00", comments="Source field: public.certificate_apply_record.check_user_id") + private String check_user_id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3061472+08:00", comments="Source field: public.certificate_apply_record.check_user_name") + private String check_user_name; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3061472+08:00", comments="Source field: public.certificate_apply_record.check_org_id") + private String check_org_id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3061472+08:00", comments="Source field: public.certificate_apply_record.check_org_name") + private String check_org_name; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3061472+08:00", comments="Source field: public.certificate_apply_record.check_describe") + private String check_describe; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3061472+08:00", comments="Source field: public.certificate_apply_record.check_status") + private Integer check_status; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3061472+08:00", comments="Source field: public.certificate_apply_record.check_time") + private LocalDateTime check_time; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3061472+08:00", comments="Source field: public.certificate_apply_record.next_check_org_id") + private String next_check_org_id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3061472+08:00", comments="Source field: public.certificate_apply_record.next_check_org_name") + private String next_check_org_name; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3061472+08:00", comments="Source field: public.certificate_apply_record.id") + public String getId() { + return id; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3061472+08:00", comments="Source field: public.certificate_apply_record.id") + public void setId(String id) { + this.id = id == null ? null : id.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3061472+08:00", comments="Source field: public.certificate_apply_record.certificate_apply_id") + public String getCertificate_apply_id() { + return certificate_apply_id; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3061472+08:00", comments="Source field: public.certificate_apply_record.certificate_apply_id") + public void setCertificate_apply_id(String certificate_apply_id) { + this.certificate_apply_id = certificate_apply_id == null ? null : certificate_apply_id.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3061472+08:00", comments="Source field: public.certificate_apply_record.certificate_apply_user_id") + public String getCertificate_apply_user_id() { + return certificate_apply_user_id; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3061472+08:00", comments="Source field: public.certificate_apply_record.certificate_apply_user_id") + public void setCertificate_apply_user_id(String certificate_apply_user_id) { + this.certificate_apply_user_id = certificate_apply_user_id == null ? null : certificate_apply_user_id.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3061472+08:00", comments="Source field: public.certificate_apply_record.certificate_apply_user_org_id") + public String getCertificate_apply_user_org_id() { + return certificate_apply_user_org_id; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3061472+08:00", comments="Source field: public.certificate_apply_record.certificate_apply_user_org_id") + public void setCertificate_apply_user_org_id(String certificate_apply_user_org_id) { + this.certificate_apply_user_org_id = certificate_apply_user_org_id == null ? null : certificate_apply_user_org_id.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3061472+08:00", comments="Source field: public.certificate_apply_record.is_org") + public Integer getIs_org() { + return is_org; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3061472+08:00", comments="Source field: public.certificate_apply_record.is_org") + public void setIs_org(Integer is_org) { + this.is_org = is_org; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3061472+08:00", comments="Source field: public.certificate_apply_record.apply_type") + public Integer getApply_type() { + return apply_type; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3061472+08:00", comments="Source field: public.certificate_apply_record.apply_type") + public void setApply_type(Integer apply_type) { + this.apply_type = apply_type; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3061472+08:00", comments="Source field: public.certificate_apply_record.check_user_id") + public String getCheck_user_id() { + return check_user_id; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3061472+08:00", comments="Source field: public.certificate_apply_record.check_user_id") + public void setCheck_user_id(String check_user_id) { + this.check_user_id = check_user_id == null ? null : check_user_id.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3061472+08:00", comments="Source field: public.certificate_apply_record.check_user_name") + public String getCheck_user_name() { + return check_user_name; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3061472+08:00", comments="Source field: public.certificate_apply_record.check_user_name") + public void setCheck_user_name(String check_user_name) { + this.check_user_name = check_user_name == null ? null : check_user_name.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3061472+08:00", comments="Source field: public.certificate_apply_record.check_org_id") + public String getCheck_org_id() { + return check_org_id; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3061472+08:00", comments="Source field: public.certificate_apply_record.check_org_id") + public void setCheck_org_id(String check_org_id) { + this.check_org_id = check_org_id == null ? null : check_org_id.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3061472+08:00", comments="Source field: public.certificate_apply_record.check_org_name") + public String getCheck_org_name() { + return check_org_name; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3061472+08:00", comments="Source field: public.certificate_apply_record.check_org_name") + public void setCheck_org_name(String check_org_name) { + this.check_org_name = check_org_name == null ? null : check_org_name.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3061472+08:00", comments="Source field: public.certificate_apply_record.check_describe") + public String getCheck_describe() { + return check_describe; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3061472+08:00", comments="Source field: public.certificate_apply_record.check_describe") + public void setCheck_describe(String check_describe) { + this.check_describe = check_describe == null ? null : check_describe.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3061472+08:00", comments="Source field: public.certificate_apply_record.check_status") + public Integer getCheck_status() { + return check_status; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3061472+08:00", comments="Source field: public.certificate_apply_record.check_status") + public void setCheck_status(Integer check_status) { + this.check_status = check_status; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3061472+08:00", comments="Source field: public.certificate_apply_record.check_time") + public LocalDateTime getCheck_time() { + return check_time; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3061472+08:00", comments="Source field: public.certificate_apply_record.check_time") + public void setCheck_time(LocalDateTime check_time) { + this.check_time = check_time; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3061472+08:00", comments="Source field: public.certificate_apply_record.next_check_org_id") + public String getNext_check_org_id() { + return next_check_org_id; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3061472+08:00", comments="Source field: public.certificate_apply_record.next_check_org_id") + public void setNext_check_org_id(String next_check_org_id) { + this.next_check_org_id = next_check_org_id == null ? null : next_check_org_id.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3061472+08:00", comments="Source field: public.certificate_apply_record.next_check_org_name") + public String getNext_check_org_name() { + return next_check_org_name; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3061472+08:00", comments="Source field: public.certificate_apply_record.next_check_org_name") + public void setNext_check_org_name(String next_check_org_name) { + this.next_check_org_name = next_check_org_name == null ? null : next_check_org_name.trim(); + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/entity/CertificateDetail.java b/src/main/java/jj/tech/paolu/repository/mybatis/entity/CertificateDetail.java new file mode 100644 index 0000000..c2465e4 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/entity/CertificateDetail.java @@ -0,0 +1,195 @@ +package jj.tech.paolu.repository.mybatis.entity; + +import jakarta.annotation.Generated; +import java.time.LocalDateTime; + +/** + * Database Table Remarks: + * 组织证书详情,存储了各个企业上传的来自CA的机构证书的全部数据,并解析出了部分字段,同时包括档案管理系统产生的部分状态字段 + * + * This class was generated by MyBatis Generator. + * This class corresponds to the database table public.certificate_detail + */ +public class CertificateDetail { + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2981487+08:00", comments="Source field: public.certificate_detail.id") + private String id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2981487+08:00", comments="Source field: public.certificate_detail.certificate_apply_id") + private String certificate_apply_id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2981487+08:00", comments="Source field: public.certificate_detail.work_start_time") + private LocalDateTime work_start_time; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2981487+08:00", comments="Source field: public.certificate_detail.work_end_time") + private LocalDateTime work_end_time; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2981487+08:00", comments="Source field: public.certificate_detail.status") + private Integer status; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2981487+08:00", comments="Source field: public.certificate_detail.cert_file_content") + private String cert_file_content; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2981487+08:00", comments="Source field: public.certificate_detail.is_up_chain") + private Integer is_up_chain; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2981487+08:00", comments="Source field: public.certificate_detail.weid") + private String weid; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2981487+08:00", comments="Source field: public.certificate_detail.private_key_hex_str") + private String private_key_hex_str; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2981487+08:00", comments="Source field: public.certificate_detail.x509_serial_number") + private String x509_serial_number; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2981487+08:00", comments="Source field: public.certificate_detail.x509_subject") + private String x509_subject; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2981487+08:00", comments="Source field: public.certificate_detail.x509_issuer") + private String x509_issuer; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2981487+08:00", comments="Source field: public.certificate_detail.x509_public_key") + private String x509_public_key; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2981487+08:00", comments="Source field: public.certificate_detail.x509_sig_alg_name") + private String x509_sig_alg_name; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2981487+08:00", comments="Source field: public.certificate_detail.id") + public String getId() { + return id; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2981487+08:00", comments="Source field: public.certificate_detail.id") + public void setId(String id) { + this.id = id == null ? null : id.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2981487+08:00", comments="Source field: public.certificate_detail.certificate_apply_id") + public String getCertificate_apply_id() { + return certificate_apply_id; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2981487+08:00", comments="Source field: public.certificate_detail.certificate_apply_id") + public void setCertificate_apply_id(String certificate_apply_id) { + this.certificate_apply_id = certificate_apply_id == null ? null : certificate_apply_id.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2981487+08:00", comments="Source field: public.certificate_detail.work_start_time") + public LocalDateTime getWork_start_time() { + return work_start_time; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2981487+08:00", comments="Source field: public.certificate_detail.work_start_time") + public void setWork_start_time(LocalDateTime work_start_time) { + this.work_start_time = work_start_time; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2981487+08:00", comments="Source field: public.certificate_detail.work_end_time") + public LocalDateTime getWork_end_time() { + return work_end_time; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2981487+08:00", comments="Source field: public.certificate_detail.work_end_time") + public void setWork_end_time(LocalDateTime work_end_time) { + this.work_end_time = work_end_time; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2981487+08:00", comments="Source field: public.certificate_detail.status") + public Integer getStatus() { + return status; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2981487+08:00", comments="Source field: public.certificate_detail.status") + public void setStatus(Integer status) { + this.status = status; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2981487+08:00", comments="Source field: public.certificate_detail.cert_file_content") + public String getCert_file_content() { + return cert_file_content; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2981487+08:00", comments="Source field: public.certificate_detail.cert_file_content") + public void setCert_file_content(String cert_file_content) { + this.cert_file_content = cert_file_content == null ? null : cert_file_content.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2981487+08:00", comments="Source field: public.certificate_detail.is_up_chain") + public Integer getIs_up_chain() { + return is_up_chain; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2981487+08:00", comments="Source field: public.certificate_detail.is_up_chain") + public void setIs_up_chain(Integer is_up_chain) { + this.is_up_chain = is_up_chain; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2981487+08:00", comments="Source field: public.certificate_detail.weid") + public String getWeid() { + return weid; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2981487+08:00", comments="Source field: public.certificate_detail.weid") + public void setWeid(String weid) { + this.weid = weid == null ? null : weid.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2981487+08:00", comments="Source field: public.certificate_detail.private_key_hex_str") + public String getPrivate_key_hex_str() { + return private_key_hex_str; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2981487+08:00", comments="Source field: public.certificate_detail.private_key_hex_str") + public void setPrivate_key_hex_str(String private_key_hex_str) { + this.private_key_hex_str = private_key_hex_str == null ? null : private_key_hex_str.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2981487+08:00", comments="Source field: public.certificate_detail.x509_serial_number") + public String getX509_serial_number() { + return x509_serial_number; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2981487+08:00", comments="Source field: public.certificate_detail.x509_serial_number") + public void setX509_serial_number(String x509_serial_number) { + this.x509_serial_number = x509_serial_number == null ? null : x509_serial_number.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2981487+08:00", comments="Source field: public.certificate_detail.x509_subject") + public String getX509_subject() { + return x509_subject; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2981487+08:00", comments="Source field: public.certificate_detail.x509_subject") + public void setX509_subject(String x509_subject) { + this.x509_subject = x509_subject == null ? null : x509_subject.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2981487+08:00", comments="Source field: public.certificate_detail.x509_issuer") + public String getX509_issuer() { + return x509_issuer; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2981487+08:00", comments="Source field: public.certificate_detail.x509_issuer") + public void setX509_issuer(String x509_issuer) { + this.x509_issuer = x509_issuer == null ? null : x509_issuer.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2981487+08:00", comments="Source field: public.certificate_detail.x509_public_key") + public String getX509_public_key() { + return x509_public_key; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2981487+08:00", comments="Source field: public.certificate_detail.x509_public_key") + public void setX509_public_key(String x509_public_key) { + this.x509_public_key = x509_public_key == null ? null : x509_public_key.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2981487+08:00", comments="Source field: public.certificate_detail.x509_sig_alg_name") + public String getX509_sig_alg_name() { + return x509_sig_alg_name; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2981487+08:00", comments="Source field: public.certificate_detail.x509_sig_alg_name") + public void setX509_sig_alg_name(String x509_sig_alg_name) { + this.x509_sig_alg_name = x509_sig_alg_name == null ? null : x509_sig_alg_name.trim(); + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/entity/DecryptLog.java b/src/main/java/jj/tech/paolu/repository/mybatis/entity/DecryptLog.java new file mode 100644 index 0000000..c784ec2 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/entity/DecryptLog.java @@ -0,0 +1,162 @@ +package jj.tech.paolu.repository.mybatis.entity; + +import jakarta.annotation.Generated; +import java.time.LocalDateTime; + +/** + * Database Table Remarks: + * 解密情况 + * + * This class was generated by MyBatis Generator. + * This class corresponds to the database table public.decrypt_log + */ +public class DecryptLog { + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3171529+08:00", comments="Source field: public.decrypt_log.id") + private String id; + + /** + * Database Column Remarks: + * 申请人id + */ + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3171529+08:00", comments="Source field: public.decrypt_log.weid") + private String weid; + + /** + * Database Column Remarks: + * 档案类型(0件/1件内文件) + */ + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3171529+08:00", comments="Source field: public.decrypt_log.content_type") + private Integer content_type; + + /** + * Database Column Remarks: + * 档案id + */ + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3171529+08:00", comments="Source field: public.decrypt_log.content_id") + private String content_id; + + /** + * Database Column Remarks: + * 解密时间 + */ + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3171529+08:00", comments="Source field: public.decrypt_log.dec_time") + private LocalDateTime dec_time; + + /** + * Database Column Remarks: + * 区域 + */ + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3171529+08:00", comments="Source field: public.decrypt_log.location") + private String location; + + /** + * Database Column Remarks: + * 秘钥id + */ + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3171529+08:00", comments="Source field: public.decrypt_log.sm9hibeid") + private String sm9hibeid; + + /** + * Database Column Remarks: + * 解密结果(0失败1成功) + */ + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3171529+08:00", comments="Source field: public.decrypt_log.status") + private Integer status; + + /** + * Database Column Remarks: + * 数字签名 + */ + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3171529+08:00", comments="Source field: public.decrypt_log.sign") + private String sign; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3171529+08:00", comments="Source field: public.decrypt_log.id") + public String getId() { + return id; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3171529+08:00", comments="Source field: public.decrypt_log.id") + public void setId(String id) { + this.id = id == null ? null : id.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3171529+08:00", comments="Source field: public.decrypt_log.weid") + public String getWeid() { + return weid; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3171529+08:00", comments="Source field: public.decrypt_log.weid") + public void setWeid(String weid) { + this.weid = weid == null ? null : weid.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3171529+08:00", comments="Source field: public.decrypt_log.content_type") + public Integer getContent_type() { + return content_type; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3171529+08:00", comments="Source field: public.decrypt_log.content_type") + public void setContent_type(Integer content_type) { + this.content_type = content_type; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3171529+08:00", comments="Source field: public.decrypt_log.content_id") + public String getContent_id() { + return content_id; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3171529+08:00", comments="Source field: public.decrypt_log.content_id") + public void setContent_id(String content_id) { + this.content_id = content_id == null ? null : content_id.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3171529+08:00", comments="Source field: public.decrypt_log.dec_time") + public LocalDateTime getDec_time() { + return dec_time; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3171529+08:00", comments="Source field: public.decrypt_log.dec_time") + public void setDec_time(LocalDateTime dec_time) { + this.dec_time = dec_time; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3171529+08:00", comments="Source field: public.decrypt_log.location") + public String getLocation() { + return location; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3171529+08:00", comments="Source field: public.decrypt_log.location") + public void setLocation(String location) { + this.location = location == null ? null : location.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3171529+08:00", comments="Source field: public.decrypt_log.sm9hibeid") + public String getSm9hibeid() { + return sm9hibeid; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3171529+08:00", comments="Source field: public.decrypt_log.sm9hibeid") + public void setSm9hibeid(String sm9hibeid) { + this.sm9hibeid = sm9hibeid == null ? null : sm9hibeid.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3171529+08:00", comments="Source field: public.decrypt_log.status") + public Integer getStatus() { + return status; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3171529+08:00", comments="Source field: public.decrypt_log.status") + public void setStatus(Integer status) { + this.status = status; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3171529+08:00", comments="Source field: public.decrypt_log.sign") + public String getSign() { + return sign; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3171529+08:00", comments="Source field: public.decrypt_log.sign") + public void setSign(String sign) { + this.sign = sign == null ? null : sign.trim(); + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/entity/DownloadLog.java b/src/main/java/jj/tech/paolu/repository/mybatis/entity/DownloadLog.java new file mode 100644 index 0000000..890ea23 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/entity/DownloadLog.java @@ -0,0 +1,128 @@ +package jj.tech.paolu.repository.mybatis.entity; + +import jakarta.annotation.Generated; +import java.time.LocalDateTime; + +/** + * Database Table Remarks: + * 下载行为记录 + * + * This class was generated by MyBatis Generator. + * This class corresponds to the database table public.download_log + */ +public class DownloadLog { + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2511592+08:00", comments="Source field: public.download_log.id") + private String id; + + /** + * Database Column Remarks: + * weid + */ + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2511592+08:00", comments="Source field: public.download_log.weid") + private String weid; + + /** + * Database Column Remarks: + * 下载时间 + */ + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2511592+08:00", comments="Source field: public.download_log.downloadtime") + private LocalDateTime downloadtime; + + /** + * Database Column Remarks: + * 下载文件数 + */ + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2511592+08:00", comments="Source field: public.download_log.filenum") + private Integer filenum; + + /** + * Database Column Remarks: + * 下载类型(1文件包/2单个附件(SyncFile)/3单个件(DirecotryFile)) + */ + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2511592+08:00", comments="Source field: public.download_log.content_type") + private Integer content_type; + + /** + * Database Column Remarks: + * 下载记录ID(如果是单个文件,就取ID,如果是包,就是包内包含的文件的ID列表) + */ + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2511592+08:00", comments="Source field: public.download_log.contentid") + private String contentid; + + /** + * Database Column Remarks: + * 数字签名 + */ + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2511592+08:00", comments="Source field: public.download_log.sign") + private String sign; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2511592+08:00", comments="Source field: public.download_log.id") + public String getId() { + return id; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2511592+08:00", comments="Source field: public.download_log.id") + public void setId(String id) { + this.id = id == null ? null : id.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2511592+08:00", comments="Source field: public.download_log.weid") + public String getWeid() { + return weid; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2511592+08:00", comments="Source field: public.download_log.weid") + public void setWeid(String weid) { + this.weid = weid == null ? null : weid.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2511592+08:00", comments="Source field: public.download_log.downloadtime") + public LocalDateTime getDownloadtime() { + return downloadtime; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2511592+08:00", comments="Source field: public.download_log.downloadtime") + public void setDownloadtime(LocalDateTime downloadtime) { + this.downloadtime = downloadtime; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2511592+08:00", comments="Source field: public.download_log.filenum") + public Integer getFilenum() { + return filenum; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2511592+08:00", comments="Source field: public.download_log.filenum") + public void setFilenum(Integer filenum) { + this.filenum = filenum; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2511592+08:00", comments="Source field: public.download_log.content_type") + public Integer getContent_type() { + return content_type; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2511592+08:00", comments="Source field: public.download_log.content_type") + public void setContent_type(Integer content_type) { + this.content_type = content_type; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2511592+08:00", comments="Source field: public.download_log.contentid") + public String getContentid() { + return contentid; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2511592+08:00", comments="Source field: public.download_log.contentid") + public void setContentid(String contentid) { + this.contentid = contentid == null ? null : contentid.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2511592+08:00", comments="Source field: public.download_log.sign") + public String getSign() { + return sign; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2511592+08:00", comments="Source field: public.download_log.sign") + public void setSign(String sign) { + this.sign = sign == null ? null : sign.trim(); + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/entity/FilesApply.java b/src/main/java/jj/tech/paolu/repository/mybatis/entity/FilesApply.java new file mode 100644 index 0000000..635945c --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/entity/FilesApply.java @@ -0,0 +1,626 @@ +package jj.tech.paolu.repository.mybatis.entity; + +import jakarta.annotation.Generated; +import java.time.LocalDateTime; + +/** + * + * This class was generated by MyBatis Generator. + * This class corresponds to the database table public.files_apply + */ +public class FilesApply { + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2731517+08:00", comments="Source field: public.files_apply.id") + private String id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2731517+08:00", comments="Source field: public.files_apply.apply_user_id") + private String apply_user_id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2731517+08:00", comments="Source field: public.files_apply.apply_user_name") + private String apply_user_name; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2731517+08:00", comments="Source field: public.files_apply.apply_user_phone") + private String apply_user_phone; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2731517+08:00", comments="Source field: public.files_apply.apply_user_email") + private String apply_user_email; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2731517+08:00", comments="Source field: public.files_apply.apply_org_id") + private String apply_org_id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2731517+08:00", comments="Source field: public.files_apply.apply_org_name") + private String apply_org_name; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2731517+08:00", comments="Source field: public.files_apply.apply_in_check_user_id") + private String apply_in_check_user_id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2731517+08:00", comments="Source field: public.files_apply.apply_in_check_user_name") + private String apply_in_check_user_name; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2731517+08:00", comments="Source field: public.files_apply.apply_in_check_org_id") + private String apply_in_check_org_id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2731517+08:00", comments="Source field: public.files_apply.apply_in_check_org_name") + private String apply_in_check_org_name; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2731517+08:00", comments="Source field: public.files_apply.apply_next_check_org_id") + private String apply_next_check_org_id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2731517+08:00", comments="Source field: public.files_apply.apply_next_check_org_name") + private String apply_next_check_org_name; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2731517+08:00", comments="Source field: public.files_apply.apply_end_check_user_id") + private String apply_end_check_user_id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2731517+08:00", comments="Source field: public.files_apply.apply_end_check_user_name") + private String apply_end_check_user_name; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2731517+08:00", comments="Source field: public.files_apply.apply_end_check_org_id") + private String apply_end_check_org_id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2731517+08:00", comments="Source field: public.files_apply.apply_end_check_org_name") + private String apply_end_check_org_name; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2741474+08:00", comments="Source field: public.files_apply.apply_days") + private Integer apply_days; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2741474+08:00", comments="Source field: public.files_apply.apply_feedback") + private String apply_feedback; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2741474+08:00", comments="Source field: public.files_apply.apply_reason") + private String apply_reason; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2741474+08:00", comments="Source field: public.files_apply.apply_cancel_reason") + private String apply_cancel_reason; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2741474+08:00", comments="Source field: public.files_apply.apply_view_type_print") + private Integer apply_view_type_print; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2741474+08:00", comments="Source field: public.files_apply.apply_view_type_online") + private Integer apply_view_type_online; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2741474+08:00", comments="Source field: public.files_apply.apply_file_num") + private Integer apply_file_num; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2741474+08:00", comments="Source field: public.files_apply.apply_time") + private LocalDateTime apply_time; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2741474+08:00", comments="Source field: public.files_apply.apply_check_is_finish") + private Integer apply_check_is_finish; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2741474+08:00", comments="Source field: public.files_apply.provider_org_id") + private String provider_org_id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2741474+08:00", comments="Source field: public.files_apply.provider_org_name") + private String provider_org_name; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2741474+08:00", comments="Source field: public.files_apply.provider_file_properties") + private Integer provider_file_properties; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2741474+08:00", comments="Source field: public.files_apply.provider_use_start_time") + private LocalDateTime provider_use_start_time; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2741474+08:00", comments="Source field: public.files_apply.provider_use_end_time") + private LocalDateTime provider_use_end_time; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2741474+08:00", comments="Source field: public.files_apply.provider_in_check_user_id") + private String provider_in_check_user_id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2741474+08:00", comments="Source field: public.files_apply.provider_in_check_user_name") + private String provider_in_check_user_name; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2741474+08:00", comments="Source field: public.files_apply.provider_in_check_org_id") + private String provider_in_check_org_id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2741474+08:00", comments="Source field: public.files_apply.provider_in_check_org_name") + private String provider_in_check_org_name; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2741474+08:00", comments="Source field: public.files_apply.provider_next_check_role_sign_id") + private String provider_next_check_role_sign_id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2741474+08:00", comments="Source field: public.files_apply.provider_next_check_role_sign_name") + private String provider_next_check_role_sign_name; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2741474+08:00", comments="Source field: public.files_apply.provider_end_check_user_id") + private String provider_end_check_user_id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2741474+08:00", comments="Source field: public.files_apply.provider_end_check_user_name") + private String provider_end_check_user_name; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2741474+08:00", comments="Source field: public.files_apply.provider_end_check_org_id") + private String provider_end_check_org_id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2741474+08:00", comments="Source field: public.files_apply.provider_end_check_org_name") + private String provider_end_check_org_name; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2741474+08:00", comments="Source field: public.files_apply.provider_check_is_finish") + private Integer provider_check_is_finish; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.275148+08:00", comments="Source field: public.files_apply.secret_key") + private String secret_key; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.275148+08:00", comments="Source field: public.files_apply.status") + private Integer status; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.275148+08:00", comments="Source field: public.files_apply.project_id") + private String project_id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.275148+08:00", comments="Source field: public.files_apply.project_name") + private String project_name; + + /** + * Database Column Remarks: + * 签名 + */ + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.275148+08:00", comments="Source field: public.files_apply.sign") + private String sign; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2731517+08:00", comments="Source field: public.files_apply.id") + public String getId() { + return id; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2731517+08:00", comments="Source field: public.files_apply.id") + public void setId(String id) { + this.id = id == null ? null : id.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2731517+08:00", comments="Source field: public.files_apply.apply_user_id") + public String getApply_user_id() { + return apply_user_id; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2731517+08:00", comments="Source field: public.files_apply.apply_user_id") + public void setApply_user_id(String apply_user_id) { + this.apply_user_id = apply_user_id == null ? null : apply_user_id.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2731517+08:00", comments="Source field: public.files_apply.apply_user_name") + public String getApply_user_name() { + return apply_user_name; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2731517+08:00", comments="Source field: public.files_apply.apply_user_name") + public void setApply_user_name(String apply_user_name) { + this.apply_user_name = apply_user_name == null ? null : apply_user_name.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2731517+08:00", comments="Source field: public.files_apply.apply_user_phone") + public String getApply_user_phone() { + return apply_user_phone; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2731517+08:00", comments="Source field: public.files_apply.apply_user_phone") + public void setApply_user_phone(String apply_user_phone) { + this.apply_user_phone = apply_user_phone == null ? null : apply_user_phone.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2731517+08:00", comments="Source field: public.files_apply.apply_user_email") + public String getApply_user_email() { + return apply_user_email; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2731517+08:00", comments="Source field: public.files_apply.apply_user_email") + public void setApply_user_email(String apply_user_email) { + this.apply_user_email = apply_user_email == null ? null : apply_user_email.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2731517+08:00", comments="Source field: public.files_apply.apply_org_id") + public String getApply_org_id() { + return apply_org_id; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2731517+08:00", comments="Source field: public.files_apply.apply_org_id") + public void setApply_org_id(String apply_org_id) { + this.apply_org_id = apply_org_id == null ? null : apply_org_id.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2731517+08:00", comments="Source field: public.files_apply.apply_org_name") + public String getApply_org_name() { + return apply_org_name; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2731517+08:00", comments="Source field: public.files_apply.apply_org_name") + public void setApply_org_name(String apply_org_name) { + this.apply_org_name = apply_org_name == null ? null : apply_org_name.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2731517+08:00", comments="Source field: public.files_apply.apply_in_check_user_id") + public String getApply_in_check_user_id() { + return apply_in_check_user_id; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2731517+08:00", comments="Source field: public.files_apply.apply_in_check_user_id") + public void setApply_in_check_user_id(String apply_in_check_user_id) { + this.apply_in_check_user_id = apply_in_check_user_id == null ? null : apply_in_check_user_id.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2731517+08:00", comments="Source field: public.files_apply.apply_in_check_user_name") + public String getApply_in_check_user_name() { + return apply_in_check_user_name; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2731517+08:00", comments="Source field: public.files_apply.apply_in_check_user_name") + public void setApply_in_check_user_name(String apply_in_check_user_name) { + this.apply_in_check_user_name = apply_in_check_user_name == null ? null : apply_in_check_user_name.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2731517+08:00", comments="Source field: public.files_apply.apply_in_check_org_id") + public String getApply_in_check_org_id() { + return apply_in_check_org_id; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2731517+08:00", comments="Source field: public.files_apply.apply_in_check_org_id") + public void setApply_in_check_org_id(String apply_in_check_org_id) { + this.apply_in_check_org_id = apply_in_check_org_id == null ? null : apply_in_check_org_id.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2731517+08:00", comments="Source field: public.files_apply.apply_in_check_org_name") + public String getApply_in_check_org_name() { + return apply_in_check_org_name; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2731517+08:00", comments="Source field: public.files_apply.apply_in_check_org_name") + public void setApply_in_check_org_name(String apply_in_check_org_name) { + this.apply_in_check_org_name = apply_in_check_org_name == null ? null : apply_in_check_org_name.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2731517+08:00", comments="Source field: public.files_apply.apply_next_check_org_id") + public String getApply_next_check_org_id() { + return apply_next_check_org_id; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2731517+08:00", comments="Source field: public.files_apply.apply_next_check_org_id") + public void setApply_next_check_org_id(String apply_next_check_org_id) { + this.apply_next_check_org_id = apply_next_check_org_id == null ? null : apply_next_check_org_id.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2731517+08:00", comments="Source field: public.files_apply.apply_next_check_org_name") + public String getApply_next_check_org_name() { + return apply_next_check_org_name; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2731517+08:00", comments="Source field: public.files_apply.apply_next_check_org_name") + public void setApply_next_check_org_name(String apply_next_check_org_name) { + this.apply_next_check_org_name = apply_next_check_org_name == null ? null : apply_next_check_org_name.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2731517+08:00", comments="Source field: public.files_apply.apply_end_check_user_id") + public String getApply_end_check_user_id() { + return apply_end_check_user_id; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2731517+08:00", comments="Source field: public.files_apply.apply_end_check_user_id") + public void setApply_end_check_user_id(String apply_end_check_user_id) { + this.apply_end_check_user_id = apply_end_check_user_id == null ? null : apply_end_check_user_id.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2731517+08:00", comments="Source field: public.files_apply.apply_end_check_user_name") + public String getApply_end_check_user_name() { + return apply_end_check_user_name; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2731517+08:00", comments="Source field: public.files_apply.apply_end_check_user_name") + public void setApply_end_check_user_name(String apply_end_check_user_name) { + this.apply_end_check_user_name = apply_end_check_user_name == null ? null : apply_end_check_user_name.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2731517+08:00", comments="Source field: public.files_apply.apply_end_check_org_id") + public String getApply_end_check_org_id() { + return apply_end_check_org_id; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2731517+08:00", comments="Source field: public.files_apply.apply_end_check_org_id") + public void setApply_end_check_org_id(String apply_end_check_org_id) { + this.apply_end_check_org_id = apply_end_check_org_id == null ? null : apply_end_check_org_id.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2731517+08:00", comments="Source field: public.files_apply.apply_end_check_org_name") + public String getApply_end_check_org_name() { + return apply_end_check_org_name; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2731517+08:00", comments="Source field: public.files_apply.apply_end_check_org_name") + public void setApply_end_check_org_name(String apply_end_check_org_name) { + this.apply_end_check_org_name = apply_end_check_org_name == null ? null : apply_end_check_org_name.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2741474+08:00", comments="Source field: public.files_apply.apply_days") + public Integer getApply_days() { + return apply_days; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2741474+08:00", comments="Source field: public.files_apply.apply_days") + public void setApply_days(Integer apply_days) { + this.apply_days = apply_days; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2741474+08:00", comments="Source field: public.files_apply.apply_feedback") + public String getApply_feedback() { + return apply_feedback; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2741474+08:00", comments="Source field: public.files_apply.apply_feedback") + public void setApply_feedback(String apply_feedback) { + this.apply_feedback = apply_feedback == null ? null : apply_feedback.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2741474+08:00", comments="Source field: public.files_apply.apply_reason") + public String getApply_reason() { + return apply_reason; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2741474+08:00", comments="Source field: public.files_apply.apply_reason") + public void setApply_reason(String apply_reason) { + this.apply_reason = apply_reason == null ? null : apply_reason.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2741474+08:00", comments="Source field: public.files_apply.apply_cancel_reason") + public String getApply_cancel_reason() { + return apply_cancel_reason; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2741474+08:00", comments="Source field: public.files_apply.apply_cancel_reason") + public void setApply_cancel_reason(String apply_cancel_reason) { + this.apply_cancel_reason = apply_cancel_reason == null ? null : apply_cancel_reason.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2741474+08:00", comments="Source field: public.files_apply.apply_view_type_print") + public Integer getApply_view_type_print() { + return apply_view_type_print; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2741474+08:00", comments="Source field: public.files_apply.apply_view_type_print") + public void setApply_view_type_print(Integer apply_view_type_print) { + this.apply_view_type_print = apply_view_type_print; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2741474+08:00", comments="Source field: public.files_apply.apply_view_type_online") + public Integer getApply_view_type_online() { + return apply_view_type_online; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2741474+08:00", comments="Source field: public.files_apply.apply_view_type_online") + public void setApply_view_type_online(Integer apply_view_type_online) { + this.apply_view_type_online = apply_view_type_online; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2741474+08:00", comments="Source field: public.files_apply.apply_file_num") + public Integer getApply_file_num() { + return apply_file_num; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2741474+08:00", comments="Source field: public.files_apply.apply_file_num") + public void setApply_file_num(Integer apply_file_num) { + this.apply_file_num = apply_file_num; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2741474+08:00", comments="Source field: public.files_apply.apply_time") + public LocalDateTime getApply_time() { + return apply_time; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2741474+08:00", comments="Source field: public.files_apply.apply_time") + public void setApply_time(LocalDateTime apply_time) { + this.apply_time = apply_time; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2741474+08:00", comments="Source field: public.files_apply.apply_check_is_finish") + public Integer getApply_check_is_finish() { + return apply_check_is_finish; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2741474+08:00", comments="Source field: public.files_apply.apply_check_is_finish") + public void setApply_check_is_finish(Integer apply_check_is_finish) { + this.apply_check_is_finish = apply_check_is_finish; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2741474+08:00", comments="Source field: public.files_apply.provider_org_id") + public String getProvider_org_id() { + return provider_org_id; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2741474+08:00", comments="Source field: public.files_apply.provider_org_id") + public void setProvider_org_id(String provider_org_id) { + this.provider_org_id = provider_org_id == null ? null : provider_org_id.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2741474+08:00", comments="Source field: public.files_apply.provider_org_name") + public String getProvider_org_name() { + return provider_org_name; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2741474+08:00", comments="Source field: public.files_apply.provider_org_name") + public void setProvider_org_name(String provider_org_name) { + this.provider_org_name = provider_org_name == null ? null : provider_org_name.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2741474+08:00", comments="Source field: public.files_apply.provider_file_properties") + public Integer getProvider_file_properties() { + return provider_file_properties; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2741474+08:00", comments="Source field: public.files_apply.provider_file_properties") + public void setProvider_file_properties(Integer provider_file_properties) { + this.provider_file_properties = provider_file_properties; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2741474+08:00", comments="Source field: public.files_apply.provider_use_start_time") + public LocalDateTime getProvider_use_start_time() { + return provider_use_start_time; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2741474+08:00", comments="Source field: public.files_apply.provider_use_start_time") + public void setProvider_use_start_time(LocalDateTime provider_use_start_time) { + this.provider_use_start_time = provider_use_start_time; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2741474+08:00", comments="Source field: public.files_apply.provider_use_end_time") + public LocalDateTime getProvider_use_end_time() { + return provider_use_end_time; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2741474+08:00", comments="Source field: public.files_apply.provider_use_end_time") + public void setProvider_use_end_time(LocalDateTime provider_use_end_time) { + this.provider_use_end_time = provider_use_end_time; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2741474+08:00", comments="Source field: public.files_apply.provider_in_check_user_id") + public String getProvider_in_check_user_id() { + return provider_in_check_user_id; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2741474+08:00", comments="Source field: public.files_apply.provider_in_check_user_id") + public void setProvider_in_check_user_id(String provider_in_check_user_id) { + this.provider_in_check_user_id = provider_in_check_user_id == null ? null : provider_in_check_user_id.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2741474+08:00", comments="Source field: public.files_apply.provider_in_check_user_name") + public String getProvider_in_check_user_name() { + return provider_in_check_user_name; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2741474+08:00", comments="Source field: public.files_apply.provider_in_check_user_name") + public void setProvider_in_check_user_name(String provider_in_check_user_name) { + this.provider_in_check_user_name = provider_in_check_user_name == null ? null : provider_in_check_user_name.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2741474+08:00", comments="Source field: public.files_apply.provider_in_check_org_id") + public String getProvider_in_check_org_id() { + return provider_in_check_org_id; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2741474+08:00", comments="Source field: public.files_apply.provider_in_check_org_id") + public void setProvider_in_check_org_id(String provider_in_check_org_id) { + this.provider_in_check_org_id = provider_in_check_org_id == null ? null : provider_in_check_org_id.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2741474+08:00", comments="Source field: public.files_apply.provider_in_check_org_name") + public String getProvider_in_check_org_name() { + return provider_in_check_org_name; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2741474+08:00", comments="Source field: public.files_apply.provider_in_check_org_name") + public void setProvider_in_check_org_name(String provider_in_check_org_name) { + this.provider_in_check_org_name = provider_in_check_org_name == null ? null : provider_in_check_org_name.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2741474+08:00", comments="Source field: public.files_apply.provider_next_check_role_sign_id") + public String getProvider_next_check_role_sign_id() { + return provider_next_check_role_sign_id; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2741474+08:00", comments="Source field: public.files_apply.provider_next_check_role_sign_id") + public void setProvider_next_check_role_sign_id(String provider_next_check_role_sign_id) { + this.provider_next_check_role_sign_id = provider_next_check_role_sign_id == null ? null : provider_next_check_role_sign_id.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2741474+08:00", comments="Source field: public.files_apply.provider_next_check_role_sign_name") + public String getProvider_next_check_role_sign_name() { + return provider_next_check_role_sign_name; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2741474+08:00", comments="Source field: public.files_apply.provider_next_check_role_sign_name") + public void setProvider_next_check_role_sign_name(String provider_next_check_role_sign_name) { + this.provider_next_check_role_sign_name = provider_next_check_role_sign_name == null ? null : provider_next_check_role_sign_name.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2741474+08:00", comments="Source field: public.files_apply.provider_end_check_user_id") + public String getProvider_end_check_user_id() { + return provider_end_check_user_id; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2741474+08:00", comments="Source field: public.files_apply.provider_end_check_user_id") + public void setProvider_end_check_user_id(String provider_end_check_user_id) { + this.provider_end_check_user_id = provider_end_check_user_id == null ? null : provider_end_check_user_id.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2741474+08:00", comments="Source field: public.files_apply.provider_end_check_user_name") + public String getProvider_end_check_user_name() { + return provider_end_check_user_name; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2741474+08:00", comments="Source field: public.files_apply.provider_end_check_user_name") + public void setProvider_end_check_user_name(String provider_end_check_user_name) { + this.provider_end_check_user_name = provider_end_check_user_name == null ? null : provider_end_check_user_name.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2741474+08:00", comments="Source field: public.files_apply.provider_end_check_org_id") + public String getProvider_end_check_org_id() { + return provider_end_check_org_id; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2741474+08:00", comments="Source field: public.files_apply.provider_end_check_org_id") + public void setProvider_end_check_org_id(String provider_end_check_org_id) { + this.provider_end_check_org_id = provider_end_check_org_id == null ? null : provider_end_check_org_id.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2741474+08:00", comments="Source field: public.files_apply.provider_end_check_org_name") + public String getProvider_end_check_org_name() { + return provider_end_check_org_name; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2741474+08:00", comments="Source field: public.files_apply.provider_end_check_org_name") + public void setProvider_end_check_org_name(String provider_end_check_org_name) { + this.provider_end_check_org_name = provider_end_check_org_name == null ? null : provider_end_check_org_name.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.275148+08:00", comments="Source field: public.files_apply.provider_check_is_finish") + public Integer getProvider_check_is_finish() { + return provider_check_is_finish; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.275148+08:00", comments="Source field: public.files_apply.provider_check_is_finish") + public void setProvider_check_is_finish(Integer provider_check_is_finish) { + this.provider_check_is_finish = provider_check_is_finish; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.275148+08:00", comments="Source field: public.files_apply.secret_key") + public String getSecret_key() { + return secret_key; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.275148+08:00", comments="Source field: public.files_apply.secret_key") + public void setSecret_key(String secret_key) { + this.secret_key = secret_key == null ? null : secret_key.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.275148+08:00", comments="Source field: public.files_apply.status") + public Integer getStatus() { + return status; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.275148+08:00", comments="Source field: public.files_apply.status") + public void setStatus(Integer status) { + this.status = status; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.275148+08:00", comments="Source field: public.files_apply.project_id") + public String getProject_id() { + return project_id; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.275148+08:00", comments="Source field: public.files_apply.project_id") + public void setProject_id(String project_id) { + this.project_id = project_id == null ? null : project_id.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.275148+08:00", comments="Source field: public.files_apply.project_name") + public String getProject_name() { + return project_name; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.275148+08:00", comments="Source field: public.files_apply.project_name") + public void setProject_name(String project_name) { + this.project_name = project_name == null ? null : project_name.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.275148+08:00", comments="Source field: public.files_apply.sign") + public String getSign() { + return sign; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.275148+08:00", comments="Source field: public.files_apply.sign") + public void setSign(String sign) { + this.sign = sign == null ? null : sign.trim(); + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/entity/FilesApplyCheckRecord.java b/src/main/java/jj/tech/paolu/repository/mybatis/entity/FilesApplyCheckRecord.java new file mode 100644 index 0000000..ddebb3a --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/entity/FilesApplyCheckRecord.java @@ -0,0 +1,206 @@ +package jj.tech.paolu.repository.mybatis.entity; + +import jakarta.annotation.Generated; +import java.time.LocalDateTime; + +/** + * + * This class was generated by MyBatis Generator. + * This class corresponds to the database table public.files_apply_check_record + */ +public class FilesApplyCheckRecord { + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3151511+08:00", comments="Source field: public.files_apply_check_record.id") + private String id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3151511+08:00", comments="Source field: public.files_apply_check_record.files_apply_id") + private String files_apply_id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3151511+08:00", comments="Source field: public.files_apply_check_record.is_apply_provider") + private Integer is_apply_provider; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3151511+08:00", comments="Source field: public.files_apply_check_record.check_user_id") + private String check_user_id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3151511+08:00", comments="Source field: public.files_apply_check_record.check_user_name") + private String check_user_name; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3151511+08:00", comments="Source field: public.files_apply_check_record.check_org_id") + private String check_org_id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3151511+08:00", comments="Source field: public.files_apply_check_record.check_org_name") + private String check_org_name; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3151511+08:00", comments="Source field: public.files_apply_check_record.next_check_org_id") + private String next_check_org_id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3151511+08:00", comments="Source field: public.files_apply_check_record.next_check_org_name") + private String next_check_org_name; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3151511+08:00", comments="Source field: public.files_apply_check_record.check_describe") + private String check_describe; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3151511+08:00", comments="Source field: public.files_apply_check_record.check_status") + private Integer check_status; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3151511+08:00", comments="Source field: public.files_apply_check_record.check_time") + private LocalDateTime check_time; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3151511+08:00", comments="Source field: public.files_apply_check_record.provider_next_check_role_sign_id") + private String provider_next_check_role_sign_id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3151511+08:00", comments="Source field: public.files_apply_check_record.provider_next_check_role_sign_name") + private String provider_next_check_role_sign_name; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3151511+08:00", comments="Source field: public.files_apply_check_record.sign") + private String sign; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3151511+08:00", comments="Source field: public.files_apply_check_record.id") + public String getId() { + return id; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3151511+08:00", comments="Source field: public.files_apply_check_record.id") + public void setId(String id) { + this.id = id == null ? null : id.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3151511+08:00", comments="Source field: public.files_apply_check_record.files_apply_id") + public String getFiles_apply_id() { + return files_apply_id; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3151511+08:00", comments="Source field: public.files_apply_check_record.files_apply_id") + public void setFiles_apply_id(String files_apply_id) { + this.files_apply_id = files_apply_id == null ? null : files_apply_id.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3151511+08:00", comments="Source field: public.files_apply_check_record.is_apply_provider") + public Integer getIs_apply_provider() { + return is_apply_provider; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3151511+08:00", comments="Source field: public.files_apply_check_record.is_apply_provider") + public void setIs_apply_provider(Integer is_apply_provider) { + this.is_apply_provider = is_apply_provider; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3151511+08:00", comments="Source field: public.files_apply_check_record.check_user_id") + public String getCheck_user_id() { + return check_user_id; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3151511+08:00", comments="Source field: public.files_apply_check_record.check_user_id") + public void setCheck_user_id(String check_user_id) { + this.check_user_id = check_user_id == null ? null : check_user_id.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3151511+08:00", comments="Source field: public.files_apply_check_record.check_user_name") + public String getCheck_user_name() { + return check_user_name; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3151511+08:00", comments="Source field: public.files_apply_check_record.check_user_name") + public void setCheck_user_name(String check_user_name) { + this.check_user_name = check_user_name == null ? null : check_user_name.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3151511+08:00", comments="Source field: public.files_apply_check_record.check_org_id") + public String getCheck_org_id() { + return check_org_id; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3151511+08:00", comments="Source field: public.files_apply_check_record.check_org_id") + public void setCheck_org_id(String check_org_id) { + this.check_org_id = check_org_id == null ? null : check_org_id.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3151511+08:00", comments="Source field: public.files_apply_check_record.check_org_name") + public String getCheck_org_name() { + return check_org_name; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3151511+08:00", comments="Source field: public.files_apply_check_record.check_org_name") + public void setCheck_org_name(String check_org_name) { + this.check_org_name = check_org_name == null ? null : check_org_name.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3151511+08:00", comments="Source field: public.files_apply_check_record.next_check_org_id") + public String getNext_check_org_id() { + return next_check_org_id; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3151511+08:00", comments="Source field: public.files_apply_check_record.next_check_org_id") + public void setNext_check_org_id(String next_check_org_id) { + this.next_check_org_id = next_check_org_id == null ? null : next_check_org_id.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3151511+08:00", comments="Source field: public.files_apply_check_record.next_check_org_name") + public String getNext_check_org_name() { + return next_check_org_name; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3151511+08:00", comments="Source field: public.files_apply_check_record.next_check_org_name") + public void setNext_check_org_name(String next_check_org_name) { + this.next_check_org_name = next_check_org_name == null ? null : next_check_org_name.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3151511+08:00", comments="Source field: public.files_apply_check_record.check_describe") + public String getCheck_describe() { + return check_describe; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3151511+08:00", comments="Source field: public.files_apply_check_record.check_describe") + public void setCheck_describe(String check_describe) { + this.check_describe = check_describe == null ? null : check_describe.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3151511+08:00", comments="Source field: public.files_apply_check_record.check_status") + public Integer getCheck_status() { + return check_status; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3151511+08:00", comments="Source field: public.files_apply_check_record.check_status") + public void setCheck_status(Integer check_status) { + this.check_status = check_status; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3151511+08:00", comments="Source field: public.files_apply_check_record.check_time") + public LocalDateTime getCheck_time() { + return check_time; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3151511+08:00", comments="Source field: public.files_apply_check_record.check_time") + public void setCheck_time(LocalDateTime check_time) { + this.check_time = check_time; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3151511+08:00", comments="Source field: public.files_apply_check_record.provider_next_check_role_sign_id") + public String getProvider_next_check_role_sign_id() { + return provider_next_check_role_sign_id; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3151511+08:00", comments="Source field: public.files_apply_check_record.provider_next_check_role_sign_id") + public void setProvider_next_check_role_sign_id(String provider_next_check_role_sign_id) { + this.provider_next_check_role_sign_id = provider_next_check_role_sign_id == null ? null : provider_next_check_role_sign_id.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3151511+08:00", comments="Source field: public.files_apply_check_record.provider_next_check_role_sign_name") + public String getProvider_next_check_role_sign_name() { + return provider_next_check_role_sign_name; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3151511+08:00", comments="Source field: public.files_apply_check_record.provider_next_check_role_sign_name") + public void setProvider_next_check_role_sign_name(String provider_next_check_role_sign_name) { + this.provider_next_check_role_sign_name = provider_next_check_role_sign_name == null ? null : provider_next_check_role_sign_name.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3151511+08:00", comments="Source field: public.files_apply_check_record.sign") + public String getSign() { + return sign; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3151511+08:00", comments="Source field: public.files_apply_check_record.sign") + public void setSign(String sign) { + this.sign = sign == null ? null : sign.trim(); + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/entity/FilesApplyDirectoryDocs.java b/src/main/java/jj/tech/paolu/repository/mybatis/entity/FilesApplyDirectoryDocs.java new file mode 100644 index 0000000..fa9866c --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/entity/FilesApplyDirectoryDocs.java @@ -0,0 +1,309 @@ +package jj.tech.paolu.repository.mybatis.entity; + +import jakarta.annotation.Generated; + +/** + * + * This class was generated by MyBatis Generator. + * This class corresponds to the database table public.files_apply_directory_docs + */ +public class FilesApplyDirectoryDocs { + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2122439+08:00", comments="Source field: public.files_apply_directory_docs.id") + private String id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2142452+08:00", comments="Source field: public.files_apply_directory_docs.files_apply_id") + private String files_apply_id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2142452+08:00", comments="Source field: public.files_apply_directory_docs.directory_file_id") + private String directory_file_id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2142452+08:00", comments="Source field: public.files_apply_directory_docs.directory_file_p_id") + private String directory_file_p_id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2152123+08:00", comments="Source field: public.files_apply_directory_docs.filesuper") + private String filesuper; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2152123+08:00", comments="Source field: public.files_apply_directory_docs.filecount") + private Integer filecount; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2152123+08:00", comments="Source field: public.files_apply_directory_docs.dutyperson") + private String dutyperson; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2162209+08:00", comments="Source field: public.files_apply_directory_docs.eweavedate") + private String eweavedate; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2162209+08:00", comments="Source field: public.files_apply_directory_docs.filepage") + private Integer filepage; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2162209+08:00", comments="Source field: public.files_apply_directory_docs.sortorder") + private String sortorder; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2162209+08:00", comments="Source field: public.files_apply_directory_docs.bpeg") + private String bpeg; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2162209+08:00", comments="Source field: public.files_apply_directory_docs.epeg") + private String epeg; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2162209+08:00", comments="Source field: public.files_apply_directory_docs.filenum") + private String filenum; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2162209+08:00", comments="Source field: public.files_apply_directory_docs.remark") + private String remark; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2172125+08:00", comments="Source field: public.files_apply_directory_docs.recordnum") + private String recordnum; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2172125+08:00", comments="Source field: public.files_apply_directory_docs.piecenumber") + private String piecenumber; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2172125+08:00", comments="Source field: public.files_apply_directory_docs.adddate") + private String adddate; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2172125+08:00", comments="Source field: public.files_apply_directory_docs.editdate") + private String editdate; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2172125+08:00", comments="Source field: public.files_apply_directory_docs.time_stamp") + private String time_stamp; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2172125+08:00", comments="Source field: public.files_apply_directory_docs.isdel") + private Integer isdel; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2172125+08:00", comments="Source field: public.files_apply_directory_docs.catalogpdfurl") + private String catalogpdfurl; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2182117+08:00", comments="Source field: public.files_apply_directory_docs.signtag") + private String signtag; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2182117+08:00", comments="Source field: public.files_apply_directory_docs.collecttag") + private String collecttag; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2142452+08:00", comments="Source field: public.files_apply_directory_docs.id") + public String getId() { + return id; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2142452+08:00", comments="Source field: public.files_apply_directory_docs.id") + public void setId(String id) { + this.id = id == null ? null : id.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2142452+08:00", comments="Source field: public.files_apply_directory_docs.files_apply_id") + public String getFiles_apply_id() { + return files_apply_id; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2142452+08:00", comments="Source field: public.files_apply_directory_docs.files_apply_id") + public void setFiles_apply_id(String files_apply_id) { + this.files_apply_id = files_apply_id == null ? null : files_apply_id.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2142452+08:00", comments="Source field: public.files_apply_directory_docs.directory_file_id") + public String getDirectory_file_id() { + return directory_file_id; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2142452+08:00", comments="Source field: public.files_apply_directory_docs.directory_file_id") + public void setDirectory_file_id(String directory_file_id) { + this.directory_file_id = directory_file_id == null ? null : directory_file_id.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2142452+08:00", comments="Source field: public.files_apply_directory_docs.directory_file_p_id") + public String getDirectory_file_p_id() { + return directory_file_p_id; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2152123+08:00", comments="Source field: public.files_apply_directory_docs.directory_file_p_id") + public void setDirectory_file_p_id(String directory_file_p_id) { + this.directory_file_p_id = directory_file_p_id == null ? null : directory_file_p_id.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2152123+08:00", comments="Source field: public.files_apply_directory_docs.filesuper") + public String getFilesuper() { + return filesuper; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2152123+08:00", comments="Source field: public.files_apply_directory_docs.filesuper") + public void setFilesuper(String filesuper) { + this.filesuper = filesuper == null ? null : filesuper.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2152123+08:00", comments="Source field: public.files_apply_directory_docs.filecount") + public Integer getFilecount() { + return filecount; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2152123+08:00", comments="Source field: public.files_apply_directory_docs.filecount") + public void setFilecount(Integer filecount) { + this.filecount = filecount; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2152123+08:00", comments="Source field: public.files_apply_directory_docs.dutyperson") + public String getDutyperson() { + return dutyperson; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2152123+08:00", comments="Source field: public.files_apply_directory_docs.dutyperson") + public void setDutyperson(String dutyperson) { + this.dutyperson = dutyperson == null ? null : dutyperson.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2162209+08:00", comments="Source field: public.files_apply_directory_docs.eweavedate") + public String getEweavedate() { + return eweavedate; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2162209+08:00", comments="Source field: public.files_apply_directory_docs.eweavedate") + public void setEweavedate(String eweavedate) { + this.eweavedate = eweavedate == null ? null : eweavedate.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2162209+08:00", comments="Source field: public.files_apply_directory_docs.filepage") + public Integer getFilepage() { + return filepage; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2162209+08:00", comments="Source field: public.files_apply_directory_docs.filepage") + public void setFilepage(Integer filepage) { + this.filepage = filepage; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2162209+08:00", comments="Source field: public.files_apply_directory_docs.sortorder") + public String getSortorder() { + return sortorder; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2162209+08:00", comments="Source field: public.files_apply_directory_docs.sortorder") + public void setSortorder(String sortorder) { + this.sortorder = sortorder == null ? null : sortorder.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2162209+08:00", comments="Source field: public.files_apply_directory_docs.bpeg") + public String getBpeg() { + return bpeg; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2162209+08:00", comments="Source field: public.files_apply_directory_docs.bpeg") + public void setBpeg(String bpeg) { + this.bpeg = bpeg == null ? null : bpeg.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2162209+08:00", comments="Source field: public.files_apply_directory_docs.epeg") + public String getEpeg() { + return epeg; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2162209+08:00", comments="Source field: public.files_apply_directory_docs.epeg") + public void setEpeg(String epeg) { + this.epeg = epeg == null ? null : epeg.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2162209+08:00", comments="Source field: public.files_apply_directory_docs.filenum") + public String getFilenum() { + return filenum; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2162209+08:00", comments="Source field: public.files_apply_directory_docs.filenum") + public void setFilenum(String filenum) { + this.filenum = filenum == null ? null : filenum.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2172125+08:00", comments="Source field: public.files_apply_directory_docs.remark") + public String getRemark() { + return remark; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2172125+08:00", comments="Source field: public.files_apply_directory_docs.remark") + public void setRemark(String remark) { + this.remark = remark == null ? null : remark.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2172125+08:00", comments="Source field: public.files_apply_directory_docs.recordnum") + public String getRecordnum() { + return recordnum; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2172125+08:00", comments="Source field: public.files_apply_directory_docs.recordnum") + public void setRecordnum(String recordnum) { + this.recordnum = recordnum == null ? null : recordnum.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2172125+08:00", comments="Source field: public.files_apply_directory_docs.piecenumber") + public String getPiecenumber() { + return piecenumber; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2172125+08:00", comments="Source field: public.files_apply_directory_docs.piecenumber") + public void setPiecenumber(String piecenumber) { + this.piecenumber = piecenumber == null ? null : piecenumber.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2172125+08:00", comments="Source field: public.files_apply_directory_docs.adddate") + public String getAdddate() { + return adddate; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2172125+08:00", comments="Source field: public.files_apply_directory_docs.adddate") + public void setAdddate(String adddate) { + this.adddate = adddate == null ? null : adddate.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2172125+08:00", comments="Source field: public.files_apply_directory_docs.editdate") + public String getEditdate() { + return editdate; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2172125+08:00", comments="Source field: public.files_apply_directory_docs.editdate") + public void setEditdate(String editdate) { + this.editdate = editdate == null ? null : editdate.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2172125+08:00", comments="Source field: public.files_apply_directory_docs.time_stamp") + public String getTime_stamp() { + return time_stamp; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2172125+08:00", comments="Source field: public.files_apply_directory_docs.time_stamp") + public void setTime_stamp(String time_stamp) { + this.time_stamp = time_stamp == null ? null : time_stamp.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2172125+08:00", comments="Source field: public.files_apply_directory_docs.isdel") + public Integer getIsdel() { + return isdel; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2172125+08:00", comments="Source field: public.files_apply_directory_docs.isdel") + public void setIsdel(Integer isdel) { + this.isdel = isdel; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2172125+08:00", comments="Source field: public.files_apply_directory_docs.catalogpdfurl") + public String getCatalogpdfurl() { + return catalogpdfurl; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2172125+08:00", comments="Source field: public.files_apply_directory_docs.catalogpdfurl") + public void setCatalogpdfurl(String catalogpdfurl) { + this.catalogpdfurl = catalogpdfurl == null ? null : catalogpdfurl.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2182117+08:00", comments="Source field: public.files_apply_directory_docs.signtag") + public String getSigntag() { + return signtag; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2182117+08:00", comments="Source field: public.files_apply_directory_docs.signtag") + public void setSigntag(String signtag) { + this.signtag = signtag == null ? null : signtag.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2182117+08:00", comments="Source field: public.files_apply_directory_docs.collecttag") + public String getCollecttag() { + return collecttag; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2182117+08:00", comments="Source field: public.files_apply_directory_docs.collecttag") + public void setCollecttag(String collecttag) { + this.collecttag = collecttag == null ? null : collecttag.trim(); + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/entity/FilesApplyDocs.java b/src/main/java/jj/tech/paolu/repository/mybatis/entity/FilesApplyDocs.java new file mode 100644 index 0000000..448a063 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/entity/FilesApplyDocs.java @@ -0,0 +1,283 @@ +package jj.tech.paolu.repository.mybatis.entity; + +import jakarta.annotation.Generated; + +/** + * + * This class was generated by MyBatis Generator. + * This class corresponds to the database table public.files_apply_docs + */ +public class FilesApplyDocs { + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2671475+08:00", comments="Source field: public.files_apply_docs.id") + private String id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2671475+08:00", comments="Source field: public.files_apply_docs.files_apply_id") + private String files_apply_id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2671475+08:00", comments="Source field: public.files_apply_docs.syn_file_id") + private String syn_file_id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2671475+08:00", comments="Source field: public.files_apply_docs.syn_file_p_id") + private String syn_file_p_id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2671475+08:00", comments="Source field: public.files_apply_docs.tablenumber") + private String tablenumber; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2671475+08:00", comments="Source field: public.files_apply_docs.annexname") + private String annexname; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2671475+08:00", comments="Source field: public.files_apply_docs.projectname") + private String projectname; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2671475+08:00", comments="Source field: public.files_apply_docs.eweavedate") + private String eweavedate; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2671475+08:00", comments="Source field: public.files_apply_docs.checkdate") + private String checkdate; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2671475+08:00", comments="Source field: public.files_apply_docs.annexpage") + private Integer annexpage; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2671475+08:00", comments="Source field: public.files_apply_docs.sortorder") + private String sortorder; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2671475+08:00", comments="Source field: public.files_apply_docs.filefrom") + private String filefrom; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2671475+08:00", comments="Source field: public.files_apply_docs.archivestag") + private String archivestag; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2671475+08:00", comments="Source field: public.files_apply_docs.adddate") + private String adddate; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2671475+08:00", comments="Source field: public.files_apply_docs.editdate") + private String editdate; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2671475+08:00", comments="Source field: public.files_apply_docs.time_stamp") + private String time_stamp; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2671475+08:00", comments="Source field: public.files_apply_docs.isdel") + private Integer isdel; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.268147+08:00", comments="Source field: public.files_apply_docs.downurl") + private String downurl; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.268147+08:00", comments="Source field: public.files_apply_docs.filesize") + private Integer filesize; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.268147+08:00", comments="Source field: public.files_apply_docs.apply_view_type_print") + private Integer apply_view_type_print; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.268147+08:00", comments="Source field: public.files_apply_docs.apply_view_type_online") + private Integer apply_view_type_online; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2671475+08:00", comments="Source field: public.files_apply_docs.id") + public String getId() { + return id; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2671475+08:00", comments="Source field: public.files_apply_docs.id") + public void setId(String id) { + this.id = id == null ? null : id.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2671475+08:00", comments="Source field: public.files_apply_docs.files_apply_id") + public String getFiles_apply_id() { + return files_apply_id; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2671475+08:00", comments="Source field: public.files_apply_docs.files_apply_id") + public void setFiles_apply_id(String files_apply_id) { + this.files_apply_id = files_apply_id == null ? null : files_apply_id.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2671475+08:00", comments="Source field: public.files_apply_docs.syn_file_id") + public String getSyn_file_id() { + return syn_file_id; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2671475+08:00", comments="Source field: public.files_apply_docs.syn_file_id") + public void setSyn_file_id(String syn_file_id) { + this.syn_file_id = syn_file_id == null ? null : syn_file_id.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2671475+08:00", comments="Source field: public.files_apply_docs.syn_file_p_id") + public String getSyn_file_p_id() { + return syn_file_p_id; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2671475+08:00", comments="Source field: public.files_apply_docs.syn_file_p_id") + public void setSyn_file_p_id(String syn_file_p_id) { + this.syn_file_p_id = syn_file_p_id == null ? null : syn_file_p_id.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2671475+08:00", comments="Source field: public.files_apply_docs.tablenumber") + public String getTablenumber() { + return tablenumber; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2671475+08:00", comments="Source field: public.files_apply_docs.tablenumber") + public void setTablenumber(String tablenumber) { + this.tablenumber = tablenumber == null ? null : tablenumber.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2671475+08:00", comments="Source field: public.files_apply_docs.annexname") + public String getAnnexname() { + return annexname; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2671475+08:00", comments="Source field: public.files_apply_docs.annexname") + public void setAnnexname(String annexname) { + this.annexname = annexname == null ? null : annexname.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2671475+08:00", comments="Source field: public.files_apply_docs.projectname") + public String getProjectname() { + return projectname; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2671475+08:00", comments="Source field: public.files_apply_docs.projectname") + public void setProjectname(String projectname) { + this.projectname = projectname == null ? null : projectname.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2671475+08:00", comments="Source field: public.files_apply_docs.eweavedate") + public String getEweavedate() { + return eweavedate; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2671475+08:00", comments="Source field: public.files_apply_docs.eweavedate") + public void setEweavedate(String eweavedate) { + this.eweavedate = eweavedate == null ? null : eweavedate.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2671475+08:00", comments="Source field: public.files_apply_docs.checkdate") + public String getCheckdate() { + return checkdate; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2671475+08:00", comments="Source field: public.files_apply_docs.checkdate") + public void setCheckdate(String checkdate) { + this.checkdate = checkdate == null ? null : checkdate.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2671475+08:00", comments="Source field: public.files_apply_docs.annexpage") + public Integer getAnnexpage() { + return annexpage; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2671475+08:00", comments="Source field: public.files_apply_docs.annexpage") + public void setAnnexpage(Integer annexpage) { + this.annexpage = annexpage; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2671475+08:00", comments="Source field: public.files_apply_docs.sortorder") + public String getSortorder() { + return sortorder; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2671475+08:00", comments="Source field: public.files_apply_docs.sortorder") + public void setSortorder(String sortorder) { + this.sortorder = sortorder == null ? null : sortorder.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2671475+08:00", comments="Source field: public.files_apply_docs.filefrom") + public String getFilefrom() { + return filefrom; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2671475+08:00", comments="Source field: public.files_apply_docs.filefrom") + public void setFilefrom(String filefrom) { + this.filefrom = filefrom == null ? null : filefrom.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2671475+08:00", comments="Source field: public.files_apply_docs.archivestag") + public String getArchivestag() { + return archivestag; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2671475+08:00", comments="Source field: public.files_apply_docs.archivestag") + public void setArchivestag(String archivestag) { + this.archivestag = archivestag == null ? null : archivestag.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2671475+08:00", comments="Source field: public.files_apply_docs.adddate") + public String getAdddate() { + return adddate; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2671475+08:00", comments="Source field: public.files_apply_docs.adddate") + public void setAdddate(String adddate) { + this.adddate = adddate == null ? null : adddate.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2671475+08:00", comments="Source field: public.files_apply_docs.editdate") + public String getEditdate() { + return editdate; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2671475+08:00", comments="Source field: public.files_apply_docs.editdate") + public void setEditdate(String editdate) { + this.editdate = editdate == null ? null : editdate.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2671475+08:00", comments="Source field: public.files_apply_docs.time_stamp") + public String getTime_stamp() { + return time_stamp; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2671475+08:00", comments="Source field: public.files_apply_docs.time_stamp") + public void setTime_stamp(String time_stamp) { + this.time_stamp = time_stamp == null ? null : time_stamp.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.268147+08:00", comments="Source field: public.files_apply_docs.isdel") + public Integer getIsdel() { + return isdel; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.268147+08:00", comments="Source field: public.files_apply_docs.isdel") + public void setIsdel(Integer isdel) { + this.isdel = isdel; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.268147+08:00", comments="Source field: public.files_apply_docs.downurl") + public String getDownurl() { + return downurl; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.268147+08:00", comments="Source field: public.files_apply_docs.downurl") + public void setDownurl(String downurl) { + this.downurl = downurl == null ? null : downurl.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.268147+08:00", comments="Source field: public.files_apply_docs.filesize") + public Integer getFilesize() { + return filesize; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.268147+08:00", comments="Source field: public.files_apply_docs.filesize") + public void setFilesize(Integer filesize) { + this.filesize = filesize; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.268147+08:00", comments="Source field: public.files_apply_docs.apply_view_type_print") + public Integer getApply_view_type_print() { + return apply_view_type_print; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.268147+08:00", comments="Source field: public.files_apply_docs.apply_view_type_print") + public void setApply_view_type_print(Integer apply_view_type_print) { + this.apply_view_type_print = apply_view_type_print; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.268147+08:00", comments="Source field: public.files_apply_docs.apply_view_type_online") + public Integer getApply_view_type_online() { + return apply_view_type_online; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.268147+08:00", comments="Source field: public.files_apply_docs.apply_view_type_online") + public void setApply_view_type_online(Integer apply_view_type_online) { + this.apply_view_type_online = apply_view_type_online; + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/entity/FilesApplyDownloadRecord.java b/src/main/java/jj/tech/paolu/repository/mybatis/entity/FilesApplyDownloadRecord.java new file mode 100644 index 0000000..8bbb186 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/entity/FilesApplyDownloadRecord.java @@ -0,0 +1,154 @@ +package jj.tech.paolu.repository.mybatis.entity; + +import jakarta.annotation.Generated; +import java.time.LocalDateTime; + +/** + * + * This class was generated by MyBatis Generator. + * This class corresponds to the database table public.files_apply_download_record + */ +public class FilesApplyDownloadRecord { + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2931502+08:00", comments="Source field: public.files_apply_download_record.id") + private String id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2931502+08:00", comments="Source field: public.files_apply_download_record.files_apply_id") + private String files_apply_id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2931502+08:00", comments="Source field: public.files_apply_download_record.is_dir_file") + private Integer is_dir_file; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2931502+08:00", comments="Source field: public.files_apply_download_record.syn_file_id") + private String syn_file_id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2931502+08:00", comments="Source field: public.files_apply_download_record.syn_file_p_id") + private String syn_file_p_id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2931502+08:00", comments="Source field: public.files_apply_download_record.syn_file_name") + private String syn_file_name; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2931502+08:00", comments="Source field: public.files_apply_download_record.user_id") + private String user_id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2931502+08:00", comments="Source field: public.files_apply_download_record.user_name") + private String user_name; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2931502+08:00", comments="Source field: public.files_apply_download_record.org_id") + private String org_id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2931502+08:00", comments="Source field: public.files_apply_download_record.org_name") + private String org_name; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2931502+08:00", comments="Source field: public.files_apply_download_record.download_time") + private LocalDateTime download_time; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2931502+08:00", comments="Source field: public.files_apply_download_record.id") + public String getId() { + return id; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2931502+08:00", comments="Source field: public.files_apply_download_record.id") + public void setId(String id) { + this.id = id == null ? null : id.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2931502+08:00", comments="Source field: public.files_apply_download_record.files_apply_id") + public String getFiles_apply_id() { + return files_apply_id; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2931502+08:00", comments="Source field: public.files_apply_download_record.files_apply_id") + public void setFiles_apply_id(String files_apply_id) { + this.files_apply_id = files_apply_id == null ? null : files_apply_id.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2931502+08:00", comments="Source field: public.files_apply_download_record.is_dir_file") + public Integer getIs_dir_file() { + return is_dir_file; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2931502+08:00", comments="Source field: public.files_apply_download_record.is_dir_file") + public void setIs_dir_file(Integer is_dir_file) { + this.is_dir_file = is_dir_file; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2931502+08:00", comments="Source field: public.files_apply_download_record.syn_file_id") + public String getSyn_file_id() { + return syn_file_id; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2931502+08:00", comments="Source field: public.files_apply_download_record.syn_file_id") + public void setSyn_file_id(String syn_file_id) { + this.syn_file_id = syn_file_id == null ? null : syn_file_id.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2931502+08:00", comments="Source field: public.files_apply_download_record.syn_file_p_id") + public String getSyn_file_p_id() { + return syn_file_p_id; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2931502+08:00", comments="Source field: public.files_apply_download_record.syn_file_p_id") + public void setSyn_file_p_id(String syn_file_p_id) { + this.syn_file_p_id = syn_file_p_id == null ? null : syn_file_p_id.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2931502+08:00", comments="Source field: public.files_apply_download_record.syn_file_name") + public String getSyn_file_name() { + return syn_file_name; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2931502+08:00", comments="Source field: public.files_apply_download_record.syn_file_name") + public void setSyn_file_name(String syn_file_name) { + this.syn_file_name = syn_file_name == null ? null : syn_file_name.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2931502+08:00", comments="Source field: public.files_apply_download_record.user_id") + public String getUser_id() { + return user_id; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2931502+08:00", comments="Source field: public.files_apply_download_record.user_id") + public void setUser_id(String user_id) { + this.user_id = user_id == null ? null : user_id.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2931502+08:00", comments="Source field: public.files_apply_download_record.user_name") + public String getUser_name() { + return user_name; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2931502+08:00", comments="Source field: public.files_apply_download_record.user_name") + public void setUser_name(String user_name) { + this.user_name = user_name == null ? null : user_name.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2931502+08:00", comments="Source field: public.files_apply_download_record.org_id") + public String getOrg_id() { + return org_id; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2931502+08:00", comments="Source field: public.files_apply_download_record.org_id") + public void setOrg_id(String org_id) { + this.org_id = org_id == null ? null : org_id.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2931502+08:00", comments="Source field: public.files_apply_download_record.org_name") + public String getOrg_name() { + return org_name; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2931502+08:00", comments="Source field: public.files_apply_download_record.org_name") + public void setOrg_name(String org_name) { + this.org_name = org_name == null ? null : org_name.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2931502+08:00", comments="Source field: public.files_apply_download_record.download_time") + public LocalDateTime getDownload_time() { + return download_time; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2931502+08:00", comments="Source field: public.files_apply_download_record.download_time") + public void setDownload_time(LocalDateTime download_time) { + this.download_time = download_time; + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/entity/PreShareDirectoryFileTag.java b/src/main/java/jj/tech/paolu/repository/mybatis/entity/PreShareDirectoryFileTag.java new file mode 100644 index 0000000..5e514e8 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/entity/PreShareDirectoryFileTag.java @@ -0,0 +1,66 @@ +package jj.tech.paolu.repository.mybatis.entity; + +import jakarta.annotation.Generated; +import java.time.LocalDateTime; + +/** + * Database Table Remarks: + * 预共享文件标记表:记录用户通过配置想要达到的共享状态,既用于支持用户前台界面查询需求,也作为后续实际上链的数据源。提供此表的目的,在于在大数据量情况下,加速对用户配置请求的处理速度,降低阻塞用户新增配置的等待时间。 +为加速数据库操作处理,此表仅保留必须字段 + * + * This class was generated by MyBatis Generator. + * This class corresponds to the database table public.pre_share_directory_file_tag + */ +public class PreShareDirectoryFileTag { + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-08T11:33:24.1676417+08:00", comments="Source field: public.pre_share_directory_file_tag.id") + private String id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-08T11:33:24.1676417+08:00", comments="Source field: public.pre_share_directory_file_tag.share_status") + private Integer share_status; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-08T11:33:24.1676417+08:00", comments="Source field: public.pre_share_directory_file_tag.update_time") + private LocalDateTime update_time; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-08T11:33:24.1676417+08:00", comments="Source field: public.pre_share_directory_file_tag.sync_bc_time") + private LocalDateTime sync_bc_time; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-08T11:33:24.1676417+08:00", comments="Source field: public.pre_share_directory_file_tag.id") + public String getId() { + return id; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-08T11:33:24.1676417+08:00", comments="Source field: public.pre_share_directory_file_tag.id") + public void setId(String id) { + this.id = id == null ? null : id.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-08T11:33:24.1676417+08:00", comments="Source field: public.pre_share_directory_file_tag.share_status") + public Integer getShare_status() { + return share_status; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-08T11:33:24.1676417+08:00", comments="Source field: public.pre_share_directory_file_tag.share_status") + public void setShare_status(Integer share_status) { + this.share_status = share_status; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-08T11:33:24.1676417+08:00", comments="Source field: public.pre_share_directory_file_tag.update_time") + public LocalDateTime getUpdate_time() { + return update_time; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-08T11:33:24.1676417+08:00", comments="Source field: public.pre_share_directory_file_tag.update_time") + public void setUpdate_time(LocalDateTime update_time) { + this.update_time = update_time; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-08T11:33:24.1676417+08:00", comments="Source field: public.pre_share_directory_file_tag.sync_bc_time") + public LocalDateTime getSync_bc_time() { + return sync_bc_time; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-08T11:33:24.1676417+08:00", comments="Source field: public.pre_share_directory_file_tag.sync_bc_time") + public void setSync_bc_time(LocalDateTime sync_bc_time) { + this.sync_bc_time = sync_bc_time; + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/entity/PreShareDirectoryTag.java b/src/main/java/jj/tech/paolu/repository/mybatis/entity/PreShareDirectoryTag.java new file mode 100644 index 0000000..05534b4 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/entity/PreShareDirectoryTag.java @@ -0,0 +1,66 @@ +package jj.tech.paolu.repository.mybatis.entity; + +import jakarta.annotation.Generated; +import java.time.LocalDateTime; + +/** + * Database Table Remarks: + * 预共享目录标记表:记录用户通过配置想要达到的共享状态,既用于支持用户前台界面查询需求,也作为后续实际上链的数据源。提供此表的目的,在于在大数据量情况下,加速对用户配置请求的处理速度,降低阻塞用户新增配置的等待时间。 +为加速数据库操作处理,此表仅保留必须字段 + * + * This class was generated by MyBatis Generator. + * This class corresponds to the database table public.pre_share_directory_tag + */ +public class PreShareDirectoryTag { + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-08T11:33:24.140001+08:00", comments="Source field: public.pre_share_directory_tag.id") + private String id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-08T11:33:24.1410891+08:00", comments="Source field: public.pre_share_directory_tag.share_status") + private Integer share_status; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-08T11:33:24.1421349+08:00", comments="Source field: public.pre_share_directory_tag.update_time") + private LocalDateTime update_time; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-08T11:33:24.1421349+08:00", comments="Source field: public.pre_share_directory_tag.sync_bc_time") + private LocalDateTime sync_bc_time; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-08T11:33:24.1410891+08:00", comments="Source field: public.pre_share_directory_tag.id") + public String getId() { + return id; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-08T11:33:24.1410891+08:00", comments="Source field: public.pre_share_directory_tag.id") + public void setId(String id) { + this.id = id == null ? null : id.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-08T11:33:24.1421349+08:00", comments="Source field: public.pre_share_directory_tag.share_status") + public Integer getShare_status() { + return share_status; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-08T11:33:24.1421349+08:00", comments="Source field: public.pre_share_directory_tag.share_status") + public void setShare_status(Integer share_status) { + this.share_status = share_status; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-08T11:33:24.1421349+08:00", comments="Source field: public.pre_share_directory_tag.update_time") + public LocalDateTime getUpdate_time() { + return update_time; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-08T11:33:24.1421349+08:00", comments="Source field: public.pre_share_directory_tag.update_time") + public void setUpdate_time(LocalDateTime update_time) { + this.update_time = update_time; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-08T11:33:24.1421349+08:00", comments="Source field: public.pre_share_directory_tag.sync_bc_time") + public LocalDateTime getSync_bc_time() { + return sync_bc_time; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-08T11:33:24.1421349+08:00", comments="Source field: public.pre_share_directory_tag.sync_bc_time") + public void setSync_bc_time(LocalDateTime sync_bc_time) { + this.sync_bc_time = sync_bc_time; + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/entity/PreShareFileTag.java b/src/main/java/jj/tech/paolu/repository/mybatis/entity/PreShareFileTag.java new file mode 100644 index 0000000..6b646fe --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/entity/PreShareFileTag.java @@ -0,0 +1,63 @@ +package jj.tech.paolu.repository.mybatis.entity; + +import jakarta.annotation.Generated; +import java.time.LocalDateTime; + +/** + * + * This class was generated by MyBatis Generator. + * This class corresponds to the database table public.pre_share_file_tag + */ +public class PreShareFileTag { + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-08T11:33:24.1702515+08:00", comments="Source field: public.pre_share_file_tag.id") + private String id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-08T11:33:24.1702515+08:00", comments="Source field: public.pre_share_file_tag.share_status") + private Integer share_status; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-08T11:33:24.1702515+08:00", comments="Source field: public.pre_share_file_tag.update_time") + private LocalDateTime update_time; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-08T11:33:24.1702515+08:00", comments="Source field: public.pre_share_file_tag.sync_bc_time") + private LocalDateTime sync_bc_time; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-08T11:33:24.1702515+08:00", comments="Source field: public.pre_share_file_tag.id") + public String getId() { + return id; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-08T11:33:24.1702515+08:00", comments="Source field: public.pre_share_file_tag.id") + public void setId(String id) { + this.id = id == null ? null : id.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-08T11:33:24.1702515+08:00", comments="Source field: public.pre_share_file_tag.share_status") + public Integer getShare_status() { + return share_status; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-08T11:33:24.1702515+08:00", comments="Source field: public.pre_share_file_tag.share_status") + public void setShare_status(Integer share_status) { + this.share_status = share_status; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-08T11:33:24.1702515+08:00", comments="Source field: public.pre_share_file_tag.update_time") + public LocalDateTime getUpdate_time() { + return update_time; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-08T11:33:24.1702515+08:00", comments="Source field: public.pre_share_file_tag.update_time") + public void setUpdate_time(LocalDateTime update_time) { + this.update_time = update_time; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-08T11:33:24.1702515+08:00", comments="Source field: public.pre_share_file_tag.sync_bc_time") + public LocalDateTime getSync_bc_time() { + return sync_bc_time; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-08T11:33:24.1702515+08:00", comments="Source field: public.pre_share_file_tag.sync_bc_time") + public void setSync_bc_time(LocalDateTime sync_bc_time) { + this.sync_bc_time = sync_bc_time; + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/entity/Project.java b/src/main/java/jj/tech/paolu/repository/mybatis/entity/Project.java new file mode 100644 index 0000000..3c7fe6b --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/entity/Project.java @@ -0,0 +1,62 @@ +package jj.tech.paolu.repository.mybatis.entity; + +import jakarta.annotation.Generated; + +/** + * + * This class was generated by MyBatis Generator. + * This class corresponds to the database table public.project + */ +public class Project { + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2801782+08:00", comments="Source field: public.project.id") + private String id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2801782+08:00", comments="Source field: public.project.project_name") + private String project_name; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2801782+08:00", comments="Source field: public.project.org_id") + private String org_id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2801782+08:00", comments="Source field: public.project.org_name") + private String org_name; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2801782+08:00", comments="Source field: public.project.id") + public String getId() { + return id; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2801782+08:00", comments="Source field: public.project.id") + public void setId(String id) { + this.id = id == null ? null : id.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2801782+08:00", comments="Source field: public.project.project_name") + public String getProject_name() { + return project_name; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2801782+08:00", comments="Source field: public.project.project_name") + public void setProject_name(String project_name) { + this.project_name = project_name == null ? null : project_name.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2801782+08:00", comments="Source field: public.project.org_id") + public String getOrg_id() { + return org_id; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2801782+08:00", comments="Source field: public.project.org_id") + public void setOrg_id(String org_id) { + this.org_id = org_id == null ? null : org_id.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2801782+08:00", comments="Source field: public.project.org_name") + public String getOrg_name() { + return org_name; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2801782+08:00", comments="Source field: public.project.org_name") + public void setOrg_name(String org_name) { + this.org_name = org_name == null ? null : org_name.trim(); + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/entity/Provider.java b/src/main/java/jj/tech/paolu/repository/mybatis/entity/Provider.java new file mode 100644 index 0000000..c2f1019 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/entity/Provider.java @@ -0,0 +1,104 @@ +package jj.tech.paolu.repository.mybatis.entity; + +import jakarta.annotation.Generated; +import java.time.LocalDateTime; + +/** + * Database Table Remarks: + * 共享档案的提供方,数据从链上获取 + * + * This class was generated by MyBatis Generator. + * This class corresponds to the database table public.provider + */ +public class Provider { + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T13:50:09.0786616+08:00", comments="Source field: public.provider.id") + private String id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T13:50:09.0796884+08:00", comments="Source field: public.provider.name") + private String name; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T13:50:09.0796884+08:00", comments="Source field: public.provider.create_time") + private LocalDateTime create_time; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T13:50:09.0796884+08:00", comments="Source field: public.provider.update_time") + private LocalDateTime update_time; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T13:50:09.0796884+08:00", comments="Source field: public.provider.last_update_data_time") + private LocalDateTime last_update_data_time; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T13:50:09.0796884+08:00", comments="Source field: public.provider.last_query_data_time") + private LocalDateTime last_query_data_time; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T13:50:09.0796884+08:00", comments="Source field: public.provider.status") + private String status; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T13:50:09.0786616+08:00", comments="Source field: public.provider.id") + public String getId() { + return id; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T13:50:09.0796884+08:00", comments="Source field: public.provider.id") + public void setId(String id) { + this.id = id == null ? null : id.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T13:50:09.0796884+08:00", comments="Source field: public.provider.name") + public String getName() { + return name; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T13:50:09.0796884+08:00", comments="Source field: public.provider.name") + public void setName(String name) { + this.name = name == null ? null : name.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T13:50:09.0796884+08:00", comments="Source field: public.provider.create_time") + public LocalDateTime getCreate_time() { + return create_time; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T13:50:09.0796884+08:00", comments="Source field: public.provider.create_time") + public void setCreate_time(LocalDateTime create_time) { + this.create_time = create_time; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T13:50:09.0796884+08:00", comments="Source field: public.provider.update_time") + public LocalDateTime getUpdate_time() { + return update_time; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T13:50:09.0796884+08:00", comments="Source field: public.provider.update_time") + public void setUpdate_time(LocalDateTime update_time) { + this.update_time = update_time; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T13:50:09.0796884+08:00", comments="Source field: public.provider.last_update_data_time") + public LocalDateTime getLast_update_data_time() { + return last_update_data_time; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T13:50:09.0796884+08:00", comments="Source field: public.provider.last_update_data_time") + public void setLast_update_data_time(LocalDateTime last_update_data_time) { + this.last_update_data_time = last_update_data_time; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T13:50:09.0796884+08:00", comments="Source field: public.provider.last_query_data_time") + public LocalDateTime getLast_query_data_time() { + return last_query_data_time; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T13:50:09.0796884+08:00", comments="Source field: public.provider.last_query_data_time") + public void setLast_query_data_time(LocalDateTime last_query_data_time) { + this.last_query_data_time = last_query_data_time; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T13:50:09.0796884+08:00", comments="Source field: public.provider.status") + public String getStatus() { + return status; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T13:50:09.0796884+08:00", comments="Source field: public.provider.status") + public void setStatus(String status) { + this.status = status == null ? null : status.trim(); + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/entity/ReadLog.java b/src/main/java/jj/tech/paolu/repository/mybatis/entity/ReadLog.java new file mode 100644 index 0000000..5a3cec5 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/entity/ReadLog.java @@ -0,0 +1,230 @@ +package jj.tech.paolu.repository.mybatis.entity; + +import jakarta.annotation.Generated; +import java.time.LocalDateTime; + +/** + * Database Table Remarks: + * 阅读情况 + * + * This class was generated by MyBatis Generator. + * This class corresponds to the database table public.read_log + */ +public class ReadLog { + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2631526+08:00", comments="Source field: public.read_log.id") + private String id; + + /** + * Database Column Remarks: + * 申请人id + */ + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2631526+08:00", comments="Source field: public.read_log.weid") + private String weid; + + /** + * Database Column Remarks: + * 档案id + */ + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2631526+08:00", comments="Source field: public.read_log.content_id") + private String content_id; + + /** + * Database Column Remarks: + * 开始时间 + */ + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2631526+08:00", comments="Source field: public.read_log.starttime") + private LocalDateTime starttime; + + /** + * Database Column Remarks: + * 结束时间 + */ + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2631526+08:00", comments="Source field: public.read_log.endtime") + private LocalDateTime endtime; + + /** + * Database Column Remarks: + * ip地址 + */ + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2631526+08:00", comments="Source field: public.read_log.ip") + private String ip; + + /** + * Database Column Remarks: + * 区域 + */ + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2641476+08:00", comments="Source field: public.read_log.location") + private String location; + + /** + * Database Column Remarks: + * 下载类型(1文件包/0单文件) + */ + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2641476+08:00", comments="Source field: public.read_log.downloadtype") + private Integer downloadtype; + + /** + * Database Column Remarks: + * 数字签名 + */ + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2641476+08:00", comments="Source field: public.read_log.sign") + private String sign; + + /** + * Database Column Remarks: + * 一次阅读凭证id + */ + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2641476+08:00", comments="Source field: public.read_log.readid") + private String readid; + + /** + * Database Column Remarks: + * 秘钥id + */ + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2641476+08:00", comments="Source field: public.read_log.sm9hibeid") + private String sm9hibeid; + + /** + * Database Column Remarks: + * 档案类型 + */ + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2641476+08:00", comments="Source field: public.read_log.content_type") + private Integer content_type; + + /** + * Database Column Remarks: + * 是否上链(1是,0否) + */ + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2641476+08:00", comments="Source field: public.read_log.ischeck") + private Integer ischeck; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2631526+08:00", comments="Source field: public.read_log.id") + public String getId() { + return id; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2631526+08:00", comments="Source field: public.read_log.id") + public void setId(String id) { + this.id = id == null ? null : id.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2631526+08:00", comments="Source field: public.read_log.weid") + public String getWeid() { + return weid; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2631526+08:00", comments="Source field: public.read_log.weid") + public void setWeid(String weid) { + this.weid = weid == null ? null : weid.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2631526+08:00", comments="Source field: public.read_log.content_id") + public String getContent_id() { + return content_id; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2631526+08:00", comments="Source field: public.read_log.content_id") + public void setContent_id(String content_id) { + this.content_id = content_id == null ? null : content_id.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2631526+08:00", comments="Source field: public.read_log.starttime") + public LocalDateTime getStarttime() { + return starttime; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2631526+08:00", comments="Source field: public.read_log.starttime") + public void setStarttime(LocalDateTime starttime) { + this.starttime = starttime; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2631526+08:00", comments="Source field: public.read_log.endtime") + public LocalDateTime getEndtime() { + return endtime; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2631526+08:00", comments="Source field: public.read_log.endtime") + public void setEndtime(LocalDateTime endtime) { + this.endtime = endtime; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2631526+08:00", comments="Source field: public.read_log.ip") + public String getIp() { + return ip; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2641476+08:00", comments="Source field: public.read_log.ip") + public void setIp(String ip) { + this.ip = ip == null ? null : ip.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2641476+08:00", comments="Source field: public.read_log.location") + public String getLocation() { + return location; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2641476+08:00", comments="Source field: public.read_log.location") + public void setLocation(String location) { + this.location = location == null ? null : location.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2641476+08:00", comments="Source field: public.read_log.downloadtype") + public Integer getDownloadtype() { + return downloadtype; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2641476+08:00", comments="Source field: public.read_log.downloadtype") + public void setDownloadtype(Integer downloadtype) { + this.downloadtype = downloadtype; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2641476+08:00", comments="Source field: public.read_log.sign") + public String getSign() { + return sign; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2641476+08:00", comments="Source field: public.read_log.sign") + public void setSign(String sign) { + this.sign = sign == null ? null : sign.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2641476+08:00", comments="Source field: public.read_log.readid") + public String getReadid() { + return readid; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2641476+08:00", comments="Source field: public.read_log.readid") + public void setReadid(String readid) { + this.readid = readid == null ? null : readid.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2641476+08:00", comments="Source field: public.read_log.sm9hibeid") + public String getSm9hibeid() { + return sm9hibeid; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2641476+08:00", comments="Source field: public.read_log.sm9hibeid") + public void setSm9hibeid(String sm9hibeid) { + this.sm9hibeid = sm9hibeid == null ? null : sm9hibeid.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2641476+08:00", comments="Source field: public.read_log.content_type") + public Integer getContent_type() { + return content_type; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2641476+08:00", comments="Source field: public.read_log.content_type") + public void setContent_type(Integer content_type) { + this.content_type = content_type; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2641476+08:00", comments="Source field: public.read_log.ischeck") + public Integer getIscheck() { + return ischeck; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2641476+08:00", comments="Source field: public.read_log.ischeck") + public void setIscheck(Integer ischeck) { + this.ischeck = ischeck; + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/entity/ShareConfigDetail.java b/src/main/java/jj/tech/paolu/repository/mybatis/entity/ShareConfigDetail.java new file mode 100644 index 0000000..ca95897 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/entity/ShareConfigDetail.java @@ -0,0 +1,90 @@ +package jj.tech.paolu.repository.mybatis.entity; + +import jakarta.annotation.Generated; +import java.time.LocalDateTime; + +/** + * Database Table Remarks: + * 用户配置的目录树各节点的最终状态,用户配成什么样子就是什么样子 + * This class was generated by MyBatis Generator. + * This class corresponds to the database table public.share_config_detail + */ +public class ShareConfigDetail { + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T16:54:45.1795319+08:00", comments="Source field: public.share_config_detail.node_id") + private String node_id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T16:54:45.1805317+08:00", comments="Source field: public.share_config_detail.node_type") + private Integer node_type; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T16:54:45.1805317+08:00", comments="Source field: public.share_config_detail.share_config_statu") + private Integer share_config_statu; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T16:54:45.1805317+08:00", comments="Source field: public.share_config_detail.create_time") + private LocalDateTime create_time; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T16:54:45.1805317+08:00", comments="Source field: public.share_config_detail.update_time") + private LocalDateTime update_time; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T16:54:45.1805317+08:00", comments="Source field: public.share_config_detail.update_count") + private Integer update_count; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T16:54:45.1795319+08:00", comments="Source field: public.share_config_detail.node_id") + public String getNode_id() { + return node_id; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T16:54:45.1805317+08:00", comments="Source field: public.share_config_detail.node_id") + public void setNode_id(String node_id) { + this.node_id = node_id == null ? null : node_id.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T16:54:45.1805317+08:00", comments="Source field: public.share_config_detail.node_type") + public Integer getNode_type() { + return node_type; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T16:54:45.1805317+08:00", comments="Source field: public.share_config_detail.node_type") + public void setNode_type(Integer node_type) { + this.node_type = node_type; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T16:54:45.1805317+08:00", comments="Source field: public.share_config_detail.share_config_statu") + public Integer getShare_config_statu() { + return share_config_statu; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T16:54:45.1805317+08:00", comments="Source field: public.share_config_detail.share_config_statu") + public void setShare_config_statu(Integer share_config_statu) { + this.share_config_statu = share_config_statu; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T16:54:45.1805317+08:00", comments="Source field: public.share_config_detail.create_time") + public LocalDateTime getCreate_time() { + return create_time; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T16:54:45.1805317+08:00", comments="Source field: public.share_config_detail.create_time") + public void setCreate_time(LocalDateTime create_time) { + this.create_time = create_time; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T16:54:45.1805317+08:00", comments="Source field: public.share_config_detail.update_time") + public LocalDateTime getUpdate_time() { + return update_time; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T16:54:45.1805317+08:00", comments="Source field: public.share_config_detail.update_time") + public void setUpdate_time(LocalDateTime update_time) { + this.update_time = update_time; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T16:54:45.1805317+08:00", comments="Source field: public.share_config_detail.update_count") + public Integer getUpdate_count() { + return update_count; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T16:54:45.1805317+08:00", comments="Source field: public.share_config_detail.update_count") + public void setUpdate_count(Integer update_count) { + this.update_count = update_count; + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/entity/ShareDirectory.java b/src/main/java/jj/tech/paolu/repository/mybatis/entity/ShareDirectory.java new file mode 100644 index 0000000..24f19df --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/entity/ShareDirectory.java @@ -0,0 +1,127 @@ +package jj.tech.paolu.repository.mybatis.entity; + +import jakarta.annotation.Generated; + +/** + * + * This class was generated by MyBatis Generator. + * This class corresponds to the database table public.share_directory + */ +public class ShareDirectory { + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:43:40.6511982+08:00", comments="Source field: public.share_directory.id") + private String id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:43:40.6521972+08:00", comments="Source field: public.share_directory.provider_id") + private String provider_id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:43:40.6536146+08:00", comments="Source field: public.share_directory.p_id") + private String p_id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:43:40.6536146+08:00", comments="Source field: public.share_directory.wbs_id") + private String wbs_id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:43:40.6536146+08:00", comments="Source field: public.share_directory.time_stamp") + private String time_stamp; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:43:40.6536146+08:00", comments="Source field: public.share_directory.sortorder") + private Integer sortorder; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:43:40.6536146+08:00", comments="Source field: public.share_directory.tname") + private String tname; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:43:40.6536146+08:00", comments="Source field: public.share_directory.subjoin") + private Integer subjoin; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:43:40.6536146+08:00", comments="Source field: public.share_directory.isdel") + private Integer isdel; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:43:40.6521972+08:00", comments="Source field: public.share_directory.id") + public String getId() { + return id; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:43:40.6521972+08:00", comments="Source field: public.share_directory.id") + public void setId(String id) { + this.id = id == null ? null : id.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:43:40.6521972+08:00", comments="Source field: public.share_directory.provider_id") + public String getProvider_id() { + return provider_id; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:43:40.6536146+08:00", comments="Source field: public.share_directory.provider_id") + public void setProvider_id(String provider_id) { + this.provider_id = provider_id == null ? null : provider_id.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:43:40.6536146+08:00", comments="Source field: public.share_directory.p_id") + public String getP_id() { + return p_id; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:43:40.6536146+08:00", comments="Source field: public.share_directory.p_id") + public void setP_id(String p_id) { + this.p_id = p_id == null ? null : p_id.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:43:40.6536146+08:00", comments="Source field: public.share_directory.wbs_id") + public String getWbs_id() { + return wbs_id; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:43:40.6536146+08:00", comments="Source field: public.share_directory.wbs_id") + public void setWbs_id(String wbs_id) { + this.wbs_id = wbs_id == null ? null : wbs_id.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:43:40.6536146+08:00", comments="Source field: public.share_directory.time_stamp") + public String getTime_stamp() { + return time_stamp; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:43:40.6536146+08:00", comments="Source field: public.share_directory.time_stamp") + public void setTime_stamp(String time_stamp) { + this.time_stamp = time_stamp == null ? null : time_stamp.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:43:40.6536146+08:00", comments="Source field: public.share_directory.sortorder") + public Integer getSortorder() { + return sortorder; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:43:40.6536146+08:00", comments="Source field: public.share_directory.sortorder") + public void setSortorder(Integer sortorder) { + this.sortorder = sortorder; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:43:40.6536146+08:00", comments="Source field: public.share_directory.tname") + public String getTname() { + return tname; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:43:40.6536146+08:00", comments="Source field: public.share_directory.tname") + public void setTname(String tname) { + this.tname = tname == null ? null : tname.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:43:40.6536146+08:00", comments="Source field: public.share_directory.subjoin") + public Integer getSubjoin() { + return subjoin; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:43:40.6536146+08:00", comments="Source field: public.share_directory.subjoin") + public void setSubjoin(Integer subjoin) { + this.subjoin = subjoin; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:43:40.6536146+08:00", comments="Source field: public.share_directory.isdel") + public Integer getIsdel() { + return isdel; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:43:40.6536146+08:00", comments="Source field: public.share_directory.isdel") + public void setIsdel(Integer isdel) { + this.isdel = isdel; + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/entity/ShareDirectoryFile.java b/src/main/java/jj/tech/paolu/repository/mybatis/entity/ShareDirectoryFile.java new file mode 100644 index 0000000..4b0ff3b --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/entity/ShareDirectoryFile.java @@ -0,0 +1,296 @@ +package jj.tech.paolu.repository.mybatis.entity; + +import jakarta.annotation.Generated; + +/** + * + * This class was generated by MyBatis Generator. + * This class corresponds to the database table public.share_directory_file + */ +public class ShareDirectoryFile { + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:03:57.9071658+08:00", comments="Source field: public.share_directory_file.id") + private String id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:03:57.9081834+08:00", comments="Source field: public.share_directory_file.p_id") + private String p_id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:03:57.9081834+08:00", comments="Source field: public.share_directory_file.provider_id") + private String provider_id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:03:57.9081834+08:00", comments="Source field: public.share_directory_file.filesuper") + private String filesuper; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:03:57.9081834+08:00", comments="Source field: public.share_directory_file.filecount") + private Integer filecount; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:03:57.9081834+08:00", comments="Source field: public.share_directory_file.dutyperson") + private String dutyperson; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:03:57.9081834+08:00", comments="Source field: public.share_directory_file.eweavedate") + private String eweavedate; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:03:57.9091729+08:00", comments="Source field: public.share_directory_file.filepage") + private Integer filepage; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:03:57.9091729+08:00", comments="Source field: public.share_directory_file.sortorder") + private String sortorder; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:03:57.9091729+08:00", comments="Source field: public.share_directory_file.bpeg") + private String bpeg; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:03:57.9091729+08:00", comments="Source field: public.share_directory_file.epeg") + private String epeg; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:03:57.9091729+08:00", comments="Source field: public.share_directory_file.filenum") + private String filenum; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:03:57.9091729+08:00", comments="Source field: public.share_directory_file.remark") + private String remark; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:03:57.9091729+08:00", comments="Source field: public.share_directory_file.recordnum") + private String recordnum; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:03:57.9106012+08:00", comments="Source field: public.share_directory_file.piecenumber") + private String piecenumber; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:03:57.9106012+08:00", comments="Source field: public.share_directory_file.adddate") + private String adddate; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:03:57.9106012+08:00", comments="Source field: public.share_directory_file.editdate") + private String editdate; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:03:57.9106012+08:00", comments="Source field: public.share_directory_file.time_stamp") + private String time_stamp; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:03:57.9106012+08:00", comments="Source field: public.share_directory_file.isdel") + private Integer isdel; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:03:57.9106012+08:00", comments="Source field: public.share_directory_file.catalogpdfurl") + private String catalogpdfurl; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:03:57.9106012+08:00", comments="Source field: public.share_directory_file.signtag") + private String signtag; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:03:57.9106012+08:00", comments="Source field: public.share_directory_file.collecttag") + private String collecttag; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:03:57.9081834+08:00", comments="Source field: public.share_directory_file.id") + public String getId() { + return id; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:03:57.9081834+08:00", comments="Source field: public.share_directory_file.id") + public void setId(String id) { + this.id = id == null ? null : id.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:03:57.9081834+08:00", comments="Source field: public.share_directory_file.p_id") + public String getP_id() { + return p_id; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:03:57.9081834+08:00", comments="Source field: public.share_directory_file.p_id") + public void setP_id(String p_id) { + this.p_id = p_id == null ? null : p_id.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:03:57.9081834+08:00", comments="Source field: public.share_directory_file.provider_id") + public String getProvider_id() { + return provider_id; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:03:57.9081834+08:00", comments="Source field: public.share_directory_file.provider_id") + public void setProvider_id(String provider_id) { + this.provider_id = provider_id == null ? null : provider_id.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:03:57.9081834+08:00", comments="Source field: public.share_directory_file.filesuper") + public String getFilesuper() { + return filesuper; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:03:57.9081834+08:00", comments="Source field: public.share_directory_file.filesuper") + public void setFilesuper(String filesuper) { + this.filesuper = filesuper == null ? null : filesuper.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:03:57.9081834+08:00", comments="Source field: public.share_directory_file.filecount") + public Integer getFilecount() { + return filecount; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:03:57.9081834+08:00", comments="Source field: public.share_directory_file.filecount") + public void setFilecount(Integer filecount) { + this.filecount = filecount; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:03:57.9081834+08:00", comments="Source field: public.share_directory_file.dutyperson") + public String getDutyperson() { + return dutyperson; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:03:57.9081834+08:00", comments="Source field: public.share_directory_file.dutyperson") + public void setDutyperson(String dutyperson) { + this.dutyperson = dutyperson == null ? null : dutyperson.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:03:57.9081834+08:00", comments="Source field: public.share_directory_file.eweavedate") + public String getEweavedate() { + return eweavedate; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:03:57.9081834+08:00", comments="Source field: public.share_directory_file.eweavedate") + public void setEweavedate(String eweavedate) { + this.eweavedate = eweavedate == null ? null : eweavedate.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:03:57.9091729+08:00", comments="Source field: public.share_directory_file.filepage") + public Integer getFilepage() { + return filepage; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:03:57.9091729+08:00", comments="Source field: public.share_directory_file.filepage") + public void setFilepage(Integer filepage) { + this.filepage = filepage; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:03:57.9091729+08:00", comments="Source field: public.share_directory_file.sortorder") + public String getSortorder() { + return sortorder; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:03:57.9091729+08:00", comments="Source field: public.share_directory_file.sortorder") + public void setSortorder(String sortorder) { + this.sortorder = sortorder == null ? null : sortorder.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:03:57.9091729+08:00", comments="Source field: public.share_directory_file.bpeg") + public String getBpeg() { + return bpeg; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:03:57.9091729+08:00", comments="Source field: public.share_directory_file.bpeg") + public void setBpeg(String bpeg) { + this.bpeg = bpeg == null ? null : bpeg.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:03:57.9091729+08:00", comments="Source field: public.share_directory_file.epeg") + public String getEpeg() { + return epeg; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:03:57.9091729+08:00", comments="Source field: public.share_directory_file.epeg") + public void setEpeg(String epeg) { + this.epeg = epeg == null ? null : epeg.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:03:57.9091729+08:00", comments="Source field: public.share_directory_file.filenum") + public String getFilenum() { + return filenum; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:03:57.9091729+08:00", comments="Source field: public.share_directory_file.filenum") + public void setFilenum(String filenum) { + this.filenum = filenum == null ? null : filenum.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:03:57.9091729+08:00", comments="Source field: public.share_directory_file.remark") + public String getRemark() { + return remark; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:03:57.9091729+08:00", comments="Source field: public.share_directory_file.remark") + public void setRemark(String remark) { + this.remark = remark == null ? null : remark.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:03:57.9091729+08:00", comments="Source field: public.share_directory_file.recordnum") + public String getRecordnum() { + return recordnum; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:03:57.9106012+08:00", comments="Source field: public.share_directory_file.recordnum") + public void setRecordnum(String recordnum) { + this.recordnum = recordnum == null ? null : recordnum.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:03:57.9106012+08:00", comments="Source field: public.share_directory_file.piecenumber") + public String getPiecenumber() { + return piecenumber; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:03:57.9106012+08:00", comments="Source field: public.share_directory_file.piecenumber") + public void setPiecenumber(String piecenumber) { + this.piecenumber = piecenumber == null ? null : piecenumber.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:03:57.9106012+08:00", comments="Source field: public.share_directory_file.adddate") + public String getAdddate() { + return adddate; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:03:57.9106012+08:00", comments="Source field: public.share_directory_file.adddate") + public void setAdddate(String adddate) { + this.adddate = adddate == null ? null : adddate.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:03:57.9106012+08:00", comments="Source field: public.share_directory_file.editdate") + public String getEditdate() { + return editdate; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:03:57.9106012+08:00", comments="Source field: public.share_directory_file.editdate") + public void setEditdate(String editdate) { + this.editdate = editdate == null ? null : editdate.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:03:57.9106012+08:00", comments="Source field: public.share_directory_file.time_stamp") + public String getTime_stamp() { + return time_stamp; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:03:57.9106012+08:00", comments="Source field: public.share_directory_file.time_stamp") + public void setTime_stamp(String time_stamp) { + this.time_stamp = time_stamp == null ? null : time_stamp.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:03:57.9106012+08:00", comments="Source field: public.share_directory_file.isdel") + public Integer getIsdel() { + return isdel; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:03:57.9106012+08:00", comments="Source field: public.share_directory_file.isdel") + public void setIsdel(Integer isdel) { + this.isdel = isdel; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:03:57.9106012+08:00", comments="Source field: public.share_directory_file.catalogpdfurl") + public String getCatalogpdfurl() { + return catalogpdfurl; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:03:57.9106012+08:00", comments="Source field: public.share_directory_file.catalogpdfurl") + public void setCatalogpdfurl(String catalogpdfurl) { + this.catalogpdfurl = catalogpdfurl == null ? null : catalogpdfurl.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:03:57.9106012+08:00", comments="Source field: public.share_directory_file.signtag") + public String getSigntag() { + return signtag; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:03:57.9106012+08:00", comments="Source field: public.share_directory_file.signtag") + public void setSigntag(String signtag) { + this.signtag = signtag == null ? null : signtag.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:03:57.911525+08:00", comments="Source field: public.share_directory_file.collecttag") + public String getCollecttag() { + return collecttag; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:03:57.911525+08:00", comments="Source field: public.share_directory_file.collecttag") + public void setCollecttag(String collecttag) { + this.collecttag = collecttag == null ? null : collecttag.trim(); + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/entity/ShareFile.java b/src/main/java/jj/tech/paolu/repository/mybatis/entity/ShareFile.java new file mode 100644 index 0000000..4819230 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/entity/ShareFile.java @@ -0,0 +1,244 @@ +package jj.tech.paolu.repository.mybatis.entity; + +import jakarta.annotation.Generated; + +/** + * + * This class was generated by MyBatis Generator. + * This class corresponds to the database table public.share_file + */ +public class ShareFile { + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:04:26.6047614+08:00", comments="Source field: public.share_file.id") + private String id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:04:26.6057616+08:00", comments="Source field: public.share_file.p_id") + private String p_id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:04:26.6057616+08:00", comments="Source field: public.share_file.provider_id") + private String provider_id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:04:26.6057616+08:00", comments="Source field: public.share_file.tablenumber") + private String tablenumber; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:04:26.6057616+08:00", comments="Source field: public.share_file.annexname") + private String annexname; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:04:26.6057616+08:00", comments="Source field: public.share_file.projectname") + private String projectname; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:04:26.6057616+08:00", comments="Source field: public.share_file.eweavedate") + private String eweavedate; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:04:26.6057616+08:00", comments="Source field: public.share_file.checkdate") + private String checkdate; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:04:26.6057616+08:00", comments="Source field: public.share_file.annexpage") + private Integer annexpage; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:04:26.6057616+08:00", comments="Source field: public.share_file.sortorder") + private String sortorder; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:04:26.6067613+08:00", comments="Source field: public.share_file.filefrom") + private String filefrom; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:04:26.6067613+08:00", comments="Source field: public.share_file.archivestag") + private String archivestag; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:04:26.6067613+08:00", comments="Source field: public.share_file.adddate") + private String adddate; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:04:26.6067613+08:00", comments="Source field: public.share_file.editdate") + private String editdate; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:04:26.6067613+08:00", comments="Source field: public.share_file.time_stamp") + private String time_stamp; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:04:26.6067613+08:00", comments="Source field: public.share_file.isdel") + private Integer isdel; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:04:26.6067613+08:00", comments="Source field: public.share_file.downurl") + private String downurl; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:04:26.6067613+08:00", comments="Source field: public.share_file.filesize") + private Integer filesize; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:04:26.6047614+08:00", comments="Source field: public.share_file.id") + public String getId() { + return id; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:04:26.6057616+08:00", comments="Source field: public.share_file.id") + public void setId(String id) { + this.id = id == null ? null : id.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:04:26.6057616+08:00", comments="Source field: public.share_file.p_id") + public String getP_id() { + return p_id; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:04:26.6057616+08:00", comments="Source field: public.share_file.p_id") + public void setP_id(String p_id) { + this.p_id = p_id == null ? null : p_id.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:04:26.6057616+08:00", comments="Source field: public.share_file.provider_id") + public String getProvider_id() { + return provider_id; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:04:26.6057616+08:00", comments="Source field: public.share_file.provider_id") + public void setProvider_id(String provider_id) { + this.provider_id = provider_id == null ? null : provider_id.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:04:26.6057616+08:00", comments="Source field: public.share_file.tablenumber") + public String getTablenumber() { + return tablenumber; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:04:26.6057616+08:00", comments="Source field: public.share_file.tablenumber") + public void setTablenumber(String tablenumber) { + this.tablenumber = tablenumber == null ? null : tablenumber.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:04:26.6057616+08:00", comments="Source field: public.share_file.annexname") + public String getAnnexname() { + return annexname; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:04:26.6057616+08:00", comments="Source field: public.share_file.annexname") + public void setAnnexname(String annexname) { + this.annexname = annexname == null ? null : annexname.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:04:26.6057616+08:00", comments="Source field: public.share_file.projectname") + public String getProjectname() { + return projectname; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:04:26.6057616+08:00", comments="Source field: public.share_file.projectname") + public void setProjectname(String projectname) { + this.projectname = projectname == null ? null : projectname.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:04:26.6057616+08:00", comments="Source field: public.share_file.eweavedate") + public String getEweavedate() { + return eweavedate; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:04:26.6057616+08:00", comments="Source field: public.share_file.eweavedate") + public void setEweavedate(String eweavedate) { + this.eweavedate = eweavedate == null ? null : eweavedate.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:04:26.6057616+08:00", comments="Source field: public.share_file.checkdate") + public String getCheckdate() { + return checkdate; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:04:26.6057616+08:00", comments="Source field: public.share_file.checkdate") + public void setCheckdate(String checkdate) { + this.checkdate = checkdate == null ? null : checkdate.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:04:26.6057616+08:00", comments="Source field: public.share_file.annexpage") + public Integer getAnnexpage() { + return annexpage; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:04:26.6057616+08:00", comments="Source field: public.share_file.annexpage") + public void setAnnexpage(Integer annexpage) { + this.annexpage = annexpage; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:04:26.6067613+08:00", comments="Source field: public.share_file.sortorder") + public String getSortorder() { + return sortorder; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:04:26.6067613+08:00", comments="Source field: public.share_file.sortorder") + public void setSortorder(String sortorder) { + this.sortorder = sortorder == null ? null : sortorder.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:04:26.6067613+08:00", comments="Source field: public.share_file.filefrom") + public String getFilefrom() { + return filefrom; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:04:26.6067613+08:00", comments="Source field: public.share_file.filefrom") + public void setFilefrom(String filefrom) { + this.filefrom = filefrom == null ? null : filefrom.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:04:26.6067613+08:00", comments="Source field: public.share_file.archivestag") + public String getArchivestag() { + return archivestag; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:04:26.6067613+08:00", comments="Source field: public.share_file.archivestag") + public void setArchivestag(String archivestag) { + this.archivestag = archivestag == null ? null : archivestag.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:04:26.6067613+08:00", comments="Source field: public.share_file.adddate") + public String getAdddate() { + return adddate; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:04:26.6067613+08:00", comments="Source field: public.share_file.adddate") + public void setAdddate(String adddate) { + this.adddate = adddate == null ? null : adddate.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:04:26.6067613+08:00", comments="Source field: public.share_file.editdate") + public String getEditdate() { + return editdate; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:04:26.6067613+08:00", comments="Source field: public.share_file.editdate") + public void setEditdate(String editdate) { + this.editdate = editdate == null ? null : editdate.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:04:26.6067613+08:00", comments="Source field: public.share_file.time_stamp") + public String getTime_stamp() { + return time_stamp; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:04:26.6067613+08:00", comments="Source field: public.share_file.time_stamp") + public void setTime_stamp(String time_stamp) { + this.time_stamp = time_stamp == null ? null : time_stamp.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:04:26.6067613+08:00", comments="Source field: public.share_file.isdel") + public Integer getIsdel() { + return isdel; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:04:26.6067613+08:00", comments="Source field: public.share_file.isdel") + public void setIsdel(Integer isdel) { + this.isdel = isdel; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:04:26.6067613+08:00", comments="Source field: public.share_file.downurl") + public String getDownurl() { + return downurl; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:04:26.6067613+08:00", comments="Source field: public.share_file.downurl") + public void setDownurl(String downurl) { + this.downurl = downurl == null ? null : downurl.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:04:26.6067613+08:00", comments="Source field: public.share_file.filesize") + public Integer getFilesize() { + return filesize; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T10:04:26.6067613+08:00", comments="Source field: public.share_file.filesize") + public void setFilesize(Integer filesize) { + this.filesize = filesize; + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/entity/SharedElementUpdateDetail.java b/src/main/java/jj/tech/paolu/repository/mybatis/entity/SharedElementUpdateDetail.java new file mode 100644 index 0000000..2603021 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/entity/SharedElementUpdateDetail.java @@ -0,0 +1,130 @@ +package jj.tech.paolu.repository.mybatis.entity; + +import jakarta.annotation.Generated; +import java.time.LocalDateTime; + +/** + * Database Table Remarks: + * 共享元素的更新详情,从属于shared_element_udpate_recrod,每条记录代表一个目录树节点的更新状态,目录树节点可以是分类目录、文件目录以及文件 + * + * This class was generated by MyBatis Generator. + * This class corresponds to the database table public.shared_element_update_detail + */ +public class SharedElementUpdateDetail { + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2541531+08:00", comments="Source field: public.shared_element_update_detail.id") + private String id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2541531+08:00", comments="Source field: public.shared_element_update_detail.update_record_id") + private String update_record_id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.260147+08:00", comments="Source field: public.shared_element_update_detail.node_type") + private Integer node_type; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.260147+08:00", comments="Source field: public.shared_element_update_detail.node_id") + private String node_id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.261151+08:00", comments="Source field: public.shared_element_update_detail.share_status") + private Integer share_status; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.261151+08:00", comments="Source field: public.shared_element_update_detail.execute_start_time") + private LocalDateTime execute_start_time; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.261151+08:00", comments="Source field: public.shared_element_update_detail.execute_end_time") + private LocalDateTime execute_end_time; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.261151+08:00", comments="Source field: public.shared_element_update_detail.execute_desp") + private String execute_desp; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.261151+08:00", comments="Source field: public.shared_element_update_detail.execute_success") + private Integer execute_success; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2541531+08:00", comments="Source field: public.shared_element_update_detail.id") + public String getId() { + return id; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2541531+08:00", comments="Source field: public.shared_element_update_detail.id") + public void setId(String id) { + this.id = id == null ? null : id.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2541531+08:00", comments="Source field: public.shared_element_update_detail.update_record_id") + public String getUpdate_record_id() { + return update_record_id; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2541531+08:00", comments="Source field: public.shared_element_update_detail.update_record_id") + public void setUpdate_record_id(String update_record_id) { + this.update_record_id = update_record_id == null ? null : update_record_id.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.260147+08:00", comments="Source field: public.shared_element_update_detail.node_type") + public Integer getNode_type() { + return node_type; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.260147+08:00", comments="Source field: public.shared_element_update_detail.node_type") + public void setNode_type(Integer node_type) { + this.node_type = node_type; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.260147+08:00", comments="Source field: public.shared_element_update_detail.node_id") + public String getNode_id() { + return node_id; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.261151+08:00", comments="Source field: public.shared_element_update_detail.node_id") + public void setNode_id(String node_id) { + this.node_id = node_id == null ? null : node_id.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.261151+08:00", comments="Source field: public.shared_element_update_detail.share_status") + public Integer getShare_status() { + return share_status; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.261151+08:00", comments="Source field: public.shared_element_update_detail.share_status") + public void setShare_status(Integer share_status) { + this.share_status = share_status; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.261151+08:00", comments="Source field: public.shared_element_update_detail.execute_start_time") + public LocalDateTime getExecute_start_time() { + return execute_start_time; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.261151+08:00", comments="Source field: public.shared_element_update_detail.execute_start_time") + public void setExecute_start_time(LocalDateTime execute_start_time) { + this.execute_start_time = execute_start_time; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.261151+08:00", comments="Source field: public.shared_element_update_detail.execute_end_time") + public LocalDateTime getExecute_end_time() { + return execute_end_time; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.261151+08:00", comments="Source field: public.shared_element_update_detail.execute_end_time") + public void setExecute_end_time(LocalDateTime execute_end_time) { + this.execute_end_time = execute_end_time; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.261151+08:00", comments="Source field: public.shared_element_update_detail.execute_desp") + public String getExecute_desp() { + return execute_desp; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.261151+08:00", comments="Source field: public.shared_element_update_detail.execute_desp") + public void setExecute_desp(String execute_desp) { + this.execute_desp = execute_desp == null ? null : execute_desp.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.261151+08:00", comments="Source field: public.shared_element_update_detail.execute_success") + public Integer getExecute_success() { + return execute_success; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.261151+08:00", comments="Source field: public.shared_element_update_detail.execute_success") + public void setExecute_success(Integer execute_success) { + this.execute_success = execute_success; + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/entity/SharedElementUpdateRecord.java b/src/main/java/jj/tech/paolu/repository/mybatis/entity/SharedElementUpdateRecord.java new file mode 100644 index 0000000..6763119 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/entity/SharedElementUpdateRecord.java @@ -0,0 +1,195 @@ +package jj.tech.paolu.repository.mybatis.entity; + +import jakarta.annotation.Generated; +import java.time.LocalDateTime; + +/** + * Database Table Remarks: + * 共享元素的更新记录,例如用户修改共享配置一次即产生一条此记录,系统从电子档案系统同步最新数据后一般也会产生一条此记录 + * + * This class was generated by MyBatis Generator. + * This class corresponds to the database table public.shared_element_update_record + */ +public class SharedElementUpdateRecord { + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T16:19:53.9341706+08:00", comments="Source field: public.shared_element_update_record.id") + private String id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T16:19:53.9361852+08:00", comments="Source field: public.shared_element_update_record.share_rule_id") + private String share_rule_id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T16:19:53.9361852+08:00", comments="Source field: public.shared_element_update_record.user_id") + private String user_id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T16:19:53.9361852+08:00", comments="Source field: public.shared_element_update_record.desp") + private String desp; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T16:19:53.9361852+08:00", comments="Source field: public.shared_element_update_record.create_time") + private LocalDateTime create_time; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T16:19:53.9361852+08:00", comments="Source field: public.shared_element_update_record.node_count") + private Long node_count; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T16:19:53.9361852+08:00", comments="Source field: public.shared_element_update_record.source") + private String source; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T16:19:53.9361852+08:00", comments="Source field: public.shared_element_update_record.execute_start_time") + private LocalDateTime execute_start_time; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T16:19:53.9361852+08:00", comments="Source field: public.shared_element_update_record.execute_end_time") + private LocalDateTime execute_end_time; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T16:19:53.9361852+08:00", comments="Source field: public.shared_element_update_record.execute_desp") + private String execute_desp; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T16:19:53.9371737+08:00", comments="Source field: public.shared_element_update_record.execute_status") + private Integer execute_status; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T16:19:53.9371737+08:00", comments="Source field: public.shared_element_update_record.succ_exec_node_count") + private Integer succ_exec_node_count; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T16:19:53.9371737+08:00", comments="Source field: public.shared_element_update_record.act_node_count") + private Integer act_node_count; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T16:19:53.9371737+08:00", comments="Source field: public.shared_element_update_record.execute_count") + private Integer execute_count; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T16:19:53.9351735+08:00", comments="Source field: public.shared_element_update_record.id") + public String getId() { + return id; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T16:19:53.9361852+08:00", comments="Source field: public.shared_element_update_record.id") + public void setId(String id) { + this.id = id == null ? null : id.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T16:19:53.9361852+08:00", comments="Source field: public.shared_element_update_record.share_rule_id") + public String getShare_rule_id() { + return share_rule_id; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T16:19:53.9361852+08:00", comments="Source field: public.shared_element_update_record.share_rule_id") + public void setShare_rule_id(String share_rule_id) { + this.share_rule_id = share_rule_id == null ? null : share_rule_id.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T16:19:53.9361852+08:00", comments="Source field: public.shared_element_update_record.user_id") + public String getUser_id() { + return user_id; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T16:19:53.9361852+08:00", comments="Source field: public.shared_element_update_record.user_id") + public void setUser_id(String user_id) { + this.user_id = user_id == null ? null : user_id.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T16:19:53.9361852+08:00", comments="Source field: public.shared_element_update_record.desp") + public String getDesp() { + return desp; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T16:19:53.9361852+08:00", comments="Source field: public.shared_element_update_record.desp") + public void setDesp(String desp) { + this.desp = desp == null ? null : desp.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T16:19:53.9361852+08:00", comments="Source field: public.shared_element_update_record.create_time") + public LocalDateTime getCreate_time() { + return create_time; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T16:19:53.9361852+08:00", comments="Source field: public.shared_element_update_record.create_time") + public void setCreate_time(LocalDateTime create_time) { + this.create_time = create_time; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T16:19:53.9361852+08:00", comments="Source field: public.shared_element_update_record.node_count") + public Long getNode_count() { + return node_count; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T16:19:53.9361852+08:00", comments="Source field: public.shared_element_update_record.node_count") + public void setNode_count(Long node_count) { + this.node_count = node_count; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T16:19:53.9361852+08:00", comments="Source field: public.shared_element_update_record.source") + public String getSource() { + return source; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T16:19:53.9361852+08:00", comments="Source field: public.shared_element_update_record.source") + public void setSource(String source) { + this.source = source == null ? null : source.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T16:19:53.9361852+08:00", comments="Source field: public.shared_element_update_record.execute_start_time") + public LocalDateTime getExecute_start_time() { + return execute_start_time; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T16:19:53.9361852+08:00", comments="Source field: public.shared_element_update_record.execute_start_time") + public void setExecute_start_time(LocalDateTime execute_start_time) { + this.execute_start_time = execute_start_time; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T16:19:53.9361852+08:00", comments="Source field: public.shared_element_update_record.execute_end_time") + public LocalDateTime getExecute_end_time() { + return execute_end_time; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T16:19:53.9361852+08:00", comments="Source field: public.shared_element_update_record.execute_end_time") + public void setExecute_end_time(LocalDateTime execute_end_time) { + this.execute_end_time = execute_end_time; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T16:19:53.9371737+08:00", comments="Source field: public.shared_element_update_record.execute_desp") + public String getExecute_desp() { + return execute_desp; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T16:19:53.9371737+08:00", comments="Source field: public.shared_element_update_record.execute_desp") + public void setExecute_desp(String execute_desp) { + this.execute_desp = execute_desp == null ? null : execute_desp.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T16:19:53.9371737+08:00", comments="Source field: public.shared_element_update_record.execute_status") + public Integer getExecute_status() { + return execute_status; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T16:19:53.9371737+08:00", comments="Source field: public.shared_element_update_record.execute_status") + public void setExecute_status(Integer execute_status) { + this.execute_status = execute_status; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T16:19:53.9371737+08:00", comments="Source field: public.shared_element_update_record.succ_exec_node_count") + public Integer getSucc_exec_node_count() { + return succ_exec_node_count; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T16:19:53.9371737+08:00", comments="Source field: public.shared_element_update_record.succ_exec_node_count") + public void setSucc_exec_node_count(Integer succ_exec_node_count) { + this.succ_exec_node_count = succ_exec_node_count; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T16:19:53.9371737+08:00", comments="Source field: public.shared_element_update_record.act_node_count") + public Integer getAct_node_count() { + return act_node_count; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T16:19:53.9371737+08:00", comments="Source field: public.shared_element_update_record.act_node_count") + public void setAct_node_count(Integer act_node_count) { + this.act_node_count = act_node_count; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T16:19:53.9371737+08:00", comments="Source field: public.shared_element_update_record.execute_count") + public Integer getExecute_count() { + return execute_count; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-07T16:19:53.9371737+08:00", comments="Source field: public.shared_element_update_record.execute_count") + public void setExecute_count(Integer execute_count) { + this.execute_count = execute_count; + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/entity/SharedRuleConfig.java b/src/main/java/jj/tech/paolu/repository/mybatis/entity/SharedRuleConfig.java new file mode 100644 index 0000000..e08dc60 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/entity/SharedRuleConfig.java @@ -0,0 +1,88 @@ +package jj.tech.paolu.repository.mybatis.entity; + +import jakarta.annotation.Generated; + +/** + * + * This class was generated by MyBatis Generator. + * This class corresponds to the database table public.shared_rule_config + */ +public class SharedRuleConfig { + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3121484+08:00", comments="Source field: public.shared_rule_config.id") + private String id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3121484+08:00", comments="Source field: public.shared_rule_config.name") + private String name; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3121484+08:00", comments="Source field: public.shared_rule_config.describe") + private String describe; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3121484+08:00", comments="Source field: public.shared_rule_config.status") + private Integer status; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3121484+08:00", comments="Source field: public.shared_rule_config.sort") + private Integer sort; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3121484+08:00", comments="Source field: public.shared_rule_config.project_name") + private String project_name; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3121484+08:00", comments="Source field: public.shared_rule_config.id") + public String getId() { + return id; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3121484+08:00", comments="Source field: public.shared_rule_config.id") + public void setId(String id) { + this.id = id == null ? null : id.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3121484+08:00", comments="Source field: public.shared_rule_config.name") + public String getName() { + return name; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3121484+08:00", comments="Source field: public.shared_rule_config.name") + public void setName(String name) { + this.name = name == null ? null : name.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3121484+08:00", comments="Source field: public.shared_rule_config.describe") + public String getDescribe() { + return describe; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3121484+08:00", comments="Source field: public.shared_rule_config.describe") + public void setDescribe(String describe) { + this.describe = describe == null ? null : describe.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3121484+08:00", comments="Source field: public.shared_rule_config.status") + public Integer getStatus() { + return status; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3121484+08:00", comments="Source field: public.shared_rule_config.status") + public void setStatus(Integer status) { + this.status = status; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3121484+08:00", comments="Source field: public.shared_rule_config.sort") + public Integer getSort() { + return sort; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3121484+08:00", comments="Source field: public.shared_rule_config.sort") + public void setSort(Integer sort) { + this.sort = sort; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3121484+08:00", comments="Source field: public.shared_rule_config.project_name") + public String getProject_name() { + return project_name; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3121484+08:00", comments="Source field: public.shared_rule_config.project_name") + public void setProject_name(String project_name) { + this.project_name = project_name == null ? null : project_name.trim(); + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/entity/SharedSynAll.java b/src/main/java/jj/tech/paolu/repository/mybatis/entity/SharedSynAll.java new file mode 100644 index 0000000..2cd15d4 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/entity/SharedSynAll.java @@ -0,0 +1,127 @@ +package jj.tech.paolu.repository.mybatis.entity; + +import jakarta.annotation.Generated; + +/** + * + * This class was generated by MyBatis Generator. + * This class corresponds to the database table public.shared_syn_all + */ +public class SharedSynAll { + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3021485+08:00", comments="Source field: public.shared_syn_all.id") + private String id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3021485+08:00", comments="Source field: public.shared_syn_all.syn_id") + private String syn_id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3021485+08:00", comments="Source field: public.shared_syn_all.syn_type") + private Integer syn_type; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3021485+08:00", comments="Source field: public.shared_syn_all.is_config_rule") + private Integer is_config_rule; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3021485+08:00", comments="Source field: public.shared_syn_all.shared_status") + private Integer shared_status; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3021485+08:00", comments="Source field: public.shared_syn_all.syn_status") + private Integer syn_status; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3021485+08:00", comments="Source field: public.shared_syn_all.block_number") + private String block_number; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3021485+08:00", comments="Source field: public.shared_syn_all.block_hash") + private String block_hash; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3021485+08:00", comments="Source field: public.shared_syn_all.block_time") + private String block_time; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3021485+08:00", comments="Source field: public.shared_syn_all.id") + public String getId() { + return id; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3021485+08:00", comments="Source field: public.shared_syn_all.id") + public void setId(String id) { + this.id = id == null ? null : id.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3021485+08:00", comments="Source field: public.shared_syn_all.syn_id") + public String getSyn_id() { + return syn_id; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3021485+08:00", comments="Source field: public.shared_syn_all.syn_id") + public void setSyn_id(String syn_id) { + this.syn_id = syn_id == null ? null : syn_id.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3021485+08:00", comments="Source field: public.shared_syn_all.syn_type") + public Integer getSyn_type() { + return syn_type; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3021485+08:00", comments="Source field: public.shared_syn_all.syn_type") + public void setSyn_type(Integer syn_type) { + this.syn_type = syn_type; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3021485+08:00", comments="Source field: public.shared_syn_all.is_config_rule") + public Integer getIs_config_rule() { + return is_config_rule; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3021485+08:00", comments="Source field: public.shared_syn_all.is_config_rule") + public void setIs_config_rule(Integer is_config_rule) { + this.is_config_rule = is_config_rule; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3021485+08:00", comments="Source field: public.shared_syn_all.shared_status") + public Integer getShared_status() { + return shared_status; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3021485+08:00", comments="Source field: public.shared_syn_all.shared_status") + public void setShared_status(Integer shared_status) { + this.shared_status = shared_status; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3021485+08:00", comments="Source field: public.shared_syn_all.syn_status") + public Integer getSyn_status() { + return syn_status; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3021485+08:00", comments="Source field: public.shared_syn_all.syn_status") + public void setSyn_status(Integer syn_status) { + this.syn_status = syn_status; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3021485+08:00", comments="Source field: public.shared_syn_all.block_number") + public String getBlock_number() { + return block_number; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3021485+08:00", comments="Source field: public.shared_syn_all.block_number") + public void setBlock_number(String block_number) { + this.block_number = block_number == null ? null : block_number.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3021485+08:00", comments="Source field: public.shared_syn_all.block_hash") + public String getBlock_hash() { + return block_hash; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3021485+08:00", comments="Source field: public.shared_syn_all.block_hash") + public void setBlock_hash(String block_hash) { + this.block_hash = block_hash == null ? null : block_hash.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3021485+08:00", comments="Source field: public.shared_syn_all.block_time") + public String getBlock_time() { + return block_time; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3021485+08:00", comments="Source field: public.shared_syn_all.block_time") + public void setBlock_time(String block_time) { + this.block_time = block_time == null ? null : block_time.trim(); + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/entity/SynDirectory.java b/src/main/java/jj/tech/paolu/repository/mybatis/entity/SynDirectory.java new file mode 100644 index 0000000..5466ae2 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/entity/SynDirectory.java @@ -0,0 +1,114 @@ +package jj.tech.paolu.repository.mybatis.entity; + +import jakarta.annotation.Generated; + +/** + * + * This class was generated by MyBatis Generator. + * This class corresponds to the database table public.syn_directory + */ +public class SynDirectory { + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.5084726+08:00", comments="Source field: public.syn_directory.id") + private String id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.5084726+08:00", comments="Source field: public.syn_directory.p_id") + private String p_id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.5084726+08:00", comments="Source field: public.syn_directory.wbs_id") + private String wbs_id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.5084726+08:00", comments="Source field: public.syn_directory.time_stamp") + private String time_stamp; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.5084726+08:00", comments="Source field: public.syn_directory.sortorder") + private Integer sortorder; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.5084726+08:00", comments="Source field: public.syn_directory.tname") + private String tname; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.5084726+08:00", comments="Source field: public.syn_directory.subjoin") + private Integer subjoin; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.5084726+08:00", comments="Source field: public.syn_directory.isdel") + private Integer isdel; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.5084726+08:00", comments="Source field: public.syn_directory.id") + public String getId() { + return id; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.5084726+08:00", comments="Source field: public.syn_directory.id") + public void setId(String id) { + this.id = id == null ? null : id.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.5084726+08:00", comments="Source field: public.syn_directory.p_id") + public String getP_id() { + return p_id; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.5084726+08:00", comments="Source field: public.syn_directory.p_id") + public void setP_id(String p_id) { + this.p_id = p_id == null ? null : p_id.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.5084726+08:00", comments="Source field: public.syn_directory.wbs_id") + public String getWbs_id() { + return wbs_id; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.5084726+08:00", comments="Source field: public.syn_directory.wbs_id") + public void setWbs_id(String wbs_id) { + this.wbs_id = wbs_id == null ? null : wbs_id.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.5084726+08:00", comments="Source field: public.syn_directory.time_stamp") + public String getTime_stamp() { + return time_stamp; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.5084726+08:00", comments="Source field: public.syn_directory.time_stamp") + public void setTime_stamp(String time_stamp) { + this.time_stamp = time_stamp == null ? null : time_stamp.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.5084726+08:00", comments="Source field: public.syn_directory.sortorder") + public Integer getSortorder() { + return sortorder; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.5084726+08:00", comments="Source field: public.syn_directory.sortorder") + public void setSortorder(Integer sortorder) { + this.sortorder = sortorder; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.5084726+08:00", comments="Source field: public.syn_directory.tname") + public String getTname() { + return tname; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.5084726+08:00", comments="Source field: public.syn_directory.tname") + public void setTname(String tname) { + this.tname = tname == null ? null : tname.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.5084726+08:00", comments="Source field: public.syn_directory.subjoin") + public Integer getSubjoin() { + return subjoin; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.5084726+08:00", comments="Source field: public.syn_directory.subjoin") + public void setSubjoin(Integer subjoin) { + this.subjoin = subjoin; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.5084726+08:00", comments="Source field: public.syn_directory.isdel") + public Integer getIsdel() { + return isdel; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.5084726+08:00", comments="Source field: public.syn_directory.isdel") + public void setIsdel(Integer isdel) { + this.isdel = isdel; + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/entity/SynDirectoryFile.java b/src/main/java/jj/tech/paolu/repository/mybatis/entity/SynDirectoryFile.java new file mode 100644 index 0000000..8c75a68 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/entity/SynDirectoryFile.java @@ -0,0 +1,283 @@ +package jj.tech.paolu.repository.mybatis.entity; + +import jakarta.annotation.Generated; + +/** + * + * This class was generated by MyBatis Generator. + * This class corresponds to the database table public.syn_directory_file + */ +public class SynDirectoryFile { + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.4706017+08:00", comments="Source field: public.syn_directory_file.id") + private String id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.4716328+08:00", comments="Source field: public.syn_directory_file.p_id") + private String p_id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.4716328+08:00", comments="Source field: public.syn_directory_file.filesuper") + private String filesuper; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.4716328+08:00", comments="Source field: public.syn_directory_file.filecount") + private Integer filecount; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.4716328+08:00", comments="Source field: public.syn_directory_file.dutyperson") + private String dutyperson; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.4716328+08:00", comments="Source field: public.syn_directory_file.eweavedate") + private String eweavedate; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.4716328+08:00", comments="Source field: public.syn_directory_file.filepage") + private Integer filepage; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.4716328+08:00", comments="Source field: public.syn_directory_file.sortorder") + private String sortorder; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.4716328+08:00", comments="Source field: public.syn_directory_file.bpeg") + private String bpeg; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.4716328+08:00", comments="Source field: public.syn_directory_file.epeg") + private String epeg; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.4716328+08:00", comments="Source field: public.syn_directory_file.filenum") + private String filenum; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.4716328+08:00", comments="Source field: public.syn_directory_file.remark") + private String remark; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.4716328+08:00", comments="Source field: public.syn_directory_file.recordnum") + private String recordnum; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.4731095+08:00", comments="Source field: public.syn_directory_file.piecenumber") + private String piecenumber; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.4731095+08:00", comments="Source field: public.syn_directory_file.adddate") + private String adddate; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.4731095+08:00", comments="Source field: public.syn_directory_file.editdate") + private String editdate; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.4731095+08:00", comments="Source field: public.syn_directory_file.time_stamp") + private String time_stamp; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.4731095+08:00", comments="Source field: public.syn_directory_file.isdel") + private Integer isdel; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.4731095+08:00", comments="Source field: public.syn_directory_file.catalogpdfurl") + private String catalogpdfurl; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.4731095+08:00", comments="Source field: public.syn_directory_file.signtag") + private String signtag; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.4731095+08:00", comments="Source field: public.syn_directory_file.collecttag") + private String collecttag; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.4706017+08:00", comments="Source field: public.syn_directory_file.id") + public String getId() { + return id; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.4716328+08:00", comments="Source field: public.syn_directory_file.id") + public void setId(String id) { + this.id = id == null ? null : id.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.4716328+08:00", comments="Source field: public.syn_directory_file.p_id") + public String getP_id() { + return p_id; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.4716328+08:00", comments="Source field: public.syn_directory_file.p_id") + public void setP_id(String p_id) { + this.p_id = p_id == null ? null : p_id.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.4716328+08:00", comments="Source field: public.syn_directory_file.filesuper") + public String getFilesuper() { + return filesuper; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.4716328+08:00", comments="Source field: public.syn_directory_file.filesuper") + public void setFilesuper(String filesuper) { + this.filesuper = filesuper == null ? null : filesuper.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.4716328+08:00", comments="Source field: public.syn_directory_file.filecount") + public Integer getFilecount() { + return filecount; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.4716328+08:00", comments="Source field: public.syn_directory_file.filecount") + public void setFilecount(Integer filecount) { + this.filecount = filecount; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.4716328+08:00", comments="Source field: public.syn_directory_file.dutyperson") + public String getDutyperson() { + return dutyperson; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.4716328+08:00", comments="Source field: public.syn_directory_file.dutyperson") + public void setDutyperson(String dutyperson) { + this.dutyperson = dutyperson == null ? null : dutyperson.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.4716328+08:00", comments="Source field: public.syn_directory_file.eweavedate") + public String getEweavedate() { + return eweavedate; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.4716328+08:00", comments="Source field: public.syn_directory_file.eweavedate") + public void setEweavedate(String eweavedate) { + this.eweavedate = eweavedate == null ? null : eweavedate.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.4716328+08:00", comments="Source field: public.syn_directory_file.filepage") + public Integer getFilepage() { + return filepage; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.4716328+08:00", comments="Source field: public.syn_directory_file.filepage") + public void setFilepage(Integer filepage) { + this.filepage = filepage; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.4716328+08:00", comments="Source field: public.syn_directory_file.sortorder") + public String getSortorder() { + return sortorder; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.4716328+08:00", comments="Source field: public.syn_directory_file.sortorder") + public void setSortorder(String sortorder) { + this.sortorder = sortorder == null ? null : sortorder.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.4716328+08:00", comments="Source field: public.syn_directory_file.bpeg") + public String getBpeg() { + return bpeg; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.4716328+08:00", comments="Source field: public.syn_directory_file.bpeg") + public void setBpeg(String bpeg) { + this.bpeg = bpeg == null ? null : bpeg.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.4716328+08:00", comments="Source field: public.syn_directory_file.epeg") + public String getEpeg() { + return epeg; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.4716328+08:00", comments="Source field: public.syn_directory_file.epeg") + public void setEpeg(String epeg) { + this.epeg = epeg == null ? null : epeg.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.4716328+08:00", comments="Source field: public.syn_directory_file.filenum") + public String getFilenum() { + return filenum; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.4716328+08:00", comments="Source field: public.syn_directory_file.filenum") + public void setFilenum(String filenum) { + this.filenum = filenum == null ? null : filenum.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.4716328+08:00", comments="Source field: public.syn_directory_file.remark") + public String getRemark() { + return remark; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.4716328+08:00", comments="Source field: public.syn_directory_file.remark") + public void setRemark(String remark) { + this.remark = remark == null ? null : remark.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.4716328+08:00", comments="Source field: public.syn_directory_file.recordnum") + public String getRecordnum() { + return recordnum; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.4716328+08:00", comments="Source field: public.syn_directory_file.recordnum") + public void setRecordnum(String recordnum) { + this.recordnum = recordnum == null ? null : recordnum.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.4731095+08:00", comments="Source field: public.syn_directory_file.piecenumber") + public String getPiecenumber() { + return piecenumber; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.4731095+08:00", comments="Source field: public.syn_directory_file.piecenumber") + public void setPiecenumber(String piecenumber) { + this.piecenumber = piecenumber == null ? null : piecenumber.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.4731095+08:00", comments="Source field: public.syn_directory_file.adddate") + public String getAdddate() { + return adddate; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.4731095+08:00", comments="Source field: public.syn_directory_file.adddate") + public void setAdddate(String adddate) { + this.adddate = adddate == null ? null : adddate.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.4731095+08:00", comments="Source field: public.syn_directory_file.editdate") + public String getEditdate() { + return editdate; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.4731095+08:00", comments="Source field: public.syn_directory_file.editdate") + public void setEditdate(String editdate) { + this.editdate = editdate == null ? null : editdate.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.4731095+08:00", comments="Source field: public.syn_directory_file.time_stamp") + public String getTime_stamp() { + return time_stamp; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.4731095+08:00", comments="Source field: public.syn_directory_file.time_stamp") + public void setTime_stamp(String time_stamp) { + this.time_stamp = time_stamp == null ? null : time_stamp.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.4731095+08:00", comments="Source field: public.syn_directory_file.isdel") + public Integer getIsdel() { + return isdel; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.4731095+08:00", comments="Source field: public.syn_directory_file.isdel") + public void setIsdel(Integer isdel) { + this.isdel = isdel; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.4731095+08:00", comments="Source field: public.syn_directory_file.catalogpdfurl") + public String getCatalogpdfurl() { + return catalogpdfurl; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.4731095+08:00", comments="Source field: public.syn_directory_file.catalogpdfurl") + public void setCatalogpdfurl(String catalogpdfurl) { + this.catalogpdfurl = catalogpdfurl == null ? null : catalogpdfurl.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.4731095+08:00", comments="Source field: public.syn_directory_file.signtag") + public String getSigntag() { + return signtag; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.4731095+08:00", comments="Source field: public.syn_directory_file.signtag") + public void setSigntag(String signtag) { + this.signtag = signtag == null ? null : signtag.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.4731095+08:00", comments="Source field: public.syn_directory_file.collecttag") + public String getCollecttag() { + return collecttag; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.4731095+08:00", comments="Source field: public.syn_directory_file.collecttag") + public void setCollecttag(String collecttag) { + this.collecttag = collecttag == null ? null : collecttag.trim(); + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/entity/SynFile.java b/src/main/java/jj/tech/paolu/repository/mybatis/entity/SynFile.java new file mode 100644 index 0000000..94cc550 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/entity/SynFile.java @@ -0,0 +1,231 @@ +package jj.tech.paolu.repository.mybatis.entity; + +import jakarta.annotation.Generated; + +/** + * + * This class was generated by MyBatis Generator. + * This class corresponds to the database table public.syn_file + */ +public class SynFile { + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.4986049+08:00", comments="Source field: public.syn_file.id") + private String id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.4986049+08:00", comments="Source field: public.syn_file.p_id") + private String p_id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.4986049+08:00", comments="Source field: public.syn_file.tablenumber") + private String tablenumber; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.4986049+08:00", comments="Source field: public.syn_file.annexname") + private String annexname; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.4986049+08:00", comments="Source field: public.syn_file.projectname") + private String projectname; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.4996344+08:00", comments="Source field: public.syn_file.eweavedate") + private String eweavedate; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.4996344+08:00", comments="Source field: public.syn_file.checkdate") + private String checkdate; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.4996344+08:00", comments="Source field: public.syn_file.annexpage") + private Integer annexpage; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.4996344+08:00", comments="Source field: public.syn_file.sortorder") + private String sortorder; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.4996344+08:00", comments="Source field: public.syn_file.filefrom") + private String filefrom; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.4996344+08:00", comments="Source field: public.syn_file.archivestag") + private String archivestag; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.4996344+08:00", comments="Source field: public.syn_file.adddate") + private String adddate; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.4996344+08:00", comments="Source field: public.syn_file.editdate") + private String editdate; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.4996344+08:00", comments="Source field: public.syn_file.time_stamp") + private String time_stamp; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.4996344+08:00", comments="Source field: public.syn_file.isdel") + private Integer isdel; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.4996344+08:00", comments="Source field: public.syn_file.downurl") + private String downurl; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.4996344+08:00", comments="Source field: public.syn_file.filesize") + private Integer filesize; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.4986049+08:00", comments="Source field: public.syn_file.id") + public String getId() { + return id; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.4986049+08:00", comments="Source field: public.syn_file.id") + public void setId(String id) { + this.id = id == null ? null : id.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.4986049+08:00", comments="Source field: public.syn_file.p_id") + public String getP_id() { + return p_id; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.4986049+08:00", comments="Source field: public.syn_file.p_id") + public void setP_id(String p_id) { + this.p_id = p_id == null ? null : p_id.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.4986049+08:00", comments="Source field: public.syn_file.tablenumber") + public String getTablenumber() { + return tablenumber; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.4986049+08:00", comments="Source field: public.syn_file.tablenumber") + public void setTablenumber(String tablenumber) { + this.tablenumber = tablenumber == null ? null : tablenumber.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.4986049+08:00", comments="Source field: public.syn_file.annexname") + public String getAnnexname() { + return annexname; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.4986049+08:00", comments="Source field: public.syn_file.annexname") + public void setAnnexname(String annexname) { + this.annexname = annexname == null ? null : annexname.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.4996344+08:00", comments="Source field: public.syn_file.projectname") + public String getProjectname() { + return projectname; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.4996344+08:00", comments="Source field: public.syn_file.projectname") + public void setProjectname(String projectname) { + this.projectname = projectname == null ? null : projectname.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.4996344+08:00", comments="Source field: public.syn_file.eweavedate") + public String getEweavedate() { + return eweavedate; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.4996344+08:00", comments="Source field: public.syn_file.eweavedate") + public void setEweavedate(String eweavedate) { + this.eweavedate = eweavedate == null ? null : eweavedate.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.4996344+08:00", comments="Source field: public.syn_file.checkdate") + public String getCheckdate() { + return checkdate; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.4996344+08:00", comments="Source field: public.syn_file.checkdate") + public void setCheckdate(String checkdate) { + this.checkdate = checkdate == null ? null : checkdate.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.4996344+08:00", comments="Source field: public.syn_file.annexpage") + public Integer getAnnexpage() { + return annexpage; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.4996344+08:00", comments="Source field: public.syn_file.annexpage") + public void setAnnexpage(Integer annexpage) { + this.annexpage = annexpage; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.4996344+08:00", comments="Source field: public.syn_file.sortorder") + public String getSortorder() { + return sortorder; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.4996344+08:00", comments="Source field: public.syn_file.sortorder") + public void setSortorder(String sortorder) { + this.sortorder = sortorder == null ? null : sortorder.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.4996344+08:00", comments="Source field: public.syn_file.filefrom") + public String getFilefrom() { + return filefrom; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.4996344+08:00", comments="Source field: public.syn_file.filefrom") + public void setFilefrom(String filefrom) { + this.filefrom = filefrom == null ? null : filefrom.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.4996344+08:00", comments="Source field: public.syn_file.archivestag") + public String getArchivestag() { + return archivestag; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.4996344+08:00", comments="Source field: public.syn_file.archivestag") + public void setArchivestag(String archivestag) { + this.archivestag = archivestag == null ? null : archivestag.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.4996344+08:00", comments="Source field: public.syn_file.adddate") + public String getAdddate() { + return adddate; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.4996344+08:00", comments="Source field: public.syn_file.adddate") + public void setAdddate(String adddate) { + this.adddate = adddate == null ? null : adddate.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.4996344+08:00", comments="Source field: public.syn_file.editdate") + public String getEditdate() { + return editdate; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.4996344+08:00", comments="Source field: public.syn_file.editdate") + public void setEditdate(String editdate) { + this.editdate = editdate == null ? null : editdate.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.4996344+08:00", comments="Source field: public.syn_file.time_stamp") + public String getTime_stamp() { + return time_stamp; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.4996344+08:00", comments="Source field: public.syn_file.time_stamp") + public void setTime_stamp(String time_stamp) { + this.time_stamp = time_stamp == null ? null : time_stamp.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.4996344+08:00", comments="Source field: public.syn_file.isdel") + public Integer getIsdel() { + return isdel; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.4996344+08:00", comments="Source field: public.syn_file.isdel") + public void setIsdel(Integer isdel) { + this.isdel = isdel; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.4996344+08:00", comments="Source field: public.syn_file.downurl") + public String getDownurl() { + return downurl; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.4996344+08:00", comments="Source field: public.syn_file.downurl") + public void setDownurl(String downurl) { + this.downurl = downurl == null ? null : downurl.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.4996344+08:00", comments="Source field: public.syn_file.filesize") + public Integer getFilesize() { + return filesize; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.4996344+08:00", comments="Source field: public.syn_file.filesize") + public void setFilesize(Integer filesize) { + this.filesize = filesize; + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/entity/Sync2blockchainTask.java b/src/main/java/jj/tech/paolu/repository/mybatis/entity/Sync2blockchainTask.java new file mode 100644 index 0000000..679f4c6 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/entity/Sync2blockchainTask.java @@ -0,0 +1,235 @@ +package jj.tech.paolu.repository.mybatis.entity; + +import jakarta.annotation.Generated; +import java.time.LocalDateTime; + +/** + * Database Table Remarks: + * 同步数据至链上的task,一次执行产生一条记录。 +update*_count/insert*_count/remove*count这九个之和即是成功执行的数量;faild_process_count为失败的数量,二者之和等于need_process_count + * + * This class was generated by MyBatis Generator. + * This class corresponds to the database table public.sync2blockchain_task + */ +public class Sync2blockchainTask { + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.5032131+08:00", comments="Source field: public.sync2blockchain_task.id") + private String id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.5032131+08:00", comments="Source field: public.sync2blockchain_task.start_time") + private LocalDateTime start_time; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.5032131+08:00", comments="Source field: public.sync2blockchain_task.end_time") + private LocalDateTime end_time; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.5032131+08:00", comments="Source field: public.sync2blockchain_task.update_dir_count") + private Integer update_dir_count; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.5032131+08:00", comments="Source field: public.sync2blockchain_task.insert_dir_count") + private Integer insert_dir_count; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.5032131+08:00", comments="Source field: public.sync2blockchain_task.remove_dir_count") + private Integer remove_dir_count; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.5032131+08:00", comments="Source field: public.sync2blockchain_task.execute_status") + private Integer execute_status; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.5032131+08:00", comments="Source field: public.sync2blockchain_task.desp") + private String desp; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.5032131+08:00", comments="Source field: public.sync2blockchain_task.update_dirfile_count") + private Integer update_dirfile_count; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.5032131+08:00", comments="Source field: public.sync2blockchain_task.insert_dirfile_count") + private Integer insert_dirfile_count; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.5032131+08:00", comments="Source field: public.sync2blockchain_task.remove_dirfile_count") + private Integer remove_dirfile_count; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.5032131+08:00", comments="Source field: public.sync2blockchain_task.update_file_count") + private Integer update_file_count; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.5042192+08:00", comments="Source field: public.sync2blockchain_task.insert_file_count") + private Integer insert_file_count; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.5042192+08:00", comments="Source field: public.sync2blockchain_task.remove_file_count") + private Integer remove_file_count; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.5042772+08:00", comments="Source field: public.sync2blockchain_task.need_process_count") + private Integer need_process_count; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.5042772+08:00", comments="Source field: public.sync2blockchain_task.processed_count") + private Integer processed_count; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.5042772+08:00", comments="Source field: public.sync2blockchain_task.failed_process_count") + private Integer failed_process_count; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.5032131+08:00", comments="Source field: public.sync2blockchain_task.id") + public String getId() { + return id; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.5032131+08:00", comments="Source field: public.sync2blockchain_task.id") + public void setId(String id) { + this.id = id == null ? null : id.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.5032131+08:00", comments="Source field: public.sync2blockchain_task.start_time") + public LocalDateTime getStart_time() { + return start_time; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.5032131+08:00", comments="Source field: public.sync2blockchain_task.start_time") + public void setStart_time(LocalDateTime start_time) { + this.start_time = start_time; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.5032131+08:00", comments="Source field: public.sync2blockchain_task.end_time") + public LocalDateTime getEnd_time() { + return end_time; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.5032131+08:00", comments="Source field: public.sync2blockchain_task.end_time") + public void setEnd_time(LocalDateTime end_time) { + this.end_time = end_time; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.5032131+08:00", comments="Source field: public.sync2blockchain_task.update_dir_count") + public Integer getUpdate_dir_count() { + return update_dir_count; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.5032131+08:00", comments="Source field: public.sync2blockchain_task.update_dir_count") + public void setUpdate_dir_count(Integer update_dir_count) { + this.update_dir_count = update_dir_count; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.5032131+08:00", comments="Source field: public.sync2blockchain_task.insert_dir_count") + public Integer getInsert_dir_count() { + return insert_dir_count; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.5032131+08:00", comments="Source field: public.sync2blockchain_task.insert_dir_count") + public void setInsert_dir_count(Integer insert_dir_count) { + this.insert_dir_count = insert_dir_count; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.5032131+08:00", comments="Source field: public.sync2blockchain_task.remove_dir_count") + public Integer getRemove_dir_count() { + return remove_dir_count; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.5032131+08:00", comments="Source field: public.sync2blockchain_task.remove_dir_count") + public void setRemove_dir_count(Integer remove_dir_count) { + this.remove_dir_count = remove_dir_count; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.5032131+08:00", comments="Source field: public.sync2blockchain_task.execute_status") + public Integer getExecute_status() { + return execute_status; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.5032131+08:00", comments="Source field: public.sync2blockchain_task.execute_status") + public void setExecute_status(Integer execute_status) { + this.execute_status = execute_status; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.5032131+08:00", comments="Source field: public.sync2blockchain_task.desp") + public String getDesp() { + return desp; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.5032131+08:00", comments="Source field: public.sync2blockchain_task.desp") + public void setDesp(String desp) { + this.desp = desp == null ? null : desp.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.5032131+08:00", comments="Source field: public.sync2blockchain_task.update_dirfile_count") + public Integer getUpdate_dirfile_count() { + return update_dirfile_count; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.5032131+08:00", comments="Source field: public.sync2blockchain_task.update_dirfile_count") + public void setUpdate_dirfile_count(Integer update_dirfile_count) { + this.update_dirfile_count = update_dirfile_count; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.5032131+08:00", comments="Source field: public.sync2blockchain_task.insert_dirfile_count") + public Integer getInsert_dirfile_count() { + return insert_dirfile_count; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.5032131+08:00", comments="Source field: public.sync2blockchain_task.insert_dirfile_count") + public void setInsert_dirfile_count(Integer insert_dirfile_count) { + this.insert_dirfile_count = insert_dirfile_count; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.5032131+08:00", comments="Source field: public.sync2blockchain_task.remove_dirfile_count") + public Integer getRemove_dirfile_count() { + return remove_dirfile_count; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.5032131+08:00", comments="Source field: public.sync2blockchain_task.remove_dirfile_count") + public void setRemove_dirfile_count(Integer remove_dirfile_count) { + this.remove_dirfile_count = remove_dirfile_count; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.5032131+08:00", comments="Source field: public.sync2blockchain_task.update_file_count") + public Integer getUpdate_file_count() { + return update_file_count; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.5032131+08:00", comments="Source field: public.sync2blockchain_task.update_file_count") + public void setUpdate_file_count(Integer update_file_count) { + this.update_file_count = update_file_count; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.5042192+08:00", comments="Source field: public.sync2blockchain_task.insert_file_count") + public Integer getInsert_file_count() { + return insert_file_count; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.5042192+08:00", comments="Source field: public.sync2blockchain_task.insert_file_count") + public void setInsert_file_count(Integer insert_file_count) { + this.insert_file_count = insert_file_count; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.5042772+08:00", comments="Source field: public.sync2blockchain_task.remove_file_count") + public Integer getRemove_file_count() { + return remove_file_count; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.5042772+08:00", comments="Source field: public.sync2blockchain_task.remove_file_count") + public void setRemove_file_count(Integer remove_file_count) { + this.remove_file_count = remove_file_count; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.5042772+08:00", comments="Source field: public.sync2blockchain_task.need_process_count") + public Integer getNeed_process_count() { + return need_process_count; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.5042772+08:00", comments="Source field: public.sync2blockchain_task.need_process_count") + public void setNeed_process_count(Integer need_process_count) { + this.need_process_count = need_process_count; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.5042772+08:00", comments="Source field: public.sync2blockchain_task.processed_count") + public Integer getProcessed_count() { + return processed_count; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.5042772+08:00", comments="Source field: public.sync2blockchain_task.processed_count") + public void setProcessed_count(Integer processed_count) { + this.processed_count = processed_count; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.5042772+08:00", comments="Source field: public.sync2blockchain_task.failed_process_count") + public Integer getFailed_process_count() { + return failed_process_count; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T22:49:22.5042772+08:00", comments="Source field: public.sync2blockchain_task.failed_process_count") + public void setFailed_process_count(Integer failed_process_count) { + this.failed_process_count = failed_process_count; + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/entity/SysAdmin.java b/src/main/java/jj/tech/paolu/repository/mybatis/entity/SysAdmin.java new file mode 100644 index 0000000..b2d28c3 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/entity/SysAdmin.java @@ -0,0 +1,196 @@ +package jj.tech.paolu.repository.mybatis.entity; + +import jakarta.annotation.Generated; + +/** + * + * This class was generated by MyBatis Generator. + * This class corresponds to the database table public.sys_admin + */ +public class SysAdmin { + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2851466+08:00", comments="Source field: public.sys_admin.id") + private String id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2851466+08:00", comments="Source field: public.sys_admin.org_id") + private String org_id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2851466+08:00", comments="Source field: public.sys_admin.realname") + private String realname; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2851466+08:00", comments="Source field: public.sys_admin.username") + private String username; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2851466+08:00", comments="Source field: public.sys_admin.password") + private String password; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2851466+08:00", comments="Source field: public.sys_admin.phone") + private String phone; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2851466+08:00", comments="Source field: public.sys_admin.email") + private String email; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2851466+08:00", comments="Source field: public.sys_admin.job") + private String job; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2851466+08:00", comments="Source field: public.sys_admin.gender") + private Integer gender; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2851466+08:00", comments="Source field: public.sys_admin.islock") + private Integer islock; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2851466+08:00", comments="Source field: public.sys_admin.type") + private Integer type; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2851466+08:00", comments="Source field: public.sys_admin.sort") + private Integer sort; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2851466+08:00", comments="Source field: public.sys_admin.cer_id") + private String cer_id; + + /** + * Database Column Remarks: + * 公司ID,组织ID的最高级 + */ + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2851466+08:00", comments="Source field: public.sys_admin.company_id") + private String company_id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2851466+08:00", comments="Source field: public.sys_admin.id") + public String getId() { + return id; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2851466+08:00", comments="Source field: public.sys_admin.id") + public void setId(String id) { + this.id = id == null ? null : id.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2851466+08:00", comments="Source field: public.sys_admin.org_id") + public String getOrg_id() { + return org_id; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2851466+08:00", comments="Source field: public.sys_admin.org_id") + public void setOrg_id(String org_id) { + this.org_id = org_id == null ? null : org_id.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2851466+08:00", comments="Source field: public.sys_admin.realname") + public String getRealname() { + return realname; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2851466+08:00", comments="Source field: public.sys_admin.realname") + public void setRealname(String realname) { + this.realname = realname == null ? null : realname.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2851466+08:00", comments="Source field: public.sys_admin.username") + public String getUsername() { + return username; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2851466+08:00", comments="Source field: public.sys_admin.username") + public void setUsername(String username) { + this.username = username == null ? null : username.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2851466+08:00", comments="Source field: public.sys_admin.password") + public String getPassword() { + return password; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2851466+08:00", comments="Source field: public.sys_admin.password") + public void setPassword(String password) { + this.password = password == null ? null : password.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2851466+08:00", comments="Source field: public.sys_admin.phone") + public String getPhone() { + return phone; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2851466+08:00", comments="Source field: public.sys_admin.phone") + public void setPhone(String phone) { + this.phone = phone == null ? null : phone.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2851466+08:00", comments="Source field: public.sys_admin.email") + public String getEmail() { + return email; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2851466+08:00", comments="Source field: public.sys_admin.email") + public void setEmail(String email) { + this.email = email == null ? null : email.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2851466+08:00", comments="Source field: public.sys_admin.job") + public String getJob() { + return job; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2851466+08:00", comments="Source field: public.sys_admin.job") + public void setJob(String job) { + this.job = job == null ? null : job.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2851466+08:00", comments="Source field: public.sys_admin.gender") + public Integer getGender() { + return gender; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2851466+08:00", comments="Source field: public.sys_admin.gender") + public void setGender(Integer gender) { + this.gender = gender; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2851466+08:00", comments="Source field: public.sys_admin.islock") + public Integer getIslock() { + return islock; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2851466+08:00", comments="Source field: public.sys_admin.islock") + public void setIslock(Integer islock) { + this.islock = islock; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2851466+08:00", comments="Source field: public.sys_admin.type") + public Integer getType() { + return type; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2851466+08:00", comments="Source field: public.sys_admin.type") + public void setType(Integer type) { + this.type = type; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2851466+08:00", comments="Source field: public.sys_admin.sort") + public Integer getSort() { + return sort; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2851466+08:00", comments="Source field: public.sys_admin.sort") + public void setSort(Integer sort) { + this.sort = sort; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2851466+08:00", comments="Source field: public.sys_admin.cer_id") + public String getCer_id() { + return cer_id; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2851466+08:00", comments="Source field: public.sys_admin.cer_id") + public void setCer_id(String cer_id) { + this.cer_id = cer_id == null ? null : cer_id.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2851466+08:00", comments="Source field: public.sys_admin.company_id") + public String getCompany_id() { + return company_id; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2851466+08:00", comments="Source field: public.sys_admin.company_id") + public void setCompany_id(String company_id) { + this.company_id = company_id == null ? null : company_id.trim(); + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/entity/SysAdminRole.java b/src/main/java/jj/tech/paolu/repository/mybatis/entity/SysAdminRole.java new file mode 100644 index 0000000..07dd578 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/entity/SysAdminRole.java @@ -0,0 +1,49 @@ +package jj.tech.paolu.repository.mybatis.entity; + +import jakarta.annotation.Generated; + +/** + * + * This class was generated by MyBatis Generator. + * This class corresponds to the database table public.sys_admin_role + */ +public class SysAdminRole { + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.291149+08:00", comments="Source field: public.sys_admin_role.id") + private String id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.291149+08:00", comments="Source field: public.sys_admin_role.adminid") + private String adminid; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.291149+08:00", comments="Source field: public.sys_admin_role.roleid") + private String roleid; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.291149+08:00", comments="Source field: public.sys_admin_role.id") + public String getId() { + return id; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.291149+08:00", comments="Source field: public.sys_admin_role.id") + public void setId(String id) { + this.id = id == null ? null : id.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.291149+08:00", comments="Source field: public.sys_admin_role.adminid") + public String getAdminid() { + return adminid; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.291149+08:00", comments="Source field: public.sys_admin_role.adminid") + public void setAdminid(String adminid) { + this.adminid = adminid == null ? null : adminid.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.291149+08:00", comments="Source field: public.sys_admin_role.roleid") + public String getRoleid() { + return roleid; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.291149+08:00", comments="Source field: public.sys_admin_role.roleid") + public void setRoleid(String roleid) { + this.roleid = roleid == null ? null : roleid.trim(); + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/entity/SysAdminWeid.java b/src/main/java/jj/tech/paolu/repository/mybatis/entity/SysAdminWeid.java new file mode 100644 index 0000000..0069f09 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/entity/SysAdminWeid.java @@ -0,0 +1,106 @@ +package jj.tech.paolu.repository.mybatis.entity; + +import jakarta.annotation.Generated; +import java.time.LocalDateTime; + +/** + * + * This class was generated by MyBatis Generator. + * This class corresponds to the database table public.sys_admin_weid + */ +public class SysAdminWeid { + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.283154+08:00", comments="Source field: public.sys_admin_weid.id") + private String id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.283154+08:00", comments="Source field: public.sys_admin_weid.admin_id") + private String admin_id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.283154+08:00", comments="Source field: public.sys_admin_weid.wid") + private String wid; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.283154+08:00", comments="Source field: public.sys_admin_weid.wprivate_key") + private String wprivate_key; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.283154+08:00", comments="Source field: public.sys_admin_weid.add_time") + private LocalDateTime add_time; + + /** + * Database Column Remarks: + * 存证哈希 + */ + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.283154+08:00", comments="Source field: public.sys_admin_weid.certificate_hash") + private String certificate_hash; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.283154+08:00", comments="Source field: public.sys_admin_weid.chain_block") + private String chain_block; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.283154+08:00", comments="Source field: public.sys_admin_weid.id") + public String getId() { + return id; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.283154+08:00", comments="Source field: public.sys_admin_weid.id") + public void setId(String id) { + this.id = id == null ? null : id.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.283154+08:00", comments="Source field: public.sys_admin_weid.admin_id") + public String getAdmin_id() { + return admin_id; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.283154+08:00", comments="Source field: public.sys_admin_weid.admin_id") + public void setAdmin_id(String admin_id) { + this.admin_id = admin_id == null ? null : admin_id.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.283154+08:00", comments="Source field: public.sys_admin_weid.wid") + public String getWid() { + return wid; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.283154+08:00", comments="Source field: public.sys_admin_weid.wid") + public void setWid(String wid) { + this.wid = wid == null ? null : wid.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.283154+08:00", comments="Source field: public.sys_admin_weid.wprivate_key") + public String getWprivate_key() { + return wprivate_key; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.283154+08:00", comments="Source field: public.sys_admin_weid.wprivate_key") + public void setWprivate_key(String wprivate_key) { + this.wprivate_key = wprivate_key == null ? null : wprivate_key.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.283154+08:00", comments="Source field: public.sys_admin_weid.add_time") + public LocalDateTime getAdd_time() { + return add_time; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.283154+08:00", comments="Source field: public.sys_admin_weid.add_time") + public void setAdd_time(LocalDateTime add_time) { + this.add_time = add_time; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.283154+08:00", comments="Source field: public.sys_admin_weid.certificate_hash") + public String getCertificate_hash() { + return certificate_hash; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.283154+08:00", comments="Source field: public.sys_admin_weid.certificate_hash") + public void setCertificate_hash(String certificate_hash) { + this.certificate_hash = certificate_hash == null ? null : certificate_hash.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.283154+08:00", comments="Source field: public.sys_admin_weid.chain_block") + public String getChain_block() { + return chain_block; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.283154+08:00", comments="Source field: public.sys_admin_weid.chain_block") + public void setChain_block(String chain_block) { + this.chain_block = chain_block == null ? null : chain_block.trim(); + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/entity/SysArea.java b/src/main/java/jj/tech/paolu/repository/mybatis/entity/SysArea.java new file mode 100644 index 0000000..5c80d8b --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/entity/SysArea.java @@ -0,0 +1,101 @@ +package jj.tech.paolu.repository.mybatis.entity; + +import jakarta.annotation.Generated; + +/** + * + * This class was generated by MyBatis Generator. + * This class corresponds to the database table public.sys_area + */ +public class SysArea { + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.314148+08:00", comments="Source field: public.sys_area.id") + private String id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.314148+08:00", comments="Source field: public.sys_area.level_code") + private Short level_code; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.314148+08:00", comments="Source field: public.sys_area.parent_code") + private String parent_code; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.314148+08:00", comments="Source field: public.sys_area.area_code") + private String area_code; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.314148+08:00", comments="Source field: public.sys_area.name") + private String name; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.314148+08:00", comments="Source field: public.sys_area.pid") + private String pid; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.314148+08:00", comments="Source field: public.sys_area.pids") + private String pids; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.314148+08:00", comments="Source field: public.sys_area.id") + public String getId() { + return id; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.314148+08:00", comments="Source field: public.sys_area.id") + public void setId(String id) { + this.id = id == null ? null : id.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.314148+08:00", comments="Source field: public.sys_area.level_code") + public Short getLevel_code() { + return level_code; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.314148+08:00", comments="Source field: public.sys_area.level_code") + public void setLevel_code(Short level_code) { + this.level_code = level_code; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.314148+08:00", comments="Source field: public.sys_area.parent_code") + public String getParent_code() { + return parent_code; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.314148+08:00", comments="Source field: public.sys_area.parent_code") + public void setParent_code(String parent_code) { + this.parent_code = parent_code == null ? null : parent_code.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.314148+08:00", comments="Source field: public.sys_area.area_code") + public String getArea_code() { + return area_code; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.314148+08:00", comments="Source field: public.sys_area.area_code") + public void setArea_code(String area_code) { + this.area_code = area_code == null ? null : area_code.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.314148+08:00", comments="Source field: public.sys_area.name") + public String getName() { + return name; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.314148+08:00", comments="Source field: public.sys_area.name") + public void setName(String name) { + this.name = name == null ? null : name.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.314148+08:00", comments="Source field: public.sys_area.pid") + public String getPid() { + return pid; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.314148+08:00", comments="Source field: public.sys_area.pid") + public void setPid(String pid) { + this.pid = pid == null ? null : pid.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.314148+08:00", comments="Source field: public.sys_area.pids") + public String getPids() { + return pids; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.314148+08:00", comments="Source field: public.sys_area.pids") + public void setPids(String pids) { + this.pids = pids == null ? null : pids.trim(); + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/entity/SysConfig.java b/src/main/java/jj/tech/paolu/repository/mybatis/entity/SysConfig.java new file mode 100644 index 0000000..509e1e6 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/entity/SysConfig.java @@ -0,0 +1,102 @@ +package jj.tech.paolu.repository.mybatis.entity; + +import jakarta.annotation.Generated; +import java.time.LocalDateTime; + +/** + * + * This class was generated by MyBatis Generator. + * This class corresponds to the database table public.sys_config + */ +public class SysConfig { + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2811498+08:00", comments="Source field: public.sys_config.id") + private String id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2811498+08:00", comments="Source field: public.sys_config.subgroup") + private String subgroup; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2811498+08:00", comments="Source field: public.sys_config.keys") + private String keys; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2811498+08:00", comments="Source field: public.sys_config.val") + private String val; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2811498+08:00", comments="Source field: public.sys_config.admin_id") + private String admin_id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2811498+08:00", comments="Source field: public.sys_config.adminname") + private String adminname; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2811498+08:00", comments="Source field: public.sys_config.edittime") + private LocalDateTime edittime; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2811498+08:00", comments="Source field: public.sys_config.id") + public String getId() { + return id; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2811498+08:00", comments="Source field: public.sys_config.id") + public void setId(String id) { + this.id = id == null ? null : id.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2811498+08:00", comments="Source field: public.sys_config.subgroup") + public String getSubgroup() { + return subgroup; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2811498+08:00", comments="Source field: public.sys_config.subgroup") + public void setSubgroup(String subgroup) { + this.subgroup = subgroup == null ? null : subgroup.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2811498+08:00", comments="Source field: public.sys_config.keys") + public String getKeys() { + return keys; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2811498+08:00", comments="Source field: public.sys_config.keys") + public void setKeys(String keys) { + this.keys = keys == null ? null : keys.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2811498+08:00", comments="Source field: public.sys_config.val") + public String getVal() { + return val; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2811498+08:00", comments="Source field: public.sys_config.val") + public void setVal(String val) { + this.val = val == null ? null : val.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2811498+08:00", comments="Source field: public.sys_config.admin_id") + public String getAdmin_id() { + return admin_id; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2811498+08:00", comments="Source field: public.sys_config.admin_id") + public void setAdmin_id(String admin_id) { + this.admin_id = admin_id == null ? null : admin_id.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2811498+08:00", comments="Source field: public.sys_config.adminname") + public String getAdminname() { + return adminname; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2811498+08:00", comments="Source field: public.sys_config.adminname") + public void setAdminname(String adminname) { + this.adminname = adminname == null ? null : adminname.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2821548+08:00", comments="Source field: public.sys_config.edittime") + public LocalDateTime getEdittime() { + return edittime; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2821548+08:00", comments="Source field: public.sys_config.edittime") + public void setEdittime(LocalDateTime edittime) { + this.edittime = edittime; + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/entity/SysMenu.java b/src/main/java/jj/tech/paolu/repository/mybatis/entity/SysMenu.java new file mode 100644 index 0000000..7ef416e --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/entity/SysMenu.java @@ -0,0 +1,153 @@ +package jj.tech.paolu.repository.mybatis.entity; + +import jakarta.annotation.Generated; + +/** + * + * This class was generated by MyBatis Generator. + * This class corresponds to the database table public.sys_menu + */ +public class SysMenu { + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3081477+08:00", comments="Source field: public.sys_menu.id") + private String id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3081477+08:00", comments="Source field: public.sys_menu.parent_id") + private String parent_id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3081477+08:00", comments="Source field: public.sys_menu.level") + private Integer level; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3081477+08:00", comments="Source field: public.sys_menu.name") + private String name; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3081477+08:00", comments="Source field: public.sys_menu.types") + private String types; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3081477+08:00", comments="Source field: public.sys_menu.url") + private String url; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3081477+08:00", comments="Source field: public.sys_menu.icon") + private String icon; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3081477+08:00", comments="Source field: public.sys_menu.is_open") + private Integer is_open; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3081477+08:00", comments="Source field: public.sys_menu.description") + private String description; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3081477+08:00", comments="Source field: public.sys_menu.sort") + private Integer sort; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3081477+08:00", comments="Source field: public.sys_menu.parentpath") + private String parentpath; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3081477+08:00", comments="Source field: public.sys_menu.id") + public String getId() { + return id; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3081477+08:00", comments="Source field: public.sys_menu.id") + public void setId(String id) { + this.id = id == null ? null : id.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3081477+08:00", comments="Source field: public.sys_menu.parent_id") + public String getParent_id() { + return parent_id; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3081477+08:00", comments="Source field: public.sys_menu.parent_id") + public void setParent_id(String parent_id) { + this.parent_id = parent_id == null ? null : parent_id.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3081477+08:00", comments="Source field: public.sys_menu.level") + public Integer getLevel() { + return level; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3081477+08:00", comments="Source field: public.sys_menu.level") + public void setLevel(Integer level) { + this.level = level; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3081477+08:00", comments="Source field: public.sys_menu.name") + public String getName() { + return name; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3081477+08:00", comments="Source field: public.sys_menu.name") + public void setName(String name) { + this.name = name == null ? null : name.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3081477+08:00", comments="Source field: public.sys_menu.types") + public String getTypes() { + return types; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3081477+08:00", comments="Source field: public.sys_menu.types") + public void setTypes(String types) { + this.types = types == null ? null : types.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3081477+08:00", comments="Source field: public.sys_menu.url") + public String getUrl() { + return url; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3081477+08:00", comments="Source field: public.sys_menu.url") + public void setUrl(String url) { + this.url = url == null ? null : url.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3081477+08:00", comments="Source field: public.sys_menu.icon") + public String getIcon() { + return icon; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3081477+08:00", comments="Source field: public.sys_menu.icon") + public void setIcon(String icon) { + this.icon = icon == null ? null : icon.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3081477+08:00", comments="Source field: public.sys_menu.is_open") + public Integer getIs_open() { + return is_open; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3081477+08:00", comments="Source field: public.sys_menu.is_open") + public void setIs_open(Integer is_open) { + this.is_open = is_open; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3081477+08:00", comments="Source field: public.sys_menu.description") + public String getDescription() { + return description; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3081477+08:00", comments="Source field: public.sys_menu.description") + public void setDescription(String description) { + this.description = description == null ? null : description.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3081477+08:00", comments="Source field: public.sys_menu.sort") + public Integer getSort() { + return sort; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3081477+08:00", comments="Source field: public.sys_menu.sort") + public void setSort(Integer sort) { + this.sort = sort; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3081477+08:00", comments="Source field: public.sys_menu.parentpath") + public String getParentpath() { + return parentpath; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3081477+08:00", comments="Source field: public.sys_menu.parentpath") + public void setParentpath(String parentpath) { + this.parentpath = parentpath == null ? null : parentpath.trim(); + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/entity/SysOrg.java b/src/main/java/jj/tech/paolu/repository/mybatis/entity/SysOrg.java new file mode 100644 index 0000000..057bde3 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/entity/SysOrg.java @@ -0,0 +1,401 @@ +package jj.tech.paolu.repository.mybatis.entity; + +import jakarta.annotation.Generated; +import java.time.LocalDateTime; + +/** + * + * This class was generated by MyBatis Generator. + * This class corresponds to the database table public.sys_org + */ +public class SysOrg { + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3191521+08:00", comments="Source field: public.sys_org.id") + private String id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3191521+08:00", comments="Source field: public.sys_org.pid") + private String pid; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3191521+08:00", comments="Source field: public.sys_org.chinese_simple_name") + private String chinese_simple_name; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3191521+08:00", comments="Source field: public.sys_org.english_simple_name") + private String english_simple_name; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3191521+08:00", comments="Source field: public.sys_org.chinese_full_name") + private String chinese_full_name; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3191521+08:00", comments="Source field: public.sys_org.english_full_name") + private String english_full_name; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3191521+08:00", comments="Source field: public.sys_org.code") + private String code; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3191521+08:00", comments="Source field: public.sys_org.sort") + private Integer sort; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3191521+08:00", comments="Source field: public.sys_org.status") + private Integer status; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3191521+08:00", comments="Source field: public.sys_org.is_company_department") + private Integer is_company_department; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3191521+08:00", comments="Source field: public.sys_org.enterprise_legal_person") + private String enterprise_legal_person; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3191521+08:00", comments="Source field: public.sys_org.contact_person") + private String contact_person; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3191521+08:00", comments="Source field: public.sys_org.contact_phone") + private String contact_phone; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3191521+08:00", comments="Source field: public.sys_org.remark") + private String remark; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3191521+08:00", comments="Source field: public.sys_org.create_time") + private LocalDateTime create_time; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3191521+08:00", comments="Source field: public.sys_org.create_user") + private String create_user; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3191521+08:00", comments="Source field: public.sys_org.update_time") + private LocalDateTime update_time; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3191521+08:00", comments="Source field: public.sys_org.update_user") + private String update_user; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3191521+08:00", comments="Source field: public.sys_org.name") + private String name; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3191521+08:00", comments="Source field: public.sys_org.industry_name") + private String industry_name; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3191521+08:00", comments="Source field: public.sys_org.industry_code") + private String industry_code; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3191521+08:00", comments="Source field: public.sys_org.province_code") + private String province_code; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3191521+08:00", comments="Source field: public.sys_org.city_code") + private String city_code; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3191521+08:00", comments="Source field: public.sys_org.area_code") + private String area_code; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3191521+08:00", comments="Source field: public.sys_org.addr") + private String addr; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3191521+08:00", comments="Source field: public.sys_org.uscc") + private String uscc; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3191521+08:00", comments="Source field: public.sys_org.org_type") + private String org_type; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3191521+08:00", comments="Source field: public.sys_org.is_archives_dep") + private Integer is_archives_dep; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3191521+08:00", comments="Source field: public.sys_org.cer_id") + private String cer_id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3191521+08:00", comments="Source field: public.sys_org.is_forbidden") + private Integer is_forbidden; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3191521+08:00", comments="Source field: public.sys_org.id") + public String getId() { + return id; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3191521+08:00", comments="Source field: public.sys_org.id") + public void setId(String id) { + this.id = id == null ? null : id.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3191521+08:00", comments="Source field: public.sys_org.pid") + public String getPid() { + return pid; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3191521+08:00", comments="Source field: public.sys_org.pid") + public void setPid(String pid) { + this.pid = pid == null ? null : pid.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3191521+08:00", comments="Source field: public.sys_org.chinese_simple_name") + public String getChinese_simple_name() { + return chinese_simple_name; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3191521+08:00", comments="Source field: public.sys_org.chinese_simple_name") + public void setChinese_simple_name(String chinese_simple_name) { + this.chinese_simple_name = chinese_simple_name == null ? null : chinese_simple_name.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3191521+08:00", comments="Source field: public.sys_org.english_simple_name") + public String getEnglish_simple_name() { + return english_simple_name; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3191521+08:00", comments="Source field: public.sys_org.english_simple_name") + public void setEnglish_simple_name(String english_simple_name) { + this.english_simple_name = english_simple_name == null ? null : english_simple_name.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3191521+08:00", comments="Source field: public.sys_org.chinese_full_name") + public String getChinese_full_name() { + return chinese_full_name; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3191521+08:00", comments="Source field: public.sys_org.chinese_full_name") + public void setChinese_full_name(String chinese_full_name) { + this.chinese_full_name = chinese_full_name == null ? null : chinese_full_name.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3191521+08:00", comments="Source field: public.sys_org.english_full_name") + public String getEnglish_full_name() { + return english_full_name; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3191521+08:00", comments="Source field: public.sys_org.english_full_name") + public void setEnglish_full_name(String english_full_name) { + this.english_full_name = english_full_name == null ? null : english_full_name.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3191521+08:00", comments="Source field: public.sys_org.code") + public String getCode() { + return code; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3191521+08:00", comments="Source field: public.sys_org.code") + public void setCode(String code) { + this.code = code == null ? null : code.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3191521+08:00", comments="Source field: public.sys_org.sort") + public Integer getSort() { + return sort; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3191521+08:00", comments="Source field: public.sys_org.sort") + public void setSort(Integer sort) { + this.sort = sort; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3191521+08:00", comments="Source field: public.sys_org.status") + public Integer getStatus() { + return status; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3191521+08:00", comments="Source field: public.sys_org.status") + public void setStatus(Integer status) { + this.status = status; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3191521+08:00", comments="Source field: public.sys_org.is_company_department") + public Integer getIs_company_department() { + return is_company_department; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3191521+08:00", comments="Source field: public.sys_org.is_company_department") + public void setIs_company_department(Integer is_company_department) { + this.is_company_department = is_company_department; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3191521+08:00", comments="Source field: public.sys_org.enterprise_legal_person") + public String getEnterprise_legal_person() { + return enterprise_legal_person; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3191521+08:00", comments="Source field: public.sys_org.enterprise_legal_person") + public void setEnterprise_legal_person(String enterprise_legal_person) { + this.enterprise_legal_person = enterprise_legal_person == null ? null : enterprise_legal_person.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3191521+08:00", comments="Source field: public.sys_org.contact_person") + public String getContact_person() { + return contact_person; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3191521+08:00", comments="Source field: public.sys_org.contact_person") + public void setContact_person(String contact_person) { + this.contact_person = contact_person == null ? null : contact_person.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3191521+08:00", comments="Source field: public.sys_org.contact_phone") + public String getContact_phone() { + return contact_phone; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3191521+08:00", comments="Source field: public.sys_org.contact_phone") + public void setContact_phone(String contact_phone) { + this.contact_phone = contact_phone == null ? null : contact_phone.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3191521+08:00", comments="Source field: public.sys_org.remark") + public String getRemark() { + return remark; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3191521+08:00", comments="Source field: public.sys_org.remark") + public void setRemark(String remark) { + this.remark = remark == null ? null : remark.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3191521+08:00", comments="Source field: public.sys_org.create_time") + public LocalDateTime getCreate_time() { + return create_time; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3191521+08:00", comments="Source field: public.sys_org.create_time") + public void setCreate_time(LocalDateTime create_time) { + this.create_time = create_time; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3191521+08:00", comments="Source field: public.sys_org.create_user") + public String getCreate_user() { + return create_user; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3191521+08:00", comments="Source field: public.sys_org.create_user") + public void setCreate_user(String create_user) { + this.create_user = create_user == null ? null : create_user.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3191521+08:00", comments="Source field: public.sys_org.update_time") + public LocalDateTime getUpdate_time() { + return update_time; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3191521+08:00", comments="Source field: public.sys_org.update_time") + public void setUpdate_time(LocalDateTime update_time) { + this.update_time = update_time; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3191521+08:00", comments="Source field: public.sys_org.update_user") + public String getUpdate_user() { + return update_user; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3191521+08:00", comments="Source field: public.sys_org.update_user") + public void setUpdate_user(String update_user) { + this.update_user = update_user == null ? null : update_user.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3191521+08:00", comments="Source field: public.sys_org.name") + public String getName() { + return name; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3191521+08:00", comments="Source field: public.sys_org.name") + public void setName(String name) { + this.name = name == null ? null : name.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3191521+08:00", comments="Source field: public.sys_org.industry_name") + public String getIndustry_name() { + return industry_name; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3191521+08:00", comments="Source field: public.sys_org.industry_name") + public void setIndustry_name(String industry_name) { + this.industry_name = industry_name == null ? null : industry_name.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3191521+08:00", comments="Source field: public.sys_org.industry_code") + public String getIndustry_code() { + return industry_code; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3191521+08:00", comments="Source field: public.sys_org.industry_code") + public void setIndustry_code(String industry_code) { + this.industry_code = industry_code == null ? null : industry_code.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3191521+08:00", comments="Source field: public.sys_org.province_code") + public String getProvince_code() { + return province_code; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3191521+08:00", comments="Source field: public.sys_org.province_code") + public void setProvince_code(String province_code) { + this.province_code = province_code == null ? null : province_code.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3191521+08:00", comments="Source field: public.sys_org.city_code") + public String getCity_code() { + return city_code; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3191521+08:00", comments="Source field: public.sys_org.city_code") + public void setCity_code(String city_code) { + this.city_code = city_code == null ? null : city_code.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3191521+08:00", comments="Source field: public.sys_org.area_code") + public String getArea_code() { + return area_code; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3191521+08:00", comments="Source field: public.sys_org.area_code") + public void setArea_code(String area_code) { + this.area_code = area_code == null ? null : area_code.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3191521+08:00", comments="Source field: public.sys_org.addr") + public String getAddr() { + return addr; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3191521+08:00", comments="Source field: public.sys_org.addr") + public void setAddr(String addr) { + this.addr = addr == null ? null : addr.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3191521+08:00", comments="Source field: public.sys_org.uscc") + public String getUscc() { + return uscc; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3191521+08:00", comments="Source field: public.sys_org.uscc") + public void setUscc(String uscc) { + this.uscc = uscc == null ? null : uscc.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3191521+08:00", comments="Source field: public.sys_org.org_type") + public String getOrg_type() { + return org_type; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3191521+08:00", comments="Source field: public.sys_org.org_type") + public void setOrg_type(String org_type) { + this.org_type = org_type == null ? null : org_type.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3191521+08:00", comments="Source field: public.sys_org.is_archives_dep") + public Integer getIs_archives_dep() { + return is_archives_dep; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3191521+08:00", comments="Source field: public.sys_org.is_archives_dep") + public void setIs_archives_dep(Integer is_archives_dep) { + this.is_archives_dep = is_archives_dep; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3191521+08:00", comments="Source field: public.sys_org.cer_id") + public String getCer_id() { + return cer_id; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3191521+08:00", comments="Source field: public.sys_org.cer_id") + public void setCer_id(String cer_id) { + this.cer_id = cer_id == null ? null : cer_id.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3191521+08:00", comments="Source field: public.sys_org.is_forbidden") + public Integer getIs_forbidden() { + return is_forbidden; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3191521+08:00", comments="Source field: public.sys_org.is_forbidden") + public void setIs_forbidden(Integer is_forbidden) { + this.is_forbidden = is_forbidden; + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/entity/SysRole.java b/src/main/java/jj/tech/paolu/repository/mybatis/entity/SysRole.java new file mode 100644 index 0000000..15ec276 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/entity/SysRole.java @@ -0,0 +1,127 @@ +package jj.tech.paolu.repository.mybatis.entity; + +import jakarta.annotation.Generated; + +/** + * + * This class was generated by MyBatis Generator. + * This class corresponds to the database table public.sys_role + */ +public class SysRole { + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2711525+08:00", comments="Source field: public.sys_role.id") + private String id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2711525+08:00", comments="Source field: public.sys_role.rolename") + private String rolename; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2711525+08:00", comments="Source field: public.sys_role.describe") + private String describe; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2711525+08:00", comments="Source field: public.sys_role.sort") + private Integer sort; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2711525+08:00", comments="Source field: public.sys_role.is_open") + private Integer is_open; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2711525+08:00", comments="Source field: public.sys_role.sign_name") + private String sign_name; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2711525+08:00", comments="Source field: public.sys_role.sign_id") + private String sign_id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2711525+08:00", comments="Source field: public.sys_role.company_id") + private String company_id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2711525+08:00", comments="Source field: public.sys_role.company_name") + private String company_name; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2711525+08:00", comments="Source field: public.sys_role.id") + public String getId() { + return id; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2711525+08:00", comments="Source field: public.sys_role.id") + public void setId(String id) { + this.id = id == null ? null : id.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2711525+08:00", comments="Source field: public.sys_role.rolename") + public String getRolename() { + return rolename; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2711525+08:00", comments="Source field: public.sys_role.rolename") + public void setRolename(String rolename) { + this.rolename = rolename == null ? null : rolename.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2711525+08:00", comments="Source field: public.sys_role.describe") + public String getDescribe() { + return describe; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2711525+08:00", comments="Source field: public.sys_role.describe") + public void setDescribe(String describe) { + this.describe = describe == null ? null : describe.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2711525+08:00", comments="Source field: public.sys_role.sort") + public Integer getSort() { + return sort; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2711525+08:00", comments="Source field: public.sys_role.sort") + public void setSort(Integer sort) { + this.sort = sort; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2711525+08:00", comments="Source field: public.sys_role.is_open") + public Integer getIs_open() { + return is_open; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2711525+08:00", comments="Source field: public.sys_role.is_open") + public void setIs_open(Integer is_open) { + this.is_open = is_open; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2711525+08:00", comments="Source field: public.sys_role.sign_name") + public String getSign_name() { + return sign_name; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2711525+08:00", comments="Source field: public.sys_role.sign_name") + public void setSign_name(String sign_name) { + this.sign_name = sign_name == null ? null : sign_name.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2711525+08:00", comments="Source field: public.sys_role.sign_id") + public String getSign_id() { + return sign_id; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2711525+08:00", comments="Source field: public.sys_role.sign_id") + public void setSign_id(String sign_id) { + this.sign_id = sign_id == null ? null : sign_id.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2711525+08:00", comments="Source field: public.sys_role.company_id") + public String getCompany_id() { + return company_id; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2711525+08:00", comments="Source field: public.sys_role.company_id") + public void setCompany_id(String company_id) { + this.company_id = company_id == null ? null : company_id.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2711525+08:00", comments="Source field: public.sys_role.company_name") + public String getCompany_name() { + return company_name; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2711525+08:00", comments="Source field: public.sys_role.company_name") + public void setCompany_name(String company_name) { + this.company_name = company_name == null ? null : company_name.trim(); + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/entity/SysRoleMenu.java b/src/main/java/jj/tech/paolu/repository/mybatis/entity/SysRoleMenu.java new file mode 100644 index 0000000..7d861f0 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/entity/SysRoleMenu.java @@ -0,0 +1,49 @@ +package jj.tech.paolu.repository.mybatis.entity; + +import jakarta.annotation.Generated; + +/** + * + * This class was generated by MyBatis Generator. + * This class corresponds to the database table public.sys_role_menu + */ +public class SysRoleMenu { + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2901497+08:00", comments="Source field: public.sys_role_menu.id") + private String id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2901497+08:00", comments="Source field: public.sys_role_menu.roleid") + private String roleid; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2901497+08:00", comments="Source field: public.sys_role_menu.menuid") + private String menuid; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2901497+08:00", comments="Source field: public.sys_role_menu.id") + public String getId() { + return id; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2901497+08:00", comments="Source field: public.sys_role_menu.id") + public void setId(String id) { + this.id = id == null ? null : id.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2901497+08:00", comments="Source field: public.sys_role_menu.roleid") + public String getRoleid() { + return roleid; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2901497+08:00", comments="Source field: public.sys_role_menu.roleid") + public void setRoleid(String roleid) { + this.roleid = roleid == null ? null : roleid.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2901497+08:00", comments="Source field: public.sys_role_menu.menuid") + public String getMenuid() { + return menuid; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.2901497+08:00", comments="Source field: public.sys_role_menu.menuid") + public void setMenuid(String menuid) { + this.menuid = menuid == null ? null : menuid.trim(); + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/entity/SysRoleSign.java b/src/main/java/jj/tech/paolu/repository/mybatis/entity/SysRoleSign.java new file mode 100644 index 0000000..20571d9 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/entity/SysRoleSign.java @@ -0,0 +1,49 @@ +package jj.tech.paolu.repository.mybatis.entity; + +import jakarta.annotation.Generated; + +/** + * + * This class was generated by MyBatis Generator. + * This class corresponds to the database table public.sys_role_sign + */ +public class SysRoleSign { + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.300152+08:00", comments="Source field: public.sys_role_sign.id") + private String id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.300152+08:00", comments="Source field: public.sys_role_sign.sign_name") + private String sign_name; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.300152+08:00", comments="Source field: public.sys_role_sign.sign_code") + private String sign_code; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.300152+08:00", comments="Source field: public.sys_role_sign.id") + public String getId() { + return id; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.300152+08:00", comments="Source field: public.sys_role_sign.id") + public void setId(String id) { + this.id = id == null ? null : id.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.300152+08:00", comments="Source field: public.sys_role_sign.sign_name") + public String getSign_name() { + return sign_name; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.300152+08:00", comments="Source field: public.sys_role_sign.sign_name") + public void setSign_name(String sign_name) { + this.sign_name = sign_name == null ? null : sign_name.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.300152+08:00", comments="Source field: public.sys_role_sign.sign_code") + public String getSign_code() { + return sign_code; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.300152+08:00", comments="Source field: public.sys_role_sign.sign_code") + public void setSign_code(String sign_code) { + this.sign_code = sign_code == null ? null : sign_code.trim(); + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/entity/SysRoleUrl.java b/src/main/java/jj/tech/paolu/repository/mybatis/entity/SysRoleUrl.java new file mode 100644 index 0000000..e64b64c --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/entity/SysRoleUrl.java @@ -0,0 +1,62 @@ +package jj.tech.paolu.repository.mybatis.entity; + +import jakarta.annotation.Generated; + +/** + * + * This class was generated by MyBatis Generator. + * This class corresponds to the database table public.sys_role_url + */ +public class SysRoleUrl { + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3231506+08:00", comments="Source field: public.sys_role_url.id") + private String id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3231506+08:00", comments="Source field: public.sys_role_url.roleid") + private String roleid; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3231506+08:00", comments="Source field: public.sys_role_url.url") + private String url; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3231506+08:00", comments="Source field: public.sys_role_url.urltypes") + private Integer urltypes; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3231506+08:00", comments="Source field: public.sys_role_url.id") + public String getId() { + return id; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3231506+08:00", comments="Source field: public.sys_role_url.id") + public void setId(String id) { + this.id = id == null ? null : id.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3231506+08:00", comments="Source field: public.sys_role_url.roleid") + public String getRoleid() { + return roleid; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3231506+08:00", comments="Source field: public.sys_role_url.roleid") + public void setRoleid(String roleid) { + this.roleid = roleid == null ? null : roleid.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3231506+08:00", comments="Source field: public.sys_role_url.url") + public String getUrl() { + return url; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3231506+08:00", comments="Source field: public.sys_role_url.url") + public void setUrl(String url) { + this.url = url == null ? null : url.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3231506+08:00", comments="Source field: public.sys_role_url.urltypes") + public Integer getUrltypes() { + return urltypes; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3231506+08:00", comments="Source field: public.sys_role_url.urltypes") + public void setUrltypes(Integer urltypes) { + this.urltypes = urltypes; + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/entity/SysUrls.java b/src/main/java/jj/tech/paolu/repository/mybatis/entity/SysUrls.java new file mode 100644 index 0000000..5fe33ce --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/entity/SysUrls.java @@ -0,0 +1,101 @@ +package jj.tech.paolu.repository.mybatis.entity; + +import jakarta.annotation.Generated; + +/** + * + * This class was generated by MyBatis Generator. + * This class corresponds to the database table public.sys_urls + */ +public class SysUrls { + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3011508+08:00", comments="Source field: public.sys_urls.id") + private String id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3011508+08:00", comments="Source field: public.sys_urls.pid") + private String pid; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3011508+08:00", comments="Source field: public.sys_urls.types") + private Integer types; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3011508+08:00", comments="Source field: public.sys_urls.level") + private Integer level; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3011508+08:00", comments="Source field: public.sys_urls.url") + private String url; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3011508+08:00", comments="Source field: public.sys_urls.name") + private String name; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3011508+08:00", comments="Source field: public.sys_urls.method") + private String method; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3011508+08:00", comments="Source field: public.sys_urls.id") + public String getId() { + return id; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3011508+08:00", comments="Source field: public.sys_urls.id") + public void setId(String id) { + this.id = id == null ? null : id.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3011508+08:00", comments="Source field: public.sys_urls.pid") + public String getPid() { + return pid; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3011508+08:00", comments="Source field: public.sys_urls.pid") + public void setPid(String pid) { + this.pid = pid == null ? null : pid.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3011508+08:00", comments="Source field: public.sys_urls.types") + public Integer getTypes() { + return types; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3011508+08:00", comments="Source field: public.sys_urls.types") + public void setTypes(Integer types) { + this.types = types; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3011508+08:00", comments="Source field: public.sys_urls.level") + public Integer getLevel() { + return level; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3011508+08:00", comments="Source field: public.sys_urls.level") + public void setLevel(Integer level) { + this.level = level; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3011508+08:00", comments="Source field: public.sys_urls.url") + public String getUrl() { + return url; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3011508+08:00", comments="Source field: public.sys_urls.url") + public void setUrl(String url) { + this.url = url == null ? null : url.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3011508+08:00", comments="Source field: public.sys_urls.name") + public String getName() { + return name; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3011508+08:00", comments="Source field: public.sys_urls.name") + public void setName(String name) { + this.name = name == null ? null : name.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3011508+08:00", comments="Source field: public.sys_urls.method") + public String getMethod() { + return method; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-06T15:34:05.3011508+08:00", comments="Source field: public.sys_urls.method") + public void setMethod(String method) { + this.method = method == null ? null : method.trim(); + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/entity/WbDirectory.java b/src/main/java/jj/tech/paolu/repository/mybatis/entity/WbDirectory.java new file mode 100644 index 0000000..5437a72 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/entity/WbDirectory.java @@ -0,0 +1,116 @@ +package jj.tech.paolu.repository.mybatis.entity; + +import jakarta.annotation.Generated; + +/** + * Database Table Remarks: + * 模拟的微柏目录数据,用于支撑模拟微柏数据同步测试 + * + * This class was generated by MyBatis Generator. + * This class corresponds to the database table public.wb_directory + */ +public class WbDirectory { + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6340135+08:00", comments="Source field: public.wb_directory.kid") + private String kid; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6340135+08:00", comments="Source field: public.wb_directory.parentID") + private String parentID; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6340135+08:00", comments="Source field: public.wb_directory.time_stamp") + private String time_stamp; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6340135+08:00", comments="Source field: public.wb_directory.sortOrder") + private Integer sortOrder; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6350131+08:00", comments="Source field: public.wb_directory.tname") + private String tname; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6350131+08:00", comments="Source field: public.wb_directory.subjoin") + private Integer subjoin; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6350131+08:00", comments="Source field: public.wb_directory.isdel") + private Integer isdel; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6350131+08:00", comments="Source field: public.wb_directory.wbs_id") + private Integer wbs_id; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6340135+08:00", comments="Source field: public.wb_directory.kid") + public String getKid() { + return kid; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6340135+08:00", comments="Source field: public.wb_directory.kid") + public void setKid(String kid) { + this.kid = kid == null ? null : kid.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6340135+08:00", comments="Source field: public.wb_directory.parentID") + public String getParentID() { + return parentID; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6340135+08:00", comments="Source field: public.wb_directory.parentID") + public void setParentID(String parentID) { + this.parentID = parentID == null ? null : parentID.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6340135+08:00", comments="Source field: public.wb_directory.time_stamp") + public String getTime_stamp() { + return time_stamp; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6340135+08:00", comments="Source field: public.wb_directory.time_stamp") + public void setTime_stamp(String time_stamp) { + this.time_stamp = time_stamp == null ? null : time_stamp.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6350131+08:00", comments="Source field: public.wb_directory.sortOrder") + public Integer getSortOrder() { + return sortOrder; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6350131+08:00", comments="Source field: public.wb_directory.sortOrder") + public void setSortOrder(Integer sortOrder) { + this.sortOrder = sortOrder; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6350131+08:00", comments="Source field: public.wb_directory.tname") + public String getTname() { + return tname; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6350131+08:00", comments="Source field: public.wb_directory.tname") + public void setTname(String tname) { + this.tname = tname == null ? null : tname.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6350131+08:00", comments="Source field: public.wb_directory.subjoin") + public Integer getSubjoin() { + return subjoin; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6350131+08:00", comments="Source field: public.wb_directory.subjoin") + public void setSubjoin(Integer subjoin) { + this.subjoin = subjoin; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6350131+08:00", comments="Source field: public.wb_directory.isdel") + public Integer getIsdel() { + return isdel; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6350131+08:00", comments="Source field: public.wb_directory.isdel") + public void setIsdel(Integer isdel) { + this.isdel = isdel; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6350131+08:00", comments="Source field: public.wb_directory.wbs_id") + public Integer getWbs_id() { + return wbs_id; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6350131+08:00", comments="Source field: public.wb_directory.wbs_id") + public void setWbs_id(Integer wbs_id) { + this.wbs_id = wbs_id; + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/entity/WbDirectoryFile.java b/src/main/java/jj/tech/paolu/repository/mybatis/entity/WbDirectoryFile.java new file mode 100644 index 0000000..8c86af1 --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/entity/WbDirectoryFile.java @@ -0,0 +1,283 @@ +package jj.tech.paolu.repository.mybatis.entity; + +import jakarta.annotation.Generated; + +/** + * + * This class was generated by MyBatis Generator. + * This class corresponds to the database table public.wb_directory_file + */ +public class WbDirectoryFile { + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6308339+08:00", comments="Source field: public.wb_directory_file.kid") + private String kid; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6308339+08:00", comments="Source field: public.wb_directory_file.sortID") + private String sortID; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6308339+08:00", comments="Source field: public.wb_directory_file.fileSuper") + private String fileSuper; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6308339+08:00", comments="Source field: public.wb_directory_file.fileCount") + private Integer fileCount; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6308339+08:00", comments="Source field: public.wb_directory_file.dutyPerson") + private String dutyPerson; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6308339+08:00", comments="Source field: public.wb_directory_file.eWeaveDate") + private String eWeaveDate; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6308339+08:00", comments="Source field: public.wb_directory_file.filePage") + private Integer filePage; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6308339+08:00", comments="Source field: public.wb_directory_file.sortOrder") + private String sortOrder; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6308339+08:00", comments="Source field: public.wb_directory_file.bPeg") + private String bPeg; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6308339+08:00", comments="Source field: public.wb_directory_file.ePeg") + private String ePeg; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6308339+08:00", comments="Source field: public.wb_directory_file.fileNum") + private String fileNum; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6320134+08:00", comments="Source field: public.wb_directory_file.remark") + private String remark; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6320134+08:00", comments="Source field: public.wb_directory_file.recordNum") + private String recordNum; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6320134+08:00", comments="Source field: public.wb_directory_file.pieceNumber") + private String pieceNumber; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6320134+08:00", comments="Source field: public.wb_directory_file.addDate") + private String addDate; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6320134+08:00", comments="Source field: public.wb_directory_file.editDate") + private String editDate; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6320134+08:00", comments="Source field: public.wb_directory_file.time_stamp") + private String time_stamp; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6320134+08:00", comments="Source field: public.wb_directory_file.isDel") + private Integer isDel; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6320134+08:00", comments="Source field: public.wb_directory_file.catalogPdfURL") + private String catalogPdfURL; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6320134+08:00", comments="Source field: public.wb_directory_file.signTag") + private String signTag; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6320134+08:00", comments="Source field: public.wb_directory_file.collectTag") + private String collectTag; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6308339+08:00", comments="Source field: public.wb_directory_file.kid") + public String getKid() { + return kid; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6308339+08:00", comments="Source field: public.wb_directory_file.kid") + public void setKid(String kid) { + this.kid = kid == null ? null : kid.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6308339+08:00", comments="Source field: public.wb_directory_file.sortID") + public String getSortID() { + return sortID; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6308339+08:00", comments="Source field: public.wb_directory_file.sortID") + public void setSortID(String sortID) { + this.sortID = sortID == null ? null : sortID.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6308339+08:00", comments="Source field: public.wb_directory_file.fileSuper") + public String getFileSuper() { + return fileSuper; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6308339+08:00", comments="Source field: public.wb_directory_file.fileSuper") + public void setFileSuper(String fileSuper) { + this.fileSuper = fileSuper == null ? null : fileSuper.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6308339+08:00", comments="Source field: public.wb_directory_file.fileCount") + public Integer getFileCount() { + return fileCount; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6308339+08:00", comments="Source field: public.wb_directory_file.fileCount") + public void setFileCount(Integer fileCount) { + this.fileCount = fileCount; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6308339+08:00", comments="Source field: public.wb_directory_file.dutyPerson") + public String getDutyPerson() { + return dutyPerson; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6308339+08:00", comments="Source field: public.wb_directory_file.dutyPerson") + public void setDutyPerson(String dutyPerson) { + this.dutyPerson = dutyPerson == null ? null : dutyPerson.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6308339+08:00", comments="Source field: public.wb_directory_file.eWeaveDate") + public String geteWeaveDate() { + return eWeaveDate; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6308339+08:00", comments="Source field: public.wb_directory_file.eWeaveDate") + public void seteWeaveDate(String eWeaveDate) { + this.eWeaveDate = eWeaveDate == null ? null : eWeaveDate.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6308339+08:00", comments="Source field: public.wb_directory_file.filePage") + public Integer getFilePage() { + return filePage; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6308339+08:00", comments="Source field: public.wb_directory_file.filePage") + public void setFilePage(Integer filePage) { + this.filePage = filePage; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6308339+08:00", comments="Source field: public.wb_directory_file.sortOrder") + public String getSortOrder() { + return sortOrder; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6308339+08:00", comments="Source field: public.wb_directory_file.sortOrder") + public void setSortOrder(String sortOrder) { + this.sortOrder = sortOrder == null ? null : sortOrder.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6308339+08:00", comments="Source field: public.wb_directory_file.bPeg") + public String getbPeg() { + return bPeg; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6308339+08:00", comments="Source field: public.wb_directory_file.bPeg") + public void setbPeg(String bPeg) { + this.bPeg = bPeg == null ? null : bPeg.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6308339+08:00", comments="Source field: public.wb_directory_file.ePeg") + public String getePeg() { + return ePeg; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6308339+08:00", comments="Source field: public.wb_directory_file.ePeg") + public void setePeg(String ePeg) { + this.ePeg = ePeg == null ? null : ePeg.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6308339+08:00", comments="Source field: public.wb_directory_file.fileNum") + public String getFileNum() { + return fileNum; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6320134+08:00", comments="Source field: public.wb_directory_file.fileNum") + public void setFileNum(String fileNum) { + this.fileNum = fileNum == null ? null : fileNum.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6320134+08:00", comments="Source field: public.wb_directory_file.remark") + public String getRemark() { + return remark; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6320134+08:00", comments="Source field: public.wb_directory_file.remark") + public void setRemark(String remark) { + this.remark = remark == null ? null : remark.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6320134+08:00", comments="Source field: public.wb_directory_file.recordNum") + public String getRecordNum() { + return recordNum; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6320134+08:00", comments="Source field: public.wb_directory_file.recordNum") + public void setRecordNum(String recordNum) { + this.recordNum = recordNum == null ? null : recordNum.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6320134+08:00", comments="Source field: public.wb_directory_file.pieceNumber") + public String getPieceNumber() { + return pieceNumber; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6320134+08:00", comments="Source field: public.wb_directory_file.pieceNumber") + public void setPieceNumber(String pieceNumber) { + this.pieceNumber = pieceNumber == null ? null : pieceNumber.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6320134+08:00", comments="Source field: public.wb_directory_file.addDate") + public String getAddDate() { + return addDate; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6320134+08:00", comments="Source field: public.wb_directory_file.addDate") + public void setAddDate(String addDate) { + this.addDate = addDate == null ? null : addDate.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6320134+08:00", comments="Source field: public.wb_directory_file.editDate") + public String getEditDate() { + return editDate; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6320134+08:00", comments="Source field: public.wb_directory_file.editDate") + public void setEditDate(String editDate) { + this.editDate = editDate == null ? null : editDate.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6320134+08:00", comments="Source field: public.wb_directory_file.time_stamp") + public String getTime_stamp() { + return time_stamp; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6320134+08:00", comments="Source field: public.wb_directory_file.time_stamp") + public void setTime_stamp(String time_stamp) { + this.time_stamp = time_stamp == null ? null : time_stamp.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6320134+08:00", comments="Source field: public.wb_directory_file.isDel") + public Integer getIsDel() { + return isDel; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6320134+08:00", comments="Source field: public.wb_directory_file.isDel") + public void setIsDel(Integer isDel) { + this.isDel = isDel; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6320134+08:00", comments="Source field: public.wb_directory_file.catalogPdfURL") + public String getCatalogPdfURL() { + return catalogPdfURL; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6320134+08:00", comments="Source field: public.wb_directory_file.catalogPdfURL") + public void setCatalogPdfURL(String catalogPdfURL) { + this.catalogPdfURL = catalogPdfURL == null ? null : catalogPdfURL.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6320134+08:00", comments="Source field: public.wb_directory_file.signTag") + public String getSignTag() { + return signTag; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6320134+08:00", comments="Source field: public.wb_directory_file.signTag") + public void setSignTag(String signTag) { + this.signTag = signTag == null ? null : signTag.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6320134+08:00", comments="Source field: public.wb_directory_file.collectTag") + public String getCollectTag() { + return collectTag; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6320134+08:00", comments="Source field: public.wb_directory_file.collectTag") + public void setCollectTag(String collectTag) { + this.collectTag = collectTag == null ? null : collectTag.trim(); + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/repository/mybatis/entity/WbFile.java b/src/main/java/jj/tech/paolu/repository/mybatis/entity/WbFile.java new file mode 100644 index 0000000..ccc1cab --- /dev/null +++ b/src/main/java/jj/tech/paolu/repository/mybatis/entity/WbFile.java @@ -0,0 +1,231 @@ +package jj.tech.paolu.repository.mybatis.entity; + +import jakarta.annotation.Generated; + +/** + * + * This class was generated by MyBatis Generator. + * This class corresponds to the database table public.wb_file + */ +public class WbFile { + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.604873+08:00", comments="Source field: public.wb_file.kid") + private String kid; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6059438+08:00", comments="Source field: public.wb_file.catalogID") + private String catalogID; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6059438+08:00", comments="Source field: public.wb_file.tableName") + private String tableName; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6069434+08:00", comments="Source field: public.wb_file.annexName") + private String annexName; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6069434+08:00", comments="Source field: public.wb_file.projectName") + private String projectName; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6069434+08:00", comments="Source field: public.wb_file.eweaveDate") + private String eweaveDate; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6069434+08:00", comments="Source field: public.wb_file.checkDate") + private String checkDate; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6069434+08:00", comments="Source field: public.wb_file.annexPage") + private Integer annexPage; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6069434+08:00", comments="Source field: public.wb_file.sortOrder") + private String sortOrder; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6069434+08:00", comments="Source field: public.wb_file.fileFrom") + private String fileFrom; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6069434+08:00", comments="Source field: public.wb_file.archivestag") + private String archivestag; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6069434+08:00", comments="Source field: public.wb_file.addDate") + private String addDate; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6069434+08:00", comments="Source field: public.wb_file.editDate") + private String editDate; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6080013+08:00", comments="Source field: public.wb_file.time_stamp") + private String time_stamp; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6080013+08:00", comments="Source field: public.wb_file.isDel") + private Integer isDel; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6080013+08:00", comments="Source field: public.wb_file.downURL") + private String downURL; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6080013+08:00", comments="Source field: public.wb_file.filesize") + private Integer filesize; + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6059438+08:00", comments="Source field: public.wb_file.kid") + public String getKid() { + return kid; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6059438+08:00", comments="Source field: public.wb_file.kid") + public void setKid(String kid) { + this.kid = kid == null ? null : kid.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6059438+08:00", comments="Source field: public.wb_file.catalogID") + public String getCatalogID() { + return catalogID; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6059438+08:00", comments="Source field: public.wb_file.catalogID") + public void setCatalogID(String catalogID) { + this.catalogID = catalogID == null ? null : catalogID.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6069434+08:00", comments="Source field: public.wb_file.tableName") + public String getTableName() { + return tableName; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6069434+08:00", comments="Source field: public.wb_file.tableName") + public void setTableName(String tableName) { + this.tableName = tableName == null ? null : tableName.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6069434+08:00", comments="Source field: public.wb_file.annexName") + public String getAnnexName() { + return annexName; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6069434+08:00", comments="Source field: public.wb_file.annexName") + public void setAnnexName(String annexName) { + this.annexName = annexName == null ? null : annexName.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6069434+08:00", comments="Source field: public.wb_file.projectName") + public String getProjectName() { + return projectName; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6069434+08:00", comments="Source field: public.wb_file.projectName") + public void setProjectName(String projectName) { + this.projectName = projectName == null ? null : projectName.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6069434+08:00", comments="Source field: public.wb_file.eweaveDate") + public String getEweaveDate() { + return eweaveDate; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6069434+08:00", comments="Source field: public.wb_file.eweaveDate") + public void setEweaveDate(String eweaveDate) { + this.eweaveDate = eweaveDate == null ? null : eweaveDate.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6069434+08:00", comments="Source field: public.wb_file.checkDate") + public String getCheckDate() { + return checkDate; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6069434+08:00", comments="Source field: public.wb_file.checkDate") + public void setCheckDate(String checkDate) { + this.checkDate = checkDate == null ? null : checkDate.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6069434+08:00", comments="Source field: public.wb_file.annexPage") + public Integer getAnnexPage() { + return annexPage; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6069434+08:00", comments="Source field: public.wb_file.annexPage") + public void setAnnexPage(Integer annexPage) { + this.annexPage = annexPage; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6069434+08:00", comments="Source field: public.wb_file.sortOrder") + public String getSortOrder() { + return sortOrder; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6069434+08:00", comments="Source field: public.wb_file.sortOrder") + public void setSortOrder(String sortOrder) { + this.sortOrder = sortOrder == null ? null : sortOrder.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6069434+08:00", comments="Source field: public.wb_file.fileFrom") + public String getFileFrom() { + return fileFrom; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6069434+08:00", comments="Source field: public.wb_file.fileFrom") + public void setFileFrom(String fileFrom) { + this.fileFrom = fileFrom == null ? null : fileFrom.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6069434+08:00", comments="Source field: public.wb_file.archivestag") + public String getArchivestag() { + return archivestag; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6069434+08:00", comments="Source field: public.wb_file.archivestag") + public void setArchivestag(String archivestag) { + this.archivestag = archivestag == null ? null : archivestag.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6069434+08:00", comments="Source field: public.wb_file.addDate") + public String getAddDate() { + return addDate; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6069434+08:00", comments="Source field: public.wb_file.addDate") + public void setAddDate(String addDate) { + this.addDate = addDate == null ? null : addDate.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6069434+08:00", comments="Source field: public.wb_file.editDate") + public String getEditDate() { + return editDate; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6069434+08:00", comments="Source field: public.wb_file.editDate") + public void setEditDate(String editDate) { + this.editDate = editDate == null ? null : editDate.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6080013+08:00", comments="Source field: public.wb_file.time_stamp") + public String getTime_stamp() { + return time_stamp; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6080013+08:00", comments="Source field: public.wb_file.time_stamp") + public void setTime_stamp(String time_stamp) { + this.time_stamp = time_stamp == null ? null : time_stamp.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6080013+08:00", comments="Source field: public.wb_file.isDel") + public Integer getIsDel() { + return isDel; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6080013+08:00", comments="Source field: public.wb_file.isDel") + public void setIsDel(Integer isDel) { + this.isDel = isDel; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6080013+08:00", comments="Source field: public.wb_file.downURL") + public String getDownURL() { + return downURL; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6080013+08:00", comments="Source field: public.wb_file.downURL") + public void setDownURL(String downURL) { + this.downURL = downURL == null ? null : downURL.trim(); + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6080013+08:00", comments="Source field: public.wb_file.filesize") + public Integer getFilesize() { + return filesize; + } + + @Generated(value="org.mybatis.generator.api.MyBatisGenerator", date="2024-06-10T19:51:52.6080013+08:00", comments="Source field: public.wb_file.filesize") + public void setFilesize(Integer filesize) { + this.filesize = filesize; + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/utils/AES.java b/src/main/java/jj/tech/paolu/utils/AES.java new file mode 100644 index 0000000..5120b81 --- /dev/null +++ b/src/main/java/jj/tech/paolu/utils/AES.java @@ -0,0 +1,102 @@ +package jj.tech.paolu.utils; + + +import org.apache.commons.codec.binary.Base64; +import org.apache.commons.codec.digest.DigestUtils; + +import javax.crypto.Cipher; +import javax.crypto.spec.IvParameterSpec; +import javax.crypto.spec.SecretKeySpec; +import java.nio.charset.Charset; + +public class AES { + + private Cipher CBC; + private Cipher ECB; + private IvParameterSpec ivParameterSpec; + private SecretKeySpec secretKeySpec; + + public AES(){ + this("ssdkF$HUy2A#D%kd","weJiSEvR5yAC5ftB"); + } + public AES(String KEY, String IV){ + try { + this.CBC = Cipher.getInstance("AES/CBC/PKCS5PADDING"); + this.ECB = Cipher.getInstance("AES/ECB/PKCS5PADDING"); + this.ivParameterSpec = new IvParameterSpec(IV.getBytes(Charset.defaultCharset())); + this.secretKeySpec = new SecretKeySpec(KEY.getBytes(Charset.defaultCharset()), "AES"); + } catch (Exception e) { + e.printStackTrace(); + } + } + + + + public String encryptCBC(String toBeEncrypt){ + try { + CBC.init(Cipher.ENCRYPT_MODE, secretKeySpec, ivParameterSpec); + byte[] encrypted = CBC.doFinal(toBeEncrypt.getBytes()); + return Base64.encodeBase64URLSafeString(encrypted); + }catch(Exception e) { + e.printStackTrace(); + return null; + } + } + + + public String decryptCBC(String encrypted){ + try { + CBC.init(Cipher.DECRYPT_MODE, secretKeySpec, ivParameterSpec); + byte[] decryptedBytes = CBC.doFinal(Base64.decodeBase64(encrypted)); + return new String(decryptedBytes); + }catch(Exception e) { + e.printStackTrace(); + return null; + } + } + + public String encrypt(String toBeEncrypt){ + try { + ECB.init(Cipher.ENCRYPT_MODE, secretKeySpec); + byte[] encrypted = ECB.doFinal(toBeEncrypt.getBytes()); + return Base64.encodeBase64URLSafeString(encrypted); + }catch(Exception e) { + e.printStackTrace(); + return null; + } + } + public String decrypt(String encrypted){ + try { + ECB.init(Cipher.DECRYPT_MODE, secretKeySpec); + byte[] decryptedBytes = ECB.doFinal(Base64.decodeBase64(encrypted)); + return new String(decryptedBytes); + }catch(Exception e) { + e.printStackTrace(); + return null; + } + } + + public static void main(String[] args) { + AES a = new AES(); + String s = a.encryptCBC("111"); + String v = a.decryptCBC(s); + System.out.println(s); + System.out.println(v); + + + String bb = a.encrypt("222"); + String cc = a.decrypt(bb); + System.out.println(bb); + System.out.println(cc); + + + String m = DigestUtils.sha3_256Hex("000000"); + System.out.println("sha3256:"+m); + + + System.out.println(a.encrypt("555555555551")); + System.out.println(a.decrypt(a.encrypt("555555555551"))); + + } + +} diff --git a/src/main/java/jj/tech/paolu/utils/CookieUtil.java b/src/main/java/jj/tech/paolu/utils/CookieUtil.java new file mode 100644 index 0000000..f0b936a --- /dev/null +++ b/src/main/java/jj/tech/paolu/utils/CookieUtil.java @@ -0,0 +1,112 @@ +package jj.tech.paolu.utils; + +import java.io.UnsupportedEncodingException; + +import jakarta.servlet.http.Cookie; +import jakarta.servlet.http.HttpServletRequest; +import jakarta.servlet.http.HttpServletResponse; + +public class CookieUtil { + private static final String DEFAULT_PATH = "/"; + private static final int DEFAULT_AGE = -1; + + private static String path = DEFAULT_PATH; + private static int age = DEFAULT_AGE; + + /** + * 添加cookie + * @param name + * @param value + * @param response + * @param maxAge + * @throws UnsupportedEncodingException + */ + public static void add(String name, String value,HttpServletResponse response){ + try { +// Cookie cookie = new Cookie(name,URLEncoder.encode(value,"utf-8")); +// byte[] compressed =Snappy.compress(value.getBytes("UTF-8"));//压缩 + Cookie cookie = new Cookie(name, value); + cookie.setMaxAge(age); + cookie.setPath(path); +// cookie.setDomain("localhost"); + response.addCookie(cookie); + } catch (Exception e) { + e.printStackTrace(); + } + } + + + /** + * 删除cookie + * @param name + * @param response + */ + public static void delete(HttpServletResponse response,String name){ + Cookie cookie = new Cookie(name,""); + cookie.setMaxAge(0); + cookie.setPath(path); + response.addCookie(cookie); + } + + public static void deleteAll(HttpServletRequest request, HttpServletResponse response){ + Cookie[] cookies = request.getCookies(); + if(cookies != null){ + for(Cookie cookie : cookies){ + cookie.setMaxAge(0); + cookie.setPath(path); + response.addCookie(cookie); + } + } + } + + /** + * 改变cookie的值 + * @param cookie + * @param value + */ + public static void edit(Cookie cookie,String value){ + if(cookie != null) cookie.setValue(value); + } + + /** + * 更加cookie名称查找,返回其值 + * 找不到返回null + * @param request + * @param name + * @return + */ + public static String fine(HttpServletRequest request,String name){ + try { + Cookie[] cookies = request.getCookies(); + if(cookies != null){ + for(Cookie cookie : cookies){ + if(name.equals(cookie.getName())) + { + +// byte[] cookitValue = Base64.decodeBase64(cookie.getValue()); +// byte[] uncompressed = Snappy.uncompress(cookitValue); +// return URLDecoder.decode(cookie.getValue(), "utf-8"); +// return new String (uncompressed,"UTF-8"); + return cookie.getValue(); + } + } + } + return null; + } catch (Exception e) { + return null; + } + + } + + public static Cookie get(HttpServletRequest request,String name){ + + Cookie[] cookies = request.getCookies(); + if(cookies != null){ + for(Cookie cookie : cookies){ + if(name.equals(cookie.getName())) + return cookie; + } + } + return null; + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/utils/IDHelp.java b/src/main/java/jj/tech/paolu/utils/IDHelp.java new file mode 100644 index 0000000..8723c45 --- /dev/null +++ b/src/main/java/jj/tech/paolu/utils/IDHelp.java @@ -0,0 +1,113 @@ +package jj.tech.paolu.utils; + +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + +/** + * Twitter的SnowFlake算法 + * 1111111111111111111111111100000000000000000000000 42位时间 + * 1111111111111111111111111111111100000000000000000 5位数据中心ID + * 1111111111111111111111111111111111111000000000000 5位机器ID + * 0000000000000000000000000000000000000111111111111 12位sequenceBits + * 4个值或运算组成一个新的Long + * @DOU + */ +public class IDHelp { + + private static final Logger LOG = LoggerFactory.getLogger(IDHelp.class); + private static volatile IDHelp instance; + + private long workerId = 1; //只有五位,0<=workerId<32 + private long datacenterId = 1; //只有5位, 0<=datacenterId<32 + + + private long startTime = 1661756943044L; //42位bit,第1位固定正数0,开始后最大能使用69年 + private long workerIdBits = 5L; //5bit机器ID + private long datacenterIdBits = 5L; //5bit数据中心ID + private long sequenceBits = 12L; //12位bit,同毫秒内产生的不同id + + private long workerIdLeft = sequenceBits; //左移量 + private long datacenterIdLeft = sequenceBits + workerIdBits; + private long timestampLeft = sequenceBits + workerIdBits + datacenterIdBits; //22位,64-22=42位 + + + private long sequence = 0L; //每毫秒初始值 + private long lastTimestamp = -1L; //上一次当前毫秒 + private long sequenceMax = ~(-1L << sequenceBits); //sequenceMax 最大值 4095 + + + private IDHelp() { + } + + + public synchronized String nextId() { + long timestamp = timeGen(); + + if (timestamp < lastTimestamp) { +// LOG.error(String.format("clock is moving backwards. Rejecting requests until %d.", lastTimestamp)); + } + + if (lastTimestamp == timestamp) { + sequence = (sequence + 1) & sequenceMax; + if (sequence == 0) { + timestamp = tilNextMillis(lastTimestamp); + } + } else { + sequence = 0L; + } + + lastTimestamp = timestamp; + + Long nextid = ((timestamp - startTime) << timestampLeft) | (datacenterId << datacenterIdLeft) | (workerId << workerIdLeft) | sequence; + + return nextid.toString(); + } + + private long tilNextMillis(long lastTimestamp) { + long timestamp = timeGen(); + while (timestamp <= lastTimestamp) { + timestamp = timeGen(); + } + return timestamp; + } + + private long timeGen() { + return System.currentTimeMillis(); + } + + /** + * @param workerId 机器ID + * @param datacenterId 数据中心ID + */ + public static IDHelp getInstance(Integer workerId, Integer datacenterId) { + if (workerId < 0 || datacenterId < 0) { + throw new RuntimeException("workerId || datacenterId < 0"); + } + if (workerId > 31 || datacenterId > 31) { + throw new RuntimeException("workerId || datacenterId > 31"); + } + if (instance == null) { + synchronized (IDHelp.class) { + if (instance == null) { + IDHelp bean = new IDHelp(); + bean.workerId = workerId; + bean.datacenterId = datacenterId; + instance = bean; + } + } + } + return instance; + } + + public static IDHelp getInstance() { + return getInstance(0, 0); + } + + public static void main(String[] args) { + IDHelp id = IDHelp.getInstance(0, 0); + for (int i = 0; i < 100000; i++) { + System.out.println(id.nextId()); + } + } + +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/utils/IPUtil.java b/src/main/java/jj/tech/paolu/utils/IPUtil.java new file mode 100644 index 0000000..a31479d --- /dev/null +++ b/src/main/java/jj/tech/paolu/utils/IPUtil.java @@ -0,0 +1,65 @@ +package jj.tech.paolu.utils; + +import java.util.Arrays; +import java.util.List; +import java.util.Objects; + +import org.lionsoul.ip2region.xdb.Searcher; + +import jakarta.servlet.http.HttpServletRequest; + +public class IPUtil { + + public static final List IP_HEADERS = Arrays.asList( + "X-Forwarded-For", "Proxy-Client-IP", + "WL-Proxy-Client-IP", "HTTP_CLIENT_IP", + "HTTP_X_FORWARDED_FOR"); + + public static String dbPath = "src/main/resources/ip/ip2region.xdb"; + public static Searcher searcher; + + static { + try { + byte[] vIndex = Searcher.loadContentFromFile(dbPath); + searcher = Searcher.newWithBuffer(vIndex); + } catch (Exception e) { + e.printStackTrace(); + } + } + + public static String getClientIpAddr(HttpServletRequest request) { + return IP_HEADERS.stream() + .map(request::getHeader) + .filter(Objects::nonNull) + .filter(ip -> !ip.isEmpty() && !ip.equalsIgnoreCase("unknown")) + .findFirst() + .orElseGet(request::getRemoteAddr); + } + + public static String getCityInfo(String ip) { + try { + return searcher.search(ip); + } catch (Exception e) { + e.printStackTrace(); + } + + return ""; + } + + + + + + +// public static void main(String[] args) throws Exception { +// System.err.println(getCityInfo("119.45.61.64")); +// System.err.println(getCityInfo("173.249.203.214")); +// System.err.println(getCityInfo("223.104.64.40")); +// System.err.println(getCityInfo("220.205.252.233")); +// } + + + + + +} diff --git a/src/main/java/jj/tech/paolu/utils/JsonUtil.java b/src/main/java/jj/tech/paolu/utils/JsonUtil.java new file mode 100644 index 0000000..5c34908 --- /dev/null +++ b/src/main/java/jj/tech/paolu/utils/JsonUtil.java @@ -0,0 +1,99 @@ +package jj.tech.paolu.utils; + + +import java.io.IOException; +import java.time.LocalDateTime; +import java.time.format.DateTimeFormatter; + +import org.apache.commons.lang3.StringUtils; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + +import com.fasterxml.jackson.databind.DeserializationFeature; +import com.fasterxml.jackson.databind.ObjectMapper; +import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule; +import com.fasterxml.jackson.datatype.jsr310.deser.LocalDateTimeDeserializer; +import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateTimeSerializer; + +import jj.tech.paolu.config.security.user.WebAdminUtil; + +/** + * json转换工具类 + */ +public class JsonUtil { + private static Logger logger = LoggerFactory.getLogger(WebAdminUtil.class); + + private static ObjectMapper objectMapper = new ObjectMapper(); + static { + JavaTimeModule javaTimeModule = new JavaTimeModule(); + javaTimeModule.addDeserializer(LocalDateTime.class, new LocalDateTimeDeserializer(DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss"))); + javaTimeModule.addSerializer(LocalDateTime.class, new LocalDateTimeSerializer(DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss"))); + objectMapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); + objectMapper.configure(DeserializationFeature.FAIL_ON_UNRESOLVED_OBJECT_IDS, false); + objectMapper.registerModule(javaTimeModule); + + } + + //将单个对象转换成json格式的字符串(没有格式化后的json) + public static String writeValueAsString(T obj){ + if (obj == null){ + return null; + } + try { + return obj instanceof String ? (String) obj:objectMapper.writeValueAsString(obj); + } catch (IOException e) { + logger.warn("Parse object to String error", e); + return null; + } + } + + //将单个对象转换成json格式的字符串(格式化后的json) + public static String writeValueAsStringPretty(T obj){ + if (obj == null){ + return null; + } + try { + return obj instanceof String ? (String) obj:objectMapper.writerWithDefaultPrettyPrinter().writeValueAsString(obj); + } catch (IOException e) { + logger.warn("Parse object to String error", e); + return null; + } + } + //将json形式的字符串数据转换成单个对象 + public static T readValueToObj(String str, Class clazz){ + if (StringUtils.isEmpty(str) || clazz == null){ + return null; + } + try { + return clazz.equals(String.class) ? (T) str : objectMapper.readValue(str,clazz); + } catch (IOException e) { + logger.warn("Parse object to Object error", e); + return null; + } + } + + //将json形式的字符串数据转换成多个对象 +// public static T string2Obj(String str, TypeReference typeReference){ +// if (StringUtils.isEmpty(str) || typeReference == null){ +// return null; +// } +// try { +// return typeReference.getType().equals(String.class) ? (T) str : (T) objectMapper.readValue(str, typeReference); +// } catch (IOException e) { +// log.warn("Parse object to Object error", e); +// return null; +// } +// } + + //将json形式的字符串数据转换成多个对象 + public static T readValueToList(String str, Class collectionClass, Class... elementClasses){ + try { + return objectMapper.readValue(str, objectMapper.getTypeFactory().constructParametricType(collectionClass, elementClasses)); + } catch (IOException e) { + logger.warn("Parse object to Object error", e); + return null; + } + } + + +} diff --git a/src/main/java/jj/tech/paolu/utils/JwtUtil.java b/src/main/java/jj/tech/paolu/utils/JwtUtil.java new file mode 100644 index 0000000..229c757 --- /dev/null +++ b/src/main/java/jj/tech/paolu/utils/JwtUtil.java @@ -0,0 +1,173 @@ +//package jj.tech.paolu.utils; +// +//import java.time.Instant; +//import java.util.Base64; +//import java.util.Date; +//import java.util.HashMap; +//import java.util.Map; +// +//import javax.crypto.SecretKey; +//import javax.crypto.spec.SecretKeySpec; +// +//import com.fasterxml.jackson.databind.ObjectMapper; +// +//import io.jsonwebtoken.Claims; +//import io.jsonwebtoken.CompressionCodecs; +//import io.jsonwebtoken.Jws; +//import io.jsonwebtoken.JwtBuilder; +//import io.jsonwebtoken.JwtParser; +//import io.jsonwebtoken.Jwts; +//import io.jsonwebtoken.jackson.io.JacksonDeserializer; +//import io.jsonwebtoken.jackson.io.JacksonSerializer; +//import org.apache.commons.lang3.StringUtils; +//import org.apache.commons.lang3.time.DateUtils; +//import org.slf4j.Logger; +//import org.slf4j.LoggerFactory; +// +//public class JwtUtil { +//// public static final String HMACSHA256 = "HMACSHA256"; +//// public static final String SECRET = "fn4hIX5+d29jYW8seWFtYWRpZSx3YW5kYW5sZX5+ISF+fg=="; +//// public static final SecretKey DEFAULT_SECRET_KEY = new SecretKeySpec(Base64.getDecoder().decode(SECRET), HMACSHA256); +// +// private static final Logger logger = LoggerFactory.getLogger(JwtUtil.class); +// public static final SecretKey DEFAULT_SECRET_KEY = Jwts.SIG.HS512.key().build(); +// +// +// private static final String CLAIM_KEY_CREATED = "created"; +// +// private static long exp = 30 * 60 * 1000; //过期时间,毫秒 +// +// public static ObjectMapper objectMapper = new ObjectMapper(); +// +// /** +// * 根据负责生成JWT的token +// */ +// public static String generateToken(Map claims) { +// +// claims.put(CLAIM_KEY_CREATED, new Date()); +// JwtBuilder builder = Jwts.builder() +// .claims(claims) +// .compressWith(Jwts.ZIP.DEF) +// .json(new JacksonSerializer(objectMapper)) +// .signWith(DEFAULT_SECRET_KEY); +// if (exp > 0) { +// long nowMillis = System.currentTimeMillis(); +// builder.expiration(new Date(nowMillis + exp)); +// } +// return builder.compact(); +// } +// +// /** +// * 当原来的token没过期时是可以刷新的 +// * +// * @param oldToken 带tokenHead的token +// */ +// public static String refreshHeadToken(String oldToken) { +// if(StringUtils.isEmpty(oldToken)){ +// return null; +// } +// //token校验不通过 +// Claims claims = getClaimsFromToken(oldToken); +// if(claims==null){ +// return null; +// } +// //如果token已经过期,不支持刷新 +// Date expiredDate = claims.getExpiration(); +// if(expiredDate.before(new Date())){ +// return null; +// } +// //如果token在30分钟之内刚刷新过,返回原token +// if(tokenRefreshJustBefore(oldToken,30*60)){ +// return oldToken; +// }else{ +// claims.put(CLAIM_KEY_CREATED, new Date()); +// return generateToken(claims); +// } +// } +// +// /** +// * 判断token在指定时间内是否刚刚刷新过 +// * @param token 原token +// * @param time 指定时间(秒) +// */ +// public static boolean tokenRefreshJustBefore(String token, int time) { +// Claims claims = getClaimsFromToken(token); +// Date created = claims.get(CLAIM_KEY_CREATED, Date.class); +// Date refreshDate = new Date(); +// //刷新时间在创建时间的指定时间内 +// if(refreshDate.after(created)&&refreshDate.before(DateUtils.addSeconds(created,time))){ +// return true; +// } +// return false; +// } +// +// /** +// * 从token中获取JWT中的负载 +// */ +// public static Claims getClaimsFromToken(String token) { +// Claims claims = null; +// try { +// byte[] source = Jwts.parser() +// .decryptWith(DEFAULT_SECRET_KEY) +// .build() +// .parseEncryptedContent(token) +// .getPayload(); +// } catch (Exception e) { +// logger.info("JWT格式验证失败:{}", token); +// } +// return claims; +// } +// /** +// * 通过token获取用户id +// * @param +// * @return +// */ +//// public static String getUserId(String jwtStr){ +//// Claims claims = JwtUtil.getClaimsFromToken(jwtStr); +//// JsonUtil.writeValueAsString(claims.get("user")); +//// UserInfo user = JsonUtil.readValueToObj(JsonUtil.writeValueAsString(claims.get("user")), UserInfo.class); +//// return user. +//// } +// +// +// @SuppressWarnings({ "rawtypes", "unchecked" }) +// public JwtBuilder jwtBuilder() { +// return Jwts.builder() +// .compressWith(Jwts.ZIP.DEF) +// .json(new JacksonSerializer(objectMapper)) +// .signWith(DEFAULT_SECRET_KEY); +// +// } +// +// @SuppressWarnings({ "rawtypes", "unchecked" }) +// public JwtParser jwtParser() { +// return Jwts.parserBuilder() +// .deserializeJsonWith(new JacksonDeserializer(objectMapper)) +// .setSigningKey(DEFAULT_SECRET_KEY) +// .build(); +// } +// +// @SuppressWarnings("unchecked") +// public static void main(String[] args) { +// +// JwtUtil jwtUtil = new JwtUtil(); +// jwtUtil.objectMapper = new ObjectMapper(); +// //Create the TOKEN +// HashMap b = new HashMap(); +// b.put("x", "11"); +// b.put("y", "22"); +// Claims claim = Jwts.claims(); +// claim.put("a", "aa"); +// claim.put("b", b); +// claim.setExpiration(Date.from(Instant.now().plusSeconds(3600L))); +// +// var encoder = jwtUtil.jwtBuilder().setClaims(claim).compact(); +// System.out.println(encoder); +// +// //Decode the TOKEN +// var jwtParser = jwtUtil.jwtParser(); +// jwtParser.isSigned(encoder); +// Jws claims = (Jws) jwtParser.parse(encoder); +// System.out.println(claims.getBody()); +// } +//} diff --git a/src/main/java/jj/tech/paolu/utils/Page.java b/src/main/java/jj/tech/paolu/utils/Page.java new file mode 100644 index 0000000..ae6e80a --- /dev/null +++ b/src/main/java/jj/tech/paolu/utils/Page.java @@ -0,0 +1,68 @@ +package jj.tech.paolu.utils; + +import java.util.List; + +public class Page { + + private Integer pageSize=20; //页多少条 + private Integer pageNum=1; //第几页 + private Long total=0L; //一共多少条 + private Long totalPage; //一共几页 + + private List list; + + public Page() { + + } + + public Page(Integer pageNum, Integer pageSize) { + this.setPageNum(pageNum); + this.setPageSize(pageSize); + } + + + + + public int getPageSize() { + return pageSize; + } + public void setPageSize(Integer pageSize) { + if(pageSize != null && pageSize >= 1){ + this.pageSize = pageSize; + } + } + public int getPageNum() { + return pageNum; + } + public void setPageNum(Integer pageNum) { + if(pageNum != null && pageNum >= 1){ + this.pageNum = pageNum; + } + } + public Long getTotal() { + return total; + } + public void setTotal(Long total) { + this.total = total; + } + public Long getTotalPage() { + Integer t = (int) Math.ceil((double) total / pageSize); + totalPage = t.longValue(); + return totalPage; + } + public void setTotalPage(Long totalPage) { + this.totalPage = totalPage; + } + public List getList() { + return list; + } + public void setList(List list) { + this.list = list; + } + + + public int limitStart(){ + return (pageNum - 1) * pageSize; + } + +} diff --git a/src/main/java/jj/tech/paolu/utils/R.java b/src/main/java/jj/tech/paolu/utils/R.java new file mode 100644 index 0000000..87dbac0 --- /dev/null +++ b/src/main/java/jj/tech/paolu/utils/R.java @@ -0,0 +1,73 @@ +package jj.tech.paolu.utils; + + +public class R { + public Boolean isOk; + public String message; + public Object data; + public String code; + + public R() { + } + + public R(Boolean isOk, String message, Object data) { + this.isOk=isOk; + this.message=message; + this.data=data; + } + + public static R SUCCESS(){ + return new R(true,"", null); + } + + public static R SUCCESS(String message){ + return new R(true, message==null ? "" : message, null); + } + + public static R SUCCESS(String message, Object data){ + return new R(true, message==null ? "" : message, data); + } + public static R SUCCESS(Object data){ + return new R(true, "" , data); + } + + + + public static R FALSE(){ + return new R(false,"", null); + } + public static R FALSE(String message){ + return new R(false, message==null ? "" : message, null); + } + public static R FALSE(String message, Object data){ + return new R(false, message==null ? "" : message, data); + } + public static R FALSE(Object data){ + return new R(true, "" , data); + } + + + public Boolean getIsOk() { + return isOk; + } + + public void setIsOk(Boolean isOk) { + this.isOk = isOk; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public Object getData() { + return data; + } + + public void setData(Object data) { + this.data = data; + } +} diff --git a/src/main/java/jj/tech/paolu/utils/RSA.java b/src/main/java/jj/tech/paolu/utils/RSA.java new file mode 100644 index 0000000..efd2384 --- /dev/null +++ b/src/main/java/jj/tech/paolu/utils/RSA.java @@ -0,0 +1,359 @@ +package jj.tech.paolu.utils; + +import java.io.ByteArrayOutputStream; +import java.security.Key; +import java.security.KeyFactory; +import java.security.KeyPair; +import java.security.KeyPairGenerator; +import java.security.PrivateKey; +import java.security.PublicKey; +import java.security.Signature; +import java.security.interfaces.RSAPrivateKey; +import java.security.interfaces.RSAPublicKey; +import java.security.spec.PKCS8EncodedKeySpec; +import java.security.spec.X509EncodedKeySpec; +import java.util.HashMap; +import java.util.Map; + +import javax.crypto.Cipher; + +import org.apache.commons.codec.binary.Base64; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +/** + *

+ * RSA公钥/私钥/签名工具包 + *

+ *

+ * 罗纳德·李维斯特(Ron [R]ivest)、阿迪·萨莫尔(Adi [S]hamir)和伦纳德·阿德曼(Leonard [A]dleman) + *

+ *

+ * 字符串格式的密钥在未在特殊说明情况下都为BASE64编码格式
+ * 由于非对称加密速度极其缓慢,一般文件不使用它来加密而是使用对称加密,
+ * 非对称加密算法可以用来对对称加密的密钥加密,这样保证密钥的安全也就保证了数据的安全 + *

+ * + * @author XDou + * @date 2017-11-16 + */ +public class RSA { + private Logger log = LoggerFactory.getLogger(RSA.class); + + public static RSA getInstance() { + return new RSA(); + } + /** + * 加密算法RSA + */ + public static final String rsa = "RSA"; + + /** + * 签名算法 + */ + public static final String SHA1withRSA = "SHA1withRSA"; + public static final String SHA256withRSA = "SHA256withRSA"; + + + /** + * RSA最大加密明文大小 + */ + private static final int MAX_ENCRYPT_BLOCK = 117; + + /** + * RSA最大解密密文大小 + */ + private static final int MAX_DECRYPT_BLOCK = 128; + + /** + * 生成密钥对(公钥和私钥) + */ + public String[] genKeyPair() { + try { + KeyPairGenerator keyPairGen = KeyPairGenerator.getInstance(rsa); + keyPairGen.initialize(1024); + KeyPair keyPair = keyPairGen.generateKeyPair(); + RSAPublicKey rsa_public = (RSAPublicKey) keyPair.getPublic(); + RSAPrivateKey rsa_private = (RSAPrivateKey) keyPair.getPrivate(); + + String public_key = Base64.encodeBase64String(rsa_public.getEncoded()); + String private_key = Base64.encodeBase64String(rsa_private.getEncoded()); + return new String[] {public_key, private_key}; + } catch (Exception e) { + log.error("", e); + return null; + } + } + + /** + * 用私钥对信息生成数字签名 + * @param src 待签名的源数据 + * @param privateKey 私钥(BASE64编码) + * @param algorithm 生存签名的算法 + */ + public String sign(String src, String privateKey, String algorithm) { + try { + byte[] data = src.getBytes("utf-8"); + byte[] keyBytes = Base64.decodeBase64(privateKey); + PKCS8EncodedKeySpec pkcs8KeySpec = new PKCS8EncodedKeySpec(keyBytes); + KeyFactory keyFactory = KeyFactory.getInstance(rsa); + PrivateKey privateK = keyFactory.generatePrivate(pkcs8KeySpec); + Signature signature = Signature.getInstance(algorithm); + signature.initSign(privateK); + signature.update(data); + return Base64.encodeBase64String(signature.sign()); + } catch (Exception e) { + log.error("", e); + return null; + } + } + + + /** + * 用公钥,校验数字签名sign的值,是否正确 + * @param src 待签名源数据 + * @param publicKey 公钥(BASE64编码) + * @param sign 数字签名 + * @param algorithm 生成签名的算法 + */ + public boolean verify(String src, String publicKey, String sign, String algorithm) { + try { + byte[] data = src.getBytes("utf-8"); + byte[] keyBytes = Base64.decodeBase64(publicKey); + X509EncodedKeySpec keySpec = new X509EncodedKeySpec(keyBytes); + KeyFactory keyFactory = KeyFactory.getInstance(rsa); + PublicKey publicK = keyFactory.generatePublic(keySpec); + Signature signature = Signature.getInstance(algorithm); + signature.initVerify(publicK); + signature.update(data); + return signature.verify(Base64.decodeBase64(sign)); + } catch (Exception e) { + log.error("", e); + return false; + } + + } + + + + + /** + * 私钥加密,返回base64编码 + * @param data 源数据 + * @param privateKey 私钥(BASE64编码) + */ + public String encryptByPrivateKey(String src, String privateKey) { + try { + byte[] data = src.getBytes("utf-8"); + byte[] keyBytes = Base64.decodeBase64(privateKey); + PKCS8EncodedKeySpec pkcs8KeySpec = new PKCS8EncodedKeySpec(keyBytes); + KeyFactory keyFactory = KeyFactory.getInstance(rsa); + Key privateK = keyFactory.generatePrivate(pkcs8KeySpec); + Cipher cipher = Cipher.getInstance(keyFactory.getAlgorithm()); + cipher.init(Cipher.ENCRYPT_MODE, privateK); + int inputLen = data.length; + ByteArrayOutputStream out = new ByteArrayOutputStream(); + int offSet = 0; + byte[] cache; + int i = 0; + // 对数据分段加密 + while (inputLen - offSet > 0) { + if (inputLen - offSet > MAX_ENCRYPT_BLOCK) { + cache = cipher.doFinal(data, offSet, MAX_ENCRYPT_BLOCK); + } else { + cache = cipher.doFinal(data, offSet, inputLen - offSet); + } + out.write(cache, 0, cache.length); + i++; + offSet = i * MAX_ENCRYPT_BLOCK; + } + byte[] encryptedData = out.toByteArray(); + out.close(); + + return Base64.encodeBase64String(encryptedData); + + } catch (Exception e) { + log.error("", e); + return null; + } + } + + /** + * 私钥解密 + * @param encryptedSrc 已加密数据 + * @param privateKey 私钥(BASE64编码) + */ + public String decryptByPrivateKey(String encryptedSrc, String privateKey) { + try { + byte[] encryptedData = Base64.decodeBase64(encryptedSrc); + byte[] keyBytes = Base64.decodeBase64(privateKey); + PKCS8EncodedKeySpec pkcs8KeySpec = new PKCS8EncodedKeySpec(keyBytes); + KeyFactory keyFactory = KeyFactory.getInstance(rsa); + Key privateK = keyFactory.generatePrivate(pkcs8KeySpec); + Cipher cipher = Cipher.getInstance(keyFactory.getAlgorithm()); + cipher.init(Cipher.DECRYPT_MODE, privateK); + int inputLen = encryptedData.length; + ByteArrayOutputStream out = new ByteArrayOutputStream(); + int offSet = 0; + byte[] cache; + int i = 0; + // 对数据分段解密 + while (inputLen - offSet > 0) { + if (inputLen - offSet > MAX_DECRYPT_BLOCK) { + cache = cipher.doFinal(encryptedData, offSet, MAX_DECRYPT_BLOCK); + } else { + cache = cipher.doFinal(encryptedData, offSet, inputLen - offSet); + } + out.write(cache, 0, cache.length); + i++; + offSet = i * MAX_DECRYPT_BLOCK; + } + byte[] decryptedData = out.toByteArray(); + out.close(); + return new String(decryptedData, "utf-8"); + + } catch (Exception e) { + log.error("", e); + return null; + } + } + + + /** + * 公钥加密 + * @param data 源数据 + * @param publicKey 公钥(BASE64编码) + */ + public String encryptByPublicKey(String src, String publicKey) { + try { + byte[] data = src.getBytes("utf-8"); + byte[] keyBytes = Base64.decodeBase64(publicKey); + X509EncodedKeySpec x509KeySpec = new X509EncodedKeySpec(keyBytes); + KeyFactory keyFactory = KeyFactory.getInstance(rsa); + Key publicK = keyFactory.generatePublic(x509KeySpec); + // 对数据加密 + Cipher cipher = Cipher.getInstance(keyFactory.getAlgorithm()); + cipher.init(Cipher.ENCRYPT_MODE, publicK); + int inputLen = data.length; + ByteArrayOutputStream out = new ByteArrayOutputStream(); + int offSet = 0; + byte[] cache; + int i = 0; + // 对数据分段加密 + while (inputLen - offSet > 0) { + if (inputLen - offSet > MAX_ENCRYPT_BLOCK) { + cache = cipher.doFinal(data, offSet, MAX_ENCRYPT_BLOCK); + } else { + cache = cipher.doFinal(data, offSet, inputLen - offSet); + } + out.write(cache, 0, cache.length); + i++; + offSet = i * MAX_ENCRYPT_BLOCK; + } + byte[] encryptedData = out.toByteArray(); + out.close(); + return Base64.encodeBase64String(encryptedData); + } catch (Exception e) { + log.error("", e); + return null; + } + } + + /** + * 公钥解密 + * @param encryptedData 已加密数据 + * @param publicKey 公钥(BASE64编码) + */ + public String decryptByPublicKey(String encryptedSrc, String publicKey) { + try { + byte[] encryptedData = Base64.decodeBase64(encryptedSrc); + byte[] keyBytes = Base64.decodeBase64(publicKey); + X509EncodedKeySpec x509KeySpec = new X509EncodedKeySpec(keyBytes); + KeyFactory keyFactory = KeyFactory.getInstance(rsa); + Key publicK = keyFactory.generatePublic(x509KeySpec); + Cipher cipher = Cipher.getInstance(keyFactory.getAlgorithm()); + cipher.init(Cipher.DECRYPT_MODE, publicK); + int inputLen = encryptedData.length; + ByteArrayOutputStream out = new ByteArrayOutputStream(); + int offSet = 0; + byte[] cache; + int i = 0; + // 对数据分段解密 + while (inputLen - offSet > 0) { + if (inputLen - offSet > MAX_DECRYPT_BLOCK) { + cache = cipher.doFinal(encryptedData, offSet, MAX_DECRYPT_BLOCK); + } else { + cache = cipher.doFinal(encryptedData, offSet, inputLen - offSet); + } + out.write(cache, 0, cache.length); + i++; + offSet = i * MAX_DECRYPT_BLOCK; + } + byte[] decryptedData = out.toByteArray(); + out.close(); + return new String(decryptedData, "utf-8"); + + } catch (Exception e) { + log.error("", e); + return null; + } + } + + + + /** + * 默认使用SHA1withRSA签名 + */ + public String sign(String src, String privateKey) { + return this.sign(src, privateKey, SHA1withRSA); + } + + /** + * 默认使用SHA1withRS验证签名是否正确 + */ + public boolean verify(String src, String publicKey, String sign) { + return this.verify(src, publicKey, sign, SHA1withRSA); + } + +// public static void main(String[] args) { +// RSA rsa = RSA.getInstance(); +// String[] obj = rsa.genKeyPair(); +// +// String publicKey = obj[0]; +// String privateKey = obj[1]; +// +// System.err.println("privatekey:"); +// System.out.println("" + privateKey); +// +// System.err.println("publickey:"); +// System.out.println(publicKey); +// +// +// String src = "aaa"; +// //签名 +// String sign = rsa.sign(src, privateKey); +// Boolean b = rsa.verify(src, publicKey, sign); +// System.err.println("签名:"); +// System.out.println(sign); +// System.err.println(b); +// +// //签名sha256 +// String sign256 = rsa.sign(src, privateKey, SHA256withRSA); +// Boolean v = rsa.verify(src, publicKey, sign256, SHA256withRSA); +// System.err.println("签名sign256:"); +// System.out.println(sign256); +// System.err.println(v); +// +// +// +// //私钥加密 +// String enc = rsa.encryptByPrivateKey(src, privateKey); +// System.out.println("私钥加密:"+ enc); +// System.out.println("公钥解密:" + rsa.decryptByPublicKey(enc, publicKey)); +// +// //公钥加密 +// String enc2 = rsa.encryptByPublicKey(src, publicKey); +// System.out.println("公钥加密:"+ enc2); +// System.out.println("私钥解密:" + rsa.decryptByPrivateKey(enc2, privateKey)); +// } + +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/utils/mybatis/MybatisControllerPlugin.java b/src/main/java/jj/tech/paolu/utils/mybatis/MybatisControllerPlugin.java new file mode 100644 index 0000000..1c3a841 --- /dev/null +++ b/src/main/java/jj/tech/paolu/utils/mybatis/MybatisControllerPlugin.java @@ -0,0 +1,229 @@ +package jj.tech.paolu.utils.mybatis; + +import java.io.File; +import java.util.ArrayList; +import java.util.Collections; +import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.Properties; +import java.util.Set; +import java.util.TreeSet; + +import org.mybatis.generator.api.GeneratedJavaFile; +import org.mybatis.generator.api.IntrospectedColumn; +import org.mybatis.generator.api.IntrospectedTable; +import org.mybatis.generator.api.MyBatisGenerator; +import org.mybatis.generator.api.PluginAdapter; +import org.mybatis.generator.api.dom.java.Field; +import org.mybatis.generator.api.dom.java.FullyQualifiedJavaType; +import org.mybatis.generator.api.dom.java.JavaVisibility; +import org.mybatis.generator.api.dom.java.Method; +import org.mybatis.generator.api.dom.java.Parameter; +import org.mybatis.generator.api.dom.java.TopLevelClass; +import org.mybatis.generator.config.Configuration; +import org.mybatis.generator.config.PropertyRegistry; +import org.mybatis.generator.config.xml.ConfigurationParser; +import org.mybatis.generator.internal.DefaultShellCallback; + +import jj.tech.paolu.utils.IDHelp; +import jj.tech.paolu.utils.R; + +/** + * 生成Controller + * @author Dou + */ +public class MybatisControllerPlugin extends PluginAdapter { + + + private String targetProject = "src/main/java"; //"target/generated-sources/repository"; + + private String targetPackage = "jj.tech.paolu.repository.mybatis.control"; + + + @Override + public boolean validate(List warnings) { + return true; + } + + @Override + public void setProperties(Properties properties) { + super.setProperties(properties); + +// targetProject = properties.getProperty("targetProject"); +// targetPackage = properties.getProperty("targetPackage"); + } + + @Override + public List contextGenerateAdditionalJavaFiles(IntrospectedTable introspectedTable) { + + //TopLevelClass + if (Objects.nonNull(targetPackage) && Objects.nonNull(targetProject)) { + + String daoMapperName = introspectedTable.getMyBatis3SqlMapNamespace(); + + String recordType = introspectedTable.getBaseRecordType(); + String[] entityPackage = recordType.split("\\."); + String entityName = entityPackage[entityPackage.length - 1]; + + String first = String.valueOf(entityName.charAt(0)); + String lowerEntityName = entityName.replaceFirst(first, first.toLowerCase()); + String lowerEntityNameMapper = lowerEntityName + "Mapper"; + + TopLevelClass controllerClass = new TopLevelClass(targetPackage + "." + entityName + "Controller"); + + controllerClass.addImportedType("java.lang.Object"); + controllerClass.addImportedType("org.springframework.web.bind.annotation.*"); + //controllerClass.addImportedType("org.springframework.stereotype.Controller"); + controllerClass.addImportedType(new FullyQualifiedJavaType("org.springframework.beans.factory.annotation.Autowired")); + controllerClass.addImportedType(daoMapperName); + controllerClass.addImportedType(introspectedTable.getBaseRecordType()); + controllerClass.addImportedType("jj.tech.paolu.utils.R"); + controllerClass.addImportedType("jj.tech.paolu.utils.IDHelp"); + controllerClass.addAnnotation("@RestController"); + controllerClass.setVisibility(JavaVisibility.PUBLIC); + //controllerClass.addAnnotation("@RestController"); + + + controllerClass.addAnnotation("@RequestMapping(\"mybatis/" + lowerEntityName + "\")"); + + //daoMapper inject + FullyQualifiedJavaType daoMapper = new FullyQualifiedJavaType(daoMapperName); + Field serviceField = new Field(lowerEntityNameMapper , daoMapper); + serviceField.addJavaDocLine(""); + serviceField.addAnnotation("@Autowired"); + serviceField.setVisibility(JavaVisibility.PUBLIC); + controllerClass.addField(serviceField); + + + // importe primaryKey type + List idColumns = introspectedTable.getPrimaryKeyColumns(); + if(idColumns==null || idColumns.isEmpty()) { + return Collections.emptyList(); + } + Set idColumnsypes = new TreeSet(); + idColumns.forEach(idColumn->{ + idColumnsypes.add(idColumn.getFullyQualifiedJavaType()); + }); + controllerClass.addImportedTypes(idColumnsypes); + + + //Add Method + FullyQualifiedJavaType respondJavaType = new FullyQualifiedJavaType("Object"); + controllerClass.addImportedType(respondJavaType); + //controllerClass.addImportedType(new FullyQualifiedJavaType(recordType)); + + + + + //findById + Method findByIdMethod = new Method("findById"); + findByIdMethod.setVisibility(JavaVisibility.PUBLIC); + findByIdMethod.setReturnType(respondJavaType); + + StringBuilder parmMapping = new StringBuilder(); + StringBuilder parm = new StringBuilder(); + idColumns.forEach(idColumn->{ + FullyQualifiedJavaType primaryKeyType = idColumn.getFullyQualifiedJavaType(); + String primaryKeyName = idColumn.getJavaProperty(); + Parameter idParameter = new Parameter(primaryKeyType, primaryKeyName); + idParameter.addAnnotation("@PathVariable(\"" + primaryKeyName + "\")"); + findByIdMethod.addParameter(idParameter); + + parmMapping.append("/{"+primaryKeyName+"}"); + parm.append(primaryKeyName+","); + }); + parm.delete(parm.lastIndexOf(","), parm.length()); + + findByIdMethod.addAnnotation("@PostMapping(\"findById" + parmMapping + "\")"); + findByIdMethod.addBodyLine("return R.SUCCESS(" + lowerEntityNameMapper+".selectByPrimaryKey("+parm+").orElse(null));"); + controllerClass.addMethod(findByIdMethod); + + + //delete + Method deleteMethod = new Method("delete"); + deleteMethod.setVisibility(JavaVisibility.PUBLIC); + deleteMethod.setReturnType(respondJavaType); + + StringBuilder parmdeleteMapping = new StringBuilder(); + StringBuilder parmdelete = new StringBuilder(); + idColumns.forEach(idColumn->{ + FullyQualifiedJavaType primaryKeyType = idColumn.getFullyQualifiedJavaType(); + String primaryKeyName = idColumn.getJavaProperty(); + Parameter idParameter = new Parameter(primaryKeyType, primaryKeyName); + idParameter.addAnnotation("@PathVariable(\"" + primaryKeyName + "\")"); + deleteMethod.addParameter(idParameter); + + parmdeleteMapping.append("/{"+primaryKeyName+"}"); + parmdelete.append(primaryKeyName+","); + }); + parmdelete.delete(parmdelete.lastIndexOf(","), parmdelete.length()); + + deleteMethod.addAnnotation("@PostMapping(\"delete" + parmdeleteMapping + "\")"); + deleteMethod.addBodyLine("return R.SUCCESS(" + lowerEntityNameMapper+".deleteByPrimaryKey("+ parmdelete +"));"); + controllerClass.addMethod(deleteMethod); + + + + //save + Method saveMethod = new Method("save"); + saveMethod.setVisibility(JavaVisibility.PUBLIC); + saveMethod.setReturnType(respondJavaType); + saveMethod.addAnnotation("@PostMapping(\"save\")"); + Parameter saveParameter = new Parameter(new FullyQualifiedJavaType(recordType), "record"); + saveParameter.addAnnotation("@RequestBody"); + saveMethod.addParameter(saveParameter); + saveMethod.addBodyLine("record.setId(IDHelp.getInstance().nextId());"); + saveMethod.addBodyLine("return R.SUCCESS(" + lowerEntityNameMapper+".insertSelective(record));"); + controllerClass.addMethod(saveMethod); + + //update + Method updateMethod = new Method("update"); + updateMethod.setVisibility(JavaVisibility.PUBLIC); + updateMethod.setReturnType(respondJavaType); + updateMethod.addAnnotation("@PostMapping(\"update\")"); + Parameter updateParameter = new Parameter(new FullyQualifiedJavaType(recordType), "record"); + updateParameter.addAnnotation("@RequestBody"); + updateMethod.addParameter(saveParameter); + updateMethod.addBodyLine("return R.SUCCESS(" + lowerEntityNameMapper+".updateByPrimaryKeySelective(record));"); + controllerClass.addMethod(updateMethod); + + + + //page +// Method pageMethod = new Method("page"); +// pageMethod.addAnnotation("@PostMapping(\"page\")"); +// pageMethod.setReturnType(respondJavaType); Parameter pageNum = new +// Parameter(new FullyQualifiedJavaType("int"), "pageNum"); +// pageNum.addAnnotation("@RequestParam(defaultValue = \"1\")"); +// pageMethod.addParameter(pageNum); Parameter pageSize = new Parameter(new +// FullyQualifiedJavaType("int"), "pageSize"); +// pageSize.addAnnotation("@RequestParam(defaultValue = \"15\")"); +// pageMethod.addParameter(pageSize); pageMethod.addBodyLine("return null;"); +// controllerClass.addMethod(pageMethod); + + + GeneratedJavaFile javaFile = new GeneratedJavaFile(controllerClass, targetProject, + context.getProperty(PropertyRegistry.CONTEXT_JAVA_FILE_ENCODING), + context.getJavaFormatter()); + + List files = new ArrayList<>(); + files.add(javaFile); + return files; + } + return Collections.emptyList(); + } + +// public static void main(String[] args) throws Exception { +// +// List warnings = new ArrayList(); +// boolean overwrite = true; +// File configFile = new File("src/main/resources/generate/mybatis/generatorConfig.xml"); +// ConfigurationParser cp = new ConfigurationParser(warnings); +// Configuration config = cp.parseConfiguration(configFile); +// DefaultShellCallback callback = new DefaultShellCallback(overwrite); +// MyBatisGenerator myBatisGenerator = new MyBatisGenerator(config, callback, warnings); +// myBatisGenerator.generate(null); +// } + +} diff --git a/src/main/java/jj/tech/paolu/utils/mybatis/PluginUtils.java b/src/main/java/jj/tech/paolu/utils/mybatis/PluginUtils.java new file mode 100644 index 0000000..b0633e3 --- /dev/null +++ b/src/main/java/jj/tech/paolu/utils/mybatis/PluginUtils.java @@ -0,0 +1,142 @@ +package jj.tech.paolu.utils.mybatis; + +import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.Set; + +import org.mybatis.generator.api.IntrospectedColumn; +import org.mybatis.generator.api.IntrospectedTable; +import org.mybatis.generator.api.dom.java.Field; +import org.mybatis.generator.api.dom.java.FullyQualifiedJavaType; +import org.mybatis.generator.api.dom.java.InnerClass; +import org.mybatis.generator.api.dom.java.Interface; +import org.mybatis.generator.api.dom.java.JavaVisibility; +import org.mybatis.generator.api.dom.java.Method; +import org.mybatis.generator.api.dom.java.TopLevelClass; +import org.mybatis.generator.config.GeneratedKey; + +public class PluginUtils { + + private PluginUtils() { + + } + + public static Optional primaryKeyType(IntrospectedTable introspectedTable) { + Optional generatedKey = introspectedTable.getGeneratedKey(); + if (generatedKey.isPresent()) { + String primaryKey = generatedKey.get().getColumn(); + Optional optional = introspectedTable.getColumn(primaryKey); + if (optional.isPresent()) { + IntrospectedColumn keyColumn = optional.get(); + return Optional.ofNullable(keyColumn.getFullyQualifiedJavaType()); + } + } + return Optional.empty(); + } + + public static Optional primaryKeyName(IntrospectedTable introspectedTable) { + Optional generatedKey = introspectedTable.getGeneratedKey(); + if (generatedKey.isPresent()) { + String primaryKey = generatedKey.get().getColumn(); + Optional optional = introspectedTable.getColumn(primaryKey); + if (optional.isPresent()) { + IntrospectedColumn keyColumn = optional.get(); + return Optional.ofNullable(keyColumn.getJavaProperty()); + } + } + return Optional.empty(); + } + + public static void restfulMethod(Method method, boolean rest) { + if (!rest) { + method.addAnnotation("@ResponseBody"); + } + method.setVisibility(JavaVisibility.PUBLIC); + } + + public static void removeGeneratedAnnotation(Object object) { + if (Objects.nonNull(object)) { + if (object instanceof TopLevelClass) { + TopLevelClass topLevelClass = (TopLevelClass) object; + Set importedTypes = topLevelClass.getImportedTypes(); + if (Objects.nonNull(importedTypes) && !importedTypes.isEmpty()) { + importedTypes.removeIf(importedType -> Objects.equals(importedType.getFullyQualifiedName(), "javax.annotation.Generated")); + } + List fields = topLevelClass.getFields(); + if (Objects.nonNull(fields) && !fields.isEmpty()) { + fields.get(0).addJavaDocLine(""); + actionRemoveGeneratedAnnotation(fields); + } + List methods = topLevelClass.getMethods(); + if (Objects.nonNull(methods) && !methods.isEmpty()) { + actionRemoveGeneratedAnnotation(topLevelClass.getMethods()); + } + List innerClasses = topLevelClass.getInnerClasses(); + if (Objects.nonNull(innerClasses) && !innerClasses.isEmpty()) { + actionRemoveGeneratedAnnotation(innerClasses); + } + } else if (object instanceof Interface) { + Interface anInterface = (Interface) object; + Set importedTypes = anInterface.getImportedTypes(); + if (Objects.nonNull(importedTypes) && !importedTypes.isEmpty()) { + importedTypes.removeIf(importedType -> Objects.equals(importedType.getFullyQualifiedName(), "javax.annotation.Generated")); + } + List fields = anInterface.getFields(); + if (Objects.nonNull(fields) && !fields.isEmpty()) { + fields.get(0).addJavaDocLine(""); + actionRemoveGeneratedAnnotation(fields); + } + List methods = anInterface.getMethods(); + if (Objects.nonNull(methods) && !methods.isEmpty()) { + actionRemoveGeneratedAnnotation(anInterface.getMethods()); + } + List innerClasses = anInterface.getInnerClasses(); + if (Objects.nonNull(innerClasses) && !innerClasses.isEmpty()) { + actionRemoveGeneratedAnnotation(innerClasses); + } + } + } + } + + private static void actionRemoveGeneratedAnnotation(List objects) { + String delete = "@Generated(\"org.mybatis.generator.api.MyBatisGenerator\")"; + if (Objects.nonNull(objects) && !objects.isEmpty()) { + for (Object object : objects) { + if (object instanceof Method) { + Method method = (Method) object; + List annotations = method.getAnnotations(); + if (Objects.nonNull(annotations) && !annotations.isEmpty()) { + for (int i = 0; i < annotations.size(); i++) { + if (Objects.equals(annotations.get(i), delete)) { + annotations.remove(i); + break; + } + } + } + } else if (object instanceof Field) { + Field field = (Field) object; + List annotations = field.getAnnotations(); + if (Objects.nonNull(annotations) && !annotations.isEmpty()) { + for (int i = 0; i < annotations.size(); i++) { + if (Objects.equals(annotations.get(i), delete)) { + annotations.remove(i); + break; + } + } + } + } else if (object instanceof InnerClass) { + InnerClass innerClass = (InnerClass) object; + List annotations = innerClass.getAnnotations(); + if (Objects.nonNull(annotations) && !annotations.isEmpty()) { + for (int i = 0; i < annotations.size(); i++) { + if (Objects.equals(annotations.get(i), delete)) { + annotations.remove(i); + break; + } + } + } + } + } + } + }} diff --git a/src/main/java/jj/tech/paolu/utils/mybatis/Sum.java b/src/main/java/jj/tech/paolu/utils/mybatis/Sum.java new file mode 100644 index 0000000..086a634 --- /dev/null +++ b/src/main/java/jj/tech/paolu/utils/mybatis/Sum.java @@ -0,0 +1,41 @@ +package jj.tech.paolu.utils.mybatis; +import org.mybatis.dynamic.sql.BindableColumn; +import org.mybatis.dynamic.sql.ColumnAndConditionCriterion; +import org.mybatis.dynamic.sql.SqlCriterion; +import org.mybatis.dynamic.sql.VisitableCondition; +import org.mybatis.dynamic.sql.render.TableAliasCalculator; +import org.mybatis.dynamic.sql.select.function.AbstractUniTypeFunction; +import org.mybatis.dynamic.sql.where.render.CriterionRenderer; + +public class Sum extends AbstractUniTypeFunction> { + + private final VisitableCondition condition; + + private Sum(BindableColumn column, VisitableCondition condition) { + super(column); + this.condition = condition; + } + + @Override + public String renderWithTableAlias(TableAliasCalculator tableAliasCalculator) { +// ColumnAndConditionCriterion.withColumn(column).withCondition(condition).build(). + ColumnAndConditionCriterion criteion = ColumnAndConditionCriterion + .withColumn(column) + .withCondition(condition).build(); + + + return "sum(" //$NON-NLS-1$ + + column.renderWithTableAlias(tableAliasCalculator) +// + s + + ")"; //$NON-NLS-1$ + } + + @Override + protected Sum copy() { + return new Sum<>(column, condition); + } + + public static Sum of(BindableColumn column, VisitableCondition condition) { + return new Sum<>(column, condition); + } +} \ No newline at end of file diff --git a/src/main/java/jj/tech/paolu/utils/wb/WBHttp.java b/src/main/java/jj/tech/paolu/utils/wb/WBHttp.java new file mode 100644 index 0000000..b55c035 --- /dev/null +++ b/src/main/java/jj/tech/paolu/utils/wb/WBHttp.java @@ -0,0 +1,124 @@ +package jj.tech.paolu.utils.wb; + +import java.io.InputStream; +import java.util.ArrayList; +import java.util.List; + +import org.apache.commons.codec.digest.DigestUtils; +import org.apache.commons.lang3.StringUtils; +import org.apache.http.client.fluent.Request; + +import com.fasterxml.jackson.databind.JsonNode; +import com.fasterxml.jackson.databind.ObjectMapper; + +public class WBHttp { + + //从第一条开始迭代获取分类目录 + public static String sortSub_url = "http://api.weepal.cn/EAMS-XAPI/api/v1/sztd/getSortSub"; + public static String getSortTree_url = "http://api.weepal.cn/EAMS-XAPI/api/v1/sztd/getSortTree"; + + + // + + public static String getAnnex_url = "http://api.weepal.cn/EAMS-XAPI/api/v1/sztd/getAnnex"; + public static String ss; + public static String sss; + public static String appKey= "SZTD00898"; + public static String appSecret= "16E58F6750C246818FBD84EAEF3FC998"; + + public static ObjectMapper objectMapper = new ObjectMapper(); + + public static List getSortSub(String kid){ + try { + List retrunList = new ArrayList(); + + String timestamp = String.valueOf(System.currentTimeMillis()); + String url = sortSub_url + + "?appKey="+ appKey + + "×tamp=" + timestamp + + "&sign=" + DigestUtils.md5Hex(appKey+timestamp+appSecret) + ; + if(StringUtils.isNotBlank(kid)) { + url = url + "&parentID=" + kid; + } + System.out.println(url); + InputStream stean = + Request.Get(url) + .connectTimeout(15000) + .socketTimeout(15000) + .execute() + .returnContent() + .asStream(); + JsonNode root = objectMapper.readTree(stean); + JsonNode data = root.get("data"); + //ArrayNode datasetArray = (ArrayNode)root.get("data"); + for (final JsonNode item : data) { + System.out.println(item); + String kidStr = item.asText("kid"); + retrunList.add(kidStr); + } + return retrunList; + } catch (Exception e) { + e.printStackTrace(); + return null; + } + + } + + public static Integer getSortTree(Integer pageNumber){ + if(pageNumber<1) { + return 0; + } + try { + List dataList = new ArrayList(); + + String timestamp = String.valueOf(System.currentTimeMillis()); + String url = getSortTree_url + + "?appKey="+ appKey + + "×tamp=" + timestamp + + "&sign=" + DigestUtils.md5Hex(appKey+timestamp+appSecret) + + "&pageNumber=" + pageNumber + ; + + System.out.println(url); + InputStream stean = + Request.Get(url) + .connectTimeout(15000) + .socketTimeout(15000) + .execute() + .returnContent() + .asStream(); + + JsonNode root = objectMapper.readTree(stean); + JsonNode data = root.get("data"); + //ArrayNode datasetArray = (ArrayNode)root.get("data"); + for (final JsonNode item : data) { + System.out.println(item); + +// String kidStr = item.asText("kid"); + } + + return pageNumber+1; + + + } catch (Exception e) { + e.printStackTrace(); + return 0; + } + + } + + + public String getAnnexUrl(){ + return null; + } + + public String getCatalogUrl(){ + return null; + } + + public static void main(String[] args) { + getSortSub("D0B3E995-9B56-4933-8C51-ACDC1D8F8CB2"); + } + +} diff --git a/src/main/resources/application-dev.yml b/src/main/resources/application-dev.yml new file mode 100644 index 0000000..faa7066 --- /dev/null +++ b/src/main/resources/application-dev.yml @@ -0,0 +1,145 @@ +##约定大于配置,请勿重复造轮 +server: #服务端口 + port: 8083 +##spring---------- +spring: + application: + name: ailt + datasource: + type: com.zaxxer.hikari.HikariDataSource + #url: jdbc:h2:./test;AUTO_SERVER=TRUE #连接池Database 嵌入模式:jdbc:h2:~/test-jooq FILE_LOCK=SOCKET MODE=MySQL;;AUTO_SERVER=TRUE +# url: jdbc:h2:./test;MODE=MySQL;AUTO_SERVER=TRUE +# username: sa +# password: +# hikari: +# driver-class-name: org.h2.Driver +# url: jdbc:mariadb://192.168.0.123:3306/zwyy +# username: root +# password: test000000 +# hikari: +# driver-class-name: org.mariadb.jdbc.Driver +# driver-class-name: org.h2.Driver + url: jdbc:postgresql://192.168.0.123:5434/ailt_0611 + username: postgres + password: mysecretpassword + hikari: + driver-class-name: org.postgresql.Driver + + jackson: + date-format: yyyy-MM-dd HH:mm:ss + time-zone: Asia/Shanghai + mail: + #smtp服务主机 qq邮箱则为smtp.qq.com + host: smtp.qcloudmail.com + port: 465 + #服务协议 + protocol: smtp + # 编码集 + default-encoding: UTF-8 + #发送邮件的账户 + username: ic@is.plus + #授权码 + password: 365daydayUP + test-connection: true + properties: + mail: + smtp: + auth: true + ssl: + enable: true + starttls: + enable: true + required: true +# serialization: +# fail-on-empty-beans: false +# deserialization: +# FAIL_ON_UNKNOWN_PROPERTIES: false +# h2: +# console: +# enabled: true #开启h2数据库的浏览器管理界面 +# settings: +# web-allow-others: true +# trace: true #是否可以远程web +# #path: /h2-console #h2浏览器管理访问路径,默认:/h2-console +# sql: +# init: +# mode: never ##加载脚本datasource.initialize已弃用,spring.sql.init.mode=never/always +# continue-on-error: true #初始化错误,继续执行 +# encoding: utf-8 #加载sql文件的编码连接池ue #初始化错误,继续执行 +# data-locations: classpath:/sql/data-h2.sql +# schema-locations: classpath:/sql/schema-h2.sql #spring boot 默认启动使用springJDBC初始化数据脚本, 加载类路径下的 schema-${platform}.sql \ data-${platform}.sql数据 +# platform: h2 + #elasticsearch: + #jest: + #uris: http://loalhost:9200 + #read-timeout: 1000 +# 多数据源 +# app: +# datasource: +# type: com.zaxxer.hikari.HikariDataSource +# jdbcUrl: jdbc:h2:~/test-jooq;AUTO_SERVER=TRUE +# username: sa +# password: +# ##连接池 +# hikari: +# driver-class-name: org.h2.Driver + +mybatis: + configuration: + call-setters-on-nulls: true + map-underscore-to-camel-case: false + +logging: + level: + root: info + org.jooq: info + org.springframework.amqp: info + org.mybatis: info + org.mybatis.dynamic.sql: debug + jj.tech.paolu: info + org.fisco.bcos.sdk: error + +#bcn +### Required, node's {ip:port} to connect. +system: + peers: 192.168.0.180:20200 + ### Required + groupId: 1 + ### Optional. Default will search conf,config,src/main/conf/src/main/config + certPath: conf,src/main/resources/conf + ### Optional. If don't specify a random private key will be used + hexPrivateKey: '179b59aec0b9ea33ce6bcdc82a5fd343199bcd0be129ffe1d047a015c3dd0166' + blockChainTablePrefix: 'SZTD_0611_1' + blockChainProviderName: '深中通道-开发环境0611_1' + syn2BlockConcurrentThreadCount: 100 #向区块链同步目录数据时的并发线程数,区块链服务器性能越好,此值可越高 + ### Optional. Please fill this address if you want to use related service + contract: + applicationAddress: '0x0685f9ec997695f3168e45363a2070fe7579426b' + ### Optional. Please fill this address if you want to use related service + fileAddress: '0x108d01a27e5426e28af3e0c237f8605ce92ee43e' + ### Optional. Please fill this address if you want to use related service + archivesFileAddress: '0x3a78f6ef2c8729cfd36a50fd9a233498b5fdfa3b' + ### Optional. Please fill this address if you want to use related service + catalogAddress: '0xadc69ae2af98cb20dadadbe106fccb4412f1c750' + ### Optional. Please fill this address if you want to use related service + providerAddress: '0x8b97b1a800789a0c060edc98a25a6ae8e88fcf53' + readingRecordAddress: '0x9174823be980132fd6e14f5d74294c5830561f1d' + decryptionRecordAddress: '0x790143aa4a2f1162b81f343c825b3d42a101efc7' + downloadRecordAddress: '0x70296f76c871599cfb9940a7550f53aba555be00' + certRecordAddress: '0x04106399e9d317d4cb0dc606a7201e203e1cffe7' + createTableAddress: '0x1e5cbd200cb82fec444406772153de22a3502ba3' + utilsAddress: '0xd0a601e191178f44e7f226d0ab4124ad440dfff2' + orgCertAddress: '0x1a6d91b6a163040ca76fbf860fa968dbff35a264' + personCertAddress: '0x4ab8b3e641774802217545295482272ecaa1ef54' + +weibai: + appKey: SZTD00898 + appSecret: 16E58F6750C246818FBD84EAEF3FC998 + #getSortTreeUrl: http://api.weepal.cn/EAMS-XAPI/api/v1/sztd/getSortTree + #getCatalogUrl: http://api.weepal.cn/EAMS-XAPI/api/v1/sztd/getCatalog + #getAnnexUrl: http://api.weepal.cn/EAMS-XAPI/api/v1/sztd/getAnnex + #getSortSubUrl: http://api.weepal.cn/EAMS-XAPI/api/v1/sztd/getSortSub + getSortTreeUrl: http://127.0.0.1:8083/op/wb/getSortTree + getCatalogUrl: http://127.0.0.1:8083/op/wb/getCatalog + getAnnexUrl: http://127.0.0.1:8083/op/wb/getAnnex + getSortSubUrl: http://127.0.0.1:8083/op/wb/getSortSub diff --git a/src/main/resources/application-prod.yml b/src/main/resources/application-prod.yml new file mode 100644 index 0000000..4c1ff4c --- /dev/null +++ b/src/main/resources/application-prod.yml @@ -0,0 +1,129 @@ +##约定大于配置,请勿重复造轮 +server: #服务端口 + port: 8083 +##spring---------- +spring: + application: + name: zwyy + datasource: + type: com.zaxxer.hikari.HikariDataSource + #url: jdbc:h2:./test;AUTO_SERVER=TRUE #连接池Database 嵌入模式:jdbc:h2:~/test-jooq FILE_LOCK=SOCKET MODE=MySQL;;AUTO_SERVER=TRUE +# url: jdbc:h2:./test;MODE=MySQL;AUTO_SERVER=TRUE +# username: sa +# password: +# hikari: +# driver-class-name: org.h2.Driver + url: jdbc:postgresql://192.168.0.123:5434/ailt_test + username: postgres + password: mysecretpassword + hikari: + driver-class-name: org.postgresql.Driver + jackson: + date-format: yyyy-MM-dd HH:mm:ss + time-zone: Asia/Shanghai +# serialization: +# fail-on-empty-beans: false +# deserialization: +# FAIL_ON_UNKNOWN_PROPERTIES: false + mail: + #smtp服务主机 qq邮箱则为smtp.qq.com + host: smtp.qcloudmail.com + port: 465 + #服务协议 + protocol: smtp + # 编码集 + default-encoding: UTF-8 + #发送邮件的账户 + username: ic@is.plus + #授权码 + password: 365daydayUP + test-connection: true + properties: + mail: + smtp: + auth: true + ssl: + enable: true + starttls: + enable: true + required: true +# h2: +# console: +# enabled: true #开启h2数据库的浏览器管理界面 +# settings: +# web-allow-others: true +# trace: true #是否可以远程web + #path: /h2-console #h2浏览器管理访问路径,默认:/h2-console +# sql: +# init: +# mode: never ##加载脚本datasource.initialize已弃用,spring.sql.init.mode=never/always +# continue-on-error: true #初始化错误,继续执行 +# encoding: utf-8 #加载sql文件的编码连接池ue #初始化错误,继续执行 +# data-locations: classpath:/sql/data-h2.sql +# schema-locations: classpath:/sql/schema-h2.sql #spring boot 默认启动使用springJDBC初始化数据脚本, 加载类路径下的 schema-${platform}.sql \ data-${platform}.sql数据 +# platform: h2 + #elasticsearch: + #jest: + #uris: http://loalhost:9200 + #read-timeout: 1000 +# 多数据源 +# app: +# datasource: +# type: com.zaxxer.hikari.HikariDataSource +# jdbcUrl: jdbc:h2:~/test-jooq;AUTO_SERVER=TRUE +# username: sa +# password: +# ##连接池 +# hikari: +# driver-class-name: org.h2.Driver + +mybatis: + configuration: + call-setters-on-nulls: true + map-underscore-to-camel-case: false + +logging: + level: + root: info +# org.jooq: debug +# org.springframework.amqp: debug +# org.mybatis: debug +# org.mybatis.dynamic.sql: debug +# jj.tech.dcang: debug + +#bcn +### Required, node's {ip:port} to connect. +system: + peers: 192.168.0.182:20200 + ### Required + groupId: 1 + ### Optional. Default will search conf,config,src/main/conf/src/main/config + certPath: conf,src/main/resources/conf + ### Optional. If don't specify a random private key will be used + hexPrivateKey: '1691470a2db307363b2d25a2de8f3348e739bee932d7efc609dd1b7b78f480c7' + ### 用户公钥地址信息 + publicKeyAddress: '0x43d2f05ca21eb30b4012899acdf13d38b787fc1c' + ### Optional. Please fill this address if you want to use related service + contract: + applicationAddress: '0x74c0c720a965a15a19384a1f6be249994329510b' + ### Optional. Please fill this address if you want to use related service + fileAddress: '0xbb94784e4e8b06653a8072c5f9c0a0b0a3be1192' + ### Optional. Please fill this address if you want to use related service + archivesFileAddress: '0x56974c5e1afdecdd8a035a256b7b3b4940511858' + ### Optional. Please fill this address if you want to use related service + catalogAddress: '0x1587fc5d869ea68301d5be2caa95151e13ea7958' + ### Optional. Please fill this address if you want to use related service + providerAddress: '0x6e7fdb736e80cee520255023dd5e7ebc5d33c6b4' + readingRecordAddress: '0xc4efa9e1bacb544244160179f30cedd82e0ee459' + decryptionRecordAddress: '0x17fdec8759ce0d28777bcd11f246cd1f6a90aa2b' + downloadRecordAddress: '0x9d7bd35d96a9cdadfaf9f8472958e06d563d190c' + certRecordAddress: '0xdf6cd7f667e0f9df5358015ea2f55c04d286c1d1' + + +weibai: + appKey: SZTD00898 + appSecret: 16E58F6750C246818FBD84EAEF3FC998 + getSortTreeUrl: http://api.weepal.cn/EAMS-XAPI/api/v1/sztd/getSortTree + getCatalogUrl: http://api.weepal.cn/EAMS-XAPI/api/v1/sztd/getCatalog + getAnnexUrl: http://api.weepal.cn/EAMS-XAPI/api/v1/sztd/getAnnex + getSortSubUrl: http://api.weepal.cn/EAMS-XAPI/api/v1/sztd/getSortSub diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml new file mode 100644 index 0000000..8def01a --- /dev/null +++ b/src/main/resources/application.yml @@ -0,0 +1,10 @@ +##约定大于配置,请勿重复造轮 +server: #服务端口 + port: 8083 +##spring---------- +spring: + application: + name: ailt + profiles: + active: dev + diff --git a/src/main/resources/bootstrap.yml b/src/main/resources/bootstrap.yml new file mode 100644 index 0000000..1a59344 --- /dev/null +++ b/src/main/resources/bootstrap.yml @@ -0,0 +1,22 @@ + + cloud: + consul: + scheme: https + host: consul.164500.xyz + port: 443 + discovery: + acl-token: b2gs44ddr3 +# service-name: ${spring.application.name} +# https://github.com/spring-cloud/spring-cloud-consul/pull/590#issuecomment-1473038044 + heartbeat: + enabled: true + deregister: true + health-check-critical-timeout: 30s + +# config: +# acl-token: b1gs33cr3t + #discovery: + #register-health-check: true +# discovery: +# ip-address: 192.168.43.15 +# #hostname: doudou \ No newline at end of file diff --git a/src/main/resources/generate/jooq/JooqConfig.xml b/src/main/resources/generate/jooq/JooqConfig.xml new file mode 100644 index 0000000..8d41d6c --- /dev/null +++ b/src/main/resources/generate/jooq/JooqConfig.xml @@ -0,0 +1,46 @@ + + + + + + + org.postgresql.Driver + jdbc:postgresql://192.168.0.123:5434/ailt_test + postgres + mysecretpassword + + + + + + ailt_test + public + + .* + + + + + + true + true + + true + + + true + + + + + jj.tech.paolu.repository.jooq + src/main/java + + + diff --git a/src/main/resources/generate/mybatis/generatorConfig.xml b/src/main/resources/generate/mybatis/generatorConfig.xml new file mode 100644 index 0000000..af6e0bd --- /dev/null +++ b/src/main/resources/generate/mybatis/generatorConfig.xml @@ -0,0 +1,106 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + +
+
diff --git a/src/main/resources/ip/ip2region.xdb b/src/main/resources/ip/ip2region.xdb new file mode 100644 index 0000000..7052c05 Binary files /dev/null and b/src/main/resources/ip/ip2region.xdb differ diff --git a/src/main/resources/logback.xml b/src/main/resources/logback.xml new file mode 100644 index 0000000..cf1c9e1 --- /dev/null +++ b/src/main/resources/logback.xml @@ -0,0 +1,55 @@ + + + + + + + + + %d{yyyy-MM-dd HH-mm-ss.SSSXXX} [%thread] %-5level %logger{36} -%kvp- %msg%n + + + + + testFile.log + true + + + %d{yyyy-MM-dd HH-mm-ss.SSSXXX} [%thread] %-5level %logger{36} -%kvp- %msg%n + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/main/resources/mybatis-dynamic-sql.properties b/src/main/resources/mybatis-dynamic-sql.properties new file mode 100644 index 0000000..0f1c2bb --- /dev/null +++ b/src/main/resources/mybatis-dynamic-sql.properties @@ -0,0 +1,2 @@ +#注意:设置为true,所有的null值,where都不会渲染.可能会删表数据 +nonRenderingWhereClauseAllowed=false \ No newline at end of file diff --git a/src/main/resources/sql/data-h2.sql b/src/main/resources/sql/data-h2.sql new file mode 100644 index 0000000..eaa336c --- /dev/null +++ b/src/main/resources/sql/data-h2.sql @@ -0,0 +1,87 @@ +INSERT INTO "sys_admin" ("id", "org_id", "realname", "username", "password", "phone", "email", "job", "gender", "islock", "type", "sort", "cer_id") VALUES ('1', '1', '超级管理员', 'admin', 'fe9bdf42857f0fdfba26b120a42e04a0f331c711870656bea9d088bfcd1e8328', '1888888888', 'admin@admin.com', '负责人', 0, 1, NULL, NULL, NULL); +INSERT INTO "sys_admin" ("id", "org_id", "realname", "username", "password", "phone", "email", "job", "gender", "islock", "type", "sort", "cer_id") VALUES ('225078996243578880', '224242747677081600', '普通利用账号', '34568422', '9b1832396826f11a3b5b62bc39f499b0128493a6f203f237637842f9de9cf21e', '1888888888', 'admin@admin.com', '普通员工', 0, 1, 0, 5, NULL); +INSERT INTO "sys_admin" ("id", "org_id", "realname", "username", "password", "phone", "email", "job", "gender", "islock", "type", "sort", "cer_id") VALUES ('225079903102435328', '224242747677081600', '利用申请人测试', '85629927', '123456pwd', '1380013800', NULL, NULL, 1, 1, 0, 2, NULL); +INSERT INTO "sys_admin" ("id", "org_id", "realname", "username", "password", "phone", "email", "job", "gender", "islock", "type", "sort", "cer_id") VALUES ('220731138878996480', '1', '6666', '81844731', '1bb7bfdc1dc7fba7696cd2d78f9eb86461b0f880bb4c31403230332b7b517455', '111', '1', NULL, 1, 1, 0, 1, NULL); +INSERT INTO "sys_admin" ("id", "org_id", "realname", "username", "password", "phone", "email", "job", "gender", "islock", "type", "sort", "cer_id") VALUES ('229676786512822272', '226807389695770624', '66管理员', '16142844', '1bb7bfdc1dc7fba7696cd2d78f9eb86461b0f880bb4c31403230332b7b517455', '额无发热', NULL, '', 1, 0, 1, 0, NULL); +INSERT INTO "sys_admin" ("id", "org_id", "realname", "username", "password", "phone", "email", "job", "gender", "islock", "type", "sort", "cer_id") VALUES ('229690642085707776', '1', 'aaaaaaaaa', '63150962', '1bb7bfdc1dc7fba7696cd2d78f9eb86461b0f880bb4c31403230332b7b517455', '1111111', NULL, '', 1, 0, 0, 0, NULL); +INSERT INTO "sys_admin" ("id", "org_id", "realname", "username", "password", "phone", "email", "job", "gender", "islock", "type", "sort", "cer_id") VALUES ('225083168368099328', '4', '部门主管账号', '86916871', '9b1832396826f11a3b5b62bc39f499b0128493a6f203f237637842f9de9cf21e', '13800138222', NULL, '部门主管', 1, 1, 0, 1, NULL); +INSERT INTO "sys_admin" ("id", "org_id", "realname", "username", "password", "phone", "email", "job", "gender", "islock", "type", "sort", "cer_id") VALUES ('229331368226586624', '2', 'test', '12321172', '1bb7bfdc1dc7fba7696cd2d78f9eb86461b0f880bb4c31403230332b7b517455', '1111111', NULL, '', 1, 1, 0, 0, NULL); +INSERT INTO "sys_admin" ("id", "org_id", "realname", "username", "password", "phone", "email", "job", "gender", "islock", "type", "sort", "cer_id") VALUES ('229706350513356800', '2', 'cc', 'cc', 'fe9bdf42857f0fdfba26b120a42e04a0f331c711870656bea9d088bfcd1e8328', '1231', '12123', '', 1, 1, 0, 0, NULL); +INSERT INTO "sys_admin" ("id", "org_id", "realname", "username", "password", "phone", "email", "job", "gender", "islock", "type", "sort", "cer_id") VALUES ('2', '1', '测试管理员', 'testadmin', 'fe9bdf42857f0fdfba26b120a42e04a0f331c711870656bea9d088bfcd1e8328', '1888888888', 'admin@admin.com', '负责人', 0, 1, NULL, NULL, '229737704009498625'); + + +insert into sys_role values (1, '超级管理员', '有所有权限', 0, 0,'JS0001'); +insert into sys_role values (2, '管理员', '测试', 0, 1,'JS0002'); +insert into sys_admin_role values (1, 1, 1); + + + + + + + +insert into sys_menu (id, parent_id, level, name, types, url, icon, is_open, description, sort) +VALUES (1, 0, 2, '档案数据同步', 0, '#/', null, 0, '', 0), + (2, 0, 2, '文件共享管理', 2, '#/op/file', null, 0, '', 0), + (3, 0, 2, '档案利用管理', 2, '#/op/file', null, 0, '', 0), + (4, 0, 2, '用户管理', 2, '#/op/ad', null, 0, '', 0), + (5, 0, 2, '系统管理', 2, '#/op/sys', null, 0, '', 0), + (6, 0, 2, '档案安全管理', 2, '#/op/sys', null, 0, '', 0), + (103, 2, 2, '共享规则配置', 3, '#/op/ad/role', null, 0, '', 0), + (104, 2, 2, '共享目录管理', 2, '#/op/area', null, 0, '', 0), + (105, 2, 2, '共享文件管理', 3, '#/op/area/a', null, 0, '', 0), + (206, 3, 2, '档案利用申请', 3, '#/op/area/bd', null, 0, '', 0), + (201, 3, 2, '档案利用审核', 3, '#/op/area/floor', null, 0, '', 0), + (202, 3, 2, '档案利用查询', 3, '#/op/area/r', null, 0, '', 0), + (300, 1, 2, '数据同步规则管理', 3, '#/op/area/r', null, 0, '', 0), + (301, 1, 2, '分类目录同步管理', 3, '#/op/area/r', null, 0, '', 0), + (302, 1, 2, '文件目录同步管理', 3, '#/op/area/r', null, 0, '', 0), + (400, 4, 2, '角色管理', 3, '#/op/area/r', null, 0, '', 0), + (401, 4, 2, '账号管理', 3, '#/op/area/r', null, 0, '', 0), + (402, 4, 2, '权限管理', 3, '#/op/area/r', null, 0, '', 0), + (500, 5, 2, '消息管理', 3, '#/op/area/r', null, 0, '', 0), + (501, 5, 2, '认证管理', 3, '#/op/area/r', null, 0, '', 0), + (502, 5, 2, '组织机构管理', 3, '#/op/area/r', null, 0, '', 0), + (503, 5, 2, '日志管理', 3, '#/op/area/r', null, 0, '', 0), + (504, 5, 2, '接口管理', 3, '#/op/area/r', null, 0, '', 0), + (505, 5, 2, '菜单管理', 3, '#/op/area/r', null, 0, '', 0), + (600, 6, 2, '安全规则管理', 3, '#/op/area/r', null, 0, '', 0), + (601, 6, 2, '水印管理', 3, '#/op/area/r', null, 0, '', 0), + (602, 6, 2, '访问管理', 3, '#/op/area/r', null, 0, '', 0) + ; + + +insert into sys_config +values (1, 'rulenotice', 'rulenotice_due', 'sssss', 1, 'admin', '2023-07-18 12:00:00'); + + + +insert into syn_directory values (1, 0, '根目录', '根目录', 0, 0, null, null); +insert into syn_directory values (2, 1, '一级目录', '一级', 0, 1, null, null); + +insert into syn_directory_file values (10, 0, 2, '根文件目录', '根目录', 0, 0, null, null); +insert into syn_directory_file values (11, 10, 2, '一级文件目录', '一级', 0, 1, null, null); + +insert into syn_file values (20, 11, '文件一', '文件啊', 0, 1, null, NULL); + +insert into shared_rule_config values (1, '规则一', '允许同步的目录和文件', 1, 0, '深中通道项目'); + + + + + + + + + + + + + +insert into user_info +values (1, '葫芦娃1', '', 'admin', 'fe9bdf42857f0fdfba26b120a42e04a0f331c711870656bea9d088bfcd1e8328', '123', 0, 1, 0, + 0, ''); + + +insert into user_info_type +values (1, '本科', '1', 1); diff --git a/src/main/resources/sql/schema-h2.sql b/src/main/resources/sql/schema-h2.sql new file mode 100644 index 0000000..dd716bf --- /dev/null +++ b/src/main/resources/sql/schema-h2.sql @@ -0,0 +1,530 @@ +drop table if exists sys_admin; +CREATE TABLE "sys_admin" ( + "id" VARCHAR(32) NOT NULL, + "org_id" VARCHAR(32) NOT NULL, + "realname" VARCHAR(255) NULL DEFAULT NULL, + "username" VARCHAR(255) NOT NULL, + "password" VARCHAR(255) NOT NULL, + "phone" VARCHAR(255) NOT NULL, + "email" VARCHAR(255) NULL DEFAULT NULL, + "job" VARCHAR(255) NULL DEFAULT NULL, + "gender" INTEGER NULL DEFAULT 0, + "islock" INTEGER NULL DEFAULT 0, + "type" INTEGER NULL DEFAULT NULL, + "sort" INTEGER NULL DEFAULT NULL, + "cer_id" VARCHAR(32) NULL DEFAULT NULL, + PRIMARY KEY ("id"), + UNIQUE INDEX "sys_admin_username_key" ("username") +) +; + +drop table if exists sys_admin_weid; +CREATE TABLE "sys_admin_weid" ( + "id" VARCHAR(32) NOT NULL, + "admin_id" VARCHAR(32) NOT NULL, + "wid" VARCHAR(255) NULL DEFAULT NULL, + "wprivate_key" VARCHAR(500) NOT NULL, + PRIMARY KEY ("id"), + unique (admin_id) +) +; + + +drop table if exists sys_role; +create table sys_role +( + id bigint not null, + rolename varchar(300) not null, + describe varchar(500) not null, + sort int default 0, + is_open int default 1, + sign_id bigint not null, + sign_name varchar(500) not null, + primary key (id) +); + +drop table if exists sys_role_sign; +create table sys_role_sign +( + id bigint not null, + p_id bigint not null, + sign_name varchar(500) not null, + sign_code varchar(500) not null, + primary key (id) +); + +drop table if exists sys_admin_role; +create table sys_admin_role +( + id bigint not null, + adminid bigint not null, + roleid bigint not null, + primary key (id) +); + + + +drop table if exists sys_menu; +create table sys_menu ( + id bigint not null, + parent_id bigint default null, + level int default null, + name varchar(50) default null, + types VARCHAR(50) default null, + url varchar(200) default null, + icon varchar(100) default null, + is_open int default '0', + description varchar(200) default null, + sort int default '0', + PRIMARY KEY (id) +); + +drop table if exists sys_role_menu; +create table sys_role_menu +( + id bigint not null, + roleid bigint not null, + resid bigint not null, + primary key (id), + unique (roleid, resid) +); + +drop table if exists sys_urls; +create table sys_urls +( + id bigint not null, + pid bigint, + types int default 1, + level int default 0, + url varchar(300) default null, + name varchar(200) default null, + method varchar(200) default null, + primary key (id), + unique (url) +); + +drop table if exists sys_role_url; +create table sys_role_url +( + id bigint not null, + roleid bigint not null, + url varchar(300) not null, + urltypes int not null, + primary key (id) +); + + +drop table if exists sys_config; +create table sys_config +( + id bigint not null, + subgroup varchar(500) not null, + keys varchar(1000) not null, + val varchar(14000), + adminid int not null, + adminname varchar(100) not null, + edittime timestamp, + primary key (id), + unique (keys) +); + +drop table if exists sys_org; +create table sys_org ( + id bigint not null, + pid bigint not null, + chinese_simple_name varchar(500) not null, + english_simple_name varchar(500) default null, + chinese_full_name varchar(500) default null, + english_full_name varchar(500) default null, + code varchar(100) null default null, + sort integer null default 0, + status integer null default 1, + is_company_department integer not null, + enterprise_legal_person varchar(500) default null, + contact_person varchar(500) default null, + contact_phone varchar(200) default null, + remark varchar(500) default null, + create_time timestamp default null, + create_user bigint default null, + update_time timestamp default null, + update_user bigint default null, + name varchar(255) default null, + industry_name varchar(255) default null, + industry_code varchar(255) default null, + province_code bigint default null, + city_code bigint default null, + area_code bigint default null, + addr varchar(255) default null, + uscc varchar default null, + org_type varchar default null, + is_archives_dep integer default null, + cer_id bigint default null, + primary key (id) +) +; +comment on column sys_org.id is ''; +comment on column sys_org.pid is ''; +comment on column sys_org.chinese_simple_name is ''; +comment on column sys_org.english_simple_name is ''; +comment on column sys_org.chinese_full_name is ''; +comment on column sys_org.english_full_name is ''; +comment on column sys_org.code is ''; +comment on column sys_org.sort is ''; +comment on column sys_org.status is ''; +comment on column sys_org.is_company_department is ''; +comment on column sys_org.enterprise_legal_person is ''; +comment on column sys_org.contact_person is ''; +comment on column sys_org.contact_phone is ''; +comment on column sys_org.remark is ''; +comment on column sys_org.create_time is ''; +comment on column sys_org.create_user is ''; +comment on column sys_org.update_time is ''; +comment on column sys_org.update_user is ''; +comment on column sys_org.name is '机构名称'; +comment on column sys_org.industry_name is '行业名称'; +comment on column sys_org.industry_code is '行业编号'; +comment on column sys_org.province_code is '省id'; +comment on column sys_org.city_code is '市id'; +comment on column sys_org.area_code is '区id'; +comment on column sys_org.addr is '详细地址'; +comment on column sys_org.uscc is '社会信用代码'; +comment on column sys_org.org_type is '企业类型,逗号分隔。字典值'; +comment on column sys_org.is_archives_dep is '档案管理部门'; + + + + + + + + +drop table if exists syn_directory; +create table syn_directory +( + id varchar(50) not null, + p_id varchar(50) not null, + wbs_id varchar(50) not null, + time_stamp varchar(20) default null, + time_stamp_d timestamp default null, + sortOrder int default null, + tname varchar(300) default null, + subjoin int default null, + isDel int default null, + primary key (id) +); + +drop table if exists syn_directory_file; +create table syn_directory_file +( + id varchar(50) not null, + p_id varchar(50) not null, + filesuper varchar(500) default null, + filecount int default null, + dutyperson varchar(100) default null, + eweavedate varchar(100) default null, + filepage int default null, + sortorder varchar(50) default null, + bpeg varchar(50) default null, + epeg varchar(50) default null, + filenum varchar(100) default null, + remark varchar(300) default null, + recordnum varchar(50) default null, + piecenumber varchar(50) default null, + adddate varchar(50) default null, + editdate varchar(50) default null, + time_stamp varchar(20) default null, + isdel int default null, + catalogpdfurl varchar(200) default null, + signtag varchar(20) default null, + collecttag varchar(20) default null, + primary key (id) +); + + +drop table if exists syn_file; +create table syn_file +( + id varchar(50) not null, + p_id varchar(50) not null, + tablenumber varchar(200) default null, + annexname varchar(100) default null, + projectname varchar(100) default null, + eweavedate varchar(100) default null, + checkdate varchar(100) default null, + annexpage int default null, + sortorder varchar(50) default null, + filefrom varchar(50) default null, + archivestag varchar(50) default null, + adddate varchar(50) default null, + editdate varchar(50) default null, + time_stamp varchar(20) default null, + isdel int default null, + downurl varchar(200) default null, + filesize int default null, + primary key (id) +); + + + + +drop table if exists shared_syn_all; +create table shared_syn_all +( + id bigint not null, + syn_id bigint not null, + syn_type int default 0, + is_config_rule int default 0, + shared_status int DEFAULT 0, + primary key (id), + unique (syn_id), + unique (syn_id,syn_type) +); + +drop table if exists shared_rule_config; +create table shared_rule_config +( + id bigint not null, + name varchar(1000) not null, + describe varchar(500) not null, + status int default 1, + sort int default 0, + project_name varchar(1000) not null, + primary key (id) +); + + + +drop table if exists files_apply; +create table files_apply +( + id bigint not null, + apply_user_id bigint not null, + apply_user_name varchar(500) not null, + apply_user_phone varchar(300) not null, + apply_user_email varchar(300) default null, + apply_org_id bigint not null, + apply_org_name varchar(500) not null, + apply_in_check_user_id bigint default null, + apply_in_check_user_name varchar(500) default null, + apply_in_check_org_id bigint default null, + apply_in_check_org_name varchar(500) default null, + apply_next_check_org_id bigint default null, + apply_next_check_org_name varchar(500) default null, + apply_end_check_user_id bigint default null, + apply_end_check_user_name varchar(500) default null, + apply_end_check_org_id bigint default null, + apply_end_check_org_name varchar(500) default null, + apply_days int default null, + apply_feedback varchar(5000) default null, + apply_reason varchar(5000) default null, + apply_cancel_reason varchar(5000) default null, + apply_view_type_print int default 0, + apply_view_type_online int default 0, + apply_file_num int default 0, + apply_time timestamp, + apply_check_is_finish int default 0, + + + provider_org_id bigint not null, + provider_org_name varchar(500) default null, + provider_file_properties int default 0, + provider_use_start_time timestamp, + provider_use_end_time timestamp, + provider_in_check_user_id bigint default null, + provider_in_check_user_name varchar(500) default null, + provider_in_check_org_id bigint default null, + provider_in_check_org_name varchar(500) default null, + provider_next_check_role_sign_id bigint default null, + provider_next_check_role_sign_name varchar(500) default null, + provider_end_check_user_id bigint default null, + provider_end_check_user_name varchar(500) default null, + provider_end_check_org_id bigint default null, + provider_end_check_org_name varchar(500) default null, + provider_check_is_finish int default 0, + + secret_key varchar(500) default null, + status int default 1, + project_id bigint default null, + project_name varchar(500) default null, + primary key (id) +); + +drop table if exists files_apply_check_record; +create table files_apply_check_record +( + id bigint not null, + files_apply_id bigint not null, + is_apply_provider int default 0, + check_user_id bigint default null, + check_user_name varchar(500) default null, + check_org_id bigint default null, + check_org_name varchar(1000) default null, + next_check_org_id bigint default null, + next_check_org_name varchar(500) default null, + check_describe varchar(1000) default null, + check_status int default 1, + check_time timestamp, + provider_next_check_role_sign_id bigint default null, + provider_next_check_role_sign_name varchar(500) default null, + primary key (id) +); + +drop table if exists files_apply_directory_docs; +create table files_apply_directory_docs +( + id varchar(32) not null, + files_apply_id varchar(32) not null, + directory_file_id varchar(50) not null, + directory_file_p_id varchar(50) not null, + filesuper varchar(500) default null, + filecount int default null, + dutyperson varchar(100) default null, + eweavedate varchar(100) default null, + filepage int default null, + sortorder varchar(50) default null, + bpeg varchar(50) default null, + epeg varchar(50) default null, + filenum varchar(100) default null, + remark varchar(300) default null, + recordnum varchar(50) default null, + piecenumber varchar(50) default null, + adddate varchar(50) default null, + editdate varchar(50) default null, + time_stamp varchar(20) default null, + isdel int default null, + catalogpdfurl varchar(200) default null, + signtag varchar(20) default null, + collecttag varchar(20) default null, + primary key (id) +); + +drop table if exists files_apply_docs; +create table files_apply_docs +( + id varchar(32) not null, + files_apply_id varchar(32) not null, + syn_file_id varchar(50) not null, + syn_file_p_id varchar(50) not null, + tablenumber varchar(200) default null, + annexname varchar(100) default null, + projectname varchar(100) default null, + eweavedate varchar(100) default null, + checkdate varchar(100) default null, + annexpage int default null, + sortorder varchar(50) default null, + filefrom varchar(50) default null, + archivestag varchar(50) default null, + adddate varchar(50) default null, + editdate varchar(50) default null, + time_stamp varchar(20) default null, + isdel int default null, + downurl varchar(200) default null, + filesize int default null, + apply_view_type_print int default 0, + apply_view_type_online int default 0, + primary key (id) +); + + +drop table if exists files_apply_download_record; +create table files_apply_download_record +( + id bigint not null, + files_apply_id bigint not null, + is_dir_file int default 0, + syn_file_id bigint not null, + syn_file_p_id bigint not null, + syn_file_name varchar(500) not null, + user_id bigint default null, + user_name varchar(500) default null, + org_id bigint default null, + org_name varchar(1000) default null, + download_time timestamp, + primary key (id) +); + +drop table if exists project; +create table project +( + id bigint not null, + project_name varchar(500) not null, + primary key (id) +); + + + + + +create table certificate_user_apply +( + id bigint not null, + is_org int default 0, + project_name varchar(500) not null, + primary key (id) +); + + + + + + + +drop table if exists certificate_apply; +create table certificate_apply ( + id bigint not null, + is_org int not null default 0, + user_id bigint not null, + user_name varchar(500) default null, + user_real_name varchar(500) default null, + user_phone varchar(200) default null, + user_org_id bigint not null, + user_org_name varchar(1000) default null, + apply_type int not null default 0, + status int null default 0, + apply_time timestamp default null, + apply_finish_time timestamp default null, + apply_reason varchar(5000) default null, + next_check_org_id bigint default null, + end_check_org_id bigint default null, + cer_id bigint default null, + unique (cer_id), + primary key (id) +) +; + + +drop table if exists certificate_apply_record; +create table certificate_apply_record ( + id bigint not null, + certificate_apply_id bigint not null, + certificate_apply_user_id bigint not null, + certificate_apply_user_org_id bigint not null, + is_org int not null default 0, + apply_type int not null default 0, + check_user_id bigint default null, + check_user_name varchar(500) default null, + check_org_id bigint default null, + check_org_name varchar(1000) default null, + check_describe varchar(1000) default null, + check_status int default 1, + check_time timestamp, + next_check_org_id bigint default null, + next_check_org_name varchar(500) default null, + primary key (id) +) +; + + +drop table if exists certificate_detail; +create table certificate_detail ( + id bigint not null, + certificate_apply_id bigint not null, + work_start_time timestamp default null, + work_end_time timestamp default null, + status int not null default 0, + upload_cert_url varchar(500) null default null, + is_up_chain int not null default 0, + primary key (id) +) +; + diff --git a/src/test/java/jj/tech/paolu/biz/webadmin/service/MD5Test.java b/src/test/java/jj/tech/paolu/biz/webadmin/service/MD5Test.java new file mode 100644 index 0000000..41d382b --- /dev/null +++ b/src/test/java/jj/tech/paolu/biz/webadmin/service/MD5Test.java @@ -0,0 +1,17 @@ +package jj.tech.paolu.biz.webadmin.service; + +import org.apache.commons.codec.digest.DigestUtils; + +public class MD5Test { + public static void main(String[] args) { + Long currentMillis = System.currentTimeMillis(); + + String appKey= "SZTD00898"; + String appSecret= "16E58F6750C246818FBD84EAEF3FC998"; + String timeStamp = currentMillis.toString(); + String sign = DigestUtils.md5Hex(appKey+timeStamp+appSecret); + + System.out.println(timeStamp); + System.out.println(sign); + } +} diff --git a/src/test/java/jj/tech/paolu/biz/webadmin/service/SM3Test.java b/src/test/java/jj/tech/paolu/biz/webadmin/service/SM3Test.java new file mode 100644 index 0000000..55f027a --- /dev/null +++ b/src/test/java/jj/tech/paolu/biz/webadmin/service/SM3Test.java @@ -0,0 +1,42 @@ +package jj.tech.paolu.biz.webadmin.service; + +import java.io.IOException; +import java.nio.file.Files; +import java.nio.file.Paths; + +import org.bouncycastle.crypto.digests.SM3Digest; +import org.bouncycastle.util.encoders.Hex; + +public class SM3Test { + + /** + * 使用SM3算法计算给定输入的摘要值 + * @param inputBytes 要进行摘要计算的输入字符串 + * @return 给定输入的摘要值 + */ + private static byte[] calculateSM3Digest( byte [] inputBytes) { + //创建 SM3Digest 对象 + SM3Digest digest = new SM3Digest(); + //将输入字符串转为字节数组,并使用该字节数组更新摘要对象的内部状态,以便进行计算 + // byte[] inputBytes = input.getBytes(); + digest.update(inputBytes, 0, inputBytes.length); + //创建一个输出字节数组,调用 doFinal 方法完成哈希计算,并将结果存入输出数组 + byte[] output = new byte[digest.getDigestSize()]; + digest.doFinal(output, 0); + //返回摘要字节数组 + return output; + } + public static void main(String[] args) { + String filePath = "C:\\Users\\lenovo\\git\\ailt\\src\\test\\resources\\logback.xml"; + try { + + byte [] inputBytes = Files.readAllBytes(Paths.get(filePath)); + byte[] digest = calculateSM3Digest(inputBytes); + String hexDigest = Hex.toHexString(digest); + System.out.println("SM3 Digest: " + hexDigest); + } catch (IOException e) { + System.out.println("An error occurred while reading the file: " + e.getMessage()); + } + } + +} diff --git a/src/test/java/sm/SM2Test.java b/src/test/java/sm/SM2Test.java new file mode 100644 index 0000000..13b0c19 --- /dev/null +++ b/src/test/java/sm/SM2Test.java @@ -0,0 +1,214 @@ +//package sm; +// +//import java.math.BigInteger; +//import java.security.KeyPair; +//import java.security.KeyPairGenerator; +//import java.security.PrivateKey; +//import java.security.PublicKey; +//import java.security.SecureRandom; +//import java.security.Security; +//import java.security.spec.ECGenParameterSpec; +// +//import org.bouncycastle.asn1.gm.GMNamedCurves; +//import org.bouncycastle.asn1.x9.X9ECParameters; +//import org.bouncycastle.crypto.engines.SM2Engine; +//import org.bouncycastle.crypto.params.ECDomainParameters; +//import org.bouncycastle.crypto.params.ECPrivateKeyParameters; +//import org.bouncycastle.crypto.params.ECPublicKeyParameters; +//import org.bouncycastle.crypto.params.ParametersWithRandom; +//import org.bouncycastle.jcajce.provider.asymmetric.ec.BCECPrivateKey; +//import org.bouncycastle.jcajce.provider.asymmetric.ec.BCECPublicKey; +//import org.bouncycastle.jcajce.provider.asymmetric.ec.GMKeyPairGeneratorSpi.SM2; +//import org.bouncycastle.jce.provider.BouncyCastleProvider; +//import org.bouncycastle.jce.spec.ECParameterSpec; +//import org.bouncycastle.jce.spec.ECPrivateKeySpec; +//import org.bouncycastle.jce.spec.ECPublicKeySpec; +//import org.bouncycastle.util.encoders.Hex; +// +// +//public class SM2Test { +// public SM2Test(){ } +// static { //加载BC驱动 +// if (Security.getProvider(BouncyCastleProvider.PROVIDER_NAME) == null) +// new BouncyCastleProvider(); +// } +// +// // 生成sm2密钥对 +// public KeyPair createECKeyPair() { +// //使用标准名称创建EC参数生成的参数规范 +// final ECGenParameterSpec sm2Spec = new ECGenParameterSpec("sm2p256v1"); +// +// // 获取一个椭圆曲线类型的密钥对生成器 +// final KeyPairGenerator kpg; +// try { +// kpg = KeyPairGenerator.getInstance("EC", new BouncyCastleProvider()); +//// 使用SM2算法域参数集初始化密钥生成器(默认使用最高优先级安装的提供者的 SecureRandom 的实现作为随机源) +// // kpg.initialize(sm2Spec); +// // 使用SM2的算法域参数集和指定的随机源初始化密钥生成器 +// kpg.initialize(sm2Spec, new SecureRandom()); +// // 通过密钥生成器生成密钥对 +// return kpg.generateKeyPair(); +// +// } catch (Exception e) { +// e.printStackTrace(); +// return null; +// } +// } +// +// /* +// *公钥加密 +// * @param publicKey SM2公钥 +// * @param data 明文数据 +// * @param modeType 加密模式 +// * @return 密文数据 +// */ +// public byte[] encode(String publicKeyHex, byte[] inputBytes, int modeType){ +// //加密模式 +// // +// BCECPublicKey publicKey = getECPublicKeyByPublicKeyHex(publicKeyHex); +// SM2Engine.Mode mode; +// if (modeType == 1) {//采用新模式加密标准 +// mode = SM2Engine.Mode.C1C3C2; +// } else {//采用旧模式加密标准 +// mode = SM2Engine.Mode.C1C2C3; +// } +// //通过公钥对象获取公钥的基本域参数。 +// ECParameterSpec ecParameterSpec = publicKey.getParameters(); +// ECDomainParameters ecDomainParameters = new ECDomainParameters(ecParameterSpec.getCurve(), +// ecParameterSpec.getG(), ecParameterSpec.getN()); +// //通过公钥值和公钥基本参数创建公钥参数对象 +// ECPublicKeyParameters ecPublicKeyParameters = new ECPublicKeyParameters(publicKey.getQ(), ecDomainParameters); +// //根据加密模式实例化SM2公钥加密引擎 +// SM2Engine sm2Engine = new SM2Engine(mode); +// //初始化加密引擎 +// sm2Engine.init(true, new ParametersWithRandom(ecPublicKeyParameters, new SecureRandom())); +// +// byte[] arrayOfBytes = null; +// try { +// //通过加密引擎对字节数串行加密 +// arrayOfBytes = sm2Engine.processBlock(inputBytes, 0, inputBytes.length); +// } catch (Exception e) { +// System.out.println("SM2加密时出现异常:" + e.getMessage()); +// e.printStackTrace(); +// } +// return arrayOfBytes; +// } +// /** +// * 私钥解密 +// * +// * @param privateKeyHex SM私钥 +// * @param cipherBytes 密文数据 +// * @param modeType 加密模式 +// * @return 解密后的明文 +// */ +// public static byte[] decode(String privateKeyHex, byte[] cipherBytes, int modeType) { +// //解密模式 +// SM2Engine.Mode mode; +// BCECPrivateKey privateKey = getBCECPrivateKeyByPrivateKeyHex(privateKeyHex); +// if (modeType == 1) { +// mode = SM2Engine.Mode.C1C3C2; +// } else { +// mode = SM2Engine.Mode.C1C2C3; +// } +// +// //通过私钥对象获取私钥的基本域参数。 +// ECParameterSpec ecParameterSpec = privateKey.getParameters(); +// ECDomainParameters ecDomainParameters = new ECDomainParameters(ecParameterSpec.getCurve(), +// ecParameterSpec.getG(), ecParameterSpec.getN()); +// +// //通过私钥值和私钥基本参数创建私钥参数对象 +// ECPrivateKeyParameters ecPrivateKeyParameters = new ECPrivateKeyParameters(privateKey.getD(), +// ecDomainParameters); +// +// //通过解密模式创建解密引擎并初始化 +// SM2Engine sm2Engine = new SM2Engine(SM2Engine.Mode.C1C3C2); +// sm2Engine.init(false, ecPrivateKeyParameters); +// +// byte[] arrayOfBytes = null; +// try { +// //通过解密引擎对密文字节串进行解密 +// arrayOfBytes = sm2Engine.processBlock(cipherBytes, 0, cipherBytes.length); +// } catch (Exception e) { +// System.out.println("SM2解密时出现异常" + e.getMessage()); +// } +// return arrayOfBytes; +// } +// +// +// //椭圆曲线ECParameters ASN.1 结构 +// private static X9ECParameters x9ECParameters = GMNamedCurves.getByName("sm2p256v1"); +// //椭圆曲线公钥或私钥的基本域参数。 +// private static ECParameterSpec ecDomainParameters = new ECParameterSpec(x9ECParameters.getCurve(), x9ECParameters.getG(), x9ECParameters.getN()); +// +// /** +// * 公钥字符串转换为 BCECPublicKey 公钥对象 +// * +// * @param pubKeyHex 64字节十六进制公钥字符串(如果公钥字符串为65字节首字节为0x04:表示该公钥为非压缩格式,操作时需要删除) +// * @return BCECPublicKey SM2公钥对象 +// */ +// +// public static BCECPublicKey getECPublicKeyByPublicKeyHex(String pubKeyHex) { +// //截取64字节有效的SM2公钥(如果公钥首字节为0x04) +// if (pubKeyHex.length() > 128) { +// pubKeyHex = pubKeyHex.substring(pubKeyHex.length() - 128); +// } +// //将公钥拆分为x,y分量(各32字节) +// String stringX = pubKeyHex.substring(0, 64); +// String stringY = pubKeyHex.substring(stringX.length()); +// //将公钥x、y分量转换为BigInteger类型 +// BigInteger x = new BigInteger(stringX, 16); +// BigInteger y = new BigInteger(stringY, 16); +// //通过公钥x、y分量创建椭圆曲线公钥规范 +// ECPublicKeySpec ecPublicKeySpec = new ECPublicKeySpec(x9ECParameters.getCurve().createPoint(x, y), ecDomainParameters); +// //通过椭圆曲线公钥规范,创建出椭圆曲线公钥对象(可用于SM2加密及验签) +// return new BCECPublicKey("EC", ecPublicKeySpec, BouncyCastleProvider.CONFIGURATION); +// } +// +// /** +// * 私钥字符串转换为 BCECPrivateKey 私钥对象 +// * +// * @param privateKeyHex: 32字节十六进制私钥字符串 +// * @return BCECPrivateKey:SM2私钥对象 +// */ +// public static BCECPrivateKey getBCECPrivateKeyByPrivateKeyHex(String privateKeyHex) { +// //将十六进制私钥字符串转换为BigInteger对象 +// BigInteger d = new BigInteger(privateKeyHex, 16); +// //通过私钥和私钥域参数集创建椭圆曲线私钥规范 +// ECPrivateKeySpec ecPrivateKeySpec = new ECPrivateKeySpec(d, ecDomainParameters); +// //通过椭圆曲线私钥规范,创建出椭圆曲线私钥对象(可用于SM2解密和签名) +// return new BCECPrivateKey("EC", ecPrivateKeySpec, BouncyCastleProvider.CONFIGURATION); +// } +// +// public static void main(String[] args) throws Exception { +// String Sm4Key="0123456789abcdef"; +// String sm2PublicKeyHex=null; +// String sm2PrivateKeyHex=null; +// +// SM2Test sm2=new SM2Test(); +// // 生成SM2密钥 +// KeyPair keyPair = sm2.createECKeyPair(); +// PrivateKey privateKey = keyPair.getPrivate(); +// PublicKey publicKey = keyPair.getPublic(); +// if (publicKey instanceof BCECPublicKey){ +// //获取65字节非压缩的十六进制公钥串(0x04) +// byte[] publicKeyBytes = ((BCECPublicKey) publicKey).getQ().getEncoded(false); +// sm2PublicKeyHex = Hex.toHexString(publicKeyBytes); +// +// } +// if (privateKey instanceof BCECPrivateKey) { +// //获取32字节十六进制私钥串 +// sm2PrivateKeyHex = ((BCECPrivateKey) privateKey).getD().toString(16); +// +// } +// //Sm2加密密钥 +// byte [] keyBytes=Sm4Key.getBytes("utf-8"); +// byte[] encodeBytes = sm2.encode(sm2PublicKeyHex, keyBytes, 1); +// String encodeKey = Hex.toHexString(encodeBytes); +// //Sm2解密密钥 +// byte [] decodeBytes=sm2.decode(sm2PrivateKeyHex,encodeBytes,1); +// String deKey=new String(decodeBytes,"utf-8"); +// System.out.println("\ninitial key:"+Sm4Key+"\nencode key:"+encodeKey+"\ndecode key:"+deKey); +// System.out.println("complete!"); +// } +// +//} diff --git a/src/test/java/sm/SM3Test.java b/src/test/java/sm/SM3Test.java new file mode 100644 index 0000000..d5e88e9 --- /dev/null +++ b/src/test/java/sm/SM3Test.java @@ -0,0 +1,42 @@ +package sm; + +import java.io.IOException; +import java.nio.file.Files; +import java.nio.file.Paths; + +import org.bouncycastle.crypto.digests.SM3Digest; +import org.bouncycastle.util.encoders.Hex; + +public class SM3Test { + + /** + * 使用SM3算法计算给定输入的摘要值 + * @param inputBytes 要进行摘要计算的输入字符串 + * @return 给定输入的摘要值 + */ + private static byte[] calculateSM3Digest( byte [] inputBytes) { + //创建 SM3Digest 对象 + SM3Digest digest = new SM3Digest(); + //将输入字符串转为字节数组,并使用该字节数组更新摘要对象的内部状态,以便进行计算 + // byte[] inputBytes = input.getBytes(); + digest.update(inputBytes, 0, inputBytes.length); + //创建一个输出字节数组,调用 doFinal 方法完成哈希计算,并将结果存入输出数组 + byte[] output = new byte[digest.getDigestSize()]; + digest.doFinal(output, 0); + //返回摘要字节数组 + return output; + } + public static void main(String[] args) { + String filePath = "C:\\Users\\lenovo\\git\\ailt\\src\\test\\resources\\logback.xml"; + try { + + byte [] inputBytes = Files.readAllBytes(Paths.get(filePath)); + byte[] digest = calculateSM3Digest(inputBytes); + String hexDigest = Hex.toHexString(digest); + System.out.println("SM3 Digest: " + hexDigest); + } catch (IOException e) { + System.out.println("An error occurred while reading the file: " + e.getMessage()); + } + } + +} diff --git a/src/test/java/sm/SM4Test.java b/src/test/java/sm/SM4Test.java new file mode 100644 index 0000000..5bb35f7 --- /dev/null +++ b/src/test/java/sm/SM4Test.java @@ -0,0 +1,85 @@ +package sm; + +import java.nio.charset.StandardCharsets; +import java.nio.file.Files; +import java.nio.file.Paths; +import java.security.Security; + +import javax.crypto.Cipher; +import javax.crypto.spec.IvParameterSpec; +import javax.crypto.spec.SecretKeySpec; + +import org.bouncycastle.jce.provider.BouncyCastleProvider; + +public class SM4Test { + + private static final String name="SM4"; //算法名字 + private static final String transformation="SM4/CBC/PKCS5Padding"; //加密模式以及短快填充方式 + private static final String Default_iv="0123456789abcdef"; //加密使用的初始向量 + +/** + * 加载指定文件,对其进行加密,并将加密结果写入指定输出文件中 + * @param inputFile 要加密的输入文件路径 + * @param outputFile 加密后的输出文件路径 + * @param key 加密所需的密钥 + * @throws Exception 如果文件读取、加密或写入时出现错误,则抛出异常 + */ +private static void encodeFile(String inputFile, String outputFile, String key) throws Exception { + // 读取输入文件中的所有字节 + byte [] inputBytes = Files.readAllBytes(Paths.get(inputFile)); + // 对输入字节数组进行加密 + byte [] encodeByte = encode(inputBytes, key.getBytes(StandardCharsets.UTF_8)); + // 将加密后的字节数组写入指定输出文件中 + Files.write(Paths.get(outputFile),encodeByte); + System.out.println("File encoded successfully."); +} + /** + * 使用指定的加密算法和密钥对给定的字节数组进行加密 + * @param inputByte 要加密的字节数组 + * @param key 加密所需的密钥 + * @return 加密后的字节数组 + * @throws Exception 如果加密时发生错误,则抛出异常 + */ + public static byte [] encode(byte [] inputByte, byte [] key) throws Exception { + // 获取加密实例 + Cipher c = Cipher.getInstance(transformation); + // 根据密钥的字节数组创建 SecretKeySpec + SecretKeySpec secretKeySpec = new SecretKeySpec(key, name); + // 创建 IvParameterSpec 对象,使用默认向量和字符集 + IvParameterSpec ivParameterSpec = new IvParameterSpec(Default_iv.getBytes(StandardCharsets.UTF_8)); + // 初始化加密实例 + c.init(Cipher.ENCRYPT_MODE, secretKeySpec, ivParameterSpec); + // 返回加密后的字节数组 + return c.doFinal(inputByte); + } + + public static void decodeFile(String inputFilePath, String outputFilePath, String key) throws Exception { + byte[] inputBytes = Files.readAllBytes(Paths.get(inputFilePath)); + byte[] decodeBytes = decode(inputBytes, key.getBytes(StandardCharsets.UTF_8)); + Files.write(Paths.get(outputFilePath), decodeBytes); + System.out.println("File decode successfully."); + } + + + + private static byte[] decode(byte[] inputBytes, byte[] key) throws Exception { + Cipher cipher = Cipher.getInstance(transformation); + SecretKeySpec secretKeySpec = new SecretKeySpec(key, name); + IvParameterSpec ivParameterSpec = new IvParameterSpec(Default_iv.getBytes(StandardCharsets.UTF_8)); + cipher.init(Cipher.DECRYPT_MODE, secretKeySpec, ivParameterSpec); + return cipher.doFinal(inputBytes); + } + + public static void main(String[] args) throws Exception { + Security.addProvider(new BouncyCastleProvider()); + String inputFile="C:\\Users\\lenovo\\git\\ailt\\src\\test\\resources\\logback.xml"; //需要加密的文件 + String enFile="Encode.txt"; //加密后的文件 + String deFile="Decode.txt"; //解密后的文件 + String key="0123456789ABCDEF"; //加密密钥,注意必须是128bits,即16个字节 + encodeFile(inputFile,enFile,key); + decodeFile(enFile,deFile,key); + + + } + +} diff --git a/src/test/java/sm/SM9Test.java b/src/test/java/sm/SM9Test.java new file mode 100644 index 0000000..6339475 --- /dev/null +++ b/src/test/java/sm/SM9Test.java @@ -0,0 +1,55 @@ +//package sm; +//import java.math.BigInteger; +// +//import org.bouncycastle.crypto.InvalidCipherTextException; +//import org.slf4j.Logger; +//import org.slf4j.LoggerFactory; +//import org.sm9hibe.SM9HIBE; +//import org.sm9hibe.structs.SN9HIBE_structs.SM9HIBESecretKey; +// +//import jj.tech.paolu.biz.webadmin.service.SharedService; +// +//public class SM9Test { +// public static final Logger logger = LoggerFactory.getLogger(SharedService.class); +// +// private static BigInteger mainKeyRandomBigInt = new BigInteger("787ED7B8A51F3AB84E0A66003F32DA5C720B17ECA7137D39ABC66E3C80A892FF",16); +// public static SM9HIBE sm9HIBE = SM9HIBE.getInstance(10, mainKeyRandomBigInt); +// +// +// +// public static SM9HIBESecretKey getAdminKey(Long orgid, Long userid) { +// SM9HIBESecretKey secretKey_1 = sm9HIBE.level1KeyGen(orgid.toString(), BigInteger.valueOf(orgid)); +// String[] id_level_2 = {orgid.toString(), userid.toString()}; +// SM9HIBESecretKey secretKey_2 = sm9HIBE.keyGen(secretKey_1, id_level_2, BigInteger.valueOf(userid)); +// return secretKey_2; +// } +// +// public static byte[] keyToBytes(SM9HIBESecretKey key) { +// return sm9HIBE.secretKey2BytesArray(key); +// } +// +// +// public static byte[] encrypt(Long orgid, Long userid, byte[] source) { +// try { +// String[] id_level_2 = {orgid.toString(), userid.toString()}; +// return sm9HIBE.encrypt(id_level_2, source); +// } catch (InvalidCipherTextException e) { +// e.printStackTrace(); +// return null; +// } +// } +// +// public static byte[] decrypt(Long orgid, Long userid, SM9HIBESecretKey key, byte[] cipherBytes) { +// try { +// String[] id_level_2 = {orgid.toString(), userid.toString()}; +// return sm9HIBE.decrypt(key, id_level_2,cipherBytes); +// } catch (InvalidCipherTextException e) { +// e.printStackTrace(); +// return null; +// } +// } +// +// +// +// +//} diff --git a/src/test/java/test/nw/BinaryTree.java b/src/test/java/test/nw/BinaryTree.java new file mode 100644 index 0000000..3a9e111 --- /dev/null +++ b/src/test/java/test/nw/BinaryTree.java @@ -0,0 +1,295 @@ +package test.nw; + +import java.util.Stack; + +public class BinaryTree { + + + private TreeNode root=null; + + + public BinaryTree(){ + root=new TreeNode(1,"rootNode(A)"); + } + + /** + * 创建一棵二叉树 + *
 
+     *          A 
+     *     B          C 
+     *  D     E            F 
+     *  
+ * @param root + * @author WWX + */ + public void createBinTree(TreeNode root){ + TreeNode newNodeB = new TreeNode(2,"B"); + TreeNode newNodeC = new TreeNode(3,"C"); + TreeNode newNodeD = new TreeNode(4,"D"); + TreeNode newNodeE = new TreeNode(5,"E"); + TreeNode newNodeF = new TreeNode(6,"F"); + root.leftChild=newNodeB; + root.rightChild=newNodeC; + root.leftChild.leftChild=newNodeD; + root.leftChild.rightChild=newNodeE; + root.rightChild.rightChild=newNodeF; + } + + + public boolean isEmpty(){ + return root==null; + } + + //树的高度 + public int height(){ + return height(root); + } + + //节点个数 + public int size(){ + return size(root); + } + + + private int height(TreeNode subTree){ + if(subTree==null) + return 0;//递归结束:空树高度为0 + else{ + int i=height(subTree.leftChild); + int j=height(subTree.rightChild); + return (i stack=new Stack(); + TreeNode node=p; + while(node!=null||stack.size()>0){ + while(node!=null){ + visted(node); + stack.push(node); + node=node.leftChild; + } + while(stack.size()>0){ + node=stack.pop(); + node=node.rightChild; + } + } + } + + //中序遍历的非递归实现 + public void nonRecInOrder(TreeNode p){ + Stack stack =new Stack(); + TreeNode node =p; + while(node!=null||stack.size()>0){ + //存在左子树 + while(node!=null){ + stack.push(node); + node=node.leftChild; + } + //栈非空 + if(stack.size()>0){ + node=stack.pop(); + visted(node); + node=node.rightChild; + } + } + } + + //后序遍历的非递归实现 + public void noRecPostOrder(TreeNode p){ + Stack stack=new Stack(); + TreeNode node =p; + while(p!=null){ + //左子树入栈 + for(;p.leftChild!=null;p=p.leftChild){ + stack.push(p); + } + //当前结点无右子树或右子树已经输出 + while(p!=null&&(p.rightChild==null||p.rightChild==node)){ + visted(p); + //纪录上一个已输出结点 + node =p; + if(stack.empty()) + return; + p=stack.pop(); + } + //处理右子树 + stack.push(p); + p=p.rightChild; + } + } + + + public void visted(TreeNode subTree){ + subTree.isVisted=true; + System.out.println("key:"+subTree.key+"--name:"+subTree.data);; + } + + + /** + * 二叉树的节点数据结构 + * @author WWX + */ + private class TreeNode{ + private int key=0; + private String data=null; + private boolean isVisted=false; + private TreeNode leftChild=null; + private TreeNode rightChild=null; + + public TreeNode(){} + + /** + * @param key 层序编码 + * @param data 数据域 + */ + public TreeNode(int key,String data){ + this.key=key; + this.data=data; + this.leftChild=null; + this.rightChild=null; + } + + + } + + + //测试 + public static void main(String[] args) { + + BinaryTree bt = new BinaryTree(); + bt.createBinTree(bt.root); +// TreeNode newNodeB = new TreeNode(2,"B"); +// TreeNode newNodeC = new TreeNode(3,"C"); +// TreeNode newNodeD = new TreeNode(4,"D"); +// TreeNode newNodeE = new TreeNode(5,"E"); +// TreeNode newNodeF = new TreeNode(6,"F"); +// bt.root.leftChild=newNodeB; +// bt.root.rightChild=newNodeC; +// bt.root.leftChild.leftChild=newNodeD; +// bt.root.leftChild.rightChild=newNodeE; +// bt.root.rightChild.rightChild=newNodeF; + + + + System.out.println("the size of the tree is " + bt.size()); + System.out.println("the height of the tree is " + bt.height()); + + System.out.println("*******(前序遍历)[ABDECF]遍历*****************"); + bt.preOrder(bt.root); + + System.out.println("*******(中序遍历)[DBEACF]遍历*****************"); + bt.inOrder(bt.root); + + System.out.println("*******(后序遍历)[DEBFCA]遍历*****************"); + bt.postOrder(bt.root); + +// System.out.println("***非递归实现****(前序遍历)[ABDECF]遍历*****************"); +// bt.nonRecPreOrder(bt.root); +// +// System.out.println("***非递归实现****(中序遍历)[DBEACF]遍历*****************"); +// bt.nonRecInOrder(bt.root); +// +// System.out.println("***非递归实现****(后序遍历)[DEBFCA]遍历*****************"); +// bt.noRecPostOrder(bt.root); + + + + } + +} diff --git a/src/test/java/test/nw/StreamTest.java b/src/test/java/test/nw/StreamTest.java new file mode 100644 index 0000000..01ac59f --- /dev/null +++ b/src/test/java/test/nw/StreamTest.java @@ -0,0 +1,41 @@ +package test.nw; + +import java.util.List; +import java.util.stream.Collectors; +import java.util.stream.Stream; + +public class StreamTest { +public static void main(String[] args) { + +// ArrayList l = new ArrayList(); +// l.add(11); +// //l.forEach(i->i=222); +// l.stream().map(i->i=22).collect(Collectors.toList()); +// System.out.println(l); + +// ArrayList l = new ArrayList(); +// HashMap m = new HashMap(); +// m.put("aaa", "aaa"); +// l.add(m); +// +//// l.stream().map(i->i="bbb").toArray(); +//// System.out.println(l.toString()); +// //l.forEach(i->i.put("aaa", "bbb")); +// +// l.stream().map(i->i.put("aaa", "bbb")); +// System.out.println(l); + + + + + + + List steam = List.of("abc","defg","hijk"); + //steam.stream().flatMap(Collection::stream); + List lls = steam.stream().flatMap(i->{ + return Stream.of(i.split("")); + }).collect(Collectors.toList()); + lls.forEach(System.out::println); + + } +} diff --git a/src/test/java/test/nw/TimeTest.java b/src/test/java/test/nw/TimeTest.java new file mode 100644 index 0000000..6c726cd --- /dev/null +++ b/src/test/java/test/nw/TimeTest.java @@ -0,0 +1,53 @@ +package test.nw; + +import java.time.Duration; +import java.time.LocalDateTime; +import java.time.format.DateTimeFormatter; +import java.time.temporal.ChronoUnit; + +import org.apache.commons.lang3.time.FastDateFormat; + +public class TimeTest { + + public static void main(String[] args) { +// LocalDateTime now = LocalDateTime.now(); +// now = now.truncatedTo(ChronoUnit.SECONDS); +// System.out.println(now.plusMinutes(120)); +// System.out.println(now.minusMinutes(61)); +// FastDateFormat s = FastDateFormat.getInstance(); +// LocalDateTime ordertime = LocalDateTime.now().truncatedTo(ChronoUnit.DAYS); +// System.out.println(ordertime.with(LocalTime.MAX)); + System.err.println(Duration.ofHours( 24 ).toMinutes()); + + +// int gapInMinutes = 60 ; // Define your span-of-time. +// int loops = ( (int) Duration.ofHours( 24 ).toMinutes() / gapInMinutes ) ; +// List times = new ArrayList<>( loops ) ; +// +// LocalTime time = LocalTime.MIN ; // '00:00' +// +// for( int i = 1 ; i <= loops ; i ++ ) { +// times.add( time ) ; +// // Set up next loop. +// time = time.plusMinutes( gapInMinutes ) ; +// } +// +// System.out.println( times.size() + " time slots: " ) ; +// System.out.println( times ) ; + + + LocalDateTime now = LocalDateTime.now(); + System.out.println(now); + DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyyMMddHHmmssSSSSSS"); + + System.out.println(now.format(formatter)); + + + int[] totle= new int[]{}; + System.out.println(totle.length); + + } + + + +} diff --git a/src/test/java/test/nw/UrlTest.java b/src/test/java/test/nw/UrlTest.java new file mode 100644 index 0000000..63234d9 --- /dev/null +++ b/src/test/java/test/nw/UrlTest.java @@ -0,0 +1,68 @@ +package test.nw; + +import org.apache.commons.lang3.StringUtils; + +public class UrlTest { + public static void main(String[] args) { + String uri = "/zz/v3/s/api-docs.yaml/{group}"; + uri="/t/s/bbb"; + +// +// UriComponentsBuilder.fromUriString(uri).build().getPathSegments() +// .stream().forEach(s->{ +// System.out.println(s); +// }); + +// PathContainer pathContainer = PathContainer.parsePath(uri); +// +// System.out.println(pathContainer.subPath(0)); +// System.out.println(pathContainer.subPath(1)); +// System.out.println(pathContainer.subPath(2)); +// System.out.println(pathContainer.subPath(3)); +// System.out.println(pathContainer.subPath(4)); +// System.out.println(pathContainer.subPath(5)); +// System.out.println( Paths.get(UriComponentsBuilder.fromUriString("file://"+uri).build().toUri()).getParent()); +// System.out.println( Paths.get(UriComponentsBuilder.fromUriString("file://"+uri).build().toUri()).getParent().getParent()); +// System.out.println( Paths.get(UriComponentsBuilder.fromUriString("file://"+uri).build().toUri()).getParent().getParent().getParent()); +// System.out.println( Paths.get(UriComponentsBuilder.fromUriString("file://"+uri).build().toUri()).getParent().getParent().getParent().getParent()); + + + +// URI uu = UriComponentsBuilder.fromUriString("file://"+uri).build().toUri(); +// +// +// List list = UriComponentsBuilder.fromUriString("file://"+uri).build().getPathSegments(); +// List paths = new ArrayList(); +// Path path = Paths.get(uu); +// paths.add(path); +//// list.stream().map(i->{ +//// i="/"+i; +//// return i; +//// }).forEach(System.out::println); +// for(int i=0;i parents = TestController.getAllParents("/a/b/c/d"); +// System.out.println(parents); +// +// for(int i=parents.size()-1; i>=0; i--) { +//// if(i>0) { +// System.err.println(i+" "+parents.get(i)); +//// } +// } + + + System.err.println(StringUtils.startsWith("a/b/c", "/")); + +// DateTimeFormatter formatter = DateTimeFormatter.ofPattern( "yyyy-MM-dd HH:mm:ss" ); +// Instant.now().atZone(ZoneOffset.systemDefault()).format(formatter); +// System.out.println(); +// System.out.println(DateUtils.truncate(new Date(), Calendar.SECOND)); + + + } +} diff --git a/src/test/resources/application.yml b/src/test/resources/application.yml new file mode 100644 index 0000000..556a990 --- /dev/null +++ b/src/test/resources/application.yml @@ -0,0 +1,62 @@ +##约定大于配置,请勿重复造轮 +server: #服务端口 + port: 8083 +##spring---------- +spring: + application: + name: zwyy + datasource: + type: com.zaxxer.hikari.HikariDataSource + #url: jdbc:h2:./test;AUTO_SERVER=TRUE #连接池Database 嵌入模式:jdbc:h2:~/test-jooq FILE_LOCK=SOCKET MODE=MySQL;;AUTO_SERVER=TRUE + url: jdbc:h2:./test;MODE=MySQL;AUTO_SERVER=TRUE + username: sa + password: + hikari: + driver-class-name: org.h2.Driver +# url: jdbc:mariadb://147.78.243.242:3306/test +# username: root +# password: open123 +# hikari: +# driver-class-name: org.mariadb.jdbc.Driver + jackson: + date-format: yyyy-MM-dd HH:mm:ss + + h2: + console: + enabled: true #开启h2数据库的浏览器管理界面 + settings: + web-allow-others: true + trace: true #是否可以远程web + #path: /h2-console #h2浏览器管理访问路径,默认:/h2-console + sql: + init: + mode: never ##加载脚本datasource.initialize已弃用,spring.sql.init.mode=never/always + continue-on-error: true #初始化错误,继续执行 + encoding: utf-8 #加载sql文件的编码连接池ue #初始化错误,继续执行 + data-locations: classpath:/sql/data-h2.sql + schema-locations: classpath:/sql/schema-h2.sql #spring boot 默认启动使用springJDBC初始化数据脚本, 加载类路径下的 schema-${platform}.sql \ data-${platform}.sql数据 + platform: h2 + #elasticsearch: + #jest: + #uris: http://loalhost:9200 + #read-timeout: 1000 +# 多数据源 +# app: +# datasource: +# type: com.zaxxer.hikari.HikariDataSource +# jdbcUrl: jdbc:h2:~/test-jooq;AUTO_SERVER=TRUE +# username: sa +# password: +# ##连接池 +# hikari: +# driver-class-name: org.h2.Driver + + +#logging: +# level: +# root: info +# org.jooq: debug +# org.springframework.amqp: debug +# org.mybatis: debug +# org.mybatis.dynamic.sql: debug +# jj.tech.paolu: debug diff --git a/src/test/resources/banner.txt b/src/test/resources/banner.txt new file mode 100644 index 0000000..df4ef43 --- /dev/null +++ b/src/test/resources/banner.txt @@ -0,0 +1,17 @@ +/ \ + /X/ \X\ +|XX\ _____ /XX| +|XXX\ _/ \_ /XXX|___________ + \XXXXXXX XXXXXXX/ \\\ + \XXXX / \ XXXXX/ \\\ + | 0 0 | \ + | | \ + \ / |______// + \ / | + | O_O | \ | + \ _ / \________________ | + | | | | \ / + No Bullshit, / | / | \______/ + Please... \ | \ | \ | \ | + __| |__| | __| |__| | + |___||___| |___||___| \ No newline at end of file diff --git a/src/test/resources/bootstrap.yml b/src/test/resources/bootstrap.yml new file mode 100644 index 0000000..8e04bc1 --- /dev/null +++ b/src/test/resources/bootstrap.yml @@ -0,0 +1,22 @@ +spring: + cloud: + consul: + scheme: https + host: consul.164500.xyz + port: 443 + discovery: + acl-token: b2gs44ddr3 +# service-name: ${spring.application.name} +# https://github.com/spring-cloud/spring-cloud-consul/pull/590#issuecomment-1473038044 + heartbeat: + enabled: true + deregister: true + health-check-critical-timeout: 30s + +# config: +# acl-token: b1gs33cr3t + #discovery: + #register-health-check: true +# discovery: +# ip-address: 192.168.43.15 +# #hostname: doudou diff --git a/src/test/resources/generate/jooq/JooqConfig.xml b/src/test/resources/generate/jooq/JooqConfig.xml new file mode 100644 index 0000000..d52ea11 --- /dev/null +++ b/src/test/resources/generate/jooq/JooqConfig.xml @@ -0,0 +1,41 @@ + + + + + + org.h2.Driver + jdbc:h2:~/test;MODE=MySQL;AUTO_SERVER=TRUE + sa + + + + + + + PUBLIC + + .* + + + + + + true + true + + true + + + true + + + + + jj.tech.paolu.repository.jooq + target/generated-sources/repository + + + \ No newline at end of file diff --git a/src/test/resources/generate/mybatis/generatorConfig.xml b/src/test/resources/generate/mybatis/generatorConfig.xml new file mode 100644 index 0000000..e5dd223 --- /dev/null +++ b/src/test/resources/generate/mybatis/generatorConfig.xml @@ -0,0 +1,79 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + +
+
diff --git a/src/test/resources/logback.xml b/src/test/resources/logback.xml new file mode 100644 index 0000000..46ada04 --- /dev/null +++ b/src/test/resources/logback.xml @@ -0,0 +1,44 @@ + + + + + + http://192.168.0.123:3100/loki/api/v1/push + + + + + + %d{yyyy-MM-dd HH-mm-ss.SSSXXX} [%thread] %-5level %logger{36} -%kvp- %msg%n + + true + + + + + + + %d{yyyy-MM-dd HH-mm-ss.SSSXXX} [%thread] %-5level %logger{36} -%kvp- %msg%n + + + + + + + + + + + + + + + + + + + + diff --git a/src/test/resources/sql/V1_0__schema-h2.sql b/src/test/resources/sql/V1_0__schema-h2.sql new file mode 100644 index 0000000..27aa437 --- /dev/null +++ b/src/test/resources/sql/V1_0__schema-h2.sql @@ -0,0 +1,415 @@ + DROP ALL OBJECTS; + +DROP TABLE IF EXISTS sys_admin; +CREATE TABLE sys_admin +( + id INT NOT NULL auto_increment, + realname VARCHAR(50) NOT NULL, + username VARCHAR(50) NOT NULL, + password VARCHAR(70) NOT NULL COMMENT 'sha3_256Hex', + islock INT DEFAULT 0 COMMENT '0正常,1锁定', + PRIMARY KEY (id) +); + +DROP TABLE IF EXISTS sys_role; +CREATE TABLE sys_role +( + id INT NOT NULL auto_increment, + rolename VARCHAR(50) NOT NULL, + department VARCHAR(50) NOT NULL, + PRIMARY KEY (id) +); + +DROP TABLE IF EXISTS sys_admin_role; +CREATE TABLE sys_admin_role ( + id INT NOT NULL auto_increment, + admin_id INT NOT NULL, + role_id INT NOT NULL, + PRIMARY KEY (id) +); + +DROP TABLE IF EXISTS `sys_resource`; +CREATE TABLE `sys_resource` ( + id INT NOT NULL auto_increment, + parent_id INT DEFAULT NULL, + level smallint DEFAULT NULL COMMENT '菜单排列顺序', + name VARCHAR(50) DEFAULT NULL, + types VARCHAR(40) DEFAULT NULL COMMENT '资源类型', + url VARCHAR(200) DEFAULT NULL, + icon VARCHAR(100) DEFAULT NULL COMMENT '菜单图标', + ishide tinyint DEFAULT '0' COMMENT '是否折叠隐藏', + description VARCHAR(200) DEFAULT NULL, + PRIMARY KEY (`id`) +); + +DROP TABLE IF EXISTS `sys_role_resource`; +CREATE TABLE `sys_role_resource` ( + `role_id` INT NOT NULL, + `res_id` INT NOT NULL, + PRIMARY KEY (`role_id`,`res_id`) +); + +DROP TABLE IF EXISTS SYS_URLS; +CREATE TABLE SYS_URLS ( + id INT NOT NULL auto_increment, + pid INT COMMENT '父类ID', + types INT DEFAULT 1 COMMENT '1:url,2:菜单', + level INT DEFAULT 0 COMMENT '0:url,1:一级菜单, 2:二级菜单', + url VARCHAR(300) DEFAULT NULL, + name VARCHAR(200) DEFAULT NULL, + method VARCHAR(200) DEFAULT NULL, + PRIMARY KEY (id), + UNIQUE (url) +); + +DROP TABLE IF EXISTS sys_role_url; +CREATE TABLE sys_role_url ( + id INT NOT NULL auto_increment, + role_id INT NOT NULL, + url VARCHAR(300) NOT NULL COMMENT '对应SYS_URLS的url', + urltypes INT NOT NULL COMMENT '1:url,2:菜单', + PRIMARY KEY (id) +); + + + + + + + + + +DROP TABLE IF EXISTS SCHOOL; +CREATE TABLE SCHOOL +( + id INT NOT NULL AUTO_INCREMENT, + name VARCHAR(200) COMMENT '学校名称', + sort INT NOT NULL AUTO_INCREMENT COMMENT '学校排序', + inshow INT DEFAULT 1 COMMENT '是否显示:0不显示,1显示', + PRIMARY KEY (id) +); + + +DROP TABLE IF EXISTS SCHOOL_DISTRICT; +CREATE TABLE SCHOOL_DISTRICT +( + id INT NOT NULL AUTO_INCREMENT, + schoolid INT NOT NULL COMMENT '所属学校ID', + district VARCHAR(200) COMMENT '校区名称', + sort INT NOT NULL AUTO_INCREMENT COMMENT '校区排序', + inshow INT DEFAULT 1 COMMENT '是否显示:0不显示,1显示', + edittime DATETIME DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '最后编辑时间', + PRIMARY KEY (id) +); + + +DROP TABLE IF EXISTS SCHOOL_DISTRICT_BUILDING; +CREATE TABLE SCHOOL_DISTRICT_BUILDING +( + id INT NOT NULL AUTO_INCREMENT, + districtid INT COMMENT '所属分校ID', + building VARCHAR(200) COMMENT '建筑名称', + sort INT NOT NULL AUTO_INCREMENT COMMENT '楼排序', + inshow int DEFAULT 1 COMMENT '是否显示:0不显示,1显示', + PRIMARY KEY (id) +); + + +DROP TABLE IF EXISTS SCHOOL_DISTRICT_BUILDING_FLOOR; +CREATE TABLE SCHOOL_DISTRICT_BUILDING_FLOOR +( + id INT NOT NULL AUTO_INCREMENT, + buildingid INT COMMENT '所属建筑ID', + floor VARCHAR(200) COMMENT '楼层名称', + sort INT NOT NULL AUTO_INCREMENT COMMENT '楼层排序', + inshow int DEFAULT 1 COMMENT '是否显示:0不显示,1显示', + PRIMARY KEY (id) +); + + + +DROP TABLE IF EXISTS ROOM; +CREATE TABLE ROOM +( + id INT NOT NULL AUTO_INCREMENT, + + districtid INT COMMENT '所属分校ID', + districtname VARCHAR(200) COMMENT '分校名称', + buildingid INT COMMENT '所属建筑ID', + buildingname VARCHAR(200) COMMENT '建筑名称', + floorid INT COMMENT '所属楼层ID', + floorname VARCHAR(200) COMMENT '楼层名称', + + room VARCHAR(200) COMMENT '房间名称', + frontname VARCHAR(200) COMMENT '正前方名称', + sort INT NOT NULL AUTO_INCREMENT COMMENT '房间排序', + inshow INT DEFAULT 1 COMMENT '是否显示:0不显示,1显示', + rols INT DEFAULT 10 COMMENT '一共多少行', + cols INT DEFAULT 10 COMMENT '一共多少列', + seatscount INT DEFAULT 0 COMMENT '一共多少个座位', + edittime DATETIME DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '最后编辑时间', + PRIMARY KEY (id) +); + +-- 房间对应的座位 +DROP TABLE IF EXISTS ROOM_SEATS; +CREATE TABLE ROOM_SEATS +( + id INT NOT NULL AUTO_INCREMENT, + seatname VARCHAR(200) COMMENT '座位名称', + seatvalue VARCHAR(200) COMMENT '座位选中后的值', + roomid INT NOT NULL COMMENT '房间ID', + roomname VARCHAR(200) COMMENT '房间名称', + typesid INT DEFAULT 0 COMMENT '关联SEATS_TYPE', + inshow INT DEFAULT 1 COMMENT '是否显示:0禁用,1可用', + rol INT COMMENT '行', + col INT COMMENT '列', + PRIMARY KEY (id) +); + + +-- 座位类型 +DROP TABLE IF EXISTS SEATS_TYPE; +CREATE TABLE SEATS_TYPE +( + id INT NOT NULL AUTO_INCREMENT, + typename VARCHAR(50) COMMENT '名称: 普通,研究生,教师, 勤工助学区等', + typeval VARCHAR(50) COMMENT '值: 1身份, 2座位区域,对应所有身份', + colour VARCHAR(50) COMMENT '座位颜色', + isapply INT DEFAULT 1 COMMENT '0不启用,1启用', + PRIMARY KEY (id), + UNIQUE (colour) +); + +-- 座位相关设备 +DROP TABLE IF EXISTS SEATS_DEVICE; +CREATE TABLE SEATS_DEVICE +( + id INT NOT NULL AUTO_INCREMENT, + seatsid INT NOT NULL COMMENT '座位ID', + deviceid INT NOT NULL COMMENT '设备ID', + devicename INT NOT NULL COMMENT '设备名称', + PRIMARY KEY (id) +); + +-- 设备表 +DROP TABLE IF EXISTS DEVICE; +CREATE TABLE DEVICE +( + id INT NOT NULL AUTO_INCREMENT, + name VARCHAR(50) COMMENT '名称: 0电源, 1网口, ...', + val INT DEFAULT 0 COMMENT '值: 0电源, 1网口, ...', + isapply INT DEFAULT 1 COMMENT '0不启用,1启用', + PRIMARY KEY (id) +); + +-- 模板 +DROP TABLE IF EXISTS TEMPLATE; +CREATE TABLE TEMPLATE +( + id INT NOT NULL AUTO_INCREMENT, + name VARCHAR(200) COMMENT '模板名称', + frontname VARCHAR(200) COMMENT '正前方名称', + rols INT COMMENT '一共多少行', + cols INT COMMENT '一共多少列', + seatscount INT DEFAULT 0 COMMENT '一共多少个座位', + PRIMARY KEY (id) +); + +-- 模板的座位 +DROP TABLE IF EXISTS TEMPLATE_SEATS; +CREATE TABLE TEMPLATE_SEATS +( + id INT NOT NULL AUTO_INCREMENT, + templateid INT NOT NULL COMMENT '模板ID', + seatname VARCHAR(200) COMMENT '座位名称', + seatvalue VARCHAR(200) COMMENT '座位选中后的值', + typesid INT DEFAULT 0 COMMENT '关联SEATS_TYPE', + inshow INT DEFAULT 1 COMMENT '是否显示:0禁用,1可用', + rol INT COMMENT '行', + col INT COMMENT '列', + PRIMARY KEY (id) +); + + + +-- 用户信息 +DROP TABLE IF EXISTS USER_INFO; +CREATE TABLE USER_INFO ( + id INT NOT NULL AUTO_INCREMENT, + realname VARCHAR(200) NOT NULL, + nickname VARCHAR(200) NOT NULL, + username VARCHAR(200) NOT NULL, + password VARCHAR(70) NOT NULL, + usertypeid INT DEFAULT 0 COMMENT '0本科生,1研究生,2教师,3其他', + islock INT DEFAULT 0 COMMENT '0正常,1锁定', + source INT DEFAULT 0 COMMENT '0注册,1第三方,3管理员添加', + head_img VARCHAR(1000), + PRIMARY KEY (id), + UNIQUE (username) +); + +-- 用户类型 +DROP TABLE IF EXISTS USER_INFO_TYPE; +CREATE TABLE USER_INFO_TYPE ( + id INT NOT NULL AUTO_INCREMENT, + name VARCHAR(50) COMMENT '名称: 0本科生,1研究生,2教师,3其他', + val VARCHAR(50) COMMENT '值: 0本科生,1研究生,2教师,3其他', + isapply INT DEFAULT 1 COMMENT '0不启用,1启用', + PRIMARY KEY (id) +); + +-- 用户座位预约 +DROP TABLE IF EXISTS USER_SEATS; +CREATE TABLE USER_SEATS ( + id INT NOT NULL AUTO_INCREMENT, + userid INT NOT NULL, + username VARCHAR(200) NOT NULL, + roomid INT NOT NULL COMMENT '所属房间ID', + room VARCHAR(200) COMMENT '房间名称', + seatid INT NOT NULL COMMENT '座位ID', + seatname VARCHAR(200) COMMENT '座位名称', + seatvalue VARCHAR(200) COMMENT '座位选中后的值', + duetime DATETIME COMMENT '预约下单时间', + duestartime DATETIME COMMENT '预约座位开始时间', + dueendtime DATETIME COMMENT '预约座位结束时间', + duestatu INT DEFAULT 1 COMMENT '预约状态:1预约成功,2签到成功,3结束', + PRIMARY KEY (id) +); + +-- 用户投诉表 +DROP TABLE IF EXISTS USER_COMPLAIN; +CREATE TABLE USER_COMPLAIN ( + id INT NOT NULL AUTO_INCREMENT, + userid INT NOT NULL, + username VARCHAR(200) NOT NULL, + usertypeid INT DEFAULT 0 COMMENT '0本科生,1研究生,2教师,3职工', + complain VARCHAR(4000), + committime DATETIME COMMENT '提交时间', + isdelete INT DEFAULT 0 COMMENT '0未删除,1已删除', + PRIMARY KEY (id) +); + +-- 用户座位维修表 +DROP TABLE IF EXISTS USER_REPAIR; +CREATE TABLE USER_REPAIR ( + id INT NOT NULL AUTO_INCREMENT, + userid INT NOT NULL, + username VARCHAR(200) NOT NULL, + usertypeid INT DEFAULT 0 COMMENT '0本科生,1研究生,2教师,3职工', + repair VARCHAR(4000), + committime DATETIME COMMENT '提交时间', + isdelete INT DEFAULT 0 COMMENT '0未删除,1已删除', + PRIMARY KEY (id) +); + + +-- 预约规则 +DROP TABLE IF EXISTS RULE; +CREATE TABLE RULE ( + id INT NOT NULL AUTO_INCREMENT, + name VARCHAR(200) NOT NULL, + startime DATETIME COMMENT '规则开始时间', + endtime DATETIME COMMENT '规则结束时间', + circle INT DEFAULT 0 COMMENT '0单次,1每年循环', + types INT DEFAULT 0 COMMENT '0网络预约,1现场预约', + signedtimeout INT COMMENT '签到超时分钟', + stepawaytimeout INT COMMENT '可以暂时离开分钟', + bookdate INT COMMENT '可预约天数', + opentime DATETIME COMMENT '可预约放号时间', + renewaltime INT COMMENT '续座时间分钟', + canceltime INT DEFAULT 20 COMMENT '预约后可以取消的时间', + cancelnumber INT DEFAULT 5 COMMENT '预约后可以取消次数', + PRIMARY KEY (id) +); + +-- 预约规则对应的用户类型 +DROP TABLE IF EXISTS RULE_USERTYPE; +CREATE TABLE RULE_USERTYPE ( + id INT NOT NULL AUTO_INCREMENT, + ruleid INT NOT NULL COMMENT '预约规则ID', + usertypeid INT NOT NULL COMMENT '用户类型ID', + PRIMARY KEY (id) +); + + +-- 预约规则违约对应的访问区域 +DROP TABLE IF EXISTS RULE_REGION; +CREATE TABLE RULE_REGION ( + id INT NOT NULL AUTO_INCREMENT, + ruleid INT NOT NULL COMMENT '预约规则ID', + roomid INT NOT NULL COMMENT '所属房间ID', + PRIMARY KEY (id) +); + +-- 房间对应的预约规则 +DROP TABLE IF EXISTS ROOM_RULE; +CREATE TABLE ROOM_RULE ( + id INT NOT NULL AUTO_INCREMENT, + roomid INT NOT NULL COMMENT '房间ID', + ruleid INT NOT NULL COMMENT '预约规则ID', + PRIMARY KEY (id) +); + + + +-- 违反预约规则记录 +DROP TABLE IF EXISTS ILLEGA_RECORD; +CREATE TABLE ILLEGA_RECORD ( + id INT NOT NULL AUTO_INCREMENT, + userid INT NOT NULL, + username VARCHAR(200) NOT NULL, + ruleid INT NOT NULL COMMENT '预约规则ID', + reason VARCHAR(200) COMMENT '违规原因', + illegatime DATETIME COMMENT '违规时间', + PRIMARY KEY (id) +); + +-- 黑名单列表 +DROP TABLE IF EXISTS USER_BLACKLIST; +CREATE TABLE USER_BLACKLIST ( + id INT NOT NULL AUTO_INCREMENT, + userid INT NOT NULL, + username VARCHAR(200) NOT NULL, + types INT DEFAULT 0 COMMENT '0本科生,1研究生,2教师,3其他', + reason VARCHAR(500) COMMENT '拉黑原因', + committime DATETIME COMMENT '提交时间', + isrelease INT DEFAULT 0 COMMENT '是否释放:0否,1释放', + PRIMARY KEY (id) +); + +-- 用户消息 +DROP TABLE IF EXISTS MESSAGE_USER; +CREATE TABLE MESSAGE_USER ( + id INT NOT NULL AUTO_INCREMENT, + userid INT NOT NULL, + username VARCHAR(200) NOT NULL, + types INT DEFAULT 0 COMMENT '0本科生,1研究生,2教师,3职工', + messagetypes INT DEFAULT 0 COMMENT '0系统,1短信', + message VARCHAR(4000), + committime DATETIME COMMENT '提交时间', + isdelete INT DEFAULT 0 COMMENT '0未删除,1已删除', + PRIMARY KEY (id) +); + +-- 管理员消息 +DROP TABLE IF EXISTS MESSAGE_ADMIN; +CREATE TABLE MESSAGE_ADMIN ( + id INT NOT NULL AUTO_INCREMENT, + adminid INT NOT NULL, + adminname VARCHAR(200) NOT NULL, + types INT DEFAULT 0 COMMENT '0本科生,1研究生,2教师,3职工', + messagetypes INT DEFAULT 0 COMMENT '0系统,1短信', + message VARCHAR(4000), + committime DATETIME COMMENT '提交时间', + isdelete INT DEFAULT 0 COMMENT '0未删除,1已删除', + PRIMARY KEY (id) +); + +-- 门禁打卡记录 +DROP TABLE IF EXISTS ACCESS_CONTROL_RECORD; +CREATE TABLE ACCESS_CONTROL_RECORD ( + id INT NOT NULL AUTO_INCREMENT, + accesstime DATETIME COMMENT '刷卡时间', + PRIMARY KEY (id) +); \ No newline at end of file diff --git a/src/test/resources/xml/DaoHome.ftl b/src/test/resources/xml/DaoHome.ftl new file mode 100644 index 0000000..6a1e4b6 --- /dev/null +++ b/src/test/resources/xml/DaoHome.ftl @@ -0,0 +1,218 @@ +<#assign package = pojo.getPackageDeclaration()> +${package?substring(0,package?length-1)}.daos; +// Generated ${date} by Hibernate Tools ${version} + +import ${pojo.getQualifiedDeclarationName()}; +<#assign classbody> +<#assign declarationName = pojo.importType(pojo.getDeclarationName())>/** + * Home object for domain model class ${declarationName}. + * @see ${pojo.getQualifiedDeclarationName()} + * @author Hibernate Tools + */ +<#if ejb3> + +@${pojo.importType("javax.ejb.Stateless")} + + + +<#if pojo.hasIdentifierProperty()> +${pojo.getJavaTypeName(clazz.identifierProperty, jdk5)} + +public class ${declarationName}Dao { + + private static final ${pojo.importType("java.util.logging.Logger")} logger = ${pojo.importType("Logger")}.getLogger(${pojo.getDeclarationName()}Dao.class.getName()); + +<#if ejb3> + @${pojo.importType("jakarta.persistence.PersistenceContext")} private ${pojo.importType("jakarta.persistence.EntityManager")} entityManager; + + public void persist(${declarationName} transientInstance) { + logger.log(${pojo.importType("java.util.logging.Level")}.INFO, "persisting ${declarationName} instance"); + try { + entityManager.persist(transientInstance); + logger.log(${pojo.importType("java.util.logging.Level")}.INFO, "persist successful"); + } + catch (RuntimeException re) { + logger.log(${pojo.importType("java.util.logging.Level")}.SEVERE, "persist failed", re); + throw re; + } + } + + public void remove(${declarationName} persistentInstance) { + logger.log(${pojo.importType("java.util.logging.Level")}.INFO, "removing ${declarationName} instance"); + try { + entityManager.remove(persistentInstance); + logger.log(${pojo.importType("java.util.logging.Level")}.INFO, "remove successful"); + } + catch (RuntimeException re) { + logger.log(${pojo.importType("java.util.logging.Level")}.SEVERE, "remove failed", re); + throw re; + } + } + + public ${declarationName} merge(${declarationName} detachedInstance) { + logger.log(${pojo.importType("java.util.logging.Level")}.INFO, "merging ${declarationName} instance"); + try { + ${declarationName} result = entityManager.merge(detachedInstance); + logger.log(${pojo.importType("java.util.logging.Level")}.INFO, "merge successful"); + return result; + } + catch (RuntimeException re) { + logger.log(${pojo.importType("java.util.logging.Level")}.SEVERE, "merge failed", re); + throw re; + } + } + +<#if clazz.identifierProperty?has_content> + public ${declarationName} findById( ${pojo.getJavaTypeName(clazz.identifierProperty, jdk5)} id) { + logger.log(${pojo.importType("java.util.logging.Level")}.INFO, "getting ${declarationName} instance with id: " + id); + try { + ${declarationName} instance = entityManager.find(${pojo.getDeclarationName()}.class, id); + logger.log(${pojo.importType("java.util.logging.Level")}.INFO, "get successful"); + return instance; + } + catch (RuntimeException re) { + logger.log(${pojo.importType("java.util.logging.Level")}.SEVERE, "get failed", re); + throw re; + } + } + +<#else> + private final ${pojo.importType("org.hibernate.SessionFactory")} sessionFactory = getSessionFactory(); + + protected ${pojo.importType("org.hibernate.SessionFactory")} getSessionFactory() { + try { + return (${pojo.importType("org.hibernate.SessionFactory")}) new ${pojo.importType("javax.naming.InitialContext")}().lookup("sessionFactoryName"); + } + catch (Exception e) { + logger.log(${pojo.importType("java.util.logging.Level")}.SEVERE, "Could not locate SessionFactory in JNDI", e); + throw new IllegalStateException("Could not locate SessionFactory in JNDI"); + } + } + + public void persist(${declarationName} transientInstance) { + logger.log(${pojo.importType("java.util.logging.Level")}.INFO, "persisting ${declarationName} instance"); + try { + sessionFactory.getCurrentSession().persist(transientInstance); + logger.log(${pojo.importType("java.util.logging.Level")}.INFO, "persist successful"); + } + catch (RuntimeException re) { + logger.log(${pojo.importType("java.util.logging.Level")}.SEVERE, "persist failed", re); + throw re; + } + } + + public void attachDirty(${declarationName} instance) { + logger.log(${pojo.importType("java.util.logging.Level")}.INFO, "attaching dirty ${declarationName} instance"); + try { + sessionFactory.getCurrentSession().saveOrUpdate(instance); + logger.log(${pojo.importType("java.util.logging.Level")}.INFO, "attach successful"); + } + catch (RuntimeException re) { + logger.log(${pojo.importType("java.util.logging.Level")}.SEVERE, "attach failed", re); + throw re; + } + } + + public void attachClean(${declarationName} instance) { + logger.log(${pojo.importType("java.util.logging.Level")}.INFO, "attaching clean ${declarationName} instance"); + try { + sessionFactory.getCurrentSession().lock(instance, ${pojo.importType("org.hibernate.LockMode")}.NONE); + logger.log(${pojo.importType("java.util.logging.Level")}.INFO, "attach successful"); + } + catch (RuntimeException re) { + logger.log(${pojo.importType("java.util.logging.Level")}.SEVERE, "attach failed", re); + throw re; + } + } + + public void delete(${declarationName} persistentInstance) { + logger.log(${pojo.importType("java.util.logging.Level")}.INFO, "deleting ${declarationName} instance"); + try { + sessionFactory.getCurrentSession().delete(persistentInstance); + logger.log(${pojo.importType("java.util.logging.Level")}.INFO, "delete successful"); + } + catch (RuntimeException re) { + logger.log(${pojo.importType("java.util.logging.Level")}.SEVERE, "delete failed", re); + throw re; + } + } + + public ${declarationName} merge(${declarationName} detachedInstance) { + logger.log(${pojo.importType("java.util.logging.Level")}.INFO, "merging ${declarationName} instance"); + try { + ${declarationName} result = (${declarationName}) sessionFactory.getCurrentSession() + .merge(detachedInstance); + logger.log(${pojo.importType("java.util.logging.Level")}.INFO, "merge successful"); + return result; + } + catch (RuntimeException re) { + logger.log(${pojo.importType("java.util.logging.Level")}.SEVERE, "merge failed", re); + throw re; + } + } + +<#if clazz.identifierProperty?has_content> + public ${declarationName} findById( ${c2j.getJavaTypeName(clazz.identifierProperty, jdk5)} id) { + logger.log(${pojo.importType("java.util.logging.Level")}.INFO, "getting ${declarationName} instance with id: " + id); + try { + ${declarationName} instance = (${declarationName}) sessionFactory.getCurrentSession() + .get("${clazz.entityName}", id); + if (instance==null) { + logger.log(${pojo.importType("java.util.logging.Level")}.INFO, "get successful, no instance found"); + } + else { + logger.log(${pojo.importType("java.util.logging.Level")}.INFO, "get successful, instance found"); + } + return instance; + } + catch (RuntimeException re) { + logger.log(${pojo.importType("java.util.logging.Level")}.SEVERE, "get failed", re); + throw re; + } + } + + + + + +<#if false> +/** +TODO: +<#if jdk5> + public ${pojo.importType("java.util.List")}<${declarationName}> findByExample(${declarationName} instance) { +<#else> + public ${pojo.importType("java.util.List")} findByExample(${declarationName} instance) { + + logger.log(${pojo.importType("java.util.logging.Level")}.INFO, "finding ${declarationName} instance by example"); + try { +<#if jdk5> + ${pojo.importType("java.util.List")}<${declarationName}> results = (List<${declarationName}>) sessionFactory.getCurrentSession() +<#else> + ${pojo.importType("java.util.List")} results = sessionFactory.getCurrentSession() + + .createCriteria("${clazz.entityName}") +<#if jdk5> + .add( ${pojo.staticImport("org.hibernate.criterion.Example", "create")}(instance) ) +<#else> + .add(${pojo.importType("org.hibernate.criterion.Example")}.create(instance)) + + .list(); + logger.log(${pojo.importType("java.util.logging.Level")}.INFO, "find by example successful, result size: " + results.size()); + return results; + } + catch (RuntimeException re) { + logger.log(${pojo.importType("java.util.logging.Level")}.SEVERE, "find by example failed", re); + throw re; + } + } +**/ + + + + + +} + + +${pojo.generateImports()} +${classbody} diff --git a/src/test/resources/xml/hibernate.cfg.xml b/src/test/resources/xml/hibernate.cfg.xml new file mode 100644 index 0000000..8cb32c3 --- /dev/null +++ b/src/test/resources/xml/hibernate.cfg.xml @@ -0,0 +1,31 @@ + + + + + + + org.hibernate.dialect.MySQLDialect + + + org.mariadb.jdbc.Driver + + + + + jdbc:mariadb://192.168.0.123:3306/book + + + root + + + test000000 + + true + + + + + + + \ No newline at end of file diff --git a/src/test/resources/xml/hibernate.properties b/src/test/resources/xml/hibernate.properties new file mode 100644 index 0000000..c03960d --- /dev/null +++ b/src/test/resources/xml/hibernate.properties @@ -0,0 +1,12 @@ +#hibernate.dialect=org.hibernate.dialect.MySQLDialect +#hibernate.connection.driver_class=org.mariadb.jdbc.Driver +#hibernate.connection.url=jdbc:mariadb://192.168.0.123:3306/book +#hibernate.connection.username=root +#hibernate.connection.password=test000000 + +hibernate.dialect=org.hibernate.dialect.H2Dialect +hibernate.connection.driver_class=org.h2.Driver +hibernate.connection.url=jdbc:h2:~/test-jooq;MODE=MySQL;AUTO_SERVER=TRUE +hibernate.connection.username=sa +hibernate.connection.password= +hibernate.user_sql_comments=true \ No newline at end of file diff --git a/src/test/resources/xml/hibernate.reveng.xml b/src/test/resources/xml/hibernate.reveng.xml new file mode 100644 index 0000000..7c0306b --- /dev/null +++ b/src/test/resources/xml/hibernate.reveng.xml @@ -0,0 +1,16 @@ + + + + + + + + + + + + + \ No newline at end of file