|
|
|
@ -14,6 +14,9 @@ import com.spring.modules.part.service.BomManagementService; |
|
|
|
import com.spring.modules.part.vo.BomHeaderVo; |
|
|
|
import com.spring.modules.project.data.PlmProjectPartData; |
|
|
|
import com.spring.modules.quotation.vo.SysOssVo; |
|
|
|
import com.spring.modules.sys.dao.SysMenuDao; |
|
|
|
import com.spring.modules.sys.entity.SysUserEntity; |
|
|
|
import org.apache.shiro.SecurityUtils; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.format.annotation.DateTimeFormat; |
|
|
|
import org.springframework.web.bind.annotation.*; |
|
|
|
@ -30,6 +33,9 @@ public class ChangeManagementController { |
|
|
|
@Autowired |
|
|
|
private ChangeManagementService changeManagementService; |
|
|
|
|
|
|
|
@Autowired |
|
|
|
private SysMenuDao sysMenuDao; |
|
|
|
|
|
|
|
/** |
|
|
|
* 获取技术参数卡列表 |
|
|
|
* @param data |
|
|
|
@ -460,4 +466,15 @@ public class ChangeManagementController { |
|
|
|
changeManagementService.deleteTempChangeInfo(data); |
|
|
|
return R.ok(); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 删除临时变更单数据 |
|
|
|
*/ |
|
|
|
@PostMapping(value="/checkSuperAdmin") |
|
|
|
@ResponseBody |
|
|
|
public R checkSuperAdmin() { |
|
|
|
boolean flag = !sysMenuDao.checkSuperAdmin(((SysUserEntity) SecurityUtils.getSubject().getPrincipal()).getUserId()).isEmpty(); |
|
|
|
// 是否超级管理员 |
|
|
|
return R.ok().put("superAdmin", flag); |
|
|
|
} |
|
|
|
} |