wuxw
2022-07-19 05683f2b2bdbdbe21cf17ad523c21ab338bd1c54
java110-db/src/main/resources/mapper/center/CenterServiceDAOImplMapper.xml
old mode 100644 new mode 100755
@@ -175,6 +175,24 @@
        ]]>
    </select>
    <select id="queryOrderByBId" parameterType="Map" resultType="Map">
        select distinct co.app_id appId,co.o_id oId,co.create_time createTime,
        co.ext_transaction_id extTransactionId,co.user_id userId,cb.b_id bId
        from c_orders co
        INNER JOIN c_business cb on co.o_id = cb.o_id
        where 1=1
        <if test="bId != null and bId != ''">
            cb.b_id = #{bId}
        </if>
        <if test="bIds !=null">
            and cb.b_id in
            <foreach collection="bIds" item="item" index="index" open="(" close=")" separator=",">
                #{item}
            </foreach>
        </if>
    </select>
    <!-- 根据 OID 查询 business -->
    <select id="getBusinessByOId" parameterType="map" resultType="map">
        SELECT co.`o_id`,co.`app_id`,co.`order_type_cd`,co.`user_id`,cb.`business_type_cd`,cb.`b_id`,cb.`status_cd`
@@ -235,6 +253,28 @@
        ]]>
    </select>
    <select id="getPrivilegeAll" resultType="com.java110.dto.basePrivilege.BasePrivilegeDto">
        <![CDATA[
              select t.p_id pId,t.name,t.domain,t.resource,t.description,t.create_time createTime from p_privilege t where t.status_cd = '0'
        ]]>
    </select>
    <select id="getDatabusAll" resultType="com.java110.dto.businessDatabus.BusinessDatabusDto">
        <![CDATA[
            SELECT
                t.databus_id databusId,
                t.databus_name databusName,
                t.business_type_cd businessTypeCd,
                t.bean_name beanName,
                t.seq
            FROM
                c_business_databus t
            WHERE
                t.status_cd = '0'
            AND t.state = '1001'
        ]]>
    </select>
    <select id="judgeAllBusinessCompleted" parameterType="map" resultType="map">
        SELECT co.* FROM c_orders co WHERE co.`o_id` = #{oId} and not exists (
        SELECT 1 FROM c_business cb WHERE cb.`o_id` = co.`o_id`