wuxw
2022-05-10 ba5210dc8c6c537cacc59c18d58baa9744cd2b9d
java110-db/src/main/resources/mapper/center/CenterServiceDAOImplMapper.xml
old mode 100644 new mode 100755
@@ -71,7 +71,7 @@
    <update id="updateOrderItem" parameterType="Map">
        update c_order_item t
        set t.finish_time = #{finishTime},
             t.status_cd = #{statusCd}
        t.status_cd = #{statusCd}
        where t.o_id = #{oId}
        <if test="bId !=null and bId != ''">
            and t.b_id = #{bId}
@@ -85,7 +85,6 @@
            and t.b_id = #{bId}
        </if>
    </update>
    <!-- 保存订单项信息 c_business -->
@@ -119,14 +118,11 @@
    </update>
    <!-- 更新订单项信息(一般就更新订单项状态)-->
    <update id="updateBusiness" parameterType="Map">
        <![CDATA[
                    update c_business cb set
                    cb.status_cd=#{statusCd},
                    cb.finish_time=#{finishTime}
                    where cb.o_id=#{oId}
        ]]>
        update c_business cb set
        cb.status_cd=#{statusCd},
        cb.finish_time=#{finishTime}
        where cb.o_id=#{oId}
    </update>
    <!--根据bId 修改业务项信息-->
    <update id="updateBusinessByBId" parameterType="Map">
@@ -179,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`
@@ -239,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`