主界面接口
This commit is contained in:
parent
ecb79ad5a4
commit
f07885024f
@ -0,0 +1,25 @@
|
|||||||
|
package com.czlis.common.core.domain.entity;
|
||||||
|
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
|
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
@AllArgsConstructor
|
||||||
|
@NoArgsConstructor
|
||||||
|
public class LabResultMed {
|
||||||
|
private Date jyrq;
|
||||||
|
private String yq;
|
||||||
|
private String ybh;
|
||||||
|
private String xmdh;
|
||||||
|
private String xh;
|
||||||
|
private String ywdh;
|
||||||
|
private String mic;
|
||||||
|
private String rad;
|
||||||
|
private String csjg;
|
||||||
|
private String jgbz;
|
||||||
|
private String bz;
|
||||||
|
private String txtresult;
|
||||||
|
}
|
||||||
@ -0,0 +1,93 @@
|
|||||||
|
package com.czlis.liswork.controller.work;
|
||||||
|
|
||||||
|
import com.czlis.common.core.controller.BaseController;
|
||||||
|
import com.czlis.common.core.domain.Result;
|
||||||
|
import com.czlis.liswork.service.LisWorkService;
|
||||||
|
import io.swagger.annotations.ApiOperation;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* lis主界面,报告输入
|
||||||
|
*/
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("/liswork")
|
||||||
|
public class LisWorkController extends BaseController {
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private LisWorkService lisWorkService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 可操作仪器查询
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
@ApiOperation("可操作仪器查询")
|
||||||
|
@GetMapping("/instrdlist")
|
||||||
|
public Result getInstrdList(){
|
||||||
|
return lisWorkService.getInstrdList(getUserId());
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 切换仪器,查询仪器参数
|
||||||
|
* @param yq
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
@ApiOperation("切换仪器,查询仪器参数")
|
||||||
|
@GetMapping("/instrdconfig")
|
||||||
|
public Result getInstrdConfig(String yq){
|
||||||
|
return lisWorkService.getInstrdConfig(yq);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取样本列表
|
||||||
|
* @param jyrq
|
||||||
|
* @param yq
|
||||||
|
* @param days
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
@ApiOperation("获取样本列表")
|
||||||
|
@GetMapping("/samplelist")
|
||||||
|
public Result getSampleList(Date jyrq,String yq,String days){
|
||||||
|
return lisWorkService.getSampleList(jyrq,yq,days);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取普通样本信息
|
||||||
|
* @param jyrq
|
||||||
|
* @param yq
|
||||||
|
* @param ybh
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
@ApiOperation("获取普通样本信息")
|
||||||
|
@GetMapping("/sampleinfo")
|
||||||
|
public Result sampleInfo(Date jyrq,String yq,String ybh){
|
||||||
|
return lisWorkService.sampleInfo(jyrq,yq,ybh);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取微生物样本信息
|
||||||
|
* @param jyrq
|
||||||
|
* @param yq
|
||||||
|
* @param ybh
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
@ApiOperation("获取微生物样本信息")
|
||||||
|
@GetMapping("/sampleMedInfo")
|
||||||
|
public Result sampleMedInfo(Date jyrq,String yq,String ybh){
|
||||||
|
return lisWorkService.sampleMedInfo(jyrq,yq,ybh);
|
||||||
|
}
|
||||||
|
|
||||||
|
@ApiOperation("工号密码验证")
|
||||||
|
@GetMapping("/checkuserid")
|
||||||
|
public Result checkUser(String yhdh,String mm){
|
||||||
|
return lisWorkService.checkUser(yhdh,mm);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
@ -0,0 +1,27 @@
|
|||||||
|
package com.czlis.liswork.controller.work;
|
||||||
|
|
||||||
|
import com.czlis.common.core.domain.Result;
|
||||||
|
import com.czlis.liswork.service.LisWorkPageInfoService;
|
||||||
|
import io.swagger.annotations.Api;
|
||||||
|
import io.swagger.annotations.ApiOperation;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
|
@Api(tags = "获取检验tab页面信息")
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("/lisworkpageinfo")
|
||||||
|
public class LisWorkPageInfoController {
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private LisWorkPageInfoService lisWorkPageInfoService;
|
||||||
|
|
||||||
|
@ApiOperation("获取检验结果图片信息")
|
||||||
|
@GetMapping("/resultgraph")
|
||||||
|
public Result resultGraph(){
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
@ -0,0 +1,23 @@
|
|||||||
|
package com.czlis.liswork.mapper;
|
||||||
|
|
||||||
|
import com.czlis.common.core.domain.entity.LabPat;
|
||||||
|
import com.czlis.common.core.domain.entity.LabResult;
|
||||||
|
import com.czlis.common.core.domain.entity.LabResultMed;
|
||||||
|
import com.czlis.liswork.pojo.ComOpt;
|
||||||
|
import com.czlis.liswork.pojo.ComUsrpower;
|
||||||
|
import com.czlis.liswork.pojo.LabPatInfo;
|
||||||
|
|
||||||
|
import java.util.Date;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
public interface LisWorkMapper {
|
||||||
|
List<ComUsrpower> getInstrdList(String userId);
|
||||||
|
List<ComOpt> getInstrdConfig(String yq);
|
||||||
|
List<LabPat> getSampleList(Date jyrq, String yq, String days);
|
||||||
|
List<LabPat> sampleInfo(Date jyrq, String yq, String ybh);
|
||||||
|
List<LabPat> getLabPatList(LabPat labPat);
|
||||||
|
List<LabResult> getLabResult(LabResult labResult);
|
||||||
|
List<LabPatInfo> getLabPatInfo(LabPatInfo labPatInfo);
|
||||||
|
List<LabResultMed> getLabResultMedInfo(LabResultMed labResultMed);
|
||||||
|
|
||||||
|
}
|
||||||
16
liswork/src/main/java/com/czlis/liswork/pojo/ComOpt.java
Normal file
16
liswork/src/main/java/com/czlis/liswork/pojo/ComOpt.java
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
package com.czlis.liswork.pojo;
|
||||||
|
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
@AllArgsConstructor
|
||||||
|
@NoArgsConstructor
|
||||||
|
public class ComOpt {
|
||||||
|
private String yq;
|
||||||
|
private String xxdh;
|
||||||
|
private String xxlb;
|
||||||
|
private String yxxqzq;
|
||||||
|
private String bz;
|
||||||
|
}
|
||||||
@ -0,0 +1,15 @@
|
|||||||
|
package com.czlis.liswork.pojo;
|
||||||
|
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
@AllArgsConstructor
|
||||||
|
@NoArgsConstructor
|
||||||
|
public class ComUsrpower {
|
||||||
|
private String yhdh;
|
||||||
|
private String yq;
|
||||||
|
private String xtdh;
|
||||||
|
private String yhqx;
|
||||||
|
}
|
||||||
22
liswork/src/main/java/com/czlis/liswork/pojo/LabGraph.java
Normal file
22
liswork/src/main/java/com/czlis/liswork/pojo/LabGraph.java
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
package com.czlis.liswork.pojo;
|
||||||
|
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
|
|
||||||
|
import java.sql.Blob;
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
@AllArgsConstructor
|
||||||
|
@NoArgsConstructor
|
||||||
|
public class LabGraph {
|
||||||
|
private String yq;
|
||||||
|
private Date jyrq;
|
||||||
|
private String ybh;
|
||||||
|
private String txmc;
|
||||||
|
private String txlb;
|
||||||
|
private Blob txnr;
|
||||||
|
private String bz1;
|
||||||
|
private String bz2;
|
||||||
|
}
|
||||||
@ -0,0 +1,21 @@
|
|||||||
|
package com.czlis.liswork.pojo;
|
||||||
|
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
|
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
@AllArgsConstructor
|
||||||
|
@NoArgsConstructor
|
||||||
|
public class LabGraphUnit {
|
||||||
|
private String yq;
|
||||||
|
private String txmc;
|
||||||
|
private BigDecimal x;
|
||||||
|
private BigDecimal y;
|
||||||
|
private BigDecimal wd;
|
||||||
|
private BigDecimal hg;
|
||||||
|
private BigDecimal numbz;
|
||||||
|
private String strbz;
|
||||||
|
}
|
||||||
@ -0,0 +1,34 @@
|
|||||||
|
package com.czlis.liswork.pojo;
|
||||||
|
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
|
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
@AllArgsConstructor
|
||||||
|
@NoArgsConstructor
|
||||||
|
public class LabOldGraph {
|
||||||
|
private Date jyrq;
|
||||||
|
private String yq;
|
||||||
|
private String ybh;
|
||||||
|
private Integer hglen1;
|
||||||
|
private Integer hglen2;
|
||||||
|
private Integer hglen3;
|
||||||
|
private Integer hglen4;
|
||||||
|
private Integer hglen5;
|
||||||
|
private String hg1;
|
||||||
|
private String hg2;
|
||||||
|
private String hg3;
|
||||||
|
private String hg4;
|
||||||
|
private String hg5;
|
||||||
|
private Integer ln1;
|
||||||
|
private Integer ln2;
|
||||||
|
private Integer ln3;
|
||||||
|
private Integer ln4;
|
||||||
|
private Integer ln5;
|
||||||
|
private String scatter;
|
||||||
|
private Integer lp;
|
||||||
|
private String bk1;
|
||||||
|
}
|
||||||
21
liswork/src/main/java/com/czlis/liswork/pojo/LabPatInfo.java
Normal file
21
liswork/src/main/java/com/czlis/liswork/pojo/LabPatInfo.java
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
package com.czlis.liswork.pojo;
|
||||||
|
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
|
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
@AllArgsConstructor
|
||||||
|
@NoArgsConstructor
|
||||||
|
public class LabPatInfo {
|
||||||
|
private Date jyrq;
|
||||||
|
private String yq;
|
||||||
|
private String ybh;
|
||||||
|
private String xxlb;
|
||||||
|
private String val1;
|
||||||
|
private String val2;
|
||||||
|
private String val3;
|
||||||
|
private String textinfo;
|
||||||
|
}
|
||||||
@ -0,0 +1,4 @@
|
|||||||
|
package com.czlis.liswork.service;
|
||||||
|
|
||||||
|
public interface LisWorkPageInfoService {
|
||||||
|
}
|
||||||
@ -0,0 +1,16 @@
|
|||||||
|
package com.czlis.liswork.service;
|
||||||
|
|
||||||
|
import com.czlis.common.core.domain.Result;
|
||||||
|
|
||||||
|
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
|
|
||||||
|
public interface LisWorkService {
|
||||||
|
Result getInstrdList(Long userId);
|
||||||
|
Result getInstrdConfig(String yq);
|
||||||
|
Result getSampleList(Date jyrq, String yq, String days);
|
||||||
|
Result sampleInfo(Date jyrq, String yq, String ybh);
|
||||||
|
Result sampleMedInfo(Date jyrq, String yq, String ybh);
|
||||||
|
Result checkUser(String yhdh, String mm);
|
||||||
|
}
|
||||||
@ -0,0 +1,10 @@
|
|||||||
|
package com.czlis.liswork.service.impl;
|
||||||
|
|
||||||
|
import com.czlis.liswork.service.LisWorkPageInfoService;
|
||||||
|
import lombok.extern.slf4j.Slf4j;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
@Service
|
||||||
|
@Slf4j
|
||||||
|
public class LisWorkPageInfoServiceImpl implements LisWorkPageInfoService {
|
||||||
|
}
|
||||||
@ -0,0 +1,93 @@
|
|||||||
|
package com.czlis.liswork.service.impl;
|
||||||
|
|
||||||
|
import com.czlis.common.core.domain.Result;
|
||||||
|
import com.czlis.common.core.domain.entity.LabPat;
|
||||||
|
import com.czlis.common.core.domain.entity.LabResult;
|
||||||
|
import com.czlis.common.core.domain.entity.LabResultMed;
|
||||||
|
import com.czlis.liswork.mapper.LisWorkMapper;
|
||||||
|
import com.czlis.liswork.pojo.ComOpt;
|
||||||
|
import com.czlis.liswork.pojo.ComUsrpower;
|
||||||
|
import com.czlis.liswork.pojo.LabPatInfo;
|
||||||
|
import com.czlis.liswork.service.LisWorkService;
|
||||||
|
import lombok.extern.slf4j.Slf4j;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
import java.util.*;
|
||||||
|
|
||||||
|
@Service
|
||||||
|
@Slf4j
|
||||||
|
public class LisWorkServiceImpl implements LisWorkService {
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private LisWorkMapper lisWorkMapper;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Result getInstrdList(Long userId) {
|
||||||
|
List<ComUsrpower> comUsrpowerList = lisWorkMapper.getInstrdList(String.valueOf(userId));
|
||||||
|
return new Result("0","获取权限列表成功!",comUsrpowerList);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Result getInstrdConfig(String yq) {
|
||||||
|
List<ComOpt> instrdConfig = lisWorkMapper.getInstrdConfig(yq);
|
||||||
|
return new Result("0","获取仪器参数成功!",instrdConfig);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Result getSampleList(Date jyrq, String yq, String days) {
|
||||||
|
LabPat labPat = new LabPat();
|
||||||
|
labPat.setJyrq(jyrq);
|
||||||
|
labPat.setYq(yq);
|
||||||
|
List<LabPat> labPatList = lisWorkMapper.getLabPatList(labPat);
|
||||||
|
LabPatInfo labPatInfo = new LabPatInfo();
|
||||||
|
labPatInfo.setJyrq(jyrq);
|
||||||
|
labPatInfo.setYq(yq);
|
||||||
|
List<LabPatInfo> labPatInfoList = lisWorkMapper.getLabPatInfo(labPatInfo);
|
||||||
|
List<Map<String,Object>> queryList = new ArrayList<>();
|
||||||
|
Map<String,Object> map = new HashMap<>();
|
||||||
|
map.put("labPatInfoList",labPatInfoList);
|
||||||
|
map.put("labPatList",labPatList);
|
||||||
|
queryList.add(map);
|
||||||
|
return new Result("0","获取样本数据成功!",queryList);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Result sampleInfo(Date jyrq, String yq, String ybh) {
|
||||||
|
LabResult labResult = new LabResult();
|
||||||
|
labResult.setJyrq(jyrq);
|
||||||
|
labResult.setYq(yq);
|
||||||
|
labResult.setYbh(ybh);
|
||||||
|
List<LabResult> labResultList = lisWorkMapper.getLabResult(labResult);
|
||||||
|
return new Result("0","获取该样本数据成功!",labResultList);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Result sampleMedInfo(Date jyrq, String yq, String ybh) {
|
||||||
|
LabResult labResult = new LabResult();
|
||||||
|
labResult.setJyrq(jyrq);
|
||||||
|
labResult.setYq(yq);
|
||||||
|
labResult.setYbh(ybh);
|
||||||
|
List<LabResult> labResultList = lisWorkMapper.getLabResult(labResult);
|
||||||
|
LabResultMed labResultMed = new LabResultMed();
|
||||||
|
labResultMed.setJyrq(jyrq);
|
||||||
|
labResultMed.setYq(yq);
|
||||||
|
labResultMed.setYbh(ybh);
|
||||||
|
List<LabResultMed> labResultMedInfoList = lisWorkMapper.getLabResultMedInfo(labResultMed);
|
||||||
|
List<Map<String,Object>> queryList = new ArrayList<>();
|
||||||
|
Map<String,Object> map = new HashMap<>();
|
||||||
|
map.put("labResultList",labResultList);
|
||||||
|
map.put("labResultMedInfoList",labResultMedInfoList);
|
||||||
|
queryList.add(map);
|
||||||
|
return new Result("0","获取微生物数据成功!",queryList);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Result checkUser(String yhdh, String mm) {
|
||||||
|
if(yhdh == null || yhdh.equals("")) return new Result("-1","用户名不能为空!");
|
||||||
|
if(mm == null || mm.equals("")) return new Result("-1","密码不能为空!");
|
||||||
|
//lisWorkMapper.get
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
44
liswork/src/main/resources/mapper/LisWorkMapper.xml
Normal file
44
liswork/src/main/resources/mapper/LisWorkMapper.xml
Normal file
@ -0,0 +1,44 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
|
||||||
|
<mapper namespace="com.czlis.liswork.mapper.LisWorkMapper">
|
||||||
|
|
||||||
|
<select id="getInstrdList" parameterType="string">
|
||||||
|
SELECT com_usrpower.yhdh,com_usrpower.yq ,com_usrpower.xtdh ,com_usrpower.yhqx , lab_instr.yqmc ,lab_instr.instrid
|
||||||
|
FROM com_usrpower , lab_instr WHERE ( com_usrpower.yq = lab_instr.yq ) and ( ( com_usrpower.yhdh = #{userId} ) and ( com_usrpower.xtdh = 'LIS' ) )
|
||||||
|
and lab_instr.useflag = '0'
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<select id="getInstrdConfig">
|
||||||
|
select * from com_opt where yq = #{yq}
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<select id="getLabResult">
|
||||||
|
select * from lab_Result where jyrq = #{jyrq} and yq = #{yq}
|
||||||
|
<if test="ybh != null and ybh !=''">and ybh = #{ybh}</if>
|
||||||
|
<if test="xmdh != null and xmdh !=''">and xmdh = #{xmdh}</if>
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<select id="getLabPatList">
|
||||||
|
select * from lab_pat
|
||||||
|
<where>
|
||||||
|
<if test="jyrq != null">and jyrq = #{jyrq}</if>
|
||||||
|
<if test="yq != null and yq !=''">and yq = #{yq}</if>
|
||||||
|
<if test="ybh != null and ybh != ''">and ybh = #{ybh}</if>
|
||||||
|
</where>
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<select id="getLabPatInfo">
|
||||||
|
select * from lab_patinfo where jyrq = #{jyrq} and yq = #{yq}
|
||||||
|
<if test="ybh != null and ybh !=''">and ybh = #{ybh}</if>
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<select id="getLabResultMedInfo">
|
||||||
|
select * from lab_resultmed where jyrq = #{jyrq} and yq = #{yq}
|
||||||
|
<if test="ybh != null and ybh !=''">and ybh = #{ybh}</if>
|
||||||
|
<if test="xmdh != null and xmdh !=''">and xmdh = #{xmdh}</if>
|
||||||
|
<if test="xh != null">and xh = #{xh}</if>
|
||||||
|
<if test="ywdh != null and ywdh != ''">and ywdh = #{ywdh}</if>
|
||||||
|
</select>
|
||||||
|
|
||||||
|
</mapper>
|
||||||
Loading…
x
Reference in New Issue
Block a user