| | |
| | | |
| | | 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.ContractQuery; |
| | | import com.ycl.platform.domain.query.YwUnitQuery; |
| | | import com.ycl.platform.domain.vo.TMonitorVO; |
| | | import com.ycl.platform.service.ITContractService; |
| | |
| | | |
| | | @PreAuthorize("@ss.hasPermi('system:contract:list')") |
| | | @GetMapping("/list") |
| | | public List<TContract> list() { |
| | | return tContractService.selectAll(); |
| | | public Result page(ContractQuery query) { |
| | | return tContractService.selectAll(query); |
| | | } |
| | | |
| | | @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); |
| | | } |
| | | |
| | | /** |