| | |
| | | .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) { |
| | |
| | | .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;") |
| | | @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) |
| | | }) |
| | | 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); |
| | | } |