EkpQiweiChuchaiMapper.xml 2.4 KB
Newer Older
1 2 3 4 5 6 7 8
<?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.yifu.cloud.plus.v1.permission.mapper.EkpQiweiChuchaiMapper">

	<resultMap id="BaseResultMap" type="com.yifu.cloud.plus.v1.yifu.permission.entity.EkpQiwiChuchai">
		<id property="fdId" column="fd_ID" />
9 10 11 12 13 14 15 16 17
		<result property="fdSpNo" column="FD_SP_NO"/>
		<result property="fdApplyUserName" column="FD_APPLY_USER_NAME"/>
		<result property="fdApplyUserDept" column="FD_APPLY_USER_DEPT"/>
		<result property="fdApplyDate" column="FD_APPLY_DATE"/>
		<result property="fdNewBegin" column="FD_NEW_BEGIN"/>
		<result property="fdNewEnd" column="FD_NEW_END"/>
		<result property="fdReason" column="FD_REASON"/>
		<result property="fdPerson" column="FD_PERSON"/>
		<result property="fdAddress" column="FD_ADDRESS"/>
18
		<result property="fdOldAddress" column="FD_OLD_ADDRESS"/>
19 20 21 22 23 24 25
		<result property="fdTools" column="FD_TOOLS"/>
		<result property="fdAddressLevel" column="FD_ADDRESS_LEVEL"/>
		<result property="fdJiaoTong" column="FD_JIAO_TONG"/>
		<result property="fdCanYin" column="FD_CAN_YIN"/>
		<result property="fdRenShu" column="FD_REN_SHU"/>
		<result property="fdStatus" column="FD_STATUS"/>
		<result property="fdSettleFormId" column="FD_SETTLE_FORM_ID"/>
26
		<result property="createTime" column="create_time"/>
27
		<result property="fdDataSource" column="FD_DATA_SOURCE"/>
28 29 30 31
	</resultMap>

	<sql id="Base_Column_List">
		a.FD_ID,
32 33 34 35 36 37 38 39 40
		a.FD_SP_NO,
		a.FD_APPLY_USER_NAME,
		a.FD_APPLY_USER_DEPT,
		a.FD_APPLY_DATE,
		a.FD_NEW_BEGIN,
		a.FD_NEW_END,
		a.FD_REASON,
		a.FD_PERSON,
		a.FD_ADDRESS,
41
		a.FD_OLD_ADDRESS,
42
		a.FD_TOOLS,
43 44 45 46
		a.FD_ADDRESS_LEVEL,
		a.FD_JIAO_TONG,
		a.FD_CAN_YIN,
		a.FD_REN_SHU,
47 48
		a.FD_STATUS,
		a.FD_SETTLE_FORM_ID,
49 50
		a.create_time,
		a.FD_DATA_SOURCE
51 52 53 54 55 56 57 58 59
	</sql>
	<!--获取全部的,用来: 拉取企业微信时,不覆盖数据 -->
	<select id="getAllInfo" resultMap="BaseResultMap">
		SELECT
		<include refid="Base_Column_List"/>
		FROM ekp_qiwei_chuchai a
		<where>
			1=1
			<if test="status != null and status.trim() != ''">
60
				AND a.FD_STATUS = #{status}
61 62 63 64
			</if>
		</where>
	</select>

65 66 67 68 69
	<!--获取全部的,用来: 拉取企业微信时,不覆盖数据 -->
	<select id="getQiYeWeiXinUserList" resultType="com.yifu.cloud.plus.v1.yifu.permission.vo.QiWeiUserVo">
		SELECT USER_ID as userId,USER_NAME as userName FROM ekp_qiwei_user
	</select>

70
</mapper>