<?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="cn.flightfeather.supervision.domain.mapper.OnLineQuestionMapper" >
|
<resultMap id="BaseResultMap" type="cn.flightfeather.supervision.domain.entity.OnLineQuestion" >
|
<!--
|
WARNING - @mbg.generated
|
-->
|
<id column="OLQ_GUID" property="olqGuid" jdbcType="VARCHAR" />
|
<result column="OLQ_Title" property="olqTitle" jdbcType="VARCHAR" />
|
<result column="OLQ_ Keywords" property="olqKeywords" jdbcType="VARCHAR" />
|
<result column="OLQ_ShowLevel" property="olqShowlevel" jdbcType="TINYINT" />
|
<result column="OLQ_FactorType" property="olqFactortype" jdbcType="TINYINT" />
|
<result column="OLQ_Workind" property="olqWorkind" jdbcType="TINYINT" />
|
<result column="OLQ_ResourceKind" property="olqResourcekind" jdbcType="TINYINT" />
|
<result column="OLQ_IsOpen" property="olqIsopen" jdbcType="BIT" />
|
<result column="OLQ_IsUse" property="olqIsuse" jdbcType="BIT" />
|
<result column="OLQ_IsDirectional" property="olqIsdirectional" jdbcType="BIT" />
|
<result column="OLQ_EntGUID" property="olqEntguid" jdbcType="VARCHAR" />
|
<result column="OLQ_EntName" property="olqEntname" jdbcType="VARCHAR" />
|
<result column="OLQ_Reply" property="olqReply" jdbcType="VARCHAR" />
|
<result column="OLQ_IsPaid" property="olqIspaid" jdbcType="BIT" />
|
<result column="OLQ_Remuneration" property="olqRemuneration" jdbcType="INTEGER" />
|
<result column="OLQ_PaymentRatio" property="olqPaymentratio" jdbcType="VARCHAR" />
|
<result column="OLQ_IsFinish" property="olqIsfinish" jdbcType="BIT" />
|
<result column="OLQ_CreatorId" property="olqCreatorid" jdbcType="VARCHAR" />
|
<result column="OLQ_Creator" property="olqCreator" jdbcType="VARCHAR" />
|
<result column="OLQ_CreateDate" property="olqCreatedate" jdbcType="TIMESTAMP" />
|
<result column="OLQ_EndDate" property="olqEnddate" jdbcType="TIMESTAMP" />
|
<result column="OLQ_UpdateDate" property="olqUpdatedate" jdbcType="TIMESTAMP" />
|
<result column="OLQ_Extension1" property="olqExtension1" jdbcType="VARCHAR" />
|
<result column="OLQ_Extension2" property="olqExtension2" jdbcType="VARCHAR" />
|
<result column="OLQ_Extension3" property="olqExtension3" jdbcType="VARCHAR" />
|
<result column="OLQ_Remark" property="olqRemark" jdbcType="VARCHAR" />
|
</resultMap>
|
<resultMap id="ResultMapWithBLOBs" type="cn.flightfeather.supervision.domain.entity.OnLineQuestion" extends="BaseResultMap" >
|
<!--
|
WARNING - @mbg.generated
|
-->
|
<result column="OLQ_Desc" property="olqDesc" jdbcType="LONGVARCHAR" />
|
<result column="OLQ_ResourceOutUrls" property="olqResourceouturls" jdbcType="LONGVARCHAR" />
|
</resultMap>
|
<sql id="Base_Column_List" >
|
<!--
|
WARNING - @mbg.generated
|
-->
|
OLQ_GUID, OLQ_Title, `OLQ_Keywords`, OLQ_ShowLevel, OLQ_FactorType, OLQ_Workind,
|
OLQ_ResourceKind, OLQ_IsOpen, OLQ_IsUse, OLQ_IsDirectional, OLQ_EntGUID, OLQ_EntName,
|
OLQ_Reply, OLQ_IsPaid, OLQ_Remuneration, OLQ_PaymentRatio, OLQ_IsFinish, OLQ_CreatorId,
|
OLQ_Creator, OLQ_CreateDate, OLQ_EndDate, OLQ_UpdateDate, OLQ_Extension1, OLQ_Extension2,
|
OLQ_Extension3, OLQ_Remark
|
</sql>
|
<sql id="Blob_Column_List" >
|
<!--
|
WARNING - @mbg.generated
|
-->
|
OLQ_Desc, OLQ_ResourceOutUrls
|
</sql>
|
|
<select id="findAll" resultMap="BaseResultMap">
|
SELECT
|
<include refid="Base_Column_List"></include>
|
from ec_t_online_q
|
</select>
|
|
<select id="findAllfalse" resultMap="BaseResultMap">
|
SELECT
|
<include refid="Base_Column_List"></include>
|
from ec_t_online_q
|
Where
|
OLQ_IsUse='false'
|
</select>
|
|
<select id="getQDescription" resultType="String">
|
SELECT
|
OLQ_Desc
|
from ec_t_online_q
|
Where OLQ_GUID=#{questionId}
|
</select>
|
|
<select id="getQResource" resultType="String">
|
SELECT
|
OLQ_ResourceOutUrls
|
from ec_t_online_q
|
Where OLQ_GUID=#{questionId}
|
</select>
|
|
<select id="getQByConditions" resultMap="BaseResultMap">
|
SELECT
|
<include refid="Base_Column_List"></include>
|
from ec_t_online_q
|
Where OLQ_Keywords LIKE '%${keywords}%'
|
AND OLQ_FactorType=#{factorType}
|
AND OLQ_ResourceKind=#{resourceKind}
|
AND OLQ_ShowLevel=#{showLevel}
|
AND OLQ_Workind=#{worKind}
|
</select>
|
|
<select id="count" resultType="int">
|
select count(*) as count from ec_t_online_q
|
</select>
|
|
<select id="getQByConditionsCounts" resultType="int">
|
SELECT
|
count(*) as count
|
from ec_t_online_q
|
Where OLQ_Keywords LIKE '%${keywords}%'
|
AND OLQ_FactorType=#{factorType}
|
AND OLQ_ResourceKind=#{resourceKind}
|
AND OLQ_ShowLevel=#{showLevel}
|
AND OLQ_Workind=#{worKind}
|
</select>
|
</mapper>
|