You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
weaver-hrm-organization/src/com/engine/organization/mapper/extend/ExtendInfoMapper.xml

80 lines
2.9 KiB
XML

<?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.engine.organization.mapper.extend.ExtendInfoMapper">
<resultMap id="BaseResultMap" type="com.engine.organization.entity.extend.po.ExtendInfoPO">
<result column="id" property="id"/>
<result column="extend_type" property="extendType"/>
<result column="table_name" property="tableName"/>
<result column="field_name" property="fieldName"/>
<result column="field_name_desc" property="fieldNameDesc"/>
<result column="field_type" property="fieldType"/>
<result column="control_type" property="controlType"/>
<result column="browser_type" property="browserType"/>
<result column="extend_group_id" property="extendGroupId"/>
<result column="isenable" property="isenable"/>
<result column="isrequired" property="isrequired"/>
<result column="list_show" property="listShow"/>
<result column="search_show" property="searchShow"/>
<result column="edit_show" property="editShow"/>
<result column="add_show" property="addShow"/>
<result column="browser_show" property="browserShow"/>
<result column="custom_value" property="customValue"/>
<result column="show_order" property="showOrder"/>
<result column="creator" property="creator"/>
<result column="delete_type" property="deleteType"/>
<result column="create_time" property="createTime"/>
<result column="update_time" property="updateTime"/>
</resultMap>
<!-- 表字段 -->
<sql id="baseColumns">
t
.
id
, t.extend_type
, t.table_name
, t.field_name
, t.field_name_desc
, t.field_type
, t.control_type
, t.browser_type
, t.extend_group_id
, t.isenable
, t.isrequired
, t.list_show
, t.search_show
, t.edit_show
, t.add_show
, t.browser_show
, t.custom_value
, t.show_order
, t.creator
, t.delete_type
, t.create_time
, t.update_time
</sql>
<select id="listFields" resultMap="BaseResultMap">
SELECT
<include refid="baseColumns"/>
FROM
jcl_field_extendinfo t
WHERE t.delete_type = 0
<if test=" extendType != null and extendType != '' ">
and extend_type = #{extendType}
</if>
<if test=" extendGroupId != null and extendGroupId != '' ">
and extend_group_id = #{extendGroupId}
</if>
<if test=" tableName != null and tableName != '' ">
and table_name = #{tableName}
</if>
<if test=" operateType != null and operateType !='' ">
and ${operateType}_show = 1
</if>
order by show_order
</select>
</mapper>