Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
Y
yifu-mvp
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fangxinjiang
yifu-mvp
Commits
3722d2e2
Commit
3722d2e2
authored
Jun 02, 2023
by
wangzb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feature-wzb :bug修复
parent
0be42798
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
18 deletions
+7
-18
TEmployeeContractInfoServiceImpl.java
...chives/service/impl/TEmployeeContractInfoServiceImpl.java
+1
-1
TEmployeeRetirementServiceImpl.java
...archives/service/impl/TEmployeeRetirementServiceImpl.java
+2
-9
TEmployeeRetirementMapper.xml
...z/src/main/resources/mapper/TEmployeeRetirementMapper.xml
+3
-7
TSettleDomainMapper.xml
...ves-biz/src/main/resources/mapper/TSettleDomainMapper.xml
+1
-1
No files found.
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/service/impl/TEmployeeContractInfoServiceImpl.java
View file @
3722d2e2
...
@@ -1245,9 +1245,9 @@ public class TEmployeeContractInfoServiceImpl extends ServiceImpl<TEmployeeContr
...
@@ -1245,9 +1245,9 @@ public class TEmployeeContractInfoServiceImpl extends ServiceImpl<TEmployeeContr
TSocialFundInfo
sf
=
new
TSocialFundInfo
();
TSocialFundInfo
sf
=
new
TSocialFundInfo
();
sf
.
setEmpIdcard
(
insert
.
getEmpIdcard
());
sf
.
setEmpIdcard
(
insert
.
getEmpIdcard
());
sf
.
setSettleDomain
(
insert
.
getSettleDomain
());
sf
.
setSettleDomain
(
insert
.
getSettleDomain
());
if
(!
CommonConstants
.
ONE_STRING
.
equals
(
insert
.
getSituation
())
&&
!
CommonConstants
.
TWO_STRING
.
equals
(
insert
.
getSituation
())
&&
!
CommonConstants
.
THREE_STRING
.
equals
(
insert
.
getSituation
())
&&!
CommonConstants
.
FOUR_STRING
.
equals
(
insert
.
getSituation
()))
{
R
<
Integer
>
socialFundR
=
HttpDaprUtil
.
invokeMethodPost
(
socialProperties
.
getAppUrl
(),
socialProperties
.
getAppId
()
R
<
Integer
>
socialFundR
=
HttpDaprUtil
.
invokeMethodPost
(
socialProperties
.
getAppUrl
(),
socialProperties
.
getAppId
()
,
"/tsocialfundinfo/inner/selectSocialFoundByContract"
,
sf
,
Integer
.
class
,
SecurityConstants
.
FROM_IN
);
,
"/tsocialfundinfo/inner/selectSocialFoundByContract"
,
sf
,
Integer
.
class
,
SecurityConstants
.
FROM_IN
);
if
(
CommonConstants
.
ONE_STRING
.
equals
(
insert
.
getSituation
())
||
CommonConstants
.
TWO_STRING
.
equals
(
insert
.
getSituation
())
||
CommonConstants
.
THREE_STRING
.
equals
(
insert
.
getSituation
())
||
CommonConstants
.
FOUR_STRING
.
equals
(
insert
.
getSituation
()))
{
if
(
socialFundR
!=
null
&&
socialFundR
.
getData
()
!=
null
&&
socialFundR
.
getData
()
>
0
)
{
if
(
socialFundR
!=
null
&&
socialFundR
.
getData
()
!=
null
&&
socialFundR
.
getData
()
>
0
)
{
insert
.
setAuditStatus
(
CommonConstants
.
TWO_INT
);
insert
.
setAuditStatus
(
CommonConstants
.
TWO_INT
);
insert
.
setAuditUserName
(
user
.
getNickname
());
insert
.
setAuditUserName
(
user
.
getNickname
());
...
...
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/service/impl/TEmployeeRetirementServiceImpl.java
View file @
3722d2e2
...
@@ -57,7 +57,7 @@ private TEmployeeRetirementFlagDetailMapper tEmployeeRetirementFlagDetailMapper;
...
@@ -57,7 +57,7 @@ private TEmployeeRetirementFlagDetailMapper tEmployeeRetirementFlagDetailMapper;
@Override
@Override
@Scheduled
(
cron
=
"0 */1 * * * ?"
)
@Scheduled
(
cron
=
"0 */1 * * * ?"
)
public
void
retireeRemind
()
{
public
void
retireeRemind
()
{
Date
date
=
new
Dat
e
();
Date
date
=
DateUtil
.
getCurrentDateTim
e
();
YifuUser
user
=
SecurityUtils
.
getUser
();
YifuUser
user
=
SecurityUtils
.
getUser
();
SimpleDateFormat
formatterMenYear
=
new
SimpleDateFormat
(
"YYYYMM"
);
SimpleDateFormat
formatterMenYear
=
new
SimpleDateFormat
(
"YYYYMM"
);
String
YearMonth
=
formatterMenYear
.
format
(
date
);
String
YearMonth
=
formatterMenYear
.
format
(
date
);
...
@@ -66,14 +66,8 @@ private TEmployeeRetirementFlagDetailMapper tEmployeeRetirementFlagDetailMapper;
...
@@ -66,14 +66,8 @@ private TEmployeeRetirementFlagDetailMapper tEmployeeRetirementFlagDetailMapper;
String
mRemainTime
=
DateUtil
.
getYearAndMonth
(
YearMonth
,
ArchivesConstants
.
MYEAR_MONTH
);
String
mRemainTime
=
DateUtil
.
getYearAndMonth
(
YearMonth
,
ArchivesConstants
.
MYEAR_MONTH
);
String
wRemainTime
=
DateUtil
.
getYearAndMonth
(
YearMonth
,
ArchivesConstants
.
WYEAR_MONTH
);
String
wRemainTime
=
DateUtil
.
getYearAndMonth
(
YearMonth
,
ArchivesConstants
.
WYEAR_MONTH
);
String
TT
=
mRemainTime
+
dateOne
;
String
TT
=
mRemainTime
+
dateOne
;
StringBuffer
stringBuffer
=
new
StringBuffer
(
TT
);
stringBuffer
.
insert
(
CommonConstants
.
FOUR_INT
,
"-"
);
stringBuffer
.
insert
(
CommonConstants
.
SEVEN_INT
,
"-"
);
String
LL
=
wRemainTime
+
dateOne
;
String
LL
=
wRemainTime
+
dateOne
;
StringBuffer
stringBufferOne
=
new
StringBuffer
(
LL
);
List
<
TEmployeeRetirement
>
list
=
baseMapper
.
getBirthday
(
DateUtil
.
dateToString
(
DateUtil
.
stringToDate
(
TT
),
DateUtil
.
ISO_EXPANDED_DATE_FORMAT
),
DateUtil
.
dateToString
(
DateUtil
.
stringToDate
(
LL
),
DateUtil
.
ISO_EXPANDED_DATE_FORMAT
));
stringBufferOne
.
insert
(
CommonConstants
.
FOUR_INT
,
"-"
);
stringBufferOne
.
insert
(
CommonConstants
.
SEVEN_INT
,
"-"
);
List
<
TEmployeeRetirement
>
list
=
baseMapper
.
getBirthday
(
TT
,
LL
);
for
(
TEmployeeRetirement
tEmployeeRetirement
:
list
)
{
for
(
TEmployeeRetirement
tEmployeeRetirement
:
list
)
{
int
i
=
baseMapper
.
selectByEmpIdcard
(
tEmployeeRetirement
.
getEmpIdcard
());
int
i
=
baseMapper
.
selectByEmpIdcard
(
tEmployeeRetirement
.
getEmpIdcard
());
if
(
i
==
0
)
{
if
(
i
==
0
)
{
...
@@ -82,7 +76,6 @@ private TEmployeeRetirementFlagDetailMapper tEmployeeRetirementFlagDetailMapper;
...
@@ -82,7 +76,6 @@ private TEmployeeRetirementFlagDetailMapper tEmployeeRetirementFlagDetailMapper;
tEmployeeRetirementMapper
.
insert
(
tEmployeeRetirement
);
tEmployeeRetirementMapper
.
insert
(
tEmployeeRetirement
);
}
}
}
}
}
}
@Override
@Override
...
...
yifu-archives/yifu-archives-biz/src/main/resources/mapper/TEmployeeRetirementMapper.xml
View file @
3722d2e2
...
@@ -184,13 +184,9 @@
...
@@ -184,13 +184,9 @@
b.EMP_BIRTHDAY
b.EMP_BIRTHDAY
FROM t_employee_project a
FROM t_employee_project a
LEFT JOIN t_employee_info b ON a.EMP_IDCARD = b.EMP_IDCARD
LEFT JOIN t_employee_info b ON a.EMP_IDCARD = b.EMP_IDCARD
where datediff(#{TT}, b.EMP_BIRTHDAY) = 0
where ((datediff(#{TT}, b.EMP_BIRTHDAY) = 0 and b.EMP_SEX = '1')
and
or (datediff(#{LL}, b.EMP_BIRTHDAY) = 0 and b.EMP_SEX = '2'))
b.EMP_SEX = '1'
and b.FILE_STATUS = 0 and a.EMP_NATRUE in ('0','1','3')
and b.FILE_STATUS = 0
or datediff(#{LL}, b.EMP_BIRTHDAY) = 0
and b.EMP_SEX = '2'
and b.FILE_STATUS = 0
GROUP BY a.EMP_ID
GROUP BY a.EMP_ID
</select>
</select>
...
...
yifu-archives/yifu-archives-biz/src/main/resources/mapper/TSettleDomainMapper.xml
View file @
3722d2e2
...
@@ -279,7 +279,7 @@
...
@@ -279,7 +279,7 @@
and a.DEPART_NAME like concat("%",#{departName},"%")
and a.DEPART_NAME like concat("%",#{departName},"%")
</if>
</if>
<if
test=
"nameOrNo != null and nameOrNo.trim() != ''"
>
<if
test=
"nameOrNo != null and nameOrNo.trim() != ''"
>
and
a.DEPART_NAME like concat("%",#{nameOrNo},"%") or a.DEPART_NO like concat("%",#{nameOrNo},"%"
)
and
(a.DEPART_NAME like concat("%",#{nameOrNo},"%") or a.DEPART_NO like concat("%",#{nameOrNo},"%")
)
</if>
</if>
<if
test=
"customerId != null and customerId.trim() != ''"
>
<if
test=
"customerId != null and customerId.trim() != ''"
>
and a.CUSTOMER_ID =#{customerId}
and a.CUSTOMER_ID =#{customerId}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment