wuxw
2019-04-10 8b6c1051c1191621a121b540aa51eff9728b8246
java110-service/src/main/java/com/java110/service/smo/impl/QueryServiceSMOImpl.java
@@ -17,6 +17,8 @@
import com.java110.service.dao.IQueryServiceDAO;
import com.java110.service.smo.IQueryServiceSMO;
import org.apache.commons.lang3.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
@@ -34,6 +36,10 @@
@Service("queryServiceSMOImpl")
@Transactional
public class QueryServiceSMOImpl extends LoggerEngine implements IQueryServiceSMO {
    private final static Logger logger = LoggerFactory.getLogger(QueryServiceSMOImpl.class);
    @Autowired
    private IQueryServiceDAO queryServiceDAOImpl;
@@ -54,7 +60,9 @@
            List<String> sysParams = currentServiceSql.getParamList();
            for(String param : sysParams) {
                if(!dataQuery.getRequestParams().containsKey(param)){
                    throw new BusinessException(ResponseConstant.RESULT_PARAM_ERROR,"请求参数错误,请求报文中未包含参数 " + param + " 信息");
                    //2019-04-10 这里修改为不抛出异常而是写为空字符串
                    //throw new BusinessException(ResponseConstant.RESULT_PARAM_ERROR,"请求参数错误,请求报文中未包含参数 " + param + " 信息");
                    dataQuery.getRequestParams().put(param,"");
                }
            }
            dataQuery.setServiceSql(currentServiceSql);