Service和mapper封装逻辑删除的方法:

业务Mapper类需要继承HisBaseMapper,且加上@TableName注解指定表名
业务Service extends HisBaseService
业务ServiceImpl extends HisBaseServiceImpl
This commit is contained in:
Wang.Huan
2025-02-21 14:00:45 +08:00
parent e61495cc6b
commit 20a96aac79
6 changed files with 70 additions and 9 deletions

View File

@@ -1,5 +1,7 @@
package com.openhis.medication.mapper;
import com.baomidou.mybatisplus.annotation.TableName;
import com.core.common.biz.HisBaseMapper;
import com.openhis.medication.domain.MedicationDetail;
import org.springframework.stereotype.Repository;
@@ -14,8 +16,9 @@ import java.util.List;
* @author system
* @date 2025-02-20
*/
@TableName("med_medication")
@Repository
public interface MedicationMapper extends BaseMapper<Medication> {
public interface MedicationMapper extends HisBaseMapper<Medication> {
/**
* 查询药品详细信息列表