Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
mappings.modules.ServerLogDao.xml Maven / Gradle / Ivy
<?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.yqjr.modules.serverlog.dao.ServerLogDao">
<resultMap id="BaseResultMap" type="com.yqjr.modules.serverlog.entity.ServerLog">
<!-- WARNING - @mbg.generated This element is automatically generated by
MyBatis Generator, do not modify. This element was generated on Thu Jun 15
15:20:15 CST 2017. -->
<result column="SERIALNO" jdbcType="VARCHAR" property="serialNo" />
<result column="CHANNEL" jdbcType="VARCHAR" property="channel" />
<result column="SERVICECODE" jdbcType="VARCHAR" property="serviceCode" />
<result column="TRANSACTIONTIME" jdbcType="TIMESTAMP" property="transactionTime"
typeHandler="com.yqjr.framework.datatype.DateTypeHandler" />
<result column="TOKEN" jdbcType="VARCHAR" property="token" />
<result column="REQUESTTIME" jdbcType="TIMESTAMP" property="requestTime"
typeHandler="com.yqjr.framework.datatype.DateTypeHandler" />
<result column="RESPONSETIME" jdbcType="TIMESTAMP" property="responseTime"
typeHandler="com.yqjr.framework.datatype.DateTypeHandler" />
<result column="RESPONSETOKEN" jdbcType="VARCHAR" property="responseToken" />
<result column="REPLYCODE" jdbcType="VARCHAR" property="replyCode" />
<result column="REPLYTEXT" jdbcType="VARCHAR" property="replyText" />
<result column="CREATEBY" jdbcType="DECIMAL" property="createBy.id" />
<result column="CREATEDATE" jdbcType="TIMESTAMP" property="createDate"
typeHandler="com.yqjr.framework.datatype.DateTypeHandler" />
<result column="UPDATEBY" jdbcType="DECIMAL" property="updateBy.id" />
<result column="UPDATEDATE" jdbcType="TIMESTAMP" property="updateDate"
typeHandler="com.yqjr.framework.datatype.DateTypeHandler" />
<result column="DELETESTATUS" jdbcType="DECIMAL" property="deleteStatus" />
<result column="REMARKS" jdbcType="VARCHAR" property="remarks" />
</resultMap>
<sql id="Base_Column_List">
<!-- WARNING - @mbg.generated This element is automatically generated by
MyBatis Generator, do not modify. This element was generated on Thu Jun 15
15:20:15 CST 2017. -->
SERIALNO, CHANNEL, SERVICECODE, TRANSACTIONTIME, TOKEN, REQUESTTIME,
RESPONSETIME,
RESPONSETOKEN, REPLYCODE, REPLYTEXT, CREATEBY, CREATEDATE, UPDATEBY, UPDATEDATE,
DELETESTATUS, REMARKS
</sql>
<sql id="Base_Where_Condition">
<!-- WARNING - @mbg.generated This element is automatically generated by
MyBatis Generator, do not modify. This element was generated on Thu Jun 15
15:20:15 CST 2017. -->
<where>
<if test="serialNo != null">
and SERIALNO = #{serialNo,jdbcType=VARCHAR}
</if>
<if test="channel != null">
and CHANNEL = #{channel,jdbcType=VARCHAR}
</if>
<if test="serviceCode != null">
and SERVICECODE = #{serviceCode,jdbcType=VARCHAR}
</if>
<if test="transactionTime != null">
and TRANSACTIONTIME =
#{transactionTime,jdbcType=TIMESTAMP,typeHandler=com.yqjr.framework.datatype.DateTypeHandler}
</if>
<if test="token != null">
and TOKEN = #{token,jdbcType=VARCHAR}
</if>
<if test="requestTime != null">
and REQUESTTIME =
#{requestTime,jdbcType=TIMESTAMP,typeHandler=com.yqjr.framework.datatype.DateTypeHandler}
</if>
<if test="responseTime != null">
and RESPONSETIME =
#{responseTime,jdbcType=TIMESTAMP,typeHandler=com.yqjr.framework.datatype.DateTypeHandler}
</if>
<if test="responseToken != null">
and RESPONSETOKEN = #{responseToken,jdbcType=VARCHAR}
</if>
<if test="replyCode != null">
and REPLYCODE = #{replyCode,jdbcType=VARCHAR}
</if>
<if test="replyText != null">
and REPLYTEXT = #{replyText,jdbcType=VARCHAR}
</if>
<if test="createBy != null">
and CREATEBY = #{createBy.id,jdbcType=DECIMAL}
</if>
<if test="createDate != null">
and CREATEDATE =
#{createDate,jdbcType=TIMESTAMP,typeHandler=com.yqjr.framework.datatype.DateTypeHandler}
</if>
<if test="updateBy != null">
and UPDATEBY = #{updateBy.id,jdbcType=DECIMAL}
</if>
<if test="updateDate != null">
and UPDATEDATE =
#{updateDate,jdbcType=TIMESTAMP,typeHandler=com.yqjr.framework.datatype.DateTypeHandler}
</if>
<if test="deleteStatus != null">
and DELETESTATUS =
#{deleteStatus,jdbcType=DECIMAL}
</if>
<if test="remarks != null">
and REMARKS = #{remarks,jdbcType=VARCHAR}
</if>
<if test="sendMessage != null">
and SENDMESSAGE = #{sendMessage,jdbcType=CLOB}
</if>
<if test="receiveMessage != null">
and RECEIVEMESSAGE = #{receiveMessage,jdbcType=CLOB}
</if>
</where>
</sql>
<insert id="insert" parameterType="com.yqjr.modules.serverlog.entity.ServerLog">
<!-- WARNING - @mbg.generated This element is automatically generated by
MyBatis Generator, do not modify. This element was generated on Thu Jun 15
15:20:15 CST 2017. -->
insert into FMK_SERVERLOG
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="serialNo != null">
SERIALNO,
</if>
<if test="channel != null">
CHANNEL,
</if>
<if test="serviceCode != null">
SERVICECODE,
</if>
<if test="transactionTime != null">
TRANSACTIONTIME,
</if>
<if test="token != null">
TOKEN,
</if>
<if test="requestTime != null">
REQUESTTIME,
</if>
<if test="responseTime != null">
RESPONSETIME,
</if>
<if test="responseToken != null">
RESPONSETOKEN,
</if>
<if test="replyCode != null">
REPLYCODE,
</if>
<if test="replyText != null">
REPLYTEXT,
</if>
<if test="createBy != null">
CREATEBY,
</if>
<if test="createDate != null">
CREATEDATE,
</if>
<if test="updateBy != null">
UPDATEBY,
</if>
<if test="updateDate != null">
UPDATEDATE,
</if>
<if test="deleteStatus != null">
DELETESTATUS,
</if>
<if test="remarks != null">
REMARKS,
</if>
<if test="sendMessage != null">
SENDMESSAGE,
</if>
<if test="receiveMessage != null">
RECEIVEMESSAGE,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="serialNo != null">
#{serialNo,jdbcType=VARCHAR},
</if>
<if test="channel != null">
#{channel,jdbcType=VARCHAR},
</if>
<if test="serviceCode != null">
#{serviceCode,jdbcType=VARCHAR},
</if>
<if test="transactionTime != null">
#{transactionTime,jdbcType=TIMESTAMP,typeHandler=com.yqjr.framework.datatype.DateTypeHandler},
</if>
<if test="token != null">
#{token,jdbcType=VARCHAR},
</if>
<if test="requestTime != null">
#{requestTime,jdbcType=TIMESTAMP,typeHandler=com.yqjr.framework.datatype.DateTypeHandler},
</if>
<if test="responseTime != null">
#{responseTime,jdbcType=TIMESTAMP,typeHandler=com.yqjr.framework.datatype.DateTypeHandler},
</if>
<if test="responseToken != null">
#{responseToken,jdbcType=VARCHAR},
</if>
<if test="replyCode != null">
#{replyCode,jdbcType=VARCHAR},
</if>
<if test="replyText != null">
#{replyText,jdbcType=VARCHAR},
</if>
<if test="createBy != null">
#{createBy.id,jdbcType=DECIMAL},
</if>
<if test="createDate != null">
#{createDate,jdbcType=TIMESTAMP,typeHandler=com.yqjr.framework.datatype.DateTypeHandler},
</if>
<if test="updateBy != null">
#{updateBy.id,jdbcType=DECIMAL},
</if>
<if test="updateDate != null">
#{updateDate,jdbcType=TIMESTAMP,typeHandler=com.yqjr.framework.datatype.DateTypeHandler},
</if>
<if test="deleteStatus != null">
#{deleteStatus,jdbcType=DECIMAL},
</if>
<if test="remarks != null">
#{remarks,jdbcType=VARCHAR},
</if>
<if test="sendMessage != null">
#{sendMessage,jdbcType=CLOB},
</if>
<if test="receiveMessage != null">
#{receiveMessage,jdbcType=CLOB},
</if>
</trim>
</insert>
<update id="update" parameterType="com.yqjr.modules.serverlog.entity.ServerLog">
<!-- WARNING - @mbg.generated This element is automatically generated by
MyBatis Generator, do not modify. This element was generated on Thu Jun 15
15:20:15 CST 2017. -->
update FMK_SERVERLOG
<set>
<if test="channel != null">
CHANNEL = #{channel,jdbcType=VARCHAR},
</if>
<if test="serviceCode != null">
SERVICECODE = #{serviceCode,jdbcType=VARCHAR},
</if>
<if test="transactionTime != null">
TRANSACTIONTIME =
#{transactionTime,jdbcType=TIMESTAMP,typeHandler=com.yqjr.framework.datatype.DateTypeHandler},
</if>
<if test="token != null">
TOKEN = #{token,jdbcType=VARCHAR},
</if>
<if test="requestTime != null">
REQUESTTIME =
#{requestTime,jdbcType=TIMESTAMP,typeHandler=com.yqjr.framework.datatype.DateTypeHandler},
</if>
<if test="responseTime != null">
RESPONSETIME =
#{responseTime,jdbcType=TIMESTAMP,typeHandler=com.yqjr.framework.datatype.DateTypeHandler},
</if>
<if test="responseToken != null">
RESPONSETOKEN = #{responseToken,jdbcType=VARCHAR},
</if>
<if test="replyCode != null">
REPLYCODE = #{replyCode,jdbcType=VARCHAR},
</if>
<if test="replyText != null">
REPLYTEXT = #{replyText,jdbcType=VARCHAR},
</if>
<if test="createBy != null">
CREATEBY = #{createBy.id,jdbcType=DECIMAL},
</if>
<if test="createDate != null">
CREATEDATE =
#{createDate,jdbcType=TIMESTAMP,typeHandler=com.yqjr.framework.datatype.DateTypeHandler},
</if>
<if test="updateBy != null">
UPDATEBY = #{updateBy.id,jdbcType=DECIMAL},
</if>
<if test="updateDate != null">
UPDATEDATE =
#{updateDate,jdbcType=TIMESTAMP,typeHandler=com.yqjr.framework.datatype.DateTypeHandler},
</if>
<if test="deleteStatus != null">
DELETESTATUS =
#{deleteStatus,jdbcType=DECIMAL},
</if>
<if test="remarks != null">
REMARKS = #{remarks,jdbcType=VARCHAR},
</if>
<if test="sendMessage != null">
SENDMESSAGE = #{sendMessage,jdbcType=CLOB},
</if>
<if test="receiveMessage != null">
RECEIVEMESSAGE = #{receiveMessage,jdbcType=CLOB},
</if>
</set>
<where>
SERIALNO = #{serialNo}
</where>
</update>
<update id="delete" parameterType="com.yqjr.modules.serverlog.entity.ServerLog">
<!-- WARNING - @mbg.generated This element is automatically generated by
MyBatis Generator, do not modify. This element was generated on Thu Jun 15
15:20:15 CST 2017. -->
update FMK_SERVERLOG
<set>
deleteStatus = 0,
<if test="updateBy != null">
updateBy = #{updateBy.id},
</if>
<if test="updateDate != null">
updateDate =
#{updateDate,jdbcType=TIMESTAMP,typeHandler=com.yqjr.framework.datatype.DateTypeHandler}
</if>
</set>
<where>
SERIALNO = #{serialNo}
</where>
</update>
<select id="id" resultMap="BaseResultMap">
<!-- WARNING - @mbg.generated This element is automatically generated by
MyBatis Generator, do not modify. This element was generated on Thu Jun 15
15:20:15 CST 2017. -->
select
<include refid="Base_Column_List" />
from FMK_SERVERLOG
<if test="_parameter != null">
where SERIALNO = #{serialNo}
</if>
</select>
<select id="get" parameterType="com.yqjr.modules.serverlog.entity.ServerLog"
resultMap="BaseResultMap">
<!-- WARNING - @mbg.generated This element is automatically generated by
MyBatis Generator, do not modify. This element was generated on Thu Jun 15
15:20:15 CST 2017. -->
select
<include refid="Base_Column_List" />
from FMK_SERVERLOG
<if test="_parameter != null">
<include refid="Base_Where_Condition" />
</if>
</select>
<select id="findList" parameterType="com.yqjr.modules.serverlog.entity.ServerLog"
resultMap="BaseResultMap">
<!-- WARNING - @mbg.generated This element is automatically generated by
MyBatis Generator, do not modify. This element was generated on Thu Jun 15
15:20:15 CST 2017. -->
select
<include refid="Base_Column_List" />
from FMK_SERVERLOG
<if test="_parameter != null">
<include refid="Base_Where_Condition" />
</if>
</select>
<select id="findByCondition" parameterType="com.yqjr.modules.serverlog.condition.ServerLogCondition"
resultMap="BaseResultMap">
<!-- WARNING - @mbg.generated This element is automatically generated by
MyBatis Generator, do not modify. This element was generated on Thu Jun 15
15:20:15 CST 2017. -->
select
<include refid="Base_Column_List" />
from FMK_SERVERLOG
<if test="_parameter != null">
<where>
<if test="serialNo != null">
and SERIALNO = #{serialNo,jdbcType=VARCHAR}
</if>
<if test="channel != null">
and CHANNEL = #{channel,jdbcType=VARCHAR}
</if>
<if test="serviceCode != null">
and SERVICECODE = #{serviceCode,jdbcType=VARCHAR}
</if>
<if test="transactionTime != null">
and TRANSACTIONTIME =
#{transactionTime,jdbcType=TIMESTAMP,typeHandler=com.yqjr.framework.datatype.DateTypeHandler}
</if>
<if test="token != null">
and TOKEN = #{token,jdbcType=VARCHAR}
</if>
<if test="requestTime != null">
and REQUESTTIME =
#{requestTime,jdbcType=TIMESTAMP,typeHandler=com.yqjr.framework.datatype.DateTypeHandler}
</if>
<if test="responseTime != null">
and RESPONSETIME =
#{responseTime,jdbcType=TIMESTAMP,typeHandler=com.yqjr.framework.datatype.DateTypeHandler}
</if>
<if test="responseToken != null">
and RESPONSETOKEN = #{responseToken,jdbcType=VARCHAR}
</if>
<if test="replyCode != null">
and REPLYCODE = #{replyCode,jdbcType=VARCHAR}
</if>
<if test="replyText != null">
and REPLYTEXT = #{replyText,jdbcType=VARCHAR}
</if>
<if test="deleteStatus != null">
and DELETESTATUS =
#{deleteStatus,jdbcType=DECIMAL}
</if>
<if test="sendMessage != null">
and SENDMESSAGE = #{sendMessage,jdbcType=CLOB}
</if>
<if test="receiveMessage != null">
and RECEIVEMESSAGE = #{receiveMessage,jdbcType=CLOB}
</if>
<if test="startDate != null">
<![CDATA[ and updateDate >= TO_DATE(#{startDate},'yyyy-mm-dd') ]]>
</if>
<if test="endDate != null">
<![CDATA[ and updateDate < TO_DATE(#{endDate},'yyyy-mm-dd')+1 ]]>
</if>
<if test="userId > 0">
and createBy = #{userId}
</if>
</where>
</if>
</select>
<select id="checkExists" resultType="String">
select
SERIALNO
from FMK_SERVERLOG
<if test="_parameter != null">
where SERIALNO = #{serialNo}
</if>
</select>
</mapper>