| | |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import io.swagger.annotations.*; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | import java.io.IOException; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | |
| | | public ResponseEntity<Object> receivePaymentTotalMoney(ContractQueryCriteria criteria){ |
| | | return new ResponseEntity<>(contractService.receivePaymentTotalMoney(criteria),HttpStatus.OK); |
| | | } |
| | | |
| | | @PostMapping(value = "/upload") |
| | | @Log("批量导入合同详情") |
| | | @ApiOperation("批量导入合同详情") |
| | | @PreAuthorize("@el.check('contract:add')") |
| | | public ResponseEntity<Object> batchUpload(@RequestParam MultipartFile file){ |
| | | return new ResponseEntity<>(contractService.batchUpload(file), HttpStatus.OK); |
| | | } |
| | | } |