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
8d650da4
Commit
8d650da4
authored
Feb 03, 2021
by
jianan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
审批拒绝后将basicInfo状态置为”可修改“
parent
64c76666
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
28 additions
and
5 deletions
+28
-5
yd-api/src/main/java/com/yd/api/agms/service/impl/AgmsHiringServiceImpl.java
+5
-5
yd-api/src/main/java/com/yd/dal/mapper/customer/AclPractitionerHiringApproveRecordsMapper.java
+3
-0
yd-api/src/main/java/com/yd/dal/mapper/customer/AclPractitionerHiringBasicInfoMapper.java
+2
-0
yd-api/src/main/java/com/yd/dal/service/customer/AclPractitionerHiringApproveRecordsDALService.java
+3
-0
yd-api/src/main/java/com/yd/dal/service/customer/impl/AclPractitionerHiringApproveRecordsDALServiceImpl.java
+5
-0
yd-api/src/main/resources/mapper/customer/AclPractitionerHiringApproveRecordsMapper.xml
+5
-0
yd-api/src/main/resources/mapper/customer/AclPractitionerHiringBasicInfoMapper.xml
+5
-0
No files found.
yd-api/src/main/java/com/yd/api/agms/service/impl/AgmsHiringServiceImpl.java
View file @
8d650da4
...
@@ -162,8 +162,10 @@ public class AgmsHiringServiceImpl implements AgmsHiringService {
...
@@ -162,8 +162,10 @@ public class AgmsHiringServiceImpl implements AgmsHiringService {
@Override
@Override
public
PractitionerHiringApproveResponseVO
practitionerHiringApprove
(
PractitionerHiringApproveRequestVO
requestVO
)
{
public
PractitionerHiringApproveResponseVO
practitionerHiringApprove
(
PractitionerHiringApproveRequestVO
requestVO
)
{
PractitionerHiringApproveResponseVO
responseVO
=
new
PractitionerHiringApproveResponseVO
();
PractitionerHiringApproveResponseVO
responseVO
=
new
PractitionerHiringApproveResponseVO
();
Integer
hiringApproveStepsSeq
=
requestVO
.
getHiringApproveStepsSeq
();
Integer
hiringApproveStepsSeq
=
requestVO
.
getHiringApproveStepsSeq
();
Long
hiringBasicInfoId
=
requestVO
.
getHiringBasicInfoId
();
Long
hiringBasicInfoId
=
requestVO
.
getHiringBasicInfoId
();
AclPractitionerHiringBasicInfo
basicInfo
=
basicInfoMapper
.
selectByPrimaryKey
(
hiringBasicInfoId
);
AclPractitionerHiringBasicInfo
basicInfo
=
basicInfoMapper
.
selectByPrimaryKey
(
hiringBasicInfoId
);
if
(
basicInfo
!=
null
&&
StringUtils
.
isNotEmpty
(
basicInfo
.
getApproveStatus
()))
{
if
(
basicInfo
!=
null
&&
StringUtils
.
isNotEmpty
(
basicInfo
.
getApproveStatus
()))
{
List
<
AclPractitionerHiringApproveRecords
>
recordsList
=
aclPractitionerHiringApproveRecordsDalService
.
queryListByBasicInfoId
(
hiringBasicInfoId
);
List
<
AclPractitionerHiringApproveRecords
>
recordsList
=
aclPractitionerHiringApproveRecordsDalService
.
queryListByBasicInfoId
(
hiringBasicInfoId
);
...
@@ -299,11 +301,9 @@ public class AgmsHiringServiceImpl implements AgmsHiringService {
...
@@ -299,11 +301,9 @@ public class AgmsHiringServiceImpl implements AgmsHiringService {
basicInfoMapper
.
updateByPrimaryKeySelective
(
updateObj
);
basicInfoMapper
.
updateByPrimaryKeySelective
(
updateObj
);
if
(
CommonUtil
.
isNullOrZero
(
requestVO
.
getApprovingStatus
()))
{
if
(
CommonUtil
.
isNullOrZero
(
requestVO
.
getApprovingStatus
()))
{
// 审批拒绝更新basicInfo表审批状态为 "-1"
// 审批拒绝 1.更新basicInfo表审批状态为 "null-可修改" 2.删除全部审批记录
AclPractitionerHiringBasicInfo
updateObj2
=
new
AclPractitionerHiringBasicInfo
();
basicInfoMapper
.
changeBasicinfoUpdatable
(
basicInfoId
);
updateObj2
.
setId
(
basicInfoId
);
aclPractitionerHiringApproveRecordsDalService
.
deleteByHiringBasicInfoId
(
basicInfoId
);
updateObj2
.
setApproveStatus
(
"-1"
);
basicInfoMapper
.
updateByPrimaryKeySelective
(
updateObj2
);
responseVO
.
setCommonResult
(
new
CommonResult
(
true
,
ZHBErrorConfig
.
getErrorInfo
(
"800000"
)));
responseVO
.
setCommonResult
(
new
CommonResult
(
true
,
ZHBErrorConfig
.
getErrorInfo
(
"800000"
)));
return
;
return
;
...
...
yd-api/src/main/java/com/yd/dal/mapper/customer/AclPractitionerHiringApproveRecordsMapper.java
View file @
8d650da4
...
@@ -26,4 +26,6 @@ public interface AclPractitionerHiringApproveRecordsMapper {
...
@@ -26,4 +26,6 @@ public interface AclPractitionerHiringApproveRecordsMapper {
AclPractitionerHiringApproveRecords
queryLastOneByBasicInfoId
(
Long
basicInfoId
);
AclPractitionerHiringApproveRecords
queryLastOneByBasicInfoId
(
Long
basicInfoId
);
List
<
AclPractitionerHiringApproveRecords
>
queryListByBasicInfoId
(
Long
hiringBasicInfoId
);
List
<
AclPractitionerHiringApproveRecords
>
queryListByBasicInfoId
(
Long
hiringBasicInfoId
);
int
deleteByHiringBasicInfoId
(
Long
hiringBasicInfoId
);
}
}
\ No newline at end of file
yd-api/src/main/java/com/yd/dal/mapper/customer/AclPractitionerHiringBasicInfoMapper.java
View file @
8d650da4
...
@@ -25,4 +25,5 @@ public interface AclPractitionerHiringBasicInfoMapper {
...
@@ -25,4 +25,5 @@ public interface AclPractitionerHiringBasicInfoMapper {
void
updateByPractitionerPotentialId
(
AclPractitionerHiringBasicInfo
basicInfo
);
void
updateByPractitionerPotentialId
(
AclPractitionerHiringBasicInfo
basicInfo
);
int
changeBasicinfoUpdatable
(
Long
id
);
}
}
\ No newline at end of file
yd-api/src/main/java/com/yd/dal/service/customer/AclPractitionerHiringApproveRecordsDALService.java
View file @
8d650da4
...
@@ -12,4 +12,7 @@ public interface AclPractitionerHiringApproveRecordsDALService {
...
@@ -12,4 +12,7 @@ public interface AclPractitionerHiringApproveRecordsDALService {
void
save
(
AclPractitionerHiringApproveRecords
hiringApproveRecords
);
void
save
(
AclPractitionerHiringApproveRecords
hiringApproveRecords
);
List
<
AclPractitionerHiringApproveRecords
>
queryListByBasicInfoId
(
Long
hiringBasicInfoId
);
List
<
AclPractitionerHiringApproveRecords
>
queryListByBasicInfoId
(
Long
hiringBasicInfoId
);
int
deleteByHiringBasicInfoId
(
Long
basicInfoId
);
}
}
yd-api/src/main/java/com/yd/dal/service/customer/impl/AclPractitionerHiringApproveRecordsDALServiceImpl.java
View file @
8d650da4
...
@@ -26,4 +26,9 @@ public class AclPractitionerHiringApproveRecordsDALServiceImpl implements AclPra
...
@@ -26,4 +26,9 @@ public class AclPractitionerHiringApproveRecordsDALServiceImpl implements AclPra
public
List
<
AclPractitionerHiringApproveRecords
>
queryListByBasicInfoId
(
Long
hiringBasicInfoId
)
{
public
List
<
AclPractitionerHiringApproveRecords
>
queryListByBasicInfoId
(
Long
hiringBasicInfoId
)
{
return
mapper
.
queryListByBasicInfoId
(
hiringBasicInfoId
);
return
mapper
.
queryListByBasicInfoId
(
hiringBasicInfoId
);
}
}
@Override
public
int
deleteByHiringBasicInfoId
(
Long
hiringBasicInfoId
)
{
return
mapper
.
deleteByHiringBasicInfoId
(
hiringBasicInfoId
);
}
}
}
yd-api/src/main/resources/mapper/customer/AclPractitionerHiringApproveRecordsMapper.xml
View file @
8d650da4
...
@@ -379,4 +379,8 @@
...
@@ -379,4 +379,8 @@
where r.hiring_basic_info_id = #{hiringBasicInfoId,jdbcType=BIGINT}
where r.hiring_basic_info_id = #{hiringBasicInfoId,jdbcType=BIGINT}
order by s.step_seq desc
order by s.step_seq desc
</select>
</select>
<delete
id=
"deleteByHiringBasicInfoId"
>
delete from ag_acl_practitioner_hiring_approve_records where hiring_basic_info_id = #{hiringBasicInfoId,jdbcType=BIGINT}
</delete>
</mapper>
</mapper>
\ No newline at end of file
yd-api/src/main/resources/mapper/customer/AclPractitionerHiringBasicInfoMapper.xml
View file @
8d650da4
...
@@ -851,4 +851,8 @@
...
@@ -851,4 +851,8 @@
updated_by = #{updatedBy,jdbcType=BIGINT}
updated_by = #{updatedBy,jdbcType=BIGINT}
where practitioner_potential_id = #{practitionerPotentialId,jdbcType=BIGINT}
where practitioner_potential_id = #{practitionerPotentialId,jdbcType=BIGINT}
</update>
</update>
<update
id=
"changeBasicinfoUpdatable"
>
update ag_acl_practitioner_hiring_basic_info set approve_status = null where id = #{id,jdbcType=BIGINT}
</update>
</mapper>
</mapper>
\ No newline at end of file
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