|
|
@ -3,40 +3,6 @@ |
|
|
|
|
|
|
|
<mapper namespace="com.elink.esua.epdc.modules.activity.dao.ActivityInfoDao"> |
|
|
|
|
|
|
|
<resultMap type="com.elink.esua.epdc.modules.activity.entity.ActivityInfoEntity" id="activityInfoMap"> |
|
|
|
<result property="id" column="ID"/> |
|
|
|
<result property="title" column="TITLE"/> |
|
|
|
<result property="headPic" column="HEAD_PIC"/> |
|
|
|
<result property="sectionCode" column="SECTION_CODE"/> |
|
|
|
<result property="categoryCode" column="CATEGORY_CODE"/> |
|
|
|
<result property="categoryName" column="CATEGORY_NAME"/> |
|
|
|
<result property="signUpStartTime" column="SIGN_UP_START_TIME"/> |
|
|
|
<result property="signUpEndTime" column="SIGN_UP_END_TIME"/> |
|
|
|
<result property="actStartTime" column="ACT_START_TIME"/> |
|
|
|
<result property="actEndTime" column="ACT_END_TIME"/> |
|
|
|
<result property="actAddress" column="ACT_ADDRESS"/> |
|
|
|
<result property="actLongitude" column="ACT_LONGITUDE"/> |
|
|
|
<result property="actLatitude" column="ACT_LATITUDE"/> |
|
|
|
<result property="actQuotaFlag" column="ACT_QUOTA_FLAG"/> |
|
|
|
<result property="actQuota" column="ACT_QUOTA"/> |
|
|
|
<result property="signUpNum" column="SIGNUP_NUM"/> |
|
|
|
<result property="contacts" column="CONTACTS"/> |
|
|
|
<result property="tel" column="TEL"/> |
|
|
|
<result property="requirement" column="REQUIREMENT"/> |
|
|
|
<result property="actContent" column="ACT_CONTENT"/> |
|
|
|
<result property="actStatus" column="ACT_STATUS"/> |
|
|
|
<result property="cancelReason" column="CANCEL_REASON"/> |
|
|
|
<result property="publishTime" column="PUBLISH_TIME"/> |
|
|
|
<result property="sponsor" column="SPONSOR"/> |
|
|
|
<result property="deptId" column="DEPT_ID"/> |
|
|
|
<result property="revision" column="REVISION"/> |
|
|
|
<result property="createdBy" column="CREATED_BY"/> |
|
|
|
<result property="createdTime" column="CREATED_TIME"/> |
|
|
|
<result property="updatedBy" column="UPDATED_BY"/> |
|
|
|
<result property="updatedTime" column="UPDATED_TIME"/> |
|
|
|
<result property="delFlag" column="DEL_FLAG"/> |
|
|
|
</resultMap> |
|
|
|
|
|
|
|
<sql id="Base_Column_List"> |
|
|
|
ID, TITLE, HEAD_PIC, SECTION_CODE, CATEGORY_CODE, CATEGORY_NAME, SIGN_UP_START_TIME, |
|
|
|
SIGN_UP_END_TIME, ACT_START_TIME, ACT_END_TIME, ACT_ADDRESS, ACT_LONGITUDE, ACT_LATITUDE, |
|
|
@ -77,7 +43,7 @@ |
|
|
|
a.ACT_QUOTA_FLAG, |
|
|
|
a.ACT_QUOTA, |
|
|
|
a.SIGN_UP_NUM, |
|
|
|
( CASE WHEN p.id IS NULL THEN '1' ELSE '0' END ) AS SIGN_UP_FLAG |
|
|
|
( CASE WHEN p.id IS NULL THEN '0' ELSE '1' END ) AS SIGN_UP_FLAG |
|
|
|
FROM |
|
|
|
epdc_activity_info a |
|
|
|
LEFT JOIN epdc_section_category s ON a.CATEGORY_CODE = s. CODE |
|
|
|