|
|
@ -227,7 +227,11 @@ public class ServiceApplicationsService { |
|
|
*/ |
|
|
*/ |
|
|
public ResponseDTO<String> add(ServiceApplicationsAddForm addForm) { |
|
|
public ResponseDTO<String> add(ServiceApplicationsAddForm addForm) { |
|
|
ServiceApplicationsEntity serviceApplicationsEntity = SmartBeanUtil.copy(addForm, ServiceApplicationsEntity.class); |
|
|
ServiceApplicationsEntity serviceApplicationsEntity = SmartBeanUtil.copy(addForm, ServiceApplicationsEntity.class); |
|
|
serviceApplicationsDao.insert(serviceApplicationsEntity); |
|
|
if(addForm.getApplicationId() == null) { |
|
|
|
|
|
serviceApplicationsDao.insert(serviceApplicationsEntity); |
|
|
|
|
|
}else { |
|
|
|
|
|
serviceApplicationsDao.updateById(serviceApplicationsEntity); |
|
|
|
|
|
} |
|
|
return ResponseDTO.ok(); |
|
|
return ResponseDTO.ok(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@ -1016,6 +1020,13 @@ public class ServiceApplicationsService { |
|
|
* @param queryForm |
|
|
* @param queryForm |
|
|
*/ |
|
|
*/ |
|
|
public void exportLawyer(ServiceLawyerQueryForm queryForm, HttpServletResponse response) { |
|
|
public void exportLawyer(ServiceLawyerQueryForm queryForm, HttpServletResponse response) { |
|
|
|
|
|
RequestEmployee requestUser = AdminRequestUtil.getRequestUser(); |
|
|
|
|
|
RoleVO roleList = roleEmployeeService.getRoleIdList(requestUser.getEmployeeId()).get(0); |
|
|
|
|
|
if (UserTypeEnum.USER.getDesc().equals(roleList.getRoleCode())){ |
|
|
|
|
|
queryForm.setUserId(requestUser.getEmployeeId()); |
|
|
|
|
|
}else if (UserTypeEnum.CTO.getDesc().equals(roleList.getRoleCode())){ |
|
|
|
|
|
queryForm.setFirmId(requestUser.getDepartmentId()); |
|
|
|
|
|
} |
|
|
DictEntity one = dictService.getOne("FILECOST"); |
|
|
DictEntity one = dictService.getOne("FILECOST"); |
|
|
// 如果没有指定季度,则使用年度范围,否则使用季度范围
|
|
|
// 如果没有指定季度,则使用年度范围,否则使用季度范围
|
|
|
if (queryForm.getQuarter() == null) { |
|
|
if (queryForm.getQuarter() == null) { |
|
|
|