src/cn/ksource/web/facade/customerconfig/slacustomer/SlaCustomerFacadeImpl.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/cn/ksource/web/facade/rcxj/RcxjFacadeImpl.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/cn/ksource/web/facade/supplier/SupplierFacadeImpl.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
src/cn/ksource/web/facade/customerconfig/slacustomer/SlaCustomerFacadeImpl.java
@@ -1,15 +1,5 @@ package cn.ksource.web.facade.customerconfig.slacustomer; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import javax.servlet.http.HttpServletRequest; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import cn.ksource.beans.CI_DAILY_PATROL_ITEM; import cn.ksource.beans.CMDB_CI_CATEGORY; import cn.ksource.core.dao.BaseDao; @@ -18,7 +8,13 @@ import cn.ksource.core.util.ConvertUtil; import cn.ksource.core.util.JsonUtil; import cn.ksource.core.util.StringUtil; import cn.ksource.core.web.WebUtil; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; @Service("slaCustomerFacade") public class SlaCustomerFacadeImpl implements SlaCustomerFacade{ @Autowired @@ -799,7 +795,7 @@ */ @Override public List<Map> getCiCategoryTree(String pid,String type) { String sql = " SELECT ID as id,PID as pid,NAME as name,LV as jb,STATE,SERIAL FROM CMDB_CI_CATEGORY WHERE STATE=1 "; String sql = " SELECT ID as id,PID as pid,NAME as \"name\",LV as jb,STATE,SERIAL FROM CMDB_CI_CATEGORY WHERE STATE=1 "; SqlParameter param = new SqlParameter(); if(StringUtil.notEmpty(type)){ sql+=" and cate_type=:type"; @@ -817,7 +813,7 @@ sql=""; sql="select DISTINCT LV1_ID AS id,\n" + " '0' AS pid ,\n" + " LV1_name AS name,\n" + " LV1_name AS \"name\",\n" + " '1' AS lv,STATE,SERIAL from CMDB_CI_CATEGORY where STATE=1 and lv=3 and CATE_TYPE=2 "; }else if(StringUtil.isNotBlank(pid) && type.equals("2")){ CMDB_CI_CATEGORY cmdb_ci_category=new CMDB_CI_CATEGORY(pid).getInstanceById(); @@ -826,7 +822,7 @@ sql=""; sql="select DISTINCT LV1_ID AS id,\n" + " '0' AS pid ,\n" + " LV1_name AS name,\n" + " LV1_name AS \"name\",\n" + " '1' AS lv,STATE,SERIAL from CMDB_CI_CATEGORY where STATE=1 and lv=3 and CATE_TYPE=2 and LV1_ID=:pid "; param.addValue("pid", pid); } src/cn/ksource/web/facade/rcxj/RcxjFacadeImpl.java
@@ -1,14 +1,5 @@ package cn.ksource.web.facade.rcxj; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import javax.annotation.Resource; import org.springframework.stereotype.Service; import cn.ksource.beans.CI_DAILY_PATROL; import cn.ksource.beans.FlowRecord; import cn.ksource.core.dao.BaseDao; @@ -20,6 +11,13 @@ import cn.ksource.core.util.StringUtil; import cn.ksource.web.Constants; import cn.ksource.web.service.flow.FlowRecordService; import org.springframework.stereotype.Service; import javax.annotation.Resource; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; @Service @SuppressWarnings({"rawtypes"}) @@ -165,7 +163,7 @@ sql.append(" select ci_id from (select ci_id from ci_daily_patrol_record where result<>1 and patrol_id=:orderId group by ci_id ) t where t.ci_id = c.id "); sql.append(" ) "); } sql.append(" group by c.id "); sql.append(" group by c.id,c.lv3_id, c.ciname, c.searchcode,c.position "); List<Map> ciList = baseDao.queryForList(sql.toString(),params); //查询指标 src/cn/ksource/web/facade/supplier/SupplierFacadeImpl.java
@@ -7,21 +7,10 @@ import cn.ksource.core.util.ConvertUtil; import cn.ksource.core.util.DateUtil; import cn.ksource.core.util.StringUtil; import cn.ksource.web.Constants; import com.lowagie.text.pdf.PRAcroForm; import org.apache.commons.lang.StringEscapeUtils; import org.springframework.stereotype.Service; import javax.annotation.Resource; import java.sql.Struct; import java.util.ArrayList; import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.*; /** * Created by chenlong @@ -466,7 +455,7 @@ sql.append(" and b.code like :flbm "); params.put("flbm","%"+code+"%" ); } sql.append(" group by b.id"); sql.append(" group by b.id,b.LV1_id,b.LV2_id,b.LV1_NAME, b.LV2_NAME, b.LV3_NAME, b.CODE"); return sql.toString(); }