Compare commits

..

No commits in common. "eff175d85d16d64ce3edd7b719c65b1de9691816" and "6b2ad8d0a50f92dd0fe2b05437f85c28a2e3b935" have entirely different histories.

7 changed files with 30 additions and 31 deletions

View File

@ -1,7 +1,5 @@
package com.czlis.common.core.domain.entity.lis; package com.czlis.common.core.domain.entity.lis;
import com.czlis.common.core.domain.BaseEntity;
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,8 +9,7 @@ import java.util.Date;
@Data @Data
@AllArgsConstructor @AllArgsConstructor
@NoArgsConstructor @NoArgsConstructor
public class LabResultMed extends BaseEntity { public class LabResultMed {
@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

@ -17,5 +17,4 @@ public class XmMedgroup {
private BigDecimal nymic; private BigDecimal nymic;
private BigDecimal zjmic; private BigDecimal zjmic;
private String ismic; private String ismic;
private String ywmc;
} }

View File

@ -10,7 +10,6 @@ import com.czlis.common.core.domain.entity.lis.XmMed;
import com.czlis.common.core.page.TableDataInfo; import com.czlis.common.core.page.TableDataInfo;
import com.czlis.common.enums.BusinessType; import com.czlis.common.enums.BusinessType;
import com.czlis.interfaceCommon.constants.SysLogConstants; import com.czlis.interfaceCommon.constants.SysLogConstants;
import com.czlis.liswork.mapper.LisWorkGermMapper;
import com.czlis.liswork.mapper.xtwh.XmMedMapper; import com.czlis.liswork.mapper.xtwh.XmMedMapper;
import com.czlis.liswork.service.LisWorkGermService; import com.czlis.liswork.service.LisWorkGermService;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
@ -30,8 +29,6 @@ public class LisWorkGermController extends BaseController {
@Autowired @Autowired
XmMedMapper xmMedMapper; XmMedMapper xmMedMapper;
@Autowired @Autowired
LisWorkGermMapper lisWorkGermMapper;
@Autowired
LisWorkGermService lisWorkGermService; LisWorkGermService lisWorkGermService;
@ApiOperation("获取药敏字典") @ApiOperation("获取药敏字典")
@GetMapping("/getmeddict") @GetMapping("/getmeddict")
@ -111,12 +108,7 @@ public class LisWorkGermController extends BaseController {
@ApiOperation("获取药敏模板") @ApiOperation("获取药敏模板")
@GetMapping("/getmedgroup") @GetMapping("/getmedgroup")
public Result getmedgroup(String mbmc){ public Result getmedgroup(String mbmc){
return new Result("0","成功",lisWorkGermMapper.getmedgroup(mbmc)); return lisWorkGermService.getmedgroup(mbmc);
}
@ApiOperation("获取药敏模板列表")
@GetMapping("/getmedgrouplist")
public Result getmedgrouplist(){
return new Result("0", "成功!",lisWorkGermMapper.getmedgrouplist());
} }
@ApiOperation("获取微生物样本列表") @ApiOperation("获取微生物样本列表")
@GetMapping("/wswsamplelist") @GetMapping("/wswsamplelist")

View File

@ -6,8 +6,6 @@ import org.apache.ibatis.annotations.Param;
import java.util.Date; import java.util.Date;
import java.util.List; import java.util.List;
import java.util.Map;
public interface LisWorkGermMapper { public interface LisWorkGermMapper {
List<LabPat> getSampleListday(@Param("yq") String yq, @Param("days")Integer days); List<LabPat> getSampleListday(@Param("yq") String yq, @Param("days")Integer days);
List<LabPat> getSampleListWSW(@Param("jyrq") Date jyrq, @Param("yq") String yq); List<LabPat> getSampleListWSW(@Param("jyrq") Date jyrq, @Param("yq") String yq);
@ -20,6 +18,5 @@ public interface LisWorkGermMapper {
List<XmMedDetail> getXmMedDetailNew(@Param("yq") String yq,@Param("xmdh") String xmdh,@Param("ywdh") String ywdh); List<XmMedDetail> getXmMedDetailNew(@Param("yq") String yq,@Param("xmdh") String xmdh,@Param("ywdh") String ywdh);
List<XmMedDetail> getXmMedDetail(@Param("yq") String yq,@Param("xmdh") String xmdh,@Param("ywdh") String ywdh); List<XmMedDetail> getXmMedDetail(@Param("yq") String yq,@Param("xmdh") String xmdh,@Param("ywdh") String ywdh);
String getXmMedDetailBZ(@Param("yq") String yq,@Param("xmdh") String xmdh); String getXmMedDetailBZ(@Param("yq") String yq,@Param("xmdh") String xmdh);
List<Map<String, Object>> getmedgrouplist();
List<XmMedgroup> getmedgroup(String ywzmc);
} }

View File

@ -14,6 +14,7 @@ public interface LisWorkGermService {
Result getInstrid(String yq); Result getInstrid(String yq);
Result getmedium(Date jyrq, String yq, String ybh); Result getmedium(Date jyrq, String yq, String ybh);
Result getcomlog(Date jyrq, String yq, String ybh); Result getcomlog(Date jyrq, String yq, String ybh);
Result getmedgroup(String mbmc);
Result savemedresult(LabResultMed labResultmed); Result savemedresult(LabResultMed labResultmed);
Result savemedresultall(List<LabResultMed> labResultmedlist); Result savemedresultall(List<LabResultMed> labResultmedlist);
Result deletemedresult(LabResultMed labResultmed); Result deletemedresult(LabResultMed labResultmed);

View File

@ -32,6 +32,8 @@ public class LisWorkGermServiceImpl implements LisWorkGermService {
LisWorkUtils lisWorkUtils; LisWorkUtils lisWorkUtils;
@Autowired @Autowired
LisWorkGermMapper lisWorkGermMapper; LisWorkGermMapper lisWorkGermMapper;
@Autowired
XmMedgroupMapper xmMedgroupMapper;
@Override @Override
public Result getresultinfo(Date jyrq, String yq, String ybh){ public Result getresultinfo(Date jyrq, String yq, String ybh){
List<LabResult> labResultList = commonUtil.getLabResultList(jyrq, yq, ybh); List<LabResult> labResultList = commonUtil.getLabResultList(jyrq, yq, ybh);
@ -178,7 +180,12 @@ public class LisWorkGermServiceImpl implements LisWorkGermService {
List<ComLog> comLoglist=commonUtil.getComLog(comLog); List<ComLog> comLoglist=commonUtil.getComLog(comLog);
return new Result("0","成功",comLoglist); return new Result("0","成功",comLoglist);
} }
@Override
public Result getmedgroup(String mbmc){
XmMedgroup xmMedgroup=new XmMedgroup();
xmMedgroup.setYwzmc(mbmc);
return new Result("0","成功",xmMedgroupMapper.query(xmMedgroup));
}
/** /**
* 修改结果 * 修改结果
* *

View File

@ -74,35 +74,41 @@
</insert> </insert>
<select id="getXmMedDetail" resultType="com.czlis.common.core.domain.entity.lis.XmMedDetail"> <select id="getXmMedDetail" resultType="com.czlis.common.core.domain.entity.lis.XmMedDetail">
SELECT * FROM xm_meddetail SELECT * FROM xm_meddetail
where ywzmc = '细菌' and yq = #{yq} and xmdh = #{xmdh} WHERE yq = #{yq} And
xmdh = #{xmdh} And
<where>
<if test="yq != null and yq != ''">and yq = #{yq} </if> <if test="yq != null and yq != ''">and yq = #{yq} </if>
</where>
<where>
<if test="xmdh != null and xmdh != ''">and xmdh = #{xmdh}</if> <if test="xmdh != null and xmdh != ''">and xmdh = #{xmdh}</if>
</where>
<where>
<if test="ywdh != null and ywdh != ''">and ywdh = #{ywdh}</if> <if test="ywdh != null and ywdh != ''">and ywdh = #{ywdh}</if>
</where>
and ywzmc = '细菌'
</select> </select>
<select id="getXmMedDetailNew" resultType="com.czlis.common.core.domain.entity.lis.XmMedDetail"> <select id="getXmMedDetailNew" resultType="com.czlis.common.core.domain.entity.lis.XmMedDetail">
SELECT xm_meddetail.* SELECT xm_meddetail.*
FROM xm_meddetail join xm_info on xm_info.germclass=xm_meddetail.xmdh FROM xm_meddetail join xm_info on xm_info.germclass=xm_meddetail.xmdh
where xm_meddetail.yq = '_med_' <where>
<if test="yq != null and yq != ''">and xm_info.yq = #{yq} </if> <if test="yq != null and yq != ''">and xm_info.yq = #{yq} </if>
</where>
<where>
<if test="xmdh != null and xmdh != ''">and xm_info.xmdh = #{xmdh}</if> <if test="xmdh != null and xmdh != ''">and xm_info.xmdh = #{xmdh}</if>
</where>
<where>
<if test="ywdh != null and ywdh != ''">and xm_meddetail.ywdh = #{ywdh}</if> <if test="ywdh != null and ywdh != ''">and xm_meddetail.ywdh = #{ywdh}</if>
</where>
and xm_meddetail.yq = '_med_'
</select> </select>
<select id="getXmMedDetailBZ" resultType="String"> <select id="getXmMedDetailBZ" resultType="String">
SELECT com_dict.bz from xm_info join com_dict SELECT com_dict.bz from xm_info join com_dict
on zdlb = 'germclass' AND zddh =xm_info.germclass on zdlb = 'germclass' AND zddh =xm_info.germclass
<where> <where>
<if test="yq != null and yq != ''">and xm_info.yq = #{yq} </if> <if test="yq != null and yq != ''">and xm_info.yq = #{yq} </if>
</where>
<where>
<if test="xmdh != null and xmdh != ''">and xm_info.xmdh = #{xmdh}</if> <if test="xmdh != null and xmdh != ''">and xm_info.xmdh = #{xmdh}</if>
</where> </where>
</select> </select>
<select id="getmedgrouplist" resultType="map">
SELECT distinct ywzmc FROM xm_medgroup ORDER BY ywzmc
</select>
<select id="getmedgroup" resultType="com.czlis.common.core.domain.entity.lis.XmMedgroup">
select xm_medgroup.*,xm_med.ywmc from xm_medgroup join xm_med on xm_med.ywdh=xm_medgroup.ywdh
<where>
<if test="ywzmc != null and ywzmc != ''"> and xm_medgroup.ywzmc = #{ywzmc}</if>
</where>
order by xm_medgroup.xh
</select>
</mapper> </mapper>