|
@ -89,10 +89,11 @@ public class PatientLifeCareEndpoint extends EnvelopRestEndpoint {
|
|
|
public PageEnvelop page(
|
|
|
@ApiParam(name = "patient", value = "居民code") @RequestParam(value = "patient", required = true) String patient,
|
|
|
@ApiParam(name = "status", value = "工单状态,状态为全部时不传") @RequestParam(value = "status", required = false) Integer status,
|
|
|
@ApiParam(name = "fedCode", value = "生活工单服务项") @RequestParam(value = "fedCode", required = false) String fedCode,
|
|
|
@ApiParam(name = "page", value = "分页大小", required = true, defaultValue = "1") @RequestParam(value = "page") int page,
|
|
|
@ApiParam(name = "size", value = "页码", required = true, defaultValue = "15") @RequestParam(value = "size") int size) {
|
|
|
try {
|
|
|
JSONObject result = lifeCareOrderService.queryInfoList(patient, status, page, size);
|
|
|
JSONObject result = lifeCareOrderService.queryInfoList(patient, status,fedCode, page, size);
|
|
|
if (result.getIntValue(ResponseContant.resultFlag) == ResponseContant.fail) {
|
|
|
return PageEnvelop.getError(result.getString(ResponseContant.resultMsg), -1);
|
|
|
}
|
|
@ -106,9 +107,10 @@ public class PatientLifeCareEndpoint extends EnvelopRestEndpoint {
|
|
|
@GetMapping(value = "infoCount")
|
|
|
@ApiOperation(value = "查询工单数量")
|
|
|
public ObjEnvelop infoCount(
|
|
|
@ApiParam(name = "patient", value = "居民code") @RequestParam(value = "patient", required = true) String patient) {
|
|
|
@ApiParam(name = "patient", value = "居民code") @RequestParam(value = "patient", required = true) String patient,
|
|
|
@ApiParam(name = "fedCode", value = "生活工单服务项") @RequestParam(value = "fedCode", required = false) String fedCode) {
|
|
|
try {
|
|
|
JSONObject allResult = lifeCareOrderService.queryInfoList(patient, null, 1, 5);
|
|
|
JSONObject allResult = lifeCareOrderService.queryInfoList(patient, null,fedCode, 1, 5);
|
|
|
if (allResult.getIntValue(ResponseContant.resultFlag) == ResponseContant.fail) {
|
|
|
return ObjEnvelop.getError(allResult.getString(ResponseContant.resultMsg), -1);
|
|
|
}
|
|
@ -116,14 +118,14 @@ public class PatientLifeCareEndpoint extends EnvelopRestEndpoint {
|
|
|
JSONObject object = new JSONObject();
|
|
|
object.put("allCount",allCount);
|
|
|
|
|
|
JSONObject qxResult = lifeCareOrderService.queryInfoList(patient, -1, 1, 5);
|
|
|
JSONObject qxResult = lifeCareOrderService.queryInfoList(patient, -1, fedCode,1, 5);
|
|
|
if (qxResult.getIntValue(ResponseContant.resultFlag) == ResponseContant.fail) {
|
|
|
return ObjEnvelop.getError(qxResult.getString(ResponseContant.resultMsg), -1);
|
|
|
}
|
|
|
int qxCount = qxResult.getIntValue(ResponseContant.count);
|
|
|
object.put("qxCount",qxCount);
|
|
|
|
|
|
JSONObject wcResult = lifeCareOrderService.queryInfoList(patient, 2, 1, 5);
|
|
|
JSONObject wcResult = lifeCareOrderService.queryInfoList(patient, 2, fedCode,1, 5);
|
|
|
if (wcResult.getIntValue(ResponseContant.resultFlag) == ResponseContant.fail) {
|
|
|
return ObjEnvelop.getError(wcResult.getString(ResponseContant.resultMsg), -1);
|
|
|
}
|