|
@ -9,7 +9,6 @@ import com.yihu.jw.care.service.lifeCare.LifeCareOrderService;
|
|
import com.yihu.jw.care.service.patient.CarePatientService;
|
|
import com.yihu.jw.care.service.patient.CarePatientService;
|
|
import com.yihu.jw.care.service.statistics.StatisticsService;
|
|
import com.yihu.jw.care.service.statistics.StatisticsService;
|
|
import com.yihu.jw.es.util.ElasticsearchUtil;
|
|
import com.yihu.jw.es.util.ElasticsearchUtil;
|
|
import com.yihu.jw.es.util.SaveModel;
|
|
|
|
import com.yihu.jw.restmodel.web.Envelop;
|
|
import com.yihu.jw.restmodel.web.Envelop;
|
|
import com.yihu.jw.restmodel.web.ListEnvelop;
|
|
import com.yihu.jw.restmodel.web.ListEnvelop;
|
|
import com.yihu.jw.restmodel.web.ObjEnvelop;
|
|
import com.yihu.jw.restmodel.web.ObjEnvelop;
|
|
@ -32,7 +31,7 @@ import java.util.Map;
|
|
* @Description:
|
|
* @Description:
|
|
*/
|
|
*/
|
|
@RestController
|
|
@RestController
|
|
@RequestMapping(value = "open/statistics")
|
|
|
|
|
|
@RequestMapping(value = "largeScreen/statistics")
|
|
@Api(value = "大屏-统计相关", description = "大屏-统计相关", tags = {"大屏-统计相关"})
|
|
@Api(value = "大屏-统计相关", description = "大屏-统计相关", tags = {"大屏-统计相关"})
|
|
public class OpenStatisticsEndpoint extends EnvelopRestEndpoint {
|
|
public class OpenStatisticsEndpoint extends EnvelopRestEndpoint {
|
|
|
|
|
|
@ -49,28 +48,6 @@ public class OpenStatisticsEndpoint extends EnvelopRestEndpoint {
|
|
@Autowired
|
|
@Autowired
|
|
private ElasticsearchUtil elasticsearchUtil;
|
|
private ElasticsearchUtil elasticsearchUtil;
|
|
|
|
|
|
@GetMapping(value = "executeESSQL1")
|
|
|
|
@ApiOperation(value = "执行essql语句 返回savemodel")
|
|
|
|
public ListEnvelop executeESSQL1(
|
|
|
|
@RequestParam(required = true) String sql) {
|
|
|
|
try {
|
|
|
|
return success(elasticsearchUtil.excute(sql, SaveModel.class, null, null));
|
|
|
|
} catch (Exception e) {
|
|
|
|
return failedListEnvelopException2(e);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@GetMapping(value = "executeESSQL2")
|
|
|
|
@ApiOperation(value = "执行essql语句")
|
|
|
|
public ObjEnvelop executeESSQL2(
|
|
|
|
@RequestParam(required = true) String sql) {
|
|
|
|
try {
|
|
|
|
return success(elasticsearchUtil.excuteSql(sql));
|
|
|
|
} catch (Exception e) {
|
|
|
|
return failedObjEnvelopException2(e);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@GetMapping(value = "statisticsTotalAmount")
|
|
@GetMapping(value = "statisticsTotalAmount")
|
|
@ApiOperation(value = "统计总数")
|
|
@ApiOperation(value = "统计总数")
|
|
public ObjEnvelop statisticsTotalAmount(
|
|
public ObjEnvelop statisticsTotalAmount(
|