|
@ -1,11 +1,11 @@
|
|
package com.yihu.jw.wlyy.controller;
|
|
|
|
|
|
package com.yihu.jw.wlyy.Agreement.controller;
|
|
|
|
|
|
import com.yihu.jw.restmodel.common.Envelop;
|
|
import com.yihu.jw.restmodel.common.Envelop;
|
|
import com.yihu.jw.restmodel.common.EnvelopRestController;
|
|
import com.yihu.jw.restmodel.common.EnvelopRestController;
|
|
import com.yihu.jw.restmodel.exception.ApiException;
|
|
import com.yihu.jw.restmodel.exception.ApiException;
|
|
import com.yihu.jw.restmodel.wlyy.WlyyContants;
|
|
import com.yihu.jw.restmodel.wlyy.WlyyContants;
|
|
import com.yihu.jw.wlyy.entity.WlyyAgreementKpiLog;
|
|
|
|
import com.yihu.jw.wlyy.service.WlyyAgreementKpiLogService;
|
|
|
|
|
|
import com.yihu.jw.wlyy.Agreement.entity.WlyyAgreementKpiLog;
|
|
|
|
import com.yihu.jw.wlyy.Agreement.service.WlyyAgreementKpiLogService;
|
|
import io.swagger.annotations.Api;
|
|
import io.swagger.annotations.Api;
|
|
import io.swagger.annotations.ApiOperation;
|
|
import io.swagger.annotations.ApiOperation;
|
|
import io.swagger.annotations.ApiParam;
|
|
import io.swagger.annotations.ApiParam;
|
|
@ -20,14 +20,14 @@ import java.util.List;
|
|
|
|
|
|
@RestController
|
|
@RestController
|
|
@RequestMapping(WlyyContants.AgreementKpiLog.api_common)
|
|
@RequestMapping(WlyyContants.AgreementKpiLog.api_common)
|
|
@Api(value = "套餐指标相关操作", description = "套餐指标相关操作")
|
|
|
|
|
|
@Api(value = "套餐指标执行日志相关操作", description = "套餐指标执行日志相关操作")
|
|
public class WlyyAgreementKpiLogController extends EnvelopRestController {
|
|
public class WlyyAgreementKpiLogController extends EnvelopRestController {
|
|
|
|
|
|
@Autowired
|
|
@Autowired
|
|
private WlyyAgreementKpiLogService wlyyAgreementKpiLogService;
|
|
private WlyyAgreementKpiLogService wlyyAgreementKpiLogService;
|
|
|
|
|
|
@PostMapping(value = WlyyContants.AgreementKpiLog.api_create, consumes = MediaType.APPLICATION_JSON_UTF8_VALUE)
|
|
@PostMapping(value = WlyyContants.AgreementKpiLog.api_create, consumes = MediaType.APPLICATION_JSON_UTF8_VALUE)
|
|
@ApiOperation(value = "创建套餐指标", notes = "创建套餐指标")
|
|
|
|
|
|
@ApiOperation(value = "创建套餐指标日志", notes = "创建套餐指标日志")
|
|
public Envelop create(
|
|
public Envelop create(
|
|
@ApiParam(name = "json_data", value = "", defaultValue = "")
|
|
@ApiParam(name = "json_data", value = "", defaultValue = "")
|
|
@RequestBody String jsonData) {
|
|
@RequestBody String jsonData) {
|
|
@ -40,7 +40,7 @@ public class WlyyAgreementKpiLogController extends EnvelopRestController {
|
|
}
|
|
}
|
|
|
|
|
|
@GetMapping(value =WlyyContants.AgreementKpiLog.api_getByCode)
|
|
@GetMapping(value =WlyyContants.AgreementKpiLog.api_getByCode)
|
|
@ApiOperation(value = "根据code查找套餐指标", notes = "根据code查找套餐指标")
|
|
|
|
|
|
@ApiOperation(value = "根据code查找套餐指标日志", notes = "根据code查找套餐指标日志")
|
|
public Envelop findByCode(
|
|
public Envelop findByCode(
|
|
@ApiParam(name = "code", value = "code")
|
|
@ApiParam(name = "code", value = "code")
|
|
@RequestParam(value = "code", required = true) String code
|
|
@RequestParam(value = "code", required = true) String code
|
|
@ -53,13 +53,13 @@ public class WlyyAgreementKpiLogController extends EnvelopRestController {
|
|
}
|
|
}
|
|
|
|
|
|
@RequestMapping(value =WlyyContants.AgreementKpiLog.api_queryPage, method = RequestMethod.GET)
|
|
@RequestMapping(value =WlyyContants.AgreementKpiLog.api_queryPage, method = RequestMethod.GET)
|
|
@ApiOperation(value = "分页获取套餐指标")
|
|
|
|
|
|
@ApiOperation(value = "分页获取套餐指标日志")
|
|
public Envelop queryPage(
|
|
public Envelop queryPage(
|
|
@ApiParam(name = "fields", value = "返回的字段,为空返回全部字段", defaultValue = "id,code,name,saasId,appId,appSecret,baseUrl,remark")
|
|
|
|
|
|
@ApiParam(name = "fields", value = "返回的字段,为空返回全部字段", defaultValue = "id,code,patientCode,signCode,kpiCode,agreementCode,kpiName")
|
|
@RequestParam(value = "fields", required = false) String fields,
|
|
@RequestParam(value = "fields", required = false) String fields,
|
|
@ApiParam(name = "filters", value = "过滤器,为空检索所有条件")
|
|
@ApiParam(name = "filters", value = "过滤器,为空检索所有条件")
|
|
@RequestParam(value = "filters", required = false) String filters,
|
|
@RequestParam(value = "filters", required = false) String filters,
|
|
@ApiParam(name = "sorts", value = "排序,规则参见说明文档", defaultValue = "+name,+createTime")
|
|
|
|
|
|
@ApiParam(name = "sorts", value = "排序,规则参见说明文档", defaultValue = "+kpiName,+createTime")
|
|
@RequestParam(value = "sorts", required = false) String sorts,
|
|
@RequestParam(value = "sorts", required = false) String sorts,
|
|
@ApiParam(name = "size", value = "分页大小", defaultValue = "15")
|
|
@ApiParam(name = "size", value = "分页大小", defaultValue = "15")
|
|
@RequestParam(value = "size", required = false) int size,
|
|
@RequestParam(value = "size", required = false) int size,
|
|
@ -81,13 +81,13 @@ public class WlyyAgreementKpiLogController extends EnvelopRestController {
|
|
|
|
|
|
|
|
|
|
@GetMapping(value =WlyyContants.AgreementKpiLog.api_getList)
|
|
@GetMapping(value =WlyyContants.AgreementKpiLog.api_getList)
|
|
@ApiOperation(value = "获取协议列表(不分页)")
|
|
|
|
|
|
@ApiOperation(value = "获取套餐指标日志列表(不分页)")
|
|
public Envelop getList(
|
|
public Envelop getList(
|
|
@ApiParam(name = "fields", value = "返回的字段,为空返回全部字段", defaultValue = "id,code,name,saasId,appId,appSecret,baseUrl,remark")
|
|
|
|
|
|
@ApiParam(name = "fields", value = "返回的字段,为空返回全部字段", defaultValue = "id,code,patientCode,signCode,kpiCode,agreementCode,kpiName")
|
|
@RequestParam(value = "fields", required = false) String fields,
|
|
@RequestParam(value = "fields", required = false) String fields,
|
|
@ApiParam(name = "filters", value = "过滤器,为空检索所有条件")
|
|
@ApiParam(name = "filters", value = "过滤器,为空检索所有条件")
|
|
@RequestParam(value = "filters", required = false) String filters,
|
|
@RequestParam(value = "filters", required = false) String filters,
|
|
@ApiParam(name = "sorts", value = "排序,规则参见说明文档", defaultValue = "+name,+createTime")
|
|
|
|
|
|
@ApiParam(name = "sorts", value = "排序,规则参见说明文档", defaultValue = "+kpiName,+createTime")
|
|
@RequestParam(value = "sorts", required = false) String sorts) throws Exception {
|
|
@RequestParam(value = "sorts", required = false) String sorts) throws Exception {
|
|
//得到list数据
|
|
//得到list数据
|
|
List<WlyyAgreementKpiLog> list = wlyyAgreementKpiLogService.search(fields,filters,sorts);
|
|
List<WlyyAgreementKpiLog> list = wlyyAgreementKpiLogService.search(fields,filters,sorts);
|