first commit

This commit is contained in:
陈现府
2025-11-20 10:45:16 +08:00
commit 8355431361
2643 changed files with 291314 additions and 0 deletions
@@ -0,0 +1,102 @@
<?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.mhd.basic.domain.platform.repository.mapper.PlatformMapper">
<resultMap type="com.mhd.basic.domain.platform.repository.po.PlatformPO" id="PlatformResult">
<result property="platformId" column="platform_id" />
<result property="organizationId" column="organization_id" />
<result property="organizationName" column="organization_name" />
<result property="topOrganizationId" column="top_organization_id" />
<result property="platformCode" column="platform_code" />
<result property="platformName" column="platform_name" />
<result property="warehouseIdList" column="warehouse_id_list" />
<result property="platformGroupId" column="platform_group_id" />
<result property="platformGroupCode" column="platform_group_code" />
<result property="platformGroupName" column="platform_group_name" />
<result property="platformAttribute" column="platform_attribute" />
<result property="usageStatus" column="usage_status" />
<result property="openingUp" column="opening_up" />
<result property="nullify" column="nullify" />
<result property="remark" column="remark" />
<result property="createTime" column="create_time" />
<result property="createBy" column="create_by" />
<result property="createByName" column="create_by_name" />
<result property="updateTime" column="update_time" />
<result property="updateBy" column="update_by" />
<result property="updateByName" column="update_by_name" />
<result property="delFlag" column="del_flag" />
</resultMap>
<sql id="selectPlatformPo">
select platform_id, organization_id, organization_name, top_organization_id, platform_code, platform_name, warehouse_id_list, warehouse_name_list, platform_group_id, platform_group_code, platform_group_name, platform_attribute, usage_status, opening_up, nullify, remark, create_time, create_by, create_by_name, update_time, update_by, update_by_name, del_flag from platform
</sql>
<sql id="selectPlatformPo1">
<where>
<if test="organizationId != null ">
and organization_id = #{organizationId}
</if>
<if test="organizationName != null and organizationName != ''">
and organization_name like concat('%', #{organizationName}, '%')
</if>
<if test="topOrganizationId != null ">
and top_organization_id = #{topOrganizationId}
</if>
<if test="platformCode != null and platformCode != ''">
and platform_code = #{platformCode}
</if>
<if test="platformName != null and platformName != ''">
and platform_name like concat('%', #{platformName}, '%')
</if>
<if test="warehouseIdList != null and warehouseIdList != ''">
and warehouse_id_list = #{warehouseIdList}
</if>
<if test="warehouseNameList != null and warehouseNameList != ''">
and warehouse_name_list = #{warehouseNameList}
</if>
<if test="platformGroupId != null ">
and platform_group_id = #{platformGroupId}
</if>
<if test="platformGroupCode != null and platformGroupCode != ''">
and platform_group_code = #{platformGroupCode}
</if>
<if test="platformGroupName != null and platformGroupName != ''">
and platform_group_name like concat('%', #{platformGroupName}, '%')
</if>
<if test="platformAttribute != null ">
and platform_attribute = #{platformAttribute}
</if>
<if test="usageStatus != null ">
and usage_status = #{usageStatus}
</if>
<if test="openingUp != null ">
and opening_up = #{openingUp}
</if>
<if test="nullify != null ">
and nullify = #{nullify}
</if>
<if test="createByName != null and createByName != ''">
and create_by_name like concat('%', #{createByName}, '%')
</if>
<if test="updateByName != null and updateByName != ''">
and update_by_name like concat('%', #{updateByName}, '%')
</if>
<if test="remark != null and remark != ''">
and remark like concat('%', #{remark}, '%')
</if>
<choose>
<when test="delFlag != null"> and del_flag = #{delFlag} </when>
<otherwise> and del_flag = 1 </otherwise>
</choose>
</where>
</sql>
<select id="queryList" parameterType="com.mhd.basic.domain.platform.repository.todo.PlatformDO" resultMap="PlatformResult">
<include refid="selectPlatformPo"/>
<include refid="selectPlatformPo1"/>
ORDER BY create_time DESC
</select>
</mapper>