java110
2020-06-07 a8c5ab7f20c29589d06bfcda09929d3294d4e4cf
service-order/src/main/java/com/java110/order/dao/impl/CenterServiceDAOImpl.java
@@ -1,11 +1,11 @@
package com.java110.order.dao.impl;
import com.alibaba.fastjson.JSONObject;
import com.java110.core.base.dao.BaseServiceDao;
import com.java110.entity.mapping.Mapping;
import com.java110.order.dao.ICenterServiceDAO;
import com.java110.utils.constant.ResponseConstant;
import com.java110.utils.exception.DAOException;
import com.java110.core.base.dao.BaseServiceDao;
import com.java110.entity.mapping.Mapping;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;
@@ -27,6 +27,7 @@
    /**
     * 保存订单信息
     *
     * @param order 订单信息
     * @return
     */
@@ -44,6 +45,7 @@
    /**
     * 保存属性信息
     *
     * @param orderAttrs
     * @return
     */
@@ -62,6 +64,7 @@
    /**
     * 保存订单项信息
     *
     * @param business 订单项信息
     */
    @Override
@@ -76,6 +79,7 @@
    /**
     * 保存订单项信息
     *
     * @param businesses 订单项信息
     */
    @Override
@@ -92,6 +96,7 @@
    /**
     * 保存属性信息
     *
     * @param businessAttrs
     */
    @Override
@@ -109,6 +114,7 @@
    /**
     * 更新订单信息(一般就更新订单状态)
     *
     * @param order
     * @throws DAOException
     */
@@ -124,6 +130,7 @@
    /**
     * 更新订单项信息(一般就更新订单项状态)
     *
     * @param order
     * @throws DAOException
     */
@@ -139,6 +146,7 @@
    /**
     * 根据bId 修改业务项信息
     *
     * @param business
     * @throws DAOException
     */
@@ -153,6 +161,7 @@
    /**
     * 当所有业务动作是否都是C,将订单信息改为 C
     *
     * @param bId
     * @return
     * @throws DAOException
@@ -170,6 +179,7 @@
    /**
     * 当所有业务动作是否都是C,将订单信息改为 C
     *
     * @param oId
     * @return
     * @throws DAOException
@@ -187,6 +197,7 @@
    /**
     * 判断 business 过程是否完成 1 表示完成 0表示未完成
     *
     * @param oId
     * @return
     * @throws DAOException
@@ -206,6 +217,7 @@
    /**
     * 判断 business 过程是否 满足撤单条件
     *
     * @param oId
     * @return
     * @throws DAOException
@@ -225,6 +237,7 @@
    /**
     * 根据bId查询订单信息
     *
     * @param bId
     * @return
     * @throws DAOException
@@ -236,8 +249,10 @@
        }
        return null;
    }
    /**
     * 根据oId查询订单信息
     *
     * @param oId
     * @return
     * @throws DAOException
@@ -253,6 +268,7 @@
    /**
     * 获取同个订单中已经完成的订单项
     *
     * @param bId
     * @return
     * @throws DAOException
@@ -270,6 +286,7 @@
    /**
     * 查询映射表
     *
     * @return
     */
    @Override
@@ -279,6 +296,7 @@
    /**
     * 查询业主订单
     *
     * @param info
     * @return
     */
@@ -288,15 +306,15 @@
    }
    /**
     * 查询业主订单
     *
     * @param info
     * @return
     */
    @Override
    public List<Map> queryOrderByBusinessType(Map info) {
        return sqlSessionTemplate.selectList("centerServiceDAOImpl.queryOrderByBusinessType");
        return sqlSessionTemplate.selectList("centerServiceDAOImpl.queryOrderByBusinessType", info);
    }
    public int updateBusinessStatusCd(Map info){
@@ -305,6 +323,7 @@
    /**
     * 查询业主订单
     *
     * @param info
     * @return
     */
@@ -312,8 +331,10 @@
    public List<Map> queryManchineOrders(Map info) {
        return sqlSessionTemplate.selectList("centerServiceDAOImpl.queryManchineOrders");
    }
    /**
     * 查询申请钥匙订单
     *
     * @param info
     * @return
     */
@@ -324,6 +345,7 @@
    /**
     * 根据oId 查询Business
     *
     * @param info
     * @return
     * @throws DAOException
@@ -336,6 +358,7 @@
    /**
     * 查询同订单 订单项
     *
     * @param info
     * @return
     * @throws DAOException