old mode 100644
new mode 100755
| | |
| | | <select id="getOrder" resultType="Map" parameterType="Map"> |
| | | SELECT `o_id` oId, `app_id` appId, `ext_transaction_id` extTransactionId, `user_id` userId, `request_time` |
| | | requestTime, |
| | | `create_time` createTime,`order_type_cd` orderTypeCd, `finish_time` finishTime, `remark` |
| | | `create_time` createTime,`order_type_cd` orderTypeCd, `finish_time` finishTime, `remark`,t.status_cd statusCd |
| | | from c_orders t |
| | | where 1=1 |
| | | <if test="oId != null and oId != ''"> |
| | |
| | | <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} |
| | | </if> |
| | | </update> |
| | | |
| | | <!-- 删除事务日志 --> |
| | | <update id="deleteUnItemLog" parameterType="Map"> |
| | | delete from unitem_log where o_id = #{oId} |
| | | <if test="bId !=null and bId != ''"> |
| | | and t.b_id = #{bId} |
| | | </if> |
| | | </update> |
| | | |
| | | |
| | | |
| | | <!-- 保存订单项信息 c_business --> |
| | |
| | | </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"> |
| | |
| | | |
| | | ]]> |
| | | </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` |
| | |
| | | ]]> |
| | | </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` |