feat: Spring Boot 3.5.14 全量升级 + 组件升级
核心升级: - Spring Boot 2.7.18 → 3.5.14 - MyBatis Plus 3.5.5 → 3.5.16 (spring-boot3-starter) - Springdoc 1.8.0 → 2.8.6 (OpenAPI 3) - Flowable 6.8.0 → 7.1.0 - Druid 1.2.x → 1.2.28 (boot3-starter) - kotlin-reflect 1.9.10 → 1.9.25 迁移适配: - javax → jakarta 命名空间 (620+ 文件) - Swagger 注解迁移到 OpenAPI 3 (@Tag/@Schema/@Operation/@Parameter) - Spring Security 6.2 适配 (antMatchers→requestMatchers, EnableMethodSecurity) - Druid 包名迁移 (boot→boot3) - Redis 配置路径迁移 (spring.redis→spring.data.redis) - Flyway 适配 (flyway-database-postgresql) - Flowable 7.x 适配 (MULE_TASK_IMAGE 移除) 修复: - spring-boot-maven-plugin 2.5.15→3.5.14 (SPI服务发现失效) - mybatis-plus-boot-starter 3.5.5→3.5.16 (kotlin-reflect+fastjson2冲突) - Flowable database-schema-update 启用自动建表 验证: 23/23 测试通过, 1374 API端点正常
This commit is contained in:
@@ -0,0 +1,180 @@
|
||||
import request from '@/utils/request';
|
||||
|
||||
// 查询费用定价信息列表
|
||||
export function listDefinition (query) {
|
||||
return request ({
|
||||
url: '/change/price/list/getPage',
|
||||
method: 'get',
|
||||
params: query,
|
||||
});
|
||||
}
|
||||
|
||||
// 初始化下拉选
|
||||
export function initOption (query) {
|
||||
return request ({
|
||||
url: '/dict-dictionary/definition/init',
|
||||
method: 'get',
|
||||
data: query,
|
||||
});
|
||||
}
|
||||
// 获取药品列表
|
||||
export function getMedicineList (query) {
|
||||
// 确保 query 对象存在
|
||||
const params = {
|
||||
...query
|
||||
};
|
||||
|
||||
// 根据categoryEnum值选择不同的接口
|
||||
let url = '/change/price/searchKeyWordDataList';
|
||||
if (query?.categoryEnum === 24) {
|
||||
// 药品
|
||||
url = '/change/price/searchKeyWordDataListByMed';
|
||||
} else if (query?.categoryEnum === 25) {
|
||||
// 耗材
|
||||
url = '/change/price/searchKeyWordDataListByDevice';
|
||||
} else if (query?.categoryEnum === 26) {
|
||||
// 诊疗
|
||||
url = '/change/price/searchKeyWordDataListByActivity';
|
||||
}
|
||||
|
||||
return request ({
|
||||
url: url,
|
||||
method: 'post',
|
||||
params: params,
|
||||
});
|
||||
}
|
||||
|
||||
// 获取药品列表 - 药品专用接口
|
||||
export function getMedicineListByMed(query) {
|
||||
return request({
|
||||
url: '/change/price/searchKeyWordDataListByMed',
|
||||
method: 'post',
|
||||
params: query || {},
|
||||
headers: {
|
||||
repeatSubmit: false // 禁用重复提交检查
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
// 获取耗材列表 - 耗材专用接口
|
||||
export function getMedicineListByDevice(query) {
|
||||
return request({
|
||||
url: '/change/price/searchKeyWordDataListByDevice',
|
||||
method: 'post',
|
||||
params: query || {},
|
||||
headers: {
|
||||
repeatSubmit: false // 禁用重复提交检查
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
// 获取诊疗列表 - 诊疗专用接口
|
||||
export function getMedicineListByActivity(query) {
|
||||
return request({
|
||||
url: '/change/price/searchKeyWordDataListByActivity',
|
||||
method: 'post',
|
||||
params: query || {},
|
||||
headers: {
|
||||
repeatSubmit: false // 禁用重复提交检查
|
||||
}
|
||||
});
|
||||
}
|
||||
// 修改费用定价信息
|
||||
export function updateDefinition (data) {
|
||||
return request ({
|
||||
url: '/dict-dictionary/definition/update-charge-item?id=${data.id}&price=${data.price}',
|
||||
method: 'put',
|
||||
});
|
||||
}
|
||||
|
||||
// 修改费用定价信息
|
||||
export function getOptions () {
|
||||
return request ({
|
||||
url: '/dict-dictionary/definition/status-enum-option',
|
||||
method: 'get',
|
||||
});
|
||||
}
|
||||
|
||||
// 修改费用定价信息
|
||||
export function getDetail (id) {
|
||||
return request ({
|
||||
url: '/dict-dictionary/definition/charge-item-info-detail?id=' + id,
|
||||
method: 'get',
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
// 提交价格调整数据
|
||||
export function commitChangePriceData(data) {
|
||||
return request({
|
||||
url: '/change/price/commitChangePriceData',
|
||||
method: 'post',
|
||||
data: data // 直接提交数组作为body
|
||||
});
|
||||
}
|
||||
|
||||
// 提交审核价格调整数据
|
||||
export function commitExamineChangePriceData(data) {
|
||||
return request({
|
||||
url: '/change/price/submitExamineChangePriceData',
|
||||
method: 'post',
|
||||
data: data // 直接提交数组作为body
|
||||
});
|
||||
}
|
||||
|
||||
// 查询所有科室数据
|
||||
export function searchAllOrgData() {
|
||||
return request({
|
||||
url: '/change/price/searchAllOrgData',
|
||||
method: 'post'
|
||||
});
|
||||
}
|
||||
|
||||
//根据所选科室数据查询当前科室下所有类型数据
|
||||
export function searchHealthData(query) {
|
||||
return request({
|
||||
url: '/change/price/searchHealthData',
|
||||
method: 'post',
|
||||
params: query
|
||||
});
|
||||
}
|
||||
// 验证药品
|
||||
export function checkMedApprovalExist(itemId) {
|
||||
return request({
|
||||
url: '/change/price/checkMedApprovalExist',
|
||||
method: 'post',
|
||||
params: { itemId }
|
||||
});
|
||||
}
|
||||
|
||||
export function checkDeviceApprovalExist(itemId) {
|
||||
return request({
|
||||
url: '/change/price/checkDeviceApprovalExist',
|
||||
method: 'post',
|
||||
params: { itemId }
|
||||
});
|
||||
}
|
||||
|
||||
export function checkActivityApprovalExist(itemId) {
|
||||
return request({
|
||||
url: '/change/price/checkActivityApprovalExist',
|
||||
method: 'post',
|
||||
params: { itemId }
|
||||
});
|
||||
}
|
||||
|
||||
export function checkHealthApprovalExist(itemId) {
|
||||
return request({
|
||||
url: '/change/price/checkHealthApprovalExist',
|
||||
method: 'post',
|
||||
params: { itemId }
|
||||
});
|
||||
}
|
||||
|
||||
// 查询调价控制开关状态接口
|
||||
export function getInitAdjustPriceSwitchState() {
|
||||
return request({
|
||||
url: '/change/price/getAdjustPriceSwitchState',
|
||||
method: 'get',
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user