|
@ -3,12 +3,21 @@
|
|
//import com.fasterxml.jackson.core.type.TypeReference;
|
|
//import com.fasterxml.jackson.core.type.TypeReference;
|
|
//import com.fasterxml.jackson.databind.ObjectMapper;
|
|
//import com.fasterxml.jackson.databind.ObjectMapper;
|
|
//
|
|
//
|
|
|
|
//import com.yihu.jw.basic.quota.service.*;
|
|
|
|
//import com.yihu.jw.basic.resource.service.RsResourceQuotaService;
|
|
|
|
//import com.yihu.jw.entity.ehr.quota.*;
|
|
|
|
//import com.yihu.jw.entity.ehr.resource.RsResourceQuota;
|
|
|
|
//import com.yihu.jw.restmodel.ehr.tj.MTjQuotaDataSaveModel;
|
|
|
|
//import com.yihu.jw.restmodel.ehr.tj.MTjQuotaDataSourceModel;
|
|
|
|
//import com.yihu.jw.restmodel.ehr.tj.MTjQuotaModel;
|
|
//import com.yihu.jw.restmodel.web.Envelop;
|
|
//import com.yihu.jw.restmodel.web.Envelop;
|
|
|
|
//import com.yihu.jw.restmodel.web.ObjEnvelop;
|
|
|
|
//import com.yihu.jw.restmodel.web.PageEnvelop;
|
|
//import com.yihu.jw.restmodel.web.endpoint.EnvelopRestEndpoint;
|
|
//import com.yihu.jw.restmodel.web.endpoint.EnvelopRestEndpoint;
|
|
|
|
//import com.yihu.jw.util.date.DateUtil;
|
|
//import com.yihu.jw.util.http.HttpClientUtil;
|
|
//import com.yihu.jw.util.http.HttpClientUtil;
|
|
|
|
//import io.swagger.annotations.Api;
|
|
//import org.springframework.beans.factory.annotation.Autowired;
|
|
//import org.springframework.beans.factory.annotation.Autowired;
|
|
//import org.springframework.beans.factory.annotation.Value;
|
|
|
|
//import org.springframework.stereotype.Controller;
|
|
|
|
//import org.springframework.ui.Model;
|
|
//import org.springframework.ui.Model;
|
|
//import org.springframework.util.LinkedMultiValueMap;
|
|
//import org.springframework.util.LinkedMultiValueMap;
|
|
//import org.springframework.util.MultiValueMap;
|
|
//import org.springframework.util.MultiValueMap;
|
|
@ -16,7 +25,6 @@
|
|
//import org.springframework.web.bind.annotation.RequestMapping;
|
|
//import org.springframework.web.bind.annotation.RequestMapping;
|
|
//import org.springframework.web.bind.annotation.ResponseBody;
|
|
//import org.springframework.web.bind.annotation.ResponseBody;
|
|
//import org.springframework.web.bind.annotation.RestController;
|
|
//import org.springframework.web.bind.annotation.RestController;
|
|
//import org.springframework.web.bind.annotation.SessionAttributes;
|
|
|
|
//import org.springframework.web.client.RestClientException;
|
|
//import org.springframework.web.client.RestClientException;
|
|
//import org.springframework.web.multipart.MultipartFile;
|
|
//import org.springframework.web.multipart.MultipartFile;
|
|
//
|
|
//
|
|
@ -31,17 +39,25 @@
|
|
// */
|
|
// */
|
|
//@RestController
|
|
//@RestController
|
|
//@RequestMapping("/tjQuota")
|
|
//@RequestMapping("/tjQuota")
|
|
|
|
//@Api( tags = {"网关-统计"})
|
|
//public class TjQuotaController extends EnvelopRestEndpoint {
|
|
//public class TjQuotaController extends EnvelopRestEndpoint {
|
|
//
|
|
//
|
|
|
|
// @Autowired
|
|
|
|
// TjQuotaService tjQuotaService;
|
|
|
|
// @Autowired
|
|
|
|
// private RsResourceQuotaService resourceQuotaService;
|
|
|
|
// @Autowired
|
|
|
|
// TjQuotaDataSaveService tjQuotaDataSaveService;
|
|
|
|
// @Autowired
|
|
|
|
// TjQuotaDataSourceService tjQuotaDataSourceService;
|
|
|
|
// @Autowired
|
|
|
|
// TjDataSaveService tjDataSaveService;
|
|
|
|
// @Autowired
|
|
|
|
// TjDataSourceService tjDataSourceService;
|
|
//
|
|
//
|
|
// @RequestMapping("/getTjQuota")
|
|
// @RequestMapping("/getTjQuota")
|
|
// @ResponseBody
|
|
|
|
// public Object searchTjQuota(String name, Integer quotaType, int page, int rows) {
|
|
// public Object searchTjQuota(String name, Integer quotaType, int page, int rows) {
|
|
// String url = "/tj/getTjQuotaList";
|
|
// String url = "/tj/getTjQuotaList";
|
|
// String resultStr = "";
|
|
|
|
// Envelop envelop = new Envelop();
|
|
|
|
// Map<String, Object> params = new HashMap<>();
|
|
|
|
// params.put("filters", "");
|
|
|
|
// StringBuffer stringBuffer = new StringBuffer();
|
|
// StringBuffer stringBuffer = new StringBuffer();
|
|
// stringBuffer.append("status=1;");
|
|
// stringBuffer.append("status=1;");
|
|
// if (!StringUtils.isEmpty(name)) {
|
|
// if (!StringUtils.isEmpty(name)) {
|
|
@ -53,14 +69,22 @@
|
|
// stringBuffer.append("quotaType=-1");
|
|
// stringBuffer.append("quotaType=-1");
|
|
// }*/
|
|
// }*/
|
|
// String filters = stringBuffer.toString();
|
|
// String filters = stringBuffer.toString();
|
|
// if (!StringUtils.isEmpty(filters)) {
|
|
|
|
// params.put("filters", filters);
|
|
|
|
// }
|
|
|
|
// params.put("page", page);
|
|
|
|
// params.put("size", rows);
|
|
|
|
|
|
//
|
|
// try {
|
|
// try {
|
|
// resultStr = HttpClientUtil.doGet(comUrl + url, params, username, password);
|
|
|
|
// return resultStr;
|
|
|
|
|
|
// PageEnvelop PageEnvelop = new PageEnvelop();
|
|
|
|
// List<TjQuota> tjQuota = tjQuotaService.search(null, filters, null, page, rows);
|
|
|
|
// if(tjQuota != null){
|
|
|
|
// PageEnvelop.setDetailModelList(tjQuota);
|
|
|
|
// PageEnvelop.setTotalCount((int)tjQuotaService.getCount(filters));
|
|
|
|
// PageEnvelop.setStatus(200);
|
|
|
|
// PageEnvelop.setCurrPage(page);
|
|
|
|
// PageEnvelop.setPageSize(rows);
|
|
|
|
// }else{
|
|
|
|
// PageEnvelop.setStatus(200);
|
|
|
|
// PageEnvelop.setMessage("查询无数据");
|
|
|
|
// PageEnvelop.setTotalCount(0);
|
|
|
|
// }
|
|
|
|
// return PageEnvelop;
|
|
// } catch (Exception ex) {
|
|
// } catch (Exception ex) {
|
|
// ex.printStackTrace();
|
|
// ex.printStackTrace();
|
|
// return failed(ERR_SYSTEM_DES);
|
|
// return failed(ERR_SYSTEM_DES);
|
|
@ -76,26 +100,17 @@
|
|
// * @throws IOException
|
|
// * @throws IOException
|
|
// */
|
|
// */
|
|
// @RequestMapping(value = "updateTjDataSource", produces = "text/html;charset=UTF-8")
|
|
// @RequestMapping(value = "updateTjDataSource", produces = "text/html;charset=UTF-8")
|
|
// @ResponseBody
|
|
|
|
// public Object updateTjQuota(String tjQuotaModelJsonData, HttpServletRequest request) throws IOException {
|
|
|
|
//
|
|
|
|
|
|
// public Envelop updateTjQuota(String tjQuotaModelJsonData, HttpServletRequest request) throws IOException {
|
|
// String url = "/tj/addTjQuota/";
|
|
// String url = "/tj/addTjQuota/";
|
|
// String resultStr = "";
|
|
// String resultStr = "";
|
|
// Envelop result = new Envelop();
|
|
// Envelop result = new Envelop();
|
|
// UsersModel userDetailModel = getCurrentUserRedis(request);
|
|
|
|
// MultiValueMap<String, String> params = new LinkedMultiValueMap<>();
|
|
|
|
// String[] strings = URLDecoder.decode(tjQuotaModelJsonData, "UTF-8").split(";");
|
|
// String[] strings = URLDecoder.decode(tjQuotaModelJsonData, "UTF-8").split(";");
|
|
// TjQuotaModel detailModel = toModel(strings[0], TjQuotaModel.class);
|
|
|
|
// RestTemplates templates = new RestTemplates();
|
|
|
|
//
|
|
|
|
|
|
// TjQuota detailModel = objectMapper.readValue(strings[0], TjQuota.class);
|
|
// try {
|
|
// try {
|
|
// if (!StringUtils.isEmpty(detailModel.getId())) {
|
|
// if (!StringUtils.isEmpty(detailModel.getId())) {
|
|
// Long tjQuotaId = detailModel.getId();
|
|
// Long tjQuotaId = detailModel.getId();
|
|
// resultStr = templates.doGet(comUrl + "/tj/getTjQuotaById/" + tjQuotaId);
|
|
|
|
// Envelop envelop = getEnvelop(resultStr);
|
|
|
|
// if (envelop.isSuccessFlg()) {
|
|
|
|
// TjQuotaModel updateTjQuota = getEnvelopModel(envelop.getObj(), TjQuotaModel.class);
|
|
|
|
//
|
|
|
|
|
|
// TjQuota updateTjQuota = tjQuotaService.getById(tjQuotaId);
|
|
|
|
// if (updateTjQuota!=null) {
|
|
// updateTjQuota.setResultGetType(detailModel.getResultGetType());
|
|
// updateTjQuota.setResultGetType(detailModel.getResultGetType());
|
|
// updateTjQuota.setCode(detailModel.getCode());
|
|
// updateTjQuota.setCode(detailModel.getCode());
|
|
// updateTjQuota.setName(detailModel.getName());
|
|
// updateTjQuota.setName(detailModel.getName());
|
|
@ -107,30 +122,46 @@
|
|
// updateTjQuota.setQuotaType(detailModel.getQuotaType());
|
|
// updateTjQuota.setQuotaType(detailModel.getQuotaType());
|
|
// updateTjQuota.setDataLevel(detailModel.getDataLevel());
|
|
// updateTjQuota.setDataLevel(detailModel.getDataLevel());
|
|
// updateTjQuota.setRemark(detailModel.getRemark());
|
|
// updateTjQuota.setRemark(detailModel.getRemark());
|
|
// updateTjQuota.setUpdateUser(userDetailModel.getId());
|
|
|
|
// updateTjQuota.setUpdateUserName(userDetailModel.getRealName());
|
|
|
|
// updateTjQuota.setTjQuotaDataSaveModel(detailModel.getTjQuotaDataSaveModel());
|
|
|
|
// updateTjQuota.setTjQuotaDataSourceModel(detailModel.getTjQuotaDataSourceModel());
|
|
|
|
// updateTjQuota.setTjQuotaChartModel(detailModel.getTjQuotaChartModel());
|
|
|
|
// params.add("model", toJson(updateTjQuota));
|
|
|
|
//
|
|
|
|
// resultStr = templates.doPost(comUrl + url, params);
|
|
|
|
|
|
// TjQuotaDataSource tjquotaDataSource = null;
|
|
|
|
// TjQuotaDataSave tjQuotaDataSave = null;
|
|
|
|
// if(detailModel.getTjQuotaDataSource() != null){
|
|
|
|
// tjquotaDataSource = detailModel.getTjQuotaDataSource();
|
|
|
|
// tjquotaDataSource.setQuotaCode(detailModel.getCode());
|
|
|
|
// }
|
|
|
|
// if(detailModel.getTjQuotaDataSave() != null
|
|
|
|
// && org.apache.commons.lang3.StringUtils.isNotEmpty(detailModel.getTjQuotaDataSave().getSaveCode())){
|
|
|
|
// tjQuotaDataSave = detailModel.getTjQuotaDataSave();
|
|
|
|
// tjQuotaDataSave.setQuotaCode(detailModel.getCode());
|
|
|
|
// }
|
|
|
|
// detailModel.setUpdateTime(new Date());
|
|
|
|
// tjQuotaService.saves(detailModel, tjquotaDataSource, tjQuotaDataSave);
|
|
|
|
// return ObjEnvelop.getSuccess("统计表更新成功!", detailModel);
|
|
// } else {
|
|
// } else {
|
|
// result.setSuccessFlg(false);
|
|
|
|
// result.setErrorMsg(envelop.getErrorMsg());
|
|
|
|
// return result;
|
|
|
|
|
|
// return failed("参数错误");
|
|
// }
|
|
// }
|
|
// } else {
|
|
// } else {
|
|
// detailModel.setCreateUser(userDetailModel.getId());
|
|
|
|
// detailModel.setCreateUserName(userDetailModel.getRealName());
|
|
|
|
// params.add("model", toJson(detailModel));
|
|
|
|
// resultStr = templates.doPost(comUrl + url, params);
|
|
|
|
|
|
// TjQuotaDataSource tjquotaDataSource = null;
|
|
|
|
// TjQuotaDataSave tjQuotaDataSave = null;
|
|
|
|
// if(detailModel.getTjQuotaDataSource() != null){
|
|
|
|
// tjquotaDataSource = detailModel.getTjQuotaDataSource();
|
|
|
|
// tjquotaDataSource.setQuotaCode(detailModel.getCode());
|
|
|
|
// }
|
|
|
|
// if(detailModel.getTjQuotaDataSave() != null
|
|
|
|
// && org.apache.commons.lang3.StringUtils.isNotEmpty(detailModel.getTjQuotaDataSave().getSaveCode())){
|
|
|
|
// tjQuotaDataSave = detailModel.getTjQuotaDataSave();
|
|
|
|
// tjQuotaDataSave.setQuotaCode(detailModel.getCode());
|
|
|
|
// }
|
|
|
|
// detailModel.setIsInitExec("0");
|
|
|
|
// detailModel.setStatus(1);
|
|
|
|
// detailModel.setCreateTime(new Date());
|
|
|
|
// detailModel.setUpdateTime(new Date());
|
|
|
|
// tjQuotaService.saves(detailModel, tjquotaDataSource, tjQuotaDataSave);
|
|
|
|
// return ObjEnvelop.getSuccess("统计表更新成功!", detailModel);
|
|
// }
|
|
// }
|
|
// } catch (Exception e) {
|
|
// } catch (Exception e) {
|
|
// e.printStackTrace();
|
|
// e.printStackTrace();
|
|
// return failed(ERR_SYSTEM_DES);
|
|
// return failed(ERR_SYSTEM_DES);
|
|
// }
|
|
// }
|
|
// return resultStr;
|
|
|
|
// }
|
|
// }
|
|
//
|
|
//
|
|
// /**
|
|
// /**
|
|
@ -140,38 +171,19 @@
|
|
// * @return
|
|
// * @return
|
|
// */
|
|
// */
|
|
// @RequestMapping("deleteTjDataSave")
|
|
// @RequestMapping("deleteTjDataSave")
|
|
// @ResponseBody
|
|
|
|
// public Object deleteTjQuota(Long tjQuotaId) {
|
|
|
|
|
|
// public Envelop deleteTjQuota(Long tjQuotaId) {
|
|
// String url = "/tj/deleteTjQuota";
|
|
// String url = "/tj/deleteTjQuota";
|
|
// String resultStr = "";
|
|
|
|
// Envelop result = new Envelop();
|
|
|
|
// Map<String, Object> params = new HashMap<>();
|
|
|
|
// ObjectMapper mapper = new ObjectMapper();
|
|
|
|
//
|
|
|
|
// //判断资源视图中有没有用到此视图,有用到 不允许删除
|
|
// //判断资源视图中有没有用到此视图,有用到 不允许删除
|
|
// String resQuotaUrl = "/resourceQuota/searchByQuotaId";
|
|
// String resQuotaUrl = "/resourceQuota/searchByQuotaId";
|
|
//
|
|
|
|
// try {
|
|
// try {
|
|
// params.put("quotaId", tjQuotaId);
|
|
|
|
// resultStr = HttpClientUtil.doGet(comUrl + resQuotaUrl, params, username, password);
|
|
|
|
// result = mapper.readValue(resultStr, Envelop.class);
|
|
|
|
// if (result.getObj() != null) {
|
|
|
|
// result.setSuccessFlg(false);
|
|
|
|
// result.setErrorMsg("指标在视图中被使用暂时不能删除,若要删除先解除资源视图中指标关系");
|
|
|
|
// return result;
|
|
|
|
// }
|
|
|
|
//
|
|
|
|
// params.clear();
|
|
|
|
// params.put("id", tjQuotaId);
|
|
|
|
// resultStr = HttpClientUtil.doDelete(comUrl + url, params, username, password);
|
|
|
|
// result = mapper.readValue(resultStr, Envelop.class);
|
|
|
|
// if (result.isSuccessFlg()) {
|
|
|
|
// result.setSuccessFlg(true);
|
|
|
|
// } else {
|
|
|
|
// result.setSuccessFlg(false);
|
|
|
|
// result.setErrorMsg("删除失败");
|
|
|
|
// }
|
|
|
|
// return result;
|
|
|
|
|
|
// List<RsResourceQuota> list = resourceQuotaService.search("quotaId=" + tjQuotaId);
|
|
|
|
// if (list.size()>0) {
|
|
|
|
// return failed("指标在视图中被使用暂时不能删除,若要删除先解除资源视图中指标关系");
|
|
|
|
// }
|
|
|
|
// TjQuota tjQuota = tjQuotaService.getById(tjQuotaId);
|
|
|
|
// tjQuota.setStatus(-1);
|
|
|
|
// tjQuotaService.save(tjQuota);
|
|
|
|
// return ObjEnvelop.getSuccess("统计指标表删除成功!");
|
|
// } catch (Exception e) {
|
|
// } catch (Exception e) {
|
|
// e.printStackTrace();
|
|
// e.printStackTrace();
|
|
// return failed(ERR_SYSTEM_DES);
|
|
// return failed(ERR_SYSTEM_DES);
|
|
@ -186,22 +198,33 @@
|
|
// * @return
|
|
// * @return
|
|
// */
|
|
// */
|
|
// @RequestMapping("getTjQuotaById")
|
|
// @RequestMapping("getTjQuotaById")
|
|
// @ResponseBody
|
|
|
|
// public Object getTjQuotaById(Model model, Long id) {
|
|
|
|
|
|
// public Envelop getTjQuotaById(Model model, Long id) {
|
|
// String url = "/tj/getTjQuotaById/" + id;
|
|
// String url = "/tj/getTjQuotaById/" + id;
|
|
// String resultStr = "";
|
|
// String resultStr = "";
|
|
// Envelop envelop = new Envelop();
|
|
// Envelop envelop = new Envelop();
|
|
// Map<String, Object> params = new HashMap<>();
|
|
// Map<String, Object> params = new HashMap<>();
|
|
// params.put("id", id);
|
|
// params.put("id", id);
|
|
// TjQuotaModel detailModel = null;
|
|
|
|
// try {
|
|
// try {
|
|
// resultStr = HttpClientUtil.doGet(comUrl + url, params, username, password);
|
|
|
|
// Envelop ep = getEnvelop(resultStr);
|
|
|
|
// detailModel = toModel(toJson(ep.getObj()), TjQuotaModel.class);
|
|
|
|
|
|
// TjQuota tjQuota = tjQuotaService.getById(id);
|
|
|
|
// if (null != tjQuota) {
|
|
|
|
// TjQuotaDataSave tjQuotaDataSave = tjQuotaDataSaveService.getByQuotaCode(tjQuota.getCode());
|
|
|
|
// TjQuotaDataSource tjQuotaDataSource = tjQuotaDataSourceService.getByQuotaCode(tjQuota.getCode());
|
|
|
|
// if (tjQuotaDataSave != null) {
|
|
|
|
// TjDataSave tjDataSave = tjDataSaveService.getByCode(tjQuotaDataSave.getSaveCode());
|
|
|
|
// tjQuotaDataSave.setName(tjDataSave.getName());
|
|
|
|
// }
|
|
|
|
// if (tjQuotaDataSource != null) {
|
|
|
|
// TjDataSource tjDataSource = tjDataSourceService.getByCode(tjQuotaDataSource.getSourceCode());
|
|
|
|
// tjQuotaDataSource.setName(tjDataSource.getName());
|
|
|
|
// }
|
|
|
|
// tjQuota.setTjQuotaDataSave(tjQuotaDataSave);
|
|
|
|
// tjQuota.setTjQuotaDataSource(tjQuotaDataSource);
|
|
|
|
// }
|
|
|
|
// return ObjEnvelop.getSuccess("统计指标表删除成功!",tjQuota);
|
|
// } catch (Exception e) {
|
|
// } catch (Exception e) {
|
|
// e.printStackTrace();
|
|
// e.printStackTrace();
|
|
// }
|
|
// }
|
|
// return detailModel;
|
|
|
|
|
|
// return failed("查询失败");
|
|
// }
|
|
// }
|
|
//
|
|
//
|
|
// /**
|
|
// /**
|
|
@ -211,8 +234,7 @@
|
|
// * @return
|
|
// * @return
|
|
// */
|
|
// */
|
|
// @RequestMapping("hasExistsName")
|
|
// @RequestMapping("hasExistsName")
|
|
// @ResponseBody
|
|
|
|
// public boolean hasExistsName(String name) {
|
|
|
|
|
|
// public Envelop hasExistsName(String name) {
|
|
// String url = "/tj/tjQuotaExistsName/" + name;
|
|
// String url = "/tj/tjQuotaExistsName/" + name;
|
|
// String resultStr = "";
|
|
// String resultStr = "";
|
|
// Envelop result = new Envelop();
|
|
// Envelop result = new Envelop();
|
|
@ -220,14 +242,13 @@
|
|
// ObjectMapper mapper = new ObjectMapper();
|
|
// ObjectMapper mapper = new ObjectMapper();
|
|
// params.put("name", name);
|
|
// params.put("name", name);
|
|
// try {
|
|
// try {
|
|
// resultStr = HttpClientUtil.doGet(comUrl + url, params, username, password);
|
|
|
|
// if (resultStr.equals("true")) {
|
|
|
|
// return true;
|
|
|
|
// }
|
|
|
|
|
|
// String filter = "name=" + name;
|
|
|
|
// List<TjQuota> list = tjQuotaService.search(filter);
|
|
|
|
// return ObjEnvelop.getSuccess("查询成功",list.size() >0);
|
|
// } catch (Exception e) {
|
|
// } catch (Exception e) {
|
|
// e.getMessage();
|
|
// e.getMessage();
|
|
// }
|
|
// }
|
|
// return false;
|
|
|
|
|
|
// return failed("查询失败");
|
|
// }
|
|
// }
|
|
//
|
|
//
|
|
// /**
|
|
// /**
|
|
@ -237,8 +258,7 @@
|
|
// * @return
|
|
// * @return
|
|
// */
|
|
// */
|
|
// @RequestMapping("hasExistsCode")
|
|
// @RequestMapping("hasExistsCode")
|
|
// @ResponseBody
|
|
|
|
// public boolean hasExistsCode(String code) {
|
|
|
|
|
|
// public Envelop hasExistsCode(String code) {
|
|
// String url = "/tj/tjQuotaExistsCode/" + code;
|
|
// String url = "/tj/tjQuotaExistsCode/" + code;
|
|
// String resultStr = "";
|
|
// String resultStr = "";
|
|
// Envelop result = new Envelop();
|
|
// Envelop result = new Envelop();
|
|
@ -246,21 +266,19 @@
|
|
// ObjectMapper mapper = new ObjectMapper();
|
|
// ObjectMapper mapper = new ObjectMapper();
|
|
// params.put("code", code);
|
|
// params.put("code", code);
|
|
// try {
|
|
// try {
|
|
// resultStr = HttpClientUtil.doGet(comUrl + url, params, username, password);
|
|
|
|
// if (resultStr.equals("true")) {
|
|
|
|
// return true;
|
|
|
|
// }
|
|
|
|
|
|
// String filter = "code=" + code;
|
|
|
|
// List<TjQuota> list = tjQuotaService.search(filter);
|
|
|
|
// return ObjEnvelop.getSuccess("查询成功",list.size() >0);
|
|
// } catch (Exception e) {
|
|
// } catch (Exception e) {
|
|
// e.getMessage();
|
|
// e.getMessage();
|
|
// }
|
|
// }
|
|
// return false;
|
|
|
|
|
|
// return failed("查询失败");
|
|
// }
|
|
// }
|
|
//
|
|
//
|
|
// /**
|
|
// /**
|
|
// * 初始执行(全量统计)
|
|
// * 初始执行(全量统计)
|
|
// */
|
|
// */
|
|
// @RequestMapping("firstExecuteQuota")
|
|
// @RequestMapping("firstExecuteQuota")
|
|
// @ResponseBody
|
|
|
|
// public Object firstExecuteQuota(Long tjQuotaId) {
|
|
// public Object firstExecuteQuota(Long tjQuotaId) {
|
|
// Envelop envelop = new Envelop();
|
|
// Envelop envelop = new Envelop();
|
|
// Map<String, Object> params = new HashMap<>();
|
|
// Map<String, Object> params = new HashMap<>();
|
|
@ -280,7 +298,6 @@
|
|
// * 执行指标
|
|
// * 执行指标
|
|
// */
|
|
// */
|
|
// @RequestMapping("execuQuota")
|
|
// @RequestMapping("execuQuota")
|
|
// @ResponseBody
|
|
|
|
// public Object execuQuota(Long tjQuotaId, String startDate, String endDate) {
|
|
// public Object execuQuota(Long tjQuotaId, String startDate, String endDate) {
|
|
// Envelop envelop = new Envelop();
|
|
// Envelop envelop = new Envelop();
|
|
// Map<String, Object> params = new HashMap<>();
|
|
// Map<String, Object> params = new HashMap<>();
|
|
@ -354,7 +371,6 @@
|
|
// * @return
|
|
// * @return
|
|
// */
|
|
// */
|
|
// @RequestMapping("selectQuotaResult")
|
|
// @RequestMapping("selectQuotaResult")
|
|
// @ResponseBody
|
|
|
|
// public Object selectQuotaResult(Long tjQuotaId, int page, int rows,
|
|
// public Object selectQuotaResult(Long tjQuotaId, int page, int rows,
|
|
// String startTime, String endTime, String orgName,
|
|
// String startTime, String endTime, String orgName,
|
|
// String province, String city, String district,String res, HttpServletRequest request) {
|
|
// String province, String city, String district,String res, HttpServletRequest request) {
|
|
@ -388,20 +404,6 @@
|
|
// }
|
|
// }
|
|
// }
|
|
// }
|
|
//
|
|
//
|
|
// /**
|
|
|
|
// * 指标日志查询
|
|
|
|
// *
|
|
|
|
// * @param model
|
|
|
|
// * @return
|
|
|
|
// */
|
|
|
|
// @RequestMapping("initialQuotaLog")
|
|
|
|
// public String initialQuotaLog(Model model, String quotaCode, String quotaType, String name) {
|
|
|
|
// model.addAttribute("contentPage", "/report/zhibiao/zhiBiaoLogIndex");
|
|
|
|
// model.addAttribute("quotaCode", quotaCode);
|
|
|
|
// model.addAttribute("quotaType", quotaType);
|
|
|
|
// model.addAttribute("name", name);
|
|
|
|
// return "emptyView";
|
|
|
|
// }
|
|
|
|
//
|
|
//
|
|
// /**
|
|
// /**
|
|
// * 获取指标日志信息
|
|
// * 获取指标日志信息
|
|
@ -410,7 +412,6 @@
|
|
// * @return
|
|
// * @return
|
|
// */
|
|
// */
|
|
// @RequestMapping("queryQuotaLog")
|
|
// @RequestMapping("queryQuotaLog")
|
|
// @ResponseBody
|
|
|
|
// public Object queryQuotaLog(String quotaCode, String startTime, String endTime, int page, int rows) throws Exception {
|
|
// public Object queryQuotaLog(String quotaCode, String startTime, String endTime, int page, int rows) throws Exception {
|
|
// String url = "/tj/getTjQuotaLogList";
|
|
// String url = "/tj/getTjQuotaLogList";
|
|
// String resultStr = "";
|
|
// String resultStr = "";
|
|
@ -440,7 +441,6 @@
|
|
// * @return
|
|
// * @return
|
|
// */
|
|
// */
|
|
// @RequestMapping("hasConfigDimension")
|
|
// @RequestMapping("hasConfigDimension")
|
|
// @ResponseBody
|
|
|
|
// public boolean hasConfigDimension(String quotaCode) throws Exception {
|
|
// public boolean hasConfigDimension(String quotaCode) throws Exception {
|
|
// String url = "/tj/hasConfigDimension";
|
|
// String url = "/tj/hasConfigDimension";
|
|
// String resultStr = "";
|
|
// String resultStr = "";
|
|
@ -461,7 +461,6 @@
|
|
//
|
|
//
|
|
// //带检索分页的查找指标方法,用于下拉框
|
|
// //带检索分页的查找指标方法,用于下拉框
|
|
// @RequestMapping("/rsQuota")
|
|
// @RequestMapping("/rsQuota")
|
|
// @ResponseBody
|
|
|
|
// public Object searchRsQuota(String searchParm, int page, int rows) {
|
|
// public Object searchRsQuota(String searchParm, int page, int rows) {
|
|
// String url = "/tj/getTjQuotaList";
|
|
// String url = "/tj/getTjQuotaList";
|
|
// Envelop envelop = new Envelop();
|
|
// Envelop envelop = new Envelop();
|
|
@ -502,7 +501,6 @@
|
|
//
|
|
//
|
|
//
|
|
//
|
|
// @RequestMapping("/getTjQuotaChartList")
|
|
// @RequestMapping("/getTjQuotaChartList")
|
|
// @ResponseBody
|
|
|
|
// public Object getQuotaChartList(String quotaCode, String name, int dictId, int page, int rows) {
|
|
// public Object getQuotaChartList(String quotaCode, String name, int dictId, int page, int rows) {
|
|
// String url = "/tj/getTjQuotaChartList";
|
|
// String url = "/tj/getTjQuotaChartList";
|
|
// String resultStr = "";
|
|
// String resultStr = "";
|
|
@ -545,7 +543,6 @@
|
|
// * @throws IOException
|
|
// * @throws IOException
|
|
// */
|
|
// */
|
|
// @RequestMapping(value = "addTjQuotaChart", produces = "text/html;charset=UTF-8")
|
|
// @RequestMapping(value = "addTjQuotaChart", produces = "text/html;charset=UTF-8")
|
|
// @ResponseBody
|
|
|
|
// public Object addTjQuotaChart(String quotaCode, String jsonModel, HttpServletRequest request) throws IOException {
|
|
// public Object addTjQuotaChart(String quotaCode, String jsonModel, HttpServletRequest request) throws IOException {
|
|
// String url = "/tj/batchTjQuotaChart";
|
|
// String url = "/tj/batchTjQuotaChart";
|
|
// String resultStr = "";
|
|
// String resultStr = "";
|
|
@ -924,7 +921,6 @@
|
|
// * 停止执行指标
|
|
// * 停止执行指标
|
|
// */
|
|
// */
|
|
// @RequestMapping("removeQuota")
|
|
// @RequestMapping("removeQuota")
|
|
// @ResponseBody
|
|
|
|
// public Object removeQuota(Long tjQuotaId) {
|
|
// public Object removeQuota(Long tjQuotaId) {
|
|
// Envelop envelop = new Envelop();
|
|
// Envelop envelop = new Envelop();
|
|
// Map<String, Object> params = new HashMap<>();
|
|
// Map<String, Object> params = new HashMap<>();
|