fix: Add service tx annotation
This commit is contained in:
parent
75e5118679
commit
22e11ec057
@ -13,12 +13,10 @@ import java.util.Map;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
@Slf4j
|
||||
@Service
|
||||
@RequiredArgsConstructor
|
||||
@Transactional(readOnly = true)
|
||||
public class CanvasBasicSettingService {
|
||||
private final CanvasBasicSettingMapper canvasBasicSettingMapper;
|
||||
|
||||
@ -33,7 +31,6 @@ public class CanvasBasicSettingService {
|
||||
}
|
||||
|
||||
// Canvas Basic Setting 등록
|
||||
@Transactional
|
||||
public Map<String, String> insertCanvasBasicSetting(CanvasBasicSettingInfo csi)
|
||||
throws QcastException {
|
||||
|
||||
@ -88,7 +85,6 @@ public class CanvasBasicSettingService {
|
||||
}
|
||||
|
||||
// 지붕면 할당 Setting 등록
|
||||
@Transactional
|
||||
public Map<String, String> insertRoofAllocSetting(RoofAllocationSettingInfo rasi)
|
||||
throws QcastException {
|
||||
|
||||
@ -119,7 +115,6 @@ public class CanvasBasicSettingService {
|
||||
}
|
||||
|
||||
// 지붕재추가 삭제
|
||||
@Transactional
|
||||
public void deleteRoofMaterialsAdd(String objectNo) throws QcastException {
|
||||
|
||||
if (objectNo == null || objectNo.trim().isEmpty()) {
|
||||
|
||||
@ -1,20 +1,15 @@
|
||||
package com.interplug.qcast.biz.canvasGridSetting;
|
||||
|
||||
import com.interplug.qcast.biz.canvasGridSetting.dto.CanvasGridSettingInfo;
|
||||
|
||||
import com.interplug.qcast.config.Exception.ErrorCode;
|
||||
import com.interplug.qcast.config.Exception.QcastException;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
@Service
|
||||
@RequiredArgsConstructor
|
||||
@Transactional(readOnly = true)
|
||||
public class CanvasGridSettingService {
|
||||
private final CanvasGridSettingMapper canvasGridSettingMapper;
|
||||
|
||||
@ -28,7 +23,6 @@ public class CanvasGridSettingService {
|
||||
}
|
||||
|
||||
// Canvas Setting 등록
|
||||
@Transactional
|
||||
public Map<String, String> insertCanvasGridSetting(CanvasGridSettingInfo csi)
|
||||
throws QcastException {
|
||||
|
||||
|
||||
@ -7,11 +7,9 @@ import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
@Service
|
||||
@RequiredArgsConstructor
|
||||
@Transactional(readOnly = true)
|
||||
public class CanvasSettingService {
|
||||
private final CanvasSettingMapper canvasSettingMapper;
|
||||
|
||||
@ -25,7 +23,6 @@ public class CanvasSettingService {
|
||||
}
|
||||
|
||||
// Canvas Setting 등록
|
||||
@Transactional
|
||||
public Map<String, String> insertCanvasSetting(CanvasSettingInfo csi) throws QcastException {
|
||||
|
||||
Map<String, String> response = new HashMap<>();
|
||||
@ -56,7 +53,6 @@ public class CanvasSettingService {
|
||||
}
|
||||
|
||||
// Canvas Setting 수정
|
||||
@Transactional
|
||||
public void updateCanvasSetting(CanvasSettingInfo csi) throws QcastException {
|
||||
try {
|
||||
canvasSettingMapper.updateCanvasSetting(csi);
|
||||
|
||||
@ -12,7 +12,6 @@ import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
@Service
|
||||
@RequiredArgsConstructor
|
||||
@Transactional(readOnly = true)
|
||||
public class CanvasStatusService {
|
||||
private final CanvasStatusMapper canvasStatusMapper;
|
||||
|
||||
@ -54,7 +53,6 @@ public class CanvasStatusService {
|
||||
}
|
||||
|
||||
// 캔버스 등록
|
||||
@Transactional
|
||||
public Integer insertCanvasStatus(CanvasStatus cs) throws QcastException {
|
||||
|
||||
Integer id = 0;
|
||||
@ -77,7 +75,6 @@ public class CanvasStatusService {
|
||||
}
|
||||
|
||||
// 캔버스 수정
|
||||
@Transactional
|
||||
public void updateCanvasStatus(CanvasStatus cs) throws QcastException {
|
||||
|
||||
if (cs.getId() == null) {
|
||||
@ -101,7 +98,6 @@ public class CanvasStatusService {
|
||||
}
|
||||
|
||||
// 물건번호(objectNo)에 해당하는 캔버스 삭제
|
||||
@Transactional
|
||||
public void deleteObjectNoCanvasStatus(String objectNo) throws QcastException {
|
||||
|
||||
if (objectNo == null || objectNo.trim().isEmpty()) {
|
||||
@ -126,7 +122,6 @@ public class CanvasStatusService {
|
||||
}
|
||||
|
||||
// id에 해당하는 캔버스 삭제
|
||||
@Transactional
|
||||
public void deleteIdCanvasStatus(Integer id) throws QcastException {
|
||||
|
||||
if (id == null) {
|
||||
|
||||
@ -11,12 +11,10 @@ import java.util.List;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
@Slf4j
|
||||
@Service
|
||||
@RequiredArgsConstructor
|
||||
@Transactional(readOnly = true)
|
||||
public class DisplayItemService {
|
||||
|
||||
private final EstimateMapper estimateMapper;
|
||||
@ -29,7 +27,6 @@ public class DisplayItemService {
|
||||
* @param displayItemRequest
|
||||
* @throws QcastException
|
||||
*/
|
||||
@Transactional
|
||||
public void setStoreDisplayItemSave(DisplayItemRequest displayItemRequest) throws QcastException {
|
||||
try {
|
||||
displayItemMapper.setStoreDisplayItemSave(displayItemRequest);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user