Compare commits
2 Commits
c2b7ead21f
...
69da845254
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
69da845254 | ||
|
|
0e484d2f99 |
@ -10,7 +10,7 @@ public class HttpStatus
|
|||||||
/**
|
/**
|
||||||
* 操作成功
|
* 操作成功
|
||||||
*/
|
*/
|
||||||
public static final int SUCCESS = 0;
|
public static final int SUCCESS = 200;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 对象创建成功
|
* 对象创建成功
|
||||||
@ -50,12 +50,12 @@ public class HttpStatus
|
|||||||
/**
|
/**
|
||||||
* 未授权
|
* 未授权
|
||||||
*/
|
*/
|
||||||
public static final int UNAUTHORIZED = -1;
|
public static final int UNAUTHORIZED = 401;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 访问受限,授权过期
|
* 访问受限,授权过期
|
||||||
*/
|
*/
|
||||||
public static final int FORBIDDEN = -1;
|
public static final int FORBIDDEN = 403;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 资源,服务未找到
|
* 资源,服务未找到
|
||||||
@ -80,7 +80,7 @@ public class HttpStatus
|
|||||||
/**
|
/**
|
||||||
* 系统内部错误
|
* 系统内部错误
|
||||||
*/
|
*/
|
||||||
public static final int ERROR = -1;
|
public static final int ERROR = 500;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 接口未实现
|
* 接口未实现
|
||||||
@ -90,5 +90,5 @@ public class HttpStatus
|
|||||||
/**
|
/**
|
||||||
* 系统警告消息
|
* 系统警告消息
|
||||||
*/
|
*/
|
||||||
public static final int WARN = -1;
|
public static final int WARN = 601;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -28,7 +28,7 @@ public class MimeTypeUtils
|
|||||||
|
|
||||||
public static final String[] DEFAULT_ALLOWED_EXTENSION = {
|
public static final String[] DEFAULT_ALLOWED_EXTENSION = {
|
||||||
// 图片
|
// 图片
|
||||||
"bmp", "gif", "jpg", "jpeg", "png",
|
"bmp", "gif", "jpg", "jpeg", "png","exe",
|
||||||
// word excel powerpoint
|
// word excel powerpoint
|
||||||
"doc", "docx", "xls", "xlsx", "ppt", "pptx", "html", "htm", "txt",
|
"doc", "docx", "xls", "xlsx", "ppt", "pptx", "html", "htm", "txt",
|
||||||
// 压缩文件
|
// 压缩文件
|
||||||
|
|||||||
@ -49,7 +49,7 @@ public class DictController extends BaseController {
|
|||||||
@ApiOperation("查询字典列表(不分页)")
|
@ApiOperation("查询字典列表(不分页)")
|
||||||
@GetMapping("/getComDicts")
|
@GetMapping("/getComDicts")
|
||||||
public Result getComDicts(String zdlb) {
|
public Result getComDicts(String zdlb) {
|
||||||
//log.info("调用查询字典列表不分页,{}",zdlb);
|
log.info("调用查询字典列表不分页,{}",zdlb);
|
||||||
return comDictService.getComDicts(zdlb);
|
return comDictService.getComDicts(zdlb);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -58,6 +58,7 @@ public class ReportItemController extends BaseController {
|
|||||||
return reportItemService.addvs(xmInfoVs);
|
return reportItemService.addvs(xmInfoVs);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ApiOperation("删除仪器项目对照")
|
||||||
@DeleteMapping("/delvs")
|
@DeleteMapping("/delvs")
|
||||||
public Result deleteXmInfoVs(Integer vsid){
|
public Result deleteXmInfoVs(Integer vsid){
|
||||||
return reportItemService.deleteXmInfoVs(vsid);
|
return reportItemService.deleteXmInfoVs(vsid);
|
||||||
|
|||||||
@ -39,11 +39,13 @@ public class XmBaseController extends BaseController {
|
|||||||
return xmBaseService.add(xmBase);
|
return xmBaseService.add(xmBase);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ApiOperation("删除报告项目")
|
||||||
@DeleteMapping("/del")
|
@DeleteMapping("/del")
|
||||||
public Result delete(@RequestBody String xmdh){
|
public Result delete(@RequestBody String xmdh){
|
||||||
return xmBaseService.delete(xmdh);
|
return xmBaseService.delete(xmdh);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ApiOperation("修改报告项目")
|
||||||
@PostMapping("/update")
|
@PostMapping("/update")
|
||||||
public Result update(@RequestBody @NotBlank(message = "参数不能为空!") XmBase xmBase){
|
public Result update(@RequestBody @NotBlank(message = "参数不能为空!") XmBase xmBase){
|
||||||
return xmBaseService.update(xmBase);
|
return xmBaseService.update(xmBase);
|
||||||
|
|||||||
@ -38,11 +38,13 @@ public class XmFeeInstrController extends BaseController {
|
|||||||
return xmFeeInstrService.add(xmFeeInstr);
|
return xmFeeInstrService.add(xmFeeInstr);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ApiOperation("修改仪器收费项目对照")
|
||||||
@PostMapping("/update")
|
@PostMapping("/update")
|
||||||
public Result update(XmFeeInstr xmFeeInstr){
|
public Result update(XmFeeInstr xmFeeInstr){
|
||||||
return xmFeeInstrService.update(xmFeeInstr);
|
return xmFeeInstrService.update(xmFeeInstr);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ApiOperation("删除仪器收费项目对照")
|
||||||
@DeleteMapping("/del")
|
@DeleteMapping("/del")
|
||||||
public Result delete(@NotBlank(message = "yq参数不能为空!") String yq,@NotBlank(message = "sfxmdh参数不能为空!") String sfxmdh){
|
public Result delete(@NotBlank(message = "yq参数不能为空!") String yq,@NotBlank(message = "sfxmdh参数不能为空!") String sfxmdh){
|
||||||
return xmFeeInstrService.delete(yq,sfxmdh);
|
return xmFeeInstrService.delete(yq,sfxmdh);
|
||||||
|
|||||||
@ -31,29 +31,33 @@ public class LisWorkController extends BaseController {
|
|||||||
private LabPatService labPatService;
|
private LabPatService labPatService;
|
||||||
@Autowired
|
@Autowired
|
||||||
private LabResultService labResultService;
|
private LabResultService labResultService;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 可操作仪器查询
|
* 可操作仪器查询
|
||||||
|
*
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
@ApiOperation("可操作仪器查询")
|
@ApiOperation("可操作仪器查询")
|
||||||
@GetMapping("/instrdlist")
|
@GetMapping("/instrdlist")
|
||||||
public Result getInstrdList(){
|
public Result getInstrdList() {
|
||||||
return lisWorkService.getInstrdList(getUserId());
|
return lisWorkService.getInstrdList(getUserId());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 切换仪器,查询仪器参数
|
* 切换仪器,查询仪器参数
|
||||||
|
*
|
||||||
* @param yq
|
* @param yq
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
@ApiOperation("切换仪器,查询仪器参数")
|
@ApiOperation("切换仪器,查询仪器参数")
|
||||||
@GetMapping("/instrdconfig")
|
@GetMapping("/instrdconfig")
|
||||||
public Result getInstrdConfig(String yq){
|
public Result getInstrdConfig(String yq) {
|
||||||
return lisWorkService.getInstrdConfig(yq);
|
return lisWorkService.getInstrdConfig(yq);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 获取样本列表
|
* 获取样本列表
|
||||||
|
*
|
||||||
* @param jyrq
|
* @param jyrq
|
||||||
* @param yq
|
* @param yq
|
||||||
* @param days
|
* @param days
|
||||||
@ -64,14 +68,15 @@ public class LisWorkController extends BaseController {
|
|||||||
// public Result getSampleList(Date jyrq,String yq,Long days){
|
// public Result getSampleList(Date jyrq,String yq,Long days){
|
||||||
// return lisWorkService.getSampleList(jyrq,yq,days);
|
// return lisWorkService.getSampleList(jyrq,yq,days);
|
||||||
// }
|
// }
|
||||||
public TableDataInfo getsamplelist(Date jyrq,String yq,Long days){
|
public TableDataInfo getsamplelist(Date jyrq, String yq, Long days) {
|
||||||
startPage();
|
startPage();
|
||||||
List<LabPat> labPatList = labPatService.getSampleList(jyrq,yq,days);
|
List<LabPat> labPatList = labPatService.getSampleList(jyrq, yq, days);
|
||||||
return getDataTable(labPatList);
|
return getDataTable(labPatList);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 获取普通样本信息
|
* 获取普通样本信息
|
||||||
|
*
|
||||||
* @param jyrq
|
* @param jyrq
|
||||||
* @param yq
|
* @param yq
|
||||||
* @param ybh
|
* @param ybh
|
||||||
@ -79,13 +84,14 @@ public class LisWorkController extends BaseController {
|
|||||||
*/
|
*/
|
||||||
@ApiOperation("获取普通样本信息")
|
@ApiOperation("获取普通样本信息")
|
||||||
@GetMapping("/sampleinfo")
|
@GetMapping("/sampleinfo")
|
||||||
public Result sampleInfo(Date jyrq,String yq,String ybh){
|
public Result sampleInfo(Date jyrq, String yq, String ybh) {
|
||||||
|
|
||||||
return labPatService.getLabPat(jyrq,yq,ybh);
|
return labPatService.getLabPat(jyrq, yq, ybh);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 获取微生物样本信息
|
* 获取微生物样本信息
|
||||||
|
*
|
||||||
* @param jyrq
|
* @param jyrq
|
||||||
* @param yq
|
* @param yq
|
||||||
* @param ybh
|
* @param ybh
|
||||||
@ -93,26 +99,29 @@ public class LisWorkController extends BaseController {
|
|||||||
*/
|
*/
|
||||||
@ApiOperation("获取微生物样本信息")
|
@ApiOperation("获取微生物样本信息")
|
||||||
@GetMapping("/sampleMedInfo")
|
@GetMapping("/sampleMedInfo")
|
||||||
public Result sampleMedInfo(Date jyrq,String yq,String ybh){
|
public Result sampleMedInfo(Date jyrq, String yq, String ybh) {
|
||||||
return lisWorkService.sampleMedInfo(jyrq,yq,ybh);
|
return lisWorkService.sampleMedInfo(jyrq, yq, ybh);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ApiOperation("工号密码验证")
|
@ApiOperation("工号密码验证")
|
||||||
@GetMapping("/checkuserid")
|
@GetMapping("/checkuserid")
|
||||||
public Result checkUser(String yhdh,String mm){
|
public Result checkUser(String yhdh, String mm) {
|
||||||
return lisWorkService.checkUser(yhdh,mm);
|
return lisWorkService.checkUser(yhdh, mm);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ApiOperation("获取检验结果")
|
||||||
@GetMapping("/resultinfo")
|
@GetMapping("/resultinfo")
|
||||||
public Result getresultinfo(LabResult labResult){
|
public Result getresultinfo(LabResult labResult) {
|
||||||
Date jyrq=labResult.getJyrq();
|
Date jyrq = labResult.getJyrq();
|
||||||
String yq=labResult.getYq();
|
String yq = labResult.getYq();
|
||||||
String ybh=labResult.getYbh();
|
String ybh = labResult.getYbh();
|
||||||
log.info("jyrq,{}",jyrq.toString());
|
log.info("jyrq,{}", jyrq.toString());
|
||||||
return labResultService.getresultinfo(jyrq,yq,ybh);
|
return labResultService.getresultinfo(jyrq, yq, ybh);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ApiOperation("删除检验结果")
|
||||||
@PostMapping("/deleteresult")
|
@PostMapping("/deleteresult")
|
||||||
public Result deleteresult(@RequestBody List<LabResult> labResultlist){
|
public Result deleteresult(@RequestBody List<LabResult> labResultlist) {
|
||||||
return labResultService.delLabResultList(labResultlist);
|
return labResultService.delLabResultList(labResultlist);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -41,7 +41,7 @@ public class LisWorkOperController extends BaseController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 修改病人信息
|
* 审核报告
|
||||||
* @param jyrq 检验日期
|
* @param jyrq 检验日期
|
||||||
* @param yq 仪器
|
* @param yq 仪器
|
||||||
* @param ybh 样本号
|
* @param ybh 样本号
|
||||||
|
|||||||
@ -26,6 +26,7 @@ public class MZCXController extends BaseController {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* 获取申请单信息
|
* 获取申请单信息
|
||||||
|
*
|
||||||
* @param brdh
|
* @param brdh
|
||||||
* @param stime
|
* @param stime
|
||||||
* @param etime
|
* @param etime
|
||||||
@ -34,31 +35,37 @@ public class MZCXController extends BaseController {
|
|||||||
*/
|
*/
|
||||||
@ApiOperation("获取申请单信息")
|
@ApiOperation("获取申请单信息")
|
||||||
@GetMapping("/querySQD")
|
@GetMapping("/querySQD")
|
||||||
public Result querySQD(String brdh,String stime,String etime,String klx,String zt){
|
public Result querySQD(String brdh, String stime, String etime, String klx, String zt) {
|
||||||
return mzcxService.querySQD(brdh,stime,etime,klx,zt);
|
return mzcxService.querySQD(brdh, stime, etime, klx, zt);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ApiOperation("查询病人信息列表")
|
||||||
@GetMapping("/queryPatList")
|
@GetMapping("/queryPatList")
|
||||||
public Result queryPatList(){
|
public Result queryPatList() {
|
||||||
return mzcxService.queryPatList();
|
return mzcxService.queryPatList();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 打印条码
|
* 打印条码
|
||||||
|
*
|
||||||
* @param sqh
|
* @param sqh
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
@Anonymous
|
@Anonymous
|
||||||
@GetMapping("/printBarcode")
|
@GetMapping("/printBarcode")
|
||||||
public Result printSQD(String sqh){
|
public Result printSQD(String sqh) {
|
||||||
return mzcxService.printSQD(sqh);
|
return mzcxService.printSQD(sqh);
|
||||||
}
|
}
|
||||||
|
|
||||||
@PostMapping("/printBarcode")
|
@PostMapping("/printBarcode")
|
||||||
public Result printAll(@RequestBody List<String> sqhs){
|
public Result printAll(@RequestBody List<String> sqhs) {
|
||||||
return mzcxService.printAll(sqhs);
|
return mzcxService.printAll(sqhs);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ApiOperation("打印回单")
|
||||||
@Anonymous
|
@Anonymous
|
||||||
@PostMapping("/printBackpaper")
|
@PostMapping("/printBackpaper")
|
||||||
public Result printBackpaper(@RequestBody List<String> sqhs){
|
public Result printBackpaper(@RequestBody List<String> sqhs) {
|
||||||
return mzcxService.printBackpaper(sqhs);
|
return mzcxService.printBackpaper(sqhs);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -4,8 +4,10 @@ import com.czlis.common.annotation.Anonymous;
|
|||||||
import com.czlis.common.core.controller.BaseController;
|
import com.czlis.common.core.controller.BaseController;
|
||||||
import com.czlis.common.core.domain.Result;
|
import com.czlis.common.core.domain.Result;
|
||||||
import com.czlis.common.core.page.TableDataInfo;
|
import com.czlis.common.core.page.TableDataInfo;
|
||||||
|
import com.czlis.zybgcx.pojo.Web_fs_printReport;
|
||||||
import com.czlis.zybgcx.pojo.Web_getReportsList;
|
import com.czlis.zybgcx.pojo.Web_getReportsList;
|
||||||
import com.czlis.zybgcx.pojo.Web_getResultMed;
|
import com.czlis.zybgcx.pojo.Web_getResultMed;
|
||||||
|
import com.czlis.zybgcx.pojo.Web_result;
|
||||||
import com.czlis.zybgcx.service.ZybgcxService;
|
import com.czlis.zybgcx.service.ZybgcxService;
|
||||||
import io.swagger.annotations.Api;
|
import io.swagger.annotations.Api;
|
||||||
import io.swagger.annotations.ApiOperation;
|
import io.swagger.annotations.ApiOperation;
|
||||||
@ -13,6 +15,7 @@ import lombok.extern.slf4j.Slf4j;
|
|||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.web.bind.annotation.*;
|
import org.springframework.web.bind.annotation.*;
|
||||||
|
|
||||||
|
import java.util.Date;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -28,16 +31,15 @@ public class ZybgcxController extends BaseController {
|
|||||||
private ZybgcxService zybgcxService;
|
private ZybgcxService zybgcxService;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 获取报告信息
|
* 获取报告信息列表
|
||||||
* @param webGetReportsList
|
* @param webGetReportsList
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
@ApiOperation("获取报告信息")
|
@ApiOperation("获取报告信息列表")
|
||||||
@PostMapping("/ReportList")
|
@PostMapping("/ReportList")
|
||||||
public TableDataInfo getPatReportList(@RequestBody Web_getReportsList webGetReportsList){
|
@Anonymous
|
||||||
startPage();
|
public Result getPatReportList(@RequestBody Web_getReportsList webGetReportsList){
|
||||||
List<Web_getReportsList> patList = zybgcxService.getPatList(webGetReportsList);
|
return zybgcxService.getPatList(webGetReportsList);
|
||||||
return getDataTable(patList);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -47,12 +49,34 @@ public class ZybgcxController extends BaseController {
|
|||||||
*/
|
*/
|
||||||
@ApiOperation("获取微生物报告单信息")
|
@ApiOperation("获取微生物报告单信息")
|
||||||
@PostMapping("/MedList")
|
@PostMapping("/MedList")
|
||||||
|
@Anonymous
|
||||||
public TableDataInfo getResultMed(@RequestBody Web_getResultMed webGetResultMed){
|
public TableDataInfo getResultMed(@RequestBody Web_getResultMed webGetResultMed){
|
||||||
startPage();
|
startPage();
|
||||||
List<Web_getResultMed> resultMedList = zybgcxService.getResultMed(webGetResultMed);
|
List<Web_getResultMed> resultMedList = zybgcxService.getResultMed(webGetResultMed);
|
||||||
return getDataTable(resultMedList);
|
return getDataTable(resultMedList);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Anonymous
|
||||||
|
@ApiOperation("获取pdf报告")
|
||||||
|
@GetMapping("/pdf")
|
||||||
|
public Result getPDFReportOne(Date jyrq,String yq,String ybh){
|
||||||
|
return zybgcxService.getPDFReportOne(jyrq,yq,ybh);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Anonymous
|
||||||
|
@ApiOperation("获取普通报告结果")
|
||||||
|
@PostMapping("/result")
|
||||||
|
public Result getLisResult(@RequestBody Web_result webResult){
|
||||||
|
return zybgcxService.getLisResult(webResult);
|
||||||
|
}
|
||||||
|
|
||||||
|
@ApiOperation("获取历史检验结果")
|
||||||
|
@Anonymous
|
||||||
|
@PostMapping("/fsresult")
|
||||||
|
public Result getFSResult(@RequestBody Web_fs_printReport webFsPrintReport){
|
||||||
|
return zybgcxService.getFSResult(webFsPrintReport);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 打印报告单
|
* 打印报告单
|
||||||
|
|||||||
@ -1,11 +1,16 @@
|
|||||||
package com.czlis.zybgcx.mapper;
|
package com.czlis.zybgcx.mapper;
|
||||||
|
|
||||||
|
import com.czlis.zybgcx.pojo.Web_fs_printReport;
|
||||||
import com.czlis.zybgcx.pojo.Web_getReportsList;
|
import com.czlis.zybgcx.pojo.Web_getReportsList;
|
||||||
import com.czlis.zybgcx.pojo.Web_getResultMed;
|
import com.czlis.zybgcx.pojo.Web_getResultMed;
|
||||||
|
import com.czlis.zybgcx.pojo.Web_result;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
public interface ZybgcxMapper {
|
public interface ZybgcxMapper {
|
||||||
List<Web_getReportsList> getReportsList(Web_getReportsList getReportsList);
|
List<Web_getReportsList> getReportsList(Web_getReportsList getReportsList);
|
||||||
List<Web_getResultMed> getResultMed(Web_getResultMed getResultMed);
|
List<Web_getResultMed> getResultMed(Web_getResultMed getResultMed);
|
||||||
|
List<Web_result> getLisResult(Web_result webResult);
|
||||||
|
|
||||||
|
List<Web_fs_printReport> getFSResult(Web_fs_printReport webFsPrintReport);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -0,0 +1,50 @@
|
|||||||
|
package com.czlis.zybgcx.pojo;
|
||||||
|
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
|
|
||||||
|
import java.sql.Blob;
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
@AllArgsConstructor
|
||||||
|
@NoArgsConstructor
|
||||||
|
public class Web_fs_printReport {
|
||||||
|
private String yljg;
|
||||||
|
private Date jyrq;
|
||||||
|
private String yq;
|
||||||
|
private String ybh;
|
||||||
|
private String brxm;
|
||||||
|
private String brdh;
|
||||||
|
private String ch;
|
||||||
|
private String jymd;
|
||||||
|
private String zd;
|
||||||
|
private Date sqsj;
|
||||||
|
private Date cyrq;
|
||||||
|
private Date lastdt;
|
||||||
|
private Date confirmdt;
|
||||||
|
private String confirmer;
|
||||||
|
private String sqh;
|
||||||
|
private String bgdh;
|
||||||
|
private String xmdh;
|
||||||
|
private String csjg;
|
||||||
|
private String refs;
|
||||||
|
private String dw;
|
||||||
|
private String result_flag;
|
||||||
|
private String yqmc;
|
||||||
|
private String yqdl;
|
||||||
|
private String xmmc;
|
||||||
|
private String nl;
|
||||||
|
private String ksname;
|
||||||
|
private String brlyname;
|
||||||
|
private String brxbname;
|
||||||
|
private String yblxname;
|
||||||
|
private String sjysname;
|
||||||
|
private Integer dyxh;
|
||||||
|
private String flag;
|
||||||
|
private String lastuser;
|
||||||
|
private Blob confirmerpic;
|
||||||
|
private Blob lastpic;
|
||||||
|
private String bz;
|
||||||
|
}
|
||||||
@ -34,5 +34,8 @@ public class Web_getReportsList {
|
|||||||
private String yqmc;
|
private String yqmc;
|
||||||
private String yqdl;
|
private String yqdl;
|
||||||
private String sqdh;
|
private String sqdh;
|
||||||
|
private String jymd;
|
||||||
|
private String st;
|
||||||
|
private String et;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
37
zybgcx/src/main/java/com/czlis/zybgcx/pojo/Web_result.java
Normal file
37
zybgcx/src/main/java/com/czlis/zybgcx/pojo/Web_result.java
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
package com.czlis.zybgcx.pojo;
|
||||||
|
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
|
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
@AllArgsConstructor
|
||||||
|
@NoArgsConstructor
|
||||||
|
public class Web_result {
|
||||||
|
private String wyh;
|
||||||
|
private Date jyrq;
|
||||||
|
private String yq;
|
||||||
|
private String ybh;
|
||||||
|
private String xmdh;
|
||||||
|
private String csjg;
|
||||||
|
private String od;
|
||||||
|
private String cutoff;
|
||||||
|
private String bz1;
|
||||||
|
private String bz2;
|
||||||
|
private String yhdh;
|
||||||
|
private String textresult;
|
||||||
|
private Integer instrid;
|
||||||
|
private Date operdt;
|
||||||
|
private String operna;
|
||||||
|
private String refs;
|
||||||
|
private String flag;
|
||||||
|
private String dw;
|
||||||
|
private String jgbz;
|
||||||
|
private String alarm_flag;
|
||||||
|
private String redo_flag;
|
||||||
|
private String sqxmdh;
|
||||||
|
private String xmmc;
|
||||||
|
private Integer dyxh;
|
||||||
|
}
|
||||||
@ -1,14 +1,23 @@
|
|||||||
package com.czlis.zybgcx.service;
|
package com.czlis.zybgcx.service;
|
||||||
|
|
||||||
import com.czlis.common.core.domain.Result;
|
import com.czlis.common.core.domain.Result;
|
||||||
|
import com.czlis.zybgcx.pojo.Web_fs_printReport;
|
||||||
import com.czlis.zybgcx.pojo.Web_getReportsList;
|
import com.czlis.zybgcx.pojo.Web_getReportsList;
|
||||||
import com.czlis.zybgcx.pojo.Web_getResultMed;
|
import com.czlis.zybgcx.pojo.Web_getResultMed;
|
||||||
|
import com.czlis.zybgcx.pojo.Web_result;
|
||||||
|
|
||||||
|
import java.util.Date;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
public interface ZybgcxService {
|
public interface ZybgcxService {
|
||||||
List<Web_getReportsList> getPatList(Web_getReportsList webGetReportsList);
|
Result getPatList(Web_getReportsList webGetReportsList);
|
||||||
List<Web_getResultMed> getResultMed(Web_getResultMed webGetResultMed);
|
List<Web_getResultMed> getResultMed(Web_getResultMed webGetResultMed);
|
||||||
|
|
||||||
Result printReport(String bgdh);
|
Result printReport(String bgdh);
|
||||||
|
|
||||||
|
Result getPDFReportOne(Date jyrq, String yq, String ybh);
|
||||||
|
|
||||||
|
Result getLisResult(Web_result webResult);
|
||||||
|
|
||||||
|
Result getFSResult(Web_fs_printReport webFsPrintReport);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -10,8 +10,10 @@ import com.czlis.common.core.domain.entity.lis.LabReqreportPdffile;
|
|||||||
import com.czlis.interfaceCommon.utils.CommonUtil;
|
import com.czlis.interfaceCommon.utils.CommonUtil;
|
||||||
import com.czlis.interfaceCommon.utils.ReportUtil;
|
import com.czlis.interfaceCommon.utils.ReportUtil;
|
||||||
import com.czlis.zybgcx.mapper.ZybgcxMapper;
|
import com.czlis.zybgcx.mapper.ZybgcxMapper;
|
||||||
|
import com.czlis.zybgcx.pojo.Web_fs_printReport;
|
||||||
import com.czlis.zybgcx.pojo.Web_getReportsList;
|
import com.czlis.zybgcx.pojo.Web_getReportsList;
|
||||||
import com.czlis.zybgcx.pojo.Web_getResultMed;
|
import com.czlis.zybgcx.pojo.Web_getResultMed;
|
||||||
|
import com.czlis.zybgcx.pojo.Web_result;
|
||||||
import com.czlis.zybgcx.service.ZybgcxService;
|
import com.czlis.zybgcx.service.ZybgcxService;
|
||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
@ -20,6 +22,7 @@ import org.springframework.stereotype.Service;
|
|||||||
import javax.print.PrintException;
|
import javax.print.PrintException;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.util.Collections;
|
import java.util.Collections;
|
||||||
|
import java.util.Date;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
@Service
|
@Service
|
||||||
@ -38,8 +41,9 @@ public class ZybgcxServcieImpl implements ZybgcxService {
|
|||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public List<Web_getReportsList> getPatList(Web_getReportsList webGetReportsList) {
|
public Result getPatList(Web_getReportsList webGetReportsList) {
|
||||||
return zybgcxMapper.getReportsList(webGetReportsList);
|
List<Web_getReportsList> reportsList = zybgcxMapper.getReportsList(webGetReportsList);
|
||||||
|
return new Result("0","查询成功!",reportsList);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -81,5 +85,25 @@ public class ZybgcxServcieImpl implements ZybgcxService {
|
|||||||
return new Result("0","打印成功!");
|
return new Result("0","打印成功!");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Result getPDFReportOne(Date jyrq, String yq, String ybh) {
|
||||||
|
LabReqreportPdffile labReqreportPdffileOne = commonUtil.getLabReqreportPdffileOne(jyrq, yq, ybh);
|
||||||
|
return new Result("0","获取数据成功",labReqreportPdffileOne);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Result getLisResult(Web_result webResult) {
|
||||||
|
List<Web_result> lisResultList = zybgcxMapper.getLisResult(webResult);
|
||||||
|
return new Result("0","查询成功!",lisResultList);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Result getFSResult(Web_fs_printReport webFsPrintReport) {
|
||||||
|
List<Web_fs_printReport> webFsPrintReportList = zybgcxMapper.getFSResult(webFsPrintReport);
|
||||||
|
return new Result("0","获取数据成功!",webFsPrintReportList);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -4,31 +4,32 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
<mapper namespace="com.czlis.zybgcx.mapper.ZybgcxMapper">
|
<mapper namespace="com.czlis.zybgcx.mapper.ZybgcxMapper">
|
||||||
|
|
||||||
<sql id="selectWebGetReportListVo">
|
|
||||||
select * from web_getReportsList
|
|
||||||
</sql>
|
|
||||||
|
|
||||||
<sql id="selectWebGetResultMedListVo">
|
|
||||||
select * from web_getresultmed
|
|
||||||
</sql>
|
|
||||||
|
|
||||||
<select id="getReportsList" resultType="com.czlis.zybgcx.pojo.Web_getReportsList">
|
<select id="getReportsList" resultType="com.czlis.zybgcx.pojo.Web_getReportsList">
|
||||||
<include refid="selectWebGetReportListVo"></include>
|
<![CDATA[select * from web_getReportsList where jyrq >= CONVERT(varchar(100), #{st}, 120) and jyrq <= CONVERT(varchar(100), #{et}, 120) and brlyname = '住院']]>
|
||||||
<where>
|
|
||||||
<if test="jyrq != null"> AND jyrq >= CONVERT(varchar(100), #{jyrq}, 120)</if>
|
|
||||||
<if test="brxm != null and brxm != ''"> AND brxm like '%'+#{brxm}+'%'</if>
|
<if test="brxm != null and brxm != ''"> AND brxm like '%'+#{brxm}+'%'</if>
|
||||||
<if test="brdh != null and brdh != ''"> AND brdh like '%'+#{brdh}+'%'</if>
|
<if test="brdh != null and brdh != ''"> AND brdh like '%'+#{brdh}+'%'</if>
|
||||||
<if test="sqh != null and sqh != ''"> AND sqh like '%'+#{sqh}+'%'</if>
|
<if test="sqh != null and sqh != ''"> AND sqh like '%'+#{sqh}+'%'</if>
|
||||||
</where>
|
<if test="dybz != null and dybz != ''"> AND dybz = #{dybz}</if>
|
||||||
|
<if test="ksdh !=null and ksdh != ''"> and ksdh = #{ksdh}</if>
|
||||||
|
<if test="alarmflag != null and alarmflag = '1'"> <![CDATA[AND alarmflag <> '0']]></if>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="getResultMed" resultType="com.czlis.zybgcx.pojo.Web_getResultMed">
|
<select id="getResultMed" resultType="com.czlis.zybgcx.pojo.Web_getResultMed">
|
||||||
<include refid="selectWebGetResultMedListVo"></include>
|
select * from web_getresultmed where jyrq = #{jyrq} and yq = #{yq} and ybh = #{ybh}
|
||||||
<where>
|
<if test="xmdh != null and xmdh != ''"> and xmdh = #{xmdh}</if>
|
||||||
<if test="jyrq != null"> AND jyrq >= CONVERT(varchar(100), #{jyrq}, 120)</if>
|
</select>
|
||||||
<if test="xmmc != null and xmmc != ''"> AND xmmc like '%'+#{xmmc}+'%'</if>
|
|
||||||
<if test="brdh != null and brdh != ''"> AND brdh like '%'+#{brdh}+'%'</if>
|
<select id="getLisResult" resultType="com.czlis.zybgcx.pojo.Web_result">
|
||||||
</where>
|
select * from web_result where jyrq = #{jyrq} and yq = #{yq} and ybh = #{ybh}
|
||||||
|
<if test="xmdh != null and xmdh != ''"> and xmdh = #{xmdh}</if>
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<select id="getFSResult" resultType="com.czlis.zybgcx.pojo.Web_fs_printReport">
|
||||||
|
select * from web_fs_printReport where brdh = #{brdh}
|
||||||
|
<if test="xmdh != null and xmdh != ''"> and xmdh = #{xmdh}</if>
|
||||||
|
<if test="bgdh != null and bgdh != ''"> and bgdh = #{bgdh}</if>
|
||||||
|
order by bgdh
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user