Compare commits

...
3 Commits
Author SHA1 Message Date
timi ebb9f633a4 Merge pull request 'v1.0.78' (#90) from dev into master
Reviewed-on: #90
2026-11-17 16:11:04 +00:00
Timi bdcf32ba26 v1.0.78
CI / build-deploy (pull_request) Successful in 33s
CI / notify-on-failure (pull_request) Skipped
2026-11-18 00:10:14 +08:00
Timi 6feaad4b33 fix(app): db transactional 2026-11-18 00:10:01 +08:00
2 changed files with 5 additions and 4 deletions
+1 -1
View File
@@ -11,7 +11,7 @@
<groupId>com.imyeyu.timiserverapi</groupId> <groupId>com.imyeyu.timiserverapi</groupId>
<artifactId>TimiServerAPI</artifactId> <artifactId>TimiServerAPI</artifactId>
<version>1.0.77</version> <version>1.0.78</version>
<packaging>jar</packaging> <packaging>jar</packaging>
<name>TimiServerAPI</name> <name>TimiServerAPI</name>
<description>imyeyu.com API</description> <description>imyeyu.com API</description>
@@ -3,6 +3,7 @@ package com.imyeyu.api.modules.app.service;
import com.imyeyu.api.modules.app.entity.AppChannel; import com.imyeyu.api.modules.app.entity.AppChannel;
import com.imyeyu.api.modules.app.entity.AppProduct; import com.imyeyu.api.modules.app.entity.AppProduct;
import com.imyeyu.api.modules.app.entity.AppRelease; import com.imyeyu.api.modules.app.entity.AppRelease;
import com.imyeyu.api.config.dbsource.TimiServerDBConfig;
import com.imyeyu.api.modules.app.mapper.AppChannelMapper; import com.imyeyu.api.modules.app.mapper.AppChannelMapper;
import com.imyeyu.api.modules.app.mapper.AppProductMapper; import com.imyeyu.api.modules.app.mapper.AppProductMapper;
import com.imyeyu.api.modules.app.mapper.AppReleaseMapper; import com.imyeyu.api.modules.app.mapper.AppReleaseMapper;
@@ -359,7 +360,7 @@ public class AppVersionService {
/// @param grayPermille 灰度比例,为空时保持原值 /// @param grayPermille 灰度比例,为空时保持原值
/// @param operatorId 操作人用户 ID /// @param operatorId 操作人用户 ID
/// @param note 变更说明 /// @param note 变更说明
@Transactional @Transactional(TimiServerDBConfig.ROLLBACKER)
public void publish(String releaseId, String channelCode, Integer grayPermille, String operatorId, String note) { public void publish(String releaseId, String channelCode, Integer grayPermille, String operatorId, String note) {
AppRelease release = releaseMapper.select(releaseId); AppRelease release = releaseMapper.select(releaseId);
if (release == null) { if (release == null) {
@@ -392,7 +393,7 @@ public class AppVersionService {
/// @param channelCode 通道代码 /// @param channelCode 通道代码
/// @param targetReleaseId 目标发布 ID /// @param targetReleaseId 目标发布 ID
/// @param operatorId 操作人用户 ID /// @param operatorId 操作人用户 ID
@Transactional @Transactional(TimiServerDBConfig.ROLLBACKER)
public void rollback(String productId, String channelCode, String targetReleaseId, String operatorId) { public void rollback(String productId, String channelCode, String targetReleaseId, String operatorId) {
AppChannel channel = channelMapper.selectByProductAndCode(productId, channelCode); AppChannel channel = channelMapper.selectByProductAndCode(productId, channelCode);
if (channel == null) { if (channel == null) {
@@ -415,7 +416,7 @@ public class AppVersionService {
/// ///
/// @param releaseId 发布 ID /// @param releaseId 发布 ID
/// @param operatorId 操作人用户 ID /// @param operatorId 操作人用户 ID
@Transactional @Transactional(TimiServerDBConfig.ROLLBACKER)
public void revoke(String releaseId, String operatorId) { public void revoke(String releaseId, String operatorId) {
AppRelease release = releaseMapper.select(releaseId); AppRelease release = releaseMapper.select(releaseId);
if (release == null) { if (release == null) {