|
@@ -195,20 +195,25 @@ public class ProjectReportSignatureWorkController extends BaseController {
|
|
|
}
|
|
|
|
|
|
//获取当前登陆人可申请的签章类型
|
|
|
- ArrayList<Type> sigTypes = new ArrayList<>();
|
|
|
String sigTypeList = projectReportSignatureService.getSignatureTypeList(user); //typeList 1:审定单 2:报告
|
|
|
//type 1:报告 2:审定单
|
|
|
if (StringUtils.isNotBlank(sigTypeList)){
|
|
|
- if (typeList.contains(",")){
|
|
|
- model.addAttribute("isApproval","2");
|
|
|
- model.addAttribute("isReport","1");
|
|
|
+ if (sigTypeList.contains(",")){
|
|
|
+ String[] split = sigTypeList.split(",");
|
|
|
+ for (String s : split) {
|
|
|
+ if (s.equals("1")){
|
|
|
+ model.addAttribute("isApproval","1");
|
|
|
+ }
|
|
|
+ if (s.equals("2")){
|
|
|
+ model.addAttribute("isReport","1");
|
|
|
+ }
|
|
|
+ }
|
|
|
}else {
|
|
|
- if (typeList.equals("1")){
|
|
|
- model.addAttribute("isApproval","2");
|
|
|
+ if (sigTypeList.equals("1")){
|
|
|
+ model.addAttribute("isApproval","1");
|
|
|
}
|
|
|
- if (typeList.equals("2")){
|
|
|
+ if (sigTypeList.equals("2")){
|
|
|
model.addAttribute("isReport","1");
|
|
|
-
|
|
|
}
|
|
|
}
|
|
|
}
|