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