|
@@ -198,21 +198,12 @@ public class ProjectReportSignatureWorkController extends BaseController {
|
|
|
String sigTypeList = projectReportSignatureService.getSignatureTypeList(user); //typeList 1:审定单 2:报告
|
|
|
//type 1:报告 2:审定单
|
|
|
if (StringUtils.isNotBlank(sigTypeList)){
|
|
|
- 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 (sigTypeList.equals("1")){
|
|
|
+ String[] split = sigTypeList.split(",");
|
|
|
+ for (String s : split) {
|
|
|
+ if (s.equals("1")){
|
|
|
model.addAttribute("isApproval","1");
|
|
|
}
|
|
|
- if (sigTypeList.equals("2")){
|
|
|
+ if (s.equals("2")){
|
|
|
model.addAttribute("isReport","1");
|
|
|
}
|
|
|
}
|