|
@@ -1,8 +1,10 @@
|
|
|
package cn.ezhizao.project.business.deduct.controller;
|
|
|
|
|
|
+import cn.ezhizao.common.exception.ServiceException;
|
|
|
import cn.ezhizao.common.utils.poi.ExcelMultipleSheetsUtil;
|
|
|
import cn.ezhizao.common.utils.poi.ExcelUtil;
|
|
|
import cn.ezhizao.framework.aspectj.lang.annotation.Log;
|
|
|
+import cn.ezhizao.framework.aspectj.lang.annotation.distributedLock;
|
|
|
import cn.ezhizao.framework.aspectj.lang.enums.BusinessType;
|
|
|
import cn.ezhizao.framework.web.controller.BaseController;
|
|
|
import cn.ezhizao.framework.web.domain.AjaxResult;
|
|
@@ -619,6 +621,7 @@ public class BizDeductController extends BaseController {
|
|
|
@Log(title = "扣款记录", businessType = BusinessType.UPDATE)
|
|
|
@Transactional(rollbackFor = Exception.class)
|
|
|
@PutMapping
|
|
|
+ @distributedLock(prefix = "entrustDeductEdit",key = "#bizDeduct.id",errorMsg = "你的同事正在修改请您稍后刷新页面")
|
|
|
public AjaxResult edit(@RequestBody BizDeduct bizDeduct) throws NoSuchFieldException, IllegalAccessException {
|
|
|
boolean status = bizDeductService.updateById(bizDeduct);
|
|
|
bizDeduct.getCollect().forEach(l -> {
|