Merge branch 'develop' of https://gitea.gentronhealth.com/wangyizhe/his into develop
This commit is contained in:
@@ -6,6 +6,7 @@ import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.core.common.core.domain.R;
|
||||
import com.core.common.core.domain.entity.SysDictData;
|
||||
import com.core.common.core.domain.model.LoginUser;
|
||||
import com.core.common.utils.*;
|
||||
import com.core.common.utils.bean.BeanUtils;
|
||||
import com.core.common.utils.poi.ExcelUtil;
|
||||
@@ -400,6 +401,21 @@ public class DiagTreatMAppServiceImpl implements IDiagTreatMAppService {
|
||||
// 新增外来诊疗目录
|
||||
activityDefinition.setStatusEnum(PublicationStatus.ACTIVE.getValue());
|
||||
|
||||
// 显式设置创建者和租户ID,确保插入时不为null
|
||||
String createBy = "system";
|
||||
Integer tenantId = null;
|
||||
try {
|
||||
LoginUser loginUser = SecurityUtils.getLoginUser();
|
||||
if (loginUser != null) {
|
||||
createBy = loginUser.getUsername();
|
||||
tenantId = loginUser.getTenantId();
|
||||
}
|
||||
} catch (Exception e) {
|
||||
// 如果获取失败,使用默认值
|
||||
}
|
||||
activityDefinition.setCreateBy(createBy);
|
||||
activityDefinition.setTenantId(tenantId != null ? tenantId : 1); // 默认租户ID为1
|
||||
|
||||
// 检查编码是否已存在
|
||||
List<ActivityDefinition> existingDefinitions = activityDefinitionMapper.selectList(
|
||||
new LambdaQueryWrapper<ActivityDefinition>()
|
||||
@@ -624,6 +640,20 @@ public class DiagTreatMAppServiceImpl implements IDiagTreatMAppService {
|
||||
.setYbMatchFlag(CommonUtil.tryParseInt(importDto.getYbMatchFlag()))
|
||||
.setStatusEnum(PublicationStatus.ACTIVE.getValue())
|
||||
.setChrgitmLv(CommonUtil.tryParseInt(importDto.getChrgitmLv()));
|
||||
// 显式设置创建者和租户ID,确保插入时不为null
|
||||
String createBy = "system";
|
||||
Integer tenantId = null;
|
||||
try {
|
||||
LoginUser loginUser = SecurityUtils.getLoginUser();
|
||||
if (loginUser != null) {
|
||||
createBy = loginUser.getUsername();
|
||||
tenantId = loginUser.getTenantId();
|
||||
}
|
||||
} catch (Exception e) {
|
||||
// 如果获取失败,使用默认值
|
||||
}
|
||||
activityDefinition.setCreateBy(createBy);
|
||||
activityDefinition.setTenantId(tenantId != null ? tenantId : 1); // 默认租户ID为1
|
||||
return activityDefinition;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -123,6 +123,8 @@ public class DoctorStationMainAppServiceImpl implements IDoctorStationMainAppSer
|
||||
*/
|
||||
@Override
|
||||
public R<?> receiveEncounter(Long encounterId) {
|
||||
Integer tenantId = SecurityUtils.getLoginUser().getTenantId();
|
||||
String currentUsername = SecurityUtils.getUsername();
|
||||
int update = encounterMapper.update(null,
|
||||
new LambdaUpdateWrapper<Encounter>().eq(Encounter::getId, encounterId)
|
||||
.set(Encounter::getReceptionTime, new Date())
|
||||
@@ -140,6 +142,9 @@ public class DoctorStationMainAppServiceImpl implements IDoctorStationMainAppSer
|
||||
encounterParticipant.setTypeCode(ParticipantType.ADMITTER.getCode());// 接诊医生
|
||||
encounterParticipant.setPractitionerId(SecurityUtils.getLoginUser().getPractitionerId());
|
||||
encounterParticipant.setStatusEnum(EncounterActivityStatus.ACTIVE.getValue()); // 状态
|
||||
encounterParticipant.setTenantId(tenantId);
|
||||
encounterParticipant.setCreateBy(currentUsername);
|
||||
encounterParticipant.setCreateTime(new Date());
|
||||
iEncounterParticipantService.save(encounterParticipant);
|
||||
return update > 0 ? R.ok() : R.fail();
|
||||
}
|
||||
|
||||
@@ -25,6 +25,7 @@ import com.openhis.web.inventorymanage.dto.*;
|
||||
import com.openhis.web.inventorymanage.mapper.PurchaseInventoryMapper;
|
||||
import com.openhis.workflow.domain.SupplyRequest;
|
||||
import com.openhis.workflow.service.ISupplyRequestService;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
@@ -40,6 +41,7 @@ import java.util.stream.Stream;
|
||||
* @author zwh
|
||||
* @date 2025-03-08
|
||||
*/
|
||||
@Slf4j
|
||||
@Service
|
||||
public class PurchaseInventoryAppServiceImpl implements IPurchaseInventoryAppService {
|
||||
|
||||
@@ -159,6 +161,7 @@ public class PurchaseInventoryAppServiceImpl implements IPurchaseInventoryAppSer
|
||||
@Override
|
||||
public R<List<ReceiptDetailDto>> getDetail(String busNo) {
|
||||
List<ReceiptDetailDto> receiptDetailList = purchaseInventoryMapper.selectDetail(busNo);
|
||||
log.debug("返回查询结果,receiptDetailList:{}", receiptDetailList);
|
||||
if (receiptDetailList.isEmpty()) {
|
||||
return R.fail(MessageUtils.createMessage(PromptMsgConstant.Common.M00006, null));
|
||||
}
|
||||
@@ -182,7 +185,7 @@ public class PurchaseInventoryAppServiceImpl implements IPurchaseInventoryAppSer
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
log.debug("返回查询结果,receiptDetailList:{}", receiptDetailList);
|
||||
return R.ok(receiptDetailList);
|
||||
}
|
||||
|
||||
@@ -194,7 +197,6 @@ public class PurchaseInventoryAppServiceImpl implements IPurchaseInventoryAppSer
|
||||
*/
|
||||
@Override
|
||||
public R<?> addOrEditInventoryReceipt(List<PurchaseInventoryDto> purchaseInventoryDtoList) {
|
||||
|
||||
// 校验(已经审批通过的单号(请求状态是同意),不能再重复编辑请求)
|
||||
boolean validation = supplyRequestService.supplyRequestValidation(purchaseInventoryDtoList.get(0).getBusNo());
|
||||
if (validation) {
|
||||
@@ -232,11 +234,14 @@ public class PurchaseInventoryAppServiceImpl implements IPurchaseInventoryAppSer
|
||||
// 制单人
|
||||
.setApplicantId(SecurityUtils.getLoginUser().getPractitionerId())
|
||||
// 申请时间
|
||||
.setApplyTime(DateUtils.getNowDate());
|
||||
.setApplyTime(DateUtils.getNowDate())
|
||||
|
||||
.setCreateBy(SecurityUtils.getLoginUser().getUsername())
|
||||
.setCreateTime(DateUtils.getNowDate())
|
||||
.setTenantId(SecurityUtils.getLoginUser().getTenantId());
|
||||
supplyRequestList.add(supplyRequest);
|
||||
|
||||
}
|
||||
|
||||
// 保存
|
||||
supplyRequestService.saveOrUpdateBatch(supplyRequestList);
|
||||
|
||||
|
||||
@@ -57,15 +57,15 @@ public class PharmacyWarehouseProfitLossOrderServiceImpl implements IPharmacyWar
|
||||
|
||||
// 单据分类
|
||||
List<PharmacyWarehouseInitDto.IntegerOption> supplyCategoryOption = new ArrayList<>();
|
||||
// supplyCategoryOption.add(new
|
||||
// PharmacyWarehouseInitDto.IntegerOption(SupplyCategory.GENERAL_PROFIT_AND_LOSS.getValue(),
|
||||
// SupplyCategory.GENERAL_PROFIT_AND_LOSS.getInfo()));
|
||||
// supplyCategoryOption.add(new
|
||||
// PharmacyWarehouseInitDto.IntegerOption(SupplyCategory.STOCKTAKING_PROFIT_AND_LOSS.getValue(),
|
||||
// SupplyCategory.STOCKTAKING_PROFIT_AND_LOSS.getInfo()));
|
||||
// supplyCategoryOption.add(new
|
||||
// PharmacyWarehouseInitDto.IntegerOption(SupplyCategory.PREPARATION_CONSUMPTION.getValue(),
|
||||
// SupplyCategory.PREPARATION_CONSUMPTION.getInfo()));
|
||||
supplyCategoryOption.add(new
|
||||
PharmacyWarehouseInitDto.IntegerOption(SupplyCategory.GENERAL_PROFIT_AND_LOSS.getValue(),
|
||||
SupplyCategory.GENERAL_PROFIT_AND_LOSS.getInfo()));
|
||||
supplyCategoryOption.add(new
|
||||
PharmacyWarehouseInitDto.IntegerOption(SupplyCategory.STOCKTAKING_PROFIT_AND_LOSS.getValue(),
|
||||
SupplyCategory.STOCKTAKING_PROFIT_AND_LOSS.getInfo()));
|
||||
supplyCategoryOption.add(new
|
||||
PharmacyWarehouseInitDto.IntegerOption(SupplyCategory.PREPARATION_CONSUMPTION.getValue(),
|
||||
SupplyCategory.PREPARATION_CONSUMPTION.getInfo()));
|
||||
|
||||
purchaseOrderInitDto.setSupplyCategoryOptions(supplyCategoryOption);
|
||||
|
||||
|
||||
@@ -56,11 +56,11 @@ public class PharmacyWarehousePurchaseOrderServiceImpl implements IPharmacyWareh
|
||||
|
||||
// 单据分类
|
||||
List<PharmacyWarehouseInitDto.IntegerOption> supplyCategoryOption = new ArrayList<>();
|
||||
// supplyCategoryOption.add(new PharmacyWarehouseInitDto.IntegerOption(SupplyCategory.NORMAL.getValue(),
|
||||
// SupplyCategory.NORMAL.getInfo()));
|
||||
// supplyCategoryOption.add(new
|
||||
// PharmacyWarehouseInitDto.IntegerOption(SupplyCategory.PURCHASE_PLAN_GENERATION.getValue(),
|
||||
// SupplyCategory.PURCHASE_PLAN_GENERATION.getInfo()));
|
||||
supplyCategoryOption.add(new PharmacyWarehouseInitDto.IntegerOption(SupplyCategory.STOCK_SUPPLY.getValue(),
|
||||
SupplyCategory.STOCK_SUPPLY.getInfo()));
|
||||
supplyCategoryOption.add(new
|
||||
PharmacyWarehouseInitDto.IntegerOption(SupplyCategory.NON_STOCK.getValue(),
|
||||
SupplyCategory.NON_STOCK.getInfo()));
|
||||
|
||||
purchaseOrderInitDto.setSupplyCategoryOptions(supplyCategoryOption);
|
||||
|
||||
|
||||
@@ -56,8 +56,8 @@ public class PharmacyWarehouseReturnOrderServiceImpl implements IPharmacyWarehou
|
||||
|
||||
// 单据分类
|
||||
List<PharmacyWarehouseInitDto.IntegerOption> supplyCategoryOption = new ArrayList<>();
|
||||
// supplyCategoryOption.add(new PharmacyWarehouseInitDto.IntegerOption(SupplyCategory.NORMAL.getValue(),
|
||||
// SupplyCategory.NORMAL.getInfo()));
|
||||
supplyCategoryOption.add(new PharmacyWarehouseInitDto.IntegerOption(SupplyCategory.NORMAL.getValue(),
|
||||
SupplyCategory.NORMAL.getInfo()));
|
||||
|
||||
purchaseOrderInitDto.setSupplyCategoryOptions(supplyCategoryOption);
|
||||
|
||||
|
||||
@@ -56,8 +56,8 @@ public class PharmacyWarehouseReturnToWarehouseOrderServiceImpl implements IPhar
|
||||
|
||||
// 单据分类
|
||||
List<PharmacyWarehouseInitDto.IntegerOption> supplyCategoryOption = new ArrayList<>();
|
||||
// supplyCategoryOption.add(new PharmacyWarehouseInitDto.IntegerOption(SupplyCategory.NORMAL.getValue(),
|
||||
// SupplyCategory.NORMAL.getInfo()));
|
||||
supplyCategoryOption.add(new PharmacyWarehouseInitDto.IntegerOption(SupplyCategory.NORMAL.getValue(),
|
||||
SupplyCategory.NORMAL.getInfo()));
|
||||
|
||||
purchaseOrderInitDto.setSupplyCategoryOptions(supplyCategoryOption);
|
||||
|
||||
|
||||
@@ -57,18 +57,16 @@ public class PharmacyWarehouseStockInOrderServiceImpl implements IPharmacyWareho
|
||||
|
||||
// 单据分类
|
||||
List<PharmacyWarehouseInitDto.IntegerOption> supplyCategoryOption = new ArrayList<>();
|
||||
// supplyCategoryOption
|
||||
// .add(new PharmacyWarehouseInitDto.IntegerOption(SupplyCategory.PURCHASED_DRUGS_WAREHOUSING.getValue(),
|
||||
// SupplyCategory.PURCHASED_DRUGS_WAREHOUSING.getInfo()));
|
||||
// supplyCategoryOption.add(new PharmacyWarehouseInitDto.IntegerOption(
|
||||
// SupplyCategory.HOMEMADE_DRUGS_WAREHOUSING.getValue(), SupplyCategory.HOMEMADE_DRUGS_WAREHOUSING.getInfo()));
|
||||
// supplyCategoryOption
|
||||
// .add(new PharmacyWarehouseInitDto.IntegerOption(SupplyCategory.CONSIGNMENT_DRUGS_WAREHOUSING.getValue(),
|
||||
// SupplyCategory.CONSIGNMENT_DRUGS_WAREHOUSING.getInfo()));
|
||||
// supplyCategoryOption.add(new PharmacyWarehouseInitDto.IntegerOption(
|
||||
// SupplyCategory.OTHER_DRUGS_WAREHOUSING.getValue(), SupplyCategory.OTHER_DRUGS_WAREHOUSING.getInfo()));
|
||||
// supplyCategoryOption.add(new PharmacyWarehouseInitDto.IntegerOption(
|
||||
// SupplyCategory.DONATED_DRUGS_WAREHOUSING.getValue(), SupplyCategory.DONATED_DRUGS_WAREHOUSING.getInfo()));
|
||||
supplyCategoryOption.add(new PharmacyWarehouseInitDto.IntegerOption(SupplyCategory.PURCHASED_DRUGS_WAREHOUSING.getValue(),
|
||||
SupplyCategory.PURCHASED_DRUGS_WAREHOUSING.getInfo()));
|
||||
supplyCategoryOption.add(new PharmacyWarehouseInitDto.IntegerOption(
|
||||
SupplyCategory.HOMEMADE_DRUGS_WAREHOUSING.getValue(), SupplyCategory.HOMEMADE_DRUGS_WAREHOUSING.getInfo()));
|
||||
supplyCategoryOption.add(new PharmacyWarehouseInitDto.IntegerOption(SupplyCategory.CONSIGNMENT_DRUGS_WAREHOUSING.getValue(),
|
||||
SupplyCategory.CONSIGNMENT_DRUGS_WAREHOUSING.getInfo()));
|
||||
supplyCategoryOption.add(new PharmacyWarehouseInitDto.IntegerOption(
|
||||
SupplyCategory.OTHER_DRUGS_WAREHOUSING.getValue(), SupplyCategory.OTHER_DRUGS_WAREHOUSING.getInfo()));
|
||||
supplyCategoryOption.add(new PharmacyWarehouseInitDto.IntegerOption(
|
||||
SupplyCategory.DONATED_DRUGS_WAREHOUSING.getValue(), SupplyCategory.DONATED_DRUGS_WAREHOUSING.getInfo()));
|
||||
|
||||
purchaseOrderInitDto.setSupplyCategoryOptions(supplyCategoryOption);
|
||||
|
||||
|
||||
@@ -56,12 +56,12 @@ public class PharmacyWarehouseStockOutOrderServiceImpl implements IPharmacyWareh
|
||||
|
||||
// 单据分类
|
||||
List<PharmacyWarehouseInitDto.IntegerOption> supplyCategoryOption = new ArrayList<>();
|
||||
// supplyCategoryOption.add(new PharmacyWarehouseInitDto.IntegerOption(SupplyCategory.IN_HOSPITAL_OUTBOUND.getValue(),
|
||||
// SupplyCategory.IN_HOSPITAL_OUTBOUND.getInfo()));
|
||||
// supplyCategoryOption.add(new PharmacyWarehouseInitDto.IntegerOption(SupplyCategory.OUT_OF_HOSPITAL_OUTBOUND.getValue(),
|
||||
// SupplyCategory.OUT_OF_HOSPITAL_OUTBOUND.getInfo()));
|
||||
// supplyCategoryOption.add(new PharmacyWarehouseInitDto.IntegerOption(SupplyCategory.OTHER_OUTBOUND.getValue(),
|
||||
// SupplyCategory.OTHER_OUTBOUND.getInfo()));
|
||||
supplyCategoryOption.add(new PharmacyWarehouseInitDto.IntegerOption(SupplyCategory.IN_HOSPITAL_OUTBOUND.getValue(),
|
||||
SupplyCategory.IN_HOSPITAL_OUTBOUND.getInfo()));
|
||||
supplyCategoryOption.add(new PharmacyWarehouseInitDto.IntegerOption(SupplyCategory.OUT_OF_HOSPITAL_OUTBOUND.getValue(),
|
||||
SupplyCategory.OUT_OF_HOSPITAL_OUTBOUND.getInfo()));
|
||||
supplyCategoryOption.add(new PharmacyWarehouseInitDto.IntegerOption(SupplyCategory.OTHER_OUTBOUND.getValue(),
|
||||
SupplyCategory.OTHER_OUTBOUND.getInfo()));
|
||||
|
||||
purchaseOrderInitDto.setSupplyCategoryOptions(supplyCategoryOption);
|
||||
|
||||
|
||||
@@ -57,10 +57,10 @@ public class PharmacyWarehouseStocktakingOrderServiceImpl implements IPharmacyWa
|
||||
|
||||
// 单据分类
|
||||
List<PharmacyWarehouseInitDto.IntegerOption> supplyCategoryOption = new ArrayList<>();
|
||||
// supplyCategoryOption.add(new PharmacyWarehouseInitDto.IntegerOption(
|
||||
// SupplyCategory.GENERAL_STOCKTAKING.getValue(), SupplyCategory.GENERAL_STOCKTAKING.getInfo()));
|
||||
// supplyCategoryOption.add(new PharmacyWarehouseInitDto.IntegerOption(
|
||||
// SupplyCategory.MONTHLY_STOCKTAKING.getValue(), SupplyCategory.MONTHLY_STOCKTAKING.getInfo()));
|
||||
supplyCategoryOption.add(new PharmacyWarehouseInitDto.IntegerOption(
|
||||
SupplyCategory.GENERAL_STOCKTAKING.getValue(), SupplyCategory.GENERAL_STOCKTAKING.getInfo()));
|
||||
supplyCategoryOption.add(new PharmacyWarehouseInitDto.IntegerOption(
|
||||
SupplyCategory.MONTHLY_STOCKTAKING.getValue(), SupplyCategory.MONTHLY_STOCKTAKING.getInfo()));
|
||||
|
||||
purchaseOrderInitDto.setSupplyCategoryOptions(supplyCategoryOption);
|
||||
|
||||
|
||||
@@ -86,7 +86,7 @@
|
||||
T3.total_volume,
|
||||
T5."name" AS practitioner_name,
|
||||
T6."name" AS purpose_location_name,
|
||||
T6."id" AS purpose_location_id,
|
||||
T1.purpose_location_id AS purpose_location_id,
|
||||
T7."name" AS purpose_location_store_name,
|
||||
T1.occurrence_time,
|
||||
(SELECT SUM(T9.quantity)
|
||||
@@ -119,7 +119,7 @@
|
||||
ON T1.supplier_id = T10.id
|
||||
AND T10.delete_flag = '0'
|
||||
LEFT JOIN sys_dict_data sdt
|
||||
ON sdt.dict_value = T1.unit_code AND dict_type = 'unit_code'
|
||||
ON sdt.dict_value = T1.unit_code AND sdt.dict_type = 'unit_code'
|
||||
WHERE T1.bus_no = #{busNo}
|
||||
AND T1.delete_flag = '0'
|
||||
UNION
|
||||
@@ -145,7 +145,7 @@
|
||||
T8."size" AS total_volume,
|
||||
T5."name" AS practitioner_name,
|
||||
T6."name" AS purpose_location_name,
|
||||
T6."id" AS purpose_location_id,
|
||||
T1.purpose_location_id AS purpose_location_id,
|
||||
T7."name" AS purpose_location_store_name,
|
||||
T1.occurrence_time,
|
||||
(SELECT SUM(T9.quantity)
|
||||
@@ -175,7 +175,7 @@
|
||||
ON T1.supplier_id = T10.id
|
||||
AND T10.delete_flag = '0'
|
||||
LEFT JOIN sys_dict_data sdt
|
||||
ON sdt.dict_value = T1.unit_code AND dict_type = 'unit_code'
|
||||
ON sdt.dict_value = T1.unit_code AND sdt.dict_type = 'unit_code'
|
||||
WHERE T1.bus_no = #{busNo}
|
||||
AND T1.delete_flag = '0'
|
||||
</select>
|
||||
|
||||
@@ -112,7 +112,6 @@
|
||||
ON T1.context_enum = #{activity}
|
||||
AND T1.product_id = T2.id
|
||||
AND T2.delete_flag = '0'
|
||||
AND T2.status_enum = 1
|
||||
LEFT JOIN med_medication_definition AS T3
|
||||
ON T1.context_enum = #{medication}
|
||||
AND T1.product_id = T3.id
|
||||
@@ -206,7 +205,6 @@
|
||||
ON T1.context_enum = #{activity}
|
||||
AND T1.product_id = T2.id
|
||||
AND T2.delete_flag = '0'
|
||||
AND T2.status_enum = 1
|
||||
LEFT JOIN med_medication_definition AS T3
|
||||
ON T1.context_enum = #{medication}
|
||||
AND T1.product_id = T3.id
|
||||
|
||||
@@ -231,16 +231,13 @@
|
||||
AND T3.organization_id = #{organizationId}
|
||||
</if>
|
||||
WHERE T1.delete_flag = '0'
|
||||
<if test="pricingFlag != null and pricingFlag == 1">
|
||||
AND (T1.pricing_flag = #{pricingFlag} OR T1.pricing_flag IS NULL)
|
||||
</if>
|
||||
AND (T1.pricing_flag = 1 OR T1.pricing_flag IS NULL)
|
||||
<if test="adviceDefinitionIdParamList != null and !adviceDefinitionIdParamList.isEmpty()">
|
||||
AND T1.id IN
|
||||
<foreach collection="adviceDefinitionIdParamList" item="itemId" open="(" separator="," close=")">
|
||||
#{itemId}
|
||||
</foreach>
|
||||
</if>
|
||||
AND T1.status_enum = #{statusEnum}
|
||||
)
|
||||
</if>
|
||||
</if>
|
||||
|
||||
@@ -23,120 +23,120 @@ public enum SupplyCategory implements HisEnumInterface {
|
||||
/**
|
||||
* 非库存供应
|
||||
*/
|
||||
NON_STOCK(2, "2", "非库存供应");
|
||||
NON_STOCK(2, "2", "非库存供应"),
|
||||
|
||||
// /**
|
||||
// * 普通
|
||||
// */
|
||||
// NORMAL(3, "3","0.普通"),
|
||||
// /**
|
||||
// * 采购计划生成
|
||||
// */
|
||||
// PURCHASE_PLAN_GENERATION(4, "4","1.采购计划生成"),
|
||||
// /**
|
||||
// * 外购药品入库
|
||||
// */
|
||||
// PURCHASED_DRUGS_WAREHOUSING(5, "5","0.外购药品入库"),
|
||||
// /**
|
||||
// * 自制药品入库
|
||||
// */
|
||||
// HOMEMADE_DRUGS_WAREHOUSING(6, "6","1.自制药品入库"),
|
||||
// /**
|
||||
// * 代销药品入库
|
||||
// */
|
||||
// CONSIGNMENT_DRUGS_WAREHOUSING(7, "7","2.代销药品入库"),
|
||||
// /**
|
||||
// * 其他药品入库
|
||||
// */
|
||||
// OTHER_DRUGS_WAREHOUSING(8, "8","3.其他药品入库"),
|
||||
// /**
|
||||
// * 赠送药品入库
|
||||
// */
|
||||
// DONATED_DRUGS_WAREHOUSING(9, "9","4.赠送药品入库"),
|
||||
// /**
|
||||
// * 申请采购
|
||||
// */
|
||||
// PURCHASE_APPLICATION(10, "10","1.申请采购"),
|
||||
// /**
|
||||
// * 院内出库
|
||||
// */
|
||||
// IN_HOSPITAL_OUTBOUND(11, "11","0.院内出库"),
|
||||
// /**
|
||||
// * 院外出库
|
||||
// */
|
||||
// OUT_OF_HOSPITAL_OUTBOUND(12, "12","1.院外出库"),
|
||||
// /**
|
||||
// * 其他出库
|
||||
// */
|
||||
// OTHER_OUTBOUND(13, "13","2.其他出库"),
|
||||
// /**
|
||||
// * 普通损益
|
||||
// */
|
||||
// GENERAL_PROFIT_AND_LOSS(14, "14","0.普通损益"),
|
||||
// /**
|
||||
// * 盘点损益
|
||||
// */
|
||||
// STOCKTAKING_PROFIT_AND_LOSS(15, "15","1.盘点损益"),
|
||||
// /**
|
||||
// * 制剂消耗
|
||||
// */
|
||||
// PREPARATION_CONSUMPTION(16, "16","2.制剂消耗"),
|
||||
// /**
|
||||
// * 常备抢救药品
|
||||
// */
|
||||
// STANDBY_RESCUE_MEDICINES(16, "16","2.常备抢救药品"),
|
||||
// /**
|
||||
// * 破损过期药品
|
||||
// */
|
||||
// DAMAGED_EXPIRED_MEDICINES(16, "16","3.破损过期药品"),
|
||||
// /**
|
||||
// * 捐赠药品
|
||||
// */
|
||||
// DONATED_MEDICINES(16, "16","4.捐赠药品"),
|
||||
// /**
|
||||
// * 普通盘点
|
||||
// */
|
||||
// GENERAL_STOCKTAKING(17, "17","0.普通盘点"),
|
||||
// /**
|
||||
// * 月度盘点
|
||||
// */
|
||||
// MONTHLY_STOCKTAKING(18, "18","1.月度盘点"),
|
||||
// /**
|
||||
// * 门诊病人发药
|
||||
// */
|
||||
// OUTPATIENT_PATIENT_DISPENSING(19, "19","0.门诊病人发药"),
|
||||
// /**
|
||||
// * 住院病人发药
|
||||
// */
|
||||
// INPATIENT_PATIENT_DISPENSING(20, "20","1.住院病人发药"),
|
||||
// /**
|
||||
// * 住院病人汇总发药
|
||||
// */
|
||||
// INPATIENT_PATIENT_SUMMARY_DISPENSING(21, "21","2.住院病人汇总发药"),
|
||||
// /**
|
||||
// * 赠送
|
||||
// */
|
||||
// PRESENT(22, "22","1.赠送"),
|
||||
// /**
|
||||
// * 视光材料
|
||||
// */
|
||||
// OPTICAL_MATERIALS(23, "23","2.视光材料"),
|
||||
// /**
|
||||
// * 调价分类 药品
|
||||
// */
|
||||
// REQUEST_CATEGORY_CHANGE_PRICE_MEDICATION(24, "24","药品调价单"),
|
||||
// /**
|
||||
// * 调价分类 耗材
|
||||
// */
|
||||
// REQUEST_CATEGORY_CHANGE_PRICE_DEVICE(25, "25","耗材调价单"),
|
||||
// /**
|
||||
// * 调价分类 诊疗
|
||||
// */
|
||||
// REQUEST_CATEGORY_CHANGE_PRICE_ACTIVITY(26, "26","诊疗调价单"),
|
||||
// /**
|
||||
// * 调价分类 挂号
|
||||
// */
|
||||
// REQUEST_CATEGORY_CHANGE_PRICE_HEALTH(27, "27","挂号调价单");
|
||||
/**
|
||||
* 普通
|
||||
*/
|
||||
NORMAL(3, "3", "0.普通"),
|
||||
/**
|
||||
* 采购计划生成
|
||||
*/
|
||||
PURCHASE_PLAN_GENERATION(4, "4", "1.采购计划生成"),
|
||||
/**
|
||||
* 外购药品入库
|
||||
*/
|
||||
PURCHASED_DRUGS_WAREHOUSING(5, "5", "0.外购药品入库"),
|
||||
/**
|
||||
* 自制药品入库
|
||||
*/
|
||||
HOMEMADE_DRUGS_WAREHOUSING(6, "6", "1.自制药品入库"),
|
||||
/**
|
||||
* 代销药品入库
|
||||
*/
|
||||
CONSIGNMENT_DRUGS_WAREHOUSING(7, "7", "2.代销药品入库"),
|
||||
/**
|
||||
* 其他药品入库
|
||||
*/
|
||||
OTHER_DRUGS_WAREHOUSING(8, "8", "3.其他药品入库"),
|
||||
/**
|
||||
* 赠送药品入库
|
||||
*/
|
||||
DONATED_DRUGS_WAREHOUSING(9, "9", "4.赠送药品入库"),
|
||||
/**
|
||||
* 申请采购
|
||||
*/
|
||||
PURCHASE_APPLICATION(10, "10", "1.申请采购"),
|
||||
/**
|
||||
* 院内出库
|
||||
*/
|
||||
IN_HOSPITAL_OUTBOUND(11, "11", "0.院内出库"),
|
||||
/**
|
||||
* 院外出库
|
||||
*/
|
||||
OUT_OF_HOSPITAL_OUTBOUND(12, "12", "1.院外出库"),
|
||||
/**
|
||||
* 其他出库
|
||||
*/
|
||||
OTHER_OUTBOUND(13, "13", "2.其他出库"),
|
||||
/**
|
||||
* 普通损益
|
||||
*/
|
||||
GENERAL_PROFIT_AND_LOSS(14, "14", "0.普通损益"),
|
||||
/**
|
||||
* 盘点损益
|
||||
*/
|
||||
STOCKTAKING_PROFIT_AND_LOSS(15, "15", "1.盘点损益"),
|
||||
/**
|
||||
* 制剂消耗
|
||||
*/
|
||||
PREPARATION_CONSUMPTION(16, "16", "2.制剂消耗"),
|
||||
/**
|
||||
* 常备抢救药品
|
||||
*/
|
||||
STANDBY_RESCUE_MEDICINES(17, "17", "2.常备抢救药品"),
|
||||
/**
|
||||
* 破损过期药品
|
||||
*/
|
||||
DAMAGED_EXPIRED_MEDICINES(18, "18", "3.破损过期药品"),
|
||||
/**
|
||||
* 捐赠药品
|
||||
*/
|
||||
DONATED_MEDICINES(19, "19", "4.捐赠药品"),
|
||||
/**
|
||||
* 普通盘点
|
||||
*/
|
||||
GENERAL_STOCKTAKING(20, "20", "0.普通盘点"),
|
||||
/**
|
||||
* 月度盘点
|
||||
*/
|
||||
MONTHLY_STOCKTAKING(21, "21", "1.月度盘点"),
|
||||
/**
|
||||
* 门诊病人发药
|
||||
*/
|
||||
OUTPATIENT_PATIENT_DISPENSING(22, "22", "0.门诊病人发药"),
|
||||
/**
|
||||
* 住院病人发药
|
||||
*/
|
||||
INPATIENT_PATIENT_DISPENSING(23, "23", "1.住院病人发药"),
|
||||
/**
|
||||
* 住院病人汇总发药
|
||||
*/
|
||||
INPATIENT_PATIENT_SUMMARY_DISPENSING(24, "24", "2.住院病人汇总发药"),
|
||||
/**
|
||||
* 赠送
|
||||
*/
|
||||
PRESENT(25, "25", "1.赠送"),
|
||||
/**
|
||||
* 视光材料
|
||||
*/
|
||||
OPTICAL_MATERIALS(26, "26", "2.视光材料"),
|
||||
/**
|
||||
* 调价分类 药品
|
||||
*/
|
||||
REQUEST_CATEGORY_CHANGE_PRICE_MEDICATION(27, "27", "药品调价单"),
|
||||
/**
|
||||
* 调价分类 耗材
|
||||
*/
|
||||
REQUEST_CATEGORY_CHANGE_PRICE_DEVICE(28, "28", "耗材调价单"),
|
||||
/**
|
||||
* 调价分类 诊疗
|
||||
*/
|
||||
REQUEST_CATEGORY_CHANGE_PRICE_ACTIVITY(29, "29", "诊疗调价单"),
|
||||
/**
|
||||
* 调价分类 挂号
|
||||
*/
|
||||
REQUEST_CATEGORY_CHANGE_PRICE_HEALTH(30, "30", "挂号调价单");
|
||||
private Integer value;
|
||||
private String code;
|
||||
private String info;
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
package com.openhis.administration.domain;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.core.common.core.domain.HisBaseEntity;
|
||||
@@ -43,4 +44,9 @@ public class EncounterParticipant extends HisBaseEntity {
|
||||
|
||||
/** 状态 */
|
||||
private Integer statusEnum;
|
||||
/**
|
||||
* 租户ID(新增字段,和数据库的tenant_id对应)
|
||||
*/
|
||||
@TableField("tenant_id") // 显式映射数据库字段名,避免MyBatis-Plus自动转换出错
|
||||
private Integer tenantId;
|
||||
}
|
||||
@@ -90,3 +90,5 @@ WHERE aci.context_enum = 'ACTIVITY'
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user