Blame view

backend/file/src/main/resources/mapper/FlowUploadPropertiesMapper.xml 2.32 KB
8d73e917   陈威   初始化提交
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<?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.hotent.file.persistence.dao.FlowUploadPropertiesDao">
	<resultMap id="FlowUploadProperties" type="com.hotent.file.model.FlowUploadProperties">
		<id property="id" column="ID_" jdbcType="VARCHAR"/>
		<result property="name" column="NAME_" jdbcType="VARCHAR"/>
		<result property="flowKey" column="FLOW_KEY_" jdbcType="VARCHAR"/>
		<result property="flowName" column="FLOW_NAME_" jdbcType="VARCHAR"/>
		<result property="uploadType" column="UPLOAD_TYPE_" jdbcType="VARCHAR"/>
		<result property="location" column="LOCATION_" jdbcType="VARCHAR"/>
		<result property="ftpUrl" column="FTP_URL_" jdbcType="VARCHAR"/>
		<result property="ftpPort" column="FTP_PORT_" jdbcType="NUMERIC"/>
		<result property="ftpUserName" column="FTP_USER_NAME_" jdbcType="VARCHAR"/>
		<result property="ftpPassword" column="FTP_PASSWORD_" jdbcType="VARCHAR"/>
		<result property="status" column="STATUS_" jdbcType="VARCHAR"/>
		<result property="encryptName" column="ENCRYPT_NAME_" jdbcType="NUMERIC"/>
		<result property="desc" column="DESC_" jdbcType="VARCHAR"/>
		<result property="updateTime" column="UPDATE_TIME_" jdbcType="TIMESTAMP"/>
		<result property="createBy" column="CREATE_BY_" jdbcType="VARCHAR"/>
		<result property="createTime" column="CREATE_TIME_" jdbcType="TIMESTAMP"/>
		<result property="createOrgId" column="CREATE_ORG_ID_" jdbcType="VARCHAR"/>
		<result property="updateBy" column="UPDATE_BY_" jdbcType="VARCHAR"/>
		<result property="tenantId" column="TENANT_ID_" jdbcType="VARCHAR"/>
		<result property="aliyunOssEndpoint" column="ALIYUN_OSS_ENDPOINT_" jdbcType="VARCHAR"/>
		<result property="aliyunOssAccessKeyId" column="ALIYUN_OSS_ACCESSKEYID_" jdbcType="VARCHAR"/>
		<result property="aliyunOssAccessKeySecret" column="ALIYUN_OSS_ACCESSKEYSECRET_" jdbcType="VARCHAR"/>
	</resultMap>
	
	<select id="getByFlowKey"  resultMap="FlowUploadProperties">
		select * from portal_flow_upload_properties where FLOW_KEY_ like concat('%,',#{flowKey},',%') AND STATUS_='enable'
	</select>

	<select id="getByFlowKey" databaseId="oracle" resultMap="FlowUploadProperties">
		select * from portal_flow_upload_properties where FLOW_KEY_ like concat('%,',concat(#{flowKey},',%')) AND STATUS_='enable'
	</select>
</mapper>