update at 2020-05-21 16:27:48 by ehlxr

dev
ehlxr 2020-05-21 16:27:48 +08:00
parent e4a9e1d5d7
commit f54ed57735
9 changed files with 885 additions and 1549 deletions

204
LICENSE
View File

@ -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 <xrg@live.com>
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.
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.

View File

@ -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);
}

View File

@ -0,0 +1,240 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<!--suppress SqlDialectInspection -->
<mapper namespace="com.lk.phr.dao.UserQuotaDao">
<resultMap id="BaseResultMap" type="com.lk.phr.model.UserQuotaModel">
<id column="id" jdbcType="BIGINT" property="id"/>
<result column="medical" jdbcType="BIT" property="medical"/>
<result column="user_history_seq_no" jdbcType="BIGINT" property="userHistorySeqNo"/>
<result column="user_id" jdbcType="BIGINT" property="userId"/>
<result column="quota_code" jdbcType="VARCHAR" property="quotaCode"/>
<result column="quota_value" jdbcType="VARCHAR" property="quotaValue"/>
<result column="min_value" jdbcType="DOUBLE" property="minValue"/>
<result column="max_value" jdbcType="DOUBLE" property="maxValue"/>
<result column="flag" jdbcType="INTEGER" property="flag"/>
<result column="updated" jdbcType="TIMESTAMP" property="updated"/>
<result column="created" jdbcType="TIMESTAMP" property="created"/>
<result column="check_date" jdbcType="TIMESTAMP" property="checkDate"/>
<result column="device_sn" jdbcType="VARCHAR" property="deviceSn"/>
<result column="device_no" jdbcType="VARCHAR" property="deviceNo"/>
<result column="phr_uid" jdbcType="BIGINT" property="phrUid"/>
<result column="device_brand" jdbcType="VARCHAR" property="deviceBrand"/>
</resultMap>
<sql id="Base_Column_List">
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
</sql>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
select
<include refid="Base_Column_List"/>
from user_quota
where id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
delete from user_quota
where id = #{id,jdbcType=BIGINT}
</delete>
<insert id="insert" parameterType="com.lk.phr.model.UserQuotaModel">
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>
<insert id="insertSelective" parameterType="com.lk.phr.model.UserQuotaModel">
insert into user_quota
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="medical != null">
medical,
</if>
<if test="userHistorySeqNo != null">
user_history_seq_no,
</if>
<if test="userId != null">
user_id,
</if>
<if test="quotaCode != null">
quota_code,
</if>
<if test="quotaValue != null">
quota_value,
</if>
<if test="minValue != null">
min_value,
</if>
<if test="maxValue != null">
max_value,
</if>
<if test="flag != null">
flag,
</if>
<if test="updated != null">
updated,
</if>
<if test="created != null">
created,
</if>
<if test="checkDate != null">
check_date,
</if>
<if test="deviceSn != null">
device_sn,
</if>
<if test="deviceNo != null">
device_no,
</if>
<if test="phrUid != null">
phr_uid,
</if>
<if test="deviceBrand != null">
device_brand,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=BIGINT},
</if>
<if test="medical != null">
#{medical,jdbcType=BIT},
</if>
<if test="userHistorySeqNo != null">
#{userHistorySeqNo,jdbcType=BIGINT},
</if>
<if test="userId != null">
#{userId,jdbcType=BIGINT},
</if>
<if test="quotaCode != null">
#{quotaCode,jdbcType=VARCHAR},
</if>
<if test="quotaValue != null">
#{quotaValue,jdbcType=VARCHAR},
</if>
<if test="minValue != null">
#{minValue,jdbcType=DOUBLE},
</if>
<if test="maxValue != null">
#{maxValue,jdbcType=DOUBLE},
</if>
<if test="flag != null">
#{flag,jdbcType=INTEGER},
</if>
<if test="updated != null">
#{updated,jdbcType=TIMESTAMP},
</if>
<if test="created != null">
#{created,jdbcType=TIMESTAMP},
</if>
<if test="checkDate != null">
#{checkDate,jdbcType=TIMESTAMP},
</if>
<if test="deviceSn != null">
#{deviceSn,jdbcType=VARCHAR},
</if>
<if test="deviceNo != null">
#{deviceNo,jdbcType=VARCHAR},
</if>
<if test="phrUid != null">
#{phrUid,jdbcType=BIGINT},
</if>
<if test="deviceBrand != null">
#{deviceBrand,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.lk.phr.model.UserQuotaModel">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
update user_quota
<set>
<if test="medical != null">
medical = #{medical,jdbcType=BIT},
</if>
<if test="userHistorySeqNo != null">
user_history_seq_no = #{userHistorySeqNo,jdbcType=BIGINT},
</if>
<if test="userId != null">
user_id = #{userId,jdbcType=BIGINT},
</if>
<if test="quotaCode != null">
quota_code = #{quotaCode,jdbcType=VARCHAR},
</if>
<if test="quotaValue != null">
quota_value = #{quotaValue,jdbcType=VARCHAR},
</if>
<if test="minValue != null">
min_value = #{minValue,jdbcType=DOUBLE},
</if>
<if test="maxValue != null">
max_value = #{maxValue,jdbcType=DOUBLE},
</if>
<if test="flag != null">
flag = #{flag,jdbcType=INTEGER},
</if>
<if test="updated != null">
updated = #{updated,jdbcType=TIMESTAMP},
</if>
<if test="created != null">
created = #{created,jdbcType=TIMESTAMP},
</if>
<if test="checkDate != null">
check_date = #{checkDate,jdbcType=TIMESTAMP},
</if>
<if test="deviceSn != null">
device_sn = #{deviceSn,jdbcType=VARCHAR},
</if>
<if test="deviceNo != null">
device_no = #{deviceNo,jdbcType=VARCHAR},
</if>
<if test="phrUid != null">
phr_uid = #{phrUid,jdbcType=BIGINT},
</if>
<if test="deviceBrand != null">
device_brand = #{deviceBrand,jdbcType=VARCHAR},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.lk.phr.model.UserQuotaModel">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
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}
</update>
</mapper>

View File

@ -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);
}

View File

@ -1,404 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.lk.phr.dao.phr.UserHistoryDao">
<resultMap id="BaseResultMap" type="com.lk.phr.model.phr.UserHistoryModel">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
<id column="id" jdbcType="BIGINT" property="id" />
<result column="user_id" jdbcType="BIGINT" property="userId" />
<result column="org_id" jdbcType="BIGINT" property="orgId" />
<result column="medical" jdbcType="BIT" property="medical" />
<result column="flag" jdbcType="INTEGER" property="flag" />
<result column="updated" jdbcType="TIMESTAMP" property="updated" />
<result column="created" jdbcType="TIMESTAMP" property="created" />
<result column="source" jdbcType="VARCHAR" property="source" />
<result column="seq_no" jdbcType="BIGINT" property="seqNo" />
<result column="out_no" jdbcType="VARCHAR" property="outNo" />
<result column="check_type_name" jdbcType="VARCHAR" property="checkTypeName" />
<result column="check_type_code" jdbcType="VARCHAR" property="checkTypeCode" />
<result column="score" jdbcType="DOUBLE" property="score" />
<result column="evaluate" jdbcType="VARCHAR" property="evaluate" />
<result column="check_addr" jdbcType="VARCHAR" property="checkAddr" />
<result column="check_organization" jdbcType="VARCHAR" property="checkOrganization" />
<result column="device_code" jdbcType="VARCHAR" property="deviceCode" />
<result column="device_no" jdbcType="VARCHAR" property="deviceNo" />
<result column="entropy_score" jdbcType="DOUBLE" property="entropyScore" />
<result column="phr_uid" jdbcType="BIGINT" property="phrUid" />
<result column="check_sub_type" jdbcType="VARCHAR" property="checkSubType" />
</resultMap>
<resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.lk.phr.model.phr.UserHistoryModelWithBLOBs">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
<result column="face_url" jdbcType="LONGVARCHAR" property="faceUrl" />
<result column="tongue_url" jdbcType="LONGVARCHAR" property="tongueUrl" />
<result column="base_of_tongue_url" jdbcType="LONGVARCHAR" property="baseOfTongueUrl" />
<result column="obj_json" jdbcType="LONGVARCHAR" property="objJson" />
</resultMap>
<sql id="Base_Column_List">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
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
</sql>
<sql id="Blob_Column_List">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
face_url, tongue_url, base_of_tongue_url, obj_json
</sql>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="ResultMapWithBLOBs">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
select
<include refid="Base_Column_List" />
,
<include refid="Blob_Column_List" />
from user_history
where id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
delete from user_history
where id = #{id,jdbcType=BIGINT}
</delete>
<insert id="insert" parameterType="com.lk.phr.model.phr.UserHistoryModelWithBLOBs">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
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>
<insert id="insertSelective" parameterType="com.lk.phr.model.phr.UserHistoryModelWithBLOBs">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
insert into user_history
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="userId != null">
user_id,
</if>
<if test="orgId != null">
org_id,
</if>
<if test="medical != null">
medical,
</if>
<if test="flag != null">
flag,
</if>
<if test="updated != null">
updated,
</if>
<if test="created != null">
created,
</if>
<if test="source != null">
source,
</if>
<if test="seqNo != null">
seq_no,
</if>
<if test="outNo != null">
out_no,
</if>
<if test="checkTypeName != null">
check_type_name,
</if>
<if test="checkTypeCode != null">
check_type_code,
</if>
<if test="score != null">
score,
</if>
<if test="evaluate != null">
evaluate,
</if>
<if test="checkAddr != null">
check_addr,
</if>
<if test="checkOrganization != null">
check_organization,
</if>
<if test="deviceCode != null">
device_code,
</if>
<if test="deviceNo != null">
device_no,
</if>
<if test="entropyScore != null">
entropy_score,
</if>
<if test="phrUid != null">
phr_uid,
</if>
<if test="checkSubType != null">
check_sub_type,
</if>
<if test="faceUrl != null">
face_url,
</if>
<if test="tongueUrl != null">
tongue_url,
</if>
<if test="baseOfTongueUrl != null">
base_of_tongue_url,
</if>
<if test="objJson != null">
obj_json,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=BIGINT},
</if>
<if test="userId != null">
#{userId,jdbcType=BIGINT},
</if>
<if test="orgId != null">
#{orgId,jdbcType=BIGINT},
</if>
<if test="medical != null">
#{medical,jdbcType=BIT},
</if>
<if test="flag != null">
#{flag,jdbcType=INTEGER},
</if>
<if test="updated != null">
#{updated,jdbcType=TIMESTAMP},
</if>
<if test="created != null">
#{created,jdbcType=TIMESTAMP},
</if>
<if test="source != null">
#{source,jdbcType=VARCHAR},
</if>
<if test="seqNo != null">
#{seqNo,jdbcType=BIGINT},
</if>
<if test="outNo != null">
#{outNo,jdbcType=VARCHAR},
</if>
<if test="checkTypeName != null">
#{checkTypeName,jdbcType=VARCHAR},
</if>
<if test="checkTypeCode != null">
#{checkTypeCode,jdbcType=VARCHAR},
</if>
<if test="score != null">
#{score,jdbcType=DOUBLE},
</if>
<if test="evaluate != null">
#{evaluate,jdbcType=VARCHAR},
</if>
<if test="checkAddr != null">
#{checkAddr,jdbcType=VARCHAR},
</if>
<if test="checkOrganization != null">
#{checkOrganization,jdbcType=VARCHAR},
</if>
<if test="deviceCode != null">
#{deviceCode,jdbcType=VARCHAR},
</if>
<if test="deviceNo != null">
#{deviceNo,jdbcType=VARCHAR},
</if>
<if test="entropyScore != null">
#{entropyScore,jdbcType=DOUBLE},
</if>
<if test="phrUid != null">
#{phrUid,jdbcType=BIGINT},
</if>
<if test="checkSubType != null">
#{checkSubType,jdbcType=VARCHAR},
</if>
<if test="faceUrl != null">
#{faceUrl,jdbcType=LONGVARCHAR},
</if>
<if test="tongueUrl != null">
#{tongueUrl,jdbcType=LONGVARCHAR},
</if>
<if test="baseOfTongueUrl != null">
#{baseOfTongueUrl,jdbcType=LONGVARCHAR},
</if>
<if test="objJson != null">
#{objJson,jdbcType=LONGVARCHAR},
</if>
</trim>
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.lk.phr.model.phr.UserHistoryModelWithBLOBs">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
update user_history
<set>
<if test="userId != null">
user_id = #{userId,jdbcType=BIGINT},
</if>
<if test="orgId != null">
org_id = #{orgId,jdbcType=BIGINT},
</if>
<if test="medical != null">
medical = #{medical,jdbcType=BIT},
</if>
<if test="flag != null">
flag = #{flag,jdbcType=INTEGER},
</if>
<if test="updated != null">
updated = #{updated,jdbcType=TIMESTAMP},
</if>
<if test="created != null">
created = #{created,jdbcType=TIMESTAMP},
</if>
<if test="source != null">
source = #{source,jdbcType=VARCHAR},
</if>
<if test="seqNo != null">
seq_no = #{seqNo,jdbcType=BIGINT},
</if>
<if test="outNo != null">
out_no = #{outNo,jdbcType=VARCHAR},
</if>
<if test="checkTypeName != null">
check_type_name = #{checkTypeName,jdbcType=VARCHAR},
</if>
<if test="checkTypeCode != null">
check_type_code = #{checkTypeCode,jdbcType=VARCHAR},
</if>
<if test="score != null">
score = #{score,jdbcType=DOUBLE},
</if>
<if test="evaluate != null">
evaluate = #{evaluate,jdbcType=VARCHAR},
</if>
<if test="checkAddr != null">
check_addr = #{checkAddr,jdbcType=VARCHAR},
</if>
<if test="checkOrganization != null">
check_organization = #{checkOrganization,jdbcType=VARCHAR},
</if>
<if test="deviceCode != null">
device_code = #{deviceCode,jdbcType=VARCHAR},
</if>
<if test="deviceNo != null">
device_no = #{deviceNo,jdbcType=VARCHAR},
</if>
<if test="entropyScore != null">
entropy_score = #{entropyScore,jdbcType=DOUBLE},
</if>
<if test="phrUid != null">
phr_uid = #{phrUid,jdbcType=BIGINT},
</if>
<if test="checkSubType != null">
check_sub_type = #{checkSubType,jdbcType=VARCHAR},
</if>
<if test="faceUrl != null">
face_url = #{faceUrl,jdbcType=LONGVARCHAR},
</if>
<if test="tongueUrl != null">
tongue_url = #{tongueUrl,jdbcType=LONGVARCHAR},
</if>
<if test="baseOfTongueUrl != null">
base_of_tongue_url = #{baseOfTongueUrl,jdbcType=LONGVARCHAR},
</if>
<if test="objJson != null">
obj_json = #{objJson,jdbcType=LONGVARCHAR},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKeyWithBLOBs" parameterType="com.lk.phr.model.phr.UserHistoryModelWithBLOBs">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
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>
<update id="updateByPrimaryKey" parameterType="com.lk.phr.model.phr.UserHistoryModel">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
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}
</update>
</mapper>

View File

@ -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:
* phrid
*
* 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();
}
}

View File

@ -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:
* 12西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:
* 01
*
* 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:
* phrid
*
* 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();
}
}

View File

@ -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();
}
}

View File

@ -10,19 +10,19 @@
<property name="suppressAllComments" value="false"/>
<property name="addRemarkComments" value="true"/>
</commentGenerator>
<jdbcConnection driverClass="com.mysql.jdbc.Driver" connectionURL="jdbc:mysql://10.39.32.45:32125/phr-web" userId="root" password="root">
<jdbcConnection driverClass="com.mysql.jdbc.Driver" connectionURL="jdbc:mysql://10.39.32.45:32125/phr-reform" userId="root" password="root">
</jdbcConnection>
<javaTypeResolver>
<property name="forceBigDecimals" value="false"/>
</javaTypeResolver>
<javaModelGenerator targetPackage="com.lk.phr.model.phr" targetProject="src/main/java">
<javaModelGenerator targetPackage="com.lk.phr.model" targetProject="src/main/java">
<property name="enableSubPackages" value="true"/>
<property name="trimStrings" value="true"/>
</javaModelGenerator>
<sqlMapGenerator targetPackage="com.lk.phr.dao.phr" targetProject="src/main/java">
<sqlMapGenerator targetPackage="com.lk.phr.dao" targetProject="src/main/java">
<property name="enableSubPackages" value="true"/>
</sqlMapGenerator>
<javaClientGenerator type="XMLMAPPER" targetPackage="com.lk.phr.dao.phr" targetProject="src/main/java">
<javaClientGenerator type="XMLMAPPER" targetPackage="com.lk.phr.dao" targetProject="src/main/java">
<property name="enableSubPackages" value="true"/>
</javaClientGenerator>
<!--<javaClientGenerator type="ANNOTATEDMAPPER" targetPackage="com.lk.phr.dao.phr" targetProject="src/main/java">-->
@ -49,7 +49,7 @@
<!-- enableSelectByExample="false"-->
<!-- enableUpdateByExample="false"/>-->
<table tableName="user_history" domainObjectName="UserHistoryModel" mapperName="UserHistoryDao"
<table tableName="user_quota" domainObjectName="UserQuotaModel" mapperName="UserQuotaDao"
enableCountByExample="false"
enableDeleteByExample="false"
enableSelectByExample="false"