|
|
@@ -96,7 +96,6 @@ public class WfTextbookClaimServiceImpl extends MPJBaseServiceImpl<WfTextbookCla
|
|
|
wrapper -> wrapper
|
|
|
.selectAs(XjrUser::getName, DistributePageVo::getStudentUserIdCn)
|
|
|
)
|
|
|
- .eq(WfTextbookClaim::getWorkflowStatus, 1)
|
|
|
.eq(WfTextbookClaim::getBaseSemesterId, dto.getBaseSemesterId())
|
|
|
.eq(StringUtils.isNotEmpty(dto.getClaimType()), WfTextbookClaim::getClaimType, dto.getClaimType())
|
|
|
.and(StringUtils.isNotEmpty(dto.getName()),
|
|
|
@@ -106,18 +105,31 @@ public class WfTextbookClaimServiceImpl extends MPJBaseServiceImpl<WfTextbookCla
|
|
|
.like(BaseClass::getName, dto.getName())
|
|
|
)
|
|
|
;
|
|
|
- if(ObjectUtils.isNotEmpty(dto.getDistributeStatus())){
|
|
|
- if(dto.getDistributeStatus() == 4){
|
|
|
+ if (ObjectUtils.isNotEmpty(dto.getDistributeStatus())) {
|
|
|
+ if (dto.getDistributeStatus() == 4) {
|
|
|
wfTextbookClaimMPJLambdaWrapper
|
|
|
.ne(WfTextbookClaim::getStatus, 1)
|
|
|
;
|
|
|
- }else {
|
|
|
+ } else {
|
|
|
wfTextbookClaimMPJLambdaWrapper
|
|
|
.eq(WfTextbookClaim::getStatus, dto.getDistributeStatus())
|
|
|
;
|
|
|
}
|
|
|
|
|
|
}
|
|
|
+ if (ObjectUtils.isNotEmpty(dto.getWorkflowStatus())) {
|
|
|
+ wfTextbookClaimMPJLambdaWrapper
|
|
|
+ .eq(WfTextbookClaim::getWorkflowStatus, dto.getWorkflowStatus())
|
|
|
+ ;
|
|
|
+ } else {
|
|
|
+ wfTextbookClaimMPJLambdaWrapper
|
|
|
+ .and(wrapper -> wrapper
|
|
|
+ .eq(WfTextbookClaim::getWorkflowStatus, 1)
|
|
|
+ .or()
|
|
|
+ .eq(WfTextbookClaim::getWorkflowStatus, 3)
|
|
|
+ )
|
|
|
+ ;
|
|
|
+ }
|
|
|
IPage<DistributePageVo> page = this.selectJoinListPage(ConventPage.getPage(dto), DistributePageVo.class, wfTextbookClaimMPJLambdaWrapper);
|
|
|
|
|
|
List<DistributePageVo> distributePageVos = page.getRecords();
|
|
|
@@ -497,7 +509,7 @@ public class WfTextbookClaimServiceImpl extends MPJBaseServiceImpl<WfTextbookCla
|
|
|
textbookIssueRecordMapper.insert(textbookIssueRecord);
|
|
|
|
|
|
// 如果申领项是个人申领,发放的时候应该直接帮助学生确认领取
|
|
|
- if(ClaimTypeEnum.ClaimStudent.getCode().equals(wfTextbookClaim.getClaimType())){
|
|
|
+ if (ClaimTypeEnum.ClaimStudent.getCode().equals(wfTextbookClaim.getClaimType())) {
|
|
|
oldTextbookStudentClaim = byUserIdAndTextbookId.get("" + wfTextbookClaim.getApplicantUserId() + wfTextbookClaimItem.getTextbookId());
|
|
|
if (ObjectUtils.isNotEmpty(oldTextbookStudentClaim) && (ObjectUtils.isEmpty(oldTextbookStudentClaim.getClaimSource()) || oldTextbookStudentClaim.getClaimSource() != 1)) {
|
|
|
updateTextbookStudentClaim = new TextbookStudentClaim();
|
|
|
@@ -578,7 +590,7 @@ public class WfTextbookClaimServiceImpl extends MPJBaseServiceImpl<WfTextbookCla
|
|
|
LambdaUpdateWrapper<TextbookClaimUser> textbookClaimUserLambdaUpdateWrapper = new LambdaUpdateWrapper<>();
|
|
|
textbookClaimUserLambdaUpdateWrapper
|
|
|
.eq(TextbookClaimUser::getWfTextbookClaimId, dto.getId())
|
|
|
- ;
|
|
|
+ ;
|
|
|
textbookClaimUserMapper.delete(textbookClaimUserLambdaUpdateWrapper);
|
|
|
|
|
|
WfTextbookClaim wfTextbookClaim = new WfTextbookClaim();
|