Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
涂亚平
/
subsidy
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 4d145a17
authored
Feb 22, 2022
by
涂亚平
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
临时上个版本 联调中
1 parent
7a010864
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
14 additions
and
12 deletions
src/main/java/com/subsidy/controller/AdministerController.java
src/main/java/com/subsidy/service/AdministerService.java
src/main/java/com/subsidy/service/impl/AdministerServiceImpl.java
src/main/java/com/subsidy/service/impl/CompanyDictServiceImpl.java
src/main/java/com/subsidy/service/impl/MemberServiceImpl.java
src/main/resources/mapper/ClassMemberMappingMapper.xml
src/main/resources/mapper/CompanyDictMapper.xml
src/main/resources/mapper/VodDictMapper.xml
src/main/java/com/subsidy/controller/AdministerController.java
View file @
4d145a1
...
...
@@ -217,7 +217,7 @@ public class AdministerController {
@PostMapping
(
"importMember"
)
@ApiOperation
(
"导入学生 {companyId 公司id file}"
)
public
ResponseVO
importMember
(
Long
companyId
,
@RequestParam
(
"file"
)
MultipartFile
file
){
public
ResponseVO
importMember
(
Long
companyId
,
@RequestParam
(
"file"
)
MultipartFile
file
)
throws
Exception
{
return
ResponseData
.
generateCreatedResponse
(
0
,
administerService
.
importMember
(
companyId
,
file
));
}
...
...
src/main/java/com/subsidy/service/AdministerService.java
View file @
4d145a1
...
...
@@ -74,7 +74,7 @@ public interface AdministerService extends IService<AdministerDO> {
void
memberStudyLog
(
MemberStudyLogDTO
memberStudyLogDTO
)
throws
Exception
;
String
importMember
(
Long
companyId
,
MultipartFile
multipartFile
);
String
importMember
(
Long
companyId
,
MultipartFile
multipartFile
)
throws
Exception
;
IPage
<
ManageMemberVO
>
manageMember
(
ManageMemberDTO
manageMemberDTO
);
}
src/main/java/com/subsidy/service/impl/AdministerServiceImpl.java
View file @
4d145a1
...
...
@@ -128,6 +128,7 @@ import java.util.HashMap;
import
java.util.List
;
import
java.util.Set
;
import
java.util.TreeSet
;
import
java.util.concurrent.ExecutionException
;
import
java.util.concurrent.atomic.AtomicInteger
;
import
java.util.zip.ZipEntry
;
import
java.util.zip.ZipOutputStream
;
...
...
@@ -1284,7 +1285,7 @@ public class AdministerServiceImpl extends ServiceImpl<AdministerMapper, Adminis
}
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
String
importMember
(
Long
companyId
,
MultipartFile
multipartFile
)
{
public
String
importMember
(
Long
companyId
,
MultipartFile
multipartFile
)
throws
Exception
{
try
{
...
...
@@ -1346,10 +1347,7 @@ public class AdministerServiceImpl extends ServiceImpl<AdministerMapper, Adminis
memberDepartmentMappingDO
.
setDepartmentId
(
departmentDictDO
.
getId
());
memberDepartmentMappingDO
.
setMemberId
(
memberDO1
.
getId
());
memberDepartmentMappingMapper
.
insert
(
memberDepartmentMappingDO
);
}
}
});
}
catch
(
Exception
e
)
{
...
...
src/main/java/com/subsidy/service/impl/CompanyDictServiceImpl.java
View file @
4d145a1
...
...
@@ -78,16 +78,18 @@ public class CompanyDictServiceImpl extends ServiceImpl<CompanyDictMapper, Compa
Page
pager
=
new
Page
(
operatorsDTO
.
getPageNum
(),
operatorsDTO
.
getPageSize
());
//判断该用户的角色
Integer
count
=
roleAdministerMappingMapper
.
selectCount
(
new
QueryWrapper
<
RoleAdministerMappingDO
>()
.
lambda
()
.
eq
(
RoleAdministerMappingDO:
:
getAdministerId
,
operatorsDTO
.
getId
())
.
eq
(
RoleAdministerMappingDO:
:
getRoleId
,
1
));
//
Integer count = roleAdministerMappingMapper.selectCount(new QueryWrapper<RoleAdministerMappingDO>()
//
.lambda()
//
.eq(RoleAdministerMappingDO::getAdministerId,operatorsDTO.getId())
//
.eq(RoleAdministerMappingDO::getRoleId,1));
//
//if (count > 0){
// operatorsDTO.setId(null);
//}
IPage
page
=
this
.
baseMapper
.
operators
(
pager
,
operatorsDTO
.
getCompanyName
(),
operatorsDTO
.
getFieldId
(),
operatorsDTO
.
getId
());
AdministerDO
administerDO
=
administerMapper
.
selectById
(
operatorsDTO
.
getId
());
IPage
page
=
this
.
baseMapper
.
operators
(
pager
,
operatorsDTO
.
getCompanyName
(),
operatorsDTO
.
getFieldId
(),
administerDO
.
getCompanyId
());
List
<
OperatorsVO
>
operatorsVOS
=
page
.
getRecords
();
for
(
OperatorsVO
operatorsVO
:
operatorsVOS
)
{
//查看公司所在行业
...
...
src/main/java/com/subsidy/service/impl/MemberServiceImpl.java
View file @
4d145a1
...
...
@@ -141,6 +141,7 @@ public class MemberServiceImpl extends ServiceImpl<MemberMapper, MemberDO> imple
return
iPage
;
}
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
String
deleteMember
(
MemberDO
memberDO
)
{
this
.
baseMapper
.
deleteById
(
memberDO
.
getId
());
...
...
src/main/resources/mapper/ClassMemberMappingMapper.xml
View file @
4d145a1
...
...
@@ -70,6 +70,7 @@
t.delete_date IS NULL
AND t2.delete_date IS NULL
and t2.end_date >=DATE_FORMAT(now(), '%Y-%m-%d')
and t2.start_date
<
DATE_FORMAT(now(), '%Y-%m-%d')
and t.member_id = #{memberId}
</select>
...
...
src/main/resources/mapper/CompanyDictMapper.xml
View file @
4d145a1
...
...
@@ -40,7 +40,6 @@
t.delete_date IS NULL
and t2.delete_date is null
and t3.delete_date is null
and role = #{role}
<if
test=
"id != null and id != ''"
>
and t2.id = #{id}
</if>
...
...
src/main/resources/mapper/VodDictMapper.xml
View file @
4d145a1
...
...
@@ -63,6 +63,7 @@
WHERE
t.delete_date IS NULL
AND t2.delete_date IS NULL
and t2.id is not null
and t.course_id = #{courseId}
<if
test=
"vodName != null and vodName !=''"
>
and t2.vod_name like concat('%',#{vodName} ,'%')
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment