Parcourir la source

删去了一处无效的依赖和一处无效的重写方法

tags/v1.2.0^2
douzhenjun il y a 1 an
Parent
révision
ccfc37bcb9
3 fichiers modifiés avec 16 ajouts et 21 suppressions
  1. +16
    -16
      tuoheng-admin/src/main/java/com/tuoheng/admin/service/impl/QuestionServiceImpl.java
  2. +0
    -4
      tuoheng-common/pom.xml
  3. +0
    -1
      tuoheng-common/src/main/java/com/tuoheng/common/common/BaseServiceImpl.java

+ 16
- 16
tuoheng-admin/src/main/java/com/tuoheng/admin/service/impl/QuestionServiceImpl.java Voir le fichier

@@ -73,22 +73,22 @@ public class QuestionServiceImpl extends BaseServiceImpl<QuestionMapper, Questio

private final static SimpleDateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");

@Override
public JsonResult deleteByIds(Integer[] ids) {
if (org.springframework.util.StringUtils.isEmpty(ids)) {
return JsonResult.error("记录ID不能为空");
}
// String[] item = ids.split(",");
// 设置Mark=0
UpdateWrapper updateWrapper = new UpdateWrapper();
updateWrapper.set("mark", 0);
updateWrapper.in("id", ids);
boolean result = update(updateWrapper);
if (!result) {
return JsonResult.error();
}
return JsonResult.success("删除成功");
}
// @Override
// public JsonResult deleteByIds(Integer[] ids) {
// if (org.springframework.util.StringUtils.isEmpty(ids)) {
// return JsonResult.error("记录ID不能为空");
// }
//// String[] item = ids.split(",");
// // 设置Mark=0
// UpdateWrapper updateWrapper = new UpdateWrapper();
// updateWrapper.set("mark", 0);
// updateWrapper.in("id", ids);
// boolean result = update(updateWrapper);
// if (!result) {
// return JsonResult.error();
// }
// return JsonResult.success("删除成功");
// }

@Override
@Transactional(readOnly = true)

+ 0
- 4
tuoheng-common/pom.xml Voir le fichier

@@ -179,10 +179,6 @@
<groupId>org.springframework</groupId>
<artifactId>spring-test</artifactId>
</dependency>
<dependency>
<groupId>com.tuoheng</groupId>
<artifactId>tuoheng-system</artifactId>
</dependency>
</dependencies>

</project>

+ 0
- 1
tuoheng-common/src/main/java/com/tuoheng/common/common/BaseServiceImpl.java Voir le fichier

@@ -6,7 +6,6 @@ import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.tuoheng.common.utils.DateUtils;
import com.tuoheng.common.utils.JsonResult;
import org.springframework.util.StringUtils;
import com.tuoheng.system.utils.ShiroUtils;

import java.io.Serializable;
import java.util.List;

Chargement…
Annuler
Enregistrer