Commit 51201028 authored by neo's avatar neo

[Bugfix] fixed select period report mapper

parent 212f2aad
...@@ -126,8 +126,8 @@ public interface PeriodReportMapper extends MyVatMapper { ...@@ -126,8 +126,8 @@ public interface PeriodReportMapper extends MyVatMapper {
" PERIOD_REPORT r " + " PERIOD_REPORT r " +
" LEFT JOIN PERIOD_TEMPLATE pt ON r.TEMPLATE_ID = pt.TEMPLATE_ID " + " LEFT JOIN PERIOD_TEMPLATE pt ON r.TEMPLATE_ID = pt.TEMPLATE_ID " +
"WHERE " + "WHERE " +
" r.PROJECT_ID = '1' " + " r.PROJECT_ID = #{projectId} " +
" AND r.PERIOD = 10 " + " AND r.PERIOD = #{period} " +
"ORDER BY " + "ORDER BY " +
" pt.ORDER_INDEX" + " pt.ORDER_INDEX" +
"") "")
......
...@@ -2566,13 +2566,13 @@ ...@@ -2566,13 +2566,13 @@
} }
$scope.rejectApproval =function(){ $scope.rejectApproval =function(){
vatApproveService.checkTask(vatSessionService.approveInfo.instanceId,'disagreed',$scope.comment).success(function(){ vatApproveService.checkTask(vatSessionService.approvalInfo.instanceId,'disagreed',$scope.comment).success(function(){
$("#ApprovalComment").modal('hide'); $("#ApprovalComment").modal('hide');
}); });
} }
$scope.agreeApproval =function(){ $scope.agreeApproval =function(){
vatApproveService.checkTask(vatSessionService.approveInfo.instanceId,'agreed',$scope.comment).success(function(){ vatApproveService.checkTask(vatSessionService.approvalInfo.instanceId,'agreed',$scope.comment).success(function(){
$("#ApprovalComment").modal('hide'); $("#ApprovalComment").modal('hide');
}); });
} }
......
...@@ -164,7 +164,7 @@ ...@@ -164,7 +164,7 @@
<table class="table"> <table class="table">
<caption>审核意见</caption> <caption>审核意见</caption>
<tr> <tr>
<td><textarea rows="3" class="form-control" ng-model="voucherComments">{{approvalComment}}</textarea> <td><textarea rows="3" class="form-control" ng-model="comment">{{comment}}</textarea>
</td> </td>
</tr> </tr>
<tr> <tr>
......
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
}, },
checkTask:function(taskId,decide,comment){ checkTask:function(taskId,decide,comment){
return $http.put('/approval/check/'+taskId+'?decide='+decide+'&comment='+comment); return $http.put('/approval/check/'+taskId+'?decide='+decide+'&comment='+comment, {}, apiConfig.createVat());
} }
}; };
}]); }]);
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment