|
@@ -1,8 +1,10 @@
|
|
|
package com.gqy.document.service.impl;
|
|
|
|
|
|
import com.gqy.common.core.domain.AjaxResult;
|
|
|
+import com.gqy.common.enums.UserStatus;
|
|
|
import com.gqy.common.utils.SecurityUtils;
|
|
|
import com.gqy.document.domain.DcSystem;
|
|
|
+import com.gqy.document.domain.DcWork;
|
|
|
import com.gqy.document.mapper.DcSystemMapper;
|
|
|
import com.gqy.document.service.IDcSystemService;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
@@ -48,7 +50,18 @@ public class DcSystemServiceImpl implements IDcSystemService {
|
|
|
return AjaxResult.success("新增系统配置成功");
|
|
|
}
|
|
|
|
|
|
-
|
|
|
+ /**
|
|
|
+ * 删除系统
|
|
|
+ * @param Long id
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ public AjaxResult deleteDcSystem(Long id) {
|
|
|
+ DcSystem dcsystem = dcSystemMapper.selectDcSystemById(id);
|
|
|
+ if(dcsystem != null){
|
|
|
+ dcsystem.setSysStatus(Integer.valueOf(UserStatus.DELETED.getCode()));
|
|
|
+ }
|
|
|
+ return updateDcSystem(dcsystem);
|
|
|
+ }
|
|
|
|
|
|
|
|
|
/**
|