| | |
| | | <include refid="Base_Column_List"/> |
| | | FROM tb_order_info |
| | | WHERE deleted = 0 |
| | | AND order_status IN ('待上传文件', '待授权', '待交易确认', '已完成', '已评价') |
| | | AND order_status IN ('待审批授权','待授权', '待交易确认', '已完成', '已取消') |
| | | <if test="orderStatus != null and orderStatus != ''"> |
| | | AND order_status = #{orderStatus} |
| | | </if> |
| | |
| | | </if> |
| | | <if test="applyTimeEnd != null and applyTimeEnd != ''"> |
| | | AND apply_time <= #{applyTimeEnd}::timestamp |
| | | </if> |
| | | <if test="workFlowIds != null and workFlowIds.size() > 0"> |
| | | AND workflow_id IN |
| | | <foreach collection="workFlowIds" item="workFlowId" open="(" separator="," close=")"> |
| | | #{workFlowId} |
| | | </foreach> |
| | | </if> |
| | | ORDER BY |
| | | <choose> |
| | |
| | | <include refid="Base_Column_List"/> |
| | | FROM tb_order_info |
| | | WHERE deleted = 0 |
| | | AND order_status IN ('待上传文件', '待授权', '待交易确认', '已完成', '已评价') |
| | | AND order_status IN ('待授权', '待审批授权', '待交易确认', '已完成', '已取消') |
| | | <if test="orderStatus != null and orderStatus != ''"> |
| | | AND order_status = #{orderStatus} |
| | | </if> |
| | |
| | | #{productId} |
| | | </foreach> |
| | | </if> |
| | | <if test="workFlowIds != null and workFlowIds.size() > 0"> |
| | | AND workflow_id IN |
| | | <foreach collection="workFlowIds" item="workFlowId" open="(" separator="," close=")"> |
| | | #{workFlowId} |
| | | </foreach> |
| | | </if> |
| | | ORDER BY |
| | | <choose> |
| | | <when test="orderBy != null and orderBy != ''"> |