From db47c7d2025b14f57266bd18c24366cb13ab0f46 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E6=B2=85?= <907037276@qq.com> Date: Mon, 4 Dec 2023 15:02:20 +0800 Subject: [PATCH] =?UTF-8?q?1=E3=80=81swagger=E6=8E=A5=E5=8F=A3=E6=96=87?= =?UTF-8?q?=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/main/java/com/ibeetl/jlw/dao/StudentDao.java | 3 +++ .../com/ibeetl/jlw/entity/ResourcesApplication.java | 11 +++++++++++ .../java/com/ibeetl/jlw/service/StudentService.java | 5 +++++ .../java/com/ibeetl/jlw/web/AccountController.java | 2 +- web/src/main/resources/sql/jlw/student.md | 11 ++++++++++- 5 files changed, 30 insertions(+), 2 deletions(-) diff --git a/web/src/main/java/com/ibeetl/jlw/dao/StudentDao.java b/web/src/main/java/com/ibeetl/jlw/dao/StudentDao.java index e72e366a..5eac4238 100644 --- a/web/src/main/java/com/ibeetl/jlw/dao/StudentDao.java +++ b/web/src/main/java/com/ibeetl/jlw/dao/StudentDao.java @@ -126,4 +126,7 @@ public interface StudentDao extends BaseMapper{ List getStudentByStudentNoAndOrgId(String studentNo,Long orgId); ListgetValuesByOrgId(Long orgId); + + + List getNoBaseStudent(); } \ No newline at end of file diff --git a/web/src/main/java/com/ibeetl/jlw/entity/ResourcesApplication.java b/web/src/main/java/com/ibeetl/jlw/entity/ResourcesApplication.java index 5d2cf596..72682485 100644 --- a/web/src/main/java/com/ibeetl/jlw/entity/ResourcesApplication.java +++ b/web/src/main/java/com/ibeetl/jlw/entity/ResourcesApplication.java @@ -85,6 +85,8 @@ public class ResourcesApplication extends BaseEntity{ private String applicationInfoOriginal ; + private String thumbnailUrl; + /** * 新增时间 */ @@ -94,6 +96,15 @@ public class ResourcesApplication extends BaseEntity{ public ResourcesApplication(){ } + + public String getThumbnailUrl() { + return thumbnailUrl; + } + + public void setThumbnailUrl(String thumbnailUrl) { + this.thumbnailUrl = thumbnailUrl; + } + /**ID *@return */ diff --git a/web/src/main/java/com/ibeetl/jlw/service/StudentService.java b/web/src/main/java/com/ibeetl/jlw/service/StudentService.java index 987a4338..e39c7874 100644 --- a/web/src/main/java/com/ibeetl/jlw/service/StudentService.java +++ b/web/src/main/java/com/ibeetl/jlw/service/StudentService.java @@ -1661,4 +1661,9 @@ public class StudentService extends CoreBaseService { public List getAll(){ return studentDao.all(); } + + //查询没有基础资金的学生账号 + public List getNoBaseStudent(){ + return studentDao.getNoBaseStudent(); + } } \ No newline at end of file diff --git a/web/src/main/java/com/ibeetl/jlw/web/AccountController.java b/web/src/main/java/com/ibeetl/jlw/web/AccountController.java index 7515b455..3fe2c7b6 100644 --- a/web/src/main/java/com/ibeetl/jlw/web/AccountController.java +++ b/web/src/main/java/com/ibeetl/jlw/web/AccountController.java @@ -142,7 +142,7 @@ public class AccountController { @PostMapping("createFund.json") public void createFund() throws SQLException { - List students = studentService.getValuesByOrgId(115L); + List students = studentService.getNoBaseStudent(); int i = 0; if (students != null && students.size() > 0) { for (Student student : students) { diff --git a/web/src/main/resources/sql/jlw/student.md b/web/src/main/resources/sql/jlw/student.md index 910823d5..90966055 100644 --- a/web/src/main/resources/sql/jlw/student.md +++ b/web/src/main/resources/sql/jlw/student.md @@ -2222,4 +2222,13 @@ select * from student where student_sn = #studentNo# and org_id = #orgId# getValuesByOrgId === - select * from student where org_id = #orgId# \ No newline at end of file + select * from student where org_id = #orgId# + + +getNoBaseStudent +=== +select * +from student +where student_id not in (select student_account_asset_allocation.student_id +from student_account_asset_allocation +group by student_account_asset_allocation.student_id) \ No newline at end of file