feat(menu): 优化菜单服务性能并新增医生排班功能
- 添加菜单缓存注解以提升查询性能 - 实现菜单完整路径计算优化,解决 N+1 查询问题 - 新增 selectAllMenus 方法供路径计算使用 - 添加今日医生排班查询功能 - 重构前端图标显示逻辑,使用 SVG 图标替代 Element 图标 - 添加前端菜单数据本地缓存机制 - 更新菜单管理界面的表单组件绑定方式 - 新增预约管理、门诊管理和药房管理路由配置
This commit is contained in:
@@ -0,0 +1,60 @@
|
||||
package com.openhis.domain;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.core.common.core.domain.BaseEntity;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.time.LocalDate;
|
||||
|
||||
/**
|
||||
* 日结结算单对象 medication_day_end_settlement
|
||||
*
|
||||
* @author openhis
|
||||
* @date 2025-02-01
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@TableName("medication_day_end_settlement")
|
||||
public class DayEndSettlement extends BaseEntity {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* ID
|
||||
*/
|
||||
@TableId(value = "id", type = IdType.AUTO)
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 结算单号
|
||||
*/
|
||||
private String settlementNo;
|
||||
|
||||
/**
|
||||
* 结算日期
|
||||
*/
|
||||
private LocalDate settlementDate;
|
||||
|
||||
/**
|
||||
* 结算类型 (daily, weekly, monthly)
|
||||
*/
|
||||
private String settlementType;
|
||||
|
||||
/**
|
||||
* 总金额
|
||||
*/
|
||||
private BigDecimal totalAmount;
|
||||
|
||||
/**
|
||||
* 状态 (0正常 1停用)
|
||||
*/
|
||||
private String status;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
private String remark;
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
package com.openhis.mapper;
|
||||
|
||||
import com.openhis.domain.DayEndSettlement;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
/**
|
||||
* 日结结算单Mapper接口
|
||||
*
|
||||
* @author openhis
|
||||
* @date 2025-02-01
|
||||
*/
|
||||
public interface DayEndSettlementMapper extends BaseMapper<DayEndSettlement> {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
package com.openhis.service;
|
||||
|
||||
import com.openhis.domain.DayEndSettlement;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
|
||||
/**
|
||||
* 日结结算单Service接口
|
||||
*
|
||||
* @author openhis
|
||||
* @date 2025-02-01
|
||||
*/
|
||||
public interface IDayEndSettlementService extends IService<DayEndSettlement> {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
package com.openhis.service.impl;
|
||||
|
||||
import com.openhis.domain.DayEndSettlement;
|
||||
import com.openhis.mapper.DayEndSettlementMapper;
|
||||
import com.openhis.service.IDayEndSettlementService;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
* 日结结算单Service业务层处理
|
||||
*
|
||||
* @author openhis
|
||||
* @date 2025-02-01
|
||||
*/
|
||||
@Service
|
||||
public class DayEndSettlementServiceImpl extends ServiceImpl<DayEndSettlementMapper, DayEndSettlement> implements IDayEndSettlementService {
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user