|
@@ -155,7 +155,7 @@ public class WorkReimbursementService extends CrudService<WorkReimbursementDao,
|
|
workAccount.setFinancialSubjectss(workAccount.getFinancialSubjects());
|
|
workAccount.setFinancialSubjectss(workAccount.getFinancialSubjects());
|
|
workAccount.setFinancialSubjects("");
|
|
workAccount.setFinancialSubjects("");
|
|
}
|
|
}
|
|
- if(null != workAccount.getProjectRadio() && workAccount.getProjectRadio() == 0){
|
|
|
|
|
|
+ if((null != workAccount.getProjectRadio() && workAccount.getProjectRadio() == 0)||(null != workAccount.getProjectRadio() && workAccount.getProjectRadio() ==2)){
|
|
workAccount.getProject().setProjectName(workAccount.getReimburseRemarks());
|
|
workAccount.getProject().setProjectName(workAccount.getReimburseRemarks());
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -272,7 +272,14 @@ public class WorkReimbursementService extends CrudService<WorkReimbursementDao,
|
|
}else if (null != workAccount.getType()){
|
|
}else if (null != workAccount.getType()){
|
|
WorkReimbursementTypeInfo workReimbursementTypeInfo= workReimbursementTypeService.get(workAccount.getType());
|
|
WorkReimbursementTypeInfo workReimbursementTypeInfo= workReimbursementTypeService.get(workAccount.getType());
|
|
if (null != workReimbursementTypeInfo){
|
|
if (null != workReimbursementTypeInfo){
|
|
- String pid=workReimbursementTypeInfo.getParentIds().split(",")[1];
|
|
|
|
|
|
+ String [] pidlen=workReimbursementTypeInfo.getParentIds().split(",");
|
|
|
|
+ String pid=null;
|
|
|
|
+ if (pidlen.length!=1){
|
|
|
|
+ pid=pidlen[1];
|
|
|
|
+ }else{
|
|
|
|
+ pid="2";
|
|
|
|
+ }
|
|
|
|
+// String pid=workReimbursementTypeInfo.getParentIds().split(",")[1];
|
|
if("1".equals(pid) ){
|
|
if("1".equals(pid) ){
|
|
//查询项目报告信息
|
|
//查询项目报告信息
|
|
if (StringUtils.isNotBlank(info.getWorkAccount().getProject().getId())){
|
|
if (StringUtils.isNotBlank(info.getWorkAccount().getProject().getId())){
|
|
@@ -1427,7 +1434,14 @@ public class WorkReimbursementService extends CrudService<WorkReimbursementDao,
|
|
}else if (null != workAccount.getType()) {
|
|
}else if (null != workAccount.getType()) {
|
|
WorkReimbursementTypeInfo workReimbursementTypeInfo= workReimbursementTypeService.get(workAccount.getType());
|
|
WorkReimbursementTypeInfo workReimbursementTypeInfo= workReimbursementTypeService.get(workAccount.getType());
|
|
if (null != workReimbursementTypeInfo){
|
|
if (null != workReimbursementTypeInfo){
|
|
- String pid=workReimbursementTypeInfo.getParentIds().split(",")[1];
|
|
|
|
|
|
+ String [] pidlen=workReimbursementTypeInfo.getParentIds().split(",");
|
|
|
|
+ String pid=null;
|
|
|
|
+ if (pidlen.length!=1){
|
|
|
|
+ pid=pidlen[1];
|
|
|
|
+ }else{
|
|
|
|
+ pid="2";
|
|
|
|
+ }
|
|
|
|
+// String pid=workReimbursementTypeInfo.getParentIds().split(",")[1];
|
|
if("1".equals(pid) ){
|
|
if("1".equals(pid) ){
|
|
workAccount.setProjectRadio(1);
|
|
workAccount.setProjectRadio(1);
|
|
}else{
|
|
}else{
|