主程序

This commit is contained in:
tangw 2025-10-29 11:40:37 +08:00
parent 3317b01b62
commit f7d6f62b17
6 changed files with 50 additions and 6 deletions

View File

@ -1,5 +1,6 @@
package com.czlis.common.core.domain.entity.lis; package com.czlis.common.core.domain.entity.lis;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
import lombok.Data; import lombok.Data;
import lombok.NoArgsConstructor; import lombok.NoArgsConstructor;
@ -11,6 +12,7 @@ import java.util.Date;
@NoArgsConstructor @NoArgsConstructor
public class LabResultRe { public class LabResultRe {
private String wyh; private String wyh;
@JsonFormat(pattern = "yyyy-MM-dd")
private Date jyrq; private Date jyrq;
private String yq; private String yq;
private String ybh; private String ybh;

View File

@ -45,7 +45,11 @@ public class LisWorkPageInfoController extends BaseController {
return lisWorkPageInfoService.saveRedo(labResultRe); return lisWorkPageInfoService.saveRedo(labResultRe);
} }
@ApiOperation("删除复查结果")
@PostMapping("/deleteRedo")
public Result deleteRedo(@RequestBody LabResultRe labResultRe) {
return lisWorkPageInfoService.deleteRedo(labResultRe);
}
@Anonymous @Anonymous
@ApiOperation("获取历史结果") @ApiOperation("获取历史结果")
@GetMapping("/history") @GetMapping("/history")
@ -89,6 +93,11 @@ public class LisWorkPageInfoController extends BaseController {
public Result getInputmdl(String yq) { public Result getInputmdl(String yq) {
return lisWorkPageInfoService.getInputmdl(yq); return lisWorkPageInfoService.getInputmdl(yq);
} }
@ApiOperation("获取临床意义")
@GetMapping("/clinicref")
public Result getclinicref(String yq, String xmdh) {
return lisWorkPageInfoService.getclinicref(yq,xmdh);
}
} }

View File

@ -27,5 +27,7 @@ public interface LisWorkPageInfoMapper {
List<LabInputmdl> getInputmdl(String yq); List<LabInputmdl> getInputmdl(String yq);
int insertLabResultRe(LabResultRe labResultRe); int insertLabResultRe(LabResultRe labResultRe);
int updateLabResultRe(LabResultRe labResultRe); int updateLabResultRe(LabResultRe labResultRe);
int deleteRedo(LabResultRe labResultRe);
String getclinicref(@Param("yq") String yq,@Param("xmdh") String xmdh);
LabResultRe getLabResultRe(@Param("jyrq") Date jyrq,@Param("yq") String yq,@Param("ybh") String ybh,@Param("xmdh") String xmdh); LabResultRe getLabResultRe(@Param("jyrq") Date jyrq,@Param("yq") String yq,@Param("ybh") String ybh,@Param("xmdh") String xmdh);
} }

View File

@ -10,6 +10,7 @@ public interface LisWorkPageInfoService {
Result getRedo(Date jyrq, String yq, String ybh); Result getRedo(Date jyrq, String yq, String ybh);
Result swapRedo(LabResultRe labResultRe); Result swapRedo(LabResultRe labResultRe);
Result saveRedo(LabResultRe labResultRe); Result saveRedo(LabResultRe labResultRe);
Result deleteRedo(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);
@ -20,4 +21,5 @@ public interface LisWorkPageInfoService {
Result getReqdetailMX(String yq, String sqxmdh); Result getReqdetailMX(String yq, String sqxmdh);
Result getInputmdl(String yq); Result getInputmdl(String yq);
Result getclinicref(String yq, String xmdh);
} }

View File

@ -97,13 +97,18 @@ public class LisWorkPageInfoServiceImpl implements LisWorkPageInfoService {
String xmdh=labResultRe.getXmdh(); String xmdh=labResultRe.getXmdh();
LabResultRe labResultRe0 =lisWorkPageInfoMapper.getLabResultRe(jyrq,yq,ybh,xmdh); LabResultRe labResultRe0 =lisWorkPageInfoMapper.getLabResultRe(jyrq,yq,ybh,xmdh);
if(labResultRe0==null){ if(labResultRe0==null){
lisWorkPageInfoMapper.updateLabResultRe(labResultRe);
}else{
lisWorkPageInfoMapper.insertLabResultRe(labResultRe); lisWorkPageInfoMapper.insertLabResultRe(labResultRe);
}else{
lisWorkPageInfoMapper.updateLabResultRe(labResultRe);
} }
return new Result("0","交换数据成功!",labResultRe); return new Result("0","保存成功!",labResultRe);
}
@Override
@Transactional(rollbackFor = Exception.class)
public Result deleteRedo(LabResultRe labResultRe){
lisWorkPageInfoMapper.deleteRedo(labResultRe);
return new Result("0","成功!");
} }
@Override @Override
public Result getHistory(Date jyrq, String yq, String ybh) { public Result getHistory(Date jyrq, String yq, String ybh) {
Map<String,Object> map = new HashMap<>(); Map<String,Object> map = new HashMap<>();
@ -263,5 +268,10 @@ public class LisWorkPageInfoServiceImpl implements LisWorkPageInfoService {
return new Result("0","获取成功!",historyResultDTO); return new Result("0","获取成功!",historyResultDTO);
} }
@Override
public Result getclinicref(String yq, String xmdh) {
String lcyy=lisWorkPageInfoMapper.getclinicref(yq,xmdh);
return new Result("0","获取成功!",lcyy);
}
} }

View File

@ -44,6 +44,23 @@
</if> </if>
</where> </where>
</select> </select>
<delete id="deleteRedo" parameterType="com.czlis.common.core.domain.entity.lis.LabResultRe">
delete 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>
</delete>
<insert id="insertLabResultRe" parameterType="com.czlis.common.core.domain.entity.lis.LabResultRe"> <insert id="insertLabResultRe" parameterType="com.czlis.common.core.domain.entity.lis.LabResultRe">
insert into lab_result_re (jyrq, yq, ybh,xmdh,csjg) insert into lab_result_re (jyrq, yq, ybh,xmdh,csjg)
values (#{jyrq},#{yq},#{ybh},#{xmdh},#{csjg}) values (#{jyrq},#{yq},#{ybh},#{xmdh},#{csjg})
@ -174,5 +191,7 @@
FROM lab_inputmdl FROM lab_inputmdl
WHERE ( lab_inputmdl.yq = #{yq} ) WHERE ( lab_inputmdl.yq = #{yq} )
</select> </select>
<select id="getclinicref" resultType="String">
select clinicref from xm_info where yq = #{yq} and xmdh =#{xmdh}
</select>
</mapper> </mapper>