|
@@ -1,7 +1,5 @@
|
|
|
package com.ruoyi.anpin.service.impl;
|
|
|
|
|
|
-import java.util.*;
|
|
|
-
|
|
|
import com.alibaba.fastjson.JSONArray;
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
import com.baomidou.mybatisplus.core.toolkit.ObjectUtils;
|
|
@@ -33,6 +31,8 @@ import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
import org.springframework.transaction.interceptor.TransactionAspectSupport;
|
|
|
|
|
|
+import java.util.*;
|
|
|
+
|
|
|
/**
|
|
|
* 费用管理Service业务层处理
|
|
|
*
|
|
@@ -147,7 +147,8 @@ public class TCostManagementServiceImpl implements ITCostManagementService
|
|
|
TCostManagement detailed = JSONArray.parseObject(tCostManagement, TCostManagement.class);
|
|
|
if (StringUtils.isNotNull(detailed.getfId())){
|
|
|
TCostManagement management = tCostManagementMapper.selectTCostManagementById(detailed.getfId());
|
|
|
- if (management.getfBillstatus() > 0){
|
|
|
+ String username = SecurityUtils.getUsername();
|
|
|
+ if (management.getfBillstatus() > 0 && !"admin".equals(username)){
|
|
|
return AjaxResult.error("该订单已提交,请刷新页面");
|
|
|
}
|
|
|
}
|