| | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.by4cloud.platformx.common.core.util.R; |
| | | import com.by4cloud.platformx.common.log.annotation.SysLog; |
| | | import com.by4cloud.platformx.common.security.util.SecurityUtils; |
| | | import com.by4cloud.platformx.device.constant.MaxSizeContant; |
| | | import com.by4cloud.platformx.device.entity.DeviceLeasingLedger; |
| | | import com.by4cloud.platformx.device.service.DeviceLeasingLedgerService; |
| | |
| | | @PreAuthorize("@pms.hasPermission('device_deviceLeasingLedger_add')" ) |
| | | public R save(@RequestBody DeviceLeasingLedger deviceLeasingLedger) { |
| | | deviceLeasingLedger.setLedgerCode(maxSizeService.nextNo(MaxSizeContant.LEDGER_CODE)); |
| | | deviceLeasingLedger.setLesseeContractId(SecurityUtils.getUser().getCompId()); |
| | | return deviceLeasingLedgerService.saveDeep(deviceLeasingLedger); |
| | | } |
| | | |