|
@@ -1,5 +1,6 @@
|
|
|
package cn.com.qmth.stmms.ms.admin.api;
|
|
|
|
|
|
+import cn.com.qmth.stmms.ms.core.domain.MarkLog;
|
|
|
import cn.com.qmth.stmms.ms.core.domain.MarkStage;
|
|
|
import cn.com.qmth.stmms.ms.core.domain.MarkSubject;
|
|
|
import cn.com.qmth.stmms.ms.core.domain.user.MarkRight;
|
|
@@ -147,7 +148,7 @@ public class UserApi {
|
|
|
@RequestMapping(value = "collect/{domain}", method = RequestMethod.PUT)
|
|
|
public void updateCollect(@PathVariable MarkUser domain, @RequestBody MarkUser user) {
|
|
|
//开始采集,不能修改
|
|
|
- List<MarkUser> list = markLogRepo.findByCreateUserId(domain.getId());
|
|
|
+ List<MarkLog> list = markLogRepo.findByCreateUserId(domain.getId());
|
|
|
if (list != null && list.size() > 0 && !domain.getLoginName().equals(user.getLoginName())) {
|
|
|
throw new RuntimeException("已有采集记录,不能修改账号");
|
|
|
}
|
|
@@ -170,7 +171,7 @@ public class UserApi {
|
|
|
@RequestMapping(value = "collect/{userId}", method = RequestMethod.DELETE)
|
|
|
public void removeCollect(@PathVariable Long userId) {
|
|
|
//开始采集,不能删除
|
|
|
- List<MarkUser> list = markLogRepo.findByCreateUserId(userId);
|
|
|
+ List<MarkLog> list = markLogRepo.findByCreateUserId(userId);
|
|
|
if (list != null && list.size() > 0) {
|
|
|
throw new RuntimeException("已有采集记录,不能删除");
|
|
|
}
|