更新java17,springboot3.3.9,maven3.9.10,
This commit is contained in:
@@ -123,7 +123,7 @@ public class AiRecordFolderController {
|
||||
//删除病例夹
|
||||
@RequestMapping("/delRecordFolder")
|
||||
public R delRecordFolder(@RequestBody Map<String,Object> params){
|
||||
int count = aiRecordFolderChatService.count(new LambdaQueryWrapper<AiRecordFolderChat>()
|
||||
Long count = aiRecordFolderChatService.count(new LambdaQueryWrapper<AiRecordFolderChat>()
|
||||
.eq(AiRecordFolderChat::getFolderId,params.get("id").toString()));
|
||||
if (count > 0){
|
||||
return R.error("存在患者记录,请清空后删除");
|
||||
|
||||
@@ -20,7 +20,7 @@ import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import javax.transaction.Transactional;
|
||||
import jakarta.transaction.Transactional;
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
@@ -16,11 +16,9 @@ import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
@Slf4j
|
||||
@RestController("taihumedCourse")
|
||||
@@ -129,7 +127,7 @@ public class CourseController {
|
||||
wrapper.orderByAsc(CourseCatalogueEntity::getSort);
|
||||
List<Map<String,Object>> list = courseService.listMaps(wrapper);
|
||||
for (Map<String,Object> courseEntity : list) {
|
||||
int ucb = userCourseBuyService.count(new LambdaQueryWrapper<UserCourseBuyEntity>()
|
||||
Long ucb = userCourseBuyService.count(new LambdaQueryWrapper<UserCourseBuyEntity>()
|
||||
.eq(UserCourseBuyEntity::getUserId,ShiroUtils.getUId())
|
||||
.eq(UserCourseBuyEntity::getCatalogueId,courseEntity.get("catalogueId")));
|
||||
if (ucb == 0) {
|
||||
|
||||
@@ -13,8 +13,7 @@ import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import jakarta.servlet.http.HttpServletResponse;
|
||||
import java.io.IOException;
|
||||
import java.io.OutputStream;
|
||||
import java.net.URLEncoder;
|
||||
|
||||
Reference in New Issue
Block a user