From f54ed57735f260552d0975bf41e733a63a005c67 Mon Sep 17 00:00:00 2001 From: ehlxr Date: Thu, 21 May 2020 16:27:48 +0800 Subject: [PATCH] update at 2020-05-21 16:27:48 by ehlxr --- LICENSE | 204 +---- .../java/com/lk/phr/dao/UserQuotaDao.java | 53 ++ src/main/java/com/lk/phr/dao/UserQuotaDao.xml | 240 ++++++ .../com/lk/phr/dao/phr/UserHistoryDao.java | 62 -- .../com/lk/phr/dao/phr/UserHistoryDao.xml | 404 ---------- .../java/com/lk/phr/model/UserQuotaModel.java | 570 ++++++++++++++ .../lk/phr/model/phr/UserHistoryModel.java | 745 ------------------ .../model/phr/UserHistoryModelWithBLOBs.java | 146 ---- src/main/resources/generatorConfig.xml | 10 +- 9 files changed, 885 insertions(+), 1549 deletions(-) create mode 100644 src/main/java/com/lk/phr/dao/UserQuotaDao.java create mode 100644 src/main/java/com/lk/phr/dao/UserQuotaDao.xml delete mode 100644 src/main/java/com/lk/phr/dao/phr/UserHistoryDao.java delete mode 100644 src/main/java/com/lk/phr/dao/phr/UserHistoryDao.xml create mode 100644 src/main/java/com/lk/phr/model/UserQuotaModel.java delete mode 100644 src/main/java/com/lk/phr/model/phr/UserHistoryModel.java delete mode 100644 src/main/java/com/lk/phr/model/phr/UserHistoryModelWithBLOBs.java diff --git a/LICENSE b/LICENSE index c3b2f5c..50fa418 100644 --- a/LICENSE +++ b/LICENSE @@ -1,191 +1,21 @@ -Apache License -Version 2.0, January 2004 -http://www.apache.org/licenses/ +The MIT License (MIT) -TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION +Copyright © 2020 xrv -1. Definitions. +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: -"License" shall mean the terms and conditions for use, reproduction, and -distribution as defined by Sections 1 through 9 of this document. +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. -"Licensor" shall mean the copyright owner or entity authorized by the copyright -owner that is granting the License. - -"Legal Entity" shall mean the union of the acting entity and all other entities -that control, are controlled by, or are under common control with that entity. -For the purposes of this definition, "control" means (i) the power, direct or -indirect, to cause the direction or management of such entity, whether by -contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the -outstanding shares, or (iii) beneficial ownership of such entity. - -"You" (or "Your") shall mean an individual or Legal Entity exercising -permissions granted by this License. - -"Source" form shall mean the preferred form for making modifications, including -but not limited to software source code, documentation source, and configuration -files. - -"Object" form shall mean any form resulting from mechanical transformation or -translation of a Source form, including but not limited to compiled object code, -generated documentation, and conversions to other media types. - -"Work" shall mean the work of authorship, whether in Source or Object form, made -available under the License, as indicated by a copyright notice that is included -in or attached to the work (an example is provided in the Appendix below). - -"Derivative Works" shall mean any work, whether in Source or Object form, that -is based on (or derived from) the Work and for which the editorial revisions, -annotations, elaborations, or other modifications represent, as a whole, an -original work of authorship. For the purposes of this License, Derivative Works -shall not include works that remain separable from, or merely link (or bind by -name) to the interfaces of, the Work and Derivative Works thereof. - -"Contribution" shall mean any work of authorship, including the original version -of the Work and any modifications or additions to that Work or Derivative Works -thereof, that is intentionally submitted to Licensor for inclusion in the Work -by the copyright owner or by an individual or Legal Entity authorized to submit -on behalf of the copyright owner. For the purposes of this definition, -"submitted" means any form of electronic, verbal, or written communication sent -to the Licensor or its representatives, including but not limited to -communication on electronic mailing lists, source code control systems, and -issue tracking systems that are managed by, or on behalf of, the Licensor for -the purpose of discussing and improving the Work, but excluding communication -that is conspicuously marked or otherwise designated in writing by the copyright -owner as "Not a Contribution." - -"Contributor" shall mean Licensor and any individual or Legal Entity on behalf -of whom a Contribution has been received by Licensor and subsequently -incorporated within the Work. - -2. Grant of Copyright License. - -Subject to the terms and conditions of this License, each Contributor hereby -grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, -irrevocable copyright license to reproduce, prepare Derivative Works of, -publicly display, publicly perform, sublicense, and distribute the Work and such -Derivative Works in Source or Object form. - -3. Grant of Patent License. - -Subject to the terms and conditions of this License, each Contributor hereby -grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, -irrevocable (except as stated in this section) patent license to make, have -made, use, offer to sell, sell, import, and otherwise transfer the Work, where -such license applies only to those patent claims licensable by such Contributor -that are necessarily infringed by their Contribution(s) alone or by combination -of their Contribution(s) with the Work to which such Contribution(s) was -submitted. If You institute patent litigation against any entity (including a -cross-claim or counterclaim in a lawsuit) alleging that the Work or a -Contribution incorporated within the Work constitutes direct or contributory -patent infringement, then any patent licenses granted to You under this License -for that Work shall terminate as of the date such litigation is filed. - -4. Redistribution. - -You may reproduce and distribute copies of the Work or Derivative Works thereof -in any medium, with or without modifications, and in Source or Object form, -provided that You meet the following conditions: - -You must give any other recipients of the Work or Derivative Works a copy of -this License; and -You must cause any modified files to carry prominent notices stating that You -changed the files; and -You must retain, in the Source form of any Derivative Works that You distribute, -all copyright, patent, trademark, and attribution notices from the Source form -of the Work, excluding those notices that do not pertain to any part of the -Derivative Works; and -If the Work includes a "NOTICE" text file as part of its distribution, then any -Derivative Works that You distribute must include a readable copy of the -attribution notices contained within such NOTICE file, excluding those notices -that do not pertain to any part of the Derivative Works, in at least one of the -following places: within a NOTICE text file distributed as part of the -Derivative Works; within the Source form or documentation, if provided along -with the Derivative Works; or, within a display generated by the Derivative -Works, if and wherever such third-party notices normally appear. The contents of -the NOTICE file are for informational purposes only and do not modify the -License. You may add Your own attribution notices within Derivative Works that -You distribute, alongside or as an addendum to the NOTICE text from the Work, -provided that such additional attribution notices cannot be construed as -modifying the License. -You may add Your own copyright statement to Your modifications and may provide -additional or different license terms and conditions for use, reproduction, or -distribution of Your modifications, or for any such Derivative Works as a whole, -provided Your use, reproduction, and distribution of the Work otherwise complies -with the conditions stated in this License. - -5. Submission of Contributions. - -Unless You explicitly state otherwise, any Contribution intentionally submitted -for inclusion in the Work by You to the Licensor shall be under the terms and -conditions of this License, without any additional terms or conditions. -Notwithstanding the above, nothing herein shall supersede or modify the terms of -any separate license agreement you may have executed with Licensor regarding -such Contributions. - -6. Trademarks. - -This License does not grant permission to use the trade names, trademarks, -service marks, or product names of the Licensor, except as required for -reasonable and customary use in describing the origin of the Work and -reproducing the content of the NOTICE file. - -7. Disclaimer of Warranty. - -Unless required by applicable law or agreed to in writing, Licensor provides the -Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, -including, without limitation, any warranties or conditions of TITLE, -NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are -solely responsible for determining the appropriateness of using or -redistributing the Work and assume any risks associated with Your exercise of -permissions under this License. - -8. Limitation of Liability. - -In no event and under no legal theory, whether in tort (including negligence), -contract, or otherwise, unless required by applicable law (such as deliberate -and grossly negligent acts) or agreed to in writing, shall any Contributor be -liable to You for damages, including any direct, indirect, special, incidental, -or consequential damages of any character arising as a result of this License or -out of the use or inability to use the Work (including but not limited to -damages for loss of goodwill, work stoppage, computer failure or malfunction, or -any and all other commercial damages or losses), even if such Contributor has -been advised of the possibility of such damages. - -9. Accepting Warranty or Additional Liability. - -While redistributing the Work or Derivative Works thereof, You may choose to -offer, and charge a fee for, acceptance of support, warranty, indemnity, or -other liability obligations and/or rights consistent with this License. However, -in accepting such obligations, You may act only on Your own behalf and on Your -sole responsibility, not on behalf of any other Contributor, and only if You -agree to indemnify, defend, and hold each Contributor harmless for any liability -incurred by, or claims asserted against, such Contributor by reason of your -accepting any such warranty or additional liability. - -END OF TERMS AND CONDITIONS - -APPENDIX: How to apply the Apache License to your work - -To apply the Apache License to your work, attach the following boilerplate -notice, with the fields enclosed by brackets "{}" replaced with your own -identifying information. (Don't include the brackets!) The text should be -enclosed in the appropriate comment syntax for the file format. We also -recommend that a file or class name and description of purpose be included on -the same "printed page" as the copyright notice for easier identification within -third-party archives. - - Copyright 2016 Elvin Henry - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. \ No newline at end of file +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff --git a/src/main/java/com/lk/phr/dao/UserQuotaDao.java b/src/main/java/com/lk/phr/dao/UserQuotaDao.java new file mode 100644 index 0000000..85841c9 --- /dev/null +++ b/src/main/java/com/lk/phr/dao/UserQuotaDao.java @@ -0,0 +1,53 @@ +package com.lk.phr.dao; + +import com.lk.phr.model.UserQuotaModel; + +public interface UserQuotaDao { + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table user_quota + * + * @mbg.generated + */ + int deleteByPrimaryKey(Long id); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table user_quota + * + * @mbg.generated + */ + int insert(UserQuotaModel record); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table user_quota + * + * @mbg.generated + */ + int insertSelective(UserQuotaModel record); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table user_quota + * + * @mbg.generated + */ + UserQuotaModel selectByPrimaryKey(Long id); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table user_quota + * + * @mbg.generated + */ + int updateByPrimaryKeySelective(UserQuotaModel record); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table user_quota + * + * @mbg.generated + */ + int updateByPrimaryKey(UserQuotaModel record); +} \ No newline at end of file diff --git a/src/main/java/com/lk/phr/dao/UserQuotaDao.xml b/src/main/java/com/lk/phr/dao/UserQuotaDao.xml new file mode 100644 index 0000000..bf4992b --- /dev/null +++ b/src/main/java/com/lk/phr/dao/UserQuotaDao.xml @@ -0,0 +1,240 @@ + + + + + + + + + + + + + + + + + + + + + + + + id, medical, user_history_seq_no, user_id, quota_code, quota_value, min_value, max_value, + flag, updated, created, check_date, device_sn, device_no, phr_uid, device_brand + + + + + delete from user_quota + where id = #{id,jdbcType=BIGINT} + + + insert into user_quota (id, medical, user_history_seq_no, + user_id, quota_code, quota_value, + min_value, max_value, flag, + updated, created, check_date, + device_sn, device_no, phr_uid, + device_brand) + values (#{id,jdbcType=BIGINT}, #{medical,jdbcType=BIT}, #{userHistorySeqNo,jdbcType=BIGINT}, + #{userId,jdbcType=BIGINT}, #{quotaCode,jdbcType=VARCHAR}, #{quotaValue,jdbcType=VARCHAR}, + #{minValue,jdbcType=DOUBLE}, #{maxValue,jdbcType=DOUBLE}, #{flag,jdbcType=INTEGER}, + #{updated,jdbcType=TIMESTAMP}, #{created,jdbcType=TIMESTAMP}, #{checkDate,jdbcType=TIMESTAMP}, + #{deviceSn,jdbcType=VARCHAR}, #{deviceNo,jdbcType=VARCHAR}, #{phrUid,jdbcType=BIGINT}, + #{deviceBrand,jdbcType=VARCHAR}) + + + insert into user_quota + + + id, + + + medical, + + + user_history_seq_no, + + + user_id, + + + quota_code, + + + quota_value, + + + min_value, + + + max_value, + + + flag, + + + updated, + + + created, + + + check_date, + + + device_sn, + + + device_no, + + + phr_uid, + + + device_brand, + + + + + #{id,jdbcType=BIGINT}, + + + #{medical,jdbcType=BIT}, + + + #{userHistorySeqNo,jdbcType=BIGINT}, + + + #{userId,jdbcType=BIGINT}, + + + #{quotaCode,jdbcType=VARCHAR}, + + + #{quotaValue,jdbcType=VARCHAR}, + + + #{minValue,jdbcType=DOUBLE}, + + + #{maxValue,jdbcType=DOUBLE}, + + + #{flag,jdbcType=INTEGER}, + + + #{updated,jdbcType=TIMESTAMP}, + + + #{created,jdbcType=TIMESTAMP}, + + + #{checkDate,jdbcType=TIMESTAMP}, + + + #{deviceSn,jdbcType=VARCHAR}, + + + #{deviceNo,jdbcType=VARCHAR}, + + + #{phrUid,jdbcType=BIGINT}, + + + #{deviceBrand,jdbcType=VARCHAR}, + + + + + + update user_quota + + + medical = #{medical,jdbcType=BIT}, + + + user_history_seq_no = #{userHistorySeqNo,jdbcType=BIGINT}, + + + user_id = #{userId,jdbcType=BIGINT}, + + + quota_code = #{quotaCode,jdbcType=VARCHAR}, + + + quota_value = #{quotaValue,jdbcType=VARCHAR}, + + + min_value = #{minValue,jdbcType=DOUBLE}, + + + max_value = #{maxValue,jdbcType=DOUBLE}, + + + flag = #{flag,jdbcType=INTEGER}, + + + updated = #{updated,jdbcType=TIMESTAMP}, + + + created = #{created,jdbcType=TIMESTAMP}, + + + check_date = #{checkDate,jdbcType=TIMESTAMP}, + + + device_sn = #{deviceSn,jdbcType=VARCHAR}, + + + device_no = #{deviceNo,jdbcType=VARCHAR}, + + + phr_uid = #{phrUid,jdbcType=BIGINT}, + + + device_brand = #{deviceBrand,jdbcType=VARCHAR}, + + + where id = #{id,jdbcType=BIGINT} + + + + update user_quota + set medical = #{medical,jdbcType=BIT}, + user_history_seq_no = #{userHistorySeqNo,jdbcType=BIGINT}, + user_id = #{userId,jdbcType=BIGINT}, + quota_code = #{quotaCode,jdbcType=VARCHAR}, + quota_value = #{quotaValue,jdbcType=VARCHAR}, + min_value = #{minValue,jdbcType=DOUBLE}, + max_value = #{maxValue,jdbcType=DOUBLE}, + flag = #{flag,jdbcType=INTEGER}, + updated = #{updated,jdbcType=TIMESTAMP}, + created = #{created,jdbcType=TIMESTAMP}, + check_date = #{checkDate,jdbcType=TIMESTAMP}, + device_sn = #{deviceSn,jdbcType=VARCHAR}, + device_no = #{deviceNo,jdbcType=VARCHAR}, + phr_uid = #{phrUid,jdbcType=BIGINT}, + device_brand = #{deviceBrand,jdbcType=VARCHAR} + where id = #{id,jdbcType=BIGINT} + + \ No newline at end of file diff --git a/src/main/java/com/lk/phr/dao/phr/UserHistoryDao.java b/src/main/java/com/lk/phr/dao/phr/UserHistoryDao.java deleted file mode 100644 index 0393590..0000000 --- a/src/main/java/com/lk/phr/dao/phr/UserHistoryDao.java +++ /dev/null @@ -1,62 +0,0 @@ -package com.lk.phr.dao.phr; - -import com.lk.phr.model.phr.UserHistoryModel; -import com.lk.phr.model.phr.UserHistoryModelWithBLOBs; - -public interface UserHistoryDao { - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table user_history - * - * @mbg.generated - */ - int deleteByPrimaryKey(Long id); - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table user_history - * - * @mbg.generated - */ - int insert(UserHistoryModelWithBLOBs record); - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table user_history - * - * @mbg.generated - */ - int insertSelective(UserHistoryModelWithBLOBs record); - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table user_history - * - * @mbg.generated - */ - UserHistoryModelWithBLOBs selectByPrimaryKey(Long id); - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table user_history - * - * @mbg.generated - */ - int updateByPrimaryKeySelective(UserHistoryModelWithBLOBs record); - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table user_history - * - * @mbg.generated - */ - int updateByPrimaryKeyWithBLOBs(UserHistoryModelWithBLOBs record); - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table user_history - * - * @mbg.generated - */ - int updateByPrimaryKey(UserHistoryModel record); -} \ No newline at end of file diff --git a/src/main/java/com/lk/phr/dao/phr/UserHistoryDao.xml b/src/main/java/com/lk/phr/dao/phr/UserHistoryDao.xml deleted file mode 100644 index f9d7c55..0000000 --- a/src/main/java/com/lk/phr/dao/phr/UserHistoryDao.xml +++ /dev/null @@ -1,404 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - id, user_id, org_id, medical, flag, updated, created, source, seq_no, out_no, check_type_name, - check_type_code, score, evaluate, check_addr, check_organization, device_code, device_no, - entropy_score, phr_uid, check_sub_type - - - - face_url, tongue_url, base_of_tongue_url, obj_json - - - - - delete from user_history - where id = #{id,jdbcType=BIGINT} - - - - insert into user_history (id, user_id, org_id, - medical, flag, updated, - created, source, seq_no, - out_no, check_type_name, check_type_code, - score, evaluate, check_addr, - check_organization, device_code, device_no, - entropy_score, phr_uid, check_sub_type, - face_url, tongue_url, base_of_tongue_url, - obj_json) - values (#{id,jdbcType=BIGINT}, #{userId,jdbcType=BIGINT}, #{orgId,jdbcType=BIGINT}, - #{medical,jdbcType=BIT}, #{flag,jdbcType=INTEGER}, #{updated,jdbcType=TIMESTAMP}, - #{created,jdbcType=TIMESTAMP}, #{source,jdbcType=VARCHAR}, #{seqNo,jdbcType=BIGINT}, - #{outNo,jdbcType=VARCHAR}, #{checkTypeName,jdbcType=VARCHAR}, #{checkTypeCode,jdbcType=VARCHAR}, - #{score,jdbcType=DOUBLE}, #{evaluate,jdbcType=VARCHAR}, #{checkAddr,jdbcType=VARCHAR}, - #{checkOrganization,jdbcType=VARCHAR}, #{deviceCode,jdbcType=VARCHAR}, #{deviceNo,jdbcType=VARCHAR}, - #{entropyScore,jdbcType=DOUBLE}, #{phrUid,jdbcType=BIGINT}, #{checkSubType,jdbcType=VARCHAR}, - #{faceUrl,jdbcType=LONGVARCHAR}, #{tongueUrl,jdbcType=LONGVARCHAR}, #{baseOfTongueUrl,jdbcType=LONGVARCHAR}, - #{objJson,jdbcType=LONGVARCHAR}) - - - - insert into user_history - - - id, - - - user_id, - - - org_id, - - - medical, - - - flag, - - - updated, - - - created, - - - source, - - - seq_no, - - - out_no, - - - check_type_name, - - - check_type_code, - - - score, - - - evaluate, - - - check_addr, - - - check_organization, - - - device_code, - - - device_no, - - - entropy_score, - - - phr_uid, - - - check_sub_type, - - - face_url, - - - tongue_url, - - - base_of_tongue_url, - - - obj_json, - - - - - #{id,jdbcType=BIGINT}, - - - #{userId,jdbcType=BIGINT}, - - - #{orgId,jdbcType=BIGINT}, - - - #{medical,jdbcType=BIT}, - - - #{flag,jdbcType=INTEGER}, - - - #{updated,jdbcType=TIMESTAMP}, - - - #{created,jdbcType=TIMESTAMP}, - - - #{source,jdbcType=VARCHAR}, - - - #{seqNo,jdbcType=BIGINT}, - - - #{outNo,jdbcType=VARCHAR}, - - - #{checkTypeName,jdbcType=VARCHAR}, - - - #{checkTypeCode,jdbcType=VARCHAR}, - - - #{score,jdbcType=DOUBLE}, - - - #{evaluate,jdbcType=VARCHAR}, - - - #{checkAddr,jdbcType=VARCHAR}, - - - #{checkOrganization,jdbcType=VARCHAR}, - - - #{deviceCode,jdbcType=VARCHAR}, - - - #{deviceNo,jdbcType=VARCHAR}, - - - #{entropyScore,jdbcType=DOUBLE}, - - - #{phrUid,jdbcType=BIGINT}, - - - #{checkSubType,jdbcType=VARCHAR}, - - - #{faceUrl,jdbcType=LONGVARCHAR}, - - - #{tongueUrl,jdbcType=LONGVARCHAR}, - - - #{baseOfTongueUrl,jdbcType=LONGVARCHAR}, - - - #{objJson,jdbcType=LONGVARCHAR}, - - - - - - update user_history - - - user_id = #{userId,jdbcType=BIGINT}, - - - org_id = #{orgId,jdbcType=BIGINT}, - - - medical = #{medical,jdbcType=BIT}, - - - flag = #{flag,jdbcType=INTEGER}, - - - updated = #{updated,jdbcType=TIMESTAMP}, - - - created = #{created,jdbcType=TIMESTAMP}, - - - source = #{source,jdbcType=VARCHAR}, - - - seq_no = #{seqNo,jdbcType=BIGINT}, - - - out_no = #{outNo,jdbcType=VARCHAR}, - - - check_type_name = #{checkTypeName,jdbcType=VARCHAR}, - - - check_type_code = #{checkTypeCode,jdbcType=VARCHAR}, - - - score = #{score,jdbcType=DOUBLE}, - - - evaluate = #{evaluate,jdbcType=VARCHAR}, - - - check_addr = #{checkAddr,jdbcType=VARCHAR}, - - - check_organization = #{checkOrganization,jdbcType=VARCHAR}, - - - device_code = #{deviceCode,jdbcType=VARCHAR}, - - - device_no = #{deviceNo,jdbcType=VARCHAR}, - - - entropy_score = #{entropyScore,jdbcType=DOUBLE}, - - - phr_uid = #{phrUid,jdbcType=BIGINT}, - - - check_sub_type = #{checkSubType,jdbcType=VARCHAR}, - - - face_url = #{faceUrl,jdbcType=LONGVARCHAR}, - - - tongue_url = #{tongueUrl,jdbcType=LONGVARCHAR}, - - - base_of_tongue_url = #{baseOfTongueUrl,jdbcType=LONGVARCHAR}, - - - obj_json = #{objJson,jdbcType=LONGVARCHAR}, - - - where id = #{id,jdbcType=BIGINT} - - - - update user_history - set user_id = #{userId,jdbcType=BIGINT}, - org_id = #{orgId,jdbcType=BIGINT}, - medical = #{medical,jdbcType=BIT}, - flag = #{flag,jdbcType=INTEGER}, - updated = #{updated,jdbcType=TIMESTAMP}, - created = #{created,jdbcType=TIMESTAMP}, - source = #{source,jdbcType=VARCHAR}, - seq_no = #{seqNo,jdbcType=BIGINT}, - out_no = #{outNo,jdbcType=VARCHAR}, - check_type_name = #{checkTypeName,jdbcType=VARCHAR}, - check_type_code = #{checkTypeCode,jdbcType=VARCHAR}, - score = #{score,jdbcType=DOUBLE}, - evaluate = #{evaluate,jdbcType=VARCHAR}, - check_addr = #{checkAddr,jdbcType=VARCHAR}, - check_organization = #{checkOrganization,jdbcType=VARCHAR}, - device_code = #{deviceCode,jdbcType=VARCHAR}, - device_no = #{deviceNo,jdbcType=VARCHAR}, - entropy_score = #{entropyScore,jdbcType=DOUBLE}, - phr_uid = #{phrUid,jdbcType=BIGINT}, - check_sub_type = #{checkSubType,jdbcType=VARCHAR}, - face_url = #{faceUrl,jdbcType=LONGVARCHAR}, - tongue_url = #{tongueUrl,jdbcType=LONGVARCHAR}, - base_of_tongue_url = #{baseOfTongueUrl,jdbcType=LONGVARCHAR}, - obj_json = #{objJson,jdbcType=LONGVARCHAR} - where id = #{id,jdbcType=BIGINT} - - - - update user_history - set user_id = #{userId,jdbcType=BIGINT}, - org_id = #{orgId,jdbcType=BIGINT}, - medical = #{medical,jdbcType=BIT}, - flag = #{flag,jdbcType=INTEGER}, - updated = #{updated,jdbcType=TIMESTAMP}, - created = #{created,jdbcType=TIMESTAMP}, - source = #{source,jdbcType=VARCHAR}, - seq_no = #{seqNo,jdbcType=BIGINT}, - out_no = #{outNo,jdbcType=VARCHAR}, - check_type_name = #{checkTypeName,jdbcType=VARCHAR}, - check_type_code = #{checkTypeCode,jdbcType=VARCHAR}, - score = #{score,jdbcType=DOUBLE}, - evaluate = #{evaluate,jdbcType=VARCHAR}, - check_addr = #{checkAddr,jdbcType=VARCHAR}, - check_organization = #{checkOrganization,jdbcType=VARCHAR}, - device_code = #{deviceCode,jdbcType=VARCHAR}, - device_no = #{deviceNo,jdbcType=VARCHAR}, - entropy_score = #{entropyScore,jdbcType=DOUBLE}, - phr_uid = #{phrUid,jdbcType=BIGINT}, - check_sub_type = #{checkSubType,jdbcType=VARCHAR} - where id = #{id,jdbcType=BIGINT} - - \ No newline at end of file diff --git a/src/main/java/com/lk/phr/model/UserQuotaModel.java b/src/main/java/com/lk/phr/model/UserQuotaModel.java new file mode 100644 index 0000000..a7efa36 --- /dev/null +++ b/src/main/java/com/lk/phr/model/UserQuotaModel.java @@ -0,0 +1,570 @@ +package com.lk.phr.model; + +import java.util.Date; + +/** + * + * This class was generated by MyBatis Generator. + * This class corresponds to the database table user_quota + */ +public class UserQuotaModel { + /** + * Database Column Remarks: + * id + * + * This field was generated by MyBatis Generator. + * This field corresponds to the database column user_quota.id + * + * @mbg.generated + */ + private Long id; + + /** + * Database Column Remarks: + * medical + * + * This field was generated by MyBatis Generator. + * This field corresponds to the database column user_quota.medical + * + * @mbg.generated + */ + private Boolean medical; + + /** + * Database Column Remarks: + * user_history序列号 + * + * This field was generated by MyBatis Generator. + * This field corresponds to the database column user_quota.user_history_seq_no + * + * @mbg.generated + */ + private Long userHistorySeqNo; + + /** + * Database Column Remarks: + * user_id + * + * This field was generated by MyBatis Generator. + * This field corresponds to the database column user_quota.user_id + * + * @mbg.generated + */ + private Long userId; + + /** + * Database Column Remarks: + * 指标Code + * + * This field was generated by MyBatis Generator. + * This field corresponds to the database column user_quota.quota_code + * + * @mbg.generated + */ + private String quotaCode; + + /** + * Database Column Remarks: + * 指标值 + * + * This field was generated by MyBatis Generator. + * This field corresponds to the database column user_quota.quota_value + * + * @mbg.generated + */ + private String quotaValue; + + /** + * Database Column Remarks: + * 指标最小值 + * + * This field was generated by MyBatis Generator. + * This field corresponds to the database column user_quota.min_value + * + * @mbg.generated + */ + private Double minValue; + + /** + * Database Column Remarks: + * 指标最大值 + * + * This field was generated by MyBatis Generator. + * This field corresponds to the database column user_quota.max_value + * + * @mbg.generated + */ + private Double maxValue; + + /** + * Database Column Remarks: + * flag + * + * This field was generated by MyBatis Generator. + * This field corresponds to the database column user_quota.flag + * + * @mbg.generated + */ + private Integer flag; + + /** + * Database Column Remarks: + * updated + * + * This field was generated by MyBatis Generator. + * This field corresponds to the database column user_quota.updated + * + * @mbg.generated + */ + private Date updated; + + /** + * Database Column Remarks: + * created + * + * This field was generated by MyBatis Generator. + * This field corresponds to the database column user_quota.created + * + * @mbg.generated + */ + private Date created; + + /** + * Database Column Remarks: + * 监测日期 + * + * This field was generated by MyBatis Generator. + * This field corresponds to the database column user_quota.check_date + * + * @mbg.generated + */ + private Date checkDate; + + /** + * Database Column Remarks: + * 设备编码 + * + * This field was generated by MyBatis Generator. + * This field corresponds to the database column user_quota.device_sn + * + * @mbg.generated + */ + private String deviceSn; + + /** + * Database Column Remarks: + * 设备序列号 + * + * This field was generated by MyBatis Generator. + * This field corresponds to the database column user_quota.device_no + * + * @mbg.generated + */ + private String deviceNo; + + /** + * Database Column Remarks: + * phr体系内用户id + * + * This field was generated by MyBatis Generator. + * This field corresponds to the database column user_quota.phr_uid + * + * @mbg.generated + */ + private Long phrUid; + + /** + * Database Column Remarks: + * 设备品牌 + * + * This field was generated by MyBatis Generator. + * This field corresponds to the database column user_quota.device_brand + * + * @mbg.generated + */ + private String deviceBrand; + + /** + * This method was generated by MyBatis Generator. + * This method returns the value of the database column user_quota.id + * + * @return the value of user_quota.id + * + * @mbg.generated + */ + public Long getId() { + return id; + } + + /** + * This method was generated by MyBatis Generator. + * This method sets the value of the database column user_quota.id + * + * @param id the value for user_quota.id + * + * @mbg.generated + */ + public void setId(Long id) { + this.id = id; + } + + /** + * This method was generated by MyBatis Generator. + * This method returns the value of the database column user_quota.medical + * + * @return the value of user_quota.medical + * + * @mbg.generated + */ + public Boolean getMedical() { + return medical; + } + + /** + * This method was generated by MyBatis Generator. + * This method sets the value of the database column user_quota.medical + * + * @param medical the value for user_quota.medical + * + * @mbg.generated + */ + public void setMedical(Boolean medical) { + this.medical = medical; + } + + /** + * This method was generated by MyBatis Generator. + * This method returns the value of the database column user_quota.user_history_seq_no + * + * @return the value of user_quota.user_history_seq_no + * + * @mbg.generated + */ + public Long getUserHistorySeqNo() { + return userHistorySeqNo; + } + + /** + * This method was generated by MyBatis Generator. + * This method sets the value of the database column user_quota.user_history_seq_no + * + * @param userHistorySeqNo the value for user_quota.user_history_seq_no + * + * @mbg.generated + */ + public void setUserHistorySeqNo(Long userHistorySeqNo) { + this.userHistorySeqNo = userHistorySeqNo; + } + + /** + * This method was generated by MyBatis Generator. + * This method returns the value of the database column user_quota.user_id + * + * @return the value of user_quota.user_id + * + * @mbg.generated + */ + public Long getUserId() { + return userId; + } + + /** + * This method was generated by MyBatis Generator. + * This method sets the value of the database column user_quota.user_id + * + * @param userId the value for user_quota.user_id + * + * @mbg.generated + */ + public void setUserId(Long userId) { + this.userId = userId; + } + + /** + * This method was generated by MyBatis Generator. + * This method returns the value of the database column user_quota.quota_code + * + * @return the value of user_quota.quota_code + * + * @mbg.generated + */ + public String getQuotaCode() { + return quotaCode; + } + + /** + * This method was generated by MyBatis Generator. + * This method sets the value of the database column user_quota.quota_code + * + * @param quotaCode the value for user_quota.quota_code + * + * @mbg.generated + */ + public void setQuotaCode(String quotaCode) { + this.quotaCode = quotaCode == null ? null : quotaCode.trim(); + } + + /** + * This method was generated by MyBatis Generator. + * This method returns the value of the database column user_quota.quota_value + * + * @return the value of user_quota.quota_value + * + * @mbg.generated + */ + public String getQuotaValue() { + return quotaValue; + } + + /** + * This method was generated by MyBatis Generator. + * This method sets the value of the database column user_quota.quota_value + * + * @param quotaValue the value for user_quota.quota_value + * + * @mbg.generated + */ + public void setQuotaValue(String quotaValue) { + this.quotaValue = quotaValue == null ? null : quotaValue.trim(); + } + + /** + * This method was generated by MyBatis Generator. + * This method returns the value of the database column user_quota.min_value + * + * @return the value of user_quota.min_value + * + * @mbg.generated + */ + public Double getMinValue() { + return minValue; + } + + /** + * This method was generated by MyBatis Generator. + * This method sets the value of the database column user_quota.min_value + * + * @param minValue the value for user_quota.min_value + * + * @mbg.generated + */ + public void setMinValue(Double minValue) { + this.minValue = minValue; + } + + /** + * This method was generated by MyBatis Generator. + * This method returns the value of the database column user_quota.max_value + * + * @return the value of user_quota.max_value + * + * @mbg.generated + */ + public Double getMaxValue() { + return maxValue; + } + + /** + * This method was generated by MyBatis Generator. + * This method sets the value of the database column user_quota.max_value + * + * @param maxValue the value for user_quota.max_value + * + * @mbg.generated + */ + public void setMaxValue(Double maxValue) { + this.maxValue = maxValue; + } + + /** + * This method was generated by MyBatis Generator. + * This method returns the value of the database column user_quota.flag + * + * @return the value of user_quota.flag + * + * @mbg.generated + */ + public Integer getFlag() { + return flag; + } + + /** + * This method was generated by MyBatis Generator. + * This method sets the value of the database column user_quota.flag + * + * @param flag the value for user_quota.flag + * + * @mbg.generated + */ + public void setFlag(Integer flag) { + this.flag = flag; + } + + /** + * This method was generated by MyBatis Generator. + * This method returns the value of the database column user_quota.updated + * + * @return the value of user_quota.updated + * + * @mbg.generated + */ + public Date getUpdated() { + return updated; + } + + /** + * This method was generated by MyBatis Generator. + * This method sets the value of the database column user_quota.updated + * + * @param updated the value for user_quota.updated + * + * @mbg.generated + */ + public void setUpdated(Date updated) { + this.updated = updated; + } + + /** + * This method was generated by MyBatis Generator. + * This method returns the value of the database column user_quota.created + * + * @return the value of user_quota.created + * + * @mbg.generated + */ + public Date getCreated() { + return created; + } + + /** + * This method was generated by MyBatis Generator. + * This method sets the value of the database column user_quota.created + * + * @param created the value for user_quota.created + * + * @mbg.generated + */ + public void setCreated(Date created) { + this.created = created; + } + + /** + * This method was generated by MyBatis Generator. + * This method returns the value of the database column user_quota.check_date + * + * @return the value of user_quota.check_date + * + * @mbg.generated + */ + public Date getCheckDate() { + return checkDate; + } + + /** + * This method was generated by MyBatis Generator. + * This method sets the value of the database column user_quota.check_date + * + * @param checkDate the value for user_quota.check_date + * + * @mbg.generated + */ + public void setCheckDate(Date checkDate) { + this.checkDate = checkDate; + } + + /** + * This method was generated by MyBatis Generator. + * This method returns the value of the database column user_quota.device_sn + * + * @return the value of user_quota.device_sn + * + * @mbg.generated + */ + public String getDeviceSn() { + return deviceSn; + } + + /** + * This method was generated by MyBatis Generator. + * This method sets the value of the database column user_quota.device_sn + * + * @param deviceSn the value for user_quota.device_sn + * + * @mbg.generated + */ + public void setDeviceSn(String deviceSn) { + this.deviceSn = deviceSn == null ? null : deviceSn.trim(); + } + + /** + * This method was generated by MyBatis Generator. + * This method returns the value of the database column user_quota.device_no + * + * @return the value of user_quota.device_no + * + * @mbg.generated + */ + public String getDeviceNo() { + return deviceNo; + } + + /** + * This method was generated by MyBatis Generator. + * This method sets the value of the database column user_quota.device_no + * + * @param deviceNo the value for user_quota.device_no + * + * @mbg.generated + */ + public void setDeviceNo(String deviceNo) { + this.deviceNo = deviceNo == null ? null : deviceNo.trim(); + } + + /** + * This method was generated by MyBatis Generator. + * This method returns the value of the database column user_quota.phr_uid + * + * @return the value of user_quota.phr_uid + * + * @mbg.generated + */ + public Long getPhrUid() { + return phrUid; + } + + /** + * This method was generated by MyBatis Generator. + * This method sets the value of the database column user_quota.phr_uid + * + * @param phrUid the value for user_quota.phr_uid + * + * @mbg.generated + */ + public void setPhrUid(Long phrUid) { + this.phrUid = phrUid; + } + + /** + * This method was generated by MyBatis Generator. + * This method returns the value of the database column user_quota.device_brand + * + * @return the value of user_quota.device_brand + * + * @mbg.generated + */ + public String getDeviceBrand() { + return deviceBrand; + } + + /** + * This method was generated by MyBatis Generator. + * This method sets the value of the database column user_quota.device_brand + * + * @param deviceBrand the value for user_quota.device_brand + * + * @mbg.generated + */ + public void setDeviceBrand(String deviceBrand) { + this.deviceBrand = deviceBrand == null ? null : deviceBrand.trim(); + } +} \ No newline at end of file diff --git a/src/main/java/com/lk/phr/model/phr/UserHistoryModel.java b/src/main/java/com/lk/phr/model/phr/UserHistoryModel.java deleted file mode 100644 index 5a6a733..0000000 --- a/src/main/java/com/lk/phr/model/phr/UserHistoryModel.java +++ /dev/null @@ -1,745 +0,0 @@ -package com.lk.phr.model.phr; - -import java.util.Date; - -/** - * - * This class was generated by MyBatis Generator. - * This class corresponds to the database table user_history - */ -public class UserHistoryModel { - /** - * Database Column Remarks: - * id - * - * This field was generated by MyBatis Generator. - * This field corresponds to the database column user_history.id - * - * @mbg.generated - */ - private Long id; - - /** - * Database Column Remarks: - * 用户中心用户ID - * - * This field was generated by MyBatis Generator. - * This field corresponds to the database column user_history.user_id - * - * @mbg.generated - */ - private Long userId; - - /** - * Database Column Remarks: - * 用户中心组织ID - * - * This field was generated by MyBatis Generator. - * This field corresponds to the database column user_history.org_id - * - * @mbg.generated - */ - private Long orgId; - - /** - * Database Column Remarks: - * 诊断类型(1中医,2西医,3中西医结合) - * - * This field was generated by MyBatis Generator. - * This field corresponds to the database column user_history.medical - * - * @mbg.generated - */ - private Boolean medical; - - /** - * Database Column Remarks: - * 删除标志(0:正常,1:删除) - * - * This field was generated by MyBatis Generator. - * This field corresponds to the database column user_history.flag - * - * @mbg.generated - */ - private Integer flag; - - /** - * Database Column Remarks: - * 更新时间 - * - * This field was generated by MyBatis Generator. - * This field corresponds to the database column user_history.updated - * - * @mbg.generated - */ - private Date updated; - - /** - * Database Column Remarks: - * 创建时间 - * - * This field was generated by MyBatis Generator. - * This field corresponds to the database column user_history.created - * - * @mbg.generated - */ - private Date created; - - /** - * Database Column Remarks: - * 来源 - * - * This field was generated by MyBatis Generator. - * This field corresponds to the database column user_history.source - * - * @mbg.generated - */ - private String source; - - /** - * Database Column Remarks: - * 序列号(唯一索引) - * - * This field was generated by MyBatis Generator. - * This field corresponds to the database column user_history.seq_no - * - * @mbg.generated - */ - private Long seqNo; - - /** - * Database Column Remarks: - * 外部流水号 - * - * This field was generated by MyBatis Generator. - * This field corresponds to the database column user_history.out_no - * - * @mbg.generated - */ - private String outNo; - - /** - * Database Column Remarks: - * 检查类型名称 - * - * This field was generated by MyBatis Generator. - * This field corresponds to the database column user_history.check_type_name - * - * @mbg.generated - */ - private String checkTypeName; - - /** - * Database Column Remarks: - * 检查类型代码 - * - * This field was generated by MyBatis Generator. - * This field corresponds to the database column user_history.check_type_code - * - * @mbg.generated - */ - private String checkTypeCode; - - /** - * Database Column Remarks: - * 体检分值 - * - * This field was generated by MyBatis Generator. - * This field corresponds to the database column user_history.score - * - * @mbg.generated - */ - private Double score; - - /** - * Database Column Remarks: - * 体检对应评价 - * - * This field was generated by MyBatis Generator. - * This field corresponds to the database column user_history.evaluate - * - * @mbg.generated - */ - private String evaluate; - - /** - * Database Column Remarks: - * 体检地址 - * - * This field was generated by MyBatis Generator. - * This field corresponds to the database column user_history.check_addr - * - * @mbg.generated - */ - private String checkAddr; - - /** - * Database Column Remarks: - * 体检机构 - * - * This field was generated by MyBatis Generator. - * This field corresponds to the database column user_history.check_organization - * - * @mbg.generated - */ - private String checkOrganization; - - /** - * Database Column Remarks: - * 设备编码 - * - * This field was generated by MyBatis Generator. - * This field corresponds to the database column user_history.device_code - * - * @mbg.generated - */ - private String deviceCode; - - /** - * Database Column Remarks: - * 设备唯一序号 - * - * This field was generated by MyBatis Generator. - * This field corresponds to the database column user_history.device_no - * - * @mbg.generated - */ - private String deviceNo; - - /** - * Database Column Remarks: - * 熵值分数 - * - * This field was generated by MyBatis Generator. - * This field corresponds to the database column user_history.entropy_score - * - * @mbg.generated - */ - private Double entropyScore; - - /** - * Database Column Remarks: - * phr体系内用户id - * - * This field was generated by MyBatis Generator. - * This field corresponds to the database column user_history.phr_uid - * - * @mbg.generated - */ - private Long phrUid; - - /** - * Database Column Remarks: - * 检查子类型 如问卷类型 - * - * This field was generated by MyBatis Generator. - * This field corresponds to the database column user_history.check_sub_type - * - * @mbg.generated - */ - private String checkSubType; - - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column user_history.id - * - * @return the value of user_history.id - * - * @mbg.generated - */ - public Long getId() { - return id; - } - - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column user_history.id - * - * @param id the value for user_history.id - * - * @mbg.generated - */ - public void setId(Long id) { - this.id = id; - } - - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column user_history.user_id - * - * @return the value of user_history.user_id - * - * @mbg.generated - */ - public Long getUserId() { - return userId; - } - - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column user_history.user_id - * - * @param userId the value for user_history.user_id - * - * @mbg.generated - */ - public void setUserId(Long userId) { - this.userId = userId; - } - - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column user_history.org_id - * - * @return the value of user_history.org_id - * - * @mbg.generated - */ - public Long getOrgId() { - return orgId; - } - - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column user_history.org_id - * - * @param orgId the value for user_history.org_id - * - * @mbg.generated - */ - public void setOrgId(Long orgId) { - this.orgId = orgId; - } - - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column user_history.medical - * - * @return the value of user_history.medical - * - * @mbg.generated - */ - public Boolean getMedical() { - return medical; - } - - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column user_history.medical - * - * @param medical the value for user_history.medical - * - * @mbg.generated - */ - public void setMedical(Boolean medical) { - this.medical = medical; - } - - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column user_history.flag - * - * @return the value of user_history.flag - * - * @mbg.generated - */ - public Integer getFlag() { - return flag; - } - - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column user_history.flag - * - * @param flag the value for user_history.flag - * - * @mbg.generated - */ - public void setFlag(Integer flag) { - this.flag = flag; - } - - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column user_history.updated - * - * @return the value of user_history.updated - * - * @mbg.generated - */ - public Date getUpdated() { - return updated; - } - - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column user_history.updated - * - * @param updated the value for user_history.updated - * - * @mbg.generated - */ - public void setUpdated(Date updated) { - this.updated = updated; - } - - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column user_history.created - * - * @return the value of user_history.created - * - * @mbg.generated - */ - public Date getCreated() { - return created; - } - - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column user_history.created - * - * @param created the value for user_history.created - * - * @mbg.generated - */ - public void setCreated(Date created) { - this.created = created; - } - - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column user_history.source - * - * @return the value of user_history.source - * - * @mbg.generated - */ - public String getSource() { - return source; - } - - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column user_history.source - * - * @param source the value for user_history.source - * - * @mbg.generated - */ - public void setSource(String source) { - this.source = source == null ? null : source.trim(); - } - - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column user_history.seq_no - * - * @return the value of user_history.seq_no - * - * @mbg.generated - */ - public Long getSeqNo() { - return seqNo; - } - - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column user_history.seq_no - * - * @param seqNo the value for user_history.seq_no - * - * @mbg.generated - */ - public void setSeqNo(Long seqNo) { - this.seqNo = seqNo; - } - - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column user_history.out_no - * - * @return the value of user_history.out_no - * - * @mbg.generated - */ - public String getOutNo() { - return outNo; - } - - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column user_history.out_no - * - * @param outNo the value for user_history.out_no - * - * @mbg.generated - */ - public void setOutNo(String outNo) { - this.outNo = outNo == null ? null : outNo.trim(); - } - - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column user_history.check_type_name - * - * @return the value of user_history.check_type_name - * - * @mbg.generated - */ - public String getCheckTypeName() { - return checkTypeName; - } - - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column user_history.check_type_name - * - * @param checkTypeName the value for user_history.check_type_name - * - * @mbg.generated - */ - public void setCheckTypeName(String checkTypeName) { - this.checkTypeName = checkTypeName == null ? null : checkTypeName.trim(); - } - - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column user_history.check_type_code - * - * @return the value of user_history.check_type_code - * - * @mbg.generated - */ - public String getCheckTypeCode() { - return checkTypeCode; - } - - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column user_history.check_type_code - * - * @param checkTypeCode the value for user_history.check_type_code - * - * @mbg.generated - */ - public void setCheckTypeCode(String checkTypeCode) { - this.checkTypeCode = checkTypeCode == null ? null : checkTypeCode.trim(); - } - - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column user_history.score - * - * @return the value of user_history.score - * - * @mbg.generated - */ - public Double getScore() { - return score; - } - - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column user_history.score - * - * @param score the value for user_history.score - * - * @mbg.generated - */ - public void setScore(Double score) { - this.score = score; - } - - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column user_history.evaluate - * - * @return the value of user_history.evaluate - * - * @mbg.generated - */ - public String getEvaluate() { - return evaluate; - } - - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column user_history.evaluate - * - * @param evaluate the value for user_history.evaluate - * - * @mbg.generated - */ - public void setEvaluate(String evaluate) { - this.evaluate = evaluate == null ? null : evaluate.trim(); - } - - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column user_history.check_addr - * - * @return the value of user_history.check_addr - * - * @mbg.generated - */ - public String getCheckAddr() { - return checkAddr; - } - - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column user_history.check_addr - * - * @param checkAddr the value for user_history.check_addr - * - * @mbg.generated - */ - public void setCheckAddr(String checkAddr) { - this.checkAddr = checkAddr == null ? null : checkAddr.trim(); - } - - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column user_history.check_organization - * - * @return the value of user_history.check_organization - * - * @mbg.generated - */ - public String getCheckOrganization() { - return checkOrganization; - } - - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column user_history.check_organization - * - * @param checkOrganization the value for user_history.check_organization - * - * @mbg.generated - */ - public void setCheckOrganization(String checkOrganization) { - this.checkOrganization = checkOrganization == null ? null : checkOrganization.trim(); - } - - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column user_history.device_code - * - * @return the value of user_history.device_code - * - * @mbg.generated - */ - public String getDeviceCode() { - return deviceCode; - } - - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column user_history.device_code - * - * @param deviceCode the value for user_history.device_code - * - * @mbg.generated - */ - public void setDeviceCode(String deviceCode) { - this.deviceCode = deviceCode == null ? null : deviceCode.trim(); - } - - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column user_history.device_no - * - * @return the value of user_history.device_no - * - * @mbg.generated - */ - public String getDeviceNo() { - return deviceNo; - } - - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column user_history.device_no - * - * @param deviceNo the value for user_history.device_no - * - * @mbg.generated - */ - public void setDeviceNo(String deviceNo) { - this.deviceNo = deviceNo == null ? null : deviceNo.trim(); - } - - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column user_history.entropy_score - * - * @return the value of user_history.entropy_score - * - * @mbg.generated - */ - public Double getEntropyScore() { - return entropyScore; - } - - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column user_history.entropy_score - * - * @param entropyScore the value for user_history.entropy_score - * - * @mbg.generated - */ - public void setEntropyScore(Double entropyScore) { - this.entropyScore = entropyScore; - } - - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column user_history.phr_uid - * - * @return the value of user_history.phr_uid - * - * @mbg.generated - */ - public Long getPhrUid() { - return phrUid; - } - - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column user_history.phr_uid - * - * @param phrUid the value for user_history.phr_uid - * - * @mbg.generated - */ - public void setPhrUid(Long phrUid) { - this.phrUid = phrUid; - } - - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column user_history.check_sub_type - * - * @return the value of user_history.check_sub_type - * - * @mbg.generated - */ - public String getCheckSubType() { - return checkSubType; - } - - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column user_history.check_sub_type - * - * @param checkSubType the value for user_history.check_sub_type - * - * @mbg.generated - */ - public void setCheckSubType(String checkSubType) { - this.checkSubType = checkSubType == null ? null : checkSubType.trim(); - } -} \ No newline at end of file diff --git a/src/main/java/com/lk/phr/model/phr/UserHistoryModelWithBLOBs.java b/src/main/java/com/lk/phr/model/phr/UserHistoryModelWithBLOBs.java deleted file mode 100644 index c7eb779..0000000 --- a/src/main/java/com/lk/phr/model/phr/UserHistoryModelWithBLOBs.java +++ /dev/null @@ -1,146 +0,0 @@ -package com.lk.phr.model.phr; - -/** - * - * This class was generated by MyBatis Generator. - * This class corresponds to the database table user_history - */ -public class UserHistoryModelWithBLOBs extends UserHistoryModel { - /** - * Database Column Remarks: - * 面诊图片 - * - * This field was generated by MyBatis Generator. - * This field corresponds to the database column user_history.face_url - * - * @mbg.generated - */ - private String faceUrl; - - /** - * Database Column Remarks: - * 舌诊图片 - * - * This field was generated by MyBatis Generator. - * This field corresponds to the database column user_history.tongue_url - * - * @mbg.generated - */ - private String tongueUrl; - - /** - * Database Column Remarks: - * 舌底图片 - * - * This field was generated by MyBatis Generator. - * This field corresponds to the database column user_history.base_of_tongue_url - * - * @mbg.generated - */ - private String baseOfTongueUrl; - - /** - * - * This field was generated by MyBatis Generator. - * This field corresponds to the database column user_history.obj_json - * - * @mbg.generated - */ - private String objJson; - - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column user_history.face_url - * - * @return the value of user_history.face_url - * - * @mbg.generated - */ - public String getFaceUrl() { - return faceUrl; - } - - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column user_history.face_url - * - * @param faceUrl the value for user_history.face_url - * - * @mbg.generated - */ - public void setFaceUrl(String faceUrl) { - this.faceUrl = faceUrl == null ? null : faceUrl.trim(); - } - - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column user_history.tongue_url - * - * @return the value of user_history.tongue_url - * - * @mbg.generated - */ - public String getTongueUrl() { - return tongueUrl; - } - - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column user_history.tongue_url - * - * @param tongueUrl the value for user_history.tongue_url - * - * @mbg.generated - */ - public void setTongueUrl(String tongueUrl) { - this.tongueUrl = tongueUrl == null ? null : tongueUrl.trim(); - } - - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column user_history.base_of_tongue_url - * - * @return the value of user_history.base_of_tongue_url - * - * @mbg.generated - */ - public String getBaseOfTongueUrl() { - return baseOfTongueUrl; - } - - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column user_history.base_of_tongue_url - * - * @param baseOfTongueUrl the value for user_history.base_of_tongue_url - * - * @mbg.generated - */ - public void setBaseOfTongueUrl(String baseOfTongueUrl) { - this.baseOfTongueUrl = baseOfTongueUrl == null ? null : baseOfTongueUrl.trim(); - } - - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column user_history.obj_json - * - * @return the value of user_history.obj_json - * - * @mbg.generated - */ - public String getObjJson() { - return objJson; - } - - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column user_history.obj_json - * - * @param objJson the value for user_history.obj_json - * - * @mbg.generated - */ - public void setObjJson(String objJson) { - this.objJson = objJson == null ? null : objJson.trim(); - } -} \ No newline at end of file diff --git a/src/main/resources/generatorConfig.xml b/src/main/resources/generatorConfig.xml index a8919ae..d16b47b 100644 --- a/src/main/resources/generatorConfig.xml +++ b/src/main/resources/generatorConfig.xml @@ -10,19 +10,19 @@ - + - + - + - + @@ -49,7 +49,7 @@ -