| | |
| | | |
| | | import annotation.Log; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ycl.platform.domain.entity.CalculateMoneyRule; |
| | | import com.ycl.platform.domain.entity.TContract; |
| | | import com.ycl.platform.domain.entity.TMonitor; |
| | | import com.ycl.platform.domain.query.YwUnitQuery; |
| | |
| | | return tContractService.selectAll(); |
| | | } |
| | | |
| | | @PreAuthorize("@ss.hasPermi('system:contract:query')") |
| | | @GetMapping("/selectMoneyRules") |
| | | public AjaxResult selectMoneyRules(Integer contractId) { |
| | | return success(tContractService.selectMoneyRules(contractId)); |
| | | } |
| | | |
| | | /** |
| | | * 合同导入模板 |
| | | */ |
| | |
| | | @Log(title = "合同导入", businessType = BusinessType.IMPORT) |
| | | @PreAuthorize("@ss.hasPermi('system:user:import')") |
| | | @PostMapping("/importData") |
| | | public AjaxResult importData(MultipartFile file, TContract tContract) { |
| | | return tContractService.importData(file, tContract); |
| | | public AjaxResult importData(TContract tContract) { |
| | | return tContractService.importData(tContract.getFile(), tContract); |
| | | } |
| | | |
| | | /** |