| | |
| | | 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; |
| | |
| | | @Service("queryServiceSMOImpl") |
| | | @Transactional |
| | | public class QueryServiceSMOImpl extends LoggerEngine implements IQueryServiceSMO { |
| | | |
| | | |
| | | private final static Logger logger = LoggerFactory.getLogger(QueryServiceSMOImpl.class); |
| | | |
| | | |
| | | @Autowired |
| | | private IQueryServiceDAO queryServiceDAOImpl; |
| | |
| | | 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); |