|
@@ -9,10 +9,17 @@ import java.io.UnsupportedEncodingException;
|
|
|
import java.net.URLDecoder;
|
|
|
import javax.servlet.http.HttpServletRequest;
|
|
|
import javax.servlet.http.HttpServletResponse;
|
|
|
+
|
|
|
+import org.apache.shiro.SecurityUtils;
|
|
|
import org.jeecg.common.api.vo.Result;
|
|
|
+import org.jeecg.common.exception.JeecgBootException;
|
|
|
import org.jeecg.common.system.query.QueryGenerator;
|
|
|
+import org.jeecg.common.system.vo.LoginUser;
|
|
|
import org.jeecg.common.util.oConvertUtils;
|
|
|
+import org.jeecg.modules.medical.common.bo.DiagnosticInfoResponse;
|
|
|
+import org.jeecg.modules.medical.entity.AfterwardsAuditDetail;
|
|
|
import org.jeecg.modules.medical.entity.Audit;
|
|
|
+import org.jeecg.modules.medical.service.IAfterwardsAuditService;
|
|
|
import org.jeecg.modules.medical.service.IAuditService;
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
@@ -50,6 +57,8 @@ import org.apache.shiro.authz.annotation.RequiresPermissions;
|
|
|
public class AuditController extends JeecgController<Audit, IAuditService> {
|
|
|
@Autowired
|
|
|
private IAuditService auditService;
|
|
|
+ @Autowired
|
|
|
+ private IAfterwardsAuditService afterwardsAuditService;
|
|
|
|
|
|
/**
|
|
|
* 分页列表查询
|
|
@@ -169,4 +178,16 @@ public class AuditController extends JeecgController<Audit, IAuditService> {
|
|
|
return super.importExcel(request, response, Audit.class);
|
|
|
}
|
|
|
|
|
|
+ @ApiOperation(value = "审核端-诊断信息")
|
|
|
+ @GetMapping(value = "/audit/diagnostic/info")
|
|
|
+ public Result<List<DiagnosticInfoResponse>> loadDiagnosticInformation(HttpServletRequest request, @RequestParam("id") Integer id) {
|
|
|
+ LoginUser loginUser = (LoginUser) SecurityUtils.getSubject().getPrincipal();
|
|
|
+ if (null == loginUser) {
|
|
|
+ log.error("当前用户未登录");
|
|
|
+ throw new JeecgBootException("用户未登录"); // "登录已过期,请重新登录"
|
|
|
+ }
|
|
|
+ List<DiagnosticInfoResponse> result = afterwardsAuditService.loadDiagnosticInfoByAfterwardsMainId(id);
|
|
|
+ return Result.OK(result);
|
|
|
+ }
|
|
|
+
|
|
|
}
|