Merge remote-tracking branch 'lis8.0/master'
This commit is contained in:
commit
3317b01b62
@ -0,0 +1,16 @@
|
|||||||
|
package com.czlis.interfaceCommon.mapper;
|
||||||
|
|
||||||
|
import org.apache.ibatis.annotations.Param;
|
||||||
|
import com.czlis.common.core.domain.entity.lis.LabResultRe;
|
||||||
|
import java.util.Date;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
public interface LabResultReMapper {
|
||||||
|
List<LabResultRe> getLabResultRe(@Param("jyrq") Date jyrq, @Param("yq") String yq, @Param("ybh") String ybh, @Param("xmdh") String xmdh);
|
||||||
|
List<LabResultRe> getLabResultReAll(@Param("jyrq") Date jyrq, @Param("yq") String yq, @Param("ybh") String ybh);
|
||||||
|
int insertLabResultRe(LabResultRe labResultRe);
|
||||||
|
int updateLabResultRe(LabResultRe labResultRe);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
@ -1729,6 +1729,13 @@ public class LisWorkUtils {
|
|||||||
String xmdh = labResult.getXmdh();
|
String xmdh = labResult.getXmdh();
|
||||||
if ("".equals(xmdh) || xmdh == null) return new Result("-1", "项目代号不能为空!");
|
if ("".equals(xmdh) || xmdh == null) return new Result("-1", "项目代号不能为空!");
|
||||||
LabPat labPat = commonUtil.getLabPatOne(jyrq, yq, ybh);
|
LabPat labPat = commonUtil.getLabPatOne(jyrq, yq, ybh);
|
||||||
|
if(labPat==null){
|
||||||
|
labPat=new LabPat();
|
||||||
|
labPat.setJyrq(jyrq);
|
||||||
|
labPat.setYbh(ybh);
|
||||||
|
labPat.setYq(yq);
|
||||||
|
labPat.setJgbz("0");
|
||||||
|
}
|
||||||
if ("2".equals(labPat.getJgbz())) return new Result("-1", "结果已审核禁止修改!");
|
if ("2".equals(labPat.getJgbz())) return new Result("-1", "结果已审核禁止修改!");
|
||||||
if ("5".equals(labPat.getJgbz())) return new Result("-1", "结果已锁定禁止修改!");
|
if ("5".equals(labPat.getJgbz())) return new Result("-1", "结果已锁定禁止修改!");
|
||||||
if ("1".equals(labPat.getJgbz())) return new Result("-1", "结果已初审禁止修改!");
|
if ("1".equals(labPat.getJgbz())) return new Result("-1", "结果已初审禁止修改!");
|
||||||
|
|||||||
@ -0,0 +1,78 @@
|
|||||||
|
<?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.interfaceCommon.mapper.LabResultReMapper">
|
||||||
|
<select id="getLabResultRe" resultType="com.czlis.common.core.domain.entity.lis.LabResultRe">
|
||||||
|
select *
|
||||||
|
from lab_result_re
|
||||||
|
<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>
|
||||||
|
<if test="xmdh != null and xmdh != ''">
|
||||||
|
and xmdh = #{xmdh}
|
||||||
|
</if>
|
||||||
|
</where>
|
||||||
|
</select>
|
||||||
|
<select id="getLabResultReAll" resultType="com.czlis.common.core.domain.entity.lis.LabResultRe">
|
||||||
|
SELECT lab_result_re.jyrq,
|
||||||
|
lab_result_re.yq,
|
||||||
|
lab_result_re.ybh,
|
||||||
|
lab_result_re.xmdh,
|
||||||
|
lab_result_re.csjg
|
||||||
|
FROM lab_result_re,
|
||||||
|
xm_info
|
||||||
|
WHERE ( lab_result_re.yq = xm_info.yq ) and
|
||||||
|
( lab_result_re.xmdh = xm_info.xmdh ) and
|
||||||
|
( ( lab_result_re.jyrq = :jyrq ) AND
|
||||||
|
( lab_result_re.yq = :yq ) AND
|
||||||
|
( lab_result_re.ybh = :ybh ) )
|
||||||
|
<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>
|
||||||
|
ORDER BY xm_info.dyxh asc
|
||||||
|
</select>
|
||||||
|
<insert id="insertLabResultRe" parameterType="com.czlis.common.core.domain.entity.lis.LabResultRe">
|
||||||
|
insert into lab_result_re (jyrq, yq, ybh,xmdh,csjg)
|
||||||
|
values (#{jyrq},#{yq},#{ybh},#{xmdh},#{csjg})
|
||||||
|
</insert>
|
||||||
|
<update id="updateLabResultRe" parameterType="com.czlis.common.core.domain.entity.lis.LabResultRe">
|
||||||
|
update lab_result_re
|
||||||
|
<set>
|
||||||
|
<if test="xmdh != null">
|
||||||
|
xmdh = #{xmdh},
|
||||||
|
</if>
|
||||||
|
<if test="csjg != null">
|
||||||
|
csjg = #{csjg},
|
||||||
|
</if>
|
||||||
|
</set>
|
||||||
|
<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>
|
||||||
|
<if test="xmdh != null and xmdh != ''">
|
||||||
|
and xmdh = #{xmdh}
|
||||||
|
</if>
|
||||||
|
</where>
|
||||||
|
</update>
|
||||||
|
</mapper>
|
||||||
@ -84,11 +84,7 @@ public class LisWorkController extends BaseController {
|
|||||||
public Result queryxmval(String yq,String xmdh) {
|
public Result queryxmval(String yq,String xmdh) {
|
||||||
return lisWorkService.getXmVal(yq,xmdh);
|
return lisWorkService.getXmVal(yq,xmdh);
|
||||||
}
|
}
|
||||||
@ApiOperation("获取微生物样本信息")
|
|
||||||
@GetMapping("/sampleMedInfo")
|
|
||||||
public Result sampleMedInfo(Date jyrq, String yq, String 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) {
|
||||||
|
|||||||
@ -0,0 +1,51 @@
|
|||||||
|
package com.czlis.liswork.controller.work;
|
||||||
|
|
||||||
|
import com.czlis.common.core.controller.BaseController;
|
||||||
|
import com.czlis.common.core.domain.Result;
|
||||||
|
import com.czlis.common.core.domain.entity.lis.LabPat;
|
||||||
|
import com.czlis.common.core.page.TableDataInfo;
|
||||||
|
import com.czlis.liswork.service.LabResultService;
|
||||||
|
import com.czlis.liswork.service.LisWorkService;
|
||||||
|
import io.swagger.annotations.Api;
|
||||||
|
import io.swagger.annotations.ApiOperation;
|
||||||
|
import lombok.extern.slf4j.Slf4j;
|
||||||
|
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;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("/lisworkgerm")
|
||||||
|
@Slf4j
|
||||||
|
@Api(tags = "主界面-微生物报告输入")
|
||||||
|
public class LisWorkGermController extends BaseController {
|
||||||
|
@Autowired
|
||||||
|
private LisWorkService lisWorkService;
|
||||||
|
@Autowired
|
||||||
|
private LabResultService labResultService;
|
||||||
|
@ApiOperation("获取微生物样本信息")
|
||||||
|
@GetMapping("/sampleMedInfo")
|
||||||
|
public Result sampleMedInfo(Date jyrq, String yq, String ybh) {
|
||||||
|
return lisWorkService.sampleMedInfo(jyrq, yq, ybh);
|
||||||
|
}
|
||||||
|
@ApiOperation("获取样本列表")
|
||||||
|
@GetMapping("/samplelist")
|
||||||
|
public Result getSampleList(Date jyrq,String yq,Long days){
|
||||||
|
return new Result("0", "获取样本数据成功!",lisWorkService.getSampleList(jyrq,yq,days));
|
||||||
|
}
|
||||||
|
@ApiOperation("获取样本列表")
|
||||||
|
@GetMapping("/samplelistpage")
|
||||||
|
public TableDataInfo samplelistpage(Date jyrq, String yq, Long days) {
|
||||||
|
try {
|
||||||
|
startPage();
|
||||||
|
startOrderBy();
|
||||||
|
List<LabPat> labPatList = lisWorkService.getSampleList(jyrq, yq, days);
|
||||||
|
return getDataTable(labPatList);
|
||||||
|
} finally {
|
||||||
|
clearPage();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -3,13 +3,12 @@ package com.czlis.liswork.controller.work;
|
|||||||
import com.czlis.common.annotation.Anonymous;
|
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.domain.entity.lis.LabResultRe;
|
||||||
import com.czlis.liswork.service.LisWorkPageInfoService;
|
import com.czlis.liswork.service.LisWorkPageInfoService;
|
||||||
import io.swagger.annotations.Api;
|
import io.swagger.annotations.Api;
|
||||||
import io.swagger.annotations.ApiOperation;
|
import io.swagger.annotations.ApiOperation;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.web.bind.annotation.GetMapping;
|
import org.springframework.web.bind.annotation.*;
|
||||||
import org.springframework.web.bind.annotation.RequestMapping;
|
|
||||||
import org.springframework.web.bind.annotation.RestController;
|
|
||||||
|
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
|
|
||||||
@ -23,61 +22,73 @@ public class LisWorkPageInfoController extends BaseController {
|
|||||||
|
|
||||||
@ApiOperation("获取检验结果图片信息")
|
@ApiOperation("获取检验结果图片信息")
|
||||||
@GetMapping("/resultgraph")
|
@GetMapping("/resultgraph")
|
||||||
public Result resultGraph(Date jyrq,String yq,String ybh){
|
public Result resultGraph(Date jyrq, String yq, String ybh) {
|
||||||
return lisWorkPageInfoService.resultGraph(jyrq,yq,ybh);
|
return lisWorkPageInfoService.resultGraph(jyrq, yq, ybh);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ApiOperation("获取复查结果")
|
@ApiOperation("获取复查结果")
|
||||||
@GetMapping("/redo")
|
@GetMapping("/redo")
|
||||||
public Result getRedo(Date jyrq,String yq,String ybh){
|
public Result getRedo(Date jyrq, String yq, String ybh) {
|
||||||
return lisWorkPageInfoService.getRedo(jyrq,yq,ybh);
|
return lisWorkPageInfoService.getRedo(jyrq, yq, ybh);
|
||||||
|
}
|
||||||
|
|
||||||
|
@ApiOperation("交换复查结果")
|
||||||
|
@PostMapping("/swapredo")
|
||||||
|
public Result swapredo(@RequestBody LabResultRe labResultRe) {
|
||||||
|
|
||||||
|
return lisWorkPageInfoService.swapRedo(labResultRe);
|
||||||
|
}
|
||||||
|
|
||||||
|
@ApiOperation("保存复查结果")
|
||||||
|
@PostMapping("/saveredo")
|
||||||
|
public Result saveredo(@RequestBody LabResultRe labResultRe) {
|
||||||
|
|
||||||
|
return lisWorkPageInfoService.saveRedo(labResultRe);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Anonymous
|
@Anonymous
|
||||||
@ApiOperation("获取历史结果")
|
@ApiOperation("获取历史结果")
|
||||||
@GetMapping("/history")
|
@GetMapping("/history")
|
||||||
public Result getHistory(Date jyrq,String yq,String ybh){
|
public Result getHistory(Date jyrq, String yq, String ybh) {
|
||||||
return lisWorkPageInfoService.getHistory(jyrq,yq,ybh);
|
return lisWorkPageInfoService.getHistory(jyrq, yq, ybh);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ApiOperation("获取其他仪器结果")
|
@ApiOperation("获取其他仪器结果")
|
||||||
@GetMapping("/otherinstr")
|
@GetMapping("/otherinstr")
|
||||||
public Result getOtherinstr(Date jyrq, String yq, String ybh){
|
public Result getOtherinstr(Date jyrq, String yq, String ybh) {
|
||||||
return lisWorkPageInfoService.getOtherinstr(jyrq,yq,ybh);
|
return lisWorkPageInfoService.getOtherinstr(jyrq, yq, ybh);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Anonymous
|
@Anonymous
|
||||||
@ApiOperation("获取其他仪器结果明细")
|
@ApiOperation("获取其他仪器结果明细")
|
||||||
@GetMapping("/otherinstrdetail")
|
@GetMapping("/otherinstrdetail")
|
||||||
public Result getOtherinstrDetail(String brdh,String yq,Date jyrq,String ybh){
|
public Result getOtherinstrDetail(String brdh, String yq, Date jyrq, String ybh) {
|
||||||
return lisWorkPageInfoService.getOtherinstrDetail(brdh,yq,jyrq,ybh);
|
return lisWorkPageInfoService.getOtherinstrDetail(brdh, yq, jyrq, ybh);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ApiOperation("获取收费信息")
|
@ApiOperation("获取收费信息")
|
||||||
@GetMapping("/reqdetail")
|
@GetMapping("/reqdetail")
|
||||||
public Result getReqdetail(Date jyrq,String yq,String ybh){
|
public Result getReqdetail(Date jyrq, String yq, String ybh) {
|
||||||
return lisWorkPageInfoService.getReqdetail(jyrq,yq,ybh);
|
return lisWorkPageInfoService.getReqdetail(jyrq, yq, ybh);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ApiOperation("获取收费信息报告明细")
|
@ApiOperation("获取收费信息报告明细")
|
||||||
@GetMapping("/reqdetailmx")
|
@GetMapping("/reqdetailmx")
|
||||||
public Result getReqdetailMX(String yq,String sqxmdh){
|
public Result getReqdetailMX(String yq, String sqxmdh) {
|
||||||
return lisWorkPageInfoService.getReqdetailMX(yq,sqxmdh);
|
return lisWorkPageInfoService.getReqdetailMX(yq, sqxmdh);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ApiOperation("获取标本流转信息")
|
@ApiOperation("获取标本流转信息")
|
||||||
@GetMapping("/reqinfo")
|
@GetMapping("/reqinfo")
|
||||||
public Result getReqInfo(Date jyrq,String yq,String ybh){
|
public Result getReqInfo(Date jyrq, String yq, String ybh) {
|
||||||
return lisWorkPageInfoService.getReqInfo(jyrq,yq,ybh);
|
return lisWorkPageInfoService.getReqInfo(jyrq, yq, ybh);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ApiOperation("获取组合项目模板")
|
@ApiOperation("获取组合项目模板")
|
||||||
@GetMapping("/inputmdl")
|
@GetMapping("/inputmdl")
|
||||||
public Result getInputmdl(String yq){
|
public Result getInputmdl(String yq) {
|
||||||
return lisWorkPageInfoService.getInputmdl(yq);
|
return lisWorkPageInfoService.getInputmdl(yq);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -25,4 +25,7 @@ public interface LisWorkPageInfoMapper {
|
|||||||
List<Map<String,Object>> getbgxm(@Param("yq") String yq,@Param("sqxmdh") String sqxmdh);
|
List<Map<String,Object>> getbgxm(@Param("yq") String yq,@Param("sqxmdh") String sqxmdh);
|
||||||
|
|
||||||
List<LabInputmdl> getInputmdl(String yq);
|
List<LabInputmdl> getInputmdl(String yq);
|
||||||
|
int insertLabResultRe(LabResultRe labResultRe);
|
||||||
|
int updateLabResultRe(LabResultRe labResultRe);
|
||||||
|
LabResultRe getLabResultRe(@Param("jyrq") Date jyrq,@Param("yq") String yq,@Param("ybh") String ybh,@Param("xmdh") String xmdh);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,12 +1,15 @@
|
|||||||
package com.czlis.liswork.service;
|
package com.czlis.liswork.service;
|
||||||
|
|
||||||
import com.czlis.common.core.domain.Result;
|
import com.czlis.common.core.domain.Result;
|
||||||
|
import com.czlis.common.core.domain.entity.lis.LabResultRe;
|
||||||
|
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
|
|
||||||
public interface LisWorkPageInfoService {
|
public interface LisWorkPageInfoService {
|
||||||
Result resultGraph(Date jyrq, String yq, String ybh);
|
Result resultGraph(Date jyrq, String yq, String ybh);
|
||||||
Result getRedo(Date jyrq, String yq, String ybh);
|
Result getRedo(Date jyrq, String yq, String ybh);
|
||||||
|
Result swapRedo(LabResultRe labResultRe);
|
||||||
|
Result saveRedo(LabResultRe labResultRe);
|
||||||
Result getHistory(Date jyrq, String yq, String ybh);
|
Result getHistory(Date jyrq, String yq, String ybh);
|
||||||
Result getReqdetail(Date jyrq, String yq, String ybh);
|
Result getReqdetail(Date jyrq, String yq, String ybh);
|
||||||
Result getOtherinstr(Date jyrq, String yq, String ybh);
|
Result getOtherinstr(Date jyrq, String yq, String ybh);
|
||||||
|
|||||||
@ -5,6 +5,7 @@ import cn.hutool.core.date.DateTime;
|
|||||||
import cn.hutool.core.date.DateUtil;
|
import cn.hutool.core.date.DateUtil;
|
||||||
import com.czlis.common.core.domain.Result;
|
import com.czlis.common.core.domain.Result;
|
||||||
import com.czlis.common.core.domain.entity.lis.*;
|
import com.czlis.common.core.domain.entity.lis.*;
|
||||||
|
import com.czlis.interfaceCommon.utils.LisWorkUtils;
|
||||||
import com.czlis.interfaceCommon.utils.ReportUtil;
|
import com.czlis.interfaceCommon.utils.ReportUtil;
|
||||||
import com.czlis.liswork.mapper.LisWorkPageInfoMapper;
|
import com.czlis.liswork.mapper.LisWorkPageInfoMapper;
|
||||||
import com.czlis.liswork.pojo.DTO.HistoryResultDTO;
|
import com.czlis.liswork.pojo.DTO.HistoryResultDTO;
|
||||||
@ -14,6 +15,7 @@ import com.czlis.interfaceCommon.utils.CommonUtil;
|
|||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
|
import org.springframework.transaction.annotation.Transactional;
|
||||||
|
|
||||||
import java.util.*;
|
import java.util.*;
|
||||||
import java.util.stream.Collectors;
|
import java.util.stream.Collectors;
|
||||||
@ -27,7 +29,7 @@ public class LisWorkPageInfoServiceImpl implements LisWorkPageInfoService {
|
|||||||
@Autowired
|
@Autowired
|
||||||
CommonUtil commonUtil;
|
CommonUtil commonUtil;
|
||||||
@Autowired
|
@Autowired
|
||||||
ReportUtil reportUtil;
|
LisWorkUtils lisWorkUtils;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Result resultGraph(Date jyrq, String yq, String ybh) {
|
public Result resultGraph(Date jyrq, String yq, String ybh) {
|
||||||
@ -58,6 +60,49 @@ public class LisWorkPageInfoServiceImpl implements LisWorkPageInfoService {
|
|||||||
List<LabResultRe> labResultReList = lisWorkPageInfoMapper.getRedo(jyrq,yq,ybh);
|
List<LabResultRe> labResultReList = lisWorkPageInfoMapper.getRedo(jyrq,yq,ybh);
|
||||||
return new Result("0","获取数据成功!",labResultReList);
|
return new Result("0","获取数据成功!",labResultReList);
|
||||||
}
|
}
|
||||||
|
@Override
|
||||||
|
@Transactional(rollbackFor = Exception.class)
|
||||||
|
public Result swapRedo(LabResultRe labResultRe) {
|
||||||
|
Date jyrq=labResultRe.getJyrq();
|
||||||
|
String yq=labResultRe.getYq();
|
||||||
|
String ybh=labResultRe.getYbh();
|
||||||
|
String xmdh=labResultRe.getXmdh();
|
||||||
|
String csjg=labResultRe.getCsjg();
|
||||||
|
LabPat labPat=commonUtil.getLabPatOne(jyrq,yq,ybh);
|
||||||
|
if(labPat!=null){
|
||||||
|
String jgbz=labPat.getJgbz();
|
||||||
|
if(jgbz==null)jgbz="0";
|
||||||
|
if("2".equals(jgbz)||"5".equals(jgbz)){
|
||||||
|
return new Result("1","样本已审核禁止交换!");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
LabResult labResult=commonUtil.getLabResult(jyrq,yq,ybh,xmdh);
|
||||||
|
if(labResult==null){
|
||||||
|
return new Result("1","当前结果为空无法交换!");
|
||||||
|
}
|
||||||
|
String csjg0=labResult.getCsjg();
|
||||||
|
labResultRe.setCsjg(csjg0);
|
||||||
|
labResult.setCsjg(csjg);
|
||||||
|
labResult.setRedo_flag("1");
|
||||||
|
lisWorkUtils.changeresult(labResult);
|
||||||
|
lisWorkPageInfoMapper.updateLabResultRe(labResultRe);
|
||||||
|
return new Result("0","交换数据成功!",labResultRe);
|
||||||
|
}
|
||||||
|
@Override
|
||||||
|
@Transactional(rollbackFor = Exception.class)
|
||||||
|
public Result saveRedo(LabResultRe labResultRe) {
|
||||||
|
Date jyrq=labResultRe.getJyrq();
|
||||||
|
String yq=labResultRe.getYq();
|
||||||
|
String ybh=labResultRe.getYbh();
|
||||||
|
String xmdh=labResultRe.getXmdh();
|
||||||
|
LabResultRe labResultRe0 =lisWorkPageInfoMapper.getLabResultRe(jyrq,yq,ybh,xmdh);
|
||||||
|
if(labResultRe0==null){
|
||||||
|
lisWorkPageInfoMapper.updateLabResultRe(labResultRe);
|
||||||
|
}else{
|
||||||
|
lisWorkPageInfoMapper.insertLabResultRe(labResultRe);
|
||||||
|
}
|
||||||
|
return new Result("0","交换数据成功!",labResultRe);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Result getHistory(Date jyrq, String yq, String ybh) {
|
public Result getHistory(Date jyrq, String yq, String ybh) {
|
||||||
|
|||||||
@ -17,9 +17,62 @@
|
|||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="getRedo" resultType="com.czlis.common.core.domain.entity.lis.LabResultRe">
|
<select id="getRedo" resultType="com.czlis.common.core.domain.entity.lis.LabResultRe">
|
||||||
select * from lab_result_re where jyrq = #{jyrq} and yq = #{yq} and ybh = #{ybh}
|
SELECT lab_result_re.*
|
||||||
|
FROM lab_result_re,xm_info
|
||||||
|
WHERE ( lab_result_re.yq = xm_info.yq ) and
|
||||||
|
( lab_result_re.xmdh = xm_info.xmdh ) and
|
||||||
|
( ( lab_result_re.jyrq = #{jyrq} ) AND
|
||||||
|
( lab_result_re.yq = #{yq} ) AND
|
||||||
|
( lab_result_re.ybh =#{ybh} ) )
|
||||||
|
ORDER BY xm_info.dyxh asc
|
||||||
</select>
|
</select>
|
||||||
|
<select id="getLabResultRe" resultType="com.czlis.common.core.domain.entity.lis.LabResultRe">
|
||||||
|
select *
|
||||||
|
from lab_result_re
|
||||||
|
<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>
|
||||||
|
<if test="xmdh != null and xmdh != ''">
|
||||||
|
and xmdh = #{xmdh}
|
||||||
|
</if>
|
||||||
|
</where>
|
||||||
|
</select>
|
||||||
|
<insert id="insertLabResultRe" parameterType="com.czlis.common.core.domain.entity.lis.LabResultRe">
|
||||||
|
insert into lab_result_re (jyrq, yq, ybh,xmdh,csjg)
|
||||||
|
values (#{jyrq},#{yq},#{ybh},#{xmdh},#{csjg})
|
||||||
|
</insert>
|
||||||
|
<update id="updateLabResultRe" parameterType="com.czlis.common.core.domain.entity.lis.LabResultRe">
|
||||||
|
update lab_result_re
|
||||||
|
<set>
|
||||||
|
<if test="xmdh != null">
|
||||||
|
xmdh = #{xmdh},
|
||||||
|
</if>
|
||||||
|
<if test="csjg != null">
|
||||||
|
csjg = #{csjg},
|
||||||
|
</if>
|
||||||
|
</set>
|
||||||
|
<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>
|
||||||
|
<if test="xmdh != null and xmdh != ''">
|
||||||
|
and xmdh = #{xmdh}
|
||||||
|
</if>
|
||||||
|
</where>
|
||||||
|
</update>
|
||||||
<select id="getReqdetail" resultType="map">
|
<select id="getReqdetail" resultType="map">
|
||||||
SELECT lab_reqdetail.sqh , lab_reqdetail.xh , lab_reqdetail.sqxmdh , lab_reqdetail.sqxmmc , lab_reqdetail.sl , lab_reqdetail.dj , lab_reqdetail.zt , lab_reqdetail.jjzt , lab_reqdetail.bz1 , lab_reqdetail.bz2 , lab_reqmain.ksdh , lab_reqmain.sqys , lab_reqmain.sqsj , lab_reqmain.jsys , lab_reqmain.jssj , lab_reqmain.brly , lab_reqmain.brdh , lab_reqmain.brxm , lab_reqdetail.numbk1 , lab_reqdetail.numbk2 FROM lab_reqdetail , lab_reqmain WHERE ( lab_reqdetail.sqh = lab_reqmain.sqh ) and ( ( lab_reqmain.sqh = #{sqh} ) )
|
SELECT lab_reqdetail.sqh , lab_reqdetail.xh , lab_reqdetail.sqxmdh , lab_reqdetail.sqxmmc , lab_reqdetail.sl , lab_reqdetail.dj , lab_reqdetail.zt , lab_reqdetail.jjzt , lab_reqdetail.bz1 , lab_reqdetail.bz2 , lab_reqmain.ksdh , lab_reqmain.sqys , lab_reqmain.sqsj , lab_reqmain.jsys , lab_reqmain.jssj , lab_reqmain.brly , lab_reqmain.brdh , lab_reqmain.brxm , lab_reqdetail.numbk1 , lab_reqdetail.numbk2 FROM lab_reqdetail , lab_reqmain WHERE ( lab_reqdetail.sqh = lab_reqmain.sqh ) and ( ( lab_reqmain.sqh = #{sqh} ) )
|
||||||
</select>
|
</select>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user