|
|
@ -520,11 +520,11 @@ public class ServiceApplicationsService { |
|
|
|
|
|
|
|
|
public ResponseDTO<String> addSubmit(@Valid ServiceApplicationsAddForm addForm) { |
|
|
public ResponseDTO<String> addSubmit(@Valid ServiceApplicationsAddForm addForm) { |
|
|
ServiceApplicationsEntity serviceApplicationsEntity = SmartBeanUtil.copy(addForm, ServiceApplicationsEntity.class); |
|
|
ServiceApplicationsEntity serviceApplicationsEntity = SmartBeanUtil.copy(addForm, ServiceApplicationsEntity.class); |
|
|
serviceApplicationsEntity.setRecordStatus(ReviewEnum.APPROVAL.getValue()); |
|
|
serviceApplicationsEntity.setFirmAuditStatus(ReviewEnum.APPROVAL.getValue()); |
|
|
serviceApplicationsEntity.setReportTime(LocalDateTime.now()); |
|
|
//serviceApplicationsEntity.setReportTime(LocalDateTime.now());
|
|
|
|
|
|
|
|
|
// 检查当前用户角色是否为CEO
|
|
|
// 检查当前用户角色是否为CEO
|
|
|
RequestUser requestUser = AdminRequestUtil.getRequestUser(); |
|
|
/*RequestUser requestUser = AdminRequestUtil.getRequestUser(); |
|
|
List<RoleVO> roles = roleEmployeeService.getRoleIdList(requestUser.getUserId()); |
|
|
List<RoleVO> roles = roleEmployeeService.getRoleIdList(requestUser.getUserId()); |
|
|
if (!roles.isEmpty()) { |
|
|
if (!roles.isEmpty()) { |
|
|
String roleCode = roles.get(0).getRoleCode(); |
|
|
String roleCode = roles.get(0).getRoleCode(); |
|
|
@ -537,7 +537,7 @@ public class ServiceApplicationsService { |
|
|
serviceApplicationsEntity.setAssociationAuditUser(requestUser.getUserId()); |
|
|
serviceApplicationsEntity.setAssociationAuditUser(requestUser.getUserId()); |
|
|
serviceApplicationsEntity.setAssociationAuditTime(LocalDateTime.now()); |
|
|
serviceApplicationsEntity.setAssociationAuditTime(LocalDateTime.now()); |
|
|
} |
|
|
} |
|
|
} |
|
|
}*/ |
|
|
|
|
|
|
|
|
if (null == addForm.getApplicationId()){ |
|
|
if (null == addForm.getApplicationId()){ |
|
|
serviceApplicationsDao.insert(serviceApplicationsEntity); |
|
|
serviceApplicationsDao.insert(serviceApplicationsEntity); |
|
|
@ -607,6 +607,10 @@ public class ServiceApplicationsService { |
|
|
lawyerServiceVO.setQuarterlyServiceCost(BigDecimal.valueOf(Long.valueOf(dictItem.getRemark()) * lawyerImportForms.get(0).getQuarterlyServiceDuration())); |
|
|
lawyerServiceVO.setQuarterlyServiceCost(BigDecimal.valueOf(Long.valueOf(dictItem.getRemark()) * lawyerImportForms.get(0).getQuarterlyServiceDuration())); |
|
|
lawyerServiceVO.setQuarterlyServiceDuration(lawyerImportForms.get(0).getQuarterlyServiceDuration()); |
|
|
lawyerServiceVO.setQuarterlyServiceDuration(lawyerImportForms.get(0).getQuarterlyServiceDuration()); |
|
|
}); |
|
|
}); |
|
|
|
|
|
}else { |
|
|
|
|
|
lawyerServiceVOList.forEach(lawyerServiceVO -> { |
|
|
|
|
|
lawyerServiceVO.setAnnualServiceCost(BigDecimal.valueOf(Long.valueOf(dictItem.getRemark()) * lawyerServiceVO.getAnnualServiceDuration())); |
|
|
|
|
|
}); |
|
|
} |
|
|
} |
|
|
lawyerStatisticsVO.setLawyerServiceVOList(lawyerServiceVOList); |
|
|
lawyerStatisticsVO.setLawyerServiceVOList(lawyerServiceVOList); |
|
|
}); |
|
|
}); |
|
|
|