|
|
|
<?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.lzbi.asset.mapper.DcBusiParamSourceMapper">
|
|
|
|
<resultMap type="com.lzbi.asset.domain.DcBusiParamSource" id="rmDcBusiParamSource">
|
|
|
|
<!-- 租户号 -->
|
|
|
|
<result property="tenantId" column="tenant_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="deleteBy" column="delete_by"/>
|
|
|
|
<!-- 删除时间 -->
|
|
|
|
<result property="deleteTime" column="delete_time"/>
|
|
|
|
<!-- 参数编码 -->
|
|
|
|
<result property="paramCode" column="param_code"/>
|
|
|
|
<!-- 参数名称 -->
|
|
|
|
<result property="paramName" column="param_name"/>
|
|
|
|
<!-- 分组名称 -->
|
|
|
|
<result property="groupName" column="group_name"/>
|
|
|
|
<!-- 分组编码 -->
|
|
|
|
<result property="groupCode" column="group_code"/>
|
|
|
|
<!-- 扩展属性 -->
|
|
|
|
<result property="extPro" column="ext_pro"/>
|
|
|
|
<!-- 来源类型 -->
|
|
|
|
<result property="sourceType" column="source_type"/>
|
|
|
|
<!-- 是否有效 -->
|
|
|
|
<result property="enabledFlag" column="enabled_flag"/>
|
|
|
|
<!-- 主键 -->
|
|
|
|
<result property="id" column="id"/>
|
|
|
|
<!-- 所属专业 -->
|
|
|
|
<result property="fieldCode" column="field_code"/>
|
|
|
|
<!-- 所属名称 -->
|
|
|
|
<result property="fieldName" column="field_name"/>
|
|
|
|
</resultMap>
|
|
|
|
<sql id="baseQuerySql">
|
|
|
|
select
|
|
|
|
tenant_id,
|
|
|
|
revision,
|
|
|
|
created_by,
|
|
|
|
created_time,
|
|
|
|
updated_by,
|
|
|
|
updated_time,
|
|
|
|
delete_by,
|
|
|
|
delete_time,
|
|
|
|
param_code,
|
|
|
|
param_name,
|
|
|
|
group_name,
|
|
|
|
group_code,
|
|
|
|
ext_pro,
|
|
|
|
source_type,
|
|
|
|
enabled_flag,
|
|
|
|
id,
|
|
|
|
field_code,
|
|
|
|
field_name
|
|
|
|
from dc_busi_param_source
|
|
|
|
</sql>
|
|
|
|
<select id="selectByVo" resultMap="rmDcBusiParamSource" parameterType="com.lzbi.asset.domain.DcBusiParamSource">
|
|
|
|
<include refid="baseQuerySql"/>
|
|
|
|
<where>
|
|
|
|
<if test="tenantId != null and tenantId != ''"> and tenant_id = #{tenantId}</if>
|
|
|
|
<if test="revision != null and revision != ''"> and revision = #{revision}</if>
|
|
|
|
<if test="createdBy != null and createdBy != ''"> and created_by = #{createdBy}</if>
|
|
|
|
<if test="createdTime != null and createdTime != ''"> and created_time = #{createdTime}</if>
|
|
|
|
<if test="updatedBy != null and updatedBy != ''"> and updated_by = #{updatedBy}</if>
|
|
|
|
<if test="updatedTime != null and updatedTime != ''"> and updated_time = #{updatedTime}</if>
|
|
|
|
<if test="deleteBy != null and deleteBy != ''"> and delete_by = #{deleteBy}</if>
|
|
|
|
<if test="deleteTime != null and deleteTime != ''"> and delete_time = #{deleteTime}</if>
|
|
|
|
<if test="paramCode != null and paramCode != ''"> and param_code = #{paramCode}</if>
|
|
|
|
<if test="paramName != null and paramName != ''"> and param_name = #{paramName}</if>
|
|
|
|
<if test="groupName != null and groupName != ''"> and group_name = #{groupName}</if>
|
|
|
|
<if test="groupCode != null and groupCode != ''"> and group_code = #{groupCode}</if>
|
|
|
|
<if test="extPro != null and extPro != ''"> and ext_pro = #{extPro}</if>
|
|
|
|
<if test="sourceType != null and sourceType != ''"> and source_type = #{sourceType}</if>
|
|
|
|
<if test="enabledFlag != null and enabledFlag != ''"> and enabled_flag = #{enabledFlag}</if>
|
|
|
|
<if test="id != null and id != ''"> and id = #{id}</if>
|
|
|
|
<if test="fieldCode != null and fieldCode != ''"> and field_code = #{fieldCode}</if>
|
|
|
|
<if test="fieldName != null and fieldName != ''"> and field_name = #{fieldName}</if>
|
|
|
|
|
|
|
|
</where>
|
|
|
|
</select>
|
|
|
|
<insert id="insertByVo" parameterType="com.lzbi.asset.domain.DcBusiParamSource">
|
|
|
|
insert into dc_busi_param_source
|
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
|
<if test="tenantId != null and tenantId != ''">tenant_id,</if>
|
|
|
|
<if test="revision != null and revision != ''">revision,</if>
|
|
|
|
<if test="createdBy != null and createdBy != ''">created_by,</if>
|
|
|
|
<if test="createdTime != null and createdTime != ''">created_time,</if>
|
|
|
|
<if test="updatedBy != null and updatedBy != ''">updated_by,</if>
|
|
|
|
<if test="updatedTime != null and updatedTime != ''">updated_time,</if>
|
|
|
|
<if test="deleteBy != null and deleteBy != ''">delete_by,</if>
|
|
|
|
<if test="deleteTime != null and deleteTime != ''">delete_time,</if>
|
|
|
|
<if test="paramCode != null and paramCode != ''">param_code,</if>
|
|
|
|
<if test="paramName != null and paramName != ''">param_name,</if>
|
|
|
|
<if test="groupName != null and groupName != ''">group_name,</if>
|
|
|
|
<if test="groupCode != null and groupCode != ''">group_code,</if>
|
|
|
|
<if test="extPro != null and extPro != ''">ext_pro,</if>
|
|
|
|
<if test="sourceType != null and sourceType != ''">source_type,</if>
|
|
|
|
<if test="enabledFlag != null and enabledFlag != ''">enabled_flag,</if>
|
|
|
|
<if test="id != null and id != ''">id,</if>
|
|
|
|
<if test="fieldCode != null and fieldCode != ''">field_code,</if>
|
|
|
|
<if test="fieldName != null and fieldName != ''">field_name,</if>
|
|
|
|
</trim>
|
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
<if test="tenantId != null and tenantId != ''">#{tenantId},</if>
|
|
|
|
<if test="revision != null and revision != ''">#{revision},</if>
|
|
|
|
<if test="createdBy != null and createdBy != ''">#{createdBy},</if>
|
|
|
|
<if test="createdTime != null and createdTime != ''">#{createdTime},</if>
|
|
|
|
<if test="updatedBy != null and updatedBy != ''">#{updatedBy},</if>
|
|
|
|
<if test="updatedTime != null and updatedTime != ''">#{updatedTime},</if>
|
|
|
|
<if test="deleteBy != null and deleteBy != ''">#{deleteBy},</if>
|
|
|
|
<if test="deleteTime != null and deleteTime != ''">#{deleteTime},</if>
|
|
|
|
<if test="paramCode != null and paramCode != ''">#{paramCode},</if>
|
|
|
|
<if test="paramName != null and paramName != ''">#{paramName},</if>
|
|
|
|
<if test="groupName != null and groupName != ''">#{groupName},</if>
|
|
|
|
<if test="groupCode != null and groupCode != ''">#{groupCode},</if>
|
|
|
|
<if test="extPro != null and extPro != ''">#{extPro},</if>
|
|
|
|
<if test="sourceType != null and sourceType != ''">#{sourceType},</if>
|
|
|
|
<if test="enabledFlag != null and enabledFlag != ''">#{enabledFlag},</if>
|
|
|
|
<if test="id != null and id != ''">#{id},</if>
|
|
|
|
<if test="fieldCode != null and fieldCode != ''">#{fieldCode},</if>
|
|
|
|
<if test="fieldName != null and fieldName != ''">#{fieldName},</if>
|
|
|
|
|
|
|
|
</trim>
|
|
|
|
</insert>
|
|
|
|
</mapper>
|