|
|
@@ -13,6 +13,7 @@ import com.usoftchina.saas.money.service.OthspendingsService;
|
|
|
import com.usoftchina.saas.page.PageRequest;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.transaction.annotation.Transactional;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
/**
|
|
|
@@ -25,6 +26,7 @@ public class OthspengdingsController {
|
|
|
@Autowired
|
|
|
private OthspendingsService othspendingsService;
|
|
|
|
|
|
+ @Transactional
|
|
|
@RequestMapping("/save")
|
|
|
public Result insert(@RequestBody Othsp body) {
|
|
|
DocBaseDTO docBaseDTO = othspendingsService.insert(body);
|
|
|
@@ -32,12 +34,14 @@ public class OthspengdingsController {
|
|
|
}
|
|
|
|
|
|
|
|
|
+ @Transactional
|
|
|
@PostMapping("/delete/{id}")
|
|
|
public Result deletePaybalance(@PathVariable("id") int id){
|
|
|
othspendingsService.delete(id);
|
|
|
return Result.success();
|
|
|
}
|
|
|
|
|
|
+ @Transactional
|
|
|
@PostMapping("/deleteDetail/{id}")
|
|
|
public Result deleteItem(@PathVariable("id") int id){
|
|
|
othspendingsService.deleteItem(id);
|
|
|
@@ -55,30 +59,35 @@ public class OthspengdingsController {
|
|
|
return Result.success(list);
|
|
|
}
|
|
|
|
|
|
+ @Transactional
|
|
|
@RequestMapping("/audit")
|
|
|
public Result audit(@RequestBody Othsp body){
|
|
|
othspendingsService.audit(body);
|
|
|
return Result.success();
|
|
|
}
|
|
|
|
|
|
+ @Transactional
|
|
|
@PostMapping("/unAudit/{id}")
|
|
|
public Result unAudit(@PathVariable("id") int id){
|
|
|
othspendingsService.unAudit(id);
|
|
|
return Result.success();
|
|
|
}
|
|
|
|
|
|
+ @Transactional
|
|
|
@PostMapping("/batchDelete")
|
|
|
public Result othspendingsBatchDelete(@RequestBody BatchDealBaseDTO body){
|
|
|
othspendingsService.othspendingBatchDelete(body);
|
|
|
return Result.success();
|
|
|
}
|
|
|
|
|
|
+ @Transactional
|
|
|
@PostMapping("/batchAudit")
|
|
|
public Result othspendingsBatchAudit(@RequestBody BatchDealBaseDTO body){
|
|
|
othspendingsService.othspendingBatchAudit(body);
|
|
|
return Result.success();
|
|
|
}
|
|
|
|
|
|
+ @Transactional
|
|
|
@PostMapping("/batchUnAudit")
|
|
|
public Result othspendingsBatchUnAudit(@RequestBody BatchDealBaseDTO body){
|
|
|
othspendingsService.othspendingBatchUnAudit(body);
|