Browse Source

feat:基础版升级更新加锁,加接口在升级完成后调用sys接口更新tenant,非匹配工单修改查询sql跟完成升级时的sql验证一致

ly 11 months ago
parent
commit
45095b4300

+ 2 - 1
src/main/java/cn/ezhizao/project/tenant/controller/TenantController.java

@@ -7,6 +7,7 @@ import cn.ezhizao.common.exception.ServiceException;
 import cn.ezhizao.common.utils.SecurityUtils;
 import cn.ezhizao.common.utils.StringUtils;
 import cn.ezhizao.common.utils.poi.ExcelUtil;
+import cn.ezhizao.framework.aspectj.lang.annotation.Anonymous;
 import cn.ezhizao.framework.aspectj.lang.annotation.Log;
 import cn.ezhizao.framework.aspectj.lang.enums.BusinessType;
 import cn.ezhizao.framework.qrCode.QrCodeService;
@@ -200,7 +201,7 @@ public class TenantController extends BaseController {
     *基础版升级需要更新账套版本
     * */
     @Log(title = "基础版升级", businessType = BusinessType.UPDATE)
-    @PreAuthorize("@ss.hasPermi('business:upgrade:order:edit')")
+    @Anonymous
     @PostMapping("/completeUpgrade/updateTenant")
     public AjaxResult completeUpgrade(Long tenantId,Long versionId){
         Tenant tenant = new Tenant();