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

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

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

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:
* 诊断类型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();
}
}

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"