Commit 10f551db authored by chenzhao's avatar chenzhao

修改bug

parent 3d17621a
...@@ -13,6 +13,7 @@ import lombok.extern.slf4j.Slf4j; ...@@ -13,6 +13,7 @@ import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value; import org.springframework.beans.factory.annotation.Value;
import org.springframework.scheduling.annotation.Async; import org.springframework.scheduling.annotation.Async;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.util.ObjectUtils; import org.springframework.util.ObjectUtils;
import org.springframework.web.bind.annotation.DeleteMapping; import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.GetMapping;
...@@ -288,6 +289,7 @@ public class EquipmentSpecificController extends AbstractBaseController { ...@@ -288,6 +289,7 @@ public class EquipmentSpecificController extends AbstractBaseController {
*/ */
@DeleteMapping(value = "/delEquipmentBySpecificId") @DeleteMapping(value = "/delEquipmentBySpecificId")
@TycloudOperation(ApiLevel = UserType.AGENCY) @TycloudOperation(ApiLevel = UserType.AGENCY)
@Transactional(rollbackFor = Exception.class)
@ApiOperation(value = "删除装备相关所有数据", notes = "删除装备相关所有数据") @ApiOperation(value = "删除装备相关所有数据", notes = "删除装备相关所有数据")
public ResponseModel delEquipmentBySpecificId(@RequestParam Long specificId) { public ResponseModel delEquipmentBySpecificId(@RequestParam Long specificId) {
EquipmentSpecific equipmentSpecific = equipmentSpecificSerivce.getById(specificId); EquipmentSpecific equipmentSpecific = equipmentSpecificSerivce.getById(specificId);
...@@ -297,6 +299,7 @@ public class EquipmentSpecificController extends AbstractBaseController { ...@@ -297,6 +299,7 @@ public class EquipmentSpecificController extends AbstractBaseController {
return CommonResponseUtil.success(result); return CommonResponseUtil.success(result);
} }
private void refreshCount(String bizOrgCode) { private void refreshCount(String bizOrgCode) {
try { try {
equipmentSpecificSerivce.refreshStaData(); equipmentSpecificSerivce.refreshStaData();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment