yxh
昨天 fce96ef468291fb9a0e6a4d34ab371315e9485d4
jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/dal/mysql/checktype/CheckTypeMapper.java
@@ -30,7 +30,9 @@
                .eqIfPresent(CheckTypeDO::getTimeslotBookNum, reqVO.getTimeslotBookNum())
                .eqIfPresent(CheckTypeDO::getTimeslotReservedNum, reqVO.getTimeslotReservedNum())
                .eqIfPresent(CheckTypeDO::getAffinityCheckTypes, reqVO.getAffinityCheckTypes())
                .orderByDesc(CheckTypeDO::getId));
                // 需求9:按「排序序号」升序展示(原先按 id 倒序,与业务排序无关)
                .orderByAsc(CheckTypeDO::getSort)
                .orderByAsc(CheckTypeDO::getValue));
    }
    default PageResult<CheckTypeDO> selectPageForCallingScreen(CheckTypePageReqVO reqVO) {
@@ -46,7 +48,9 @@
                .eqIfPresent(CheckTypeDO::getTimeslotBookNum, reqVO.getTimeslotBookNum())
                .eqIfPresent(CheckTypeDO::getTimeslotReservedNum, reqVO.getTimeslotReservedNum())
                .eqIfPresent(CheckTypeDO::getAffinityCheckTypes, reqVO.getAffinityCheckTypes())
                .orderByDesc(CheckTypeDO::getId));
                // 需求9:按「排序序号」升序展示(原先按 id 倒序,与业务排序无关)
                .orderByAsc(CheckTypeDO::getSort)
                .orderByAsc(CheckTypeDO::getValue));
    }
    @Select("SELECT * FROM lihu.check_type;")
@@ -56,4 +60,10 @@
    })
    List<CheckTypeDO> simpleCheckTypeList();
    @Select("SELECT * FROM lihu.check_type where value = #{checkTypeCode} limit 1;")
    @Results({
            @Result(property = "displayBarcode", column = "display_barcode", typeHandler=com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler.class),
            @Result(property = "affinityCheckTypes", column = "affinity_check_types", typeHandler=com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler.class)
    })
    CheckTypeDO getCheckTypeByValue(@Param("checkTypeCode") Integer checkTypeCode);
}