1
lige
2023-12-28 b50a1578d589f641dbf7ba54f22c67b89aec24c5
ltkj-hosp/src/main/java/com/ltkj/hosp/mapper/TestMapper.java
@@ -158,18 +158,16 @@
    @DataSource(value = DataSourceType.SLAVE_PACS)
    @Select({"<script> select isnull(fcard_no,'不详') xh,fcard_iD pacCode,pat_name pacName,\n" +
            " (case when patsex_id='0' then '男' when patsex_id='1' then '女' else '未知' end )+';'+brnl detail,\n" +
            " pat_id price , mobile pacRemark" +
            "  from histjv_ltkjvtjpat where 1=1 "+
    @Select({"<script> select  *"+
            "  from histjv_Ltkj_hyxm where 1=1 "+
            " <when test='pacCode!=null'>" +
            "  AND fcard_no = #{pacCode}" +
            "  AND pacCode = #{pacCode}" +
            "</when>" +
            " <when test='pacName!=null'>" +
            "  AND pat_name = #{pacName}" +
            "  AND pacName = #{pacName}" +
            "</when>" +
            " <when test='pacRemark!=null'>" +
            "  AND mobile = #{pacRemark}" +
            "  AND pacRemark = #{pacRemark}" +
            "</when>" +
            "</script>"})
    public List<Map<String,Object>> getTjHyBgList(@Param("pacCode")String pacCode,