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 f1e581fc
authored
Feb 22, 2022
by
涂亚平
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
临时上个版本 联调中
1 parent
4d145a17
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
2 deletions
src/main/java/com/subsidy/service/impl/CompanyDictServiceImpl.java
src/main/resources/mapper/ClassMemberMappingMapper.xml
src/main/resources/mapper/MemberMapper.xml
src/main/java/com/subsidy/service/impl/CompanyDictServiceImpl.java
View file @
f1e581f
...
...
@@ -9,6 +9,7 @@ import com.subsidy.common.exception.HttpException;
import
com.subsidy.dto.administer.OperatorsDTO
;
import
com.subsidy.dto.company.AddCompanyDTO
;
import
com.subsidy.mapper.AdministerMapper
;
import
com.subsidy.mapper.ClassHourDictMapper
;
import
com.subsidy.mapper.ClassTypeDictMapper
;
import
com.subsidy.mapper.CompanyDictMapper
;
import
com.subsidy.mapper.CompanyFieldMappingMapper
;
...
...
@@ -74,6 +75,10 @@ public class CompanyDictServiceImpl extends ServiceImpl<CompanyDictMapper, Compa
@Autowired
private
ClassTypeDictMapper
classTypeDictMapper
;
@Autowired
private
ClassHourDictMapper
classHourDictMapper
;
public
IPage
<
OperatorsVO
>
operators
(
OperatorsDTO
operatorsDTO
)
{
Page
pager
=
new
Page
(
operatorsDTO
.
getPageNum
(),
operatorsDTO
.
getPageSize
());
...
...
@@ -154,6 +159,7 @@ public class CompanyDictServiceImpl extends ServiceImpl<CompanyDictMapper, Compa
classHourDictDO2
.
setRepeatStatus
(
0
);
classHourDictDO2
.
setRepeatTime
(
3
);
redisUtil
.
set
(
RedisPrefixConstant
.
SUBSIDY_SETTINGS_PREFIX
+
companyDictDO
.
getId
(),
classHourDictDO2
);
classHourDictMapper
.
insert
(
classHourDictDO2
);
//行业
List
<
Long
>
fields
=
addCompanyDTO
.
getField
();
...
...
src/main/resources/mapper/ClassMemberMappingMapper.xml
View file @
f1e581f
...
...
@@ -29,7 +29,8 @@
WHERE
t.delete_date IS NULL
AND t2.delete_date IS NULL
and t2.end_date >=DATE_FORMAT(now(), '%Y-%m-%d')
and DATE_FORMAT(t2.end_date ,'%Y-%m-%d')>=DATE_FORMAT(now(), '%Y-%m-%d')
and DATE_FORMAT(t2.start_date ,'%Y-%m-%d')
<
= DATE_FORMAT(now(), '%Y-%m-%d')
and t.member_id = #{memberId}
</select>
...
...
@@ -70,7 +71,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 t2.start_date
<
=
DATE_FORMAT(now(), '%Y-%m-%d')
and t.member_id = #{memberId}
</select>
...
...
src/main/resources/mapper/MemberMapper.xml
View file @
f1e581f
...
...
@@ -94,6 +94,7 @@
WHERE
t.delete_date IS NULL
AND t2.delete_date IS NULL
and t2.id is not null
GROUP BY
t.course_id
) t4 ON t3.id = t4.course_id
...
...
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