Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yd-backend
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
AutogeneralShanghai
yd-backend
Commits
4bd01a7a
Commit
4bd01a7a
authored
Jan 26, 2021
by
jianan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
合同工作经历问题修复
parent
709f785b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
42 additions
and
10 deletions
+42
-10
yd-api/src/main/java/com/yd/api/practitioner/service/impl/PractitionerHiringContractServiceImpl.java
+6
-10
yd-api/src/main/java/com/yd/api/practitioner/service/impl/PractitionerHiringServiceImpl.java
+36
-0
No files found.
yd-api/src/main/java/com/yd/api/practitioner/service/impl/PractitionerHiringContractServiceImpl.java
View file @
4bd01a7a
...
...
@@ -336,9 +336,9 @@ public class PractitionerHiringContractServiceImpl implements PractitionerHiring
private
void
setWorkingExperience
(
Map
<
String
,
String
>
data
,
List
<
AclPractitionerHiringWorkingExperience
>
workingExperienceList
)
{
String
Buffer
experienceKey
=
new
StringBuffer
(
"secondWorkingExperience"
)
;
String
Buffer
positionKey
=
new
StringBuffer
(
"secondWorkingPosition"
)
;
String
Buffer
periodKey
=
new
StringBuffer
(
"secondWorkingPeriod"
)
;
String
experienceKey
=
"secondWorkingExperience"
;
String
positionKey
=
"secondWorkingPosition"
;
String
periodKey
=
"secondWorkingPeriod"
;
String
experienceValue
=
""
;
String
positionValue
=
""
;
...
...
@@ -351,19 +351,15 @@ public class PractitionerHiringContractServiceImpl implements PractitionerHiring
item
=
workingExperienceList
.
get
(
i
);
}
experienceKey
.
append
(
i
+
1
);
positionKey
.
append
(
i
+
1
);
periodKey
.
append
(
i
+
1
);
if
(
item
!=
null
)
{
experienceValue
=
item
.
getWorkingCompany
();
positionValue
=
item
.
getPosition
();
periodValue
=
item
.
getWorkingStart
()
+
"~"
+
item
.
getWorkingEnd
();
}
data
.
put
(
experienceKey
.
toString
(
),
experienceValue
);
data
.
put
(
positionKey
.
toString
(
),
positionValue
);
data
.
put
(
periodKey
.
toString
(
),
periodValue
);
data
.
put
(
experienceKey
+
(
i
+
1
),
experienceValue
);
data
.
put
(
positionKey
+
(
i
+
1
),
positionValue
);
data
.
put
(
periodKey
+
(
i
+
1
),
periodValue
);
}
}
...
...
yd-api/src/main/java/com/yd/api/practitioner/service/impl/PractitionerHiringServiceImpl.java
View file @
4bd01a7a
...
...
@@ -12,6 +12,7 @@ import com.yd.dal.mapper.customer.*;
import
com.yd.dal.service.customer.AclPractitionerHiringApproveRecordsDALService
;
import
com.yd.dal.service.practitioner.PractitionerHiringDALService
;
import
com.yd.rmi.ali.oss.service.OssService
;
import
com.yd.rmi.ali.send.service.SendService
;
import
com.yd.rmi.cache.SystemConfigService
;
import
com.yd.util.CommonUtil
;
import
com.yd.util.HttpUtil
;
...
...
@@ -52,6 +53,8 @@ public class PractitionerHiringServiceImpl implements PractitionerHiringService
private
PractitionerHiringContractService
hiringContractService
;
@Autowired
private
AclPractitionerMapper
aclPractitionerMapper
;
@Autowired
private
SendService
sendService
;
private
PractitionerHiringDALService
practitionerHiringDalService
;
private
SystemConfigService
systemConfigService
;
...
...
@@ -711,6 +714,9 @@ public class PractitionerHiringServiceImpl implements PractitionerHiringService
updateObj
.
setContractOssPath
(
contractOssPath
);
aclPractitionerMapper
.
updateByPrimaryKeySelective
(
updateObj
);
//合同生成后,发短信通知报聘人,辅导人,团队长
// this.sendMsgAfterPDF(hiringBasicInfoId);
resp
.
setCommonResult
(
new
CommonResult
(
true
,
ZHBErrorConfig
.
getErrorInfo
(
"800000"
)));
resp
.
setContractOssPath
(
contractOssPath
);
...
...
@@ -721,6 +727,36 @@ public class PractitionerHiringServiceImpl implements PractitionerHiringService
return
resp
;
}
private
void
sendMsgAfterPDF
(
Long
hiringBasicInfoId
)
{
AclPractitionerHiringBasicInfo
basicInfo
=
basicInfoMapper
.
selectByPrimaryKey
(
hiringBasicInfoId
);
AclPractitionerHiringMembership
memberShip
=
membershipMapper
.
selectByHiringBasicInfoId
(
hiringBasicInfoId
);
String
[]
mobileNoArr
=
new
String
[
3
];
mobileNoArr
[
0
]
=
basicInfo
.
getMobileNo
();
if
(
memberShip
.
getMentorPractitionerId
()
!=
null
)
{
AclPractitioner
mentor
=
aclPractitionerMapper
.
selectByPrimaryKey
(
memberShip
.
getMentorPractitionerId
());
mobileNoArr
[
1
]
=
mentor
.
getMobileNo
();
}
if
(
memberShip
.
getSubsystemOwnerId
()
!=
null
)
{
AclPractitioner
system
=
aclPractitionerMapper
.
selectByPrimaryKey
(
memberShip
.
getSubsystemOwnerId
());
mobileNoArr
[
2
]
=
system
.
getMobileNo
();
}
// orderNo = item.getOrderNo();
// times = CommonUtil.dateParseString(overdueDate,"HH:mm");
// customer = customerMap.get(item.getCustomerId());
// name = customer.getName();
// mobileNo = customer.getMobileNo();
// email = customer.getEmail();
// /* 短信提醒 */
// String content = "{\"name\":\""+name+"\",\"code\":\""+item.getOrderNo()+"\",\"time\":\""+times+"\",\"orderNo\":\""+orderNo+"\"}";
// sendService.sendEmailOrSMS("sms", mobileNo, "2", content, templateCode, null, null, "订单未支付提醒", 1, item.getId());
}
@Override
public
QueryPractitionerInfoResponseVO
queryPractitionerInfo
(
QueryPractitionerInfoRequestVO
requestVO
)
{
QueryPractitionerInfoResponseVO
resp
=
new
QueryPractitionerInfoResponseVO
();
...
...
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