瀏覽代碼

任务审批报表2

qianxb 1 年之前
父節點
當前提交
ae1440d76b

+ 5 - 1
blade-service/blade-meter/src/main/java/org/springblade/meter/controller/TaskController.java

@@ -1370,7 +1370,11 @@ public class TaskController extends BladeController {
                 //获取报表id
                 Long reportId = this.getReportId(task);
                 vo.setReportId(reportId);
-                vo.setType(task.getMeterTaskType() == 1 ? 0 : 1);
+                if (task.getMeterTaskType() == 1){
+                    vo.setType(0);
+                }else {
+                    vo.setType(task.getMeterTaskType() == 1 ? 1 : 2);
+                }
                 if (reportAllMoney == null || reportAllMoney.compareTo(BigDecimal.ZERO) == 0){
                     throw new ServiceException("上报金额不能为0");
                 }