Merge remote-tracking branch 'origin/master'

This commit is contained in:
jiang 2025-12-03 18:09:30 +08:00
commit d3f13e7cd8
1 changed files with 4 additions and 0 deletions

View File

@ -15,6 +15,8 @@ import com.bonus.gzgqj.manager.webResult.ServerResponse;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.transaction.interceptor.TransactionAspectSupport;
import org.springframework.web.multipart.MultipartFile;
import javax.servlet.http.HttpServletRequest;
@ -123,6 +125,7 @@ public class PartApplyServiceImpl implements PartApplyService {
}
@Override
@Transactional(rollbackFor = Exception.class)
public ServerResponse partOutInByIds(PartApplyAppVo data) {
try {
String id = data.getId();
@ -168,6 +171,7 @@ public class PartApplyServiceImpl implements PartApplyService {
} catch (Exception e) {
log.error(e.toString(), e);
TransactionAspectSupport.currentTransactionStatus().setRollbackOnly();
}
return ServerResponse.createErroe("出库失败");
}